dealpos 25.32.0 → 25.33.0

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 (231) hide show
  1. package/browser/{chunk-UWUMG2GM.js → chunk-23ZINFRQ.js} +1 -1
  2. package/browser/{chunk-W6YT427L.js → chunk-26KF723V.js} +1 -1
  3. package/browser/{chunk-DBK7DX7N.js → chunk-26YN3LBW.js} +1 -1
  4. package/browser/{chunk-S5Y743CH.js → chunk-2GLJ2JYF.js} +1 -1
  5. package/browser/{chunk-SEUYLSG6.js → chunk-2LGWP36Z.js} +1 -1
  6. package/browser/{chunk-4IJDCXOA.js → chunk-2RMKBZ2Q.js} +1 -1
  7. package/browser/{chunk-CNMEDN2J.js → chunk-3FEKZM4B.js} +6 -6
  8. package/browser/{chunk-HWY3QH6A.js → chunk-3HL2EFRS.js} +1 -1
  9. package/browser/chunk-3QTJSYIQ.js +1 -0
  10. package/browser/chunk-3USWOOCA.js +2 -0
  11. package/browser/{chunk-IPABIBOI.js → chunk-3WXH7TC2.js} +1 -1
  12. package/browser/{chunk-76XNVBKP.js → chunk-44CJAK76.js} +1 -1
  13. package/browser/{chunk-TX5UVUTO.js → chunk-4CESOX3B.js} +1 -1
  14. package/browser/{chunk-AU5NSB5E.js → chunk-4EMSSLK2.js} +2 -2
  15. package/browser/{chunk-VUVNZP6V.js → chunk-4ETX2WIE.js} +1 -1
  16. package/browser/{chunk-VFMAQOEX.js → chunk-4F47EOGA.js} +1 -1
  17. package/browser/{chunk-NEAT432X.js → chunk-4MP2QVUO.js} +1 -1
  18. package/browser/{chunk-EL2PFWZR.js → chunk-5ARPPVOP.js} +1 -1
  19. package/browser/{chunk-X7J7XCND.js → chunk-5B2SSEL3.js} +1 -1
  20. package/browser/{chunk-KFGDBHSU.js → chunk-5P3WBU6E.js} +1 -1
  21. package/browser/{chunk-NIOYHEMS.js → chunk-6ABJSGTB.js} +1 -1
  22. package/browser/{chunk-N67NWGYA.js → chunk-6BTW2J5N.js} +1 -1
  23. package/browser/{chunk-I6HQHZRF.js → chunk-6JQVOJRF.js} +1 -1
  24. package/browser/{chunk-GBLD5TDU.js → chunk-6KKK43W2.js} +1 -1
  25. package/browser/{chunk-WYYDJSSS.js → chunk-6RM2MZ3O.js} +1 -1
  26. package/browser/{chunk-V7WABXQO.js → chunk-6WP4FXW7.js} +1 -1
  27. package/browser/{chunk-KTMKLUKP.js → chunk-6X4ZI2VW.js} +1 -1
  28. package/browser/{chunk-VJO7M5YW.js → chunk-7A47FQCF.js} +1 -1
  29. package/browser/{chunk-FTFXCI5W.js → chunk-7CFWCYCD.js} +1 -1
  30. package/browser/chunk-7DKHREO4.js +1 -0
  31. package/browser/{chunk-NZE6DNJW.js → chunk-7IAVOBRB.js} +1 -1
  32. package/browser/{chunk-MC6ZRPRO.js → chunk-7IUOZN33.js} +1 -1
  33. package/browser/{chunk-77AT2KTD.js → chunk-7K2O4UYB.js} +1 -1
  34. package/browser/{chunk-75MGYBWY.js → chunk-7W2ZR3DZ.js} +1 -1
  35. package/browser/{chunk-ZQ36MGN4.js → chunk-A4IWXQNL.js} +1 -1
  36. package/browser/{chunk-BTZFP6CQ.js → chunk-A63IZ2M2.js} +1 -1
  37. package/browser/{chunk-KO5IVQZS.js → chunk-AD5MFHV6.js} +1 -1
  38. package/browser/{chunk-2TWP52P7.js → chunk-AEGMU2YH.js} +1 -1
  39. package/browser/{chunk-KMVWE6IR.js → chunk-AJBYNIGH.js} +1 -1
  40. package/browser/{chunk-ONRHFWPY.js → chunk-AJEIAGQW.js} +1 -1
  41. package/browser/{chunk-CIEKEDPX.js → chunk-AM3LHXAG.js} +1 -1
  42. package/browser/{chunk-YF5Z2Q2D.js → chunk-ARGUZW4O.js} +1 -1
  43. package/browser/{chunk-SJ5NQ54M.js → chunk-AX6SAOHJ.js} +1 -1
  44. package/browser/{chunk-P26RMRRL.js → chunk-AYL43YXH.js} +1 -1
  45. package/browser/{chunk-C7X4JG6F.js → chunk-B7SOO5L3.js} +1 -1
  46. package/browser/{chunk-GDU5B7WH.js → chunk-BCWW7Y2T.js} +1 -1
  47. package/browser/chunk-BH2HTSHJ.js +1 -0
  48. package/browser/{chunk-R6GAAB3Z.js → chunk-BH2NWNI6.js} +1 -1
  49. package/browser/{chunk-2PXEEOUO.js → chunk-C3VA5WSC.js} +1 -1
  50. package/browser/{chunk-R5NT3ETF.js → chunk-C3YJEELK.js} +9 -9
  51. package/browser/{chunk-YF53S2OS.js → chunk-CQTY3YBQ.js} +1 -1
  52. package/browser/{chunk-35MHVXKF.js → chunk-CRP73EAT.js} +1 -1
  53. package/browser/{chunk-JBDCESLL.js → chunk-CV6A4KG3.js} +1 -1
  54. package/browser/{chunk-YBH7C53G.js → chunk-CXCIK73V.js} +1 -1
  55. package/browser/{chunk-BR7ZRI7I.js → chunk-CXS6F5IC.js} +1 -1
  56. package/browser/{chunk-2FE7KKYN.js → chunk-D3MXHLH7.js} +1 -1
  57. package/browser/{chunk-J5UNMEUP.js → chunk-D5BAEFCK.js} +1 -1
  58. package/browser/{chunk-YYZQJJ5E.js → chunk-DAPBC4VF.js} +1 -1
  59. package/browser/{chunk-QWOCCKBV.js → chunk-DHRN5QNC.js} +1 -1
  60. package/browser/{chunk-WULI4TL4.js → chunk-DKQJR4HU.js} +1 -1
  61. package/browser/{chunk-NKQB5VVU.js → chunk-DR7EZXM2.js} +1 -1
  62. package/browser/{chunk-4I5BIZRN.js → chunk-E7VQ3MRN.js} +1 -1
  63. package/browser/chunk-EMG6GGPN.js +1 -0
  64. package/browser/{chunk-5B3M2342.js → chunk-EMIOR2AO.js} +1 -1
  65. package/browser/{chunk-U6AHQ7OA.js → chunk-EVOHWISY.js} +1 -1
  66. package/browser/{chunk-N5WNXBLG.js → chunk-F7Z6MA4Q.js} +1 -1
  67. package/browser/{chunk-36E4B5DX.js → chunk-FBW6B5RT.js} +1 -1
  68. package/browser/chunk-FCMZXN6N.js +1 -0
  69. package/browser/{chunk-MMQDVSYE.js → chunk-FD3YITS3.js} +1 -1
  70. package/browser/{chunk-HOF45FIG.js → chunk-FFLZJTNS.js} +1 -1
  71. package/browser/chunk-FKB3PJYT.js +1 -0
  72. package/browser/chunk-FRSW74ZU.js +1 -0
  73. package/browser/{chunk-7OMZTXCR.js → chunk-FUWXXPV6.js} +1 -1
  74. package/browser/{chunk-X3ZDNOUY.js → chunk-FV5IEXH4.js} +1 -1
  75. package/browser/{chunk-ONCTFURX.js → chunk-FVHWNW7U.js} +2 -2
  76. package/browser/{chunk-BQUYCJJJ.js → chunk-FZJ2KHO5.js} +1 -1
  77. package/browser/{chunk-ALON6KSY.js → chunk-G4Z6G4VM.js} +1 -1
  78. package/browser/{chunk-YZYV6OLZ.js → chunk-GBXW7QCR.js} +1 -1
  79. package/browser/{chunk-HDGIKSKP.js → chunk-GHJMCNWR.js} +1 -1
  80. package/browser/{chunk-YH6FQJMF.js → chunk-GMCLO3EE.js} +1 -1
  81. package/browser/{chunk-7W57QQFM.js → chunk-GRGVTVVF.js} +1 -1
  82. package/browser/chunk-GSJ6SIKG.js +1 -0
  83. package/browser/{chunk-3L47WAT5.js → chunk-GY3UG4VG.js} +1 -1
  84. package/browser/{chunk-GIBMYPUI.js → chunk-H264EK64.js} +1 -1
  85. package/browser/{chunk-663IGHUG.js → chunk-H3HM5Q2A.js} +1 -1
  86. package/browser/{chunk-5VAI6GN7.js → chunk-H5CLXQVL.js} +1 -1
  87. package/browser/{chunk-KJGIGEWE.js → chunk-HBKB2NAW.js} +1 -1
  88. package/browser/{chunk-SQZWHGDQ.js → chunk-I2RZGXSU.js} +1 -1
  89. package/browser/{chunk-BDDIDG5F.js → chunk-ICKXBQIB.js} +1 -1
  90. package/browser/{chunk-X6OU5HV5.js → chunk-IFZ4QNMU.js} +1 -1
  91. package/browser/{chunk-3X3O55NN.js → chunk-IG4W2TLL.js} +1 -1
  92. package/browser/{chunk-MKFUTZAB.js → chunk-JCV45T2Q.js} +1 -1
  93. package/browser/{chunk-J577JGRK.js → chunk-JEAUWLOG.js} +1 -1
  94. package/browser/{chunk-QCRJA6UA.js → chunk-JTVQZG2W.js} +1 -1
  95. package/browser/{chunk-2SAQDBKA.js → chunk-JZMI3IH4.js} +1 -1
  96. package/browser/{chunk-EQETYYV4.js → chunk-K54YNOL7.js} +1 -1
  97. package/browser/{chunk-UWM724IJ.js → chunk-K5L6OGD2.js} +1 -1
  98. package/browser/{chunk-EQ6536VC.js → chunk-KPTDYFSC.js} +1 -1
  99. package/browser/{chunk-Y6IBDGTZ.js → chunk-KZOENNYH.js} +1 -1
  100. package/browser/{chunk-JBHXY6BO.js → chunk-KZRSQLLX.js} +1 -1
  101. package/browser/{chunk-GCGKIV7N.js → chunk-L6V2NY4E.js} +1 -1
  102. package/browser/{chunk-2MKL5ANY.js → chunk-LBQMTOMR.js} +1 -1
  103. package/browser/{chunk-FYGGG2XY.js → chunk-LGZ5Q2GS.js} +1 -1
  104. package/browser/{chunk-UP2OTHWF.js → chunk-LH5BSSAL.js} +3 -3
  105. package/browser/chunk-LJYSVMA6.js +3 -0
  106. package/browser/{chunk-BIFUIO7T.js → chunk-LQRO2X2G.js} +1 -1
  107. package/browser/{chunk-ZB4GWUQV.js → chunk-M4PVMYNR.js} +1 -1
  108. package/browser/{chunk-H73MVYHX.js → chunk-M5QI5IMS.js} +1 -1
  109. package/browser/{chunk-UD3ICZLV.js → chunk-M672IATW.js} +1 -1
  110. package/browser/{chunk-GQZZBFFT.js → chunk-MDWAAAAE.js} +1 -1
  111. package/browser/{chunk-WORW36BL.js → chunk-MFHD36TR.js} +1 -1
  112. package/browser/chunk-MORTSU6L.js +1 -0
  113. package/browser/{chunk-WMDD6KTG.js → chunk-MV3LJEXL.js} +1 -1
  114. package/browser/{chunk-WROWBLUN.js → chunk-MY7AWJC2.js} +1 -1
  115. package/browser/{chunk-34NAGBZT.js → chunk-MYDD5N75.js} +1 -1
  116. package/browser/{chunk-H2CBVQ37.js → chunk-NFYBEIT4.js} +1 -1
  117. package/browser/{chunk-N6VH67NA.js → chunk-NJYXRL5P.js} +1 -1
  118. package/browser/{chunk-YQM3WRXG.js → chunk-NUFZXFWK.js} +1 -1
  119. package/browser/{chunk-DZPKIRUW.js → chunk-NUOHVARW.js} +1 -1
  120. package/browser/chunk-O2IX2WQ4.js +125 -0
  121. package/browser/{chunk-SRELAFRM.js → chunk-O6YS7HWF.js} +1 -1
  122. package/browser/{chunk-O4T67QQ3.js → chunk-ODSZMOU5.js} +1 -1
  123. package/browser/chunk-OFH4W2M6.js +1 -0
  124. package/browser/{chunk-ISRITPHN.js → chunk-OH4QBQCQ.js} +1 -1
  125. package/browser/{chunk-FWKNIZZ3.js → chunk-OHXGC7DP.js} +1 -1
  126. package/browser/{chunk-UDN6DKAR.js → chunk-OJ67R2M3.js} +1 -1
  127. package/browser/{chunk-VTDILVPK.js → chunk-OKTYQSEE.js} +1 -1
  128. package/browser/{chunk-AMG5JSBA.js → chunk-OMFWHP5N.js} +1 -1
  129. package/browser/{chunk-7CXNVAHO.js → chunk-ONPMCQJG.js} +1 -1
  130. package/browser/{chunk-PEI67MDS.js → chunk-OR3J6WS4.js} +1 -1
  131. package/browser/{chunk-57KGIBDY.js → chunk-OTM4XCOI.js} +1 -1
  132. package/browser/{chunk-2PI2ZGEL.js → chunk-OWVU6UUD.js} +1 -1
  133. package/browser/{chunk-CLOYYYH3.js → chunk-PAY5YM4R.js} +1 -1
  134. package/browser/{chunk-SDFVKBAE.js → chunk-PBJT67ND.js} +1 -1
  135. package/browser/{chunk-P3YO27X5.js → chunk-PC2KSGHG.js} +1 -1
  136. package/browser/{chunk-U765C72H.js → chunk-PGN5RR5W.js} +1 -1
  137. package/browser/{chunk-UD7IYDOU.js → chunk-PN42JNTR.js} +1 -1
  138. package/browser/chunk-PNF257JC.js +3 -0
  139. package/browser/{chunk-GDLTEIKV.js → chunk-PPWWM7R4.js} +1 -1
  140. package/browser/{chunk-HLZJPEJB.js → chunk-PYOAODA4.js} +1 -1
  141. package/browser/{chunk-5W2FAFPB.js → chunk-Q3YKXEII.js} +1 -1
  142. package/browser/{chunk-CSPZYSGN.js → chunk-QAI52S3G.js} +1 -1
  143. package/browser/{chunk-IC6A5ZGJ.js → chunk-QBXDN6EK.js} +1 -1
  144. package/browser/{chunk-GX4UHBDK.js → chunk-QESKIRSK.js} +1 -1
  145. package/browser/{chunk-GRXBVQJV.js → chunk-QHU5A2VO.js} +1 -1
  146. package/browser/{chunk-CNYFRURV.js → chunk-QIY5VPUF.js} +1 -1
  147. package/browser/{chunk-ERPKEAXJ.js → chunk-QQEMHNJR.js} +1 -1
  148. package/browser/{chunk-KTUSLTKU.js → chunk-QSBXKK7O.js} +1 -1
  149. package/browser/{chunk-AUEGBPEP.js → chunk-R2TIYFDZ.js} +1 -1
  150. package/browser/{chunk-ZTCHNGR5.js → chunk-R7KN77QE.js} +1 -1
  151. package/browser/{chunk-CPVATKT5.js → chunk-RCQAWZI7.js} +1 -1
  152. package/browser/chunk-RLCRF7FL.js +1 -0
  153. package/browser/{chunk-D65B2CE6.js → chunk-RM4HMVR7.js} +1 -1
  154. package/browser/{chunk-KSDGRGTN.js → chunk-RRKEIWWF.js} +1 -1
  155. package/browser/{chunk-5MBI7X6Q.js → chunk-RUY73ZXB.js} +1 -1
  156. package/browser/{chunk-4OMN7S35.js → chunk-RVFSB5N3.js} +1 -1
  157. package/browser/{chunk-U4E4GFA3.js → chunk-RWOGXCJ4.js} +1 -1
  158. package/browser/{chunk-QMH4FATM.js → chunk-SAH7IP6B.js} +1 -1
  159. package/browser/{chunk-5VBPLGVM.js → chunk-SNGQN3IP.js} +1 -1
  160. package/browser/{chunk-TTBALV7Z.js → chunk-SO3TFXIG.js} +1 -1
  161. package/browser/{chunk-NMEH2GFA.js → chunk-SOE2NRSN.js} +1 -1
  162. package/browser/{chunk-35BXZ4TH.js → chunk-SPZ4L2CE.js} +1 -1
  163. package/browser/chunk-TBZXKSGP.js +1 -0
  164. package/browser/{chunk-P67FCS5T.js → chunk-TC4KHMDU.js} +2 -2
  165. package/browser/{chunk-Z5E7LHAD.js → chunk-TFQACQ2G.js} +1 -1
  166. package/browser/{chunk-ZPZGDWV2.js → chunk-TG3EXUGW.js} +1 -1
  167. package/browser/{chunk-UAWD35O3.js → chunk-TJGCUVKV.js} +1 -1
  168. package/browser/{chunk-SH6FFPNP.js → chunk-TNR5DDAL.js} +1 -1
  169. package/browser/{chunk-X7I2U4GR.js → chunk-TVESVZQG.js} +2 -2
  170. package/browser/{chunk-R4BDRGWL.js → chunk-U3IU7SQE.js} +1 -1
  171. package/browser/{chunk-7PVGAJ73.js → chunk-UCXIS7JX.js} +1 -1
  172. package/browser/{chunk-SHUBTJHC.js → chunk-UDWWB3EN.js} +1 -1
  173. package/browser/{chunk-4746NLIA.js → chunk-UFKD34YD.js} +1 -1
  174. package/browser/{chunk-TU7DGC2R.js → chunk-UHVX3YMN.js} +1 -1
  175. package/browser/{chunk-M55SSU2Z.js → chunk-UKMVTEK2.js} +1 -1
  176. package/browser/{chunk-NXYSH73I.js → chunk-ULPIXFJG.js} +1 -1
  177. package/browser/{chunk-DS5ZUU74.js → chunk-UMW3GJ77.js} +1 -1
  178. package/browser/{chunk-Y2E4CRUL.js → chunk-USLEDKAZ.js} +1 -1
  179. package/browser/{chunk-Y46SSCQW.js → chunk-V6YWIQ4N.js} +1 -1
  180. package/browser/{chunk-KNWBJFC5.js → chunk-V7PKUK2B.js} +1 -1
  181. package/browser/{chunk-IXN5A6FJ.js → chunk-VBJXEFVJ.js} +1 -1
  182. package/browser/{chunk-PNVRIGOW.js → chunk-VLLWRHIC.js} +1 -1
  183. package/browser/{chunk-M5TUQ4TJ.js → chunk-VVJXK36P.js} +1 -1
  184. package/browser/chunk-VVPAKD6S.js +1 -0
  185. package/browser/{chunk-EANKU65K.js → chunk-W7NYGUNG.js} +1 -1
  186. package/browser/chunk-W7WO22Z4.js +1 -0
  187. package/browser/{chunk-VWM4STKR.js → chunk-WA3DUD6S.js} +1 -1
  188. package/browser/{chunk-YCXC47GN.js → chunk-WAMP3ZZQ.js} +1 -1
  189. package/browser/{chunk-7ZF6XZWY.js → chunk-WBP33KEF.js} +1 -1
  190. package/browser/{chunk-YWYXEZ6N.js → chunk-WD3WDFFQ.js} +1 -1
  191. package/browser/{chunk-OVRODHEF.js → chunk-WGG65FHF.js} +1 -1
  192. package/browser/{chunk-5KITFB7J.js → chunk-WLORDCWC.js} +1 -1
  193. package/browser/{chunk-5IOF4NYT.js → chunk-WOIM4V7A.js} +1 -1
  194. package/browser/{chunk-5FA5XUCV.js → chunk-WQNA3XH4.js} +2 -2
  195. package/browser/{chunk-ZYLRH43R.js → chunk-WUPMYCBX.js} +1 -1
  196. package/browser/{chunk-M3PEXWHA.js → chunk-WZJE5UVL.js} +1 -1
  197. package/browser/{chunk-ENRRUPSB.js → chunk-X3C3XTGE.js} +1 -1
  198. package/browser/{chunk-5H4KL2KJ.js → chunk-X6LKP46Y.js} +3 -3
  199. package/browser/{chunk-TLVGFFQE.js → chunk-X73O55MR.js} +1 -1
  200. package/browser/{chunk-RIGRHB27.js → chunk-XE6I2A5Z.js} +4 -4
  201. package/browser/{chunk-Q45IFUGA.js → chunk-XFM7DL3K.js} +1 -1
  202. package/browser/{chunk-XA77ZHST.js → chunk-XWTOJM2Q.js} +1 -1
  203. package/browser/{chunk-ERF6BBPU.js → chunk-Y5WXMDXZ.js} +1 -1
  204. package/browser/{chunk-VOJVVXFT.js → chunk-YIDG6PA6.js} +1 -1
  205. package/browser/{chunk-AGW24DIE.js → chunk-YM3XPKCI.js} +1 -1
  206. package/browser/{chunk-QYVR6FKS.js → chunk-YNPKNPEF.js} +1 -1
  207. package/browser/{chunk-E6WSIWQW.js → chunk-YP253EXN.js} +1 -1
  208. package/browser/{chunk-E3JITLPA.js → chunk-YY2XI4GB.js} +1 -1
  209. package/browser/{chunk-XBTVMQMS.js → chunk-YZOSHDT3.js} +1 -1
  210. package/browser/{chunk-WUSKRV4R.js → chunk-ZN4NX5IC.js} +1 -1
  211. package/browser/{chunk-SFFD7XJW.js → chunk-ZR67IS3A.js} +1 -1
  212. package/browser/{chunk-6J6ACQWU.js → chunk-ZRR7ZRMT.js} +1 -1
  213. package/browser/{chunk-O3VN42VA.js → chunk-ZX3JDU5U.js} +1 -1
  214. package/browser/index.html +3 -3
  215. package/browser/{main-ZYWB664N.js → main-A7NU4MUL.js} +2 -2
  216. package/package.json +1 -1
  217. package/browser/chunk-26RWIMQI.js +0 -125
  218. package/browser/chunk-4S2QZ5G3.js +0 -1
  219. package/browser/chunk-5S6WJQZF.js +0 -1
  220. package/browser/chunk-74Y7C2MG.js +0 -1
  221. package/browser/chunk-7JLLV4R2.js +0 -1
  222. package/browser/chunk-D6K7GLV2.js +0 -3
  223. package/browser/chunk-KTYLKTKA.js +0 -1
  224. package/browser/chunk-NVZO3MOZ.js +0 -1
  225. package/browser/chunk-OZM7HAII.js +0 -1
  226. package/browser/chunk-P23T2EVP.js +0 -3
  227. package/browser/chunk-S6XWBUA5.js +0 -1
  228. package/browser/chunk-TTISSB2D.js +0 -2
  229. package/browser/chunk-UUN5OBN5.js +0 -1
  230. package/browser/chunk-VCQRRIXP.js +0 -1
  231. package/browser/chunk-ZVAQS5G4.js +0 -1
@@ -1,8 +1,8 @@
1
1
  import{a as v,b as V,j as $i,q as kh,r as zi,s as Ph,t as Fh}from"./chunk-7DCB7DB2.js";function S(e){return typeof e=="function"}function dn(e){let t=e(r=>{Error.call(r),r.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var qi=dn(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:
2
2
  ${t.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
- `)}`:"",this.name="UnsubscriptionError",this.errors=t});function qt(e,n){if(e){let t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Y=class e{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(let i of t)i.remove(this);else t.remove(this);let{initialTeardown:r}=this;if(S(r))try{r()}catch(i){n=i instanceof qi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Lh(i)}catch(s){n=n??[],s instanceof qi?n=[...n,...s.errors]:n.push(s)}}if(n)throw new qi(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Lh(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}}_hasParent(n){let{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){let{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){let{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&qt(t,n)}remove(n){let{_finalizers:t}=this;t&&qt(t,n),n instanceof e&&n._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var Jc=Y.EMPTY;function Gi(e){return e instanceof Y||e&&"closed"in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function Lh(e){S(e)?e():e.unsubscribe()}var ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var dr={setTimeout(e,n,...t){let{delegate:r}=dr;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){let{delegate:n}=dr;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Wi(e){dr.setTimeout(()=>{let{onUnhandledError:n}=ot;if(n)n(e);else throw e})}function it(){}var jh=Xc("C",void 0,void 0);function Vh(e){return Xc("E",void 0,e)}function Bh(e){return Xc("N",e,void 0)}function Xc(e,n,t){return{kind:e,value:n,error:t}}var jn=null;function fr(e){if(ot.useDeprecatedSynchronousErrorHandling){let n=!jn;if(n&&(jn={errorThrown:!1,error:null}),e(),n){let{errorThrown:t,error:r}=jn;if(jn=null,t)throw r}}else e()}function Uh(e){ot.useDeprecatedSynchronousErrorHandling&&jn&&(jn.errorThrown=!0,jn.error=e)}var Vn=class extends Y{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Gi(n)&&n.add(this)):this.destination=WE}static create(n,t,r){return new Gt(n,t,r)}next(n){this.isStopped?tu(Bh(n),this):this._next(n)}error(n){this.isStopped?tu(Vh(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?tu(jh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},qE=Function.prototype.bind;function eu(e,n){return qE.call(e,n)}var nu=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Zi(r)}}error(n){let{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Zi(r)}else Zi(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Zi(t)}}},Gt=class extends Vn{constructor(n,t,r){super();let o;if(S(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&ot.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&eu(n.next,i),error:n.error&&eu(n.error,i),complete:n.complete&&eu(n.complete,i)}):o=n}this.destination=new nu(o)}};function Zi(e){ot.useDeprecatedSynchronousErrorHandling?Uh(e):Wi(e)}function GE(e){throw e}function tu(e,n){let{onStoppedNotification:t}=ot;t&&dr.setTimeout(()=>t(e,n))}var WE={closed:!0,next:it,error:GE,complete:it};var hr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ve(e){return e}function ru(...e){return ou(e)}function ou(e){return e.length===0?ve:e.length===1?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}var x=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){let r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){let i=YE(t)?t:new Gt(t,r,o);return fr(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return r=Hh(r),new r((o,i)=>{let s=new Gt({next:a=>{try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)}[hr](){return this}pipe(...t){return ou(t)(this)}toPromise(t){return t=Hh(t),new t((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function Hh(e){var n;return(n=e??ot.Promise)!==null&&n!==void 0?n:Promise}function ZE(e){return e&&S(e.next)&&S(e.error)&&S(e.complete)}function YE(e){return e&&e instanceof Vn||ZE(e)&&Gi(e)}var $h=dn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=(()=>{class e extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let r=new Yi(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new $h}next(t){fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(t)}})}error(t){fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Jc:(this.currentObservers=null,i.push(t),new Y(()=>{this.currentObservers=null,qt(i,t)}))}_checkFinalizedStatuses(t){let{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){let t=new x;return t.source=this,t}}return e.create=(n,t)=>new Yi(n,t),e})(),Yi=class extends B{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.next)===null||r===void 0||r.call(t,n)}error(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.error)===null||r===void 0||r.call(t,n)}complete(){var n,t;(t=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||t===void 0||t.call(n)}_subscribe(n){var t,r;return(r=(t=this.source)===null||t===void 0?void 0:t.subscribe(n))!==null&&r!==void 0?r:Jc}};var Ie=new x(e=>e.complete());var pr=e=>e&&typeof e.length=="number"&&typeof e!="function";function Qi(e){return S(e?.then)}function Ki(e){return S(e[hr])}function Ji(e){return Symbol.asyncIterator&&S(e?.[Symbol.asyncIterator])}function Xi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function QE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var es=QE();function ts(e){return S(e?.[es])}function ns(e){return Ph(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:r,done:o}=yield zi(t.read());if(o)return yield zi(void 0);yield yield zi(r)}}finally{t.releaseLock()}})}function rs(e){return S(e?.getReader)}function k(e){if(e instanceof x)return e;if(e!=null){if(Ki(e))return KE(e);if(pr(e))return JE(e);if(Qi(e))return XE(e);if(Ji(e))return zh(e);if(ts(e))return ew(e);if(rs(e))return tw(e)}throw Xi(e)}function KE(e){return new x(n=>{let t=e[hr]();if(S(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function JE(e){return new x(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function XE(e){return new x(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Wi)})}function ew(e){return new x(n=>{for(let t of e)if(n.next(t),n.closed)return;n.complete()})}function zh(e){return new x(n=>{nw(e,n).catch(t=>n.error(t))})}function tw(e){return zh(ns(e))}function nw(e,n){var t,r,o,i;return kh(this,void 0,void 0,function*(){try{for(t=Fh(e);r=yield t.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})}function ce(e,n,t,r=0,o=!1){let i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function iu(e){return S(e?.lift)}function C(e){return n=>{if(iu(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function T(e,n,t,r,o){return new Co(e,n,t,r,o)}var Co=class extends Vn{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function bo(e,n=0){return C((t,r)=>{t.subscribe(T(r,o=>ce(r,e,()=>r.next(o),n),()=>ce(r,e,()=>r.complete(),n),o=>ce(r,e,()=>r.error(o),n)))})}function To(e,n=0){return C((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function qh(e,n){return k(e).pipe(To(n),bo(n))}function Gh(e,n){return k(e).pipe(To(n),bo(n))}function Wh(e,n){return new x(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function Zh(e,n){return new x(t=>{let r;return ce(t,n,()=>{r=e[es](),ce(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){t.error(s);return}i?t.complete():t.next(o)},0,!0)}),()=>S(r?.return)&&r.return()})}function os(e,n){if(!e)throw new Error("Iterable cannot be null");return new x(t=>{ce(t,n,()=>{let r=e[Symbol.asyncIterator]();ce(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function Yh(e,n){return os(ns(e),n)}function Qh(e,n){if(e!=null){if(Ki(e))return qh(e,n);if(pr(e))return Wh(e,n);if(Qi(e))return Gh(e,n);if(Ji(e))return os(e,n);if(ts(e))return Zh(e,n);if(rs(e))return Yh(e,n)}throw Xi(e)}function G(e,n){return n?Qh(e,n):k(e)}function is(e){return e&&S(e.schedule)}function su(e){return e[e.length-1]}function gr(e){return S(su(e))?e.pop():void 0}function Xe(e){return is(su(e))?e.pop():void 0}function Kh(e,n){return typeof su(e)=="number"?e.pop():n}function M(...e){let n=Xe(e);return G(e,n)}function A(e,n){return C((t,r)=>{let o=0;t.subscribe(T(r,i=>{r.next(e.call(n,i,o++))}))})}var{isArray:rw}=Array,{getPrototypeOf:ow,prototype:iw,keys:sw}=Object;function ss(e){if(e.length===1){let n=e[0];if(rw(n))return{args:n,keys:null};if(aw(n)){let t=sw(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}function aw(e){return e&&typeof e=="object"&&ow(e)===iw}var{isArray:cw}=Array;function uw(e,n){return cw(n)?e(...n):e(n)}function mr(e){return A(n=>uw(e,n))}function as(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function lw(...e){let n=gr(e),{args:t,keys:r}=ss(e),o=new x(i=>{let{length:s}=t;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;k(t[l]).subscribe(T(i,h=>{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?as(r,a):a),i.complete())}))}});return n?o.pipe(mr(n)):o}function re(e,n){return C((t,r)=>{let o=0;t.subscribe(T(r,i=>e.call(n,i,o++)&&r.next(i)))})}function et(e){return C((n,t)=>{let r=null,o=!1,i;r=n.subscribe(T(t,void 0,void 0,s=>{i=k(e(s,et(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function ze(e){return e<=0?()=>Ie:C((n,t)=>{let r=0;n.subscribe(T(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}var _o={now(){return(_o.delegate||Date).now()},delegate:void 0};var So=class extends B{constructor(n=1/0,t=1/0,r=_o){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){let{isStopped:t,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;t||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!n.closed;s+=r?1:2)n.next(i[s]);return this._checkFinalizedStatuses(n),t}_trimBuffer(){let{_bufferSize:n,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*n;if(n<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=t.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};function cu(e={}){let{connector:n=()=>new B,resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,l=d=!1},p=()=>{let m=s;f(),m?.unsubscribe()};return C((m,y)=>{u++,!d&&!l&&h();let _=c=c??n();y.add(()=>{u--,u===0&&!d&&!l&&(a=au(p,o))}),_.subscribe(y),!s&&u>0&&(s=new Gt({next:$=>_.next($),error:$=>{d=!0,h(),a=au(f,t,$),_.error($)},complete:()=>{l=!0,h(),a=au(f,r),_.complete()}}),k(m).subscribe(s))})(i)}}function au(e,n,...t){if(n===!0){e();return}if(n===!1)return;let r=new Gt({next:()=>{r.unsubscribe(),e()}});return k(n(...t)).subscribe(r)}function Jh(e,n,t){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:t}=e:r=e??1/0,cu({connector:()=>new So(r,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Xh(e,n,t,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&n.complete()},f=m=>u<r?p(m):c.push(m),p=m=>{i&&n.next(m),u++;let y=!1;k(t(m,l++)).subscribe(T(n,_=>{o?.(_),i?f(_):n.next(_)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;c.length&&u<r;){let _=c.shift();s?ce(n,s,()=>p(_)):p(_)}h()}catch(_){n.error(_)}}))};return e.subscribe(T(n,f,()=>{d=!0,h()})),()=>{a?.()}}function Q(e,n,t=1/0){return S(n)?Q((r,o)=>A((i,s)=>n(r,i,o,s))(k(e(r,o))),t):(typeof n=="number"&&(t=n),C((r,o)=>Xh(r,o,e,t)))}function Tt(e=1/0){return Q(ve,e)}function ep(){return Tt(1)}function fn(...e){return ep()(G(e,Xe(e)))}function cs(...e){let n=Xe(e);return C((t,r)=>{(n?fn(e,t,n):fn(e,t)).subscribe(r)})}function ie(e,n){return C((t,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();t.subscribe(T(r,c=>{o?.unsubscribe();let u=0,l=i++;k(e(c,l)).subscribe(o=T(r,d=>r.next(n?n(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function us(e){return C((n,t)=>{k(e).subscribe(T(t,()=>t.complete(),it)),!t.closed&&n.subscribe(t)})}function he(e,n,t){let r=S(e)||n||t?{next:e,error:n,complete:t}:e;return r?C((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ve}function vr(){return C((e,n)=>{let t=null;e._refCount++;let r=T(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){t=null;return}let o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}var yr=class extends x{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,iu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Y;let t=this.getSubject();n.add(this.source.subscribe(T(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Y.EMPTY)}return n}refCount(){return vr()(this)}};var Dr={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame,{delegate:r}=Dr;r&&(n=r.requestAnimationFrame,t=r.cancelAnimationFrame);let o=n(i=>{t=void 0,e(i)});return new Y(()=>t?.(o))},requestAnimationFrame(...e){let{delegate:n}=Dr;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:n}=Dr;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var ye=class extends B{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){let{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var ls=class extends Y{constructor(n,t){super()}schedule(n,t=0){return this}};var Mo={setInterval(e,n,...t){let{delegate:r}=Mo;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){let{delegate:n}=Mo;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};var _t=class extends ls{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Mo.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return t;t!=null&&Mo.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(n,t);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r=!1,o;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,qt(r,this),n!=null&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}};var dw=1,uu,lu={};function tp(e){return e in lu?(delete lu[e],!0):!1}var np={setImmediate(e){let n=dw++;return lu[n]=!0,uu||(uu=Promise.resolve()),uu.then(()=>tp(n)&&e()),n},clearImmediate(e){tp(e)}};var{setImmediate:fw,clearImmediate:hw}=np,xo={setImmediate(...e){let{delegate:n}=xo;return(n?.setImmediate||fw)(...e)},clearImmediate(e){let{delegate:n}=xo;return(n?.clearImmediate||hw)(e)},delegate:void 0};var ds=class extends _t{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,r=0){return r!==null&&r>0?super.requestAsyncId(n,t,r):(n.actions.push(this),n._scheduled||(n._scheduled=xo.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,t,r);let{actions:i}=n;t!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==t&&(xo.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}};var Er=class e{constructor(n,t=e.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}};Er.now=_o.now;var St=class extends Er{constructor(n,t=Er.now){super(n,t),this.actions=[],this._active=!1}flush(n){let{actions:t}=this;if(this._active){t.push(n);return}let r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}};var fs=class extends St{flush(n){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===t&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===t&&r.shift();)n.unsubscribe();throw o}}};var pw=new fs(ds);var Oe=new St(_t),du=Oe;var hs=class extends _t{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}schedule(n,t=0){return t>0?super.schedule(n,t):(this.delay=t,this.state=n,this.scheduler.flush(this),this)}execute(n,t){return t>0||this.closed?super.execute(n,t):this._execute(n,t)}requestAsyncId(n,t,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(n,t,r):(n.flush(this),0)}};var ps=class extends St{};var gw=new ps(hs);var gs=class extends _t{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,r=0){return r!==null&&r>0?super.requestAsyncId(n,t,r):(n.actions.push(this),n._scheduled||(n._scheduled=Dr.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,t,r);let{actions:i}=n;t!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==t&&(Dr.cancelAnimationFrame(t),n._scheduled=void 0)}};var ms=class extends St{flush(n){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===t&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===t&&r.shift();)n.unsubscribe();throw o}}};var mw=new ms(gs);function hn(e,n){let t=S(e)?e:()=>e,r=o=>o.error(t());return new x(n?o=>n.schedule(r,0,o):r)}function fu(e){return!!e&&(e instanceof x||S(e.lift)&&S(e.subscribe))}var st=dn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function vw(e,n){let t=typeof n=="object";return new Promise((r,o)=>{let i=!1,s;e.subscribe({next:a=>{s=a,i=!0},error:o,complete:()=>{i?r(s):t?r(n.defaultValue):o(new st)}})})}function vs(e){return e instanceof Date&&!isNaN(e)}var ys=dn(e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function at(e,n){let{first:t,each:r,with:o=yw,scheduler:i=n??Oe,meta:s=null}=vs(e)?{first:e}:typeof e=="number"?{each:e}:e;if(t==null&&r==null)throw new TypeError("No timeout provided.");return C((a,c)=>{let u,l,d=null,h=0,f=p=>{l=ce(c,i,()=>{try{u.unsubscribe(),k(o({meta:s,lastValue:d,seen:h})).subscribe(c)}catch(m){c.error(m)}},p)};u=a.subscribe(T(c,p=>{l?.unsubscribe(),h++,c.next(d=p),r>0&&f(r)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!h&&f(t!=null?typeof t=="number"?t:+t-i.now():r)})}function yw(e){throw new ys(e)}function No(...e){let n=Xe(e),t=gr(e),{args:r,keys:o}=ss(e);if(r.length===0)return G([],n);let i=new x(Dw(r,n,o?s=>as(o,s):ve));return t?i.pipe(mr(t)):i}function Dw(e,n,t=ve){return r=>{rp(n,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)rp(n,()=>{let u=G(e[c],n),l=!1;u.subscribe(T(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function rp(e,n,t){e?ce(t,e,n):n()}function Ds(e){return new x(n=>{k(e()).subscribe(n)})}var Ew=["addListener","removeListener"],ww=["addEventListener","removeEventListener"],Iw=["on","off"];function hu(e,n,t,r){if(S(t)&&(r=t,t=void 0),r)return hu(e,n,t).pipe(mr(r));let[o,i]=Tw(e)?ww.map(s=>a=>e[s](n,a,t)):Cw(e)?Ew.map(op(e,n)):bw(e)?Iw.map(op(e,n)):[];if(!o&&pr(e))return Q(s=>hu(s,n,t))(k(e));if(!o)throw new TypeError("Invalid event target");return new x(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function op(e,n){return t=>r=>e[t](n,r)}function Cw(e){return S(e.addListener)&&S(e.removeListener)}function bw(e){return S(e.on)&&S(e.off)}function Tw(e){return S(e.addEventListener)&&S(e.removeEventListener)}function Bn(e=0,n,t=du){let r=-1;return n!=null&&(is(n)?t=n:r=n),new x(o=>{let i=vs(e)?+e-t.now():e;i<0&&(i=0);let s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function _w(e=0,n=Oe){return e<0&&(e=0),Bn(e,e,n)}function Sw(...e){let n=Xe(e),t=Kh(e,1/0),r=e;return r.length?r.length===1?k(r[0]):Tt(t)(G(r,n)):Ie}function ip(e,n){return(t,r)=>!e.call(n,t,r)}function Mw(e,n,t){return[re(n,t)(k(e)),re(ip(n,t))(k(e))]}function sp(e){return C((n,t)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,t.next(u)}s&&t.complete()},c=()=>{i=null,s&&t.complete()};n.subscribe(T(t,u=>{r=!0,o=u,i||k(e(u)).subscribe(i=T(t,a,c))},()=>{s=!0,(!r||!i||i.closed)&&t.complete()}))})}function xw(e,n=Oe){return sp(()=>Bn(e,n))}function Nw(e,...n){var t,r;let o=(t=Xe(n))!==null&&t!==void 0?t:Oe,i=(r=n[0])!==null&&r!==void 0?r:null,s=n[1]||1/0;return C((a,c)=>{let u=[],l=!1,d=p=>{let{buffer:m,subs:y}=p;y.unsubscribe(),qt(u,p),c.next(m),l&&h()},h=()=>{if(u){let p=new Y;c.add(p);let y={buffer:[],subs:p};u.push(y),ce(p,o,()=>d(y),e)}};i!==null&&i>=0?ce(c,o,h,i,!0):l=!0,h();let f=T(c,p=>{let m=u.slice();for(let y of m){let{buffer:_}=y;_.push(p),s<=_.length&&d(y)}},()=>{for(;u?.length;)c.next(u.shift().buffer);f?.unsubscribe(),c.complete(),c.unsubscribe()},void 0,()=>u=null);a.subscribe(f)})}function Es(e,n,t,r,o){return(i,s)=>{let a=t,c=n,u=0;i.subscribe(T(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function ap(e,n){return C(Es(e,n,arguments.length>=2,!1,!0))}var Rw=(e,n)=>(e.push(n),e);function Aw(){return C((e,n)=>{ap(Rw,[])(e).subscribe(n)})}function ct(e,n){return S(n)?Q(e,n,1):Q(e,1)}function Ow(e){return C((n,t)=>{let r=!1,o=null,i=null,s=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let a=o;o=null,t.next(a)}};n.subscribe(T(t,a=>{i?.unsubscribe(),r=!0,o=a,i=T(t,s,it),k(e(a)).subscribe(i)},()=>{s(),t.complete()},void 0,()=>{o=i=null}))})}function cp(e,n=Oe){return C((t,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=n.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}t.subscribe(T(r,u=>{i=u,s=n.now(),o||(o=n.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function pn(e){return C((n,t)=>{let r=!1;n.subscribe(T(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function up(){return C((e,n)=>{e.subscribe(T(n,it))})}function pu(e){return A(()=>e)}function gu(e,n){return n?t=>fn(n.pipe(ze(1),up()),t.pipe(gu(e))):Q((t,r)=>k(e(t,r)).pipe(ze(1),pu(t)))}function kw(e,n=Oe){let t=Bn(e,n);return gu(()=>t)}function lp(e,n=ve){return e=e??Pw,C((t,r)=>{let o,i=!0;t.subscribe(T(r,s=>{let a=n(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Pw(e,n){return e===n}function ws(e=Fw){return C((n,t)=>{let r=!1;n.subscribe(T(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function Fw(){return new st}function Un(e){return C((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function Mt(e,n){let t=arguments.length>=2;return r=>r.pipe(e?re((o,i)=>e(o,i,r)):ve,ze(1),t?pn(n):ws(()=>new st))}function Lw(e,n,t,r){return C((o,i)=>{let s;!n||typeof n=="function"?s=n:{duration:t,element:s,connector:r}=n;let a=new Map,c=p=>{a.forEach(p),p(i)},u=p=>c(m=>m.error(p)),l=0,d=!1,h=new Co(i,p=>{try{let m=e(p),y=a.get(m);if(!y){a.set(m,y=r?r():new B);let _=f(m,y);if(i.next(_),t){let $=T(y,()=>{y.complete(),$?.unsubscribe()},void 0,void 0,()=>a.delete(m));h.add(k(t(_)).subscribe($))}}y.next(s?s(p):p)}catch(m){u(m)}},()=>c(p=>p.complete()),u,()=>a.clear(),()=>(d=!0,l===0));o.subscribe(h);function f(p,m){let y=new x(_=>{l++;let $=m.subscribe(_);return()=>{$.unsubscribe(),--l===0&&d&&h.unsubscribe()}});return y.key=p,y}})}function wr(e){return e<=0?()=>Ie:C((n,t)=>{let r=[];n.subscribe(T(t,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function mu(e,n){let t=arguments.length>=2;return r=>r.pipe(e?re((o,i)=>e(o,i,r)):ve,wr(1),t?pn(n):ws(()=>new st))}function jw(){return C((e,n)=>{let t,r=!1;e.subscribe(T(n,o=>{let i=t;t=o,r&&n.next([i,o]),r=!0}))})}function Vw(...e){let n=e.length;if(n===0)throw new Error("list of properties cannot be empty.");return A(t=>{let r=t;for(let o=0;o<n;o++){let i=r?.[e[o]];if(typeof i<"u")r=i;else return}return r})}function Is(e,n){return C(Es(e,n,arguments.length>=2,!0))}function Bw(e){return re((n,t)=>e<=t)}function Uw(e){return C((n,t)=>{let r=!1,o=0;n.subscribe(T(t,i=>(r||(r=!e(i,o++)))&&t.next(i)))})}function Hw(e,n){return S(n)?ie(()=>e,n):ie(()=>e)}function dp(e,n){return C((t,r)=>{let o=n;return ie((i,s)=>e(o,i,s),(i,s)=>(o=s,s))(t).subscribe(r),()=>{o=null}})}function fp(e,n=!1){return C((t,r)=>{let o=0;t.subscribe(T(r,i=>{let s=e(i,o++);(s||n)&&r.next(i),!s&&r.complete()}))})}function hp(...e){let n=gr(e);return C((t,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)k(e[c]).subscribe(T(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(ve))&&(s=null))},it));t.subscribe(T(r,c=>{if(a){let u=[c,...i];r.next(n?n(...u):u)}}))})}function Eu(e,n){return Object.is(e,n)}var ue=null,Cs=!1,wu=1,Ne=Symbol("SIGNAL");function P(e){let n=ue;return ue=e,n}function Iu(){return ue}var Ir={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Cr(e){if(Cs)throw new Error("");if(ue===null)return;ue.consumerOnSignalRead(e);let n=ue.nextProducerIndex++;if(Ms(ue),n<ue.producerNode.length&&ue.producerNode[n]!==e&&Ro(ue)){let t=ue.producerNode[n];Ss(t,ue.producerIndexOfThis[n])}ue.producerNode[n]!==e&&(ue.producerNode[n]=e,ue.producerIndexOfThis[n]=Ro(ue)?gp(e,ue,n):0),ue.producerLastReadVersion[n]=e.version}function pp(){wu++}function Cu(e){if(!(Ro(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===wu)){if(!e.producerMustRecompute(e)&&!_s(e)){Du(e);return}e.producerRecomputeValue(e),Du(e)}}function bu(e){if(e.liveConsumerNode===void 0)return;let n=Cs;Cs=!0;try{for(let t of e.liveConsumerNode)t.dirty||$w(t)}finally{Cs=n}}function Tu(){return ue?.consumerAllowSignalWrites!==!1}function $w(e){e.dirty=!0,bu(e),e.consumerMarkedDirty?.(e)}function Du(e){e.dirty=!1,e.lastCleanEpoch=wu}function Ao(e){return e&&(e.nextProducerIndex=0),P(e)}function Ts(e,n){if(P(n),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Ro(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)Ss(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function _s(e){Ms(e);for(let n=0;n<e.producerNode.length;n++){let t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(Cu(t),r!==t.version))return!0}return!1}function Oo(e){if(Ms(e),Ro(e))for(let n=0;n<e.producerNode.length;n++)Ss(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function gp(e,n,t){if(mp(e),e.liveConsumerNode.length===0&&vp(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=gp(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function Ss(e,n){if(mp(e),e.liveConsumerNode.length===1&&vp(e))for(let r=0;r<e.producerNode.length;r++)Ss(e.producerNode[r],e.producerIndexOfThis[r]);let t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[n],o=e.liveConsumerNode[n];Ms(o),o.producerIndexOfThis[r]=n}}function Ro(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Ms(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function mp(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function vp(e){return e.producerNode!==void 0}function xs(e,n){let t=Object.create(zw);t.computation=e,n!==void 0&&(t.equal=n);let r=()=>{if(Cu(t),Cr(t),t.value===bs)throw t.error;return t.value};return r[Ne]=t,r}var vu=Symbol("UNSET"),yu=Symbol("COMPUTING"),bs=Symbol("ERRORED"),zw=V(v({},Ir),{value:vu,dirty:!0,error:null,equal:Eu,kind:"computed",producerMustRecompute(e){return e.value===vu||e.value===yu},producerRecomputeValue(e){if(e.value===yu)throw new Error("Detected cycle in computations.");let n=e.value;e.value=yu;let t=Ao(e),r,o=!1;try{r=e.computation(),P(null),o=n!==vu&&n!==bs&&r!==bs&&e.equal(n,r)}catch(i){r=bs,e.error=i}finally{Ts(e,t)}if(o){e.value=n;return}e.value=r,e.version++}});function qw(){throw new Error}var yp=qw;function Dp(e){yp(e)}function _u(e){yp=e}var Gw=null;function Su(e,n){let t=Object.create(Ns);t.value=e,n!==void 0&&(t.equal=n);let r=()=>(Cr(t),t.value);return r[Ne]=t,r}function br(e,n){Tu()||Dp(e),e.equal(e.value,n)||(e.value=n,Ww(e))}function Mu(e,n){Tu()||Dp(e),br(e,n(e.value))}var Ns=V(v({},Ir),{equal:Eu,value:void 0,kind:"signal"});function Ww(e){e.version++,pp(),bu(e),Gw?.()}function xu(e){let n=P(null);try{return e()}finally{P(n)}}var Nu;function ko(){return Nu}function Wt(e){let n=Nu;return Nu=e,n}var Rs=Symbol("NotFound");var Eg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(n,t){super(Da(n,t)),this.code=n}};function Kw(e){return`NG0${Math.abs(e)}`}function Da(e,n){return`${Kw(e)}${n?": "+n:""}`}var Ea=Symbol("InputSignalNode#UNSET"),wg=V(v({},Ns),{transformFn:void 0,applyValueToInputSignal(e,n){br(e,n)}});function Ig(e,n){let t=Object.create(wg);t.value=e,t.transformFn=n?.transform;function r(){if(Cr(t),t.value===Ea){let o=null;throw new D(-950,o)}return t.value}return r[Ne]=t,r}function Yo(e){return{toString:e}.toString()}var As="__parameters__";function Jw(e){return function(...t){if(e){let r=e(...t);for(let o in r)this[o]=r[o]}}}function nd(e,n,t){return Yo(()=>{let r=Jw(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(As)?c[As]:Object.defineProperty(c,As,{value:[]})[As];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var pe=globalThis;function W(e){for(let n in e)if(e[n]===W)return n;throw Error("Could not find renamed property on target object.")}function Xw(e,n){for(let t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Pe(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Pe).join(", ")}]`;if(e==null)return""+e;let n=e.overriddenName||e.name;if(n)return`${n}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=t});function qt(e,n){if(e){let t=e.indexOf(n);0<=t&&e.splice(t,1)}}var Y=class e{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(let i of t)i.remove(this);else t.remove(this);let{initialTeardown:r}=this;if(S(r))try{r()}catch(i){n=i instanceof qi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Lh(i)}catch(s){n=n??[],s instanceof qi?n=[...n,...s.errors]:n.push(s)}}if(n)throw new qi(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Lh(n);else{if(n instanceof e){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(n)}}_hasParent(n){let{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){let{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){let{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&qt(t,n)}remove(n){let{_finalizers:t}=this;t&&qt(t,n),n instanceof e&&n._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var Jc=Y.EMPTY;function Gi(e){return e instanceof Y||e&&"closed"in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function Lh(e){S(e)?e():e.unsubscribe()}var ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var dr={setTimeout(e,n,...t){let{delegate:r}=dr;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){let{delegate:n}=dr;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Wi(e){dr.setTimeout(()=>{let{onUnhandledError:n}=ot;if(n)n(e);else throw e})}function it(){}var jh=Xc("C",void 0,void 0);function Vh(e){return Xc("E",void 0,e)}function Bh(e){return Xc("N",e,void 0)}function Xc(e,n,t){return{kind:e,value:n,error:t}}var jn=null;function fr(e){if(ot.useDeprecatedSynchronousErrorHandling){let n=!jn;if(n&&(jn={errorThrown:!1,error:null}),e(),n){let{errorThrown:t,error:r}=jn;if(jn=null,t)throw r}}else e()}function Uh(e){ot.useDeprecatedSynchronousErrorHandling&&jn&&(jn.errorThrown=!0,jn.error=e)}var Vn=class extends Y{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Gi(n)&&n.add(this)):this.destination=WE}static create(n,t,r){return new Gt(n,t,r)}next(n){this.isStopped?tu(Bh(n),this):this._next(n)}error(n){this.isStopped?tu(Vh(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?tu(jh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},qE=Function.prototype.bind;function eu(e,n){return qE.call(e,n)}var nu=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Zi(r)}}error(n){let{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Zi(r)}else Zi(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Zi(t)}}},Gt=class extends Vn{constructor(n,t,r){super();let o;if(S(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&ot.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&eu(n.next,i),error:n.error&&eu(n.error,i),complete:n.complete&&eu(n.complete,i)}):o=n}this.destination=new nu(o)}};function Zi(e){ot.useDeprecatedSynchronousErrorHandling?Uh(e):Wi(e)}function GE(e){throw e}function tu(e,n){let{onStoppedNotification:t}=ot;t&&dr.setTimeout(()=>t(e,n))}var WE={closed:!0,next:it,error:GE,complete:it};var hr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ve(e){return e}function ru(...e){return ou(e)}function ou(e){return e.length===0?ve:e.length===1?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}var x=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){let r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){let i=YE(t)?t:new Gt(t,r,o);return fr(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return r=Hh(r),new r((o,i)=>{let s=new Gt({next:a=>{try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)}[hr](){return this}pipe(...t){return ou(t)(this)}toPromise(t){return t=Hh(t),new t((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function Hh(e){var n;return(n=e??ot.Promise)!==null&&n!==void 0?n:Promise}function ZE(e){return e&&S(e.next)&&S(e.error)&&S(e.complete)}function YE(e){return e&&e instanceof Vn||ZE(e)&&Gi(e)}var $h=dn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=(()=>{class e extends x{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let r=new Yi(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new $h}next(t){fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(t)}})}error(t){fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){fr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Jc:(this.currentObservers=null,i.push(t),new Y(()=>{this.currentObservers=null,qt(i,t)}))}_checkFinalizedStatuses(t){let{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){let t=new x;return t.source=this,t}}return e.create=(n,t)=>new Yi(n,t),e})(),Yi=class extends B{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.next)===null||r===void 0||r.call(t,n)}error(n){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.error)===null||r===void 0||r.call(t,n)}complete(){var n,t;(t=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||t===void 0||t.call(n)}_subscribe(n){var t,r;return(r=(t=this.source)===null||t===void 0?void 0:t.subscribe(n))!==null&&r!==void 0?r:Jc}};var Ie=new x(e=>e.complete());var pr=e=>e&&typeof e.length=="number"&&typeof e!="function";function Qi(e){return S(e?.then)}function Ki(e){return S(e[hr])}function Ji(e){return Symbol.asyncIterator&&S(e?.[Symbol.asyncIterator])}function Xi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function QE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var es=QE();function ts(e){return S(e?.[es])}function ns(e){return Ph(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:r,done:o}=yield zi(t.read());if(o)return yield zi(void 0);yield yield zi(r)}}finally{t.releaseLock()}})}function rs(e){return S(e?.getReader)}function k(e){if(e instanceof x)return e;if(e!=null){if(Ki(e))return KE(e);if(pr(e))return JE(e);if(Qi(e))return XE(e);if(Ji(e))return zh(e);if(ts(e))return ew(e);if(rs(e))return tw(e)}throw Xi(e)}function KE(e){return new x(n=>{let t=e[hr]();if(S(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function JE(e){return new x(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}function XE(e){return new x(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Wi)})}function ew(e){return new x(n=>{for(let t of e)if(n.next(t),n.closed)return;n.complete()})}function zh(e){return new x(n=>{nw(e,n).catch(t=>n.error(t))})}function tw(e){return zh(ns(e))}function nw(e,n){var t,r,o,i;return kh(this,void 0,void 0,function*(){try{for(t=Fh(e);r=yield t.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})}function ce(e,n,t,r=0,o=!1){let i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function iu(e){return S(e?.lift)}function C(e){return n=>{if(iu(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function T(e,n,t,r,o){return new Co(e,n,t,r,o)}var Co=class extends Vn{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function bo(e,n=0){return C((t,r)=>{t.subscribe(T(r,o=>ce(r,e,()=>r.next(o),n),()=>ce(r,e,()=>r.complete(),n),o=>ce(r,e,()=>r.error(o),n)))})}function To(e,n=0){return C((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function qh(e,n){return k(e).pipe(To(n),bo(n))}function Gh(e,n){return k(e).pipe(To(n),bo(n))}function Wh(e,n){return new x(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}function Zh(e,n){return new x(t=>{let r;return ce(t,n,()=>{r=e[es](),ce(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){t.error(s);return}i?t.complete():t.next(o)},0,!0)}),()=>S(r?.return)&&r.return()})}function os(e,n){if(!e)throw new Error("Iterable cannot be null");return new x(t=>{ce(t,n,()=>{let r=e[Symbol.asyncIterator]();ce(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function Yh(e,n){return os(ns(e),n)}function Qh(e,n){if(e!=null){if(Ki(e))return qh(e,n);if(pr(e))return Wh(e,n);if(Qi(e))return Gh(e,n);if(Ji(e))return os(e,n);if(ts(e))return Zh(e,n);if(rs(e))return Yh(e,n)}throw Xi(e)}function G(e,n){return n?Qh(e,n):k(e)}function is(e){return e&&S(e.schedule)}function su(e){return e[e.length-1]}function gr(e){return S(su(e))?e.pop():void 0}function Xe(e){return is(su(e))?e.pop():void 0}function Kh(e,n){return typeof su(e)=="number"?e.pop():n}function M(...e){let n=Xe(e);return G(e,n)}function A(e,n){return C((t,r)=>{let o=0;t.subscribe(T(r,i=>{r.next(e.call(n,i,o++))}))})}var{isArray:rw}=Array,{getPrototypeOf:ow,prototype:iw,keys:sw}=Object;function ss(e){if(e.length===1){let n=e[0];if(rw(n))return{args:n,keys:null};if(aw(n)){let t=sw(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}function aw(e){return e&&typeof e=="object"&&ow(e)===iw}var{isArray:cw}=Array;function uw(e,n){return cw(n)?e(...n):e(n)}function mr(e){return A(n=>uw(e,n))}function as(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function _o(...e){let n=Xe(e),t=gr(e),{args:r,keys:o}=ss(e);if(r.length===0)return G([],n);let i=new x(lw(r,n,o?s=>as(o,s):ve));return t?i.pipe(mr(t)):i}function lw(e,n,t=ve){return r=>{Jh(n,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Jh(n,()=>{let u=G(e[c],n),l=!1;u.subscribe(T(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Jh(e,n,t){e?ce(t,e,n):n()}function dw(...e){let n=gr(e),{args:t,keys:r}=ss(e),o=new x(i=>{let{length:s}=t;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;k(t[l]).subscribe(T(i,h=>{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?as(r,a):a),i.complete())}))}});return n?o.pipe(mr(n)):o}function re(e,n){return C((t,r)=>{let o=0;t.subscribe(T(r,i=>e.call(n,i,o++)&&r.next(i)))})}function et(e){return C((n,t)=>{let r=null,o=!1,i;r=n.subscribe(T(t,void 0,void 0,s=>{i=k(e(s,et(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function ze(e){return e<=0?()=>Ie:C((n,t)=>{let r=0;n.subscribe(T(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}var So={now(){return(So.delegate||Date).now()},delegate:void 0};var Mo=class extends B{constructor(n=1/0,t=1/0,r=So){super(),this._bufferSize=n,this._windowTime=t,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,t)}next(n){let{isStopped:t,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;t||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!n.closed;s+=r?1:2)n.next(i[s]);return this._checkFinalizedStatuses(n),t}_trimBuffer(){let{_bufferSize:n,_timestampProvider:t,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*n;if(n<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=t.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};function cu(e={}){let{connector:n=()=>new B,resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,u=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=c=void 0,l=d=!1},p=()=>{let m=s;f(),m?.unsubscribe()};return C((m,y)=>{u++,!d&&!l&&h();let _=c=c??n();y.add(()=>{u--,u===0&&!d&&!l&&(a=au(p,o))}),_.subscribe(y),!s&&u>0&&(s=new Gt({next:$=>_.next($),error:$=>{d=!0,h(),a=au(f,t,$),_.error($)},complete:()=>{l=!0,h(),a=au(f,r),_.complete()}}),k(m).subscribe(s))})(i)}}function au(e,n,...t){if(n===!0){e();return}if(n===!1)return;let r=new Gt({next:()=>{r.unsubscribe(),e()}});return k(n(...t)).subscribe(r)}function Xh(e,n,t){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:t}=e:r=e??1/0,cu({connector:()=>new Mo(r,n,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function ep(e,n,t,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&n.complete()},f=m=>u<r?p(m):c.push(m),p=m=>{i&&n.next(m),u++;let y=!1;k(t(m,l++)).subscribe(T(n,_=>{o?.(_),i?f(_):n.next(_)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;c.length&&u<r;){let _=c.shift();s?ce(n,s,()=>p(_)):p(_)}h()}catch(_){n.error(_)}}))};return e.subscribe(T(n,f,()=>{d=!0,h()})),()=>{a?.()}}function Q(e,n,t=1/0){return S(n)?Q((r,o)=>A((i,s)=>n(r,i,o,s))(k(e(r,o))),t):(typeof n=="number"&&(t=n),C((r,o)=>ep(r,o,e,t)))}function Tt(e=1/0){return Q(ve,e)}function tp(){return Tt(1)}function fn(...e){return tp()(G(e,Xe(e)))}function cs(...e){let n=Xe(e);return C((t,r)=>{(n?fn(e,t,n):fn(e,t)).subscribe(r)})}function ie(e,n){return C((t,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();t.subscribe(T(r,c=>{o?.unsubscribe();let u=0,l=i++;k(e(c,l)).subscribe(o=T(r,d=>r.next(n?n(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function us(e){return C((n,t)=>{k(e).subscribe(T(t,()=>t.complete(),it)),!t.closed&&n.subscribe(t)})}function he(e,n,t){let r=S(e)||n||t?{next:e,error:n,complete:t}:e;return r?C((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):ve}function vr(){return C((e,n)=>{let t=null;e._refCount++;let r=T(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){t=null;return}let o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}var yr=class extends x{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,iu(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Y;let t=this.getSubject();n.add(this.source.subscribe(T(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Y.EMPTY)}return n}refCount(){return vr()(this)}};var Dr={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame,{delegate:r}=Dr;r&&(n=r.requestAnimationFrame,t=r.cancelAnimationFrame);let o=n(i=>{t=void 0,e(i)});return new Y(()=>t?.(o))},requestAnimationFrame(...e){let{delegate:n}=Dr;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:n}=Dr;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var ye=class extends B{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){let{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var ls=class extends Y{constructor(n,t){super()}schedule(n,t=0){return this}};var xo={setInterval(e,n,...t){let{delegate:r}=xo;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){let{delegate:n}=xo;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};var _t=class extends ls{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return xo.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return t;t!=null&&xo.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(n,t);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r=!1,o;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,qt(r,this),n!=null&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}};var fw=1,uu,lu={};function np(e){return e in lu?(delete lu[e],!0):!1}var rp={setImmediate(e){let n=fw++;return lu[n]=!0,uu||(uu=Promise.resolve()),uu.then(()=>np(n)&&e()),n},clearImmediate(e){np(e)}};var{setImmediate:hw,clearImmediate:pw}=rp,No={setImmediate(...e){let{delegate:n}=No;return(n?.setImmediate||hw)(...e)},clearImmediate(e){let{delegate:n}=No;return(n?.clearImmediate||pw)(e)},delegate:void 0};var ds=class extends _t{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,r=0){return r!==null&&r>0?super.requestAsyncId(n,t,r):(n.actions.push(this),n._scheduled||(n._scheduled=No.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,t,r);let{actions:i}=n;t!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==t&&(No.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}};var Er=class e{constructor(n,t=e.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}};Er.now=So.now;var St=class extends Er{constructor(n,t=Er.now){super(n,t),this.actions=[],this._active=!1}flush(n){let{actions:t}=this;if(this._active){t.push(n);return}let r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}};var fs=class extends St{flush(n){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===t&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===t&&r.shift();)n.unsubscribe();throw o}}};var gw=new fs(ds);var Oe=new St(_t),du=Oe;var hs=class extends _t{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}schedule(n,t=0){return t>0?super.schedule(n,t):(this.delay=t,this.state=n,this.scheduler.flush(this),this)}execute(n,t){return t>0||this.closed?super.execute(n,t):this._execute(n,t)}requestAsyncId(n,t,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(n,t,r):(n.flush(this),0)}};var ps=class extends St{};var mw=new ps(hs);var gs=class extends _t{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,r=0){return r!==null&&r>0?super.requestAsyncId(n,t,r):(n.actions.push(this),n._scheduled||(n._scheduled=Dr.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,t,r);let{actions:i}=n;t!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==t&&(Dr.cancelAnimationFrame(t),n._scheduled=void 0)}};var ms=class extends St{flush(n){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===t&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===t&&r.shift();)n.unsubscribe();throw o}}};var vw=new ms(gs);function hn(e,n){let t=S(e)?e:()=>e,r=o=>o.error(t());return new x(n?o=>n.schedule(r,0,o):r)}function fu(e){return!!e&&(e instanceof x||S(e.lift)&&S(e.subscribe))}var st=dn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function yw(e,n){let t=typeof n=="object";return new Promise((r,o)=>{let i=!1,s;e.subscribe({next:a=>{s=a,i=!0},error:o,complete:()=>{i?r(s):t?r(n.defaultValue):o(new st)}})})}function vs(e){return e instanceof Date&&!isNaN(e)}var ys=dn(e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function at(e,n){let{first:t,each:r,with:o=Dw,scheduler:i=n??Oe,meta:s=null}=vs(e)?{first:e}:typeof e=="number"?{each:e}:e;if(t==null&&r==null)throw new TypeError("No timeout provided.");return C((a,c)=>{let u,l,d=null,h=0,f=p=>{l=ce(c,i,()=>{try{u.unsubscribe(),k(o({meta:s,lastValue:d,seen:h})).subscribe(c)}catch(m){c.error(m)}},p)};u=a.subscribe(T(c,p=>{l?.unsubscribe(),h++,c.next(d=p),r>0&&f(r)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!h&&f(t!=null?typeof t=="number"?t:+t-i.now():r)})}function Dw(e){throw new ys(e)}function Ds(e){return new x(n=>{k(e()).subscribe(n)})}var Ew=["addListener","removeListener"],ww=["addEventListener","removeEventListener"],Iw=["on","off"];function hu(e,n,t,r){if(S(t)&&(r=t,t=void 0),r)return hu(e,n,t).pipe(mr(r));let[o,i]=Tw(e)?ww.map(s=>a=>e[s](n,a,t)):Cw(e)?Ew.map(op(e,n)):bw(e)?Iw.map(op(e,n)):[];if(!o&&pr(e))return Q(s=>hu(s,n,t))(k(e));if(!o)throw new TypeError("Invalid event target");return new x(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function op(e,n){return t=>r=>e[t](n,r)}function Cw(e){return S(e.addListener)&&S(e.removeListener)}function bw(e){return S(e.on)&&S(e.off)}function Tw(e){return S(e.addEventListener)&&S(e.removeEventListener)}function Bn(e=0,n,t=du){let r=-1;return n!=null&&(is(n)?t=n:r=n),new x(o=>{let i=vs(e)?+e-t.now():e;i<0&&(i=0);let s=0;return t.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function _w(e=0,n=Oe){return e<0&&(e=0),Bn(e,e,n)}function Sw(...e){let n=Xe(e),t=Kh(e,1/0),r=e;return r.length?r.length===1?k(r[0]):Tt(t)(G(r,n)):Ie}function ip(e,n){return(t,r)=>!e.call(n,t,r)}function Mw(e,n,t){return[re(n,t)(k(e)),re(ip(n,t))(k(e))]}function sp(e){return C((n,t)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,t.next(u)}s&&t.complete()},c=()=>{i=null,s&&t.complete()};n.subscribe(T(t,u=>{r=!0,o=u,i||k(e(u)).subscribe(i=T(t,a,c))},()=>{s=!0,(!r||!i||i.closed)&&t.complete()}))})}function xw(e,n=Oe){return sp(()=>Bn(e,n))}function Nw(e,...n){var t,r;let o=(t=Xe(n))!==null&&t!==void 0?t:Oe,i=(r=n[0])!==null&&r!==void 0?r:null,s=n[1]||1/0;return C((a,c)=>{let u=[],l=!1,d=p=>{let{buffer:m,subs:y}=p;y.unsubscribe(),qt(u,p),c.next(m),l&&h()},h=()=>{if(u){let p=new Y;c.add(p);let y={buffer:[],subs:p};u.push(y),ce(p,o,()=>d(y),e)}};i!==null&&i>=0?ce(c,o,h,i,!0):l=!0,h();let f=T(c,p=>{let m=u.slice();for(let y of m){let{buffer:_}=y;_.push(p),s<=_.length&&d(y)}},()=>{for(;u?.length;)c.next(u.shift().buffer);f?.unsubscribe(),c.complete(),c.unsubscribe()},void 0,()=>u=null);a.subscribe(f)})}function Es(e,n,t,r,o){return(i,s)=>{let a=t,c=n,u=0;i.subscribe(T(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function ap(e,n){return C(Es(e,n,arguments.length>=2,!1,!0))}var Rw=(e,n)=>(e.push(n),e);function Aw(){return C((e,n)=>{ap(Rw,[])(e).subscribe(n)})}function ct(e,n){return S(n)?Q(e,n,1):Q(e,1)}function Ow(e){return C((n,t)=>{let r=!1,o=null,i=null,s=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let a=o;o=null,t.next(a)}};n.subscribe(T(t,a=>{i?.unsubscribe(),r=!0,o=a,i=T(t,s,it),k(e(a)).subscribe(i)},()=>{s(),t.complete()},void 0,()=>{o=i=null}))})}function cp(e,n=Oe){return C((t,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u)}};function c(){let u=s+e,l=n.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}t.subscribe(T(r,u=>{i=u,s=n.now(),o||(o=n.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function pn(e){return C((n,t)=>{let r=!1;n.subscribe(T(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function up(){return C((e,n)=>{e.subscribe(T(n,it))})}function pu(e){return A(()=>e)}function gu(e,n){return n?t=>fn(n.pipe(ze(1),up()),t.pipe(gu(e))):Q((t,r)=>k(e(t,r)).pipe(ze(1),pu(t)))}function kw(e,n=Oe){let t=Bn(e,n);return gu(()=>t)}function lp(e,n=ve){return e=e??Pw,C((t,r)=>{let o,i=!0;t.subscribe(T(r,s=>{let a=n(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Pw(e,n){return e===n}function ws(e=Fw){return C((n,t)=>{let r=!1;n.subscribe(T(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function Fw(){return new st}function Un(e){return C((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function Mt(e,n){let t=arguments.length>=2;return r=>r.pipe(e?re((o,i)=>e(o,i,r)):ve,ze(1),t?pn(n):ws(()=>new st))}function Lw(e,n,t,r){return C((o,i)=>{let s;!n||typeof n=="function"?s=n:{duration:t,element:s,connector:r}=n;let a=new Map,c=p=>{a.forEach(p),p(i)},u=p=>c(m=>m.error(p)),l=0,d=!1,h=new Co(i,p=>{try{let m=e(p),y=a.get(m);if(!y){a.set(m,y=r?r():new B);let _=f(m,y);if(i.next(_),t){let $=T(y,()=>{y.complete(),$?.unsubscribe()},void 0,void 0,()=>a.delete(m));h.add(k(t(_)).subscribe($))}}y.next(s?s(p):p)}catch(m){u(m)}},()=>c(p=>p.complete()),u,()=>a.clear(),()=>(d=!0,l===0));o.subscribe(h);function f(p,m){let y=new x(_=>{l++;let $=m.subscribe(_);return()=>{$.unsubscribe(),--l===0&&d&&h.unsubscribe()}});return y.key=p,y}})}function wr(e){return e<=0?()=>Ie:C((n,t)=>{let r=[];n.subscribe(T(t,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function mu(e,n){let t=arguments.length>=2;return r=>r.pipe(e?re((o,i)=>e(o,i,r)):ve,wr(1),t?pn(n):ws(()=>new st))}function jw(){return C((e,n)=>{let t,r=!1;e.subscribe(T(n,o=>{let i=t;t=o,r&&n.next([i,o]),r=!0}))})}function Vw(...e){let n=e.length;if(n===0)throw new Error("list of properties cannot be empty.");return A(t=>{let r=t;for(let o=0;o<n;o++){let i=r?.[e[o]];if(typeof i<"u")r=i;else return}return r})}function Is(e,n){return C(Es(e,n,arguments.length>=2,!0))}function Bw(e){return re((n,t)=>e<=t)}function Uw(e){return C((n,t)=>{let r=!1,o=0;n.subscribe(T(t,i=>(r||(r=!e(i,o++)))&&t.next(i)))})}function Hw(e,n){return S(n)?ie(()=>e,n):ie(()=>e)}function dp(e,n){return C((t,r)=>{let o=n;return ie((i,s)=>e(o,i,s),(i,s)=>(o=s,s))(t).subscribe(r),()=>{o=null}})}function fp(e,n=!1){return C((t,r)=>{let o=0;t.subscribe(T(r,i=>{let s=e(i,o++);(s||n)&&r.next(i),!s&&r.complete()}))})}function hp(...e){let n=gr(e);return C((t,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c<o;c++)k(e[c]).subscribe(T(r,u=>{i[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(ve))&&(s=null))},it));t.subscribe(T(r,c=>{if(a){let u=[c,...i];r.next(n?n(...u):u)}}))})}function Eu(e,n){return Object.is(e,n)}var ue=null,Cs=!1,wu=1,Ne=Symbol("SIGNAL");function P(e){let n=ue;return ue=e,n}function Iu(){return ue}var Ir={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Cr(e){if(Cs)throw new Error("");if(ue===null)return;ue.consumerOnSignalRead(e);let n=ue.nextProducerIndex++;if(Ms(ue),n<ue.producerNode.length&&ue.producerNode[n]!==e&&Ro(ue)){let t=ue.producerNode[n];Ss(t,ue.producerIndexOfThis[n])}ue.producerNode[n]!==e&&(ue.producerNode[n]=e,ue.producerIndexOfThis[n]=Ro(ue)?gp(e,ue,n):0),ue.producerLastReadVersion[n]=e.version}function pp(){wu++}function Cu(e){if(!(Ro(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===wu)){if(!e.producerMustRecompute(e)&&!_s(e)){Du(e);return}e.producerRecomputeValue(e),Du(e)}}function bu(e){if(e.liveConsumerNode===void 0)return;let n=Cs;Cs=!0;try{for(let t of e.liveConsumerNode)t.dirty||$w(t)}finally{Cs=n}}function Tu(){return ue?.consumerAllowSignalWrites!==!1}function $w(e){e.dirty=!0,bu(e),e.consumerMarkedDirty?.(e)}function Du(e){e.dirty=!1,e.lastCleanEpoch=wu}function Ao(e){return e&&(e.nextProducerIndex=0),P(e)}function Ts(e,n){if(P(n),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Ro(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)Ss(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function _s(e){Ms(e);for(let n=0;n<e.producerNode.length;n++){let t=e.producerNode[n],r=e.producerLastReadVersion[n];if(r!==t.version||(Cu(t),r!==t.version))return!0}return!1}function Oo(e){if(Ms(e),Ro(e))for(let n=0;n<e.producerNode.length;n++)Ss(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function gp(e,n,t){if(mp(e),e.liveConsumerNode.length===0&&vp(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=gp(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(t),e.liveConsumerNode.push(n)-1}function Ss(e,n){if(mp(e),e.liveConsumerNode.length===1&&vp(e))for(let r=0;r<e.producerNode.length;r++)Ss(e.producerNode[r],e.producerIndexOfThis[r]);let t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[n],o=e.liveConsumerNode[n];Ms(o),o.producerIndexOfThis[r]=n}}function Ro(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Ms(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function mp(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function vp(e){return e.producerNode!==void 0}function xs(e,n){let t=Object.create(zw);t.computation=e,n!==void 0&&(t.equal=n);let r=()=>{if(Cu(t),Cr(t),t.value===bs)throw t.error;return t.value};return r[Ne]=t,r}var vu=Symbol("UNSET"),yu=Symbol("COMPUTING"),bs=Symbol("ERRORED"),zw=V(v({},Ir),{value:vu,dirty:!0,error:null,equal:Eu,kind:"computed",producerMustRecompute(e){return e.value===vu||e.value===yu},producerRecomputeValue(e){if(e.value===yu)throw new Error("Detected cycle in computations.");let n=e.value;e.value=yu;let t=Ao(e),r,o=!1;try{r=e.computation(),P(null),o=n!==vu&&n!==bs&&r!==bs&&e.equal(n,r)}catch(i){r=bs,e.error=i}finally{Ts(e,t)}if(o){e.value=n;return}e.value=r,e.version++}});function qw(){throw new Error}var yp=qw;function Dp(e){yp(e)}function _u(e){yp=e}var Gw=null;function Su(e,n){let t=Object.create(Ns);t.value=e,n!==void 0&&(t.equal=n);let r=()=>(Cr(t),t.value);return r[Ne]=t,r}function br(e,n){Tu()||Dp(e),e.equal(e.value,n)||(e.value=n,Ww(e))}function Mu(e,n){Tu()||Dp(e),br(e,n(e.value))}var Ns=V(v({},Ir),{equal:Eu,value:void 0,kind:"signal"});function Ww(e){e.version++,pp(),bu(e),Gw?.()}function xu(e){let n=P(null);try{return e()}finally{P(n)}}var Nu;function ko(){return Nu}function Wt(e){let n=Nu;return Nu=e,n}var Rs=Symbol("NotFound");var Eg="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(n,t){super(Da(n,t)),this.code=n}};function Kw(e){return`NG0${Math.abs(e)}`}function Da(e,n){return`${Kw(e)}${n?": "+n:""}`}var Ea=Symbol("InputSignalNode#UNSET"),wg=V(v({},Ns),{transformFn:void 0,applyValueToInputSignal(e,n){br(e,n)}});function Ig(e,n){let t=Object.create(wg);t.value=e,t.transformFn=n?.transform;function r(){if(Cr(t),t.value===Ea){let o=null;throw new D(-950,o)}return t.value}return r[Ne]=t,r}function Yo(e){return{toString:e}.toString()}var As="__parameters__";function Jw(e){return function(...t){if(e){let r=e(...t);for(let o in r)this[o]=r[o]}}}function nd(e,n,t){return Yo(()=>{let r=Jw(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(As)?c[As]:Object.defineProperty(c,As,{value:[]})[As];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var pe=globalThis;function W(e){for(let n in e)if(e[n]===W)return n;throw Error("Could not find renamed property on target object.")}function Xw(e,n){for(let t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Pe(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Pe).join(", ")}]`;if(e==null)return""+e;let n=e.overriddenName||e.name;if(n)return`${n}`;let t=e.toString();if(t==null)return""+t;let r=t.indexOf(`
4
4
  `);return r>=0?t.slice(0,r):t}function Gu(e,n){return e?n?`${e} ${n}`:e:n||""}var eI=W({__forward_ref__:W});function Cg(e){return e.__forward_ref__=Cg,e.toString=function(){return Pe(this())},e}function De(e){return bg(e)?e():e}function bg(e){return typeof e=="function"&&e.hasOwnProperty(eI)&&e.__forward_ref__===Cg}function E(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ht(e){return{providers:e.providers||[],imports:e.imports||[]}}function wa(e){return Ep(e,_g)||Ep(e,Sg)}function Tg(e){return wa(e)!==null}function Ep(e,n){return e.hasOwnProperty(n)?e[n]:null}function tI(e){let n=e&&(e[_g]||e[Sg]);return n||null}function wp(e){return e&&(e.hasOwnProperty(Ip)||e.hasOwnProperty(nI))?e[Ip]:null}var _g=W({\u0275prov:W}),Ip=W({\u0275inj:W}),Sg=W({ngInjectableDef:W}),nI=W({ngInjectorDef:W}),w=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,t){this._desc=n,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=E({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Mg(e){return e&&!!e.\u0275providers}var rI=W({\u0275cmp:W}),oI=W({\u0275dir:W}),iI=W({\u0275pipe:W}),sI=W({\u0275mod:W}),$s=W({\u0275fac:W}),jo=W({__NG_ELEMENT_ID__:W}),Cp=W({__NG_ENV_ID__:W});function Nt(e){return typeof e=="string"?e:e==null?"":String(e)}function aI(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Nt(e)}function xg(e,n){throw new D(-200,e)}function rd(e,n){throw new D(-201,!1)}var j=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(j||{}),Wu;function Ng(){return Wu}function ke(e){let n=Wu;return Wu=e,n}function Rg(e,n,t){let r=wa(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(t&j.Optional)return null;if(n!==void 0)return n;rd(e,"Injector")}var cI={},$n=cI,Zu="__NG_DI_FLAG__",zs=class{injector;constructor(n){this.injector=n}retrieve(n,t){let r=t;return this.injector.get(n,r.optional?Rs:$n,r)}},qs="ngTempTokenPath",uI="ngTokenPath",lI=/\n/gm,dI="\u0275",bp="__source";function fI(e,n=j.Default){if(ko()===void 0)throw new D(-203,!1);if(ko()===null)return Rg(e,void 0,n);{let t=ko(),r;return t instanceof zs?r=t.injector:r=t,r.get(e,n&j.Optional?null:void 0,n)}}function I(e,n=j.Default){return(Ng()||fI)(De(e),n)}function g(e,n=j.Default){return I(e,Ia(n))}function Ia(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Yu(e){let n=[];for(let t=0;t<e.length;t++){let r=De(e[t]);if(Array.isArray(r)){if(r.length===0)throw new D(900,!1);let o,i=j.Default;for(let s=0;s<r.length;s++){let a=r[s],c=hI(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}n.push(I(o,i))}else n.push(I(r))}return n}function od(e,n){return e[Zu]=n,e.prototype[Zu]=n,e}function hI(e){return e[Zu]}function pI(e,n,t,r){let o=e[qs];throw n[bp]&&o.unshift(n[bp]),e.message=gI(`
5
5
  `+e.message,o,t,r),e[uI]=o,e[qs]=null,e}function gI(e,n,t,r=null){e=e&&e.charAt(0)===`
6
6
  `&&e.charAt(1)==dI?e.slice(2):e;let o=Pe(n);if(Array.isArray(n))o=n.map(Pe).join(" -> ");else if(typeof n=="object"){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Pe(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(lI,`
7
7
  `)}`}var SB=od(nd("Inject",e=>({token:e})),-1),id=od(nd("Optional"),8);var Ag=od(nd("SkipSelf"),4);function qn(e,n){let t=e.hasOwnProperty($s);return t?e[$s]:null}function mI(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=n[r];if(t&&(o=t(o),i=t(i)),i!==o)return!1}return!0}function vI(e){return e.flat(Number.POSITIVE_INFINITY)}function sd(e,n){e.forEach(t=>Array.isArray(t)?sd(t,n):n(t))}function Og(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Gs(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function yI(e,n){let t=[];for(let r=0;r<e;r++)t.push(n);return t}function DI(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(o===1)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;){let i=o-2;e[o]=e[i],o--}e[n]=t,e[n+1]=r}}function $r(e,n,t){let r=Qo(e,n);return r>=0?e[r|1]=t:(r=~r,DI(e,r,n,t)),r}function Ru(e,n){let t=Qo(e,n);if(t>=0)return e[t|1]}function Qo(e,n){return EI(e,n,1)}function EI(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<t];if(n===s)return i<<t;s>n?o=i:r=i+1}return~(o<<t)}var Rt={},Re=[],Rr=new w(""),kg=new w("",-1),Pg=new w(""),Ws=class{get(n,t=$n){if(t===$n){let r=new Error(`NullInjectorError: No provider for ${Pe(n)}!`);throw r.name="NullInjectorError",r}return t}};function Fg(e,n){let t=e[sI]||null;if(!t&&n===!0)throw new Error(`Type ${Pe(e)} does not have '\u0275mod' property.`);return t}function vn(e){return e[rI]||null}function Lg(e){return e[oI]||null}function wI(e){return e[iI]||null}function tr(e){return{\u0275providers:e}}function II(...e){return{\u0275providers:jg(!0,e),\u0275fromNgModule:!0}}function jg(e,...n){let t=[],r=new Set,o,i=s=>{t.push(s)};return sd(n,s=>{let a=s;Qu(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Vg(o,i),t}function Vg(e,n){for(let t=0;t<e.length;t++){let{ngModule:r,providers:o}=e[t];ad(o,i=>{n(i,r)})}}function Qu(e,n,t,r){if(e=De(e),!e)return!1;let o=null,i=wp(e),s=!i&&vn(e);if(!i&&!s){let c=e.ngModule;if(i=wp(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Qu(u,n,t,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{sd(i.imports,l=>{Qu(l,n,t,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Vg(u,n)}if(!a){let u=qn(o)||(()=>new o);n({provide:o,useFactory:u,deps:Re},o),n({provide:Pg,useValue:o,multi:!0},o),n({provide:Rr,useValue:()=>I(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;ad(c,l=>{n(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function ad(e,n){for(let t of e)Mg(t)&&(t=t.\u0275providers),Array.isArray(t)?ad(t,n):n(t)}var CI=W({provide:String,useValue:W});function Bg(e){return e!==null&&typeof e=="object"&&CI in e}function bI(e){return!!(e&&e.useExisting)}function TI(e){return!!(e&&e.useFactory)}function Ar(e){return typeof e=="function"}function _I(e){return!!e.useClass}var Ca=new w(""),js={},Tp={},Au;function ba(){return Au===void 0&&(Au=new Ws),Au}var be=class{},Bo=class extends be{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,Ju(n,s=>this.processProvider(s)),this.records.set(kg,Tr(void 0,this)),o.has("environment")&&this.records.set(be,Tr(void 0,this));let i=this.records.get(Ca);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Pg,Re,j.Self))}retrieve(n,t){let r=t;return this.get(n,r.optional?Rs:$n,r)}destroy(){Fo(this),this._destroyed=!0;let n=P(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),P(n)}}onDestroy(n){return Fo(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Fo(this);let t=Wt(this),r=ke(void 0),o;try{return n()}finally{Wt(t),ke(r)}}get(n,t=$n,r=j.Default){if(Fo(this),n.hasOwnProperty(Cp))return n[Cp](this);r=Ia(r);let o,i=Wt(this),s=ke(void 0);try{if(!(r&j.SkipSelf)){let c=this.records.get(n);if(c===void 0){let u=RI(n)&&wa(n);u&&this.injectableDefInScope(u)?c=Tr(Ku(n),js):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let a=r&j.Self?ba():this.parent;return t=r&j.Optional&&t===$n?null:t,a.get(n,t)}catch(a){if(a.name==="NullInjectorError"){if((a[qs]=a[qs]||[]).unshift(Pe(n)),i)throw a;return pI(a,n,"R3InjectorError",this.source)}else throw a}finally{ke(s),Wt(i)}}resolveInjectorInitializers(){let n=P(null),t=Wt(this),r=ke(void 0),o;try{let i=this.get(Rr,Re,j.Self);for(let s of i)s()}finally{Wt(t),ke(r),P(n)}}toString(){let n=[],t=this.records;for(let r of t.keys())n.push(Pe(r));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=De(n);let t=Ar(n)?n:De(n&&n.provide),r=MI(n);if(!Ar(n)&&n.multi===!0){let o=this.records.get(t);o||(o=Tr(void 0,js,!0),o.factory=()=>Yu(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t,r){let o=P(null);try{return t.value===Tp?xg(Pe(n)):t.value===js&&(t.value=Tp,t.value=t.factory(void 0,r)),typeof t.value=="object"&&t.value&&NI(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{P(o)}}injectableDefInScope(n){if(!n.providedIn)return!1;let t=De(n.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){let t=this._onDestroyHooks.indexOf(n);t!==-1&&this._onDestroyHooks.splice(t,1)}};function Ku(e){let n=wa(e),t=n!==null?n.factory:qn(e);if(t!==null)return t;if(e instanceof w)throw new D(204,!1);if(e instanceof Function)return SI(e);throw new D(204,!1)}function SI(e){if(e.length>0)throw new D(204,!1);let t=tI(e);return t!==null?()=>t.factory(e):()=>new e}function MI(e){if(Bg(e))return Tr(void 0,e.useValue);{let n=Ug(e);return Tr(n,js)}}function Ug(e,n,t){let r;if(Ar(e)){let o=De(e);return qn(o)||Ku(o)}else if(Bg(e))r=()=>De(e.useValue);else if(TI(e))r=()=>e.useFactory(...Yu(e.deps||[]));else if(bI(e))r=(o,i)=>I(De(e.useExisting),i!==void 0&&i&j.Optional?j.Optional:void 0);else{let o=De(e&&(e.useClass||e.provide));if(xI(e))r=()=>new o(...Yu(e.deps));else return qn(o)||Ku(o)}return r}function Fo(e){if(e.destroyed)throw new D(205,!1)}function Tr(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function xI(e){return!!e.deps}function NI(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function RI(e){return typeof e=="function"||typeof e=="object"&&e instanceof w}function Ju(e,n){for(let t of e)Array.isArray(t)?Ju(t,n):t&&Mg(t)?Ju(t.\u0275providers,n):n(t)}function Le(e,n){let t;e instanceof Bo?(Fo(e),t=e):t=new zs(e);let r,o=Wt(t),i=ke(void 0);try{return n()}finally{Wt(o),ke(i)}}function cd(){return Ng()!==void 0||ko()!=null}function ud(e){if(!cd())throw new D(-203,!1)}function AI(e){let n=pe.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function OI(e){return typeof e=="function"}var Ft=0,O=1,N=2,Te=3,lt=4,je=5,Or=6,Zs=7,se=8,kr=9,Zt=10,Z=11,Uo=12,_p=13,zr=14,Fe=15,Gn=16,_r=17,Yt=18,Ta=19,Hg=20,gn=21,Ou=22,Wn=23,tt=24,xr=25,ee=26,ld=1;var Zn=7,Ys=8,Pr=9,Ce=10;function mn(e){return Array.isArray(e)&&typeof e[ld]=="object"}function Kt(e){return Array.isArray(e)&&e[ld]===!0}function dd(e){return(e.flags&4)!==0}function qr(e){return e.componentOffset>-1}function _a(e){return(e.flags&1)===1}function dt(e){return!!e.template}function Qs(e){return(e[N]&512)!==0}function Gr(e){return(e[N]&256)===256}var Xu=class{previousValue;currentValue;firstChange;constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}};function $g(e,n,t,r){n!==null?n.applyValueToInputSignal(n,r):e[t]=r}var Lt=(()=>{let e=()=>zg;return e.ngInherit=!0,e})();function zg(e){return e.type.prototype.ngOnChanges&&(e.setInput=PI),kI}function kI(){let e=Gg(this),n=e?.current;if(n){let t=e.previous;if(t===Rt)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function PI(e,n,t,r,o){let i=this.declaredInputs[r],s=Gg(e)||FI(e,{previous:Rt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Xu(u&&u.currentValue,t,c===Rt),$g(e,n,o,t)}var qg="__ngSimpleChanges__";function Gg(e){return e[qg]||null}function FI(e,n){return e[qg]=n}var Sp=null;var K=function(e,n=null,t){Sp?.(e,n,t)},Wg="svg",LI="math";function At(e){for(;Array.isArray(e);)e=e[Ft];return e}function jI(e){for(;Array.isArray(e);){if(typeof e[ld]=="object")return e;e=e[Ft]}return null}function Zg(e,n){return At(n[e])}function jt(e,n){return At(n[e.index])}function fd(e,n){return e.data[n]}function Wr(e,n){return e[n]}function Yg(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}function Ot(e,n){let t=n[e];return mn(t)?t:t[Ft]}function VI(e){return(e[N]&4)===4}function hd(e){return(e[N]&128)===128}function BI(e){return Kt(e[Te])}function yn(e,n){return n==null?null:e[n]}function Qg(e){e[_r]=0}function Kg(e){e[N]&1024||(e[N]|=1024,hd(e)&&Zr(e))}function UI(e,n){for(;e>0;)n=n[zr],e--;return n}function Sa(e){return!!(e[N]&9216||e[tt]?.dirty)}function el(e){e[Zt].changeDetectionScheduler?.notify(8),e[N]&64&&(e[N]|=1024),Sa(e)&&Zr(e)}function Zr(e){e[Zt].changeDetectionScheduler?.notify(0);let n=Yn(e);for(;n!==null&&!(n[N]&8192||(n[N]|=8192,!hd(n)));)n=Yn(n)}function Jg(e,n){if(Gr(e))throw new D(911,!1);e[gn]===null&&(e[gn]=[]),e[gn].push(n)}function HI(e,n){if(e[gn]===null)return;let t=e[gn].indexOf(n);t!==-1&&e[gn].splice(t,1)}function Yn(e){let n=e[Te];return Kt(n)?n[Te]:n}function pd(e){return e[Zs]??=[]}function gd(e){return e.cleanup??=[]}function $I(e,n,t,r){let o=pd(n);o.push(t),e.firstCreatePass&&gd(e).push(r,o.length-1)}var F={lFrame:sm(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var tl=!1;function zI(){return F.lFrame.elementDepthCount}function qI(){F.lFrame.elementDepthCount++}function GI(){F.lFrame.elementDepthCount--}function md(){return F.bindingsEnabled}function Xg(){return F.skipHydrationRootTNode!==null}function WI(e){return F.skipHydrationRootTNode===e}function ZI(){F.skipHydrationRootTNode=null}function b(){return F.lFrame.lView}function z(){return F.lFrame.tView}function vd(e){return F.lFrame.contextLView=e,e[se]}function yd(e){return F.lFrame.contextLView=null,e}function Se(){let e=em();for(;e!==null&&e.type===64;)e=e.parent;return e}function em(){return F.lFrame.currentTNode}function YI(){let e=F.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function wn(e,n){let t=F.lFrame;t.currentTNode=e,t.isParent=n}function Dd(){return F.lFrame.isParent}function Ed(){F.lFrame.isParent=!1}function QI(){return F.lFrame.contextLView}function tm(){return tl}function Ks(e){let n=tl;return tl=e,n}function Ve(){let e=F.lFrame,n=e.bindingRootIndex;return n===-1&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function nm(){return F.lFrame.bindingIndex}function KI(e){return F.lFrame.bindingIndex=e}function In(){return F.lFrame.bindingIndex++}function Ma(e){let n=F.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function JI(){return F.lFrame.inI18n}function XI(e,n){let t=F.lFrame;t.bindingIndex=t.bindingRootIndex=e,nl(n)}function eC(){return F.lFrame.currentDirectiveIndex}function nl(e){F.lFrame.currentDirectiveIndex=e}function rm(e){let n=F.lFrame.currentDirectiveIndex;return n===-1?null:e[n]}function wd(){return F.lFrame.currentQueryIndex}function xa(e){F.lFrame.currentQueryIndex=e}function tC(e){let n=e[O];return n.type===2?n.declTNode:n.type===1?e[je]:null}function om(e,n,t){if(t&j.SkipSelf){let o=n,i=e;for(;o=o.parent,o===null&&!(t&j.Host);)if(o=tC(i),o===null||(i=i[zr],o.type&10))break;if(o===null)return!1;n=o,e=i}let r=F.lFrame=im();return r.currentTNode=n,r.lView=e,!0}function Id(e){let n=im(),t=e[O];F.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function im(){let e=F.lFrame,n=e===null?null:e.child;return n===null?sm(e):n}function sm(e){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=n),n}function am(){let e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var cm=am;function Cd(){let e=am();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function nC(e){return(F.lFrame.contextLView=UI(e,F.lFrame.contextLView))[se]}function Vt(){return F.lFrame.selectedIndex}function Qn(e){F.lFrame.selectedIndex=e}function Cn(){let e=F.lFrame;return fd(e.tView,e.selectedIndex)}function MB(){F.lFrame.currentNamespace=Wg}function xB(){rC()}function rC(){F.lFrame.currentNamespace=null}function oC(){return F.lFrame.currentNamespace}var um=!0;function Na(){return um}function Ra(e){um=e}function iC(e,n,t){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){let s=zg(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}function bd(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t<r;t++){let i=e.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-t,s),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),c&&(e.viewHooks??=[]).push(-t,c),u&&((e.viewHooks??=[]).push(t,u),(e.viewCheckHooks??=[]).push(t,u)),l!=null&&(e.destroyHooks??=[]).push(t,l)}}function Vs(e,n,t){lm(e,n,3,t)}function Bs(e,n,t,r){(e[N]&3)===t&&lm(e,n,t,r)}function ku(e,n){let t=e[N];(t&3)===n&&(t&=16383,t+=1,e[N]=t)}function lm(e,n,t,r){let o=r!==void 0?e[_r]&65535:0,i=r??-1,s=n.length-1,a=0;for(let c=o;c<s;c++)if(typeof n[c+1]=="number"){if(a=n[c],r!=null&&a>=r)break}else n[c]<0&&(e[_r]+=65536),(a<i||i==-1)&&(sC(e,t,n,c),e[_r]=(e[_r]&4294901760)+c+2),c++}function Mp(e,n){K(4,e,n);let t=P(null);try{n.call(e)}finally{P(t),K(5,e,n)}}function sC(e,n,t,r){let o=t[r]<0,i=t[r+1],s=o?-t[r]:t[r],a=e[s];o?e[N]>>14<e[_r]>>16&&(e[N]&3)===n&&(e[N]+=16384,Mp(a,i)):Mp(a,i)}var Nr=-1,Kn=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,t,r){this.factory=n,this.canSeeViewProviders=t,this.injectImpl=r}};function aC(e){return(e.flags&8)!==0}function cC(e){return(e.flags&16)!==0}function uC(e,n,t){let r=0;for(;r<t.length;){let o=t[r];if(typeof o=="number"){if(o!==0)break;r++;let i=t[r++],s=t[r++],a=t[r++];e.setAttribute(n,s,a,i)}else{let i=o,s=t[++r];lC(i)?e.setProperty(n,i,s):e.setAttribute(n,i,s),r++}}return r}function dm(e){return e===3||e===4||e===6}function lC(e){return e.charCodeAt(0)===64}function Fr(e,n){if(!(n===null||n.length===0))if(e===null||e.length===0)e=n.slice();else{let t=-1;for(let r=0;r<n.length;r++){let o=n[r];typeof o=="number"?t=o:t===0||(t===-1||t===2?xp(e,t,o,null,n[++r]):xp(e,t,o,null,null))}}return e}function xp(e,n,t,r,o){let i=0,s=e.length;if(n===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===n){s=-1;break}else if(a>n){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===t){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,n),i=s+1),e.splice(i++,0,t),o!==null&&e.splice(i++,0,o)}function fm(e){return e!==Nr}function Js(e){return e&32767}function dC(e){return e>>16}function Xs(e,n){let t=dC(e),r=n;for(;t>0;)r=r[zr],t--;return r}var rl=!0;function ea(e){let n=rl;return rl=e,n}var fC=256,hm=fC-1,pm=5,hC=0,xt={};function pC(e,n,t){let r;typeof t=="string"?r=t.charCodeAt(0)||0:t.hasOwnProperty(jo)&&(r=t[jo]),r==null&&(r=t[jo]=hC++);let o=r&hm,i=1<<o;n.data[e+(o>>pm)]|=i}function ta(e,n){let t=gm(e,n);if(t!==-1)return t;let r=n[O];r.firstCreatePass&&(e.injectorIndex=n.length,Pu(r.data,e),Pu(n,null),Pu(r.blueprint,null));let o=Td(e,n),i=e.injectorIndex;if(fm(o)){let s=Js(o),a=Xs(o,n),c=a[O].data;for(let u=0;u<8;u++)n[i+u]=a[s+u]|c[s+u]}return n[i+8]=o,i}function Pu(e,n){e.push(0,0,0,0,0,0,0,0,n)}function gm(e,n){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||n[e.injectorIndex+8]===null?-1:e.injectorIndex}function Td(e,n){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;o!==null;){if(r=Em(o),r===null)return Nr;if(t++,o=o[zr],r.injectorIndex!==-1)return r.injectorIndex|t<<16}return Nr}function ol(e,n,t){pC(e,n,t)}function gC(e,n){if(n==="class")return e.classes;if(n==="style")return e.styles;let t=e.attrs;if(t){let r=t.length,o=0;for(;o<r;){let i=t[o];if(dm(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof t[o]=="string";)o++;else{if(i===n)return t[o+1];o=o+2}}}return null}function mm(e,n,t){if(t&j.Optional||e!==void 0)return e;rd(n,"NodeInjector")}function vm(e,n,t,r){if(t&j.Optional&&r===void 0&&(r=null),(t&(j.Self|j.Host))===0){let o=e[kr],i=ke(void 0);try{return o?o.get(n,r,t&j.Optional):Rg(n,r,t&j.Optional)}finally{ke(i)}}return mm(r,n,t)}function ym(e,n,t,r=j.Default,o){if(e!==null){if(n[N]&2048&&!(r&j.Self)){let s=DC(e,n,t,r,xt);if(s!==xt)return s}let i=Dm(e,n,t,r,xt);if(i!==xt)return i}return vm(n,t,r,o)}function Dm(e,n,t,r,o){let i=vC(t);if(typeof i=="function"){if(!om(n,e,r))return r&j.Host?mm(o,t,r):vm(n,t,r,o);try{let s;if(s=i(r),s==null&&!(r&j.Optional))rd(t);else return s}finally{cm()}}else if(typeof i=="number"){let s=null,a=gm(e,n),c=Nr,u=r&j.Host?n[Fe][je]:null;for((a===-1||r&j.SkipSelf)&&(c=a===-1?Td(e,n):n[a+8],c===Nr||!Rp(r,!1)?a=-1:(s=n[O],a=Js(c),n=Xs(c,n)));a!==-1;){let l=n[O];if(Np(i,a,l.data)){let d=mC(a,n,t,s,r,u);if(d!==xt)return d}c=n[a+8],c!==Nr&&Rp(r,n[O].data[a+8]===u)&&Np(i,a,n)?(s=l,a=Js(c),n=Xs(c,n)):a=-1}}return o}function mC(e,n,t,r,o,i){let s=n[O],a=s.data[e+8],c=r==null?qr(a)&&rl:r!=s&&(a.type&3)!==0,u=o&j.Host&&i===a,l=Us(a,s,t,c,u);return l!==null?Ho(n,s,l,a,o):xt}function Us(e,n,t,r,o){let i=e.providerIndexes,s=n.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f<h;f++){let p=s[f];if(f<c&&t===p||f>=c&&p.type===t)return f}if(o){let f=s[c];if(f&&dt(f)&&f.type===t)return c}return null}function Ho(e,n,t,r,o){let i=e[t],s=n.data;if(i instanceof Kn){let a=i;a.resolving&&xg(aI(s[t]));let c=ea(a.canSeeViewProviders);a.resolving=!0;let u,l=a.injectImpl?ke(a.injectImpl):null,d=om(e,r,j.Default);try{i=e[t]=a.factory(void 0,o,s,e,r),n.firstCreatePass&&t>=r.directiveStart&&iC(t,s[t],n)}finally{l!==null&&ke(l),ea(c),a.resolving=!1,cm()}}return i}function vC(e){if(typeof e=="string")return e.charCodeAt(0)||0;let n=e.hasOwnProperty(jo)?e[jo]:void 0;return typeof n=="number"?n>=0?n&hm:yC:n}function Np(e,n,t){let r=1<<e;return!!(t[n+(e>>pm)]&r)}function Rp(e,n){return!(e&j.Self)&&!(e&j.Host&&n)}var zn=class{_tNode;_lView;constructor(n,t){this._tNode=n,this._lView=t}get(n,t,r){return ym(this._tNode,this._lView,n,Ia(r),t)}};function yC(){return new zn(Se(),b())}function _d(e){return Yo(()=>{let n=e.prototype.constructor,t=n[$s]||il(n),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[$s]||il(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function il(e){return bg(e)?()=>{let n=il(De(e));return n&&n()}:qn(e)}function DC(e,n,t,r,o){let i=e,s=n;for(;i!==null&&s!==null&&s[N]&2048&&!Qs(s);){let a=Dm(i,s,t,r|j.Self,xt);if(a!==xt)return a;let c=i.parent;if(!c){let u=s[Hg];if(u){let l=u.get(t,xt,r);if(l!==xt)return l}c=Em(s),s=s[zr]}i=c}return o}function Em(e){let n=e[O],t=n.type;return t===2?n.declTNode:t===1?e[je]:null}function Aa(e){return gC(Se(),e)}function Ap(e,n=null,t=null,r){let o=wm(e,n,t,r);return o.resolveInjectorInitializers(),o}function wm(e,n=null,t=null,r,o=new Set){let i=[t||Re,II(e)];return r=r||(typeof e=="object"?void 0:Pe(e)),new Bo(i,n||ba(),r||null,o)}var oe=class e{static THROW_IF_NOT_FOUND=$n;static NULL=new Ws;static create(n,t){if(Array.isArray(n))return Ap({name:""},t,n,"");{let r=n.name??"";return Ap({name:r},n.parent,n.providers,r)}}static \u0275prov=E({token:e,providedIn:"any",factory:()=>I(kg)});static __NG_ELEMENT_ID__=-1};var Op=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>Aa(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},EC=new w("");EC.__NG_ELEMENT_ID__=e=>{let n=Se();if(n===null)throw new D(204,!1);if(n.type&2)return n.value;if(e&j.Optional)return null;throw new D(204,!1)};var Im=!1,Jt=(()=>{class e{static __NG_ELEMENT_ID__=wC;static __NG_ENV_ID__=t=>t}return e})(),na=class extends Jt{_lView;constructor(n){super(),this._lView=n}onDestroy(n){let t=this._lView;return Gr(t)?(n(),()=>{}):(Jg(t,n),()=>HI(t,n))}};function wC(){return new na(b())}var Dn=class{},Sd=new w("",{providedIn:"root",factory:()=>!1});var Cm=new w(""),bm=new w(""),Xt=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new ye(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),t}has(t){return this.pendingTasks.has(t)}remove(t){this.pendingTasks.delete(t),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),NB=(()=>{class e{internalPendingTasks=g(Xt);scheduler=g(Dn);add(){let t=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(t)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(t))}}run(t){return $i(this,null,function*(){let r=this.add();try{return yield t()}finally{r()}})}static \u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),sl=class extends B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,cd()&&(this.destroyRef=g(Jt,{optional:!0})??void 0,this.pendingTasks=g(Xt,{optional:!0})??void 0)}emit(n){let t=P(null);try{super.next(n)}finally{P(t)}}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&typeof n=="object"){let c=n;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return n instanceof Y&&n.add(a),a}wrapInTimeout(n){return t=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{n(t)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Ae=sl;function $o(...e){}function Tm(e){let n,t;function r(){e=$o;try{t!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(t),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(t=requestAnimationFrame(()=>{e(),r()})),()=>r()}function kp(e){return queueMicrotask(()=>e()),()=>{e=$o}}var Md="isAngularZone",ra=Md+"_ID",IC=0,H=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ae(!1);onMicrotaskEmpty=new Ae(!1);onStable=new Ae(!1);onError=new Ae(!1);constructor(n){let{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Im}=n;if(typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,TC(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Md)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,CC,$o,$o);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}},CC={};function xd(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function bC(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function n(){Tm(()=>{e.callbackScheduled=!1,al(e),e.isCheckStableRunning=!0,xd(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{n()}):e._outer.run(()=>{n()}),al(e)}function TC(e){let n=()=>{bC(e)},t=IC++;e._inner=e._inner.fork({name:"angular",properties:{[Md]:!0,[ra]:t,[ra+t]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(_C(c))return r.invokeTask(i,s,a,c);try{return Pp(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&n(),Fp(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Pp(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!SC(c)&&n(),Fp(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,al(e),xd(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function al(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Pp(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Fp(e){e._nesting--,xd(e)}var oa=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ae;onMicrotaskEmpty=new Ae;onStable=new Ae;onError=new Ae;run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}};function _C(e){return _m(e,"__ignore_ng_zone__")}function SC(e){return _m(e,"__scheduler_tick__")}function _m(e,n){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[n]===!0}function MC(e="zone.js",n){return e==="noop"?new oa:e==="zone.js"?new H(n):e}var ft=class{_console=console;handleError(n){this._console.error("ERROR",n)}},xC=new w("",{providedIn:"root",factory:()=>{let e=g(H),n=g(ft);return t=>e.runOutsideAngular(()=>n.handleError(t))}}),ia=class{destroyed=!1;listeners=null;errorHandler=g(ft,{optional:!0});destroyRef=g(Jt);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new D(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{let t=this.listeners?.indexOf(n);t!==void 0&&t!==-1&&this.listeners?.splice(t,1)}}}emit(n){if(this.destroyed){console.warn(Da(953,!1));return}if(this.listeners===null)return;let t=P(null);try{for(let r of this.listeners)try{r(n)}catch(o){this.errorHandler?.handleError(o)}}finally{P(t)}}};function RB(e){return new ia}function Lp(e,n){return Ig(e,n)}function NC(e){return Ig(Ea,e)}var Sm=(Lp.required=NC,Lp);function RC(){return Yr(Se(),b())}function Yr(e,n){return new Ge(jt(e,n))}var Ge=(()=>{class e{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=RC}return e})();function Mm(e){return e instanceof Ge?e.nativeElement:e}function AC(e){return typeof e=="function"&&e[Ne]!==void 0}function Qr(e,n){let t=Su(e,n?.equal),r=t[Ne];return t.set=o=>br(r,o),t.update=o=>Mu(r,o),t.asReadonly=xm.bind(t),t}function xm(){let e=this[Ne];if(e.readonlyFn===void 0){let n=()=>this();n[Ne]=e,e.readonlyFn=n}return e.readonlyFn}function Nm(e){return AC(e)&&typeof e.set=="function"}function OC(){return this._results[Symbol.iterator]()}var cl=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new B}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;let r=vI(n);(this._changesDetected=!mI(this._results,r,t))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=OC};function Rm(e){return(e.flags&128)===128}var Am=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Am||{}),Om=new Map,kC=0;function PC(){return kC++}function FC(e){Om.set(e[Ta],e)}function ul(e){Om.delete(e[Ta])}var jp="__ngContext__";function Kr(e,n){mn(n)?(e[jp]=n[Ta],FC(n)):e[jp]=n}function km(e){return Fm(e[Uo])}function Pm(e){return Fm(e[lt])}function Fm(e){for(;e!==null&&!Kt(e);)e=e[lt];return e}var ll;function Lm(e){ll=e}function jm(){if(ll!==void 0)return ll;if(typeof document<"u")return document;throw new D(210,!1)}var Nd=new w("",{providedIn:"root",factory:()=>LC}),LC="ng",Rd=new w(""),Jr=new w("",{providedIn:"platform",factory:()=>"unknown"});var AB=new w(""),Ad=new w("",{providedIn:"root",factory:()=>jm().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),Od={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},Vm=new w("",{providedIn:"root",factory:()=>Od});var jC="h",VC="b";var Bm=!1,BC=new w("",{providedIn:"root",factory:()=>Bm});var kd=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(kd||{}),Xr=new w(""),Vp=new Set;function en(e){Vp.has(e)||(Vp.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Pd=(()=>{class e{view;node;constructor(t,r){this.view=t,this.node=r}static __NG_ELEMENT_ID__=UC}return e})();function UC(){return new Pd(b(),Se())}var Sr=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Sr||{}),Um=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),HC=[Sr.EarlyRead,Sr.Write,Sr.MixedReadWrite,Sr.Read],$C=(()=>{class e{ngZone=g(H);scheduler=g(Dn);errorHandler=g(ft,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(Xr,{optional:!0})}execute(){let t=this.sequences.size>0;t&&K(16),this.executing=!0;for(let r of HC)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),t&&K(17)}register(t){let{view:r}=t;r!==void 0?((r[xr]??=[]).push(t),Zr(r),r[N]|=8192):this.executing?this.deferredRegistrations.add(t):this.addSequence(t)}addSequence(t){this.sequences.add(t),this.scheduler.notify(7)}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}maybeTrace(t,r){return r?r.run(kd.AFTER_NEXT_RENDER,t):t()}static \u0275prov=E({token:e,providedIn:"root",factory:()=>new e})}return e})(),dl=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,t,r,o,i,s=null){this.impl=n,this.hooks=t,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let n=this.view?.[xr];n&&(this.view[xr]=n.filter(t=>t!==this))}};function zC(e,n){!n?.injector&&ud(zC);let t=n?.injector??g(oe);return en("NgAfterRender"),Hm(e,t,n,!1)}function Fd(e,n){!n?.injector&&ud(Fd);let t=n?.injector??g(oe);return en("NgAfterNextRender"),Hm(e,t,n,!0)}function qC(e,n){if(e instanceof Function){let t=[void 0,void 0,void 0,void 0];return t[n]=e,t}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function Hm(e,n,t,r){let o=n.get(Um);o.impl??=n.get($C);let i=n.get(Xr,null,{optional:!0}),s=t?.phase??Sr.MixedReadWrite,a=t?.manualCleanup!==!0?n.get(Jt):null,c=n.get(Pd,null,{optional:!0}),u=new dl(o.impl,qC(e,s),c?.view,r,a,i?.snapshot(null));return o.impl.register(u),u}var GC=(e,n,t,r)=>{};function WC(e,n,t,r){GC(e,n,t,r)}var ZC=()=>null;function $m(e,n,t=!1){return ZC(e,n,t)}function zm(e,n){let t=e.contentQueries;if(t!==null){let r=P(null);try{for(let o=0;o<t.length;o+=2){let i=t[o],s=t[o+1];if(s!==-1){let a=e.data[s];xa(i),a.contentQueries(2,n[s],s)}}}finally{P(r)}}}function fl(e,n,t){xa(0);let r=P(null);try{n(e,t)}finally{P(r)}}function Ld(e,n,t){if(dd(n)){let r=P(null);try{let o=n.directiveStart,i=n.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=t[s];a.contentQueries(1,c,s)}}}finally{P(r)}}}var kt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(kt||{}),Os;function qm(){if(Os===void 0&&(Os=null,pe.trustedTypes))try{Os=pe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Os}function Oa(e){return qm()?.createHTML(e)||e}function YC(e){return qm()?.createScriptURL(e)||e}var ks;function Gm(){if(ks===void 0&&(ks=null,pe.trustedTypes))try{ks=pe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ks}function Bp(e){return Gm()?.createHTML(e)||e}function Up(e){return Gm()?.createScriptURL(e)||e}var Qt=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Eg})`}},hl=class extends Qt{getTypeName(){return"HTML"}},pl=class extends Qt{getTypeName(){return"Style"}},gl=class extends Qt{getTypeName(){return"Script"}},ml=class extends Qt{getTypeName(){return"URL"}},vl=class extends Qt{getTypeName(){return"ResourceURL"}};function Be(e){return e instanceof Qt?e.changingThisBreaksApplicationSecurity:e}function tn(e,n){let t=QC(e);if(t!=null&&t!==n){if(t==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Eg})`)}return t===n}function QC(e){return e instanceof Qt&&e.getTypeName()||null}function Wm(e){return new hl(e)}function Zm(e){return new pl(e)}function Ym(e){return new gl(e)}function Qm(e){return new ml(e)}function Km(e){return new vl(e)}function KC(e){let n=new Dl(e);return JC()?new yl(n):n}var yl=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{let t=new window.DOMParser().parseFromString(Oa(n),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(n):(t.firstChild?.remove(),t)}catch{return null}}},Dl=class{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let t=this.inertDocument.createElement("template");return t.innerHTML=Oa(n),t}};function JC(){try{return!!new window.DOMParser().parseFromString(Oa(""),"text/html")}catch{return!1}}var XC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ka(e){return e=String(e),e.match(XC)?e:"unsafe:"+e}function nn(e){let n={};for(let t of e.split(","))n[t]=!0;return n}function Ko(...e){let n={};for(let t of e)for(let r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}var Jm=nn("area,br,col,hr,img,wbr"),Xm=nn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ev=nn("rp,rt"),eb=Ko(ev,Xm),tb=Ko(Xm,nn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),nb=Ko(ev,nn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Hp=Ko(Jm,tb,nb,eb),tv=nn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rb=nn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ob=nn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),ib=Ko(tv,rb,ob),sb=nn("script,style,template"),El=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let t=n.firstChild,r=!0,o=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild){o.push(t),t=ub(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=cb(t);if(i){t=i;break}t=o.pop()}}return this.buf.join("")}startElement(n){let t=$p(n).toLowerCase();if(!Hp.hasOwnProperty(t))return this.sanitizedSomething=!0,!sb.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let r=n.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!ib.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;tv[a]&&(c=ka(c)),this.buf.push(" ",s,'="',zp(c),'"')}return this.buf.push(">"),!0}endElement(n){let t=$p(n).toLowerCase();Hp.hasOwnProperty(t)&&!Jm.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(zp(n))}};function ab(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function cb(e){let n=e.nextSibling;if(n&&e!==n.previousSibling)throw nv(n);return n}function ub(e){let n=e.firstChild;if(n&&ab(e,n))throw nv(n);return n}function $p(e){let n=e.nodeName;return typeof n=="string"?n:"FORM"}function nv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var lb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,db=/([^\#-~ |!])/g;function zp(e){return e.replace(/&/g,"&amp;").replace(lb,function(n){let t=n.charCodeAt(0),r=n.charCodeAt(1);return"&#"+((t-55296)*1024+(r-56320)+65536)+";"}).replace(db,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Ps;function jd(e,n){let t=null;try{Ps=Ps||KC(e);let r=n?String(n):"";t=Ps.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=t.innerHTML,t=Ps.getInertBodyElement(r)}while(r!==i);let a=new El().sanitizeChildren(qp(t)||t);return Oa(a)}finally{if(t){let r=qp(t)||t;for(;r.firstChild;)r.firstChild.remove()}}}function qp(e){return"content"in e&&fb(e)?e.content:null}function fb(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var We=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(We||{});function Vd(e){let n=Bd();return n?Bp(n.sanitize(We.HTML,e)||""):tn(e,"HTML")?Bp(Be(e)):jd(jm(),Nt(e))}function hb(e){let n=Bd();return n?n.sanitize(We.URL,e)||"":tn(e,"URL")?Be(e):ka(Nt(e))}function pb(e){let n=Bd();if(n)return Up(n.sanitize(We.RESOURCE_URL,e)||"");if(tn(e,"ResourceURL"))return Up(Be(e));throw new D(904,!1)}function OB(e){return YC(e[0])}function gb(e,n){return n==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||n==="href"&&(e==="base"||e==="link")?pb:hb}function rv(e,n,t){return gb(n,t)(e)}function Bd(){let e=b();return e&&e[Zt].sanitizer}var mb=/^>|^->|<!--|-->|--!>|<!-$/g,vb=/(<|>)/g,yb="\u200B$1\u200B";function Db(e){return e.replace(mb,n=>n.replace(vb,yb))}function kB(e){return e.ownerDocument.defaultView}function PB(e){return e.ownerDocument}function ov(e){return e instanceof Function?e():e}function Eb(e,n,t){let r=e.length;for(;;){let o=e.indexOf(n,t);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=n.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}t=o+1}}var iv="ng-template";function wb(e,n,t,r){let o=0;if(r){for(;o<n.length&&typeof n[o]=="string";o+=2)if(n[o]==="class"&&Eb(n[o+1].toLowerCase(),t,0)!==-1)return!0}else if(Ud(e))return!1;if(o=n.indexOf(1,o),o>-1){let i;for(;++o<n.length&&typeof(i=n[o])=="string";)if(i.toLowerCase()===t)return!0}return!1}function Ud(e){return e.type===4&&e.value!==iv}function Ib(e,n,t){let r=e.type===4&&!t?iv:e.value;return n===r}function Cb(e,n,t){let r=4,o=e.attrs,i=o!==null?_b(o):0,s=!1;for(let a=0;a<n.length;a++){let c=n[a];if(typeof c=="number"){if(!s&&!ut(r)&&!ut(c))return!1;if(s&&ut(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Ib(e,c,t)||c===""&&n.length===1){if(ut(r))return!1;s=!0}}else if(r&8){if(o===null||!wb(e,o,c,t)){if(ut(r))return!1;s=!0}}else{let u=n[++a],l=bb(c,o,Ud(e),t);if(l===-1){if(ut(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(ut(r))return!1;s=!0}}}}return ut(r)||s}function ut(e){return(e&1)===0}function bb(e,n,t,r){if(n===null)return-1;let o=0;if(r||!t){let i=!1;for(;o<n.length;){let s=n[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=n[++o];for(;typeof a=="string";)a=n[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Sb(n,e)}function sv(e,n,t=!1){for(let r=0;r<n.length;r++)if(Cb(e,n[r],t))return!0;return!1}function Tb(e){let n=e.attrs;if(n!=null){let t=n.indexOf(5);if((t&1)===0)return n[t+1]}return null}function _b(e){for(let n=0;n<e.length;n++){let t=e[n];if(dm(t))return n}return e.length}function Sb(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){let r=e[t];if(typeof r=="number")return-1;if(r===n)return t;t++}return-1}function Mb(e,n){e:for(let t=0;t<n.length;t++){let r=n[t];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function Gp(e,n){return e?":not("+n.trim()+")":n}function xb(e){let n=e[0],t=1,r=2,o="",i=!1;for(;t<e.length;){let s=e[t];if(typeof s=="string")if(r&2){let a=e[++t];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ut(s)&&(n+=Gp(i,o),o=""),r=s,i=i||!ut(r);t++}return o!==""&&(n+=Gp(i,o)),n}function Nb(e){return e.map(xb).join(",")}function Rb(e){let n=[],t=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&n.push(i,e[++r]):o===8&&t.push(i);else{if(!ut(o))break;o=i}r++}return t.length&&n.push(1,...t),n}var ge={};function Ab(e,n){return e.createText(n)}function Ob(e,n,t){e.setValue(n,t)}function kb(e,n){return e.createComment(Db(n))}function av(e,n,t){return e.createElement(n,t)}function sa(e,n,t,r,o){e.insertBefore(n,t,r,o)}function cv(e,n,t){e.appendChild(n,t)}function Wp(e,n,t,r,o){r!==null?sa(e,n,t,r,o):cv(e,n,t)}function Pb(e,n,t){e.removeChild(null,n,t)}function Fb(e,n,t){e.setAttribute(n,"style",t)}function Lb(e,n,t){t===""?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function uv(e,n,t){let{mergedAttrs:r,classes:o,styles:i}=t;r!==null&&uC(e,n,r),o!==null&&Lb(e,n,o),i!==null&&Fb(e,n,i)}function Hd(e,n,t,r,o,i,s,a,c,u,l){let d=ee+r,h=d+o,f=jb(d,h),p=typeof u=="function"?u():u;return f[O]={type:e,blueprint:f,template:t,queries:null,viewQuery:a,declTNode:n,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1,ssrId:l}}function jb(e,n){let t=[];for(let r=0;r<n;r++)t.push(r<e?null:ge);return t}function Vb(e){let n=e.tView;return n===null||n.incompleteFirstPass?e.tView=Hd(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function $d(e,n,t,r,o,i,s,a,c,u,l){let d=n.blueprint.slice();return d[Ft]=o,d[N]=r|4|128|8|64|1024,(u!==null||e&&e[N]&2048)&&(d[N]|=2048),Qg(d),d[Te]=d[zr]=e,d[se]=t,d[Zt]=s||e&&e[Zt],d[Z]=a||e&&e[Z],d[kr]=c||e&&e[kr]||null,d[je]=i,d[Ta]=PC(),d[Or]=l,d[Hg]=u,d[Fe]=n.type==2?e[Fe]:d,d}function Bb(e,n,t){let r=jt(n,e),o=Vb(t),i=e[Zt].rendererFactory,s=zd(e,$d(e,o,null,lv(t),r,n,null,i.createRenderer(r,t),null,null,null));return e[n.index]=s}function lv(e){let n=16;return e.signals?n=4096:e.onPush&&(n=64),n}function dv(e,n,t,r){if(t===0)return-1;let o=n.length;for(let i=0;i<t;i++)n.push(r),e.blueprint.push(r),e.data.push(null);return o}function zd(e,n){return e[Uo]?e[_p][lt]=n:e[Uo]=n,e[_p]=n,n}function de(e=1){fv(z(),b(),Vt()+e,!1)}function fv(e,n,t,r){if(!r)if((n[N]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Vs(n,i,t)}else{let i=e.preOrderHooks;i!==null&&Bs(n,i,0,t)}Qn(t)}var Pa=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Pa||{});function wl(e,n,t,r){let o=P(null);try{let[i,s,a]=e.inputs[t],c=null;(s&Pa.SignalBased)!==0&&(c=n[i][Ne]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(n,r)),e.setInput!==null?e.setInput(n,c,r,t,i):$g(n,c,i,r)}finally{P(o)}}function hv(e,n,t,r,o){let i=Vt(),s=r&2;try{Qn(-1),s&&n.length>ee&&fv(e,n,ee,!1),K(s?2:0,o),t(r,o)}finally{Qn(i),K(s?3:1,o)}}function Fa(e,n,t){Gb(e,n,t),(t.flags&64)===64&&Wb(e,n,t)}function qd(e,n,t=jt){let r=n.localNames;if(r!==null){let o=n.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?t(n,e):e[s];e[o++]=a}}}function Ub(e,n,t,r){let i=r.get(BC,Bm)||t===kt.ShadowDom,s=e.selectRootElement(n,i);return Hb(s),s}function Hb(e){$b(e)}var $b=()=>null;function zb(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function nr(e,n,t,r,o,i,s,a){if(!a&&Wd(n,e,t,r,o)){qr(n)&&qb(t,n.index);return}if(n.type&3){let c=jt(n,t);r=zb(r),o=s!=null?s(o,n.value||"",r):o,i.setProperty(c,r,o)}else n.type&12}function qb(e,n){let t=Ot(n,e);t[N]&16||(t[N]|=64)}function Gb(e,n,t){let r=t.directiveStart,o=t.directiveEnd;qr(t)&&Bb(n,t,e.data[r+t.componentOffset]),e.firstCreatePass||ta(t,n);let i=t.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Ho(n,e,s,t);if(Kr(c,n),i!==null&&Kb(n,s-r,c,a,t,i),dt(a)){let u=Ot(t.index,n);u[se]=Ho(n,e,s,t)}}}function Wb(e,n,t){let r=t.directiveStart,o=t.directiveEnd,i=t.index,s=eC();try{Qn(i);for(let a=r;a<o;a++){let c=e.data[a],u=n[a];nl(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Zb(c,u)}}finally{Qn(-1),nl(s)}}function Zb(e,n){e.hostBindings!==null&&e.hostBindings(1,n)}function Gd(e,n){let t=e.directiveRegistry,r=null;if(t)for(let o=0;o<t.length;o++){let i=t[o];sv(n,i.selectors,!1)&&(r??=[],dt(i)?r.unshift(i):r.push(i))}return r}function Yb(e,n,t,r,o,i){let s=jt(e,n);Qb(n[Z],s,i,e.value,t,r,o)}function Qb(e,n,t,r,o,i,s){if(i==null)e.removeAttribute(n,o,t);else{let a=s==null?Nt(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}function Kb(e,n,t,r,o,i){let s=i[n];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];wl(r,t,c,u)}}function Jb(e,n,t){return(e===null||dt(e))&&(t=jI(t[n.index])),t[Z]}function Xb(e,n){let t=e[kr],r=t?t.get(ft,null):null;r&&r.handleError(n)}function Wd(e,n,t,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=n.data[u];wl(d,t[u],l,o),a=!0}if(i)for(let c of i){let u=t[c],l=n.data[c];wl(l,u,r,o),a=!0}return a}function eT(e,n){let t=Ot(n,e),r=t[O];tT(r,t);let o=t[Ft];o!==null&&t[Or]===null&&(t[Or]=$m(o,t[kr])),K(18),Zd(r,t,t[se]),K(19,t[se])}function tT(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}function Zd(e,n,t){Id(n);try{let r=e.viewQuery;r!==null&&fl(1,r,t);let o=e.template;o!==null&&hv(e,n,o,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),n[Yt]?.finishViewCreation(e),e.staticContentQueries&&zm(e,n),e.staticViewQueries&&fl(2,e.viewQuery,t);let i=e.components;i!==null&&nT(n,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{n[N]&=-5,Cd()}}function nT(e,n){for(let t=0;t<n.length;t++)eT(e,n[t])}function Jo(e,n,t,r){let o=P(null);try{let i=n.tView,a=e[N]&4096?4096:16,c=$d(e,i,t,a,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[n.index];c[Gn]=u;let l=e[Yt];return l!==null&&(c[Yt]=l.createEmbeddedView(i)),Zd(i,c,t),c}finally{P(o)}}function Lr(e,n){return!n||n.firstChild===null||Rm(e)}var rT;function Yd(e,n){return rT(e,n)}var Pt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Pt||{});function Qd(e){return(e.flags&32)===32}function Mr(e,n,t,r,o){if(r!=null){let i,s=!1;Kt(r)?i=r:mn(r)&&(s=!0,r=r[Ft]);let a=At(r);e===0&&t!==null?o==null?cv(n,t,a):sa(n,t,a,o||null,!0):e===1&&t!==null?sa(n,t,a,o||null,!0):e===2?Pb(n,a,s):e===3&&n.destroyNode(a),i!=null&&hT(n,e,i,t,o)}}function oT(e,n){pv(e,n),n[Ft]=null,n[je]=null}function iT(e,n,t,r,o,i){r[Ft]=o,r[je]=n,Va(e,r,t,1,o,i)}function pv(e,n){n[Zt].changeDetectionScheduler?.notify(9),Va(e,n,n[Z],2,null,null)}function sT(e){let n=e[Uo];if(!n)return Fu(e[O],e);for(;n;){let t=null;if(mn(n))t=n[Uo];else{let r=n[Ce];r&&(t=r)}if(!t){for(;n&&!n[lt]&&n!==e;)mn(n)&&Fu(n[O],n),n=n[Te];n===null&&(n=e),mn(n)&&Fu(n[O],n),t=n&&n[lt]}n=t}}function Kd(e,n){let t=e[Pr],r=t.indexOf(n);t.splice(r,1)}function La(e,n){if(Gr(n))return;let t=n[Z];t.destroyNode&&Va(e,n,t,3,null,null),sT(n)}function Fu(e,n){if(Gr(n))return;let t=P(null);try{n[N]&=-129,n[N]|=256,n[tt]&&Oo(n[tt]),cT(e,n),aT(e,n),n[O].type===1&&n[Z].destroy();let r=n[Gn];if(r!==null&&Kt(n[Te])){r!==n[Te]&&Kd(r,n);let o=n[Yt];o!==null&&o.detachView(e)}ul(n)}finally{P(t)}}function aT(e,n){let t=e.cleanup,r=n[Zs];if(t!==null)for(let s=0;s<t.length-1;s+=2)if(typeof t[s]=="string"){let a=t[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[t[s+1]];t[s].call(a)}r!==null&&(n[Zs]=null);let o=n[gn];if(o!==null){n[gn]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=n[Wn];if(i!==null){n[Wn]=null;for(let s of i)s.destroy()}}function cT(e,n){let t;if(e!=null&&(t=e.destroyHooks)!=null)for(let r=0;r<t.length;r+=2){let o=n[t[r]];if(!(o instanceof Kn)){let i=t[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];K(4,a,c);try{c.call(a)}finally{K(5,a,c)}}else{K(4,o,i);try{i.call(o)}finally{K(5,o,i)}}}}}function gv(e,n,t){return uT(e,n.parent,t)}function uT(e,n,t){let r=n;for(;r!==null&&r.type&168;)n=r,r=n.parent;if(r===null)return t[Ft];if(qr(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===kt.None||o===kt.Emulated)return null}return jt(r,t)}function mv(e,n,t){return dT(e,n,t)}function lT(e,n,t){return e.type&40?jt(e,t):null}var dT=lT,Zp;function ja(e,n,t,r){let o=gv(e,r,n),i=n[Z],s=r.parent||n[je],a=mv(s,r,n);if(o!=null)if(Array.isArray(t))for(let c=0;c<t.length;c++)Wp(i,o,t[c],a,!1);else Wp(i,o,t,a,!1);Zp!==void 0&&Zp(i,r,n,t,o)}function Lo(e,n){if(n!==null){let t=n.type;if(t&3)return jt(n,e);if(t&4)return Il(-1,e[n.index]);if(t&8){let r=n.child;if(r!==null)return Lo(e,r);{let o=e[n.index];return Kt(o)?Il(-1,o):At(o)}}else{if(t&128)return Lo(e,n.next);if(t&32)return Yd(n,e)()||At(e[n.index]);{let r=vv(e,n);if(r!==null){if(Array.isArray(r))return r[0];let o=Yn(e[Fe]);return Lo(o,r)}else return Lo(e,n.next)}}}return null}function vv(e,n){if(n!==null){let r=e[Fe][je],o=n.projection;return r.projection[o]}return null}function Il(e,n){let t=Ce+e+1;if(t<n.length){let r=n[t],o=r[O].firstChild;if(o!==null)return Lo(r,o)}return n[Zn]}function Jd(e,n,t,r,o,i,s){for(;t!=null;){if(t.type===128){t=t.next;continue}let a=r[t.index],c=t.type;if(s&&n===0&&(a&&Kr(At(a),r),t.flags|=2),!Qd(t))if(c&8)Jd(e,n,t.child,r,o,i,!1),Mr(n,e,o,a,i);else if(c&32){let u=Yd(t,r),l;for(;l=u();)Mr(n,e,o,l,i);Mr(n,e,o,a,i)}else c&16?yv(e,n,r,t,o,i):Mr(n,e,o,a,i);t=s?t.projectionNext:t.next}}function Va(e,n,t,r,o,i){Jd(t,r,e.firstChild,n,o,i,!1)}function fT(e,n,t){let r=n[Z],o=gv(e,t,n),i=t.parent||n[je],s=mv(i,t,n);yv(r,0,n,t,o,s)}function yv(e,n,t,r,o,i){let s=t[Fe],c=s[je].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Mr(n,e,o,l,i)}else{let u=c,l=s[Te];Rm(r)&&(u.flags|=128),Jd(e,n,u,l,o,i,!0)}}function hT(e,n,t,r,o){let i=t[Zn],s=At(t);i!==s&&Mr(n,e,r,i,o);for(let a=Ce;a<t.length;a++){let c=t[a];Va(c[O],c,e,n,r,i)}}function pT(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=r.indexOf("-")===-1?void 0:Pt.DashCase;o==null?e.removeStyle(t,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Pt.Important),e.setStyle(t,r,o,i))}}function aa(e,n,t,r,o=!1){for(;t!==null;){if(t.type===128){t=o?t.projectionNext:t.next;continue}let i=n[t.index];i!==null&&r.push(At(i)),Kt(i)&&gT(i,r);let s=t.type;if(s&8)aa(e,n,t.child,r);else if(s&32){let a=Yd(t,n),c;for(;c=a();)r.push(c)}else if(s&16){let a=vv(n,t);if(Array.isArray(a))r.push(...a);else{let c=Yn(n[Fe]);aa(c[O],c,a,r,!0)}}t=o?t.projectionNext:t.next}return r}function gT(e,n){for(let t=Ce;t<e.length;t++){let r=e[t],o=r[O].firstChild;o!==null&&aa(r[O],r,o,n)}e[Zn]!==e[Ft]&&n.push(e[Zn])}function Dv(e){if(e[xr]!==null){for(let n of e[xr])n.impl.addSequence(n);e[xr].length=0}}var Ev=[];function mT(e){return e[tt]??vT(e)}function vT(e){let n=Ev.pop()??Object.create(DT);return n.lView=e,n}function yT(e){e.lView[tt]!==e&&(e.lView=null,Ev.push(e))}var DT=V(v({},Ir),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Zr(e.lView)},consumerOnSignalRead(){this.lView[tt]=this}});function ET(e){let n=e[tt]??Object.create(wT);return n.lView=e,n}var wT=V(v({},Ir),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let n=Yn(e.lView);for(;n&&!wv(n[O]);)n=Yn(n);n&&Kg(n)},consumerOnSignalRead(){this.lView[tt]=this}});function wv(e){return e.type!==2}function Iv(e){if(e[Wn]===null)return;let n=!0;for(;n;){let t=!1;for(let r of e[Wn])r.dirty&&(t=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=t&&!!(e[N]&8192)}}var IT=100;function Cv(e,n=!0,t=0){let o=e[Zt].rendererFactory,i=!1;i||o.begin?.();try{CT(e,t)}catch(s){throw n&&Xb(e,s),s}finally{i||o.end?.()}}function CT(e,n){let t=tm();try{Ks(!0),Cl(e,n);let r=0;for(;Sa(e);){if(r===IT)throw new D(103,!1);r++,Cl(e,1)}}finally{Ks(t)}}function bT(e,n,t,r){if(Gr(n))return;let o=n[N],i=!1,s=!1;Id(n);let a=!0,c=null,u=null;i||(wv(e)?(u=mT(n),c=Ao(u)):Iu()===null?(a=!1,u=ET(n),c=Ao(u)):n[tt]&&(Oo(n[tt]),n[tt]=null));try{Qg(n),KI(e.bindingStartIndex),t!==null&&hv(e,n,t,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Vs(n,f,null)}else{let f=e.preOrderHooks;f!==null&&Bs(n,f,0,null),ku(n,0)}if(s||TT(n),Iv(n),bv(n,0),e.contentQueries!==null&&zm(e,n),!i)if(l){let f=e.contentCheckHooks;f!==null&&Vs(n,f)}else{let f=e.contentHooks;f!==null&&Bs(n,f,1),ku(n,1)}ST(e,n);let d=e.components;d!==null&&_v(n,d,0);let h=e.viewQuery;if(h!==null&&fl(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Vs(n,f)}else{let f=e.viewHooks;f!==null&&Bs(n,f,2),ku(n,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),n[Ou]){for(let f of n[Ou])f();n[Ou]=null}i||(Dv(n),n[N]&=-73)}catch(l){throw i||Zr(n),l}finally{u!==null&&(Ts(u,c),a&&yT(u)),Cd()}}function bv(e,n){for(let t=km(e);t!==null;t=Pm(t))for(let r=Ce;r<t.length;r++){let o=t[r];Tv(o,n)}}function TT(e){for(let n=km(e);n!==null;n=Pm(n)){if(!(n[N]&2))continue;let t=n[Pr];for(let r=0;r<t.length;r++){let o=t[r];Kg(o)}}}function _T(e,n,t){K(18);let r=Ot(n,e);Tv(r,t),K(19,r[se])}function Tv(e,n){hd(e)&&Cl(e,n)}function Cl(e,n){let r=e[O],o=e[N],i=e[tt],s=!!(n===0&&o&16);if(s||=!!(o&64&&n===0),s||=!!(o&1024),s||=!!(i?.dirty&&_s(i)),s||=!1,i&&(i.dirty=!1),e[N]&=-9217,s)bT(r,e,r.template,e[se]);else if(o&8192){Iv(e),bv(e,1);let a=r.components;a!==null&&_v(e,a,1),Dv(e)}}function _v(e,n,t){for(let r=0;r<n.length;r++)_T(e,n[r],t)}function ST(e,n){let t=e.hostBindingOpCodes;if(t!==null)try{for(let r=0;r<t.length;r++){let o=t[r];if(o<0)Qn(~o);else{let i=o,s=t[++r],a=t[++r];XI(s,i);let c=n[i];K(24,c),a(2,c),K(25,c)}}}finally{Qn(-1)}}function Xd(e,n){let t=tm()?64:1088;for(e[Zt].changeDetectionScheduler?.notify(n);e;){e[N]|=t;let r=Yn(e);if(Qs(e)&&!r)return e;e=r}return null}function Sv(e,n,t,r){return[e,!0,0,n,null,r,null,t,null,null]}function Mv(e,n){let t=Ce+n;if(t<e.length)return e[t]}function Xo(e,n,t,r=!0){let o=n[O];if(MT(o,n,e,t),r){let s=Il(t,e),a=n[Z],c=a.parentNode(e[Zn]);c!==null&&iT(o,e[je],a,n,c,s)}let i=n[Or];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function xv(e,n){let t=zo(e,n);return t!==void 0&&La(t[O],t),t}function zo(e,n){if(e.length<=Ce)return;let t=Ce+n,r=e[t];if(r){let o=r[Gn];o!==null&&o!==e&&Kd(o,r),n>0&&(e[t-1][lt]=r[lt]);let i=Gs(e,Ce+n);oT(r[O],r);let s=i[Yt];s!==null&&s.detachView(i[O]),r[Te]=null,r[lt]=null,r[N]&=-129}return r}function MT(e,n,t,r){let o=Ce+r,i=t.length;r>0&&(t[o-1][lt]=n),r<i-Ce?(n[lt]=t[o],Og(t,Ce+r,n)):(t.push(n),n[lt]=null),n[Te]=t;let s=n[Gn];s!==null&&t!==s&&Nv(s,n);let a=n[Yt];a!==null&&a.insertView(e),el(n),n[N]|=128}function Nv(e,n){let t=e[Pr],r=n[Te];if(mn(r))e[N]|=2;else{let o=r[Te][Fe];n[Fe]!==o&&(e[N]|=2)}t===null?e[Pr]=[n]:t.push(n)}var qo=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let n=this._lView,t=n[O];return aa(t,n,t.firstChild,[])}constructor(n,t,r=!0){this._lView=n,this._cdRefInjectingView=t,this.notifyErrorHandler=r}get context(){return this._lView[se]}set context(n){this._lView[se]=n}get destroyed(){return Gr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let n=this._lView[Te];if(Kt(n)){let t=n[Ys],r=t?t.indexOf(this):-1;r>-1&&(zo(n,r),Gs(t,r))}this._attachedToViewContainer=!1}La(this._lView[O],this._lView)}onDestroy(n){Jg(this._lView,n)}markForCheck(){Xd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[N]&=-129}reattach(){el(this._lView),this._lView[N]|=128}detectChanges(){this._lView[N]|=1024,Cv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=Qs(this._lView),t=this._lView[Gn];t!==null&&!n&&Kd(t,this._lView),pv(this._lView[O],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=n;let t=Qs(this._lView),r=this._lView[Gn];r!==null&&!t&&Nv(r,this._lView),el(this._lView)}};var En=(()=>{class e{static __NG_ELEMENT_ID__=RT}return e})(),xT=En,NT=class extends xT{_declarationLView;_declarationTContainer;elementRef;constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){let o=Jo(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new qo(o)}};function RT(){return Ba(Se(),b())}function Ba(e,n){return e.type&4?new NT(n,e,Yr(e,n)):null}function eo(e,n,t,r,o){let i=e.data[n];if(i===null)i=AT(e,n,t,r,o),JI()&&(i.flags|=32);else if(i.type&64){i.type=t,i.value=r,i.attrs=o;let s=YI();i.injectorIndex=s===null?-1:s.injectorIndex}return wn(i,!0),i}function AT(e,n,t,r,o){let i=em(),s=Dd(),a=s?i:i&&i.parent,c=e.data[n]=kT(e,a,t,n,r,o);return OT(e,c,i,s),c}function OT(e,n,t,r){e.firstChild===null&&(e.firstChild=n),t!==null&&(r?t.child==null&&n.parent!==null&&(t.child=n):t.next===null&&(t.next=n,n.prev=t))}function kT(e,n,t,r,o,i){let s=n?n.injectorIndex:-1,a=0;return Xg()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var jB=new RegExp(`^(\\d+)*(${VC}|${jC})*(.*)`);var PT=()=>null;function jr(e,n){return PT(e,n)}var FT=class{},Rv=class{},bl=class{resolveComponentFactory(n){throw Error(`No component factory found for ${Pe(n)}.`)}},to=class{static NULL=new bl},Vr=class{},bn=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>LT()}return e})();function LT(){let e=b(),n=Se(),t=Ot(n.index,e);return(mn(t)?t:e)[Z]}var jT=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:()=>null})}return e})();var Lu={},Tl=class{injector;parentInjector;constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Ia(r);let o=this.injector.get(n,Lu,r);return o!==Lu||t===Lu?o:this.parentInjector.get(n,t,r)}};function _l(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(n!==null)for(let s=0;s<n.length;s++){let a=n[s];if(typeof a=="number")i=a;else if(i==1)o=Gu(o,a);else if(i==2){let c=a,u=n[++s];r=Gu(r,c+": "+u+";")}}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=o:e.classesWithoutHost=o}function R(e,n=j.Default){let t=b();if(t===null)return I(e,n);let r=Se();return ym(r,t,De(e),n)}function Av(){let e="invalid";throw new Error(e)}function ef(e,n,t,r,o){let i=r===null?null:{"":-1},s=o(e,t);if(s!==null){let a,c=null,u=null,l=BT(s);l===null?a=s:[a,c,u]=l,$T(e,n,t,a,i,c,u)}i!==null&&r!==null&&VT(t,r,i)}function VT(e,n,t){let r=e.localNames=[];for(let o=0;o<n.length;o+=2){let i=t[n[o+1]];if(i==null)throw new D(-301,!1);r.push(n[o],i)}}function BT(e){let n=null,t=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&dt(a)&&(n=a),a.findHostDirectiveDefs!==null){t=!0;break}}if(!t)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,UT(s,r,i,o)),s===n&&(r??=[],r.push(s));return r!==null?(r.push(...n===null?e:e.slice(1)),[r,o,i]):null}function UT(e,n,t,r){let o=n.length;e.findHostDirectiveDefs(e,n,r),t.set(e,[o,n.length-1])}function HT(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function $T(e,n,t,r,o,i,s){let a=r.length,c=!1;for(let h=0;h<a;h++){let f=r[h];!c&&dt(f)&&(c=!0,HT(e,t,h)),ol(ta(t,n),e,f.type)}YT(t,e.data.length,a);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,d=dv(e,n,a,null);a>0&&(t.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(t.mergedAttrs=Fr(t.mergedAttrs,f.hostAttrs),qT(e,t,n,d,f),ZT(d,f,o),s!==null&&s.has(f)){let[m,y]=s.get(f);t.directiveToIndex.set(f.type,[d,m+t.directiveStart,y+t.directiveStart])}else(i===null||!i.has(f))&&t.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(t.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(t.flags|=64);let p=f.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),u=!0),!l&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),l=!0),d++}zT(e,t,i)}function zT(e,n,t){for(let r=n.directiveStart;r<n.directiveEnd;r++){let o=e.data[r];if(t===null||!t.has(o))Yp(0,n,o,r),Yp(1,n,o,r),Kp(n,r,!1);else{let i=t.get(o);Qp(0,n,i,r),Qp(1,n,i,r),Kp(n,r,!0)}}}function Yp(e,n,t,r){let o=e===0?t.inputs:t.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=n.inputs??={}:s=n.outputs??={},s[i]??=[],s[i].push(r),Ov(n,i)}}function Qp(e,n,t,r){let o=e===0?t.inputs:t.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=n.hostDirectiveInputs??={}:a=n.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Ov(n,s)}}function Ov(e,n){n==="class"?e.flags|=8:n==="style"&&(e.flags|=16)}function Kp(e,n,t){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!t&&o===null||t&&i===null||Ud(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!t&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===n){s??=[],s.push(c,r[a+1]);break}}else if(t&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===n){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function qT(e,n,t,r,o){e.data[r]=o;let i=o.factory||(o.factory=qn(o.type,!0)),s=new Kn(i,dt(o),R);e.blueprint[r]=s,t[r]=s,GT(e,n,r,dv(e,t,o.hostVars,ge),o)}function GT(e,n,t,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~n.index;WT(s)!=a&&s.push(a),s.push(t,r,i)}}function WT(e){let n=e.length;for(;n>0;){let t=e[--n];if(typeof t=="number"&&t<0)return t}return 0}function ZT(e,n,t){if(t){if(n.exportAs)for(let r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;dt(n)&&(t[""]=e)}}function YT(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}function kv(e,n,t,r,o,i,s,a){let c=n.consts,u=yn(c,s),l=eo(n,e,2,r,u);return i&&ef(n,t,l,yn(c,a),o),l.mergedAttrs=Fr(l.mergedAttrs,l.attrs),l.attrs!==null&&_l(l,l.attrs,!1),l.mergedAttrs!==null&&_l(l,l.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,l),l}function Pv(e,n){bd(e,n),dd(n)&&e.queries.elementEnd(n)}var ca=class extends to{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let t=vn(n);return new Jn(t,this.ngModule)}};function QT(e){return Object.keys(e).map(n=>{let[t,r,o]=e[n],i={propName:t,templateName:n,isSignal:(r&Pa.SignalBased)!==0};return o&&(i.transform=o),i})}function KT(e){return Object.keys(e).map(n=>({propName:e[n],templateName:n}))}function JT(e,n,t){let r=n instanceof be?n:n?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Tl(t,r):t}function XT(e){let n=e.get(Vr,null);if(n===null)throw new D(407,!1);let t=e.get(jT,null),r=e.get(Dn,null);return{rendererFactory:n,sanitizer:t,changeDetectionScheduler:r}}function e_(e,n){let t=(e.selectors[0][0]||"div").toLowerCase();return av(n,t,t==="svg"?Wg:t==="math"?LI:null)}var Jn=class extends Rv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=QT(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=KT(this.componentDef.outputs),this.cachedOutputs}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=Nb(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!t}create(n,t,r,o){K(22);let i=P(null);try{let s=this.componentDef,a=r?["ng-version","19.2.14"]:Rb(this.componentDef.selectors[0]),c=Hd(0,null,null,1,0,null,null,null,null,[a],null),u=JT(s,o||this.ngModule,n),l=XT(u),d=l.rendererFactory.createRenderer(null,s),h=r?Ub(d,r,s.encapsulation,u):e_(s,d),f=$d(null,c,null,512|lv(s),null,null,l,d,u,null,$m(h,u,!0));f[ee]=h,Id(f);let p=null;try{let m=kv(ee,c,f,"#host",()=>[this.componentDef],!0,0);h&&(uv(d,h,m),Kr(h,f)),Fa(c,f,m),Ld(c,m,f),Pv(c,m),t!==void 0&&t_(m,this.ngContentSelectors,t),p=Ot(m.index,f),f[se]=p[se],Zd(c,f,null)}catch(m){throw p!==null&&ul(p),ul(f),m}finally{K(23),Cd()}return new Sl(this.componentType,f)}finally{P(i)}}},Sl=class extends FT{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,t){super(),this._rootLView=t,this._tNode=fd(t[O],ee),this.location=Yr(this._tNode,t),this.instance=Ot(this._tNode.index,t)[se],this.hostView=this.changeDetectorRef=new qo(t,void 0,!1),this.componentType=n}setInput(n,t){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;let o=this._rootLView,i=Wd(r,o[O],o,n,t);this.previousInputValues.set(n,t);let s=Ot(r.index,o);Xd(s,1)}get injector(){return new zn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function t_(e,n,t){let r=e.projection=[];for(let o=0;o<n.length;o++){let i=t[o];r.push(i!=null&&i.length?Array.from(i):null)}}var pt=(()=>{class e{static __NG_ELEMENT_ID__=n_}return e})();function n_(){let e=Se();return Lv(e,b())}var r_=pt,Fv=class extends r_{_lContainer;_hostTNode;_hostLView;constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Yr(this._hostTNode,this._hostLView)}get injector(){return new zn(this._hostTNode,this._hostLView)}get parentInjector(){let n=Td(this._hostTNode,this._hostLView);if(fm(n)){let t=Xs(n,this._hostLView),r=Js(n),o=t[O].data[r+8];return new zn(o,t)}else return new zn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let t=Jp(this._lContainer);return t!==null&&t[n]||null}get length(){return this._lContainer.length-Ce}createEmbeddedView(n,t,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=jr(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(t||{},i,s);return this.insertImpl(a,o,Lr(this._hostTNode,s)),a}createComponent(n,t,r,o,i){let s=n&&!OI(n),a;if(s)a=t;else{let p=t||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?n:new Jn(vn(n)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?u:this.parentInjector).get(be,null);m&&(i=m)}let l=vn(c.componentType??{}),d=jr(this._lContainer,l?.id??null),h=d?.firstChild??null,f=c.create(u,o,h,i);return this.insertImpl(f.hostView,a,Lr(this._hostTNode,d)),f}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){let o=n._lView;if(BI(o)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let c=o[Te],u=new Fv(c,c[je],c[Te]);u.detach(u.indexOf(n))}}let i=this._adjustIndex(t),s=this._lContainer;return Xo(s,o,i,r),n.attachToViewContainerRef(),Og(ju(s),i,n),n}move(n,t){return this.insert(n,t)}indexOf(n){let t=Jp(this._lContainer);return t!==null?t.indexOf(n):-1}remove(n){let t=this._adjustIndex(n,-1),r=zo(this._lContainer,t);r&&(Gs(ju(this._lContainer),t),La(r[O],r))}detach(n){let t=this._adjustIndex(n,-1),r=zo(this._lContainer,t);return r&&Gs(ju(this._lContainer),t)!=null?new qo(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function Jp(e){return e[Ys]}function ju(e){return e[Ys]||(e[Ys]=[])}function Lv(e,n){let t,r=n[e.index];return Kt(r)?t=r:(t=Sv(r,n,null,e),n[e.index]=t,zd(n,t)),i_(t,n,e,r),new Fv(t,e,n)}function o_(e,n){let t=e[Z],r=t.createComment(""),o=jt(n,e),i=t.parentNode(o);return sa(t,i,r,t.nextSibling(o),!1),r}var i_=c_,s_=()=>!1;function a_(e,n,t){return s_(e,n,t)}function c_(e,n,t,r){if(e[Zn])return;let o;t.type&8?o=At(r):o=o_(n,t),e[Zn]=o}var Ml=class e{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},xl=class e{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let t=n.queries;if(t!==null){let r=n.contentQueries!==null?n.contentQueries[0]:t.length,o=[];for(let i=0;i<r;i++){let s=t.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)nf(n,t).matches!==null&&this.queries[t].setDirty()}},ua=class{flags;read;predicate;constructor(n,t,r=null){this.flags=t,this.read=r,typeof n=="string"?this.predicate=h_(n):this.predicate=n}},Nl=class e{queries;constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(n,t)}elementEnd(n){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(n)}embeddedTView(n){let t=null;for(let r=0;r<this.length;r++){let o=t!==null?t.length:0,i=this.getByIndex(r).embeddedTView(n,o);i&&(i.indexInDeclarationView=r,t!==null?t.push(i):t=[i])}return t!==null?new e(t):null}template(n,t){for(let r=0;r<this.queries.length;r++)this.queries[r].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}},Rl=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(n,t=-1){this.metadata=n,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new e(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let t=this._declarationNodeIndex,r=n.parent;for(;r!==null&&r.type&8&&r.index!==t;)r=r.parent;return t===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(n,t){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(n,t,u_(t,i)),this.matchTNodeWithReadOption(n,t,Us(t,n,i,!1,!1))}else r===En?t.type&4&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,Us(t,n,r,!1,!1))}matchTNodeWithReadOption(n,t,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Ge||o===pt||o===En&&t.type&4)this.addMatch(t.index,-2);else{let i=Us(t,n,o,!1,!1);i!==null&&this.addMatch(t.index,i)}else this.addMatch(t.index,r)}}addMatch(n,t){this.matches===null?this.matches=[n,t]:this.matches.push(n,t)}};function u_(e,n){let t=e.localNames;if(t!==null){for(let r=0;r<t.length;r+=2)if(t[r]===n)return t[r+1]}return null}function l_(e,n){return e.type&11?Yr(e,n):e.type&4?Ba(e,n):null}function d_(e,n,t,r){return t===-1?l_(n,e):t===-2?f_(e,n,r):Ho(e,e[O],t,n)}function f_(e,n,t){if(t===Ge)return Yr(n,e);if(t===En)return Ba(n,e);if(t===pt)return Lv(n,e)}function jv(e,n,t,r){let o=n[Yt].queries[r];if(o.matches===null){let i=e.data,s=t.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=i[u];a.push(d_(n,l,s[c+1],t.metadata.read))}}o.matches=a}return o.matches}function Al(e,n,t,r){let o=e.queries.getByIndex(t),i=o.matches;if(i!==null){let s=jv(e,n,o,t);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let u=i[a+1],l=n[-c];for(let d=Ce;d<l.length;d++){let h=l[d];h[Gn]===h[Te]&&Al(h[O],h,u,r)}if(l[Pr]!==null){let d=l[Pr];for(let h=0;h<d.length;h++){let f=d[h];Al(f[O],f,u,r)}}}}}return r}function tf(e,n){return e[Yt].queries[n].queryList}function Vv(e,n,t){let r=new cl((t&4)===4);return $I(e,n,r,r.destroy),(n[Yt]??=new xl).queries.push(new Ml(r))-1}function Bv(e,n,t){let r=z();return r.firstCreatePass&&(Hv(r,new ua(e,n,t),-1),(n&2)===2&&(r.staticViewQueries=!0)),Vv(r,b(),n)}function Uv(e,n,t,r){let o=z();if(o.firstCreatePass){let i=Se();Hv(o,new ua(n,t,r),i.index),p_(o,e),(t&2)===2&&(o.staticContentQueries=!0)}return Vv(o,b(),t)}function h_(e){return e.split(",").map(n=>n.trim())}function Hv(e,n,t){e.queries===null&&(e.queries=new Nl),e.queries.track(new Rl(n,t))}function p_(e,n){let t=e.contentQueries||(e.contentQueries=[]),r=t.length?t[t.length-1]:-1;n!==r&&t.push(e.queries.length-1,n)}function nf(e,n){return e.queries.getByIndex(n)}function $v(e,n){let t=e[O],r=nf(t,n);return r.crossesNgTemplate?Al(t,e,n,[]):jv(t,e,r,n)}function zv(e,n,t){let r,o=xs(()=>{r._dirtyCounter();let i=g_(r,e);if(n&&i===void 0)throw new D(-951,!1);return i});return r=o[Ne],r._dirtyCounter=Qr(0),r._flatValue=void 0,o}function qv(e){return zv(!0,!1,e)}function Gv(e){return zv(!0,!0,e)}function Wv(e,n){let t=e[Ne];t._lView=b(),t._queryIndex=n,t._queryList=tf(t._lView,n),t._queryList.onDirty(()=>t._dirtyCounter.update(r=>r+1))}function g_(e,n){let t=e._lView,r=e._queryIndex;if(t===void 0||r===void 0||t[N]&4)return n?void 0:Re;let o=tf(t,r),i=$v(t,r);return o.reset(i,Mm),n?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Xp(e,n){return qv(n)}function m_(e,n){return Gv(n)}var $B=(Xp.required=m_,Xp);function eg(e,n){return qv(n)}function v_(e,n){return Gv(n)}var zB=(eg.required=v_,eg);function Zv(e,n){let t=Object.create(wg),r=new ia;t.value=e;function o(){return Cr(t),tg(t.value),t.value}return o[Ne]=t,o.asReadonly=xm.bind(o),o.set=i=>{t.equal(t.value,i)||(br(t,i),r.emit(i))},o.update=i=>{tg(t.value),o.set(i(t.value))},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function tg(e){if(e===Ea)throw new D(952,!1)}function ng(e,n){return Zv(e,n)}function y_(e){return Zv(Ea,e)}var qB=(ng.required=y_,ng);function D_(e){let n=[],t=new Map;function r(o){let i=t.get(o);if(!i){let s=e(o);t.set(o,i=s.then(C_))}return i}return la.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((d,h)=>{a.push(""),s.push(r(d).then(f=>{a[u+h]=f,l.splice(l.indexOf(d),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>b_(i));n.push(c)}),w_(),Promise.all(n).then(()=>{})}var la=new Map,E_=new Set;function w_(){let e=la;return la=new Map,e}function I_(){return la.size===0}function C_(e){return typeof e=="string"?e:e.text()}function b_(e){E_.delete(e)}var Xn=class{},rf=class{};function Yv(e,n){return new Go(e,n??null,[])}var Go=class extends Xn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new ca(this);constructor(n,t,r,o=!0){super(),this.ngModuleType=n,this._parent=t;let i=Fg(n);this._bootstrapComponents=ov(i.bootstrap),this._r3Injector=wm(n,t,[{provide:Xn,useValue:this},{provide:to,useValue:this.componentFactoryResolver},...r],Pe(n),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},da=class extends rf{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new Go(this.moduleType,n,[])}};function T_(e,n,t){return new Go(e,n,t,!1)}var Ol=class extends Xn{injector;componentFactoryResolver=new ca(this);instance=null;constructor(n){super();let t=new Bo([...n.providers,{provide:Xn,useValue:this},{provide:to,useValue:this.componentFactoryResolver}],n.parent||ba(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function ei(e,n,t=null){return new Ol({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}var __=(()=>{class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let r=jg(!1,t.type),o=r.length>0?ei([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=E({token:e,providedIn:"environment",factory:()=>new e(I(be))})}return e})();function ti(e){return Yo(()=>{let n=Qv(e),t=V(v({},n),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Am.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?o=>o.get(__).getOrCreateStandaloneInjector(t):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||Re,_:null,schemas:e.schemas||null,tView:null,id:""});n.standalone&&en("NgStandalone"),Kv(t);let r=e.dependencies;return t.directiveDefs=rg(r,!1),t.pipeDefs=rg(r,!0),t.id=R_(t),t})}function S_(e){return vn(e)||Lg(e)}function M_(e){return e!==null}function gt(e){return Yo(()=>({type:e.type,bootstrap:e.bootstrap||Re,declarations:e.declarations||Re,imports:e.imports||Re,exports:e.exports||Re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function x_(e,n){if(e==null)return Rt;let t={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Pa.None,c=null),t[i]=[r,a,c],n[i]=s}return t}function N_(e){if(e==null)return Rt;let n={};for(let t in e)e.hasOwnProperty(t)&&(n[e[t]]=t);return n}function Ee(e){return Yo(()=>{let n=Qv(e);return Kv(n),n})}function Tn(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Qv(e){let n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputConfig:e.inputs||Rt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:x_(e.inputs,n),outputs:N_(e.outputs),debugInfo:null}}function Kv(e){e.features?.forEach(n=>n(e))}function rg(e,n){if(!e)return null;let t=n?wI:S_;return()=>(typeof e=="function"?e():e).map(r=>t(r)).filter(M_)}function R_(e){let n=0,t=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,t,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function A_(e){return Object.getPrototypeOf(e.prototype).constructor}function O_(e){let n=A_(e.type),t=!0,r=[e];for(;n;){let o;if(dt(e))o=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new D(903,!1);o=n.\u0275dir}if(o){if(t){r.push(o);let s=e;s.inputs=Vu(e.inputs),s.declaredInputs=Vu(e.declaredInputs),s.outputs=Vu(e.outputs);let a=o.hostBindings;a&&j_(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&F_(e,c),u&&L_(e,u),k_(e,o),Xw(e.outputs,o.outputs),dt(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===O_&&(t=!1)}}n=Object.getPrototypeOf(n)}P_(r)}function k_(e,n){for(let t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;let r=n.inputs[t];r!==void 0&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t])}}function P_(e){let n=0,t=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Fr(o.hostAttrs,t=Fr(t,o.hostAttrs))}}function Vu(e){return e===Rt?{}:e===Re?[]:e}function F_(e,n){let t=e.viewQuery;t?e.viewQuery=(r,o)=>{n(r,o),t(r,o)}:e.viewQuery=n}function L_(e,n){let t=e.contentQueries;t?e.contentQueries=(r,o,i)=>{n(r,o,i),t(r,o,i)}:e.contentQueries=n}function j_(e,n){let t=e.hostBindings;t?e.hostBindings=(r,o)=>{n(r,o),t(r,o)}:e.hostBindings=n}function ZB(e){let n=t=>{let r=Array.isArray(e);t.hostDirectives===null?(t.findHostDirectiveDefs=Jv,t.hostDirectives=r?e.map(kl):[e]):r?t.hostDirectives.unshift(...e.map(kl)):t.hostDirectives.unshift(e)};return n.ngInherit=!0,n}function Jv(e,n,t){if(e.hostDirectives!==null)for(let r of e.hostDirectives)if(typeof r=="function"){let o=r();for(let i of o)og(kl(i),n,t)}else og(r,n,t)}function og(e,n,t){let r=Lg(e.directive);V_(r.declaredInputs,e.inputs),Jv(r,n,t),t.set(r,e),n.push(r)}function kl(e){return typeof e=="function"?{directive:De(e),inputs:Rt,outputs:Rt}:{directive:De(e.directive),inputs:ig(e.inputs),outputs:ig(e.outputs)}}function ig(e){if(e===void 0||e.length===0)return Rt;let n={};for(let t=0;t<e.length;t+=2)n[e[t]]=e[t+1];return n}function V_(e,n){for(let t in n)if(n.hasOwnProperty(t)){let r=n[t],o=e[t];e[r]=o}}function Xv(e){return of(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function B_(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{let t=e[Symbol.iterator](),r;for(;!(r=t.next()).done;)n(r.value)}}function of(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function rn(e,n,t){return e[n]=t}function Ua(e,n){return e[n]}function _e(e,n,t){let r=e[n];return Object.is(r,t)?!1:(e[n]=t,!0)}function Br(e,n,t,r){let o=_e(e,n,t);return _e(e,n+1,r)||o}function sf(e,n,t,r,o){let i=Br(e,n,t,r);return _e(e,n+2,o)||i}function Ha(e,n,t,r,o,i){let s=Br(e,n,t,r);return Br(e,n+2,o,i)||s}function U_(e,n,t,r,o,i,s,a,c){let u=n.consts,l=eo(n,e,4,s||null,a||null);md()&&ef(n,t,l,yn(u,c),Gd),l.mergedAttrs=Fr(l.mergedAttrs,l.attrs),bd(n,l);let d=l.tView=Hd(2,l,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u,null);return n.queries!==null&&(n.queries.template(n,l),d.queries=n.queries.embeddedTView(l)),l}function fa(e,n,t,r,o,i,s,a,c,u){let l=t+ee,d=n.firstCreatePass?U_(l,n,e,r,o,i,s,a,c):n.data[l];wn(d,!1);let h=H_(n,e,d,t);Na()&&ja(n,e,h,d),Kr(h,e);let f=Sv(h,e,h,d);return e[l]=f,zd(e,f),a_(f,d,e),_a(d)&&Fa(n,e,d),c!=null&&qd(e,d,u),d}function no(e,n,t,r,o,i,s,a){let c=b(),u=z(),l=yn(u.consts,i);return fa(c,u,e,n,t,r,o,l,s,a),no}var H_=$_;function $_(e,n,t,r){return Ra(!0),n[Z].createComment("")}var af=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var cf=new w(""),ni=new w(""),$a=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(t,r,o){this._ngZone=t,this.registry=r,cd()&&(this._destroyRef=g(Jt,{optional:!0})??void 0),uf||(z_(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let t=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{H.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{t.unsubscribe(),r.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(t)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t()},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,o),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}static \u0275fac=function(r){return new(r||e)(I(H),I(za),I(ni))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),za=(()=>{class e{_applications=new Map;registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return uf?.findTestabilityInTree(this,t,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function z_(e){uf=e}var uf,ey=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:()=>new Pl})}return e})(),Pl=class{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}remove(n){let t=n.zone,r=this.queues.get(t);r.has(n)&&(r.delete(n),this.queuedEffectCount--)}enqueue(n){let t=n.zone;this.queues.has(t)||this.queues.set(t,new Set);let r=this.queues.get(t);r.has(n)||(this.queuedEffectCount++,r.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,t]of this.queues)n===null?this.flushQueue(t):n.run(()=>this.flushQueue(t))}flushQueue(n){for(let t of n)n.delete(t),this.queuedEffectCount--,t.run()}};function ro(e){return!!e&&typeof e.then=="function"}function lf(e){return!!e&&typeof e.subscribe=="function"}var ty=new w("");function df(e){return tr([{provide:ty,multi:!0,useValue:e}])}var ny=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r});appInits=g(ty,{optional:!0})??[];injector=g(oe);constructor(){}runInitializers(){if(this.initialized)return;let t=[];for(let o of this.appInits){let i=Le(this.injector,o);if(ro(i))t.push(i);else if(lf(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});t.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),t.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ff=new w("");function q_(){_u(()=>{throw new D(600,!1)})}function G_(e){return e.isBoundToModule}var W_=10;function ry(e,n){return Array.isArray(n)?n.reduce(ry,e):v(v({},e),n)}var qe=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(xC);afterRenderManager=g(Um);zonelessEnabled=g(Sd);rootEffectScheduler=g(ey);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new B;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=g(Xt).hasPendingTasks.pipe(A(t=>!t));constructor(){g(Xr,{optional:!0})}whenStable(){let t;return new Promise(r=>{t=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{t.unsubscribe()})}_injector=g(be);_rendererFactory=null;get injector(){return this._injector}bootstrap(t,r){return this.bootstrapImpl(t,r)}bootstrapImpl(t,r,o=oe.NULL){K(10);let i=t instanceof Rv;if(!this._injector.get(ny).done){let f="";throw new D(405,f)}let a;i?a=t:a=this._injector.get(to).resolveComponentFactory(t),this.componentTypes.push(a.componentType);let c=G_(a)?void 0:this._injector.get(Xn),u=r||a.selector,l=a.create(o,[],u,c),d=l.location.nativeElement,h=l.injector.get(cf,null);return h?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Hs(this.components,l),h?.unregisterApplication(d)}),this._loadComponent(l),K(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){K(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(kd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new D(101,!1);let t=P(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,P(t),this.afterTick.next(),K(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Vr,null,{optional:!0}));let t=0;for(;this.dirtyFlags!==0&&t++<W_;)K(14),this.synchronizeOnce(),K(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let t=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)Z_(r,o,t,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:t})=>Sa(t))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(t){let r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){let r=t;Hs(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ff,[]).forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Hs(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new D(406,!1);let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Hs(e,n){let t=e.indexOf(n);t>-1&&e.splice(t,1)}function Z_(e,n,t,r){if(!t&&!Sa(e))return;Cv(e,n,t&&!r?0:1)}function _n(e,n,t,r){let o=b(),i=In();if(_e(o,i,n)){let s=z(),a=Cn();Yb(a,o,e,n,t,r)}return _n}function hf(e,n,t,r){return _e(e,In(),t)?n+Nt(t)+r:ge}function pf(e,n,t,r,o,i){let s=nm(),a=Br(e,s,t,o);return Ma(2),a?n+Nt(t)+r+Nt(o)+i:ge}function oy(e,n,t,r,o,i,s,a){let c=nm(),u=sf(e,c,t,o,s);return Ma(3),u?n+Nt(t)+r+Nt(o)+i+Nt(s)+a:ge}function Fs(e,n){return e<<17|n<<2}function er(e){return e>>17&32767}function Y_(e){return(e&2)==2}function Q_(e,n){return e&131071|n<<17}function Fl(e){return e|2}function Ur(e){return(e&131068)>>2}function Bu(e,n){return e&-131069|n<<2}function K_(e){return(e&1)===1}function Ll(e){return e|1}function J_(e,n,t,r,o,i){let s=i?n.classBindings:n.styleBindings,a=er(s),c=Ur(s);e[r]=t;let u=!1,l;if(Array.isArray(t)){let d=t;l=d[1],(l===null||Qo(d,l)>0)&&(u=!0)}else l=t;if(o)if(c!==0){let h=er(e[a+1]);e[r+1]=Fs(h,a),h!==0&&(e[h+1]=Bu(e[h+1],r)),e[a+1]=Q_(e[a+1],r)}else e[r+1]=Fs(a,0),a!==0&&(e[a+1]=Bu(e[a+1],r)),a=r;else e[r+1]=Fs(c,0),a===0?a=r:e[c+1]=Bu(e[c+1],r),c=r;u&&(e[r+1]=Fl(e[r+1])),sg(e,l,r,!0),sg(e,l,r,!1),X_(n,l,e,r,i),s=Fs(a,c),i?n.classBindings=s:n.styleBindings=s}function X_(e,n,t,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof n=="string"&&Qo(i,n)>=0&&(t[r+1]=Ll(t[r+1]))}function sg(e,n,t,r){let o=e[t+1],i=n===null,s=r?er(o):Ur(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];eS(c,n)&&(a=!0,e[s+1]=r?Ll(u):Fl(u)),s=r?er(u):Ur(u)}a&&(e[t+1]=r?Fl(o):Ll(o))}function eS(e,n){return e===null||n==null||(Array.isArray(e)?e[1]:e)===n?!0:Array.isArray(e)&&typeof n=="string"?Qo(e,n)>=0:!1}var le={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function iy(e){return e.substring(le.key,le.keyEnd)}function tS(e){return e.substring(le.value,le.valueEnd)}function nS(e){return cy(e),sy(e,Hr(e,0,le.textEnd))}function sy(e,n){let t=le.textEnd;return t===n?-1:(n=le.keyEnd=oS(e,le.key=n,t),Hr(e,n,t))}function rS(e){return cy(e),ay(e,Hr(e,0,le.textEnd))}function ay(e,n){let t=le.textEnd,r=le.key=Hr(e,n,t);return t===r?-1:(r=le.keyEnd=iS(e,r,t),r=ag(e,r,t,58),r=le.value=Hr(e,r,t),r=le.valueEnd=sS(e,r,t),ag(e,r,t,59))}function cy(e){le.key=0,le.keyEnd=0,le.value=0,le.valueEnd=0,le.textEnd=e.length}function Hr(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function oS(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}function iS(e,n,t){let r;for(;n<t&&((r=e.charCodeAt(n))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)n++;return n}function ag(e,n,t,r){return n=Hr(e,n,t),n<t&&n++,n}function sS(e,n,t){let r=-1,o=-1,i=-1,s=n,a=s;for(;s<t;){let c=e.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=cg(e,c,s,t):n===s-4&&i===85&&o===82&&r===76&&c===40?a=s=cg(e,41,s,t):c>32&&(a=s),i=o,o=r,r=c&-33}return a}function cg(e,n,t,r){let o=-1,i=t;for(;i<r;){let s=e.charCodeAt(i++);if(s==n&&o!==92)return i;s==92&&o===92?o=0:o=s}throw new Error}function Me(e,n,t){let r=b(),o=In();if(_e(r,o,n)){let i=z(),s=Cn();nr(i,s,r,e,n,r[Z],t,!1)}return Me}function jl(e,n,t,r,o){Wd(n,e,t,o?"class":"style",r)}function Sn(e,n,t){return uy(e,n,t,!1),Sn}function aS(e,n){return uy(e,n,null,!0),aS}function YB(e){qa(fy,cS,e,!1)}function cS(e,n){for(let t=rS(n);t>=0;t=ay(n,t))fy(e,iy(n),tS(n))}function on(e){qa(pS,gf,e,!0)}function gf(e,n){for(let t=nS(n);t>=0;t=sy(n,t))$r(e,iy(n),!0)}function uy(e,n,t,r){let o=b(),i=z(),s=Ma(2);if(i.firstUpdatePass&&dy(i,e,s,r),n!==ge&&_e(o,s,n)){let a=i.data[Vt()];hy(i,a,o,o[Z],e,o[s+1]=mS(n,t),r,s)}}function qa(e,n,t,r){let o=z(),i=Ma(2);o.firstUpdatePass&&dy(o,null,i,r);let s=b();if(t!==ge&&_e(s,i,t)){let a=o.data[Vt()];if(py(a,r)&&!ly(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(t=Gu(c,t||"")),jl(o,a,s,t,r)}else gS(o,a,s,s[Z],s[i+1],s[i+1]=hS(e,n,t),r,i)}}function ly(e,n){return n>=e.expandoStartIndex}function dy(e,n,t,r){let o=e.data;if(o[t+1]===null){let i=o[Vt()],s=ly(e,t);py(i,r)&&n===null&&!s&&(n=!1),n=uS(o,i,n,r),J_(o,i,n,t,s,r)}}function uS(e,n,t,r){let o=rm(e),i=r?n.residualClasses:n.residualStyles;if(o===null)(r?n.classBindings:n.styleBindings)===0&&(t=Uu(null,e,n,t,r),t=Wo(t,n.attrs,r),i=null);else{let s=n.directiveStylingLast;if(s===-1||e[s]!==o)if(t=Uu(o,e,n,t,r),i===null){let c=lS(e,n,r);c!==void 0&&Array.isArray(c)&&(c=Uu(null,e,n,c[1],r),c=Wo(c,n.attrs,r),dS(e,n,r,c))}else i=fS(e,n,r)}return i!==void 0&&(r?n.residualClasses=i:n.residualStyles=i),t}function lS(e,n,t){let r=t?n.classBindings:n.styleBindings;if(Ur(r)!==0)return e[er(r)]}function dS(e,n,t,r){let o=t?n.classBindings:n.styleBindings;e[er(o)]=r}function fS(e,n,t){let r,o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Wo(r,s,t)}return Wo(r,n.attrs,t)}function Uu(e,n,t,r,o){let i=null,s=t.directiveEnd,a=t.directiveStylingLast;for(a===-1?a=t.directiveStart:a++;a<s&&(i=n[a],r=Wo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(t.directiveStylingLast=a),r}function Wo(e,n,t){let r=t?1:2,o=-1;if(n!==null)for(let i=0;i<n.length;i++){let s=n[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),$r(e,s,t?!0:n[++i]))}return e===void 0?null:e}function hS(e,n,t){if(t==null||t==="")return Re;let r=[],o=Be(t);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&n(r,o);return r}function fy(e,n,t){$r(e,n,Be(t))}function pS(e,n,t){let r=String(n);r!==""&&!r.includes(" ")&&$r(e,r,t)}function gS(e,n,t,r,o,i,s,a){o===ge&&(o=Re);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let h=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,p=null,m;l===d?(c+=2,u+=2,h!==f&&(p=d,m=f)):d===null||l!==null&&l<d?(c+=2,p=l):(u+=2,p=d,m=f),p!==null&&hy(e,n,t,r,p,m,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null}}function hy(e,n,t,r,o,i,s,a){if(!(n.type&3))return;let c=e.data,u=c[a+1],l=K_(u)?ug(c,n,t,o,Ur(u),s):void 0;if(!ha(l)){ha(i)||Y_(u)&&(i=ug(c,null,t,o,a,s));let d=Zg(Vt(),t);pT(r,s,d,o,i)}}function ug(e,n,t,r,o,i){let s=n===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=t[o+1];h===ge&&(h=d?Re:void 0);let f=d?Ru(h,r):l===r?h:void 0;if(u&&!ha(f)&&(f=Ru(c,r)),ha(f)&&(a=f,s))return a;let p=e[o+1];o=s?er(p):Ur(p)}if(n!==null){let c=i?n.residualClasses:n.residualStyles;c!=null&&(a=Ru(c,r))}return a}function ha(e){return e!==void 0}function mS(e,n){return e==null||e===""||(typeof n=="string"?e=e+n:typeof e=="object"&&(e=Pe(Be(e)))),e}function py(e,n){return(e.flags&(n?8:16))!==0}function QB(e,n,t){let r=b(),o=hf(r,e,n,t);qa($r,gf,o,!0)}function KB(e,n,t,r,o){let i=b(),s=pf(i,e,n,t,r,o);qa($r,gf,s,!0)}function JB(){return b()[Fe][se]}var Vl=class{destroy(n){}updateValue(n,t){}swap(n,t){let r=Math.min(n,t),o=Math.max(n,t),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(n,t){this.attach(t,this.detach(n))}};function Hu(e,n,t,r,o){return e===t&&Object.is(n,r)?1:Object.is(o(e,n),o(t,r))?-1:0}function vS(e,n,t){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(n)){let c=n.length-1;for(;i<=s&&i<=c;){let u=e.at(i),l=n[i],d=Hu(i,u,i,l,t);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=n[c],p=Hu(s,h,c,f,t);if(p!==0){p<0&&e.updateValue(s,f),s--,c--;continue}let m=t(i,u),y=t(s,h),_=t(i,l);if(Object.is(_,y)){let $=t(c,f);Object.is($,m)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new pa,o??=dg(e,i,s,t),Bl(e,r,i,_))e.updateValue(i,l),i++,s++;else if(o.has(_))r.set(m,e.detach(i)),s--;else{let $=e.create(i,n[i]);e.attach(i,$),i++,s++}}for(;i<=c;)lg(e,r,t,i,n[i]),i++}else if(n!=null){let c=n[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),d=u.value,h=Hu(i,l,i,d,t);if(h!==0)h<0&&e.updateValue(i,d),i++,u=c.next();else{r??=new pa,o??=dg(e,i,s,t);let f=t(i,d);if(Bl(e,r,i,f))e.updateValue(i,d),i++,s++,u=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,u=c.next();else{let p=t(i,l);r.set(p,e.detach(i)),s--}}}for(;!u.done;)lg(e,r,t,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Bl(e,n,t,r){return n!==void 0&&n.has(r)?(e.attach(t,n.get(r)),n.delete(r),!0):!1}function lg(e,n,t,r,o){if(Bl(e,n,r,t(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function dg(e,n,t,r){let o=new Set;for(let i=n;i<=t;i++)o.add(r(i,e.at(i)));return o}var pa=class{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let t=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(n,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,t){if(this.kvMap.has(n)){let r=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,t)}else this.kvMap.set(n,t)}forEach(n){for(let[t,r]of this.kvMap)if(n(r,t),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),n(r,t)}}};function XB(e,n){en("NgControlFlow");let t=b(),r=In(),o=t[r]!==ge?t[r]:-1,i=o!==-1?ga(t,ee+o):void 0,s=0;if(_e(t,r,e)){let a=P(null);try{if(i!==void 0&&xv(i,s),e!==-1){let c=ee+e,u=ga(t,c),l=zl(t[O],c),d=jr(u,l.tView.ssrId),h=Jo(t,l,n,{dehydratedView:d});Xo(u,h,s,Lr(l,d))}}finally{P(a)}}else if(i!==void 0){let a=Mv(i,s);a!==void 0&&(a[se]=n)}}var Ul=class{lContainer;$implicit;$index;constructor(n,t,r){this.lContainer=n,this.$implicit=t,this.$index=r}get $count(){return this.lContainer.length-Ce}};function eU(e){return e}function tU(e,n){return n}var Hl=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,t,r){this.hasEmptyBlock=n,this.trackByFn=t,this.liveCollection=r}};function nU(e,n,t,r,o,i,s,a,c,u,l,d,h){en("NgControlFlow");let f=b(),p=z(),m=c!==void 0,y=b(),_=a?s.bind(y[Fe][se]):s,$=new Hl(m,_);y[ee+e]=$,fa(f,p,e+1,n,t,r,o,yn(p.consts,i)),m&&fa(f,p,e+2,c,u,l,d,yn(p.consts,h))}var $l=class extends Vl{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,t,r){super(),this.lContainer=n,this.hostLView=t,this.templateTNode=r}get length(){return this.lContainer.length-Ce}at(n){return this.getLView(n)[se].$implicit}attach(n,t){let r=t[Or];this.needsIndexUpdate||=n!==this.length,Xo(this.lContainer,t,n,Lr(this.templateTNode,r))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,yS(this.lContainer,n)}create(n,t){let r=jr(this.lContainer,this.templateTNode.tView.ssrId),o=Jo(this.hostLView,this.templateTNode,new Ul(this.lContainer,t,n),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(n){La(n[O],n),this.operationsCounter?.recordDestroy()}updateValue(n,t){this.getLView(n)[se].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[se].$index=n}getLView(n){return DS(this.lContainer,n)}};function rU(e){let n=P(null),t=Vt();try{let r=b(),o=r[O],i=r[t],s=t+1,a=ga(r,s);if(i.liveCollection===void 0){let u=zl(o,s);i.liveCollection=new $l(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(vS(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let u=In(),l=c.length===0;if(_e(r,u,l)){let d=t+2,h=ga(r,d);if(l){let f=zl(o,d),p=jr(h,f.tView.ssrId),m=Jo(r,f,void 0,{dehydratedView:p});Xo(h,m,0,Lr(f,p))}else xv(h,0)}}}finally{P(n)}}function ga(e,n){return e[n]}function yS(e,n){return zo(e,n)}function DS(e,n){return Mv(e,n)}function zl(e,n){return fd(e,n)}function Ze(e,n,t,r){let o=b(),i=z(),s=ee+e,a=o[Z],c=i.firstCreatePass?kv(s,i,o,n,Gd,md(),t,r):i.data[s],u=ES(i,o,c,a,n,e);o[s]=u;let l=_a(c);return wn(c,!0),uv(a,u,c),!Qd(c)&&Na()&&ja(i,o,u,c),(zI()===0||l)&&Kr(u,o),qI(),l&&(Fa(i,o,c),Ld(i,c,o)),r!==null&&qd(o,c),Ze}function mt(){let e=Se();Dd()?Ed():(e=e.parent,wn(e,!1));let n=e;WI(n)&&ZI(),GI();let t=z();return t.firstCreatePass&&Pv(t,n),n.classesWithoutHost!=null&&aC(n)&&jl(t,n,b(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&cC(n)&&jl(t,n,b(),n.stylesWithoutHost,!1),mt}function Mn(e,n,t,r){return Ze(e,n,t,r),mt(),Mn}var ES=(e,n,t,r,o,i)=>(Ra(!0),av(r,o,oC()));function wS(e,n,t,r,o){let i=n.consts,s=yn(i,r),a=eo(n,e,8,"ng-container",s);s!==null&&_l(a,s,!0);let c=yn(i,o);return md()&&ef(n,t,a,c,Gd),a.mergedAttrs=Fr(a.mergedAttrs,a.attrs),n.queries!==null&&n.queries.elementStart(n,a),a}function ri(e,n,t){let r=b(),o=z(),i=e+ee,s=o.firstCreatePass?wS(i,o,r,n,t):o.data[i];wn(s,!0);let a=CS(o,r,s,e);return r[i]=a,Na()&&ja(o,r,a,s),Kr(a,r),_a(s)&&(Fa(o,r,s),Ld(o,s,r)),t!=null&&qd(r,s),ri}function oi(){let e=Se(),n=z();return Dd()?Ed():(e=e.parent,wn(e,!1)),n.firstCreatePass&&(bd(n,e),dd(e)&&n.queries.elementEnd(e)),oi}function IS(e,n,t){return ri(e,n,t),oi(),IS}var CS=(e,n,t,r)=>(Ra(!0),kb(n[Z],""));function mf(){return b()}function bS(e,n,t){let r=b(),o=In();if(_e(r,o,n)){let i=z(),s=Cn();nr(i,s,r,e,n,r[Z],t,!0)}return bS}function vf(e,n,t){let r=b(),o=In();if(_e(r,o,n)){let i=z(),s=Cn(),a=rm(i.data),c=Jb(a,s,r);nr(i,s,r,e,n,c,t,!0)}return vf}var Hn=void 0;function TS(e){let n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&t===0?1:5}var _S=["en",[["a","p"],["AM","PM"],Hn],[["AM","PM"],Hn,Hn],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Hn,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Hn,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hn,"{1} 'at' {0}",Hn],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",TS],$u={};function Ue(e){let n=SS(e),t=fg(n);if(t)return t;let r=n.split("-")[0];if(t=fg(r),t)return t;if(r==="en")return _S;throw new D(701,!1)}function fg(e){return e in $u||($u[e]=pe.ng&&pe.ng.common&&pe.ng.common.locales&&pe.ng.common.locales[e]),$u[e]}var te=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(te||{});function SS(e){return e.toLowerCase().replace(/_/g,"-")}var ma="en-US",MS="USD";var xS=ma;function NS(e){typeof e=="string"&&(xS=e.toLowerCase().replace(/_/g,"-"))}function hg(e,n,t){return function r(o){if(o===Function)return t;let i=qr(e)?Ot(e.index,n):n;Xd(i,5);let s=n[se],a=pg(n,s,t,o),c=r.__ngNextListenerFn__;for(;c;)a=pg(n,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function pg(e,n,t,r){let o=P(null);try{return K(6,n,t),t(r)!==!1}catch(i){return RS(e,i),!1}finally{K(7,n,t),P(o)}}function RS(e,n){let t=e[kr],r=t?t.get(ft,null):null;r&&r.handleError(n)}function gg(e,n,t,r,o,i){let s=n[t],a=n[O],u=a.data[t].outputs[r],l=s[u],d=a.firstCreatePass?gd(a):null,h=pd(n),f=l.subscribe(i),p=h.length;h.push(i,f),d&&d.push(o,e.index,p,-(p+1))}function xn(e,n,t,r){let o=b(),i=z(),s=Se();return gy(i,o,o[Z],s,e,n,r),xn}function AS(e,n,t,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===t&&o[i+1]===r){let a=n[Zs],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function gy(e,n,t,r,o,i,s){let a=_a(r),u=e.firstCreatePass?gd(e):null,l=pd(n),d=!0;if(r.type&3||s){let h=jt(r,n),f=s?s(h):h,p=l.length,m=s?_=>s(At(_[r.index])):r.index,y=null;if(!s&&a&&(y=AS(e,n,o,r.index)),y!==null){let _=y.__ngLastListenerFn__||y;_.__ngNextListenerFn__=i,y.__ngLastListenerFn__=i,d=!1}else{i=hg(r,n,i),WC(n,f,o,i);let _=t.listen(f,o,i);l.push(i,_),u&&u.push(o,m,p,p+1)}}else i=hg(r,n,i);if(d){let h=r.outputs?.[o],f=r.hostDirectiveOutputs?.[o];if(f&&f.length)for(let p=0;p<f.length;p+=2){let m=f[p],y=f[p+1];gg(r,n,m,y,o,i)}if(h&&h.length)for(let p of h)gg(r,n,p,o,o,i)}}function Ye(e=1){return nC(e)}function OS(e,n){let t=null,r=Tb(e);for(let o=0;o<n.length;o++){let i=n[o];if(i==="*"){t=o;continue}if(r===null?sv(e,i,!0):Mb(r,i))return o}return t}function oU(e){let n=b()[Fe][je];if(!n.projection){let t=e?e.length:1,r=n.projection=yI(t,null),o=r.slice(),i=n.child;for(;i!==null;){if(i.type!==128){let s=e?OS(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function iU(e,n=0,t,r,o,i){let s=b(),a=z(),c=r?e+1:null;c!==null&&fa(s,a,c,r,o,i,null,t);let u=eo(a,ee+e,16,null,t||null);u.projection===null&&(u.projection=n),Ed();let d=!s[Or]||Xg();s[Fe][je].projection[u.projection]===null&&c!==null?kS(s,a,c):d&&!Qd(u)&&fT(a,s,u)}function kS(e,n,t){let r=ee+t,o=n.data[r],i=e[r],s=jr(i,o.tView.ssrId),a=Jo(e,o,void 0,{dehydratedView:s});Xo(i,a,0,Lr(o,s))}function PS(e,n,t){return my(e,"",n,"",t),PS}function my(e,n,t,r,o){let i=b(),s=hf(i,n,t,r);if(s!==ge){let a=z(),c=Cn();nr(a,c,i,e,s,i[Z],o,!1)}return my}function FS(e,n,t,r,o,i,s){let a=b(),c=pf(a,n,t,r,o,i);if(c!==ge){let u=z(),l=Cn();nr(u,l,a,e,c,a[Z],s,!1)}return FS}function LS(e,n,t,r,o,i,s,a,c){let u=b(),l=oy(u,n,t,r,o,i,s,a);if(l!==ge){let d=z(),h=Cn();nr(d,h,u,e,l,u[Z],c,!1)}return LS}function vy(e,n,t,r){Uv(e,n,t,r)}function sU(e,n,t){Bv(e,n,t)}function yy(e){let n=b(),t=z(),r=wd();xa(r+1);let o=nf(t,r);if(e.dirty&&VI(n)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=$v(n,r);e.reset(i,Mm),e.notifyOnChanges()}return!0}return!1}function Dy(){return tf(b(),wd())}function aU(e,n,t,r,o){Wv(n,Uv(e,t,r,o))}function cU(e,n,t,r){Wv(e,Bv(n,t,r))}function uU(e=1){xa(wd()+e)}function lU(e){let n=QI();return Wr(n,ee+e)}function sn(e,n=""){let t=b(),r=z(),o=e+ee,i=r.firstCreatePass?eo(r,o,1,n,null):r.data[o],s=jS(r,t,i,n,e);t[o]=s,Na()&&ja(r,t,s,i),wn(i,!1)}var jS=(e,n,t,r,o)=>(Ra(!0),Ab(n[Z],r));function VS(e){return an("",e,""),VS}function an(e,n,t){let r=b(),o=hf(r,e,n,t);return o!==ge&&yf(r,Vt(),o),an}function BS(e,n,t,r,o){let i=b(),s=pf(i,e,n,t,r,o);return s!==ge&&yf(i,Vt(),s),BS}function US(e,n,t,r,o,i,s){let a=b(),c=oy(a,e,n,t,r,o,i,s);return c!==ge&&yf(a,Vt(),c),US}function yf(e,n,t){let r=Zg(n,e);Ob(e[Z],r,t)}function HS(e,n,t){Nm(n)&&(n=n());let r=b(),o=In();if(_e(r,o,n)){let i=z(),s=Cn();nr(i,s,r,e,n,r[Z],t,!1)}return HS}function dU(e,n){let t=Nm(e);return t&&e.set(n),t}function $S(e,n){let t=b(),r=z(),o=Se();return gy(r,t,t[Z],o,e,n),$S}var zS={};function qS(e){let n=z(),t=b(),r=e+ee,o=eo(n,r,128,null,null);return wn(o,!1),Yg(n,t,r,zS),qS}function GS(e,n,t){let r=z();if(r.firstCreatePass){let o=dt(e);ql(t,r.data,r.blueprint,o,!0),ql(n,r.data,r.blueprint,o,!1)}}function ql(e,n,t,r,o){if(e=De(e),Array.isArray(e))for(let i=0;i<e.length;i++)ql(e[i],n,t,r,o);else{let i=z(),s=b(),a=Se(),c=Ar(e)?e:De(e.provide),u=Ug(e),l=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(Ar(e)||!e.multi){let f=new Kn(u,o,R),p=qu(c,n,o?l:l+h,d);p===-1?(ol(ta(a,s),i,c),zu(i,e,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(f),s.push(f)):(t[p]=f,s[p]=f)}else{let f=qu(c,n,l+h,d),p=qu(c,n,l,l+h),m=f>=0&&t[f],y=p>=0&&t[p];if(o&&!y||!o&&!m){ol(ta(a,s),i,c);let _=YS(o?ZS:WS,t.length,o,r,u);!o&&y&&(t[p].providerFactory=_),zu(i,e,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(_),s.push(_)}else{let _=Ey(t[o?p:f],u,!o&&r);zu(i,e,f>-1?f:p,_)}!o&&r&&y&&t[p].componentProviders++}}}function zu(e,n,t,r){let o=Ar(n),i=_I(n);if(o||i){let c=(i?De(n.useClass):n).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){let l=u.indexOf(t);l===-1?u.push(t,[r,c]):u[l+1].push(r,c)}else u.push(t,c)}}}function Ey(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function qu(e,n,t,r){for(let o=t;o<r;o++)if(n[o]===e)return o;return-1}function WS(e,n,t,r,o){return Gl(this.multi,[])}function ZS(e,n,t,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Ho(r,r[O],this.providerFactory.index,o);s=c.slice(0,a),Gl(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],Gl(i,s);return s}function Gl(e,n){for(let t=0;t<e.length;t++){let r=e[t];n.push(r())}return n}function YS(e,n,t,r,o){let i=new Kn(e,t,R);return i.multi=[],i.index=n,i.componentProviders=0,Ey(i,o,r&&!t),i}function fU(e,n=[]){return t=>{t.providersResolver=(r,o)=>GS(r,o?o(e):e,n)}}function hU(e,n,t){let r=Ve()+e,o=b();return o[r]===ge?rn(o,r,t?n.call(t):n()):Ua(o,r)}function pU(e,n,t,r){return wy(b(),Ve(),e,n,t,r)}function gU(e,n,t,r,o){return Iy(b(),Ve(),e,n,t,r,o)}function mU(e,n,t,r,o,i){return Cy(b(),Ve(),e,n,t,r,o,i)}function vU(e,n,t,r,o,i,s){return by(b(),Ve(),e,n,t,r,o,i,s)}function yU(e,n,t,r,o,i,s,a){let c=Ve()+e,u=b(),l=Ha(u,c,t,r,o,i);return _e(u,c+4,s)||l?rn(u,c+5,a?n.call(a,t,r,o,i,s):n(t,r,o,i,s)):Ua(u,c+5)}function DU(e,n,t,r,o,i,s,a,c){let u=Ve()+e,l=b(),d=Ha(l,u,t,r,o,i);return Br(l,u+4,s,a)||d?rn(l,u+6,c?n.call(c,t,r,o,i,s,a):n(t,r,o,i,s,a)):Ua(l,u+6)}function EU(e,n,t,r,o,i,s,a,c,u){let l=Ve()+e,d=b(),h=Ha(d,l,t,r,o,i);return sf(d,l+4,s,a,c)||h?rn(d,l+7,u?n.call(u,t,r,o,i,s,a,c):n(t,r,o,i,s,a,c)):Ua(d,l+7)}function wU(e,n,t,r){return Ty(b(),Ve(),e,n,t,r)}function ii(e,n){let t=e[n];return t===ge?void 0:t}function wy(e,n,t,r,o,i){let s=n+t;return _e(e,s,o)?rn(e,s+1,i?r.call(i,o):r(o)):ii(e,s+1)}function Iy(e,n,t,r,o,i,s){let a=n+t;return Br(e,a,o,i)?rn(e,a+2,s?r.call(s,o,i):r(o,i)):ii(e,a+2)}function Cy(e,n,t,r,o,i,s,a){let c=n+t;return sf(e,c,o,i,s)?rn(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):ii(e,c+3)}function by(e,n,t,r,o,i,s,a,c){let u=n+t;return Ha(e,u,o,i,s,a)?rn(e,u+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):ii(e,u+4)}function Ty(e,n,t,r,o,i){let s=n+t,a=!1;for(let c=0;c<o.length;c++)_e(e,s++,o[c])&&(a=!0);return a?rn(e,s,r.apply(i,o)):ii(e,s)}function IU(e,n){let t=z(),r,o=e+ee;t.firstCreatePass?(r=QS(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks??=[]).push(o,r.onDestroy)):r=t.data[o];let i=r.factory||(r.factory=qn(r.type,!0)),s,a=ke(R);try{let c=ea(!1),u=i();return ea(c),Yg(t,b(),o,u),u}finally{ke(a)}}function QS(e,n){if(n)for(let t=n.length-1;t>=0;t--){let r=n[t];if(e===r.name)return r}}function CU(e,n,t){let r=e+ee,o=b(),i=Wr(o,r);return si(o,r)?wy(o,Ve(),n,i.transform,t,i):i.transform(t)}function bU(e,n,t,r){let o=e+ee,i=b(),s=Wr(i,o);return si(i,o)?Iy(i,Ve(),n,s.transform,t,r,s):s.transform(t,r)}function TU(e,n,t,r,o){let i=e+ee,s=b(),a=Wr(s,i);return si(s,i)?Cy(s,Ve(),n,a.transform,t,r,o,a):a.transform(t,r,o)}function _U(e,n,t,r,o,i){let s=e+ee,a=b(),c=Wr(a,s);return si(a,s)?by(a,Ve(),n,c.transform,t,r,o,i,c):c.transform(t,r,o,i)}function SU(e,n,t){let r=e+ee,o=b(),i=Wr(o,r);return si(o,r)?Ty(o,Ve(),n,i.transform,t,i):i.transform.apply(i,t)}function si(e,n){return e[O].data[n].pure}function MU(e,n){return Ba(e,n)}var Ls=null;function KS(e){Ls!==null&&(e.defaultEncapsulation!==Ls.defaultEncapsulation||e.preserveWhitespaces!==Ls.preserveWhitespaces)||(Ls=e)}var Zo=class{full;major;minor;patch;constructor(n){this.full=n;let t=n.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},xU=new Zo("19.2.14"),Wl=class{ngModuleFactory;componentFactories;constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}},_y=(()=>{class e{compileModuleSync(t){return new da(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){let r=this.compileModuleSync(t),o=Fg(t),i=ov(o.declarations).reduce((s,a)=>{let c=vn(a);return c&&s.push(new Jn(c)),s},[]);return new Wl(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),JS=new w("");function XS(e,n,t){let r=new da(t);return Promise.resolve(r)}function mg(e){for(let n=e.length-1;n>=0;n--)if(e[n]!==void 0)return e[n]}var eM=(()=>{class e{zone=g(H);changeDetectionScheduler=g(Dn);applicationRef=g(qe);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function tM({ngZoneFactory:e,ignoreChangesOutsideZone:n,scheduleInRootZone:t}){return e??=()=>new H(V(v({},Sy()),{scheduleInRootZone:t})),[{provide:H,useFactory:e},{provide:Rr,multi:!0,useFactory:()=>{let r=g(eM,{optional:!0});return()=>r.initialize()}},{provide:Rr,multi:!0,useFactory:()=>{let r=g(nM);return()=>{r.initialize()}}},n===!0?{provide:Cm,useValue:!0}:[],{provide:bm,useValue:t??Im}]}function Sy(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var nM=(()=>{class e{subscription=new Y;initialized=!1;zone=g(H);pendingTasks=g(Xt);initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{H.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{H.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rM=(()=>{class e{appRef=g(qe);taskService=g(Xt);ngZone=g(H);zonelessEnabled=g(Sd);tracing=g(Xr,{optional:!0});disableScheduling=g(Cm,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Y;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ra):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(bm,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof oa||!this.zoneIsDefined)}notify(t){if(!this.zonelessEnabled&&t===5)return;let r=!1;switch(t){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?kp:Tm;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(t){return!(this.disableScheduling&&!t||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ra+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(t),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,kp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function oM(){return typeof $localize<"u"&&$localize.locale||ma}var oo=new w("",{providedIn:"root",factory:()=>g(oo,j.Optional|j.SkipSelf)||oM()}),My=new w("",{providedIn:"root",factory:()=>MS});var va=new w(""),iM=new w("");function Po(e){return!e.moduleRef}function sM(e){let n=Po(e)?e.r3Injector:e.moduleRef.injector,t=n.get(H);return t.run(()=>{Po(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=n.get(ft,null),o;if(t.runOutsideAngular(()=>{o=t.onError.subscribe({next:i=>{r.handleError(i)}})}),Po(e)){let i=()=>n.destroy(),s=e.platformInjector.get(va);s.add(i),n.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(va);s.add(i),e.moduleRef.onDestroy(()=>{Hs(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return cM(r,t,()=>{let i=n.get(ny);return i.runInitializers(),i.donePromise.then(()=>{let s=n.get(oo,ma);if(NS(s||ma),!n.get(iM,!0))return Po(e)?n.get(qe):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Po(e)){let c=n.get(qe);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return aM(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function aM(e,n){let t=e.injector.get(qe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>t.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(t);else throw new D(-403,!1);n.push(e)}function cM(e,n,t){try{let r=t();return ro(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}var xy=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(t){this._injector=t}bootstrapModuleFactory(t,r){let o=r?.scheduleInRootZone,i=()=>MC(r?.ngZone,V(v({},Sy({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[tM({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:Dn,useExisting:rM}],c=T_(t.moduleType,this.injector,a);return sM({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,r=[]){let o=ry({},r);return XS(this.injector,o,t).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let t=this._injector.get(va,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(I(oe))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Vo=null,Ny=new w("");function uM(e){if(Vo&&!Vo.get(Ny,!1))throw new D(400,!1);q_(),Vo=e;let n=e.get(xy);return fM(e),n}function Df(e,n,t=[]){let r=`Platform: ${n}`,o=new w(r);return(i=[])=>{let s=Ry();if(!s||s.injector.get(Ny,!1)){let a=[...t,...i,{provide:o,useValue:!0}];e?e(a):uM(lM(a,r))}return dM(o)}}function lM(e=[],n){return oe.create({name:n,providers:[{provide:Ca,useValue:"platform"},{provide:va,useValue:new Set([()=>Vo=null])},...e]})}function dM(e){let n=Ry();if(!n)throw new D(401,!1);return n}function Ry(){return Vo?.get(xy)??null}function fM(e){let n=e.get(Rd,null);Le(e,()=>{n?.forEach(t=>t())})}function NU(){return!1}var Nn=(()=>{class e{static __NG_ELEMENT_ID__=hM}return e})();function hM(e){return pM(Se(),b(),(e&16)===16)}function pM(e,n,t){if(qr(e)&&!t){let r=Ot(e.index,n);return new qo(r,r)}else if(e.type&175){let r=n[Fe];return new qo(r,n)}return null}var Zl=class{constructor(){}supports(n){return Xv(n)}create(n){return new Yl(n)}},gM=(e,n)=>n,Yl=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||gM}forEachItem(n){let t;for(t=this._itHead;t!==null;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){let s=!r||t&&t.currentIndex<vg(r,o,i)?t:r,a=vg(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(t=t._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let h=0;h<u;h++){let f=h<i.length?i[h]:i[h]=0,p=f+h;l<=p&&p<u&&(i[h]=f+1)}let d=s.previousIndex;i[d]=l-u}}a!==c&&n(s,a,c)}}forEachPreviousItem(n){let t;for(t=this._previousItHead;t!==null;t=t._nextPrevious)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)n(t)}forEachMovedItem(n){let t;for(t=this._movesHead;t!==null;t=t._nextMoved)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)n(t)}forEachIdentityChange(n){let t;for(t=this._identityChangesHead;t!==null;t=t._nextIdentityChange)n(t)}diff(n){if(n==null&&(n=[]),!Xv(n))throw new D(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let t=this._itHead,r=!1,o,i,s;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)i=n[a],s=this._trackByFn(a,i),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,i,s,a),r=!0):(r&&(t=this._verifyReinsertion(t,i,s,a)),Object.is(t.item,i)||this._addIdentityChange(t,i)),t=t._next}else o=0,B_(n,a=>{s=this._trackByFn(o,a),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,a,s,o),r=!0):(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let i;return n===null?i=this._itTail:(i=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,o),n!==null?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new Ql(t,r),i,o)),n}_verifyReinsertion(n,t,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;n!==null;){let t=n._next;this._addToRemovals(this._unlink(n)),n=t}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let o=n._prevRemoved,i=n._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){let o=t===null?this._itHead:t._next;return n._next=o,n._prev=t,o===null?this._itTail=n:o._prev=n,t===null?this._itHead=n:t._next=n,this._linkedRecords===null&&(this._linkedRecords=new ya),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let t=n._prev,r=n._next;return t===null?this._itHead=r:t._next=r,r===null?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ya),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},Ql=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,t){this.item=n,this.trackById=t}},Kl=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;r!==null;r=r._nextDup)if((t===null||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let t=n._prevDup,r=n._nextDup;return t===null?this._head=r:t._nextDup=r,r===null?this._tail=t:r._prevDup=t,this._head===null}},ya=class{map=new Map;put(n){let t=n.trackById,r=this.map.get(t);r||(r=new Kl,this.map.set(t,r)),r.add(n)}get(n,t){let r=n,o=this.map.get(r);return o?o.get(n,t):null}remove(n){let t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function vg(e,n,t){let r=e.previousIndex;if(r===null)return r;let o=0;return t&&r<t.length&&(o=t[r]),r+n+o}var Jl=class{constructor(){}supports(n){return n instanceof Map||of(n)}create(){return new Xl}},Xl=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(n){let t;for(t=this._mapHead;t!==null;t=t._next)n(t)}forEachPreviousItem(n){let t;for(t=this._previousMapHead;t!==null;t=t._nextPrevious)n(t)}forEachChangedItem(n){let t;for(t=this._changesHead;t!==null;t=t._nextChanged)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)n(t)}diff(n){if(!n)n=new Map;else if(!(n instanceof Map||of(n)))throw new D(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(n,(r,o)=>{if(t&&t.key===o)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{let i=this._getOrCreateRecordForKey(o,r);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){let r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){let o=this._records.get(n);this._maybeAddToChanges(o,t);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new ed(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}},ed=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}};function yg(){return new Ef([new Zl])}var Ef=(()=>{class e{factories;static \u0275prov=E({token:e,providedIn:"root",factory:yg});constructor(t){this.factories=t}static create(t,r){if(r!=null){let o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||yg()),deps:[[e,new Ag,new id]]}}find(t){let r=this.factories.find(o=>o.supports(t));if(r!=null)return r;throw new D(901,!1)}}return e})();function Dg(){return new wf([new Jl])}var wf=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:Dg});factories;constructor(t){this.factories=t}static create(t,r){if(r){let o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||Dg()),deps:[[e,new Ag,new id]]}}find(t){let r=this.factories.find(o=>o.supports(t));if(r)return r;throw new D(901,!1)}}return e})();var Ay=Df(null,"core",[]),Oy=(()=>{class e{constructor(t){}static \u0275fac=function(r){return new(r||e)(I(qe))};static \u0275mod=gt({type:e});static \u0275inj=ht({})}return e})();function cn(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function If(e,n=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):n}function Cf(e){return xu(e)}function RU(e,n){return xs(e,n?.equal)}var td=class{[Ne];constructor(n){this[Ne]=n}destroy(){this[Ne].destroy()}};function mM(e,n){!n?.injector&&ud(mM);let t=n?.injector??g(oe),r=n?.manualCleanup!==!0?t.get(Jt):null,o,i=t.get(Pd,null,{optional:!0}),s=t.get(Dn);return i!==null&&!n?.forceRoot?(o=DM(i.view,s,e),r instanceof na&&r._lView===i.view&&(r=null)):o=EM(e,t.get(ey),s),o.injector=t,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new td(o)}var ky=V(v({},Ir),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:$o,run(){if(this.dirty=!1,this.hasRun&&!_s(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),n=Ao(this),t=Ks(!1);try{this.maybeCleanup(),this.fn(e)}finally{Ks(t),Ts(this,n)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),vM=V(v({},ky),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Oo(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),yM=V(v({},ky),{consumerMarkedDirty(){this.view[N]|=8192,Zr(this.view),this.notifier.notify(13)},destroy(){Oo(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Wn]?.delete(this)}});function DM(e,n,t){let r=Object.create(yM);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=n,r.fn=t,e[Wn]??=new Set,e[Wn].add(r),r.consumerMarkedDirty(r),r}function EM(e,n,t){let r=Object.create(vM);return r.fn=e,r.scheduler=n,r.notifier=t,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(12),r}function AU(e,n){let t=vn(e),r=n.elementInjector||ba();return new Jn(t).create(r,n.projectableNodes,n.hostElement,n.environmentInjector)}function Py(e){let n=vn(e);if(!n)return null;let t=new Jn(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var X=new w("");var jy=null;function Bt(){return jy}function bf(e){jy??=e}var ai=class{},ci=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(Vy),providedIn:"platform"})}return e})(),Tf=new w(""),Vy=(()=>{class e extends ci{_location;_history;_doc=g(X);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Bt().getBaseHref(this._doc)}onPopState(t){let r=Bt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){let r=Bt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Ga(e,n){return e?n?e.endsWith("/")?n.startsWith("/")?e+n.slice(1):e+n:n.startsWith("/")?e+n:`${e}/${n}`:e:n}function Fy(e){let n=e.search(/#|\?|$/);return e[n-1]==="/"?e.slice(0,n-1)+e.slice(n):e}function yt(e){return e&&e[0]!=="?"?`?${e}`:e}var Dt=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(Za),providedIn:"root"})}return e})(),Wa=new w(""),Za=(()=>{class e extends Dt{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(X).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Ga(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+yt(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+yt(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+yt(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(r){return new(r||e)(I(ci),I(Wa,8))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Rn=(()=>{class e{_subject=new B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=CM(Fy(Ly(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+yt(r))}normalize(t){return e.stripTrailingSlash(IM(this._basePath,Ly(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+yt(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+yt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=yt;static joinWithSlash=Ga;static stripTrailingSlash=Fy;static \u0275fac=function(r){return new(r||e)(I(Dt))};static \u0275prov=E({token:e,factory:()=>wM(),providedIn:"root"})}return e})();function wM(){return new Rn(I(Dt))}function IM(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:n}function Ly(e){return e.replace(/\/index.html$/,"")}function CM(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var Pf=(()=>{class e extends Dt{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){let r=Ga(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+yt(i))||this._platformLocation.pathname;this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+yt(i))||this._platformLocation.pathname;this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(r){return new(r||e)(I(ci),I(Wa,8))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Wy={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},oc=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(oc||{});var xe=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(xe||{}),q=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(q||{}),He=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(He||{}),we={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Zy(e){return Ue(e)[te.LocaleId]}function Yy(e,n,t){let r=Ue(e),o=[r[te.DayPeriodsFormat],r[te.DayPeriodsStandalone]],i=nt(o,n);return nt(i,t)}function Qy(e,n,t){let r=Ue(e),o=[r[te.DaysFormat],r[te.DaysStandalone]],i=nt(o,n);return nt(i,t)}function Ky(e,n,t){let r=Ue(e),o=[r[te.MonthsFormat],r[te.MonthsStandalone]],i=nt(o,n);return nt(i,t)}function Jy(e,n){let r=Ue(e)[te.Eras];return nt(r,n)}function ui(e,n){let t=Ue(e);return nt(t[te.DateFormat],n)}function li(e,n){let t=Ue(e);return nt(t[te.TimeFormat],n)}function di(e,n){let r=Ue(e)[te.DateTimeFormat];return nt(r,n)}function wt(e,n){let t=Ue(e),r=t[te.NumberSymbols][n];if(typeof r>"u"){if(n===we.CurrencyDecimal)return t[te.NumberSymbols][we.Decimal];if(n===we.CurrencyGroup)return t[te.NumberSymbols][we.Group]}return r}function Ff(e,n){return Ue(e)[te.NumberFormats][n]}function bM(e){return Ue(e)[te.Currencies]}function Xy(e){if(!e[te.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[te.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function eD(e){let n=Ue(e);return Xy(n),(n[te.ExtraData][2]||[]).map(r=>typeof r=="string"?_f(r):[_f(r[0]),_f(r[1])])}function tD(e,n,t){let r=Ue(e);Xy(r);let o=[r[te.ExtraData][0],r[te.ExtraData][1]],i=nt(o,n)||[];return nt(i,t)||[]}function nt(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function _f(e){let[n,t]=e.split(":");return{hours:+n,minutes:+t}}function nD(e,n,t="en"){let r=bM(t)[e]||Wy[e]||[],o=r[1];return n==="narrow"&&typeof o=="string"?o:r[0]||e}var TM=2;function rD(e){let n,t=Wy[e];return t&&(n=t[2]),typeof n=="number"?n:TM}var _M=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ya={},SM=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function oD(e,n,t,r){let o=FM(e);n=un(t,n)||n;let s=[],a;for(;n;)if(a=SM.exec(n),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;n=l}else{s.push(n);break}let c=o.getTimezoneOffset();r&&(c=sD(r,c),o=PM(o,r));let u="";return s.forEach(l=>{let d=OM(l);u+=d?d(o,t,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ec(e,n,t){let r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function un(e,n){let t=Zy(e);if(Ya[t]??={},Ya[t][n])return Ya[t][n];let r="";switch(n){case"shortDate":r=ui(e,He.Short);break;case"mediumDate":r=ui(e,He.Medium);break;case"longDate":r=ui(e,He.Long);break;case"fullDate":r=ui(e,He.Full);break;case"shortTime":r=li(e,He.Short);break;case"mediumTime":r=li(e,He.Medium);break;case"longTime":r=li(e,He.Long);break;case"fullTime":r=li(e,He.Full);break;case"short":let o=un(e,"shortTime"),i=un(e,"shortDate");r=Qa(di(e,He.Short),[o,i]);break;case"medium":let s=un(e,"mediumTime"),a=un(e,"mediumDate");r=Qa(di(e,He.Medium),[s,a]);break;case"long":let c=un(e,"longTime"),u=un(e,"longDate");r=Qa(di(e,He.Long),[c,u]);break;case"full":let l=un(e,"fullTime"),d=un(e,"fullDate");r=Qa(di(e,He.Full),[l,d]);break}return r&&(Ya[t][n]=r),r}function Qa(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return n!=null&&r in n?n[r]:t})),e}function Et(e,n,t="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=t));let s=String(e);for(;s.length<n;)s="0"+s;return r&&(s=s.slice(s.length-n)),i+s}function MM(e,n){return Et(e,3).substring(0,n)}function ae(e,n,t=0,r=!1,o=!1){return function(i,s){let a=xM(e,i);if((t>0||a>-t)&&(a+=t),e===3)a===0&&t===-12&&(a=12);else if(e===6)return MM(a,n);let c=wt(s,we.MinusSign);return Et(a,n,c,r,o)}}function xM(e,n){switch(e){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function J(e,n,t=xe.Format,r=!1){return function(o,i){return NM(o,i,e,n,t,r)}}function NM(e,n,t,r,o,i){switch(t){case 2:return Ky(n,o,r)[e.getMonth()];case 1:return Qy(n,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=eD(n),l=tD(n,o,r),d=u.findIndex(h=>{if(Array.isArray(h)){let[f,p]=h,m=s>=f.hours&&a>=f.minutes,y=s<p.hours||s===p.hours&&a<p.minutes;if(f.hours<p.hours){if(m&&y)return!0}else if(m||y)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return Yy(n,o,r)[s<12?0:1];case 3:return Jy(n,r)[e.getFullYear()<=0?0:1];default:let c=t;throw new Error(`unexpected translation type ${c}`)}}function Ka(e){return function(n,t,r){let o=-1*r,i=wt(t,we.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Et(s,2,i)+Et(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Et(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Et(s,2,i)+":"+Et(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Et(s,2,i)+":"+Et(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var RM=0,Xa=4;function AM(e){let n=ec(e,RM,1).getDay();return ec(e,0,1+(n<=Xa?Xa:Xa+7)-n)}function iD(e){let n=e.getDay(),t=n===0?-3:Xa-n;return ec(e.getFullYear(),e.getMonth(),e.getDate()+t)}function Sf(e,n=!1){return function(t,r){let o;if(n){let i=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();o=1+Math.floor((s+i)/7)}else{let i=iD(t),s=AM(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Et(o,e,wt(r,we.MinusSign))}}function Ja(e,n=!1){return function(t,r){let i=iD(t).getFullYear();return Et(i,e,wt(r,we.MinusSign),n)}}var Mf={};function OM(e){if(Mf[e])return Mf[e];let n;switch(e){case"G":case"GG":case"GGG":n=J(3,q.Abbreviated);break;case"GGGG":n=J(3,q.Wide);break;case"GGGGG":n=J(3,q.Narrow);break;case"y":n=ae(0,1,0,!1,!0);break;case"yy":n=ae(0,2,0,!0,!0);break;case"yyy":n=ae(0,3,0,!1,!0);break;case"yyyy":n=ae(0,4,0,!1,!0);break;case"Y":n=Ja(1);break;case"YY":n=Ja(2,!0);break;case"YYY":n=Ja(3);break;case"YYYY":n=Ja(4);break;case"M":case"L":n=ae(1,1,1);break;case"MM":case"LL":n=ae(1,2,1);break;case"MMM":n=J(2,q.Abbreviated);break;case"MMMM":n=J(2,q.Wide);break;case"MMMMM":n=J(2,q.Narrow);break;case"LLL":n=J(2,q.Abbreviated,xe.Standalone);break;case"LLLL":n=J(2,q.Wide,xe.Standalone);break;case"LLLLL":n=J(2,q.Narrow,xe.Standalone);break;case"w":n=Sf(1);break;case"ww":n=Sf(2);break;case"W":n=Sf(1,!0);break;case"d":n=ae(2,1);break;case"dd":n=ae(2,2);break;case"c":case"cc":n=ae(7,1);break;case"ccc":n=J(1,q.Abbreviated,xe.Standalone);break;case"cccc":n=J(1,q.Wide,xe.Standalone);break;case"ccccc":n=J(1,q.Narrow,xe.Standalone);break;case"cccccc":n=J(1,q.Short,xe.Standalone);break;case"E":case"EE":case"EEE":n=J(1,q.Abbreviated);break;case"EEEE":n=J(1,q.Wide);break;case"EEEEE":n=J(1,q.Narrow);break;case"EEEEEE":n=J(1,q.Short);break;case"a":case"aa":case"aaa":n=J(0,q.Abbreviated);break;case"aaaa":n=J(0,q.Wide);break;case"aaaaa":n=J(0,q.Narrow);break;case"b":case"bb":case"bbb":n=J(0,q.Abbreviated,xe.Standalone,!0);break;case"bbbb":n=J(0,q.Wide,xe.Standalone,!0);break;case"bbbbb":n=J(0,q.Narrow,xe.Standalone,!0);break;case"B":case"BB":case"BBB":n=J(0,q.Abbreviated,xe.Format,!0);break;case"BBBB":n=J(0,q.Wide,xe.Format,!0);break;case"BBBBB":n=J(0,q.Narrow,xe.Format,!0);break;case"h":n=ae(3,1,-12);break;case"hh":n=ae(3,2,-12);break;case"H":n=ae(3,1);break;case"HH":n=ae(3,2);break;case"m":n=ae(4,1);break;case"mm":n=ae(4,2);break;case"s":n=ae(5,1);break;case"ss":n=ae(5,2);break;case"S":n=ae(6,1);break;case"SS":n=ae(6,2);break;case"SSS":n=ae(6,3);break;case"Z":case"ZZ":case"ZZZ":n=Ka(0);break;case"ZZZZZ":n=Ka(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Ka(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=Ka(2);break;default:return null}return Mf[e]=n,n}function sD(e,n){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function kM(e,n){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+n),e}function PM(e,n,t){let o=e.getTimezoneOffset(),i=sD(n,o);return kM(e,-1*(i-o))}function FM(e){if(By(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return ec(o,i-1,s)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(_M))return LM(r)}let n=new Date(e);if(!By(n))throw new Error(`Unable to convert "${e}" into a date`);return n}function LM(e){let n=new Date(0),t=0,r=0,o=e[8]?n.setUTCFullYear:n.setFullYear,i=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-t,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(n,s,a,c,u),n}function By(e){return e instanceof Date&&!isNaN(e.valueOf())}var jM=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Uy=22,tc=".",fi="0",VM=";",BM=",",xf="#",Hy="\xA4";function aD(e,n,t,r,o,i,s=!1){let a="",c=!1;if(!isFinite(e))a=wt(t,we.Infinity);else{let u=HM(e);s&&(u=UM(u));let l=n.minInt,d=n.minFrac,h=n.maxFrac;if(i){let $=i.match(jM);if($===null)throw new Error(`${i} is not a valid digit info`);let ne=$[1],Ln=$[3],Hi=$[5];ne!=null&&(l=Nf(ne)),Ln!=null&&(d=Nf(Ln)),Hi!=null?h=Nf(Hi):Ln!=null&&d>h&&(h=d)}$M(u,d,h);let f=u.digits,p=u.integerLen,m=u.exponent,y=[];for(c=f.every($=>!$);p<l;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?y=f.splice(p,f.length):(y=f,f=[0]);let _=[];for(f.length>=n.lgSize&&_.unshift(f.splice(-n.lgSize,f.length).join(""));f.length>n.gSize;)_.unshift(f.splice(-n.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(wt(t,r)),y.length&&(a+=wt(t,o)+y.join("")),m&&(a+=wt(t,we.Exponential)+"+"+m)}return e<0&&!c?a=n.negPre+a+n.negSuf:a=n.posPre+a+n.posSuf,a}function cD(e,n,t,r,o){let i=Ff(n,oc.Currency),s=lD(i,wt(n,we.MinusSign));return s.minFrac=rD(r),s.maxFrac=s.minFrac,aD(e,s,n,we.CurrencyGroup,we.CurrencyDecimal,o).replace(Hy,t).replace(Hy,"").trim()}function uD(e,n,t){let r=Ff(n,oc.Decimal),o=lD(r,wt(n,we.MinusSign));return aD(e,o,n,we.Group,we.Decimal,t)}function lD(e,n="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(VM),o=r[0],i=r[1],s=o.indexOf(tc)!==-1?o.split(tc):[o.substring(0,o.lastIndexOf(fi)+1),o.substring(o.lastIndexOf(fi)+1)],a=s[0],c=s[1]||"";t.posPre=a.substring(0,a.indexOf(xf));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===fi?t.minFrac=t.maxFrac=l+1:d===xf?t.maxFrac=l+1:t.posSuf+=d}let u=a.split(BM);if(t.gSize=u[1]?u[1].length:0,t.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-t.posPre.length-t.posSuf.length,d=i.indexOf(xf);t.negPre=i.substring(0,d).replace(/'/g,""),t.negSuf=i.slice(d+l).replace(/'/g,"")}else t.negPre=n+t.posPre,t.negSuf=t.posSuf;return t}function UM(e){if(e.digits[0]===0)return e;let n=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(n===0?e.digits.push(0,0):n===1&&e.digits.push(0),e.integerLen+=2),e}function HM(e){let n=Math.abs(e)+"",t=0,r,o,i,s,a;for((o=n.indexOf(tc))>-1&&(n=n.replace(tc,"")),(i=n.search(/e/i))>0?(o<0&&(o=i),o+=+n.slice(i+1),n=n.substring(0,i)):o<0&&(o=n.length),i=0;n.charAt(i)===fi;i++);if(i===(a=n.length))r=[0],o=1;else{for(a--;n.charAt(a)===fi;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(n.charAt(i))}return o>Uy&&(r=r.splice(0,Uy-1),t=o-1,o=1),{digits:r,exponent:t,integerLen:o}}function $M(e,n,t){if(n>t)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${t}).`);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(n,o),t),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0}else{o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=n+e.integerLen,l=r.reduceRight(function(d,h,f,p){return h=h+d,p[f]=h<10?h:h-10,c&&(p[f]===0&&f>=u?p.pop():c=!1),h>=10?1:0},0);l&&(r.unshift(l),e.integerLen++)}function Nf(e){let n=parseInt(e);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+e);return n}var Rf=/\s+/,$y=[],zM=(()=>{class e{_ngEl;_renderer;initialClasses=$y;rawClass;stateMap=new Map;constructor(t,r){this._ngEl=t,this._renderer=r}set klass(t){this.initialClasses=t!=null?t.trim().split(Rf):$y}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(Rf):t}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let r of t)this._updateState(r,!0);else if(t!=null)for(let r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){let o=this.stateMap.get(t);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){t=t.trim(),t.length>0&&t.split(Rf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(R(Ge),R(bn))};static \u0275dir=Ee({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),qM=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(t){this._viewContainerRef=t}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0||t.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Yv(this.ngComponentOutletNgModule,zy(r)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(zy(r)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:r,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[r,o]of this._inputsUsed)o?(t.setInput(r,this.ngComponentOutletInputs[r]),this._inputsUsed.set(r,!1)):(t.setInput(r,void 0),this._inputsUsed.delete(r))}static \u0275fac=function(r){return new(r||e)(R(pt))};static \u0275dir=Ee({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[Lt]})}return e})();function zy(e){return e.get(Xn).injector}var nc=class{$implicit;ngForOf;index;count;constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},dD=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new nc(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),qy(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}t.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);qy(i,o)})}static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(R(pt),R(En),R(Ef))};static \u0275dir=Ee({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function qy(e,n){e.context.$implicit=n.item}var ic=(()=>{class e{_viewContainer;_context=new rc;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,r){this._viewContainer=t,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Gy(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Gy(t,!1),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(R(pt),R(En))};static \u0275dir=Ee({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),rc=class{$implicit=null;ngIf=null};function Gy(e,n){if(e&&!e.createEmbeddedView)throw new D(2020,!1)}var Af=class{_viewContainerRef;_templateRef;_created=!1;constructor(n,t){this._viewContainerRef=n,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}},fD=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let r=t===this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let r of this._defaultViews)r.enforceState(t)}}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Ee({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),GM=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(t,r,o){this.ngSwitch=o,o._addCase(),this._view=new Af(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(r){return new(r||e)(R(pt),R(En),R(fD,9))};static \u0275dir=Ee({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})();var WM=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,r,o){this._ngEl=t,this._differs=r,this._renderer=o}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){let[o,i]=t.split("."),s=o.indexOf("-")===-1?void 0:Pt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||e)(R(Ge),R(wf),R(bn))};static \u0275dir=Ee({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),ZM=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(t,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(R(pt))};static \u0275dir=Ee({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Lt]})}return e})();function io(e,n){return new D(2100,!1)}var Of=class{createSubscription(n,t){return Cf(()=>n.subscribe({next:t,error:r=>{throw r}}))}dispose(n){Cf(()=>n.unsubscribe())}},kf=class{createSubscription(n,t){return n.then(r=>t?.(r),r=>{throw r}),{unsubscribe:()=>{t=null}}}dispose(n){n.unsubscribe()}},YM=new kf,QM=new Of,KM=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(ro(t))return YM;if(lf(t))return QM;throw io(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(R(Nn,16))};static \u0275pipe=Tn({name:"async",type:e,pure:!1})}return e})();var JM=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw io(e,t);return t.toUpperCase()}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Tn({name:"uppercase",type:e,pure:!0})}return e})(),XM="mediumDate",hD=new w(""),pD=new w(""),e0=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,r,o){this.locale=t,this.defaultTimezone=r,this.defaultOptions=o}transform(t,r,o,i){if(t==null||t===""||t!==t)return null;try{let s=r??this.defaultOptions?.dateFormat??XM,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return oD(t,s,i||this.locale,a)}catch(s){throw io(e,s.message)}}static \u0275fac=function(r){return new(r||e)(R(oo,16),R(hD,24),R(pD,24))};static \u0275pipe=Tn({name:"date",type:e,pure:!0})}return e})();var t0=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Tn({name:"json",type:e,pure:!1})}return e})();var n0=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,r,o){if(!gD(t))return null;o||=this._locale;try{let i=mD(t);return uD(i,o,r)}catch(i){throw io(e,i.message)}}static \u0275fac=function(r){return new(r||e)(R(oo,16))};static \u0275pipe=Tn({name:"number",type:e,pure:!0})}return e})();var r0=(()=>{class e{_locale;_defaultCurrencyCode;constructor(t,r="USD"){this._locale=t,this._defaultCurrencyCode=r}transform(t,r=this._defaultCurrencyCode,o="symbol",i,s){if(!gD(t))return null;s||=this._locale,typeof o=="boolean"&&(o=o?"symbol":"code");let a=r||this._defaultCurrencyCode;o!=="code"&&(o==="symbol"||o==="symbol-narrow"?a=nD(a,o==="symbol"?"wide":"narrow",s):a=o);try{let c=mD(t);return cD(c,s,a,r,i)}catch(c){throw io(e,c.message)}}static \u0275fac=function(r){return new(r||e)(R(oo,16),R(My,16))};static \u0275pipe=Tn({name:"currency",type:e,pure:!0})}return e})();function gD(e){return!(e==null||e===""||e!==e)}function mD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var o0=(()=>{class e{transform(t,r,o){if(t==null)return null;if(!(typeof t=="string"||Array.isArray(t)))throw io(e,t);return t.slice(r,o)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Tn({name:"slice",type:e,pure:!1})}return e})();var Lf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=gt({type:e});static \u0275inj=ht({})}return e})();function hi(e,n){n=encodeURIComponent(n);for(let t of e.split(";")){let r=t.indexOf("="),[o,i]=r==-1?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}var sc="browser",vD="server";function i0(e){return e===sc}function ac(e){return e===vD}var rr=class{};var DD=(()=>{class e{static \u0275prov=E({token:e,providedIn:"root",factory:()=>new jf(g(X),window)})}return e})(),jf=class{document;window;offset=()=>[0,0];constructor(n,t){this.document=n,this.window=t}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let t=s0(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function s0(e,n){let t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}var ED=e=>e.src,a0=new w("",{providedIn:"root",factory:()=>ED});var yD=/^((\s*\d+w\s*(,|$)){1,})$/;var c0=[1,2],u0=640;var l0=1920,d0=1080;var F2=(()=>{class e{imageLoader=g(a0);config=f0(g(Vm));renderer=g(bn);imgElement=g(Ge).nativeElement;injector=g(oe);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){}ngOnInit(){en("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let t=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&yD.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){let r=this._renderedSrc;this.updateSrcAndSrcset(!0)}}callImageLoader(t){let r=t;return this.loaderParams&&(r.loaderParams=this.loaderParams),this.imageLoader(r)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t)}return this._renderedSrc}getRewrittenSrcset(){let t=yD.test(this.ngSrcset);return this.ngSrcset.split(",").filter(o=>o!=="").map(o=>{o=o.trim();let i=t?parseFloat(o):parseFloat(o)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:i})} ${o}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,r=t;return this.sizes?.trim()==="100vw"&&(r=t.filter(i=>i>=u0)),r.map(i=>`${this.callImageLoader({src:this.ngSrc,width:i})} ${i}w`).join(", ")}updateSrcAndSrcset(t=!1){t&&(this._renderedSrc=null);let r=this.getRewrittenSrc();this.setHostAttribute("src",r);let o;return this.ngSrcset?o=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(o=this.getAutomaticSrcset()),o&&this.setHostAttribute("srcset",o),o}getFixedSrcset(){return c0.map(r=>`${this.callImageLoader({src:this.ngSrc,width:this.width*r})} ${r}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=!1;return this.sizes||(t=this.width>l0||this.height>d0),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==ED&&!t}generatePlaceholder(t){let{placeholderResolution:r}=this.config;return t===!0?`url(${this.callImageLoader({src:this.ngSrc,width:r,isPlaceholder:!0})})`:typeof t=="string"?`url(${t})`:null}shouldBlurPlaceholder(t){return!t||!t.hasOwnProperty("blur")?!0:!!t.blur}removePlaceholderOnLoad(t){let r=()=>{let s=this.injector.get(Nn);o(),i(),this.placeholder=!1,s.markForCheck()},o=this.renderer.listen(t,"load",r),i=this.renderer.listen(t,"error",r);h0(t,r)}setHostAttribute(t,r){this.renderer.setAttribute(this.imgElement,t,r)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Ee({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(r,o){r&2&&Sn("position",o.fill?"absolute":null)("width",o.fill?"100%":null)("height",o.fill?"100%":null)("inset",o.fill?"0":null)("background-size",o.placeholder?"cover":null)("background-position",o.placeholder?"50% 50%":null)("background-repeat",o.placeholder?"no-repeat":null)("background-image",o.placeholder?o.generatePlaceholder(o.placeholder):null)("filter",o.placeholder&&o.shouldBlurPlaceholder(o.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",p0],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",If],height:[2,"height","height",If],loading:"loading",priority:[2,"priority","priority",cn],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",cn],fill:[2,"fill","fill",cn],placeholder:[2,"placeholder","placeholder",g0],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[Lt]})}return e})();function f0(e){let n={};return e.breakpoints&&(n.breakpoints=e.breakpoints.sort((t,r)=>t-r)),Object.assign({},Od,e,n)}function h0(e,n){e.complete&&e.naturalWidth&&n()}function p0(e){return typeof e=="string"?e:Be(e)}function g0(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:cn(e)}var lc=new w(""),Hf=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,r){this._zone=r,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o,i){return this._findPluginFor(r).addEventListener(t,r,o,i)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new D(5101,!1);return this._eventNameToPlugin.set(t,r),r}static \u0275fac=function(r){return new(r||e)(I(lc),I(H))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),pi=class{_doc;constructor(n){this._doc=n}manager},cc="ng-app-id";function wD(e){for(let n of e)n.remove()}function ID(e,n){let t=n.createElement("style");return t.textContent=e,t}function v0(e,n,t,r){let o=e.head?.querySelectorAll(`style[${cc}="${n}"],link[${cc}="${n}"]`);if(o)for(let i of o)i.removeAttribute(cc),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&t.set(i.textContent,{usage:0,elements:[i]})}function Bf(e,n){let t=n.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}var $f=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,this.isServer=ac(i),v0(t,r,this.inline,this.external),this.hosts.add(t.head)}addStyles(t,r){for(let o of t)this.addUsage(o,this.inline,ID);r?.forEach(o=>this.addUsage(o,this.external,Bf))}removeStyles(t,r){for(let o of t)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(t,r,o){let i=r.get(t);i?i.usage++:r.set(t,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(t,this.doc)))})}removeUsage(t,r){let o=r.get(t);o&&(o.usage--,o.usage<=0&&(wD(o.elements),r.delete(t)))}ngOnDestroy(){for(let[,{elements:t}]of[...this.inline,...this.external])wD(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(t,ID(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(t,Bf(r,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(cc,this.appId),t.appendChild(r)}static \u0275fac=function(r){return new(r||e)(I(X),I(Nd),I(Ad,8),I(Jr))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),Vf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},zf=/%COMP%/g;var bD="%COMP%",y0=`_nghost-${bD}`,D0=`_ngcontent-${bD}`,E0=!0,w0=new w("",{providedIn:"root",factory:()=>E0});function I0(e){return D0.replace(zf,e)}function C0(e){return y0.replace(zf,e)}function TD(e,n){return n.map(t=>t.replace(zf,e))}var qf=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(t,r,o,i,s,a,c,u=null,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=ac(a),this.defaultRenderer=new gi(t,s,c,this.platformIsServer,this.tracingService)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===kt.ShadowDom&&(r=V(v({},r),{encapsulation:kt.Emulated}));let o=this.getOrCreateRenderer(t,r);return o instanceof uc?o.applyToHost(t):o instanceof mi&&o.applyStyles(),o}getOrCreateRenderer(t,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case kt.Emulated:i=new uc(c,u,r,this.appId,l,s,a,d,h);break;case kt.ShadowDom:return new Uf(c,u,t,r,s,a,this.nonce,d,h);default:i=new mi(c,u,r,l,s,a,d,h);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(t){this.rendererByCompId.delete(t)}static \u0275fac=function(r){return new(r||e)(I(Hf),I($f),I(Nd),I(w0),I(X),I(Jr),I(H),I(Ad),I(Xr,8))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),gi=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,t,r,o,i){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(n,t){return t?this.doc.createElementNS(Vf[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(CD(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(CD(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){t.remove()}selectRootElement(n,t){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new D(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;let i=Vf[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){let o=Vf[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(Pt.DashCase|Pt.Important)?n.style.setProperty(t,r,o&Pt.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&Pt.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n!=null&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r,o){if(typeof n=="string"&&(n=Bt().getGlobalEventTarget(this.doc,n),!n))throw new D(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(n,t,i)),this.eventManager.addEventListener(n,t,i,o)}decoratePreventDefault(n){return t=>{if(t==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))===!1&&t.preventDefault()}}};function CD(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Uf=class extends gi{sharedStylesHost;hostEl;shadowRoot;constructor(n,t,r,o,i,s,a,c,u){super(n,i,s,c,u),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=TD(o.id,l);for(let h of l){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=h,this.shadowRoot.appendChild(f)}let d=o.getExternalStyles?.();if(d)for(let h of d){let f=Bf(h,i);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(null,t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},mi=class extends gi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,t,r,o,i,s,a,c,u){super(n,i,s,a,c),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?TD(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},uc=class extends mi{contentAttr;hostAttr;constructor(n,t,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(n,t,r,i,s,a,c,u,l),this.contentAttr=I0(l),this.hostAttr=C0(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){let r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}};var dc=class e extends ai{supportsDOMEvents=!0;static makeCurrent(){bf(new e)}onAndCancel(n,t,r,o){return n.addEventListener(t,r,o),()=>{n.removeEventListener(t,r,o)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.remove()}createElement(n,t){return t=t||this.getDefaultDocument(),t.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return t==="window"?window:t==="document"?n:t==="body"?n.body:null}getBaseHref(n){let t=b0();return t==null?null:T0(t)}resetBaseElement(){vi=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return hi(document.cookie,n)}},vi=null;function b0(){return vi=vi||document.head.querySelector("base"),vi?vi.getAttribute("href"):null}function T0(e){return new URL(e,document.baseURI).pathname}var fc=class{addToWindow(n){pe.getAngularTestability=(r,o=!0)=>{let i=n.findTestabilityInTree(r,o);if(i==null)throw new D(5103,!1);return i},pe.getAllAngularTestabilities=()=>n.getAllTestabilities(),pe.getAllAngularRootElements=()=>n.getAllRootElements();let t=r=>{let o=pe.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};pe.frameworkStabilizers||(pe.frameworkStabilizers=[]),pe.frameworkStabilizers.push(t)}findTestabilityInTree(n,t,r){if(t==null)return null;let o=n.getTestability(t);return o??(r?Bt().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},_0=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),SD=(()=>{class e extends pi{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o,i){return t.addEventListener(r,o,i),()=>this.removeEventListener(t,r,o,i)}removeEventListener(t,r,o,i){return t.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(I(X))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),_D=["alt","control","meta","shift"],S0={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},M0={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},MD=(()=>{class e extends pi{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Bt().onAndCancel(t,s.domEventName,a,i))}static parseEventName(t){let r=t.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),_D.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(t,r){let o=S0[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),_D.forEach(s=>{if(s!==o){let a=M0[s];a(t)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return t==="esc"?"escape":t}static \u0275fac=function(r){return new(r||e)(I(X))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();function x0(){dc.makeCurrent()}function N0(){return new ft}function R0(){return Lm(document),document}var A0=[{provide:Jr,useValue:sc},{provide:Rd,useValue:x0,multi:!0},{provide:X,useFactory:R0}],O0=Df(Ay,"browser",A0);var k0=[{provide:ni,useClass:fc},{provide:cf,useClass:$a,deps:[H,za,ni]},{provide:$a,useClass:$a,deps:[H,za,ni]}],P0=[{provide:Ca,useValue:"root"},{provide:ft,useFactory:N0},{provide:lc,useClass:SD,multi:!0,deps:[X]},{provide:lc,useClass:MD,multi:!0,deps:[X]},qf,$f,Hf,{provide:Vr,useExisting:qf},{provide:rr,useClass:_0},[]],F0=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=gt({type:e});static \u0275inj=ht({providers:[...P0,...k0],imports:[Lf,Oy]})}return e})();var ao=class{},yi=class{},me=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
8
- `).forEach(t=>{let r=t.indexOf(":");if(r>0){let o=t.slice(0,r),i=t.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.addHeaderEntry(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){let t=new e;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){let t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,t);let o=(n.op==="a"?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":let i=n.value;if(!i)this.headers.delete(t),this.normalizedNames.delete(t);else{let s=this.headers.get(t);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}addHeaderEntry(n,t){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(t):this.headers.set(r,[t])}setHeaderEntries(n,t){let r=(Array.isArray(t)?t:[t]).map(i=>i.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}};var pc=class{encodeKey(n){return xD(n)}encodeValue(n){return xD(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function L0(e,n){let t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],c=t.get(s)||[];c.push(a),t.set(s,c)}),t}var j0=/%(\d[a-f0-9])/gi,V0={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xD(e){return encodeURIComponent(e).replace(j0,(n,t)=>V0[t]??n)}function hc(e){return`${e}`}var It=class e{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new pc,n.fromString){if(n.fromObject)throw new D(2805,!1);this.map=L0(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{let r=n.fromObject[t],o=Array.isArray(r)?r.map(hc):[hc(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){let t=[];return Object.keys(n).forEach(r=>{let o=n[r];Array.isArray(o)?o.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let t=new e({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let t=(n.op==="a"?this.map.get(n.param):void 0)||[];t.push(hc(n.value)),this.map.set(n.param,t);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],o=r.indexOf(hc(n.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var gc=class{map=new Map;set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function B0(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ND(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function RD(e){return typeof Blob<"u"&&e instanceof Blob}function AD(e){return typeof FormData<"u"&&e instanceof FormData}function U0(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var OD="Content-Type",kD="Accept",PD="X-Request-URL",FD="text/plain",LD="application/json",H0=`${LD}, ${FD}, */*`,so=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,t,r,o){this.url=t,this.method=n.toUpperCase();let i;if(B0(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new me,this.context??=new gc,!this.params)this.params=new It,this.urlWithParams=t;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=t;else{let a=t.indexOf("?"),c=a===-1?"?":a<t.length-1?"&":"";this.urlWithParams=t+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ND(this.body)||RD(this.body)||AD(this.body)||U0(this.body)?this.body:this.body instanceof It?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||AD(this.body)?null:RD(this.body)?this.body.type||null:ND(this.body)?null:typeof this.body=="string"?FD:this.body instanceof It?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?LD:null}clone(n={}){let t=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,i=n.transferCache??this.transferCache,s=n.body!==void 0?n.body:this.body,a=n.withCredentials??this.withCredentials,c=n.reportProgress??this.reportProgress,u=n.headers||this.headers,l=n.params||this.params,d=n.context??this.context;return n.setHeaders!==void 0&&(u=Object.keys(n.setHeaders).reduce((h,f)=>h.set(f,n.setHeaders[f]),u)),n.setParams&&(l=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),l)),new e(t,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},or=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(or||{}),co=class{headers;status;statusText;url;ok;type;constructor(n,t=200,r="OK"){this.headers=n.headers||new me,this.status=n.status!==void 0?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},mc=class e extends co{constructor(n={}){super(n)}type=or.ResponseHeader;clone(n={}){return new e({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Di=class e extends co{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=or.Response;clone(n={}){return new e({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Ei=class extends co{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},$0=200,z0=204;function Gf(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var yc=(()=>{class e{handler;constructor(t){this.handler=t}request(t,r,o={}){let i;if(t instanceof so)i=t;else{let c;o.headers instanceof me?c=o.headers:c=new me(o.headers);let u;o.params&&(o.params instanceof It?u=o.params:u=new It({fromObject:o.params})),i=new so(t,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=M(i).pipe(ct(c=>this.handler.handle(c)));if(t instanceof so||o.observe==="events")return s;let a=s.pipe(re(c=>c instanceof Di));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new D(2806,!1);return c.body}));case"blob":return a.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new D(2807,!1);return c.body}));case"text":return a.pipe(A(c=>{if(c.body!==null&&typeof c.body!="string")throw new D(2808,!1);return c.body}));case"json":default:return a.pipe(A(c=>c.body))}case"response":return a;default:throw new D(2809,!1)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new It().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,Gf(o,r))}post(t,r,o={}){return this.request("POST",t,Gf(o,r))}put(t,r,o={}){return this.request("PUT",t,Gf(o,r))}static \u0275fac=function(r){return new(r||e)(I(ao))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();var q0=new w("");function G0(e,n){return n(e)}function W0(e,n,t){return(r,o)=>Le(t,()=>n(r,i=>e(i,o)))}var Zf=new w(""),jD=new w(""),VD=new w("",{providedIn:"root",factory:()=>!0});var vc=(()=>{class e extends ao{backend;injector;chain=null;pendingTasks=g(Xt);contributeToStability=g(VD);constructor(t,r){super(),this.backend=t,this.injector=r}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Zf),...this.injector.get(jD,[])]));this.chain=r.reduceRight((o,i)=>W0(o,i,this.injector),G0)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(Un(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(I(yi),I(be))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();var Z0=/^\)\]\}',?\n/,Y0=RegExp(`^${PD}:`,"m");function Q0(e){return"responseURL"in e&&e.responseURL?e.responseURL:Y0.test(e.getAllResponseHeaders())?e.getResponseHeader(PD):null}var Wf=(()=>{class e{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?G(r.\u0275loadImpl()):M(null)).pipe(ie(()=>new x(i=>{let s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),t.headers.has(kD)||s.setRequestHeader(kD,H0),!t.headers.has(OD)){let m=t.detectContentTypeHeader();m!==null&&s.setRequestHeader(OD,m)}if(t.responseType){let m=t.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=t.serializeBody(),c=null,u=()=>{if(c!==null)return c;let m=s.statusText||"OK",y=new me(s.getAllResponseHeaders()),_=Q0(s)||t.url;return c=new mc({headers:y,status:s.status,statusText:m,url:_}),c},l=()=>{let{headers:m,status:y,statusText:_,url:$}=u(),ne=null;y!==z0&&(ne=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=ne?$0:0);let Ln=y>=200&&y<300;if(t.responseType==="json"&&typeof ne=="string"){let Hi=ne;ne=ne.replace(Z0,"");try{ne=ne!==""?JSON.parse(ne):null}catch(zE){ne=Hi,Ln&&(Ln=!1,ne={error:zE,text:ne})}}Ln?(i.next(new Di({body:ne,headers:m,status:y,statusText:_,url:$||void 0})),i.complete()):i.error(new Ei({error:ne,headers:m,status:y,statusText:_,url:$||void 0}))},d=m=>{let{url:y}=u(),_=new Ei({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(_)},h=!1,f=m=>{h||(i.next(u()),h=!0);let y={type:or.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),t.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},p=m=>{let y={type:or.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:or.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),t.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(I(rr))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),BD=new w(""),K0="XSRF-TOKEN",J0=new w("",{providedIn:"root",factory:()=>K0}),X0="X-XSRF-TOKEN",ex=new w("",{providedIn:"root",factory:()=>X0}),wi=class{},tx=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,r){this.doc=t,this.cookieName=r}getToken(){let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=hi(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(r){return new(r||e)(I(X),I(J0))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();function nx(e,n){let t=e.url.toLowerCase();if(!g(BD)||e.method==="GET"||e.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return n(e);let r=g(wi).getToken(),o=g(ex);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var Yf=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Yf||{});function rx(e,n){return{\u0275kind:e,\u0275providers:n}}function ox(...e){let n=[yc,Wf,vc,{provide:ao,useExisting:vc},{provide:yi,useFactory:()=>g(q0,{optional:!0})??g(Wf)},{provide:Zf,useValue:nx,multi:!0},{provide:BD,useValue:!0},{provide:wi,useClass:tx}];for(let t of e)n.push(...t.\u0275providers);return tr(n)}function ix(e){return rx(Yf.Interceptors,e.map(n=>({provide:Zf,useValue:n,multi:!0})))}var UD=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(r){return new(r||e)(I(X))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Qf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I(ax),o},providedIn:"root"})}return e})(),ax=(()=>{class e extends Qf{_doc;constructor(t){super(),this._doc=t}sanitize(t,r){if(r==null)return null;switch(t){case We.NONE:return r;case We.HTML:return tn(r,"HTML")?Be(r):jd(this._doc,String(r)).toString();case We.STYLE:return tn(r,"Style")?Be(r):r;case We.SCRIPT:if(tn(r,"Script"))return Be(r);throw new D(5200,!1);case We.URL:return tn(r,"URL")?Be(r):ka(String(r));case We.RESOURCE_URL:if(tn(r,"ResourceURL"))return Be(r);throw new D(5201,!1);default:throw new D(5202,!1)}}bypassSecurityTrustHtml(t){return Wm(t)}bypassSecurityTrustStyle(t){return Zm(t)}bypassSecurityTrustScript(t){return Ym(t)}bypassSecurityTrustUrl(t){return Qm(t)}bypassSecurityTrustResourceUrl(t){return Km(t)}static \u0275fac=function(r){return new(r||e)(I(X))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var L="primary",ki=Symbol("RouteTitle"),th=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function ar(e){return new th(e)}function QD(e,n,t){let r=t.path.split("/");if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let o={};for(let i=0;i<r.length;i++){let s=r[i],a=e[i];if(s[0]===":")o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function cx(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!Ut(e[t],n[t]))return!1;return!0}function Ut(e,n){let t=e?nh(e):void 0,r=n?nh(n):void 0;if(!t||!r||t.length!=r.length)return!1;let o;for(let i=0;i<t.length;i++)if(o=t[i],!KD(e[o],n[o]))return!1;return!0}function nh(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function KD(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((o,i)=>r[i]===o)}else return e===n}function JD(e){return e.length>0?e[e.length-1]:null}function Fn(e){return fu(e)?e:ro(e)?G(Promise.resolve(e)):M(e)}var ux={exact:eE,subset:tE},XD={exact:lx,subset:dx,ignored:()=>!0};function $D(e,n,t){return ux[t.paths](e.root,n.root,t.matrixParams)&&XD[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function lx(e,n){return Ut(e,n)}function eE(e,n,t){if(!ir(e.segments,n.segments)||!wc(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!eE(e.children[r],n.children[r],t))return!1;return!0}function dx(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>KD(e[t],n[t]))}function tE(e,n,t){return nE(e,n,n.segments,t)}function nE(e,n,t,r){if(e.segments.length>t.length){let o=e.segments.slice(0,t.length);return!(!ir(o,t)||n.hasChildren()||!wc(o,t,r))}else if(e.segments.length===t.length){if(!ir(e.segments,t)||!wc(e.segments,t,r))return!1;for(let o in n.children)if(!e.children[o]||!tE(e.children[o],n.children[o],r))return!1;return!0}else{let o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!ir(e.segments,o)||!wc(e.segments,o,r)||!e.children[L]?!1:nE(e.children[L],n,i,r)}}function wc(e,n,t){return n.every((r,o)=>XD[t](e[o].parameters,r.parameters))}var $t=class{root;queryParams;fragment;_queryParamMap;constructor(n=new U([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ar(this.queryParams),this._queryParamMap}toString(){return px.serialize(this)}},U=class{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ic(this)}},An=class{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=ar(this.parameters),this._parameterMap}toString(){return oE(this)}};function fx(e,n){return ir(e,n)&&e.every((t,r)=>Ut(t.parameters,n[r].parameters))}function ir(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function hx(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===L&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==L&&(t=t.concat(n(o,r)))}),t}var cr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>new On,providedIn:"root"})}return e})(),On=class{parse(n){let t=new oh(n);return new $t(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${Ii(n.root,!0)}`,r=vx(n.queryParams),o=typeof n.fragment=="string"?`#${gx(n.fragment)}`:"";return`${t}${r}${o}`}},px=new On;function Ic(e){return e.segments.map(n=>oE(n)).join("/")}function Ii(e,n){if(!e.hasChildren())return Ic(e);if(n){let t=e.children[L]?Ii(e.children[L],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==L&&r.push(`${o}:${Ii(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=hx(e,(r,o)=>o===L?[Ii(e.children[L],!1)]:[`${o}:${Ii(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[L]!=null?`${Ic(e)}/${t[0]}`:`${Ic(e)}/(${t.join("//")})`}}function rE(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dc(e){return rE(e).replace(/%3B/gi,";")}function gx(e){return encodeURI(e)}function rh(e){return rE(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cc(e){return decodeURIComponent(e)}function zD(e){return Cc(e.replace(/\+/g,"%20"))}function oE(e){return`${rh(e.path)}${mx(e.parameters)}`}function mx(e){return Object.entries(e).map(([n,t])=>`;${rh(n)}=${rh(t)}`).join("")}function vx(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(o=>`${Dc(t)}=${Dc(o)}`).join("&"):`${Dc(t)}=${Dc(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var yx=/^[^\/()?;#]+/;function Kf(e){let n=e.match(yx);return n?n[0]:""}var Dx=/^[^\/()?;=#]+/;function Ex(e){let n=e.match(Dx);return n?n[0]:""}var wx=/^[^=?&#]+/;function Ix(e){let n=e.match(wx);return n?n[0]:""}var Cx=/^[^&#]+/;function bx(e){let n=e.match(Cx);return n?n[0]:""}var oh=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[L]=new U(n,t)),r}parseSegment(){let n=Kf(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(n),new An(Cc(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=Ex(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let o=Kf(this.remaining);o&&(r=o,this.capture(r))}n[Cc(t)]=Cc(r)}parseQueryParam(n){let t=Ix(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let s=bx(this.remaining);s&&(r=s,this.capture(r))}let o=zD(t),i=zD(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Kf(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new D(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=L);let s=this.parseChildren();t[i]=Object.keys(s).length===1?s[L]:new U([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new D(4011,!1)}};function iE(e){return e.segments.length>0?new U([],{[L]:e}):e}function sE(e){let n={};for(let[r,o]of Object.entries(e.children)){let i=sE(o);if(r===L&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}let t=new U(e.segments,n);return Tx(t)}function Tx(e){if(e.numberOfChildren===1&&e.children[L]){let n=e.children[L];return new U(e.segments.concat(n.segments),n.children)}return e}function kn(e){return e instanceof $t}function aE(e,n,t=null,r=null){let o=cE(e);return uE(o,n,t,r)}function cE(e){let n;function t(i){let s={};for(let c of i.children){let u=t(c);s[c.outlet]=u}let a=new U(i.url,s);return i===e&&(n=a),a}let r=t(e.root),o=iE(r);return n??o}function uE(e,n,t,r){let o=e;for(;o.parent;)o=o.parent;if(n.length===0)return Jf(o,o,o,t,r);let i=_x(n);if(i.toRoot())return Jf(o,o,new U([],{}),t,r);let s=Sx(i,o,e),a=s.processChildren?bi(s.segmentGroup,s.index,i.commands):dE(s.segmentGroup,s.index,i.commands);return Jf(o,s.segmentGroup,a,t,r)}function Tc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function _i(e){return typeof e=="object"&&e!=null&&e.outlets}function Jf(e,n,t,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===n?s=t:s=lE(e,n,t);let a=iE(sE(s));return new $t(a,i,o)}function lE(e,n,t){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===n?r[o]=t:r[o]=lE(i,n,t)}),new U(e.segments,r)}var _c=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&Tc(r[0]))throw new D(4003,!1);let o=r.find(_i);if(o&&o!==JD(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function _x(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new _c(!0,0,e);let n=0,t=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?t=!0:a===".."?n++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new _c(t,n,r)}var fo=class{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function Sx(e,n,t){if(e.isAbsolute)return new fo(n,!0,0);if(!t)return new fo(n,!1,NaN);if(t.parent===null)return new fo(t,!0,0);let r=Tc(e.commands[0])?0:1,o=t.segments.length-1+r;return Mx(t,o,e.numberOfDoubleDots)}function Mx(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new D(4005,!1);o=r.segments.length}return new fo(r,!1,o-i)}function xx(e){return _i(e[0])?e[0].outlets:{[L]:e}}function dE(e,n,t){if(e??=new U([],{}),e.segments.length===0&&e.hasChildren())return bi(e,n,t);let r=Nx(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new U(e.segments.slice(0,r.pathIndex),{});return i.children[L]=new U(e.segments.slice(r.pathIndex),e.children),bi(i,0,o)}else return r.match&&o.length===0?new U(e.segments,{}):r.match&&!e.hasChildren()?ih(e,n,t):r.match?bi(e,0,o):ih(e,n,t)}function bi(e,n,t){if(t.length===0)return new U(e.segments,{});{let r=xx(t),o={};if(Object.keys(r).some(i=>i!==L)&&e.children[L]&&e.numberOfChildren===1&&e.children[L].segments.length===0){let i=bi(e.children[L],n,t);return new U(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=dE(e.children[i],n,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new U(e.segments,o)}}function Nx(e,n,t){let r=0,o=n,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=t.length)return i;let s=e.segments[o],a=t[r];if(_i(a))break;let c=`${a}`,u=r<t.length-1?t[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!GD(c,u,s))return i;r+=2}else{if(!GD(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function ih(e,n,t){let r=e.segments.slice(0,n),o=0;for(;o<t.length;){let i=t[o];if(_i(i)){let c=Rx(i.outlets);return new U(r,c)}if(o===0&&Tc(t[0])){let c=e.segments[n];r.push(new An(c.path,qD(t[0]))),o++;continue}let s=_i(i)?i.outlets[L]:`${i}`,a=o<t.length-1?t[o+1]:null;s&&a&&Tc(a)?(r.push(new An(s,qD(a))),o+=2):(r.push(new An(s,{})),o++)}return new U(r,{})}function Rx(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=ih(new U([],{}),0,r))}),n}function qD(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function GD(e,n,t){return e==t.path&&Ut(n,t.parameters)}var bc="imperative",fe=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(fe||{}),Ke=class{id;url;constructor(n,t){this.id=n,this.url=t}},Pn=class extends Ke{type=fe.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",o=null){super(n,t),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Je=class extends Ke{urlAfterRedirects;type=fe.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},$e=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}($e||{}),po=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(po||{}),Ht=class extends Ke{reason;code;type=fe.NavigationCancel;constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},zt=class extends Ke{reason;code;type=fe.NavigationSkipped;constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o}},go=class extends Ke{error;target;type=fe.NavigationError;constructor(n,t,r,o){super(n,t),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Si=class extends Ke{urlAfterRedirects;state;type=fe.RoutesRecognized;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sc=class extends Ke{urlAfterRedirects;state;type=fe.GuardsCheckStart;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mc=class extends Ke{urlAfterRedirects;state;shouldActivate;type=fe.GuardsCheckEnd;constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},xc=class extends Ke{urlAfterRedirects;state;type=fe.ResolveStart;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nc=class extends Ke{urlAfterRedirects;state;type=fe.ResolveEnd;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rc=class{route;type=fe.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ac=class{route;type=fe.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Oc=class{snapshot;type=fe.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kc=class{snapshot;type=fe.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pc=class{snapshot;type=fe.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fc=class{snapshot;type=fe.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mo=class{routerEvent;position;anchor;type=fe.Scroll;constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Mi=class{},vo=class{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Ax(e,n){return e.providers&&!e._injector&&(e._injector=ei(e.providers,n,`Route: ${e.path}`)),e._injector??n}function Ct(e){return e.outlet||L}function Ox(e,n){let t=e.filter(r=>Ct(r)===n);return t.push(...e.filter(r=>Ct(r)!==n)),t}function Pi(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){let t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var Lc=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Pi(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ur(this.rootInjector)}},ur=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){let o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new Lc(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(I(be))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jc=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=sh(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=sh(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=ah(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return ah(n,this._root).map(t=>t.value)}};function sh(e,n){if(e===n.value)return n;for(let t of n.children){let r=sh(e,t);if(r)return r}return null}function ah(e,n){if(e===n.value)return[n];for(let t of n.children){let r=ah(e,t);if(r.length)return r.unshift(n),r}return[]}var Qe=class{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function lo(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var xi=class extends jc{snapshot;constructor(n,t){super(n),this.snapshot=t,gh(this,n)}toString(){return this.snapshot.toString()}};function fE(e){let n=kx(e),t=new ye([new An("",{})]),r=new ye({}),o=new ye({}),i=new ye({}),s=new ye(""),a=new ln(t,r,i,s,o,L,e,n.root);return a.snapshot=n.root,new xi(new Qe(a,[]),n)}function kx(e){let n={},t={},r={},o="",i=new sr([],n,r,o,t,L,e,null,{});return new Ni("",new Qe(i,[]))}var ln=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,o,i,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(A(u=>u[ki]))??M(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(n=>ar(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(n=>ar(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Vc(e,n,t="emptyOnly"){let r,{routeConfig:o}=e;return n!==null&&(t==="always"||o?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:v(v({},n.params),e.params),data:v(v({},n.data),e.data),resolve:v(v(v(v({},e.data),n.data),o?.data),e._resolvedData)}:r={params:v({},e.params),data:v({},e.data),resolve:v(v({},e.data),e._resolvedData??{})},o&&pE(o)&&(r.resolve[ki]=o.title),r}var sr=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ki]}constructor(n,t,r,o,i,s,a,c,u){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ar(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ar(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},Ni=class extends jc{url;constructor(n,t){super(t),this.url=n,gh(this,t)}toString(){return hE(this._root)}};function gh(e,n){n.value._routerState=e,n.children.forEach(t=>gh(e,t))}function hE(e){let n=e.children.length>0?` { ${e.children.map(hE).join(", ")} } `:"";return`${e.value}${n}`}function Xf(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Ut(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Ut(n.params,t.params)||e.paramsSubject.next(t.params),cx(n.url,t.url)||e.urlSubject.next(t.url),Ut(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function ch(e,n){let t=Ut(e.params,n.params)&&fx(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||ch(e.parent,n.parent))}function pE(e){return typeof e.title=="string"||e.title===null}var gE=new w(""),mh=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=L;activateEvents=new Ae;deactivateEvents=new Ae;attachEvents=new Ae;detachEvents=new Ae;routerOutletData=Sm(void 0);parentContexts=g(ur);location=g(pt);changeDetector=g(Nn);inputBinder=g(Fi,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=t;let o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new uh(t,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Ee({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Lt]})}return e})(),uh=class{route;childContexts;parent;outletData;constructor(n,t,r,o){this.route=n,this.childContexts=t,this.parent=r,this.outletData=o}get(n,t){return n===ln?this.route:n===ur?this.childContexts:n===gE?this.outletData:this.parent.get(n,t)}},Fi=new w(""),vh=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,o=No([r.queryParams,r.params,r.data]).pipe(ie(([i,s,a],c)=>(a=v(v(v({},i),s),a),c===0?M(a):Promise.resolve(a)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let s=Py(r.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(t,o)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),yh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=ti({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&Mn(0,"router-outlet")},dependencies:[mh],encapsulation:2})}return e})();function Dh(e){let n=e.children&&e.children.map(Dh),t=n?V(v({},e),{children:n}):v({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==L&&(t.component=yh),t}function Px(e,n,t){let r=Ri(e,n._root,t?t._root:void 0);return new xi(r,n)}function Ri(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let o=Fx(e,n,t);return new Qe(r,o)}else{if(e.shouldAttach(n.value)){let i=e.retrieve(n.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Ri(e,a)),s}}let r=Lx(n.value),o=n.children.map(i=>Ri(e,i));return new Qe(r,o)}}function Fx(e,n,t){return n.children.map(r=>{for(let o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Ri(e,r,o);return Ri(e,r)})}function Lx(e){return new ln(new ye(e.url),new ye(e.params),new ye(e.queryParams),new ye(e.fragment),new ye(e.data),e.outlet,e.component,e)}var yo=class{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},mE="ngNavigationCancelingError";function Bc(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=kn(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=vE(!1,$e.Redirect);return o.url=t,o.navigationBehaviorOptions=r,o}function vE(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[mE]=!0,t.cancellationCode=n,t}function jx(e){return yE(e)&&kn(e.url)}function yE(e){return!!e&&e[mE]}var Vx=(e,n,t,r)=>A(o=>(new lh(n,o.targetRouterState,o.currentRouterState,t,r).activate(e),o)),lh=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Xf(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let o=lo(t);n.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){let o=n.value,i=t?t.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=lo(n);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=lo(n);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){let o=lo(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Fc(i.value.snapshot))}),n.children.length&&this.forwardEvent(new kc(n.value.snapshot))}activateRoutes(n,t,r){let o=n.value,i=t?t.value:null;if(Xf(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Xf(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Uc=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ho=class{component;route;constructor(n,t){this.component=n,this.route=t}};function Bx(e,n,t){let r=e._root,o=n?n._root:null;return Ci(r,o,t,[r.value])}function Ux(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function Eo(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!Tg(e)?e:n.get(e):r}function Ci(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=lo(n);return e.children.forEach(s=>{Hx(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Ti(a,t.getContext(s),o)),o}function Hx(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=$x(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Uc(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Ci(e,n,a?a.children:null,r,o):Ci(e,n,t,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new ho(a.outlet.component,s))}else s&&Ti(n,a,o),o.canActivateChecks.push(new Uc(r)),i.component?Ci(e,null,a?a.children:null,r,o):Ci(e,null,t,r,o);return o}function $x(e,n,t){if(typeof t=="function")return t(e,n);switch(t){case"pathParamsChange":return!ir(e.url,n.url);case"pathParamsOrQueryParamsChange":return!ir(e.url,n.url)||!Ut(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ch(e,n)||!Ut(e.queryParams,n.queryParams);case"paramsChange":default:return!ch(e,n)}}function Ti(e,n,t){let r=lo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?n?Ti(s,n.children.getContext(i),t):Ti(s,null,t):Ti(s,n,t)}),o.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new ho(n.outlet.component,o)):t.canDeactivateChecks.push(new ho(null,o)):t.canDeactivateChecks.push(new ho(null,o))}function Li(e){return typeof e=="function"}function zx(e){return typeof e=="boolean"}function qx(e){return e&&Li(e.canLoad)}function Gx(e){return e&&Li(e.canActivate)}function Wx(e){return e&&Li(e.canActivateChild)}function Zx(e){return e&&Li(e.canDeactivate)}function Yx(e){return e&&Li(e.canMatch)}function DE(e){return e instanceof st||e?.name==="EmptyError"}var Ec=Symbol("INITIAL_VALUE");function Do(){return ie(e=>No(e.map(n=>n.pipe(ze(1),cs(Ec)))).pipe(A(n=>{for(let t of n)if(t!==!0){if(t===Ec)return Ec;if(t===!1||Qx(t))return t}return!0}),re(n=>n!==Ec),ze(1)))}function Qx(e){return kn(e)||e instanceof yo}function Kx(e,n){return Q(t=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return s.length===0&&i.length===0?M(V(v({},t),{guardsResult:!0})):Jx(s,r,o,e).pipe(Q(a=>a&&zx(a)?Xx(r,i,e,n):M(a)),A(a=>V(v({},t),{guardsResult:a})))})}function Jx(e,n,t,r){return G(e).pipe(Q(o=>oN(o.component,o.route,t,n,r)),Mt(o=>o!==!0,!0))}function Xx(e,n,t,r){return G(n).pipe(ct(o=>fn(tN(o.route.parent,r),eN(o.route,r),rN(e,o.path,t),nN(e,o.route,t))),Mt(o=>o!==!0,!0))}function eN(e,n){return e!==null&&n&&n(new Pc(e)),M(!0)}function tN(e,n){return e!==null&&n&&n(new Oc(e)),M(!0)}function nN(e,n,t){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return M(!0);let o=r.map(i=>Ds(()=>{let s=Pi(n)??t,a=Eo(i,s),c=Gx(a)?a.canActivate(n,e):Le(s,()=>a(n,e));return Fn(c).pipe(Mt())}));return M(o).pipe(Do())}function rN(e,n,t){let r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>Ux(s)).filter(s=>s!==null).map(s=>Ds(()=>{let a=s.guards.map(c=>{let u=Pi(s.node)??t,l=Eo(c,u),d=Wx(l)?l.canActivateChild(r,e):Le(u,()=>l(r,e));return Fn(d).pipe(Mt())});return M(a).pipe(Do())}));return M(i).pipe(Do())}function oN(e,n,t,r,o){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return M(!0);let s=i.map(a=>{let c=Pi(n)??o,u=Eo(a,c),l=Zx(u)?u.canDeactivate(e,n,t,r):Le(c,()=>u(e,n,t,r));return Fn(l).pipe(Mt())});return M(s).pipe(Do())}function iN(e,n,t,r){let o=n.canLoad;if(o===void 0||o.length===0)return M(!0);let i=o.map(s=>{let a=Eo(s,e),c=qx(a)?a.canLoad(n,t):Le(e,()=>a(n,t));return Fn(c)});return M(i).pipe(Do(),EE(r))}function EE(e){return ru(he(n=>{if(typeof n!="boolean")throw Bc(e,n)}),A(n=>n===!0))}function sN(e,n,t,r){let o=n.canMatch;if(!o||o.length===0)return M(!0);let i=o.map(s=>{let a=Eo(s,e),c=Yx(a)?a.canMatch(n,t):Le(e,()=>a(n,t));return Fn(c)});return M(i).pipe(Do(),EE(r))}var Ai=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Oi=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function uo(e){return hn(new Ai(e))}function aN(e){return hn(new D(4e3,!1))}function cN(e){return hn(vE(!1,$e.GuardRejected))}var dh=class{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return M(r);if(o.numberOfChildren>1||!o.children[L])return aN(`${n.redirectTo}`);o=o.children[L]}}applyRedirectCommands(n,t,r,o,i){if(typeof t!="string"){let a=t,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:p,title:m}=o,y=Le(i,()=>a({params:f,data:p,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:m}));if(y instanceof $t)throw new Oi(y);t=y}let s=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r);if(t[0]==="/")throw new Oi(s);return s}applyRedirectCreateUrlTree(n,t,r,o){let i=this.createSegmentGroup(n,t.root,r,o);return new $t(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){let i=this.createSegments(n,t.segments,r,o),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,o)}),new U(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path[0]===":"?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){let o=r[t.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(n,t){let r=0;for(let o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}},fh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uN(e,n,t,r,o){let i=wE(e,n,t);return i.matched?(r=Ax(n,r),sN(r,n,t,o).pipe(A(s=>s===!0?i:v({},fh)))):M(i)}function wE(e,n,t){if(n.path==="**")return lN(t);if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?v({},fh):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let o=(n.matcher||QD)(t,e,n);if(!o)return v({},fh);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?v(v({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function lN(e){return{matched:!0,parameters:e.length>0?JD(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function WD(e,n,t,r){return t.length>0&&hN(e,t,r)?{segmentGroup:new U(n,fN(r,new U(t,e.children))),slicedSegments:[]}:t.length===0&&pN(e,t,r)?{segmentGroup:new U(e.segments,dN(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new U(e.segments,e.children),slicedSegments:t}}function dN(e,n,t,r){let o={};for(let i of t)if($c(e,n,i)&&!r[Ct(i)]){let s=new U([],{});o[Ct(i)]=s}return v(v({},r),o)}function fN(e,n){let t={};t[L]=n;for(let r of e)if(r.path===""&&Ct(r)!==L){let o=new U([],{});t[Ct(r)]=o}return t}function hN(e,n,t){return t.some(r=>$c(e,n,r)&&Ct(r)!==L)}function pN(e,n,t){return t.some(r=>$c(e,n,r))}function $c(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function gN(e,n,t){return n.length===0&&!e.children[t]}var hh=class{};function mN(e,n,t,r,o,i,s="emptyOnly"){return new ph(e,n,t,r,o,s,i).recognize()}var vN=31,ph=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,o,i,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new dh(this.urlSerializer,this.urlTree)}noMatchError(n){return new D(4002,`'${n.segmentGroup}'`)}recognize(){let n=WD(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(A(({children:t,rootSnapshot:r})=>{let o=new Qe(r,t),i=new Ni("",o),s=aE(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(n){let t=new sr([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),L,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,L,t).pipe(A(r=>({children:r,rootSnapshot:t})),et(r=>{if(r instanceof Oi)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ai?this.noMatchError(r):r}))}processSegmentGroup(n,t,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,t,r,i):this.processSegment(n,t,r,r.segments,o,!0,i).pipe(A(s=>s instanceof Qe?[s]:[]))}processChildren(n,t,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return G(i).pipe(ct(s=>{let a=r.children[s],c=Ox(t,s);return this.processSegmentGroup(n,c,a,s,o)}),Is((s,a)=>(s.push(...a),s)),pn(null),mu(),Q(s=>{if(s===null)return uo(r);let a=IE(s);return yN(a),M(a)}))}processSegment(n,t,r,o,i,s,a){return G(t).pipe(ct(c=>this.processSegmentAgainstRoute(c._injector??n,t,c,r,o,i,s,a).pipe(et(u=>{if(u instanceof Ai)return M(null);throw u}))),Mt(c=>!!c),et(c=>{if(DE(c))return gN(r,o,i)?M(new hh):uo(r);throw c}))}processSegmentAgainstRoute(n,t,r,o,i,s,a,c){return Ct(r)!==s&&(s===L||!$c(o,i,r))?uo(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,s,c):uo(o)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=wE(t,o,i);if(!c)return uo(t);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>vN&&(this.allowRedirects=!1));let f=new sr(i,u,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,ZD(o),Ct(o),o.component??o._loadedComponent??null,o,YD(o)),p=Vc(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,n);return this.applyRedirects.lineralizeSegments(o,m).pipe(Q(y=>this.processSegment(n,r,t,y.concat(h),s,!1,a)))}matchSegmentAgainstRoute(n,t,r,o,i,s){let a=uN(t,r,o,n,this.urlSerializer);return r.path==="**"&&(t.children={}),a.pipe(ie(c=>c.matched?(n=r._injector??n,this.getChildConfig(n,r,o).pipe(ie(({routes:u})=>{let l=r._loadedInjector??n,{parameters:d,consumedSegments:h,remainingSegments:f}=c,p=new sr(h,d,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,ZD(r),Ct(r),r.component??r._loadedComponent??null,r,YD(r)),m=Vc(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);let{segmentGroup:y,slicedSegments:_}=WD(t,h,f,u);if(_.length===0&&y.hasChildren())return this.processChildren(l,u,y,p).pipe(A(ne=>new Qe(p,ne)));if(u.length===0&&_.length===0)return M(new Qe(p,[]));let $=Ct(r)===i;return this.processSegment(l,u,y,_,$?L:i,!0,p).pipe(A(ne=>new Qe(p,ne instanceof Qe?[ne]:[])))}))):uo(t)))}getChildConfig(n,t,r){return t.children?M({routes:t.children,injector:n}):t.loadChildren?t._loadedRoutes!==void 0?M({routes:t._loadedRoutes,injector:t._loadedInjector}):iN(n,t,r,this.urlSerializer).pipe(Q(o=>o?this.configLoader.loadChildren(n,t).pipe(he(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):cN(t))):M({routes:[],injector:n})}};function yN(e){e.sort((n,t)=>n.value.outlet===L?-1:t.value.outlet===L?1:n.value.outlet.localeCompare(t.value.outlet))}function DN(e){let n=e.value.routeConfig;return n&&n.path===""}function IE(e){let n=[],t=new Set;for(let r of e){if(!DN(r)){n.push(r);continue}let o=n.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),t.add(o)):n.push(r)}for(let r of t){let o=IE(r.children);n.push(new Qe(r.value,o))}return n.filter(r=>!t.has(r))}function ZD(e){return e.data||{}}function YD(e){return e.resolve||{}}function EN(e,n,t,r,o,i){return Q(s=>mN(e,n,t,r,s.extractedUrl,o,i).pipe(A(({state:a,tree:c})=>V(v({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function wN(e,n){return Q(t=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return M(t);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of CE(c))s.add(u);let a=0;return G(s).pipe(ct(c=>i.has(c)?IN(c,r,e,n):(c.data=Vc(c,c.parent,e).resolve,M(void 0))),he(()=>a++),wr(1),Q(c=>a===s.size?M(t):Ie))})}function CE(e){let n=e.children.map(t=>CE(t)).flat();return[e,...n]}function IN(e,n,t,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!pE(o)&&(i[ki]=o.title),CN(i,e,n,r).pipe(A(s=>(e._resolvedData=s,e.data=Vc(e,e.parent,t).resolve,null)))}function CN(e,n,t,r){let o=nh(e);if(o.length===0)return M({});let i={};return G(o).pipe(Q(s=>bN(e[s],n,t,r).pipe(Mt(),he(a=>{if(a instanceof yo)throw Bc(new On,a);i[s]=a}))),wr(1),A(()=>i),et(s=>DE(s)?Ie:hn(s)))}function bN(e,n,t,r){let o=Pi(n)??r,i=Eo(e,o),s=i.resolve?i.resolve(n,t):Le(o,()=>i(n,t));return Fn(s)}function eh(e){return ie(n=>{let t=e(n);return t?G(t).pipe(A(()=>n)):M(n)})}var Eh=(()=>{class e{buildTitle(t){let r,o=t.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===L);return r}getResolvedTitleForRoute(t){return t.data[ki]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(bE),providedIn:"root"})}return e})(),bE=(()=>{class e extends Eh{title;constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(I(UD))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lr=new w("",{providedIn:"root",factory:()=>({})}),wo=new w(""),zc=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(_y);loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return M(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=Fn(t.loadComponent()).pipe(A(_E),he(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),Un(()=>{this.componentLoaders.delete(t)})),o=new yr(r,()=>new B).pipe(vr());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return M({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=TE(r,this.compiler,t,this.onLoadEndListener).pipe(Un(()=>{this.childrenLoaders.delete(r)})),s=new yr(i,()=>new B).pipe(vr());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TE(e,n,t,r){return Fn(e.loadChildren()).pipe(A(_E),Q(o=>o instanceof rf||Array.isArray(o)?M(o):G(n.compileModuleAsync(o))),A(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(t).injector,s=i.get(wo,[],{optional:!0,self:!0}).flat()),{routes:s.map(Dh),injector:i}}))}function TN(e){return e&&typeof e=="object"&&"default"in e}function _E(e){return TN(e)?e.default:e}var qc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(_N),providedIn:"root"})}return e})(),_N=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wh=new w(""),Ih=new w("");function SE(e,n,t){let r=e.get(Ih),o=e.get(X);return e.get(H).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),SN(e))),{onViewTransitionCreated:c}=r;return c&&Le(e,()=>c({transition:a,from:n,to:t})),s})}function SN(e){return new Promise(n=>{Fd({read:()=>setTimeout(n)},{injector:e})})}var Ch=new w(""),Gc=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new B;transitionAbortSubject=new B;configLoader=g(zc);environmentInjector=g(be);destroyRef=g(Jt);urlSerializer=g(cr);rootContexts=g(ur);location=g(Rn);inputBindingEnabled=g(Fi,{optional:!0})!==null;titleStrategy=g(Eh);options=g(lr,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(qc);createViewTransition=g(wh,{optional:!0});navigationErrorHandler=g(Ch,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>M(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=o=>this.events.next(new Rc(o)),r=o=>this.events.next(new Ac(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(V(v({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(t){return this.transitions=new ye(null),this.transitions.pipe(re(r=>r!==null),ie(r=>{let o=!1,i=!1;return M(r).pipe(ie(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",$e.SupersededByNewNavigation),Ie;this.currentTransition=r,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?V(v({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=s.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!a&&c!=="reload"){let u="";return this.events.next(new zt(s.id,this.urlSerializer.serialize(s.rawUrl),u,po.IgnoredSameUrlNavigation)),s.resolve(!1),Ie}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return M(s).pipe(ie(u=>(this.events.next(new Pn(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?Ie:Promise.resolve(u))),EN(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),he(u=>{r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=V(v({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let l=new Si(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:u,extractedUrl:l,source:d,restoredState:h,extras:f}=s,p=new Pn(u,this.urlSerializer.serialize(l),d,h);this.events.next(p);let m=fE(this.rootComponentType).snapshot;return this.currentTransition=r=V(v({},s),{targetSnapshot:m,urlAfterRedirects:l,extras:V(v({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,M(r)}else{let u="";return this.events.next(new zt(s.id,this.urlSerializer.serialize(s.extractedUrl),u,po.IgnoredByUrlHandlingStrategy)),s.resolve(!1),Ie}}),he(s=>{let a=new Sc(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),A(s=>(this.currentTransition=r=V(v({},s),{guards:Bx(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r)),Kx(this.environmentInjector,s=>this.events.next(s)),he(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Bc(this.urlSerializer,s.guardsResult);let a=new Mc(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),re(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",$e.GuardRejected),!1)),eh(s=>{if(s.guards.canActivateChecks.length!==0)return M(s).pipe(he(a=>{let c=new xc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),ie(a=>{let c=!1;return M(a).pipe(wN(this.paramsInheritanceStrategy,this.environmentInjector),he({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(a,"",$e.NoDataFromResolver)}}))}),he(a=>{let c=new Nc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),eh(s=>{let a=c=>{let u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(he(l=>{c.component=l}),A(()=>{})));for(let l of c.children)u.push(...a(l));return u};return No(a(s.targetSnapshot.root)).pipe(pn(null),ze(1))}),eh(()=>this.afterPreactivation()),ie(()=>{let{currentSnapshot:s,targetSnapshot:a}=r,c=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return c?G(c).pipe(A(()=>r)):M(r)}),A(s=>{let a=Px(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=V(v({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),he(()=>{this.events.next(new Mi)}),Vx(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),ze(1),he({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Je(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),us(this.transitionAbortSubject.pipe(he(s=>{throw s}))),Un(()=>{!o&&!i&&this.cancelNavigationTransition(r,"",$e.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),et(s=>{if(this.destroyed)return r.resolve(!1),Ie;if(i=!0,yE(s))this.events.next(new Ht(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),jx(s)?this.events.next(new vo(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let a=new go(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let c=Le(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(c instanceof yo){let{message:u,cancellationCode:l}=Bc(this.urlSerializer,c);this.events.next(new Ht(r.id,this.urlSerializer.serialize(r.extractedUrl),u,l)),this.events.next(new vo(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return Ie}))}))}cancelNavigationTransition(t,r,o){let i=new Ht(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function MN(e){return e!==bc}var ME=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(xN),providedIn:"root"})}return e})(),Hc=class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}},xN=(()=>{class e extends Hc{static \u0275fac=(()=>{let t;return function(o){return(t||(t=_d(e)))(o||e)}})();static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xE=(()=>{class e{urlSerializer=g(cr);options=g(lr,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(Rn);urlHandlingStrategy=g(qc);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new $t;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:r,targetBrowserUrl:o}){let i=t!==void 0?this.urlHandlingStrategy.merge(t,r):r,s=o??i;return s instanceof $t?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:r,initialUrl:o}){r&&t?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=t):this.rawUrlTree=o}routerState=fE(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(NN),providedIn:"root"})}return e})(),NN=(()=>{class e extends xE{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{t(r.url,r.state,"popstate")})})}handleRouterEvent(t,r){t instanceof Pn?this.updateStateMemento():t instanceof zt?this.commitTransition(r):t instanceof Si?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof Mi?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof Ht&&(t.code===$e.GuardRejected||t.code===$e.NoDataFromResolver)?this.restoreHistory(r):t instanceof go?this.restoreHistory(r,!0):t instanceof Je&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(t)||i){let a=this.browserPageId,c=v(v({},s),this.generateNgRouterState(o,a));this.location.replaceState(t,"",c)}else{let a=v(v({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(t,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===t.finalUrl&&i===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=_d(e)))(o||e)}})();static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wc(e,n){e.events.pipe(re(t=>t instanceof Je||t instanceof Ht||t instanceof go||t instanceof zt),A(t=>t instanceof Je||t instanceof zt?0:(t instanceof Ht?t.code===$e.Redirect||t.code===$e.SupersededByNewNavigation:!1)?2:1),re(t=>t!==2),ze(1)).subscribe(()=>{n()})}var RN={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},AN={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},rt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(af);stateManager=g(xE);options=g(lr,{optional:!0})||{};pendingTasks=g(Xt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(Gc);urlSerializer=g(cr);location=g(Rn);urlHandlingStrategy=g(qc);_events=new B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(ME);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(wo,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(Fi,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Y;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Ht&&r.code!==$e.Redirect&&r.code!==$e.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Je)this.navigated=!0;else if(r instanceof vo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=v({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||MN(o.source)},s);this.scheduleNavigation(a,bc,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}kN(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),bc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r,o)=>{this.navigateToSyncWithBrowser(t,o,r)})}navigateToSyncWithBrowser(t,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=v({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Dh),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=v(v({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=cE(h)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return uE(d,t,l,u??null)}navigateByUrl(t,r={skipLocationChange:!1}){let o=kn(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,bc,null,r)}navigate(t,r={skipLocationChange:!1}){return ON(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let o;if(r===!0?o=v({},RN):r===!1?o=v({},AN):o=r,kn(t))return $D(this.currentUrlTree,t,o);let i=this.parseUrl(t);return $D(this.currentUrlTree,i,o)}removeEmptyProps(t){return Object.entries(t).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return Wc(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ON(e){for(let n=0;n<e.length;n++)if(e[n]==null)throw new D(4008,!1)}function kN(e){return!(e instanceof Mi)&&!(e instanceof vo)}var Zc=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new B;constructor(t,r,o,i,s,a){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=t.events.subscribe(u=>{u instanceof Je&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(kn(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(t!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let r=this.href===null?null:rv(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return this.routerLinkInput===null?null:kn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(R(rt),R(ln),Aa("tabindex"),R(bn),R(Ge),R(Dt))};static \u0275dir=Ee({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&xn("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&_n("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",cn],skipLocationChange:[2,"skipLocationChange","skipLocationChange",cn],replaceUrl:[2,"replaceUrl","replaceUrl",cn],routerLink:"routerLink"},features:[Lt]})}return e})(),PN=(()=>{class e{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Ae;constructor(t,r,o,i,s){this.router=t,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof Je&&this.update()})}ngAfterContentInit(){M(this.links.changes,M(null)).pipe(Tt()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=G(t).pipe(Tt()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){let r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let r=FN(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?t.isActive(i,r):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(r){return new(r||e)(R(rt),R(Ge),R(bn),R(Nn),R(Zc,8))};static \u0275dir=Ee({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&vy(i,Zc,5),r&2){let s;yy(s=Dy())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Lt]})}return e})();function FN(e){return!!e.paths}var ji=class{};var NE=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,r,o,i){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=i}setUpPreloading(){this.subscription=this.router.events.pipe(re(t=>t instanceof Je),ct(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=ei(i.providers,t,`Route: ${i.path}`));let s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return G(o).pipe(Tt())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(t,r):o=M(null);let i=o.pipe(Q(s=>s===null?M(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return G([i,s]).pipe(Tt())}else return i})}static \u0275fac=function(r){return new(r||e)(I(rt),I(be),I(ji),I(zc))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),RE=new w(""),LN=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Pn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Je?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof zt&&t.code===po.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof mo&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new mo(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Av()};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();function jN(e){return e.routerState.root}function Vi(e,n){return{\u0275kind:e,\u0275providers:n}}function VN(){let e=g(oe);return n=>{let t=e.get(qe);if(n!==t.components[0])return;let r=e.get(rt),o=e.get(AE);e.get(Th)===1&&r.initialNavigation(),e.get(PE,null,j.Optional)?.setUpPreloading(),e.get(RE,null,j.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var AE=new w("",{factory:()=>new B}),Th=new w("",{providedIn:"root",factory:()=>1});function OE(){let e=[{provide:Th,useValue:0},df(()=>{let n=g(oe);return n.get(Tf,Promise.resolve()).then(()=>new Promise(r=>{let o=n.get(rt),i=n.get(AE);Wc(o,()=>{r(!0)}),n.get(Gc).afterPreactivation=()=>(r(!0),i.closed?M(void 0):i),o.initialNavigation()}))})];return Vi(2,e)}function kE(){let e=[df(()=>{g(rt).setUpLocationChangeListener()}),{provide:Th,useValue:2}];return Vi(3,e)}var PE=new w("");function FE(e){return Vi(0,[{provide:PE,useExisting:NE},{provide:ji,useExisting:e}])}function LE(){return Vi(8,[vh,{provide:Fi,useExisting:vh}])}function jE(e){en("NgRouterViewTransitions");let n=[{provide:wh,useValue:SE},{provide:Ih,useValue:v({skipNextTransition:!!e?.skipInitialTransition},e)}];return Vi(9,n)}var VE=[Rn,{provide:cr,useClass:On},rt,ur,{provide:ln,useFactory:jN,deps:[rt]},zc,[]],BN=(()=>{class e{constructor(){}static forRoot(t,r){return{ngModule:e,providers:[VE,[],{provide:wo,multi:!0,useValue:t},[],r?.errorHandler?{provide:Ch,useValue:r.errorHandler}:[],{provide:lr,useValue:r||{}},r?.useHash?HN():$N(),UN(),r?.preloadingStrategy?FE(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?zN(r):[],r?.bindToComponentInputs?LE().\u0275providers:[],r?.enableViewTransitions?jE().\u0275providers:[],qN()]}}static forChild(t){return{ngModule:e,providers:[{provide:wo,multi:!0,useValue:t}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=gt({type:e});static \u0275inj=ht({})}return e})();function UN(){return{provide:RE,useFactory:()=>{let e=g(DD),n=g(H),t=g(lr),r=g(Gc),o=g(cr);return t.scrollOffset&&e.setOffset(t.scrollOffset),new LN(o,r,e,n,t)}}}function HN(){return{provide:Dt,useClass:Pf}}function $N(){return{provide:Dt,useClass:Za}}function zN(e){return[e.initialNavigation==="disabled"?kE().\u0275providers:[],e.initialNavigation==="enabledBlocking"?OE().\u0275providers:[]]}var bh=new w("");function qN(){return[{provide:bh,useFactory:VN},{provide:ff,multi:!0,useExisting:bh}]}var bt=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(bt||{}),WN="*";function Mh(e,n){return{type:bt.Trigger,name:e,definitions:n,options:{}}}function Yc(e,n=null){return{type:bt.Animate,styles:n,timings:e}}function U$(e,n=null){return{type:bt.Sequence,steps:e,options:n}}function Bi(e){return{type:bt.Style,styles:e,offset:null}}function Ui(e,n,t){return{type:bt.State,name:e,styles:n,options:t}}function ZN(e){return{type:bt.Keyframes,steps:e}}function Qc(e,n,t=null){return{type:bt.Transition,expr:e,animation:n,options:t}}function YN(e,n=null){return{type:bt.Reference,animation:e,options:n}}function QN(e,n=null){return{type:bt.AnimateRef,animation:e,options:n}}var _h=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,t=0){this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let t=n=="start"?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}},Sh=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let t=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let t=n*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(o)})}getPosition(){let n=this.players.reduce((t,r)=>t===null||r.totalTime>t.totalTime?r:t,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let t=n=="start"?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}},KN="!";var BE=["toast-component",""];function JN(e,n){if(e&1){let t=mf();Ze(0,"button",5),xn("click",function(){vd(t);let o=Ye();return yd(o.remove())}),Ze(1,"span",6),sn(2,"\xD7"),mt()()}}function XN(e,n){if(e&1&&(ri(0),sn(1),oi()),e&2){let t=Ye(2);de(),an("[",t.duplicatesCount+1,"]")}}function eR(e,n){if(e&1&&(Ze(0,"div"),sn(1),no(2,XN,2,1,"ng-container",4),mt()),e&2){let t=Ye();on(t.options.titleClass),_n("aria-label",t.title),de(),an(" ",t.title," "),de(),Me("ngIf",t.duplicatesCount)}}function tR(e,n){if(e&1&&Mn(0,"div",7),e&2){let t=Ye();on(t.options.messageClass),Me("innerHTML",t.message,Vd)}}function nR(e,n){if(e&1&&(Ze(0,"div",8),sn(1),mt()),e&2){let t=Ye();on(t.options.messageClass),_n("aria-label",t.message),de(),an(" ",t.message," ")}}function rR(e,n){if(e&1&&(Ze(0,"div"),Mn(1,"div",9),mt()),e&2){let t=Ye();de(),Sn("width",t.width()+"%")}}function oR(e,n){if(e&1){let t=mf();Ze(0,"button",5),xn("click",function(){vd(t);let o=Ye();return yd(o.remove())}),Ze(1,"span",6),sn(2,"\xD7"),mt()()}}function iR(e,n){if(e&1&&(ri(0),sn(1),oi()),e&2){let t=Ye(2);de(),an("[",t.duplicatesCount+1,"]")}}function sR(e,n){if(e&1&&(Ze(0,"div"),sn(1),no(2,iR,2,1,"ng-container",4),mt()),e&2){let t=Ye();on(t.options.titleClass),_n("aria-label",t.title),de(),an(" ",t.title," "),de(),Me("ngIf",t.duplicatesCount)}}function aR(e,n){if(e&1&&Mn(0,"div",7),e&2){let t=Ye();on(t.options.messageClass),Me("innerHTML",t.message,Vd)}}function cR(e,n){if(e&1&&(Ze(0,"div",8),sn(1),mt()),e&2){let t=Ye();on(t.options.messageClass),_n("aria-label",t.message),de(),an(" ",t.message," ")}}function uR(e,n){if(e&1&&(Ze(0,"div"),Mn(1,"div",9),mt()),e&2){let t=Ye();de(),Sn("width",t.width()+"%")}}var xh=class{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Nh=class{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},Rh=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new B;_activate=new B;_manualClose=new B;_resetTimeout=new B;_countDuplicate=new B;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},Io=class{toastId;config;message;title;toastType;toastRef;_onTap=new B;_onAction=new B;constructor(n,t,r,o,i,s){this.toastId=n,this.config=t,this.message=r,this.title=o,this.toastType=i,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},UE={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},HE=new w("ToastConfig"),Ah=class extends Nh{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,r){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=r}attachComponentPortal(n,t){let r=this._componentFactoryResolver.resolveComponentFactory(n.component),o;return o=r.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},lR=(()=>{class e{_document=g(X);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Oh=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},dR=(()=>{class e{_overlayContainer=g(lR);_componentFactoryResolver=g(to);_appRef=g(qe);_document=g(X);_paneElements=new Map;create(t,r){return this._createOverlayRef(this.getPaneElement(t,r))}getPaneElement(t="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[t]||(this._paneElements.get(r)[t]=this._createPaneElement(t,r)),this._paneElements.get(r)[t]}_createPaneElement(t,r){let o=this._document.createElement("div");return o.id="toast-container",o.classList.add(t),o.classList.add("toast-container"),r?r.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(t){return new Ah(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new Oh(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Kc=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,r,o,i,s){this.overlay=r,this._injector=o,this.sanitizer=i,this.ngZone=s,this.toastrConfig=v(v({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=v(v({},t.default.iconClasses),t.config.iconClasses))}show(t,r,o={},i=""){return this._preBuildNotification(i,t,r,this.applyConfig(o))}success(t,r,o={}){let i=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(i,t,r,this.applyConfig(o))}error(t,r,o={}){let i=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(i,t,r,this.applyConfig(o))}info(t,r,o={}){let i=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(i,t,r,this.applyConfig(o))}warning(t,r,o={}){let i=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(i,t,r,this.applyConfig(o))}clear(t){for(let r of this.toasts)if(t!==void 0){if(r.toastId===t){r.toastRef.manualClose();return}}else r.toastRef.manualClose()}remove(t){let r=this._findToast(t);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let o=this.toasts[this.currentlyActive].toastRef;o.isInactive()||(this.currentlyActive=this.currentlyActive+1,o.activate())}return!0}findDuplicate(t="",r="",o,i){let{includeTitleDuplicates:s}=this.toastrConfig;for(let a of this.toasts){let c=s&&a.title===t;if((!s||c)&&a.message===r)return a.toastRef.onDuplicate(o,i),a}return null}applyConfig(t={}){return v(v({},this.toastrConfig),t)}_findToast(t){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===t)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(t,r,o,i){return i.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,r,o,i)):this._buildNotification(t,r,o,i)}_buildNotification(t,r,o,i){if(!i.toastComponent)throw new Error("toastComponent required");let s=this.findDuplicate(o,r,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||r)&&this.toastrConfig.preventDuplicates&&s!==null)return s;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let c=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let u=r;r&&i.enableHtml&&(u=this.sanitizer.sanitize(We.HTML,r));let l=new Rh(c),d=new Io(this.index,i,u,o,t,l),h=[{provide:Io,useValue:d}],f=oe.create({providers:h,parent:this._injector}),p=new xh(i.toastComponent,f),m=c.attach(p,i.newestOnTop);l.componentInstance=m.instance;let y={toastId:this.index,title:o||"",message:r||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:m};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{y.toastRef.activate()})),this.toasts.push(y),y}static \u0275fac=function(r){return new(r||e)(I(HE),I(dR),I(oe),I(Qf),I(H))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fR=(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=Qr(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,o){this.toastrService=t,this.toastPackage=r,this.ngZone=o,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(i=>{this.duplicatesCount=i}),this.state=Qr({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>V(v({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),r=this.hideTime-t;this.width.set(r/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(o=>100-o),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>V(v({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>V(v({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),r)):this.timeout=setTimeout(()=>t(),r)}outsideInterval(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),r)):this.intervalId=setInterval(()=>t(),r)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(r){return new(r||e)(R(Kc),R(Io),R(H))};static \u0275cmp=ti({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,o){r&1&&xn("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),r&2&&(vf("@flyInOut",o._state),on(o.toastClasses),Sn("display",o.displayStyle))},attrs:BE,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,o){r&1&&no(0,JN,3,0,"button",0)(1,eR,3,5,"div",1)(2,tR,1,3,"div",2)(3,nR,2,4,"div",3)(4,rR,2,2,"div",4),r&2&&(Me("ngIf",o.options.closeButton),de(),Me("ngIf",o.title),de(),Me("ngIf",o.message&&o.options.enableHtml),de(),Me("ngIf",o.message&&!o.options.enableHtml),de(),Me("ngIf",o.options.progressBar))},dependencies:[ic],encapsulation:2,data:{animation:[Mh("flyInOut",[Ui("inactive",Bi({opacity:0})),Ui("active",Bi({opacity:1})),Ui("removed",Bi({opacity:0})),Qc("inactive => active",Yc("{{ easeTime }}ms {{ easing }}")),Qc("active => removed",Yc("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})(),hR=V(v({},UE),{toastComponent:fR}),pR=(e={})=>tr([{provide:HE,useValue:{default:hR,config:e}}]),az=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[pR(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=gt({type:e});static \u0275inj=ht({})}return e})();var gR=(()=>{class e{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=Qr(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=Qr("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,o){this.toastrService=t,this.toastPackage=r,this.appRef=o,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(i=>{this.duplicatesCount=i})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),r=this.hideTime-t;this.width.set(r/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(o=>100-o),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(r){return new(r||e)(R(Kc),R(Io),R(qe))};static \u0275cmp=ti({type:e,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(r,o){r&1&&xn("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),r&2&&(on(o.toastClasses),Sn("display",o.displayStyle))},attrs:BE,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,o){r&1&&no(0,oR,3,0,"button",0)(1,sR,3,5,"div",1)(2,aR,1,3,"div",2)(3,cR,2,4,"div",3)(4,uR,2,2,"div",4),r&2&&(Me("ngIf",o.options.closeButton),de(),Me("ngIf",o.title),de(),Me("ngIf",o.message&&o.options.enableHtml),de(),Me("ngIf",o.message&&!o.options.enableHtml),de(),Me("ngIf",o.options.progressBar))},dependencies:[ic],encapsulation:2,changeDetection:0})}return e})(),cz=V(v({},UE),{toastComponent:gR});var $E=class e{constructor(n,t,r){this.http=n;this.toastr=t;this.router=r}PostToUrlEncode(n,t,r=1e5){let o=new me;return o=o.set("Content-Type","application/x-www-form-urlencoded"),new x(i=>{this.http.post(n,t,{headers:o}).pipe(at(r)).subscribe(s=>{i.next(s),i.complete()})})}GetText(n=1e5){let t=localStorage.getItem("Token"),o={responseType:"text",headers:new me({Authorization:"Bearer "+t})};return new x(i=>{this.http.get("/API/Token/GetZendeskJWT",o).pipe(at(n)).subscribe(s=>{i.next(s),i.complete()})})}POSText(n,t,r=1e5){let o=localStorage.getItem("Token"),s={responseType:"text",headers:new me({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+o})};return new x(a=>{this.http.post(n,t,s).pipe(at(r)).subscribe(c=>{a.next(c),a.complete()})})}get(n,t=[],r=!1){let o=localStorage.getItem("Token"),i=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});o&&(i=i.append("Authorization","Bearer "+o));let s={headers:i,params:this.generateQueryParams(t)};return this.http.get(n,s).pipe(et(a=>{if(!r&&!this.unauthorizedErrorHandling(a)){let u=this.errorMessageHandling(a);this.toastr.error(u.Message!=""?u.Message:"An unknown error has occured!",u.header),this.paymentErrorHandling(a)}return hn(()=>a)}))}getNews(n){return this.http.get(n)}paymentErrorHandling(n){n.status==402&&this.router.navigate(["/menu/Profile/Main/My_Subscription"])}post(n,t,r=1e5,o=!1,i={}){return new x(s=>{let a=localStorage.getItem("Token"),c=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});a&&(c=c.append("Authorization","Bearer "+a));let u=v({headers:c},i);Date.prototype.toJSON=function(){return this.getFullYear()+"-"+l(this.getMonth()+1)+"-"+l(this.getDate())+"T"+l(this.getHours())+":"+l(this.getMinutes())+":"+l(this.getSeconds())+".000"};function l(d){return d<10?"0"+d:d}this.http.post(n,t,i).pipe(at(r)).subscribe({next:d=>{s.next(d),s.complete()},error:d=>{if(d.status==200)s.next(d.error.text),s.complete();else{if(!o&&!this.unauthorizedErrorHandling(d)){let f=this.errorMessageHandling(d);this.toastr.error(f.Message!=""?f.Message:"An unknown error has occured!",f.header,{enableHtml:!0})}s.error(d)}}})})}postFile(n,t,r=1e5){return new x(o=>{let i=localStorage.getItem("Token"),s=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});i&&(s=s.append("Authorization","Bearer "+i)),this.http.post(n,t,{headers:s,observe:"response",responseType:"blob"}).pipe(at(r)).subscribe({next:a=>{o.next({title:a.headers.get("Content-Disposition"),file:a.body}),o.complete()},error:a=>{if(a.headers.get("Content-Type")==="application/json; charset=utf-8"){let c=new FileReader;c.addEventListener("loadend",u=>{let l=JSON.parse(u.srcElement.result)?.Message;if(!this.unauthorizedErrorHandling(a)){let h=this.errorMessageHandling(a);this.toastr.error(l??"An unknown error has occured!",h.header,{enableHtml:!0})}}),c.readAsText(a.error)}o.error(a)}})})}put(n,t,r={},o=1e5,i=!1){return new x(s=>{let a=localStorage.getItem("Token"),c=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});a&&(c=c.append("Authorization","Bearer "+a));let u=v({headers:c},r.params?{params:this.generateQueryParams(r.params)}:{});this.http.put(n,t??{},u).pipe(at(o)).subscribe({next:l=>{s.next(l),s.complete()},error:l=>{if(l.status==200)s.next(l.error.text),s.complete();else{if(!i&&!this.unauthorizedErrorHandling(l)){let h=this.errorMessageHandling(l);this.toastr.error(h.Message!=""?h.Message:"An unknown error has occured!",h.header)}s.error(l)}}})})}delete(n,t={},r=1e5){return new x(o=>{let i=localStorage.getItem("Token"),s=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});i&&(s=s.append("Authorization","Bearer "+i));let a=v(v({headers:s},t.body?{body:t.body}:{}),t.params?{params:this.generateQueryParams(t.params)}:{});this.http.delete(n,a).pipe(at(r)).subscribe({next:c=>{o.next(c),o.complete()},error:c=>{if(c.status==200)o.next(c.error.text),o.complete();else{if(!this.unauthorizedErrorHandling(c)){let l=this.errorMessageHandling(c);this.toastr.error(l.Message!=""?l.Message:"An unknown error has occured!",l.header)}o.error(c)}}})})}generateQueryParams(n=[]){let t=new It;return n.forEach(r=>{t=t.append(r.key,r.value)}),t}unauthorizedErrorHandling(n){let t=!1;return(n.status==401||n.status==403)&&(localStorage.getItem("Token")?this.router.navigate(["/menu/Unauthorized/Main/Unauthorized"],{state:{role:n?.error.Roles}}):window.location.href="/",t=!0),t}errorMessageHandling(n){let t="API Error",r="Exception Message";if(n.error)t="API Error - "+n.status,t=`${t} ${n.status==409?"Conflict":""}`,n.status==451&&(t="Error"),n.error&&(r=n.error.Message);else if((n.Message||n.message)&&(t="API Error - "+n.name,r=n.Message?n.Message:n.message,n instanceof ys||n?.name=="TimeoutError")){let o=this.handleTimoutError(n);t=o.header,r=o.message}return{header:t,Message:r}}handleTimoutError(n){let t="Slow Connection Detected",r=n.Message?n.Message:n.message;return{header:t,message:r}}postFormDataWithoutBearer(n,t){return new x(r=>{this.http.post((n.includes("localhost"),n),t).pipe(at(1e5)).subscribe({next:o=>{r.next(o),r.complete()},error:o=>{o.status==200&&(r.next(o.error.text),r.complete()),r.error(o)}})})}postFormData(n,t,r=!0){return new x(o=>{let i=localStorage.getItem("Token"),a={headers:new me({Authorization:"Bearer "+i})};this.http.post(n,t,a).pipe(at(1e5)).subscribe({next:c=>{o.next(c),o.complete()},error:c=>{if(c.status==200)o.next(c.error.text),o.complete();else{if(!this.unauthorizedErrorHandling(c)&&r){let l=this.errorMessageHandling(c);this.toastr.error(l.Message!=""?l.Message:"An unknown error has occured!",l.header)}o.error(c)}}})})}static \u0275fac=function(t){return new(t||e)(I(yc),I(Kc),I(rt))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})};export{Y as a,ru as b,x as c,B as d,ye as e,So as f,pw as g,Oe as h,gw as i,mw as j,Ie as k,bo as l,To as m,G as n,M as o,hn as p,vw as q,ys as r,at as s,A as t,No as u,Q as v,Tt as w,fn as x,Ds as y,lw as z,hu as A,Bn as B,_w as C,Sw as D,re as E,Mw as F,xw as G,Nw as H,et as I,Aw as J,ct as K,Ow as L,cp as M,ze as N,pu as O,kw as P,lp as Q,Un as R,Mt as S,Lw as T,jw as U,Vw as V,Is as W,cu as X,Jh as Y,Bw as Z,Uw as _,cs as $,ie as aa,Hw as ba,dp as ca,us as da,fp as ea,he as fa,hp as ga,D as ha,Cg as ia,E as ja,ht as ka,w as la,I as ma,g as na,SB as oa,id as pa,Ag as qa,tr as ra,be as sa,ud as ta,Lt as ua,vd as va,yd as wa,MB as xa,xB as ya,_d as za,Aa,oe as Ba,Op as Ca,Jt as Da,NB as Ea,Ae as Fa,H as Ga,ft as Ha,RB as Ia,Sm as Ja,Ge as Ka,AC as La,Qr as Ma,cl as Na,Nd as Oa,Jr as Pa,AB as Qa,Ad as Ra,zC as Sa,Fd as Ta,We as Ua,Vd as Va,hb as Wa,pb as Xa,OB as Ya,kB as Za,PB as _a,de as $a,En as ab,Vr as bb,bn as cb,R as db,Av as eb,pt as fb,$B as gb,zB as hb,qB as ib,Xn as jb,ti as kb,gt as lb,Ee as mb,Tn as nb,O_ as ob,ZB as pb,no as qb,ro as rb,df as sb,qe as tb,_n as ub,Me as vb,Sn as wb,aS as xb,YB as yb,on as zb,QB as Ab,KB as Bb,JB as Cb,XB as Db,eU as Eb,tU as Fb,nU as Gb,rU as Hb,Ze as Ib,mt as Jb,Mn as Kb,ri as Lb,oi as Mb,IS as Nb,mf as Ob,bS as Pb,xn as Qb,Ye as Rb,oU as Sb,iU as Tb,PS as Ub,my as Vb,FS as Wb,LS as Xb,vy as Yb,sU as Zb,yy as _b,Dy as $b,aU as ac,cU as bc,uU as cc,lU as dc,sn as ec,VS as fc,an as gc,BS as hc,US as ic,HS as jc,dU as kc,$S as lc,qS as mc,fU as nc,hU as oc,pU as pc,gU as qc,mU as rc,vU as sc,yU as tc,DU as uc,EU as vc,wU as wc,IU as xc,CU as yc,bU as zc,TU as Ac,_U as Bc,SU as Cc,MU as Dc,Zo as Ec,xU as Fc,oo as Gc,NU as Hc,Nn as Ic,wf as Jc,cn as Kc,If as Lc,Cf as Mc,RU as Nc,mM as Oc,AU as Pc,X as Qc,Bt as Rc,Rn as Sc,oD as Tc,zM as Uc,qM as Vc,dD as Wc,ic as Xc,fD as Yc,GM as Zc,WM as _c,ZM as $c,KM as ad,JM as bd,e0 as cd,t0 as dd,n0 as ed,r0 as fd,o0 as gd,Lf as hd,i0 as id,ac as jd,F2 as kd,qf as ld,O0 as md,F0 as nd,me as od,Di as pd,Ei as qd,yc as rd,ox as sd,ix as td,UD as ud,Qf as vd,bt as wd,WN as xd,Mh as yd,Yc as zd,U$ as Ad,Bi as Bd,Ui as Cd,ZN as Dd,Qc as Ed,YN as Fd,QN as Gd,_h as Hd,Sh as Id,KN as Jd,Pn as Kd,Je as Ld,ln as Md,mh as Nd,rt as Od,Zc as Pd,PN as Qd,BN as Rd,Io as Sd,Kc as Td,fR as Ud,az as Vd,$E as Wd};
8
+ `).forEach(t=>{let r=t.indexOf(":");if(r>0){let o=t.slice(0,r),i=t.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.addHeaderEntry(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){let t=new e;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){let t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,t);let o=(n.op==="a"?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":let i=n.value;if(!i)this.headers.delete(t),this.normalizedNames.delete(t);else{let s=this.headers.get(t);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}addHeaderEntry(n,t){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(t):this.headers.set(r,[t])}setHeaderEntries(n,t){let r=(Array.isArray(t)?t:[t]).map(i=>i.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}};var pc=class{encodeKey(n){return xD(n)}encodeValue(n){return xD(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function L0(e,n){let t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],c=t.get(s)||[];c.push(a),t.set(s,c)}),t}var j0=/%(\d[a-f0-9])/gi,V0={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function xD(e){return encodeURIComponent(e).replace(j0,(n,t)=>V0[t]??n)}function hc(e){return`${e}`}var It=class e{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new pc,n.fromString){if(n.fromObject)throw new D(2805,!1);this.map=L0(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{let r=n.fromObject[t],o=Array.isArray(r)?r.map(hc):[hc(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){let t=[];return Object.keys(n).forEach(r=>{let o=n[r];Array.isArray(o)?o.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let t=new e({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let t=(n.op==="a"?this.map.get(n.param):void 0)||[];t.push(hc(n.value)),this.map.set(n.param,t);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],o=r.indexOf(hc(n.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var gc=class{map=new Map;set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function B0(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ND(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function RD(e){return typeof Blob<"u"&&e instanceof Blob}function AD(e){return typeof FormData<"u"&&e instanceof FormData}function U0(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var OD="Content-Type",kD="Accept",PD="X-Request-URL",FD="text/plain",LD="application/json",H0=`${LD}, ${FD}, */*`,so=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,t,r,o){this.url=t,this.method=n.toUpperCase();let i;if(B0(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new me,this.context??=new gc,!this.params)this.params=new It,this.urlWithParams=t;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=t;else{let a=t.indexOf("?"),c=a===-1?"?":a<t.length-1?"&":"";this.urlWithParams=t+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ND(this.body)||RD(this.body)||AD(this.body)||U0(this.body)?this.body:this.body instanceof It?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||AD(this.body)?null:RD(this.body)?this.body.type||null:ND(this.body)?null:typeof this.body=="string"?FD:this.body instanceof It?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?LD:null}clone(n={}){let t=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,i=n.transferCache??this.transferCache,s=n.body!==void 0?n.body:this.body,a=n.withCredentials??this.withCredentials,c=n.reportProgress??this.reportProgress,u=n.headers||this.headers,l=n.params||this.params,d=n.context??this.context;return n.setHeaders!==void 0&&(u=Object.keys(n.setHeaders).reduce((h,f)=>h.set(f,n.setHeaders[f]),u)),n.setParams&&(l=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),l)),new e(t,r,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},or=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(or||{}),co=class{headers;status;statusText;url;ok;type;constructor(n,t=200,r="OK"){this.headers=n.headers||new me,this.status=n.status!==void 0?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},mc=class e extends co{constructor(n={}){super(n)}type=or.ResponseHeader;clone(n={}){return new e({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Di=class e extends co{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=or.Response;clone(n={}){return new e({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Ei=class extends co{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},$0=200,z0=204;function Gf(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var yc=(()=>{class e{handler;constructor(t){this.handler=t}request(t,r,o={}){let i;if(t instanceof so)i=t;else{let c;o.headers instanceof me?c=o.headers:c=new me(o.headers);let u;o.params&&(o.params instanceof It?u=o.params:u=new It({fromObject:o.params})),i=new so(t,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=M(i).pipe(ct(c=>this.handler.handle(c)));if(t instanceof so||o.observe==="events")return s;let a=s.pipe(re(c=>c instanceof Di));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new D(2806,!1);return c.body}));case"blob":return a.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new D(2807,!1);return c.body}));case"text":return a.pipe(A(c=>{if(c.body!==null&&typeof c.body!="string")throw new D(2808,!1);return c.body}));case"json":default:return a.pipe(A(c=>c.body))}case"response":return a;default:throw new D(2809,!1)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new It().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,Gf(o,r))}post(t,r,o={}){return this.request("POST",t,Gf(o,r))}put(t,r,o={}){return this.request("PUT",t,Gf(o,r))}static \u0275fac=function(r){return new(r||e)(I(ao))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();var q0=new w("");function G0(e,n){return n(e)}function W0(e,n,t){return(r,o)=>Le(t,()=>n(r,i=>e(i,o)))}var Zf=new w(""),jD=new w(""),VD=new w("",{providedIn:"root",factory:()=>!0});var vc=(()=>{class e extends ao{backend;injector;chain=null;pendingTasks=g(Xt);contributeToStability=g(VD);constructor(t,r){super(),this.backend=t,this.injector=r}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Zf),...this.injector.get(jD,[])]));this.chain=r.reduceRight((o,i)=>W0(o,i,this.injector),G0)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(Un(()=>this.pendingTasks.remove(r)))}else return this.chain(t,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(I(yi),I(be))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();var Z0=/^\)\]\}',?\n/,Y0=RegExp(`^${PD}:`,"m");function Q0(e){return"responseURL"in e&&e.responseURL?e.responseURL:Y0.test(e.getAllResponseHeaders())?e.getResponseHeader(PD):null}var Wf=(()=>{class e{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?G(r.\u0275loadImpl()):M(null)).pipe(ie(()=>new x(i=>{let s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((m,y)=>s.setRequestHeader(m,y.join(","))),t.headers.has(kD)||s.setRequestHeader(kD,H0),!t.headers.has(OD)){let m=t.detectContentTypeHeader();m!==null&&s.setRequestHeader(OD,m)}if(t.responseType){let m=t.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=t.serializeBody(),c=null,u=()=>{if(c!==null)return c;let m=s.statusText||"OK",y=new me(s.getAllResponseHeaders()),_=Q0(s)||t.url;return c=new mc({headers:y,status:s.status,statusText:m,url:_}),c},l=()=>{let{headers:m,status:y,statusText:_,url:$}=u(),ne=null;y!==z0&&(ne=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=ne?$0:0);let Ln=y>=200&&y<300;if(t.responseType==="json"&&typeof ne=="string"){let Hi=ne;ne=ne.replace(Z0,"");try{ne=ne!==""?JSON.parse(ne):null}catch(zE){ne=Hi,Ln&&(Ln=!1,ne={error:zE,text:ne})}}Ln?(i.next(new Di({body:ne,headers:m,status:y,statusText:_,url:$||void 0})),i.complete()):i.error(new Ei({error:ne,headers:m,status:y,statusText:_,url:$||void 0}))},d=m=>{let{url:y}=u(),_=new Ei({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(_)},h=!1,f=m=>{h||(i.next(u()),h=!0);let y={type:or.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),t.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)},p=m=>{let y={type:or.UploadProgress,loaded:m.loaded};m.lengthComputable&&(y.total=m.total),i.next(y)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:or.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),t.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(I(rr))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),BD=new w(""),K0="XSRF-TOKEN",J0=new w("",{providedIn:"root",factory:()=>K0}),X0="X-XSRF-TOKEN",ex=new w("",{providedIn:"root",factory:()=>X0}),wi=class{},tx=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,r){this.doc=t,this.cookieName=r}getToken(){let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=hi(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(r){return new(r||e)(I(X),I(J0))};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();function nx(e,n){let t=e.url.toLowerCase();if(!g(BD)||e.method==="GET"||e.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return n(e);let r=g(wi).getToken(),o=g(ex);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var Yf=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Yf||{});function rx(e,n){return{\u0275kind:e,\u0275providers:n}}function ox(...e){let n=[yc,Wf,vc,{provide:ao,useExisting:vc},{provide:yi,useFactory:()=>g(q0,{optional:!0})??g(Wf)},{provide:Zf,useValue:nx,multi:!0},{provide:BD,useValue:!0},{provide:wi,useClass:tx}];for(let t of e)n.push(...t.\u0275providers);return tr(n)}function ix(e){return rx(Yf.Interceptors,e.map(n=>({provide:Zf,useValue:n,multi:!0})))}var UD=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(r){return new(r||e)(I(X))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Qf=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I(ax),o},providedIn:"root"})}return e})(),ax=(()=>{class e extends Qf{_doc;constructor(t){super(),this._doc=t}sanitize(t,r){if(r==null)return null;switch(t){case We.NONE:return r;case We.HTML:return tn(r,"HTML")?Be(r):jd(this._doc,String(r)).toString();case We.STYLE:return tn(r,"Style")?Be(r):r;case We.SCRIPT:if(tn(r,"Script"))return Be(r);throw new D(5200,!1);case We.URL:return tn(r,"URL")?Be(r):ka(String(r));case We.RESOURCE_URL:if(tn(r,"ResourceURL"))return Be(r);throw new D(5201,!1);default:throw new D(5202,!1)}}bypassSecurityTrustHtml(t){return Wm(t)}bypassSecurityTrustStyle(t){return Zm(t)}bypassSecurityTrustScript(t){return Ym(t)}bypassSecurityTrustUrl(t){return Qm(t)}bypassSecurityTrustResourceUrl(t){return Km(t)}static \u0275fac=function(r){return new(r||e)(I(X))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var L="primary",ki=Symbol("RouteTitle"),th=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){let t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function ar(e){return new th(e)}function QD(e,n,t){let r=t.path.split("/");if(r.length>e.length||t.pathMatch==="full"&&(n.hasChildren()||r.length<e.length))return null;let o={};for(let i=0;i<r.length;i++){let s=r[i],a=e[i];if(s[0]===":")o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function cx(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!Ut(e[t],n[t]))return!1;return!0}function Ut(e,n){let t=e?nh(e):void 0,r=n?nh(n):void 0;if(!t||!r||t.length!=r.length)return!1;let o;for(let i=0;i<t.length;i++)if(o=t[i],!KD(e[o],n[o]))return!1;return!0}function nh(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function KD(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;let t=[...e].sort(),r=[...n].sort();return t.every((o,i)=>r[i]===o)}else return e===n}function JD(e){return e.length>0?e[e.length-1]:null}function Fn(e){return fu(e)?e:ro(e)?G(Promise.resolve(e)):M(e)}var ux={exact:eE,subset:tE},XD={exact:lx,subset:dx,ignored:()=>!0};function $D(e,n,t){return ux[t.paths](e.root,n.root,t.matrixParams)&&XD[t.queryParams](e.queryParams,n.queryParams)&&!(t.fragment==="exact"&&e.fragment!==n.fragment)}function lx(e,n){return Ut(e,n)}function eE(e,n,t){if(!ir(e.segments,n.segments)||!wc(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!e.children[r]||!eE(e.children[r],n.children[r],t))return!1;return!0}function dx(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>KD(e[t],n[t]))}function tE(e,n,t){return nE(e,n,n.segments,t)}function nE(e,n,t,r){if(e.segments.length>t.length){let o=e.segments.slice(0,t.length);return!(!ir(o,t)||n.hasChildren()||!wc(o,t,r))}else if(e.segments.length===t.length){if(!ir(e.segments,t)||!wc(e.segments,t,r))return!1;for(let o in n.children)if(!e.children[o]||!tE(e.children[o],n.children[o],r))return!1;return!0}else{let o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!ir(e.segments,o)||!wc(e.segments,o,r)||!e.children[L]?!1:nE(e.children[L],n,i,r)}}function wc(e,n,t){return n.every((r,o)=>XD[t](e[o].parameters,r.parameters))}var $t=class{root;queryParams;fragment;_queryParamMap;constructor(n=new U([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ar(this.queryParams),this._queryParamMap}toString(){return px.serialize(this)}},U=class{segments;children;parent=null;constructor(n,t){this.segments=n,this.children=t,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ic(this)}},An=class{path;parameters;_parameterMap;constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=ar(this.parameters),this._parameterMap}toString(){return oE(this)}};function fx(e,n){return ir(e,n)&&e.every((t,r)=>Ut(t.parameters,n[r].parameters))}function ir(e,n){return e.length!==n.length?!1:e.every((t,r)=>t.path===n[r].path)}function hx(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===L&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==L&&(t=t.concat(n(o,r)))}),t}var cr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>new On,providedIn:"root"})}return e})(),On=class{parse(n){let t=new oh(n);return new $t(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){let t=`/${Ii(n.root,!0)}`,r=vx(n.queryParams),o=typeof n.fragment=="string"?`#${gx(n.fragment)}`:"";return`${t}${r}${o}`}},px=new On;function Ic(e){return e.segments.map(n=>oE(n)).join("/")}function Ii(e,n){if(!e.hasChildren())return Ic(e);if(n){let t=e.children[L]?Ii(e.children[L],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==L&&r.push(`${o}:${Ii(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}else{let t=hx(e,(r,o)=>o===L?[Ii(e.children[L],!1)]:[`${o}:${Ii(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[L]!=null?`${Ic(e)}/${t[0]}`:`${Ic(e)}/(${t.join("//")})`}}function rE(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dc(e){return rE(e).replace(/%3B/gi,";")}function gx(e){return encodeURI(e)}function rh(e){return rE(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cc(e){return decodeURIComponent(e)}function zD(e){return Cc(e.replace(/\+/g,"%20"))}function oE(e){return`${rh(e.path)}${mx(e.parameters)}`}function mx(e){return Object.entries(e).map(([n,t])=>`;${rh(n)}=${rh(t)}`).join("")}function vx(e){let n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(o=>`${Dc(t)}=${Dc(o)}`).join("&"):`${Dc(t)}=${Dc(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}var yx=/^[^\/()?;#]+/;function Kf(e){let n=e.match(yx);return n?n[0]:""}var Dx=/^[^\/()?;=#]+/;function Ex(e){let n=e.match(Dx);return n?n[0]:""}var wx=/^[^=?&#]+/;function Ix(e){let n=e.match(wx);return n?n[0]:""}var Cx=/^[^&#]+/;function bx(e){let n=e.match(Cx);return n?n[0]:""}var oh=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[L]=new U(n,t)),r}parseSegment(){let n=Kf(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(n),new An(Cc(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let t=Ex(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let o=Kf(this.remaining);o&&(r=o,this.capture(r))}n[Cc(t)]=Cc(r)}parseQueryParam(n){let t=Ix(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){let s=bx(this.remaining);s&&(r=s,this.capture(r))}let o=zD(t),i=zD(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Kf(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new D(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=L);let s=this.parseChildren();t[i]=Object.keys(s).length===1?s[L]:new U([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new D(4011,!1)}};function iE(e){return e.segments.length>0?new U([],{[L]:e}):e}function sE(e){let n={};for(let[r,o]of Object.entries(e.children)){let i=sE(o);if(r===L&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}let t=new U(e.segments,n);return Tx(t)}function Tx(e){if(e.numberOfChildren===1&&e.children[L]){let n=e.children[L];return new U(e.segments.concat(n.segments),n.children)}return e}function kn(e){return e instanceof $t}function aE(e,n,t=null,r=null){let o=cE(e);return uE(o,n,t,r)}function cE(e){let n;function t(i){let s={};for(let c of i.children){let u=t(c);s[c.outlet]=u}let a=new U(i.url,s);return i===e&&(n=a),a}let r=t(e.root),o=iE(r);return n??o}function uE(e,n,t,r){let o=e;for(;o.parent;)o=o.parent;if(n.length===0)return Jf(o,o,o,t,r);let i=_x(n);if(i.toRoot())return Jf(o,o,new U([],{}),t,r);let s=Sx(i,o,e),a=s.processChildren?bi(s.segmentGroup,s.index,i.commands):dE(s.segmentGroup,s.index,i.commands);return Jf(o,s.segmentGroup,a,t,r)}function Tc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function _i(e){return typeof e=="object"&&e!=null&&e.outlets}function Jf(e,n,t,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===n?s=t:s=lE(e,n,t);let a=iE(sE(s));return new $t(a,i,o)}function lE(e,n,t){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===n?r[o]=t:r[o]=lE(i,n,t)}),new U(e.segments,r)}var _c=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&Tc(r[0]))throw new D(4003,!1);let o=r.find(_i);if(o&&o!==JD(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function _x(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new _c(!0,0,e);let n=0,t=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?t=!0:a===".."?n++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new _c(t,n,r)}var fo=class{segmentGroup;processChildren;index;constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}};function Sx(e,n,t){if(e.isAbsolute)return new fo(n,!0,0);if(!t)return new fo(n,!1,NaN);if(t.parent===null)return new fo(t,!0,0);let r=Tc(e.commands[0])?0:1,o=t.segments.length-1+r;return Mx(t,o,e.numberOfDoubleDots)}function Mx(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new D(4005,!1);o=r.segments.length}return new fo(r,!1,o-i)}function xx(e){return _i(e[0])?e[0].outlets:{[L]:e}}function dE(e,n,t){if(e??=new U([],{}),e.segments.length===0&&e.hasChildren())return bi(e,n,t);let r=Nx(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new U(e.segments.slice(0,r.pathIndex),{});return i.children[L]=new U(e.segments.slice(r.pathIndex),e.children),bi(i,0,o)}else return r.match&&o.length===0?new U(e.segments,{}):r.match&&!e.hasChildren()?ih(e,n,t):r.match?bi(e,0,o):ih(e,n,t)}function bi(e,n,t){if(t.length===0)return new U(e.segments,{});{let r=xx(t),o={};if(Object.keys(r).some(i=>i!==L)&&e.children[L]&&e.numberOfChildren===1&&e.children[L].segments.length===0){let i=bi(e.children[L],n,t);return new U(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=dE(e.children[i],n,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new U(e.segments,o)}}function Nx(e,n,t){let r=0,o=n,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=t.length)return i;let s=e.segments[o],a=t[r];if(_i(a))break;let c=`${a}`,u=r<t.length-1?t[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!GD(c,u,s))return i;r+=2}else{if(!GD(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function ih(e,n,t){let r=e.segments.slice(0,n),o=0;for(;o<t.length;){let i=t[o];if(_i(i)){let c=Rx(i.outlets);return new U(r,c)}if(o===0&&Tc(t[0])){let c=e.segments[n];r.push(new An(c.path,qD(t[0]))),o++;continue}let s=_i(i)?i.outlets[L]:`${i}`,a=o<t.length-1?t[o+1]:null;s&&a&&Tc(a)?(r.push(new An(s,qD(a))),o+=2):(r.push(new An(s,{})),o++)}return new U(r,{})}function Rx(e){let n={};return Object.entries(e).forEach(([t,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[t]=ih(new U([],{}),0,r))}),n}function qD(e){let n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function GD(e,n,t){return e==t.path&&Ut(n,t.parameters)}var bc="imperative",fe=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(fe||{}),Ke=class{id;url;constructor(n,t){this.id=n,this.url=t}},Pn=class extends Ke{type=fe.NavigationStart;navigationTrigger;restoredState;constructor(n,t,r="imperative",o=null){super(n,t),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Je=class extends Ke{urlAfterRedirects;type=fe.NavigationEnd;constructor(n,t,r){super(n,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},$e=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}($e||{}),po=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(po||{}),Ht=class extends Ke{reason;code;type=fe.NavigationCancel;constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},zt=class extends Ke{reason;code;type=fe.NavigationSkipped;constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o}},go=class extends Ke{error;target;type=fe.NavigationError;constructor(n,t,r,o){super(n,t),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Si=class extends Ke{urlAfterRedirects;state;type=fe.RoutesRecognized;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sc=class extends Ke{urlAfterRedirects;state;type=fe.GuardsCheckStart;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mc=class extends Ke{urlAfterRedirects;state;shouldActivate;type=fe.GuardsCheckEnd;constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},xc=class extends Ke{urlAfterRedirects;state;type=fe.ResolveStart;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nc=class extends Ke{urlAfterRedirects;state;type=fe.ResolveEnd;constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rc=class{route;type=fe.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Ac=class{route;type=fe.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Oc=class{snapshot;type=fe.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},kc=class{snapshot;type=fe.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pc=class{snapshot;type=fe.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Fc=class{snapshot;type=fe.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mo=class{routerEvent;position;anchor;type=fe.Scroll;constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Mi=class{},vo=class{url;navigationBehaviorOptions;constructor(n,t){this.url=n,this.navigationBehaviorOptions=t}};function Ax(e,n){return e.providers&&!e._injector&&(e._injector=ei(e.providers,n,`Route: ${e.path}`)),e._injector??n}function Ct(e){return e.outlet||L}function Ox(e,n){let t=e.filter(r=>Ct(r)===n);return t.push(...e.filter(r=>Ct(r)!==n)),t}function Pi(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){let t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var Lc=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Pi(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new ur(this.rootInjector)}},ur=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,r){let o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new Lc(this.rootInjector),this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(r){return new(r||e)(I(be))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),jc=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){let t=sh(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){let t=sh(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){let t=ah(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return ah(n,this._root).map(t=>t.value)}};function sh(e,n){if(e===n.value)return n;for(let t of n.children){let r=sh(e,t);if(r)return r}return null}function ah(e,n){if(e===n.value)return[n];for(let t of n.children){let r=ah(e,t);if(r.length)return r.unshift(n),r}return[]}var Qe=class{value;children;constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}};function lo(e){let n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}var xi=class extends jc{snapshot;constructor(n,t){super(n),this.snapshot=t,gh(this,n)}toString(){return this.snapshot.toString()}};function fE(e){let n=kx(e),t=new ye([new An("",{})]),r=new ye({}),o=new ye({}),i=new ye({}),s=new ye(""),a=new ln(t,r,i,s,o,L,e,n.root);return a.snapshot=n.root,new xi(new Qe(a,[]),n)}function kx(e){let n={},t={},r={},o="",i=new sr([],n,r,o,t,L,e,null,{});return new Ni("",new Qe(i,[]))}var ln=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,t,r,o,i,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(A(u=>u[ki]))??M(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(n=>ar(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(n=>ar(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Vc(e,n,t="emptyOnly"){let r,{routeConfig:o}=e;return n!==null&&(t==="always"||o?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:v(v({},n.params),e.params),data:v(v({},n.data),e.data),resolve:v(v(v(v({},e.data),n.data),o?.data),e._resolvedData)}:r={params:v({},e.params),data:v({},e.data),resolve:v(v({},e.data),e._resolvedData??{})},o&&pE(o)&&(r.resolve[ki]=o.title),r}var sr=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ki]}constructor(n,t,r,o,i,s,a,c,u){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ar(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ar(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${t}')`}},Ni=class extends jc{url;constructor(n,t){super(t),this.url=n,gh(this,t)}toString(){return hE(this._root)}};function gh(e,n){n.value._routerState=e,n.children.forEach(t=>gh(e,t))}function hE(e){let n=e.children.length>0?` { ${e.children.map(hE).join(", ")} } `:"";return`${e.value}${n}`}function Xf(e){if(e.snapshot){let n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Ut(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Ut(n.params,t.params)||e.paramsSubject.next(t.params),cx(n.url,t.url)||e.urlSubject.next(t.url),Ut(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function ch(e,n){let t=Ut(e.params,n.params)&&fx(e.url,n.url),r=!e.parent!=!n.parent;return t&&!r&&(!e.parent||ch(e.parent,n.parent))}function pE(e){return typeof e.title=="string"||e.title===null}var gE=new w(""),mh=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=L;activateEvents=new Ae;deactivateEvents=new Ae;attachEvents=new Ae;detachEvents=new Ae;routerOutletData=Sm(void 0);parentContexts=g(ur);location=g(pt);changeDetector=g(Nn);inputBinder=g(Fi,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=t;let o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new uh(t,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Ee({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Lt]})}return e})(),uh=class{route;childContexts;parent;outletData;constructor(n,t,r,o){this.route=n,this.childContexts=t,this.parent=r,this.outletData=o}get(n,t){return n===ln?this.route:n===ur?this.childContexts:n===gE?this.outletData:this.parent.get(n,t)}},Fi=new w(""),vh=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:r}=t,o=_o([r.queryParams,r.params,r.data]).pipe(ie(([i,s,a],c)=>(a=v(v(v({},i),s),a),c===0?M(a):Promise.resolve(a)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(t);return}let s=Py(r.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(t,o)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})(),yh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=ti({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&Mn(0,"router-outlet")},dependencies:[mh],encapsulation:2})}return e})();function Dh(e){let n=e.children&&e.children.map(Dh),t=n?V(v({},e),{children:n}):v({},e);return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==L&&(t.component=yh),t}function Px(e,n,t){let r=Ri(e,n._root,t?t._root:void 0);return new xi(r,n)}function Ri(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){let r=t.value;r._futureSnapshot=n.value;let o=Fx(e,n,t);return new Qe(r,o)}else{if(e.shouldAttach(n.value)){let i=e.retrieve(n.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Ri(e,a)),s}}let r=Lx(n.value),o=n.children.map(i=>Ri(e,i));return new Qe(r,o)}}function Fx(e,n,t){return n.children.map(r=>{for(let o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Ri(e,r,o);return Ri(e,r)})}function Lx(e){return new ln(new ye(e.url),new ye(e.params),new ye(e.queryParams),new ye(e.fragment),new ye(e.data),e.outlet,e.component,e)}var yo=class{redirectTo;navigationBehaviorOptions;constructor(n,t){this.redirectTo=n,this.navigationBehaviorOptions=t}},mE="ngNavigationCancelingError";function Bc(e,n){let{redirectTo:t,navigationBehaviorOptions:r}=kn(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=vE(!1,$e.Redirect);return o.url=t,o.navigationBehaviorOptions=r,o}function vE(e,n){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[mE]=!0,t.cancellationCode=n,t}function jx(e){return yE(e)&&kn(e.url)}function yE(e){return!!e&&e[mE]}var Vx=(e,n,t,r)=>A(o=>(new lh(n,o.targetRouterState,o.currentRouterState,t,r).activate(e),o)),lh=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){let t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Xf(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){let o=lo(t);n.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){let o=n.value,i=t?t.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){let r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=lo(n);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){let r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=lo(n);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){let o=lo(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Fc(i.value.snapshot))}),n.children.length&&this.forwardEvent(new kc(n.value.snapshot))}activateRoutes(n,t,r){let o=n.value,i=t?t.value:null;if(Xf(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Xf(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Uc=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ho=class{component;route;constructor(n,t){this.component=n,this.route=t}};function Bx(e,n,t){let r=e._root,o=n?n._root:null;return Ci(r,o,t,[r.value])}function Ux(e){let n=e.routeConfig?e.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:e,guards:n}}function Eo(e,n){let t=Symbol(),r=n.get(e,t);return r===t?typeof e=="function"&&!Tg(e)?e:n.get(e):r}function Ci(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=lo(n);return e.children.forEach(s=>{Hx(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Ti(a,t.getContext(s),o)),o}function Hx(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=$x(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Uc(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Ci(e,n,a?a.children:null,r,o):Ci(e,n,t,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new ho(a.outlet.component,s))}else s&&Ti(n,a,o),o.canActivateChecks.push(new Uc(r)),i.component?Ci(e,null,a?a.children:null,r,o):Ci(e,null,t,r,o);return o}function $x(e,n,t){if(typeof t=="function")return t(e,n);switch(t){case"pathParamsChange":return!ir(e.url,n.url);case"pathParamsOrQueryParamsChange":return!ir(e.url,n.url)||!Ut(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ch(e,n)||!Ut(e.queryParams,n.queryParams);case"paramsChange":default:return!ch(e,n)}}function Ti(e,n,t){let r=lo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?n?Ti(s,n.children.getContext(i),t):Ti(s,null,t):Ti(s,n,t)}),o.component?n&&n.outlet&&n.outlet.isActivated?t.canDeactivateChecks.push(new ho(n.outlet.component,o)):t.canDeactivateChecks.push(new ho(null,o)):t.canDeactivateChecks.push(new ho(null,o))}function Li(e){return typeof e=="function"}function zx(e){return typeof e=="boolean"}function qx(e){return e&&Li(e.canLoad)}function Gx(e){return e&&Li(e.canActivate)}function Wx(e){return e&&Li(e.canActivateChild)}function Zx(e){return e&&Li(e.canDeactivate)}function Yx(e){return e&&Li(e.canMatch)}function DE(e){return e instanceof st||e?.name==="EmptyError"}var Ec=Symbol("INITIAL_VALUE");function Do(){return ie(e=>_o(e.map(n=>n.pipe(ze(1),cs(Ec)))).pipe(A(n=>{for(let t of n)if(t!==!0){if(t===Ec)return Ec;if(t===!1||Qx(t))return t}return!0}),re(n=>n!==Ec),ze(1)))}function Qx(e){return kn(e)||e instanceof yo}function Kx(e,n){return Q(t=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return s.length===0&&i.length===0?M(V(v({},t),{guardsResult:!0})):Jx(s,r,o,e).pipe(Q(a=>a&&zx(a)?Xx(r,i,e,n):M(a)),A(a=>V(v({},t),{guardsResult:a})))})}function Jx(e,n,t,r){return G(e).pipe(Q(o=>oN(o.component,o.route,t,n,r)),Mt(o=>o!==!0,!0))}function Xx(e,n,t,r){return G(n).pipe(ct(o=>fn(tN(o.route.parent,r),eN(o.route,r),rN(e,o.path,t),nN(e,o.route,t))),Mt(o=>o!==!0,!0))}function eN(e,n){return e!==null&&n&&n(new Pc(e)),M(!0)}function tN(e,n){return e!==null&&n&&n(new Oc(e)),M(!0)}function nN(e,n,t){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return M(!0);let o=r.map(i=>Ds(()=>{let s=Pi(n)??t,a=Eo(i,s),c=Gx(a)?a.canActivate(n,e):Le(s,()=>a(n,e));return Fn(c).pipe(Mt())}));return M(o).pipe(Do())}function rN(e,n,t){let r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>Ux(s)).filter(s=>s!==null).map(s=>Ds(()=>{let a=s.guards.map(c=>{let u=Pi(s.node)??t,l=Eo(c,u),d=Wx(l)?l.canActivateChild(r,e):Le(u,()=>l(r,e));return Fn(d).pipe(Mt())});return M(a).pipe(Do())}));return M(i).pipe(Do())}function oN(e,n,t,r,o){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return M(!0);let s=i.map(a=>{let c=Pi(n)??o,u=Eo(a,c),l=Zx(u)?u.canDeactivate(e,n,t,r):Le(c,()=>u(e,n,t,r));return Fn(l).pipe(Mt())});return M(s).pipe(Do())}function iN(e,n,t,r){let o=n.canLoad;if(o===void 0||o.length===0)return M(!0);let i=o.map(s=>{let a=Eo(s,e),c=qx(a)?a.canLoad(n,t):Le(e,()=>a(n,t));return Fn(c)});return M(i).pipe(Do(),EE(r))}function EE(e){return ru(he(n=>{if(typeof n!="boolean")throw Bc(e,n)}),A(n=>n===!0))}function sN(e,n,t,r){let o=n.canMatch;if(!o||o.length===0)return M(!0);let i=o.map(s=>{let a=Eo(s,e),c=Yx(a)?a.canMatch(n,t):Le(e,()=>a(n,t));return Fn(c)});return M(i).pipe(Do(),EE(r))}var Ai=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Oi=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function uo(e){return hn(new Ai(e))}function aN(e){return hn(new D(4e3,!1))}function cN(e){return hn(vE(!1,$e.GuardRejected))}var dh=class{urlSerializer;urlTree;constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return M(r);if(o.numberOfChildren>1||!o.children[L])return aN(`${n.redirectTo}`);o=o.children[L]}}applyRedirectCommands(n,t,r,o,i){if(typeof t!="string"){let a=t,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,params:f,data:p,title:m}=o,y=Le(i,()=>a({params:f,data:p,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:h,title:m}));if(y instanceof $t)throw new Oi(y);t=y}let s=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r);if(t[0]==="/")throw new Oi(s);return s}applyRedirectCreateUrlTree(n,t,r,o){let i=this.createSegmentGroup(n,t.root,r,o);return new $t(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){let r={};return Object.entries(n).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){let i=this.createSegments(n,t.segments,r,o),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,o)}),new U(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path[0]===":"?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){let o=r[t.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(n,t){let r=0;for(let o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}},fh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function uN(e,n,t,r,o){let i=wE(e,n,t);return i.matched?(r=Ax(n,r),sN(r,n,t,o).pipe(A(s=>s===!0?i:v({},fh)))):M(i)}function wE(e,n,t){if(n.path==="**")return lN(t);if(n.path==="")return n.pathMatch==="full"&&(e.hasChildren()||t.length>0)?v({},fh):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let o=(n.matcher||QD)(t,e,n);if(!o)return v({},fh);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?v(v({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function lN(e){return{matched:!0,parameters:e.length>0?JD(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function WD(e,n,t,r){return t.length>0&&hN(e,t,r)?{segmentGroup:new U(n,fN(r,new U(t,e.children))),slicedSegments:[]}:t.length===0&&pN(e,t,r)?{segmentGroup:new U(e.segments,dN(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new U(e.segments,e.children),slicedSegments:t}}function dN(e,n,t,r){let o={};for(let i of t)if($c(e,n,i)&&!r[Ct(i)]){let s=new U([],{});o[Ct(i)]=s}return v(v({},r),o)}function fN(e,n){let t={};t[L]=n;for(let r of e)if(r.path===""&&Ct(r)!==L){let o=new U([],{});t[Ct(r)]=o}return t}function hN(e,n,t){return t.some(r=>$c(e,n,r)&&Ct(r)!==L)}function pN(e,n,t){return t.some(r=>$c(e,n,r))}function $c(e,n,t){return(e.hasChildren()||n.length>0)&&t.pathMatch==="full"?!1:t.path===""}function gN(e,n,t){return n.length===0&&!e.children[t]}var hh=class{};function mN(e,n,t,r,o,i,s="emptyOnly"){return new ph(e,n,t,r,o,s,i).recognize()}var vN=31,ph=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,t,r,o,i,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new dh(this.urlSerializer,this.urlTree)}noMatchError(n){return new D(4002,`'${n.segmentGroup}'`)}recognize(){let n=WD(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(A(({children:t,rootSnapshot:r})=>{let o=new Qe(r,t),i=new Ni("",o),s=aE(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(n){let t=new sr([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),L,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,L,t).pipe(A(r=>({children:r,rootSnapshot:t})),et(r=>{if(r instanceof Oi)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Ai?this.noMatchError(r):r}))}processSegmentGroup(n,t,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,t,r,i):this.processSegment(n,t,r,r.segments,o,!0,i).pipe(A(s=>s instanceof Qe?[s]:[]))}processChildren(n,t,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return G(i).pipe(ct(s=>{let a=r.children[s],c=Ox(t,s);return this.processSegmentGroup(n,c,a,s,o)}),Is((s,a)=>(s.push(...a),s)),pn(null),mu(),Q(s=>{if(s===null)return uo(r);let a=IE(s);return yN(a),M(a)}))}processSegment(n,t,r,o,i,s,a){return G(t).pipe(ct(c=>this.processSegmentAgainstRoute(c._injector??n,t,c,r,o,i,s,a).pipe(et(u=>{if(u instanceof Ai)return M(null);throw u}))),Mt(c=>!!c),et(c=>{if(DE(c))return gN(r,o,i)?M(new hh):uo(r);throw c}))}processSegmentAgainstRoute(n,t,r,o,i,s,a,c){return Ct(r)!==s&&(s===L||!$c(o,i,r))?uo(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,s,c):uo(o)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=wE(t,o,i);if(!c)return uo(t);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>vN&&(this.allowRedirects=!1));let f=new sr(i,u,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,ZD(o),Ct(o),o.component??o._loadedComponent??null,o,YD(o)),p=Vc(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,n);return this.applyRedirects.lineralizeSegments(o,m).pipe(Q(y=>this.processSegment(n,r,t,y.concat(h),s,!1,a)))}matchSegmentAgainstRoute(n,t,r,o,i,s){let a=uN(t,r,o,n,this.urlSerializer);return r.path==="**"&&(t.children={}),a.pipe(ie(c=>c.matched?(n=r._injector??n,this.getChildConfig(n,r,o).pipe(ie(({routes:u})=>{let l=r._loadedInjector??n,{parameters:d,consumedSegments:h,remainingSegments:f}=c,p=new sr(h,d,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,ZD(r),Ct(r),r.component??r._loadedComponent??null,r,YD(r)),m=Vc(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);let{segmentGroup:y,slicedSegments:_}=WD(t,h,f,u);if(_.length===0&&y.hasChildren())return this.processChildren(l,u,y,p).pipe(A(ne=>new Qe(p,ne)));if(u.length===0&&_.length===0)return M(new Qe(p,[]));let $=Ct(r)===i;return this.processSegment(l,u,y,_,$?L:i,!0,p).pipe(A(ne=>new Qe(p,ne instanceof Qe?[ne]:[])))}))):uo(t)))}getChildConfig(n,t,r){return t.children?M({routes:t.children,injector:n}):t.loadChildren?t._loadedRoutes!==void 0?M({routes:t._loadedRoutes,injector:t._loadedInjector}):iN(n,t,r,this.urlSerializer).pipe(Q(o=>o?this.configLoader.loadChildren(n,t).pipe(he(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):cN(t))):M({routes:[],injector:n})}};function yN(e){e.sort((n,t)=>n.value.outlet===L?-1:t.value.outlet===L?1:n.value.outlet.localeCompare(t.value.outlet))}function DN(e){let n=e.value.routeConfig;return n&&n.path===""}function IE(e){let n=[],t=new Set;for(let r of e){if(!DN(r)){n.push(r);continue}let o=n.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),t.add(o)):n.push(r)}for(let r of t){let o=IE(r.children);n.push(new Qe(r.value,o))}return n.filter(r=>!t.has(r))}function ZD(e){return e.data||{}}function YD(e){return e.resolve||{}}function EN(e,n,t,r,o,i){return Q(s=>mN(e,n,t,r,s.extractedUrl,o,i).pipe(A(({state:a,tree:c})=>V(v({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function wN(e,n){return Q(t=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return M(t);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of CE(c))s.add(u);let a=0;return G(s).pipe(ct(c=>i.has(c)?IN(c,r,e,n):(c.data=Vc(c,c.parent,e).resolve,M(void 0))),he(()=>a++),wr(1),Q(c=>a===s.size?M(t):Ie))})}function CE(e){let n=e.children.map(t=>CE(t)).flat();return[e,...n]}function IN(e,n,t,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!pE(o)&&(i[ki]=o.title),CN(i,e,n,r).pipe(A(s=>(e._resolvedData=s,e.data=Vc(e,e.parent,t).resolve,null)))}function CN(e,n,t,r){let o=nh(e);if(o.length===0)return M({});let i={};return G(o).pipe(Q(s=>bN(e[s],n,t,r).pipe(Mt(),he(a=>{if(a instanceof yo)throw Bc(new On,a);i[s]=a}))),wr(1),A(()=>i),et(s=>DE(s)?Ie:hn(s)))}function bN(e,n,t,r){let o=Pi(n)??r,i=Eo(e,o),s=i.resolve?i.resolve(n,t):Le(o,()=>i(n,t));return Fn(s)}function eh(e){return ie(n=>{let t=e(n);return t?G(t).pipe(A(()=>n)):M(n)})}var Eh=(()=>{class e{buildTitle(t){let r,o=t.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===L);return r}getResolvedTitleForRoute(t){return t.data[ki]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(bE),providedIn:"root"})}return e})(),bE=(()=>{class e extends Eh{title;constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(I(UD))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),lr=new w("",{providedIn:"root",factory:()=>({})}),wo=new w(""),zc=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(_y);loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return M(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=Fn(t.loadComponent()).pipe(A(_E),he(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),Un(()=>{this.componentLoaders.delete(t)})),o=new yr(r,()=>new B).pipe(vr());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return M({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=TE(r,this.compiler,t,this.onLoadEndListener).pipe(Un(()=>{this.childrenLoaders.delete(r)})),s=new yr(i,()=>new B).pipe(vr());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TE(e,n,t,r){return Fn(e.loadChildren()).pipe(A(_E),Q(o=>o instanceof rf||Array.isArray(o)?M(o):G(n.compileModuleAsync(o))),A(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(t).injector,s=i.get(wo,[],{optional:!0,self:!0}).flat()),{routes:s.map(Dh),injector:i}}))}function TN(e){return e&&typeof e=="object"&&"default"in e}function _E(e){return TN(e)?e.default:e}var qc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(_N),providedIn:"root"})}return e})(),_N=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),wh=new w(""),Ih=new w("");function SE(e,n,t){let r=e.get(Ih),o=e.get(X);return e.get(H).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u}),a=o.startViewTransition(()=>(i(),SN(e))),{onViewTransitionCreated:c}=r;return c&&Le(e,()=>c({transition:a,from:n,to:t})),s})}function SN(e){return new Promise(n=>{Fd({read:()=>setTimeout(n)},{injector:e})})}var Ch=new w(""),Gc=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new B;transitionAbortSubject=new B;configLoader=g(zc);environmentInjector=g(be);destroyRef=g(Jt);urlSerializer=g(cr);rootContexts=g(ur);location=g(Rn);inputBindingEnabled=g(Fi,{optional:!0})!==null;titleStrategy=g(Eh);options=g(lr,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(qc);createViewTransition=g(wh,{optional:!0});navigationErrorHandler=g(Ch,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>M(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=o=>this.events.next(new Rc(o)),r=o=>this.events.next(new Ac(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(V(v({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(t){return this.transitions=new ye(null),this.transitions.pipe(re(r=>r!==null),ie(r=>{let o=!1,i=!1;return M(r).pipe(ie(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",$e.SupersededByNewNavigation),Ie;this.currentTransition=r,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?V(v({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=s.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!a&&c!=="reload"){let u="";return this.events.next(new zt(s.id,this.urlSerializer.serialize(s.rawUrl),u,po.IgnoredSameUrlNavigation)),s.resolve(!1),Ie}if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return M(s).pipe(ie(u=>(this.events.next(new Pn(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?Ie:Promise.resolve(u))),EN(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),he(u=>{r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=V(v({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let l=new Si(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:u,extractedUrl:l,source:d,restoredState:h,extras:f}=s,p=new Pn(u,this.urlSerializer.serialize(l),d,h);this.events.next(p);let m=fE(this.rootComponentType).snapshot;return this.currentTransition=r=V(v({},s),{targetSnapshot:m,urlAfterRedirects:l,extras:V(v({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,M(r)}else{let u="";return this.events.next(new zt(s.id,this.urlSerializer.serialize(s.extractedUrl),u,po.IgnoredByUrlHandlingStrategy)),s.resolve(!1),Ie}}),he(s=>{let a=new Sc(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),A(s=>(this.currentTransition=r=V(v({},s),{guards:Bx(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r)),Kx(this.environmentInjector,s=>this.events.next(s)),he(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Bc(this.urlSerializer,s.guardsResult);let a=new Mc(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),re(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",$e.GuardRejected),!1)),eh(s=>{if(s.guards.canActivateChecks.length!==0)return M(s).pipe(he(a=>{let c=new xc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),ie(a=>{let c=!1;return M(a).pipe(wN(this.paramsInheritanceStrategy,this.environmentInjector),he({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(a,"",$e.NoDataFromResolver)}}))}),he(a=>{let c=new Nc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),eh(s=>{let a=c=>{let u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(he(l=>{c.component=l}),A(()=>{})));for(let l of c.children)u.push(...a(l));return u};return _o(a(s.targetSnapshot.root)).pipe(pn(null),ze(1))}),eh(()=>this.afterPreactivation()),ie(()=>{let{currentSnapshot:s,targetSnapshot:a}=r,c=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return c?G(c).pipe(A(()=>r)):M(r)}),A(s=>{let a=Px(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=V(v({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),he(()=>{this.events.next(new Mi)}),Vx(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),ze(1),he({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Je(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),us(this.transitionAbortSubject.pipe(he(s=>{throw s}))),Un(()=>{!o&&!i&&this.cancelNavigationTransition(r,"",$e.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),et(s=>{if(this.destroyed)return r.resolve(!1),Ie;if(i=!0,yE(s))this.events.next(new Ht(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),jx(s)?this.events.next(new vo(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let a=new go(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let c=Le(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(c instanceof yo){let{message:u,cancellationCode:l}=Bc(this.urlSerializer,c);this.events.next(new Ht(r.id,this.urlSerializer.serialize(r.extractedUrl),u,l)),this.events.next(new vo(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return Ie}))}))}cancelNavigationTransition(t,r,o){let i=new Ht(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return t.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function MN(e){return e!==bc}var ME=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(xN),providedIn:"root"})}return e})(),Hc=class{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}},xN=(()=>{class e extends Hc{static \u0275fac=(()=>{let t;return function(o){return(t||(t=_d(e)))(o||e)}})();static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xE=(()=>{class e{urlSerializer=g(cr);options=g(lr,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(Rn);urlHandlingStrategy=g(qc);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new $t;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:r,targetBrowserUrl:o}){let i=t!==void 0?this.urlHandlingStrategy.merge(t,r):r,s=o??i;return s instanceof $t?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:r,initialUrl:o}){r&&t?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=t):this.rawUrlTree=o}routerState=fE(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:()=>g(NN),providedIn:"root"})}return e})(),NN=(()=>{class e extends xE{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{t(r.url,r.state,"popstate")})})}handleRouterEvent(t,r){t instanceof Pn?this.updateStateMemento():t instanceof zt?this.commitTransition(r):t instanceof Si?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof Mi?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):t instanceof Ht&&(t.code===$e.GuardRejected||t.code===$e.NoDataFromResolver)?this.restoreHistory(r):t instanceof go?this.restoreHistory(r,!0):t instanceof Je&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(t)||i){let a=this.browserPageId,c=v(v({},s),this.generateNgRouterState(o,a));this.location.replaceState(t,"",c)}else{let a=v(v({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(t,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===t.finalUrl&&i===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=_d(e)))(o||e)}})();static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wc(e,n){e.events.pipe(re(t=>t instanceof Je||t instanceof Ht||t instanceof go||t instanceof zt),A(t=>t instanceof Je||t instanceof zt?0:(t instanceof Ht?t.code===$e.Redirect||t.code===$e.SupersededByNewNavigation:!1)?2:1),re(t=>t!==2),ze(1)).subscribe(()=>{n()})}var RN={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},AN={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},rt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(af);stateManager=g(xE);options=g(lr,{optional:!0})||{};pendingTasks=g(Xt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(Gc);urlSerializer=g(cr);location=g(Rn);urlHandlingStrategy=g(qc);_events=new B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(ME);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(wo,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(Fi,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Y;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Ht&&r.code!==$e.Redirect&&r.code!==$e.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Je)this.navigated=!0;else if(r instanceof vo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=v({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||MN(o.source)},s);this.scheduleNavigation(a,bc,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}kN(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),bc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r,o)=>{this.navigateToSyncWithBrowser(t,o,r)})}navigateToSyncWithBrowser(t,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=v({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Dh),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=v(v({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=cE(h)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return uE(d,t,l,u??null)}navigateByUrl(t,r={skipLocationChange:!1}){let o=kn(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,bc,null,r)}navigate(t,r={skipLocationChange:!1}){return ON(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let o;if(r===!0?o=v({},RN):r===!1?o=v({},AN):o=r,kn(t))return $D(this.currentUrlTree,t,o);let i=this.parseUrl(t);return $D(this.currentUrlTree,i,o)}removeEmptyProps(t){return Object.entries(t).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return Wc(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ON(e){for(let n=0;n<e.length;n++)if(e[n]==null)throw new D(4008,!1)}function kN(e){return!(e instanceof Mi)&&!(e instanceof vo)}var Zc=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new B;constructor(t,r,o,i,s,a){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=t.events.subscribe(u=>{u instanceof Je&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(kn(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(t!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let r=this.href===null?null:rv(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return this.routerLinkInput===null?null:kn(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(R(rt),R(ln),Aa("tabindex"),R(bn),R(Ge),R(Dt))};static \u0275dir=Ee({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&xn("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&_n("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",cn],skipLocationChange:[2,"skipLocationChange","skipLocationChange",cn],replaceUrl:[2,"replaceUrl","replaceUrl",cn],routerLink:"routerLink"},features:[Lt]})}return e})(),PN=(()=>{class e{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Ae;constructor(t,r,o,i,s){this.router=t,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof Je&&this.update()})}ngAfterContentInit(){M(this.links.changes,M(null)).pipe(Tt()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=G(t).pipe(Tt()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){let r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let t=this.hasActiveLinks();this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){let r=FN(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?t.isActive(i,r):!1}}hasActiveLinks(){let t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static \u0275fac=function(r){return new(r||e)(R(rt),R(Ge),R(bn),R(Nn),R(Zc,8))};static \u0275dir=Ee({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&vy(i,Zc,5),r&2){let s;yy(s=Dy())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Lt]})}return e})();function FN(e){return!!e.paths}var ji=class{};var NE=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,r,o,i){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=i}setUpPreloading(){this.subscription=this.router.events.pipe(re(t=>t instanceof Je),ct(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=ei(i.providers,t,`Route: ${i.path}`));let s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return G(o).pipe(Tt())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(t,r):o=M(null);let i=o.pipe(Q(s=>s===null?M(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return G([i,s]).pipe(Tt())}else return i})}static \u0275fac=function(r){return new(r||e)(I(rt),I(be),I(ji),I(zc))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),RE=new w(""),LN=(()=>{class e{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Pn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Je?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof zt&&t.code===po.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof mo&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new mo(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Av()};static \u0275prov=E({token:e,factory:e.\u0275fac})}return e})();function jN(e){return e.routerState.root}function Vi(e,n){return{\u0275kind:e,\u0275providers:n}}function VN(){let e=g(oe);return n=>{let t=e.get(qe);if(n!==t.components[0])return;let r=e.get(rt),o=e.get(AE);e.get(Th)===1&&r.initialNavigation(),e.get(PE,null,j.Optional)?.setUpPreloading(),e.get(RE,null,j.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var AE=new w("",{factory:()=>new B}),Th=new w("",{providedIn:"root",factory:()=>1});function OE(){let e=[{provide:Th,useValue:0},df(()=>{let n=g(oe);return n.get(Tf,Promise.resolve()).then(()=>new Promise(r=>{let o=n.get(rt),i=n.get(AE);Wc(o,()=>{r(!0)}),n.get(Gc).afterPreactivation=()=>(r(!0),i.closed?M(void 0):i),o.initialNavigation()}))})];return Vi(2,e)}function kE(){let e=[df(()=>{g(rt).setUpLocationChangeListener()}),{provide:Th,useValue:2}];return Vi(3,e)}var PE=new w("");function FE(e){return Vi(0,[{provide:PE,useExisting:NE},{provide:ji,useExisting:e}])}function LE(){return Vi(8,[vh,{provide:Fi,useExisting:vh}])}function jE(e){en("NgRouterViewTransitions");let n=[{provide:wh,useValue:SE},{provide:Ih,useValue:v({skipNextTransition:!!e?.skipInitialTransition},e)}];return Vi(9,n)}var VE=[Rn,{provide:cr,useClass:On},rt,ur,{provide:ln,useFactory:jN,deps:[rt]},zc,[]],BN=(()=>{class e{constructor(){}static forRoot(t,r){return{ngModule:e,providers:[VE,[],{provide:wo,multi:!0,useValue:t},[],r?.errorHandler?{provide:Ch,useValue:r.errorHandler}:[],{provide:lr,useValue:r||{}},r?.useHash?HN():$N(),UN(),r?.preloadingStrategy?FE(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?zN(r):[],r?.bindToComponentInputs?LE().\u0275providers:[],r?.enableViewTransitions?jE().\u0275providers:[],qN()]}}static forChild(t){return{ngModule:e,providers:[{provide:wo,multi:!0,useValue:t}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=gt({type:e});static \u0275inj=ht({})}return e})();function UN(){return{provide:RE,useFactory:()=>{let e=g(DD),n=g(H),t=g(lr),r=g(Gc),o=g(cr);return t.scrollOffset&&e.setOffset(t.scrollOffset),new LN(o,r,e,n,t)}}}function HN(){return{provide:Dt,useClass:Pf}}function $N(){return{provide:Dt,useClass:Za}}function zN(e){return[e.initialNavigation==="disabled"?kE().\u0275providers:[],e.initialNavigation==="enabledBlocking"?OE().\u0275providers:[]]}var bh=new w("");function qN(){return[{provide:bh,useFactory:VN},{provide:ff,multi:!0,useExisting:bh}]}var bt=function(e){return e[e.State=0]="State",e[e.Transition=1]="Transition",e[e.Sequence=2]="Sequence",e[e.Group=3]="Group",e[e.Animate=4]="Animate",e[e.Keyframes=5]="Keyframes",e[e.Style=6]="Style",e[e.Trigger=7]="Trigger",e[e.Reference=8]="Reference",e[e.AnimateChild=9]="AnimateChild",e[e.AnimateRef=10]="AnimateRef",e[e.Query=11]="Query",e[e.Stagger=12]="Stagger",e}(bt||{}),WN="*";function Mh(e,n){return{type:bt.Trigger,name:e,definitions:n,options:{}}}function Yc(e,n=null){return{type:bt.Animate,styles:n,timings:e}}function U$(e,n=null){return{type:bt.Sequence,steps:e,options:n}}function Bi(e){return{type:bt.Style,styles:e,offset:null}}function Ui(e,n,t){return{type:bt.State,name:e,styles:n,options:t}}function ZN(e){return{type:bt.Keyframes,steps:e}}function Qc(e,n,t=null){return{type:bt.Transition,expr:e,animation:n,options:t}}function YN(e,n=null){return{type:bt.Reference,animation:e,options:n}}function QN(e,n=null){return{type:bt.AnimateRef,animation:e,options:n}}var _h=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,t=0){this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let t=n=="start"?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}},Sh=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let t=0,r=0,o=0,i=this.players.length;i==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==i&&this._onFinish()}),s.onDestroy(()=>{++r==i&&this._onDestroy()}),s.onStart(()=>{++o==i&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let t=n*this.totalTime;this.players.forEach(r=>{let o=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(o)})}getPosition(){let n=this.players.reduce((t,r)=>t===null||r.totalTime>t.totalTime?r:t,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let t=n=="start"?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}},KN="!";var BE=["toast-component",""];function JN(e,n){if(e&1){let t=mf();Ze(0,"button",5),xn("click",function(){vd(t);let o=Ye();return yd(o.remove())}),Ze(1,"span",6),sn(2,"\xD7"),mt()()}}function XN(e,n){if(e&1&&(ri(0),sn(1),oi()),e&2){let t=Ye(2);de(),an("[",t.duplicatesCount+1,"]")}}function eR(e,n){if(e&1&&(Ze(0,"div"),sn(1),no(2,XN,2,1,"ng-container",4),mt()),e&2){let t=Ye();on(t.options.titleClass),_n("aria-label",t.title),de(),an(" ",t.title," "),de(),Me("ngIf",t.duplicatesCount)}}function tR(e,n){if(e&1&&Mn(0,"div",7),e&2){let t=Ye();on(t.options.messageClass),Me("innerHTML",t.message,Vd)}}function nR(e,n){if(e&1&&(Ze(0,"div",8),sn(1),mt()),e&2){let t=Ye();on(t.options.messageClass),_n("aria-label",t.message),de(),an(" ",t.message," ")}}function rR(e,n){if(e&1&&(Ze(0,"div"),Mn(1,"div",9),mt()),e&2){let t=Ye();de(),Sn("width",t.width()+"%")}}function oR(e,n){if(e&1){let t=mf();Ze(0,"button",5),xn("click",function(){vd(t);let o=Ye();return yd(o.remove())}),Ze(1,"span",6),sn(2,"\xD7"),mt()()}}function iR(e,n){if(e&1&&(ri(0),sn(1),oi()),e&2){let t=Ye(2);de(),an("[",t.duplicatesCount+1,"]")}}function sR(e,n){if(e&1&&(Ze(0,"div"),sn(1),no(2,iR,2,1,"ng-container",4),mt()),e&2){let t=Ye();on(t.options.titleClass),_n("aria-label",t.title),de(),an(" ",t.title," "),de(),Me("ngIf",t.duplicatesCount)}}function aR(e,n){if(e&1&&Mn(0,"div",7),e&2){let t=Ye();on(t.options.messageClass),Me("innerHTML",t.message,Vd)}}function cR(e,n){if(e&1&&(Ze(0,"div",8),sn(1),mt()),e&2){let t=Ye();on(t.options.messageClass),_n("aria-label",t.message),de(),an(" ",t.message," ")}}function uR(e,n){if(e&1&&(Ze(0,"div"),Mn(1,"div",9),mt()),e&2){let t=Ye();de(),Sn("width",t.width()+"%")}}var xh=class{_attachedHost;component;viewContainerRef;injector;constructor(n,t){this.component=n,this.injector=t}attach(n,t){return this._attachedHost=n,n.attach(this,t)}detach(){let n=this._attachedHost;if(n)return this._attachedHost=void 0,n.detach()}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Nh=class{_attachedPortal;_disposeFn;attach(n,t){return this._attachedPortal=n,this.attachComponentPortal(n,t)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(n){this._disposeFn=n}},Rh=class{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new B;_activate=new B;_manualClose=new B;_resetTimeout=new B;_countDuplicate=new B;constructor(n){this._overlayRef=n}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(n,t){n&&this._resetTimeout.next(),t&&this._countDuplicate.next(++this.duplicatesCount)}},Io=class{toastId;config;message;title;toastType;toastRef;_onTap=new B;_onAction=new B;constructor(n,t,r,o,i,s){this.toastId=n,this.config=t,this.message=r,this.title=o,this.toastType=i,this.toastRef=s,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(n){this._onAction.next(n)}onAction(){return this._onAction.asObservable()}},UE={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},HE=new w("ToastConfig"),Ah=class extends Nh{_hostDomElement;_componentFactoryResolver;_appRef;constructor(n,t,r){super(),this._hostDomElement=n,this._componentFactoryResolver=t,this._appRef=r}attachComponentPortal(n,t){let r=this._componentFactoryResolver.resolveComponentFactory(n.component),o;return o=r.create(n.injector),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.detachView(o.hostView),o.destroy()}),t?this._hostDomElement.insertBefore(this._getComponentRootNode(o),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(o)),o}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},lR=(()=>{class e{_document=g(X);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t=this._document.createElement("div");t.classList.add("overlay-container"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),this._containerElement=t}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Oh=class{_portalHost;constructor(n){this._portalHost=n}attach(n,t=!0){return this._portalHost.attach(n,t)}detach(){return this._portalHost.detach()}},dR=(()=>{class e{_overlayContainer=g(lR);_componentFactoryResolver=g(to);_appRef=g(qe);_document=g(X);_paneElements=new Map;create(t,r){return this._createOverlayRef(this.getPaneElement(t,r))}getPaneElement(t="",r){return this._paneElements.get(r)||this._paneElements.set(r,{}),this._paneElements.get(r)[t]||(this._paneElements.get(r)[t]=this._createPaneElement(t,r)),this._paneElements.get(r)[t]}_createPaneElement(t,r){let o=this._document.createElement("div");return o.id="toast-container",o.classList.add(t),o.classList.add("toast-container"),r?r.getContainerElement().appendChild(o):this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalHost(t){return new Ah(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new Oh(this._createPortalHost(t))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Kc=(()=>{class e{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(t,r,o,i,s){this.overlay=r,this._injector=o,this.sanitizer=i,this.ngZone=s,this.toastrConfig=v(v({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=v(v({},t.default.iconClasses),t.config.iconClasses))}show(t,r,o={},i=""){return this._preBuildNotification(i,t,r,this.applyConfig(o))}success(t,r,o={}){let i=this.toastrConfig.iconClasses.success||"";return this._preBuildNotification(i,t,r,this.applyConfig(o))}error(t,r,o={}){let i=this.toastrConfig.iconClasses.error||"";return this._preBuildNotification(i,t,r,this.applyConfig(o))}info(t,r,o={}){let i=this.toastrConfig.iconClasses.info||"";return this._preBuildNotification(i,t,r,this.applyConfig(o))}warning(t,r,o={}){let i=this.toastrConfig.iconClasses.warning||"";return this._preBuildNotification(i,t,r,this.applyConfig(o))}clear(t){for(let r of this.toasts)if(t!==void 0){if(r.toastId===t){r.toastRef.manualClose();return}}else r.toastRef.manualClose()}remove(t){let r=this._findToast(t);if(!r||(r.activeToast.toastRef.close(),this.toasts.splice(r.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){let o=this.toasts[this.currentlyActive].toastRef;o.isInactive()||(this.currentlyActive=this.currentlyActive+1,o.activate())}return!0}findDuplicate(t="",r="",o,i){let{includeTitleDuplicates:s}=this.toastrConfig;for(let a of this.toasts){let c=s&&a.title===t;if((!s||c)&&a.message===r)return a.toastRef.onDuplicate(o,i),a}return null}applyConfig(t={}){return v(v({},this.toastrConfig),t)}_findToast(t){for(let r=0;r<this.toasts.length;r++)if(this.toasts[r].toastId===t)return{index:r,activeToast:this.toasts[r]};return null}_preBuildNotification(t,r,o,i){return i.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,r,o,i)):this._buildNotification(t,r,o,i)}_buildNotification(t,r,o,i){if(!i.toastComponent)throw new Error("toastComponent required");let s=this.findDuplicate(o,r,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&o||r)&&this.toastrConfig.preventDuplicates&&s!==null)return s;this.previousToastMessage=r;let a=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(a=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));let c=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let u=r;r&&i.enableHtml&&(u=this.sanitizer.sanitize(We.HTML,r));let l=new Rh(c),d=new Io(this.index,i,u,o,t,l),h=[{provide:Io,useValue:d}],f=oe.create({providers:h,parent:this._injector}),p=new xh(i.toastComponent,f),m=c.attach(p,i.newestOnTop);l.componentInstance=m.instance;let y={toastId:this.index,title:o||"",message:r||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:d.onTap(),onAction:d.onAction(),portal:m};return a||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{y.toastRef.activate()})),this.toasts.push(y),y}static \u0275fac=function(r){return new(r||e)(I(HE),I(dR),I(oe),I(Qf),I(H))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fR=(()=>{class e{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=Qr(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if(this.state().value==="inactive")return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,o){this.toastrService=t,this.toastPackage=r,this.ngZone=o,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(i=>{this.duplicatesCount=i}),this.state=Qr({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(t=>V(v({},t),{value:"active"})),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),r=this.hideTime-t;this.width.set(r/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(o=>100-o),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(t=>V(v({},t),{value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){this.state().value!=="removed"&&(clearTimeout(this.timeout),this.state.update(t=>V(v({},t),{value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){this.state().value!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state().value!=="removed"&&this.options.disableTimeOut!=="extendedTimeOut"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state().value==="removed"||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),r)):this.timeout=setTimeout(()=>t(),r)}outsideInterval(t,r){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),r)):this.intervalId=setInterval(()=>t(),r)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}static \u0275fac=function(r){return new(r||e)(R(Kc),R(Io),R(H))};static \u0275cmp=ti({type:e,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(r,o){r&1&&xn("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),r&2&&(vf("@flyInOut",o._state),on(o.toastClasses),Sn("display",o.displayStyle))},attrs:BE,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,o){r&1&&no(0,JN,3,0,"button",0)(1,eR,3,5,"div",1)(2,tR,1,3,"div",2)(3,nR,2,4,"div",3)(4,rR,2,2,"div",4),r&2&&(Me("ngIf",o.options.closeButton),de(),Me("ngIf",o.title),de(),Me("ngIf",o.message&&o.options.enableHtml),de(),Me("ngIf",o.message&&!o.options.enableHtml),de(),Me("ngIf",o.options.progressBar))},dependencies:[ic],encapsulation:2,data:{animation:[Mh("flyInOut",[Ui("inactive",Bi({opacity:0})),Ui("active",Bi({opacity:1})),Ui("removed",Bi({opacity:0})),Qc("inactive => active",Yc("{{ easeTime }}ms {{ easing }}")),Qc("active => removed",Yc("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return e})(),hR=V(v({},UE),{toastComponent:fR}),pR=(e={})=>tr([{provide:HE,useValue:{default:hR,config:e}}]),az=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[pR(t)]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=gt({type:e});static \u0275inj=ht({})}return e})();var gR=(()=>{class e{toastrService;toastPackage;appRef;message;title;options;duplicatesCount;originalTimeout;width=Qr(-1);toastClasses="";get displayStyle(){return this.state()==="inactive"?"none":null}state=Qr("inactive");timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(t,r,o){this.toastrService=t,this.toastPackage=r,this.appRef=o,this.message=r.message,this.title=r.title,this.options=r.config,this.originalTimeout=r.config.timeOut,this.toastClasses=`${r.toastType} ${r.config.toastClass}`,this.sub=r.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=r.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=r.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=r.toastRef.countDuplicate().subscribe(i=>{this.duplicatesCount=i})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.set("active"),!(this.options.disableTimeOut===!0||this.options.disableTimeOut==="timeOut")&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=new Date().getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(this.width()===0||this.width()===100||!this.options.timeOut)return;let t=new Date().getTime(),r=this.hideTime-t;this.width.set(r/this.options.timeOut*100),this.options.progressAnimation==="increasing"&&this.width.update(o=>100-o),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.set("active"),this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=new Date().getTime()+(this.originalTimeout||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.state.set("removed"),this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){this.state()!=="removed"&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){this.state()!=="removed"&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){this.options.disableTimeOut===!0||this.options.disableTimeOut==="extendedTimeOut"||this.options.extendedTimeOut===0||this.state()==="removed"||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=new Date().getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}static \u0275fac=function(r){return new(r||e)(R(Kc),R(Io),R(qe))};static \u0275cmp=ti({type:e,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(r,o){r&1&&xn("click",function(){return o.tapToast()})("mouseenter",function(){return o.stickAround()})("mouseleave",function(){return o.delayedHideToast()}),r&2&&(on(o.toastClasses),Sn("display",o.displayStyle))},attrs:BE,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(r,o){r&1&&no(0,oR,3,0,"button",0)(1,sR,3,5,"div",1)(2,aR,1,3,"div",2)(3,cR,2,4,"div",3)(4,uR,2,2,"div",4),r&2&&(Me("ngIf",o.options.closeButton),de(),Me("ngIf",o.title),de(),Me("ngIf",o.message&&o.options.enableHtml),de(),Me("ngIf",o.message&&!o.options.enableHtml),de(),Me("ngIf",o.options.progressBar))},dependencies:[ic],encapsulation:2,changeDetection:0})}return e})(),cz=V(v({},UE),{toastComponent:gR});var $E=class e{constructor(n,t,r){this.http=n;this.toastr=t;this.router=r}PostToUrlEncode(n,t,r=1e5){let o=new me;return o=o.set("Content-Type","application/x-www-form-urlencoded"),new x(i=>{this.http.post(n,t,{headers:o}).pipe(at(r)).subscribe(s=>{i.next(s),i.complete()})})}GetText(n=1e5){let t=localStorage.getItem("Token"),o={responseType:"text",headers:new me({Authorization:"Bearer "+t})};return new x(i=>{this.http.get("/API/Token/GetZendeskJWT",o).pipe(at(n)).subscribe(s=>{i.next(s),i.complete()})})}POSText(n,t,r=1e5){let o=localStorage.getItem("Token"),s={responseType:"text",headers:new me({"Content-Type":"application/json","Cache-Control":"no-cache",Authorization:"Bearer "+o})};return new x(a=>{this.http.post(n,t,s).pipe(at(r)).subscribe(c=>{a.next(c),a.complete()})})}get(n,t=[],r=!1){let o=localStorage.getItem("Token"),i=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});o&&(i=i.append("Authorization","Bearer "+o));let s={headers:i,params:this.generateQueryParams(t)};return this.http.get(n,s).pipe(et(a=>{if(!r&&!this.unauthorizedErrorHandling(a)){let u=this.errorMessageHandling(a);this.toastr.error(u.Message!=""?u.Message:"An unknown error has occured!",u.header),this.paymentErrorHandling(a)}return hn(()=>a)}))}getNews(n){return this.http.get(n)}paymentErrorHandling(n){n.status==402&&this.router.navigate(["/menu/Profile/Main/My_Subscription"])}post(n,t,r=1e5,o=!1,i={}){return new x(s=>{let a=localStorage.getItem("Token"),c=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});a&&(c=c.append("Authorization","Bearer "+a));let u=v({headers:c},i);Date.prototype.toJSON=function(){return this.getFullYear()+"-"+l(this.getMonth()+1)+"-"+l(this.getDate())+"T"+l(this.getHours())+":"+l(this.getMinutes())+":"+l(this.getSeconds())+".000"};function l(d){return d<10?"0"+d:d}this.http.post(n,t,i).pipe(at(r)).subscribe({next:d=>{s.next(d),s.complete()},error:d=>{if(d.status==200)s.next(d.error.text),s.complete();else{if(!o&&!this.unauthorizedErrorHandling(d)){let f=this.errorMessageHandling(d);this.toastr.error(f.Message!=""?f.Message:"An unknown error has occured!",f.header,{enableHtml:!0})}s.error(d)}}})})}postFile(n,t,r=1e5){return new x(o=>{let i=localStorage.getItem("Token"),s=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});i&&(s=s.append("Authorization","Bearer "+i)),this.http.post(n,t,{headers:s,observe:"response",responseType:"blob"}).pipe(at(r)).subscribe({next:a=>{o.next({title:a.headers.get("Content-Disposition"),file:a.body}),o.complete()},error:a=>{if(a.headers.get("Content-Type")==="application/json; charset=utf-8"){let c=new FileReader;c.addEventListener("loadend",u=>{let l=JSON.parse(u.srcElement.result)?.Message;if(!this.unauthorizedErrorHandling(a)){let h=this.errorMessageHandling(a);this.toastr.error(l??"An unknown error has occured!",h.header,{enableHtml:!0})}}),c.readAsText(a.error)}o.error(a)}})})}put(n,t,r={},o=1e5,i=!1){return new x(s=>{let a=localStorage.getItem("Token"),c=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});a&&(c=c.append("Authorization","Bearer "+a));let u=v({headers:c},r.params?{params:this.generateQueryParams(r.params)}:{});this.http.put(n,t??{},u).pipe(at(o)).subscribe({next:l=>{s.next(l),s.complete()},error:l=>{if(l.status==200)s.next(l.error.text),s.complete();else{if(!i&&!this.unauthorizedErrorHandling(l)){let h=this.errorMessageHandling(l);this.toastr.error(h.Message!=""?h.Message:"An unknown error has occured!",h.header)}s.error(l)}}})})}delete(n,t={},r=1e5){return new x(o=>{let i=localStorage.getItem("Token"),s=new me({"Content-Type":"application/json","Cache-Control":"no-cache"});i&&(s=s.append("Authorization","Bearer "+i));let a=v(v({headers:s},t.body?{body:t.body}:{}),t.params?{params:this.generateQueryParams(t.params)}:{});this.http.delete(n,a).pipe(at(r)).subscribe({next:c=>{o.next(c),o.complete()},error:c=>{if(c.status==200)o.next(c.error.text),o.complete();else{if(!this.unauthorizedErrorHandling(c)){let l=this.errorMessageHandling(c);this.toastr.error(l.Message!=""?l.Message:"An unknown error has occured!",l.header)}o.error(c)}}})})}generateQueryParams(n=[]){let t=new It;return n.forEach(r=>{t=t.append(r.key,r.value)}),t}unauthorizedErrorHandling(n){let t=!1;return(n.status==401||n.status==403)&&(localStorage.getItem("Token")?this.router.navigate(["/menu/Unauthorized/Main/Unauthorized"],{state:{role:n?.error.Roles}}):window.location.href="/",t=!0),t}errorMessageHandling(n){let t="API Error",r="Exception Message";if(n.error)t="API Error - "+n.status,t=`${t} ${n.status==409?"Conflict":""}`,n.status==451&&(t="Error"),n.error&&(r=n.error.Message);else if((n.Message||n.message)&&(t="API Error - "+n.name,r=n.Message?n.Message:n.message,n instanceof ys||n?.name=="TimeoutError")){let o=this.handleTimoutError(n);t=o.header,r=o.message}return{header:t,Message:r}}handleTimoutError(n){let t="Slow Connection Detected",r=n.Message?n.Message:n.message;return{header:t,message:r}}postFormDataWithoutBearer(n,t){return new x(r=>{this.http.post((n.includes("localhost"),n),t).pipe(at(1e5)).subscribe({next:o=>{r.next(o),r.complete()},error:o=>{o.status==200&&(r.next(o.error.text),r.complete()),r.error(o)}})})}postFormData(n,t,r=!0){return new x(o=>{let i=localStorage.getItem("Token"),a={headers:new me({Authorization:"Bearer "+i})};this.http.post(n,t,a).pipe(at(1e5)).subscribe({next:c=>{o.next(c),o.complete()},error:c=>{if(c.status==200)o.next(c.error.text),o.complete();else{if(!this.unauthorizedErrorHandling(c)&&r){let l=this.errorMessageHandling(c);this.toastr.error(l.Message!=""?l.Message:"An unknown error has occured!",l.header)}o.error(c)}}})})}static \u0275fac=function(t){return new(t||e)(I(yc),I(Kc),I(rt))};static \u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"})};export{Y as a,ru as b,x as c,B as d,ye as e,Mo as f,gw as g,Oe as h,mw as i,vw as j,Ie as k,bo as l,To as m,G as n,M as o,hn as p,yw as q,ys as r,at as s,A as t,_o as u,Q as v,Tt as w,fn as x,Ds as y,dw as z,hu as A,Bn as B,_w as C,Sw as D,re as E,Mw as F,xw as G,Nw as H,et as I,Aw as J,ct as K,Ow as L,cp as M,ze as N,pu as O,kw as P,lp as Q,Un as R,Mt as S,Lw as T,jw as U,Vw as V,Is as W,cu as X,Xh as Y,Bw as Z,Uw as _,cs as $,ie as aa,Hw as ba,dp as ca,us as da,fp as ea,he as fa,hp as ga,D as ha,Cg as ia,E as ja,ht as ka,w as la,I as ma,g as na,SB as oa,id as pa,Ag as qa,tr as ra,be as sa,ud as ta,Lt as ua,vd as va,yd as wa,MB as xa,xB as ya,_d as za,Aa,oe as Ba,Op as Ca,Jt as Da,NB as Ea,Ae as Fa,H as Ga,ft as Ha,RB as Ia,Sm as Ja,Ge as Ka,AC as La,Qr as Ma,cl as Na,Nd as Oa,Jr as Pa,AB as Qa,Ad as Ra,zC as Sa,Fd as Ta,We as Ua,Vd as Va,hb as Wa,pb as Xa,OB as Ya,kB as Za,PB as _a,de as $a,En as ab,Vr as bb,bn as cb,R as db,Av as eb,pt as fb,$B as gb,zB as hb,qB as ib,Xn as jb,ti as kb,gt as lb,Ee as mb,Tn as nb,O_ as ob,ZB as pb,no as qb,ro as rb,df as sb,qe as tb,_n as ub,Me as vb,Sn as wb,aS as xb,YB as yb,on as zb,QB as Ab,KB as Bb,JB as Cb,XB as Db,eU as Eb,tU as Fb,nU as Gb,rU as Hb,Ze as Ib,mt as Jb,Mn as Kb,ri as Lb,oi as Mb,IS as Nb,mf as Ob,bS as Pb,xn as Qb,Ye as Rb,oU as Sb,iU as Tb,PS as Ub,my as Vb,FS as Wb,LS as Xb,vy as Yb,sU as Zb,yy as _b,Dy as $b,aU as ac,cU as bc,uU as cc,lU as dc,sn as ec,VS as fc,an as gc,BS as hc,US as ic,HS as jc,dU as kc,$S as lc,qS as mc,fU as nc,hU as oc,pU as pc,gU as qc,mU as rc,vU as sc,yU as tc,DU as uc,EU as vc,wU as wc,IU as xc,CU as yc,bU as zc,TU as Ac,_U as Bc,SU as Cc,MU as Dc,Zo as Ec,xU as Fc,oo as Gc,NU as Hc,Nn as Ic,wf as Jc,cn as Kc,If as Lc,Cf as Mc,RU as Nc,mM as Oc,AU as Pc,X as Qc,Bt as Rc,Rn as Sc,oD as Tc,zM as Uc,qM as Vc,dD as Wc,ic as Xc,fD as Yc,GM as Zc,WM as _c,ZM as $c,KM as ad,JM as bd,e0 as cd,t0 as dd,n0 as ed,r0 as fd,o0 as gd,Lf as hd,i0 as id,ac as jd,F2 as kd,qf as ld,O0 as md,F0 as nd,me as od,Di as pd,Ei as qd,yc as rd,ox as sd,ix as td,UD as ud,Qf as vd,bt as wd,WN as xd,Mh as yd,Yc as zd,U$ as Ad,Bi as Bd,Ui as Cd,ZN as Dd,Qc as Ed,YN as Fd,QN as Gd,_h as Hd,Sh as Id,KN as Jd,Pn as Kd,Je as Ld,ln as Md,mh as Nd,rt as Od,Zc as Pd,PN as Qd,BN as Rd,Io as Sd,Kc as Td,fR as Ud,az as Vd,$E as Wd};