@pronto-tools-and-more/files 12.41.0 → 12.43.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. package/files/framework/src/default/storefront/buildInfo.json +4 -4
  2. package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +1 -1
  3. package/files/framework/src/default/storefront/index.html +2 -2
  4. package/files/framework/src/default/storefront/modules/common.js +1 -1201
  5. package/files/framework/src/default/storefront/modules/main.js +1 -1
  6. package/files/framework/src/default/storefront/modules/styles.css +1 -1
  7. package/files/framework-latest/src/default/content/assets/FONTAWESOME_LICENSE.txt +34 -0
  8. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-Bold.ttf +0 -0
  9. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-BoldItalic.ttf +0 -0
  10. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-ExtraBold.ttf +0 -0
  11. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
  12. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-Italic.ttf +0 -0
  13. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-Light.ttf +0 -0
  14. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-LightItalic.ttf +0 -0
  15. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-Regular.ttf +0 -0
  16. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-SemiBold.ttf +0 -0
  17. package/files/framework-latest/src/default/content/assets/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
  18. package/files/framework-latest/src/default/content/assets/fonts/RobotoSlab-Bold.ttf +0 -0
  19. package/files/framework-latest/src/default/content/assets/ic_arrow.svg +1 -0
  20. package/files/framework-latest/src/default/content/assets/ic_audio.svg +19 -0
  21. package/files/framework-latest/src/default/content/assets/ic_bookmark.svg +10 -0
  22. package/files/framework-latest/src/default/content/assets/ic_bookmark_active.svg +9 -0
  23. package/files/framework-latest/src/default/content/assets/ic_close.svg +16 -0
  24. package/files/framework-latest/src/default/content/assets/ic_download.svg +13 -0
  25. package/files/framework-latest/src/default/content/assets/ic_download_circle.svg +15 -0
  26. package/files/framework-latest/src/default/content/assets/ic_download_completed.svg +12 -0
  27. package/files/framework-latest/src/default/content/assets/ic_download_completed_circle.svg +12 -0
  28. package/files/framework-latest/src/default/content/assets/ic_downloading.svg +13 -0
  29. package/files/framework-latest/src/default/content/assets/ic_downloading_circle.svg +15 -0
  30. package/files/framework-latest/src/default/content/assets/ic_font_size.svg +1 -0
  31. package/files/framework-latest/src/default/content/assets/ic_left.svg +15 -0
  32. package/files/framework-latest/src/default/content/assets/ic_left_arrow.svg +11 -0
  33. package/files/framework-latest/src/default/content/assets/ic_night_mode.svg +20 -0
  34. package/files/framework-latest/src/default/content/assets/ic_night_mode_active.svg +20 -0
  35. package/files/framework-latest/src/default/content/assets/ic_overlay_loading.svg +13 -0
  36. package/files/framework-latest/src/default/content/assets/ic_pause.svg +19 -0
  37. package/files/framework-latest/src/default/content/assets/ic_play.svg +16 -0
  38. package/files/framework-latest/src/default/content/assets/ic_player.svg +19 -0
  39. package/files/framework-latest/src/default/content/assets/ic_player_active.svg +19 -0
  40. package/files/framework-latest/src/default/content/assets/ic_right.svg +15 -0
  41. package/files/framework-latest/src/default/content/assets/ic_right_arrow.svg +11 -0
  42. package/files/framework-latest/src/default/content/assets/ic_seek_back.svg +19 -0
  43. package/files/framework-latest/src/default/content/assets/ic_seek_forward.svg +19 -0
  44. package/files/framework-latest/src/default/content/assets/ic_settings.svg +16 -0
  45. package/files/framework-latest/src/default/content/assets/ic_share_android.svg +11 -0
  46. package/files/framework-latest/src/default/content/assets/ic_share_ios.svg +13 -0
  47. package/files/framework-latest/src/default/content/assets/ic_speech.svg +15 -0
  48. package/files/framework-latest/src/default/content/assets/ic_speech_female.svg +11 -0
  49. package/files/framework-latest/src/default/content/assets/ic_speech_male.svg +11 -0
  50. package/files/framework-latest/src/default/content/assets/ic_speech_rate.svg +11 -0
  51. package/files/framework-latest/src/default/content/assets/ic_toc.svg +22 -0
  52. package/files/framework-latest/src/default/content/assets/ic_video.svg +21 -0
  53. package/files/framework-latest/src/default/content/assets/ic_zoom.svg +1 -0
  54. package/files/framework-latest/src/default/content/assets/img/spinner.gif +0 -0
  55. package/files/framework-latest/src/default/content/assets/logo.png +0 -0
  56. package/files/framework-latest/src/default/content/assets/swiper/swiper-bundle.min.css +13 -0
  57. package/files/framework-latest/src/default/content/assets/swiper/swiper-bundle.min.js +1 -0
  58. package/files/framework-latest/src/default/content/assets/tail-spin.gif +0 -0
  59. package/files/framework-latest/src/default/content/assets/tail-spin.svg +32 -0
  60. package/files/framework-latest/src/default/content/core.css +29 -0
  61. package/files/framework-latest/src/default/content/core.js +10896 -0
  62. package/files/framework-latest/src/default/content/functions.css +2 -0
  63. package/files/framework-latest/src/default/content/functions.js +1 -0
  64. package/files/framework-latest/src/default/content/publish-press-author.css +407 -0
  65. package/files/framework-latest/src/default/content/publish-press-author.js +290 -0
  66. package/files/framework-latest/src/default/content/resources.json +1 -0
  67. package/files/framework-latest/src/default/content/theme.css +16 -0
  68. package/files/framework-latest/src/default/content/theme.js +720 -0
  69. package/files/framework-latest/src/default/content/tts.css +7 -0
  70. package/files/framework-latest/src/default/content/tts.js +5 -0
  71. package/files/framework-latest/src/default/content/uag.css +20 -0
  72. package/files/framework-latest/src/default/content/uag.js +166 -0
  73. package/files/framework-latest/src/default/info/css/style.css +328 -0
  74. package/files/framework-latest/src/default/info/font-awesome/HELP-US-OUT.txt +7 -0
  75. package/files/framework-latest/src/default/info/font-awesome/css/font-awesome.css +2337 -0
  76. package/files/framework-latest/src/default/info/font-awesome/css/font-awesome.min.css +4 -0
  77. package/files/framework-latest/src/default/info/font-awesome/fonts/FontAwesome.otf +0 -0
  78. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.eot +0 -0
  79. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.svg +2671 -0
  80. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
  81. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.woff +0 -0
  82. package/files/framework-latest/src/default/info/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
  83. package/files/framework-latest/src/default/info/font-awesome/less/animated.less +34 -0
  84. package/files/framework-latest/src/default/info/font-awesome/less/bordered-pulled.less +25 -0
  85. package/files/framework-latest/src/default/info/font-awesome/less/core.less +12 -0
  86. package/files/framework-latest/src/default/info/font-awesome/less/fixed-width.less +6 -0
  87. package/files/framework-latest/src/default/info/font-awesome/less/font-awesome.less +18 -0
  88. package/files/framework-latest/src/default/info/font-awesome/less/icons.less +789 -0
  89. package/files/framework-latest/src/default/info/font-awesome/less/larger.less +13 -0
  90. package/files/framework-latest/src/default/info/font-awesome/less/list.less +19 -0
  91. package/files/framework-latest/src/default/info/font-awesome/less/mixins.less +60 -0
  92. package/files/framework-latest/src/default/info/font-awesome/less/path.less +15 -0
  93. package/files/framework-latest/src/default/info/font-awesome/less/rotated-flipped.less +20 -0
  94. package/files/framework-latest/src/default/info/font-awesome/less/screen-reader.less +5 -0
  95. package/files/framework-latest/src/default/info/font-awesome/less/stacked.less +20 -0
  96. package/files/framework-latest/src/default/info/font-awesome/less/variables.less +800 -0
  97. package/files/framework-latest/src/default/info/font-awesome/scss/_animated.scss +34 -0
  98. package/files/framework-latest/src/default/info/font-awesome/scss/_bordered-pulled.scss +25 -0
  99. package/files/framework-latest/src/default/info/font-awesome/scss/_core.scss +12 -0
  100. package/files/framework-latest/src/default/info/font-awesome/scss/_fixed-width.scss +6 -0
  101. package/files/framework-latest/src/default/info/font-awesome/scss/_icons.scss +789 -0
  102. package/files/framework-latest/src/default/info/font-awesome/scss/_larger.scss +13 -0
  103. package/files/framework-latest/src/default/info/font-awesome/scss/_list.scss +19 -0
  104. package/files/framework-latest/src/default/info/font-awesome/scss/_mixins.scss +60 -0
  105. package/files/framework-latest/src/default/info/font-awesome/scss/_path.scss +15 -0
  106. package/files/framework-latest/src/default/info/font-awesome/scss/_rotated-flipped.scss +20 -0
  107. package/files/framework-latest/src/default/info/font-awesome/scss/_screen-reader.scss +5 -0
  108. package/files/framework-latest/src/default/info/font-awesome/scss/_stacked.scss +20 -0
  109. package/files/framework-latest/src/default/info/font-awesome/scss/_variables.scss +800 -0
  110. package/files/framework-latest/src/default/info/font-awesome/scss/font-awesome.scss +18 -0
  111. package/files/framework-latest/src/default/info/fonts/Roboto-Bold.ttf +0 -0
  112. package/files/framework-latest/src/default/info/fonts/Roboto-Italic.ttf +0 -0
  113. package/files/framework-latest/src/default/info/fonts/Roboto-Light.ttf +0 -0
  114. package/files/framework-latest/src/default/info/fonts/Roboto-LightItalic.ttf +0 -0
  115. package/files/framework-latest/src/default/info/fonts/Roboto-Medium.ttf +0 -0
  116. package/files/framework-latest/src/default/info/fonts/Roboto-MediumItalic.ttf +0 -0
  117. package/files/framework-latest/src/default/info/fonts/Roboto-Regular.ttf +0 -0
  118. package/files/framework-latest/src/default/info/img/banner.png +0 -0
  119. package/files/framework-latest/src/default/info/index.html +94 -0
  120. package/files/framework-latest/src/default/info/theme.css +181 -0
  121. package/files/framework-latest/src/default/menuicons/account.png +0 -0
  122. package/files/framework-latest/src/default/menuicons/account@2x.png +0 -0
  123. package/files/framework-latest/src/default/menuicons/account@3x.png +0 -0
  124. package/files/framework-latest/src/default/menuicons/bookmarks.png +0 -0
  125. package/files/framework-latest/src/default/menuicons/bookmarks@2x.png +0 -0
  126. package/files/framework-latest/src/default/menuicons/bookmarks@3x.png +0 -0
  127. package/files/framework-latest/src/default/menuicons/calendar.png +0 -0
  128. package/files/framework-latest/src/default/menuicons/calendar@2x.png +0 -0
  129. package/files/framework-latest/src/default/menuicons/calendar@3x.png +0 -0
  130. package/files/framework-latest/src/default/menuicons/chain.png +0 -0
  131. package/files/framework-latest/src/default/menuicons/chain@2x.png +0 -0
  132. package/files/framework-latest/src/default/menuicons/chain@3x.png +0 -0
  133. package/files/framework-latest/src/default/menuicons/feedback.png +0 -0
  134. package/files/framework-latest/src/default/menuicons/feedback@2x.png +0 -0
  135. package/files/framework-latest/src/default/menuicons/feedback@3x.png +0 -0
  136. package/files/framework-latest/src/default/menuicons/forum.png +0 -0
  137. package/files/framework-latest/src/default/menuicons/forum@2x.png +0 -0
  138. package/files/framework-latest/src/default/menuicons/forum@3x.png +0 -0
  139. package/files/framework-latest/src/default/menuicons/info.png +0 -0
  140. package/files/framework-latest/src/default/menuicons/kiosk.png +0 -0
  141. package/files/framework-latest/src/default/menuicons/kiosk@2x.png +0 -0
  142. package/files/framework-latest/src/default/menuicons/kiosk@3x.png +0 -0
  143. package/files/framework-latest/src/default/menuicons/legal.png +0 -0
  144. package/files/framework-latest/src/default/menuicons/legal@2x.png +0 -0
  145. package/files/framework-latest/src/default/menuicons/legal@3x.png +0 -0
  146. package/files/framework-latest/src/default/menuicons/login.png +0 -0
  147. package/files/framework-latest/src/default/menuicons/login@2x.png +0 -0
  148. package/files/framework-latest/src/default/menuicons/login@3x.png +0 -0
  149. package/files/framework-latest/src/default/menuicons/logout.png +0 -0
  150. package/files/framework-latest/src/default/menuicons/logout@2x.png +0 -0
  151. package/files/framework-latest/src/default/menuicons/logout@3x.png +0 -0
  152. package/files/framework-latest/src/default/menuicons/newsfeed.png +0 -0
  153. package/files/framework-latest/src/default/menuicons/newsfeed@2x.png +0 -0
  154. package/files/framework-latest/src/default/menuicons/newsfeed@3x.png +0 -0
  155. package/files/framework-latest/src/default/menuicons/newsstand.png +0 -0
  156. package/files/framework-latest/src/default/menuicons/newsstand@2x.png +0 -0
  157. package/files/framework-latest/src/default/menuicons/newsstand@3x.png +0 -0
  158. package/files/framework-latest/src/default/menuicons/purple.png +0 -0
  159. package/files/framework-latest/src/default/menuicons/purple@2x.png +0 -0
  160. package/files/framework-latest/src/default/menuicons/purple@3x.png +0 -0
  161. package/files/framework-latest/src/default/menuicons/restore.png +0 -0
  162. package/files/framework-latest/src/default/menuicons/restore@2x.png +0 -0
  163. package/files/framework-latest/src/default/menuicons/restore@3x.png +0 -0
  164. package/files/framework-latest/src/default/menuicons/settings.png +0 -0
  165. package/files/framework-latest/src/default/menuicons/share.png +0 -0
  166. package/files/framework-latest/src/default/menuicons/share@2x.png +0 -0
  167. package/files/framework-latest/src/default/menuicons/share@3x.png +0 -0
  168. package/files/framework-latest/src/default/menuicons/shop.png +0 -0
  169. package/files/framework-latest/src/default/menuicons/shop@2x.png +0 -0
  170. package/files/framework-latest/src/default/menuicons/shop@3x.png +0 -0
  171. package/files/framework-latest/src/default/menuicons/socialmedia.png +0 -0
  172. package/files/framework-latest/src/default/menuicons/socialmedia@2x.png +0 -0
  173. package/files/framework-latest/src/default/menuicons/socialmedia@3x.png +0 -0
  174. package/files/framework-latest/src/default/menuicons/subscriptions.png +0 -0
  175. package/files/framework-latest/src/default/menuicons/subscriptions@2x.png +0 -0
  176. package/files/framework-latest/src/default/menuicons/subscriptions@3x.png +0 -0
  177. package/files/framework-latest/src/default/menuicons/voucher.png +0 -0
  178. package/files/framework-latest/src/default/menuicons/voucher@2x.png +0 -0
  179. package/files/framework-latest/src/default/menuicons/voucher@3x.png +0 -0
  180. package/files/framework-latest/src/default/menuicons/website.png +0 -0
  181. package/files/framework-latest/src/default/menuicons/website@2x.png +0 -0
  182. package/files/framework-latest/src/default/menuicons/website@3x.png +0 -0
  183. package/files/framework-latest/src/default/onboarding/3rdpartylicenses.txt +574 -0
  184. package/files/framework-latest/src/default/onboarding/assets/config/message.json +7 -0
  185. package/files/framework-latest/src/default/onboarding/assets/config/onboarding.json +48 -0
  186. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/1_Welcome.png +0 -0
  187. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/2_MenuPhone.jpg +0 -0
  188. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/2_MenuTablet.jpg +0 -0
  189. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/3_NewsstandPhone.jpg +0 -0
  190. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/3_NewsstandTablet.jpg +0 -0
  191. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/4_PublicationPhone.jpg +0 -0
  192. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/4_PublicationTablet.jpg +0 -0
  193. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/5_NewsfeedPhone.jpg +0 -0
  194. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/5_NewsfeedTablet.jpg +0 -0
  195. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/6_FeaturesPhone.jpg +0 -0
  196. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_images/6_FeaturesTablet.jpg +0 -0
  197. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_videos/BLI_Cover-Image-Video_1.jpg +0 -0
  198. package/files/framework-latest/src/default/onboarding/assets/config/onboarding_videos/BLI_Cover-Image-Video_4.jpg +0 -0
  199. package/files/framework-latest/src/default/onboarding/assets/config/style.json +19 -0
  200. package/files/framework-latest/src/default/onboarding/assets/config/url.json +5 -0
  201. package/files/framework-latest/src/default/onboarding/assets/font/Ionicons/ionicons.ttf +0 -0
  202. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-Bold.ttf +0 -0
  203. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-BoldItalic.ttf +0 -0
  204. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-ExtraBold.ttf +0 -0
  205. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf +0 -0
  206. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-Italic.ttf +0 -0
  207. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-Light.ttf +0 -0
  208. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-LightItalic.ttf +0 -0
  209. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-Regular.ttf +0 -0
  210. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-SemiBold.ttf +0 -0
  211. package/files/framework-latest/src/default/onboarding/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf +0 -0
  212. package/files/framework-latest/src/default/onboarding/assets/font/fonts.css +73 -0
  213. package/files/framework-latest/src/default/onboarding/favicon.ico +0 -0
  214. package/files/framework-latest/src/default/onboarding/index.html +15 -0
  215. package/files/framework-latest/src/default/onboarding/main.js +1 -0
  216. package/files/framework-latest/src/default/onboarding/polyfills-es5.js +1 -0
  217. package/files/framework-latest/src/default/onboarding/polyfills.js +1 -0
  218. package/files/framework-latest/src/default/onboarding/runtime.js +1 -0
  219. package/files/framework-latest/src/default/onboarding/styles.css +1 -0
  220. package/files/framework-latest/src/default/onboarding/vendor.js +1 -0
  221. package/files/framework-latest/src/default/readmode/custom.js +40 -0
  222. package/files/framework-latest/src/default/readmode/ic_audio.svg +19 -0
  223. package/files/framework-latest/src/default/readmode/ic_close.svg +16 -0
  224. package/files/framework-latest/src/default/readmode/ic_font_size.svg +1 -0
  225. package/files/framework-latest/src/default/readmode/ic_night_mode.svg +20 -0
  226. package/files/framework-latest/src/default/readmode/ic_pause.svg +19 -0
  227. package/files/framework-latest/src/default/readmode/ic_play.svg +16 -0
  228. package/files/framework-latest/src/default/readmode/ic_speech.svg +15 -0
  229. package/files/framework-latest/src/default/readmode/ic_speech_female.svg +11 -0
  230. package/files/framework-latest/src/default/readmode/ic_speech_male.svg +11 -0
  231. package/files/framework-latest/src/default/storefront/3rdpartylicenses.txt +1065 -0
  232. package/files/framework-latest/src/default/storefront/assets/access.json +10 -0
  233. package/files/framework-latest/src/default/storefront/assets/banner/banner_not_found.jpg +0 -0
  234. package/files/framework-latest/src/default/storefront/assets/downloadOptions.json +1 -0
  235. package/files/framework-latest/src/default/storefront/assets/faq.html +87 -0
  236. package/files/framework-latest/src/default/storefront/assets/features.json +3 -0
  237. package/files/framework-latest/src/default/storefront/assets/generic-widget.json +1 -0
  238. package/files/framework-latest/src/default/storefront/assets/login.html +329 -0
  239. package/files/framework-latest/src/default/storefront/assets/submit.css +7 -0
  240. package/files/framework-latest/src/default/storefront/assets/subscription-benefits.json +11 -0
  241. package/files/framework-latest/src/default/storefront/assets/termsofuse.html +123 -0
  242. package/files/framework-latest/src/default/storefront/assets/tts_config.json +3 -0
  243. package/files/framework-latest/src/default/storefront/assets/urls.json +11 -0
  244. package/files/framework-latest/src/default/storefront/buildInfo.json +7 -0
  245. package/files/framework-latest/src/default/storefront/deep-link-landing/index.html +1 -0
  246. package/files/framework-latest/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +842 -0
  247. package/files/framework-latest/src/default/storefront/deep-link-landing/purple-deep-link-landing.js.LICENSE.txt +13 -0
  248. package/files/framework-latest/src/default/storefront/index.html +22 -0
  249. package/files/framework-latest/src/default/storefront/modules/DS_logo.svg +1 -0
  250. package/files/framework-latest/src/default/storefront/modules/alphaMask.png +0 -0
  251. package/files/framework-latest/src/default/storefront/modules/btn_backward.png +0 -0
  252. package/files/framework-latest/src/default/storefront/modules/btn_first.png +0 -0
  253. package/files/framework-latest/src/default/storefront/modules/btn_forward.png +0 -0
  254. package/files/framework-latest/src/default/storefront/modules/btn_fullwidth.png +0 -0
  255. package/files/framework-latest/src/default/storefront/modules/btn_fullwidth_active.png +0 -0
  256. package/files/framework-latest/src/default/storefront/modules/btn_last.png +0 -0
  257. package/files/framework-latest/src/default/storefront/modules/btn_pin.png +0 -0
  258. package/files/framework-latest/src/default/storefront/modules/btn_toc.png +0 -0
  259. package/files/framework-latest/src/default/storefront/modules/btn_zoom.png +0 -0
  260. package/files/framework-latest/src/default/storefront/modules/btn_zoom_active.png +0 -0
  261. package/files/framework-latest/src/default/storefront/modules/common.js +1 -0
  262. package/files/framework-latest/src/default/storefront/modules/default-node_modules_angular_forms_fesm2022_forms_mjs.js +1 -0
  263. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +1 -0
  264. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -0
  265. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-04fe61.js +1 -0
  266. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_image_image_leandom_component_ts-projects_store-571069.js +1 -0
  267. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -0
  268. package/files/framework-latest/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -0
  269. package/files/framework-latest/src/default/storefront/modules/ic_backward.svg +16 -0
  270. package/files/framework-latest/src/default/storefront/modules/ic_close.svg +16 -0
  271. package/files/framework-latest/src/default/storefront/modules/ic_forward.svg +16 -0
  272. package/files/framework-latest/src/default/storefront/modules/ic_fullscreen.png +0 -0
  273. package/files/framework-latest/src/default/storefront/modules/ic_fullscreen@2x.png +0 -0
  274. package/files/framework-latest/src/default/storefront/modules/ic_fullscreen@3x.png +0 -0
  275. package/files/framework-latest/src/default/storefront/modules/ic_overlay_loading.svg +13 -0
  276. package/files/framework-latest/src/default/storefront/modules/ic_pause.png +0 -0
  277. package/files/framework-latest/src/default/storefront/modules/ic_pause.svg +19 -0
  278. package/files/framework-latest/src/default/storefront/modules/ic_pause@2x.png +0 -0
  279. package/files/framework-latest/src/default/storefront/modules/ic_pause@3x.png +0 -0
  280. package/files/framework-latest/src/default/storefront/modules/ic_play.png +0 -0
  281. package/files/framework-latest/src/default/storefront/modules/ic_play.svg +16 -0
  282. package/files/framework-latest/src/default/storefront/modules/ic_play@2x.png +0 -0
  283. package/files/framework-latest/src/default/storefront/modules/ic_play@3x.png +0 -0
  284. package/files/framework-latest/src/default/storefront/modules/ic_player.svg +17 -0
  285. package/files/framework-latest/src/default/storefront/modules/ic_player_active.svg +17 -0
  286. package/files/framework-latest/src/default/storefront/modules/ic_refresh.svg +16 -0
  287. package/files/framework-latest/src/default/storefront/modules/ic_seek_back.svg +19 -0
  288. package/files/framework-latest/src/default/storefront/modules/ic_seek_forward.svg +19 -0
  289. package/files/framework-latest/src/default/storefront/modules/ic_settings.svg +16 -0
  290. package/files/framework-latest/src/default/storefront/modules/ic_smallscreen.png +0 -0
  291. package/files/framework-latest/src/default/storefront/modules/ic_smallscreen@2x.png +0 -0
  292. package/files/framework-latest/src/default/storefront/modules/ic_smallscreen@3x.png +0 -0
  293. package/files/framework-latest/src/default/storefront/modules/ic_speech.svg +15 -0
  294. package/files/framework-latest/src/default/storefront/modules/ic_speech_female.svg +11 -0
  295. package/files/framework-latest/src/default/storefront/modules/ic_speech_male.svg +11 -0
  296. package/files/framework-latest/src/default/storefront/modules/icon_close.png +0 -0
  297. package/files/framework-latest/src/default/storefront/modules/main.js +1 -0
  298. package/files/framework-latest/src/default/storefront/modules/node_modules_clientjs_dist_client_base_min_js.js +1 -0
  299. package/files/framework-latest/src/default/storefront/modules/node_modules_mustache_mustache_js.js +1 -0
  300. package/files/framework-latest/src/default/storefront/modules/node_modules_purple_web-player_dist_webPresenter_js_vendor_js.js +1 -0
  301. package/files/framework-latest/src/default/storefront/modules/node_modules_purple_web-player_dist_webPresenter_js_webPresenter_min_js.js +1 -0
  302. package/files/framework-latest/src/default/storefront/modules/polyfills.js +1 -0
  303. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-295cec.js +1 -0
  304. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-7956f0.js +1 -0
  305. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-94b9b6.js +1 -0
  306. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_action-executor_action-executor_module_ts.js +1 -0
  307. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -0
  308. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts.js +1 -0
  309. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -0
  310. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_bookmark_bookmark_module_ts.js +1 -0
  311. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -0
  312. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -0
  313. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -0
  314. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -0
  315. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -0
  316. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_coupon_coupon_module_ts.js +1 -0
  317. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dev-components_user-tag-testing_user-tag-testing_module_ts.js +1 -0
  318. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -0
  319. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -0
  320. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -0
  321. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -0
  322. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -0
  323. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_login_login_module_ts.js +1 -0
  324. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -0
  325. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -0
  326. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -0
  327. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -0
  328. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_recommendations_recommendations_module_ts.js +1 -0
  329. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_module_ts.js +1 -0
  330. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -0
  331. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -0
  332. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_ticker_ticker_module_ts.js +1 -0
  333. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -0
  334. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -0
  335. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -0
  336. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -0
  337. package/files/framework-latest/src/default/storefront/modules/projects_storefront_src_app_config_common_config_ts.js +1 -0
  338. package/files/framework-latest/src/default/storefront/modules/runtime.js +1 -0
  339. package/files/framework-latest/src/default/storefront/modules/styles.css +1 -0
  340. package/package.json +1 -1
@@ -0,0 +1,842 @@
1
+ /*! For license information please see purple-deep-link-landing.js.LICENSE.txt */
2
+ (()=>{var __webpack_modules__={8287:e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){for(var e,n,r=[],i=window,o=i;o;){try{if(o.frames.__tcfapiLocator){e=o;break}}catch(e){}if(o===i.top)break;o=o.parent}e||(function e(){var t=i.document,n=!!i.frames.__tcfapiLocator;if(!n)if(t.body){var r=t.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",t.body.appendChild(r)}else setTimeout(e,5);return!n}(),i.__tcfapi=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!t.length)return r;"setGdprApplies"===t[0]?t.length>3&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(n=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?"function"==typeof t[2]&&t[2]({gdprApplies:n,cmpLoaded:!1,cmpStatus:"stub"}):r.push(t)},i.addEventListener("message",(function(e){var n="string"==typeof e.data,r={};if(n)try{r=JSON.parse(e.data)}catch(e){}else r=e.data;var i="object"===t(r)&&null!==r?r.__tcfapiCall:null;i&&window.__tcfapi(i.command,i.version,(function(t,r){var o={__tcfapiReturn:{returnValue:t,success:r,callId:i.callId}};e&&e.source&&e.source.postMessage&&e.source.postMessage(n?JSON.stringify(o):o,"*")}),i.parameter)}),!1))}},1606:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(5316),t)},4144:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9870),t)},9870:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AssignLocalPurchasesMode=void 0,function(e){e.UNASSIGNED="UNASSIGNED",e.REASSIGN="REASSIGN",e.ASSIGN="ASSIGN"}(n||(t.AssignLocalPurchasesMode=n={}))},3212:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5245:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.APP_STATE_TYPE=void 0,function(e){e.STARTED="STARTED",e.RESUMED="RESUMED",e.PAUSED="PAUSED",e.STOPPED="STOPPED"}(n||(t.APP_STATE_TYPE=n={}))},8961:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6216:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9947:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AppSubscriptionAdditionalBackIssueUnlocksType=void 0,function(e){e.DAY="DAY",e.WEEK="WEEK",e.MONTH="MONTH",e.YEAR="YEAR"}(n||(t.AppSubscriptionAdditionalBackIssueUnlocksType=n={}))},3443:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.AppSubscriptionType=t.AppSubscriptionDuration=void 0,function(e){e.SEVEN_DAYS="SEVEN_DAYS",e.TWO_WEEKS="TWO_WEEKS",e.ONE_MONTH="ONE_MONTH",e.TWO_MONTHS="TWO_MONTHS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS",e.ONE_YEAR="ONE_YEAR"}(n||(t.AppSubscriptionDuration=n={})),function(e){e.FREE="FREE",e.AUTORENEWABLE="AUTORENEWABLE",e.NONAUTORENEWABLE="NONAUTORENEWABLE"}(r||(t.AppSubscriptionType=r={}))},2473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9600:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3977:(e,t)=>{"use strict";var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentResourceType=t.CatalogBundleType=t.CatalogContentType=t.Access=void 0,function(e){e.FREE="FREE",e.HIDDEN="HIDDEN",e.PURCHASABLE="PURCHASABLE"}(n||(t.Access=n={})),function(e){e.ISSUE="ISSUE",e.POST="POST",e.BUNDLE="BUNDLE"}(r||(t.CatalogContentType=r={})),function(e){e.ISSUE="ISSUE",e.DOSSIER="DOSSIER"}(i||(t.CatalogBundleType=i={})),function(e){e.ASSET="ASSET",e.CONTENT_BUNDLE="CONTENT_BUNDLE"}(o||(t.ContentResourceType=o={}))},7983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2267:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.IssueType=t.PurchaseOption=void 0,function(e){e.APP_STORE_PURCHASE="APP_STORE_PURCHASE",e.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",e.ENTITLEMENT="ENTITLEMENT",e.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",e.TRIAL="TRIAL",e.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT"}(n||(t.PurchaseOption=n={})),function(e){e.ARTICLE="ARTICLE",e.ISSUE="ISSUE"}(r||(t.IssueType=r={}))},593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4228:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3608:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PublicationType=void 0,function(e){e.KIOSK="KIOSK",e.CHANNEL="CHANNEL"}(n||(t.PublicationType=n={}))},4573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},963:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8002:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(n||(t.SortDirection=n={}))},8100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8939:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6863:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3271:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2526:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODE=void 0,function(e){e.ACCESS_DENIED="ACCESS_DENIED",e.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",e.ALREADY_OWNED="ALREADY_OWNED",e.CANCELLED="CANCELLED",e.CONFIGURATION_ERROR="CONFIGURATION_ERROR",e.DUPLICATE_CODE="DUPLICATE_CODE",e.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",e.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",e.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.INVALID_CODE="INVALID_CODE",e.INVALID_CREDENTIALS="INVALID_CREDENTIALS",e.NETWORK="NETWORK",e.NO_ISSUES_FOUND="NO_ISSUES_FOUND",e.NOT_AVAILABLE="NOT_AVAILABLE",e.NOT_FOUND="NOT_FOUND",e.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",e.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",e.NOT_HANDLED="NOT_HANDLED",e.NOTHING_LOADED="NOTHING_LOADED",e.NOT_LOGGED_IN="NOT_LOGGED_IN",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.UNKNOWN="UNKNOWN",e.UNKNOWN_CODE="UNKNOWN_CODE",e.UNKNOWN_OFFER="UNKNOWN_OFFER",e.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",e.UNKNOWN_VENDOR="UNKNOWN_VENDOR",e.USER_DEACTIVATED="USER_DEACTIVATED",e.VALIDATION_FAILED="VALIDATION_FAILED"}(n||(t.ERROR_CODE=n={}))},9765:(e,t)=>{"use strict";var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ListOperation=t.IntOperation=t.DateOperation=t.StringOperation=void 0,function(e){e.EQUAL="EQUAL",e.CONTAINS="CONTAINS",e.STARTS_WITH="STARTS_WITH",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.REGEX="REGEX"}(n||(t.StringOperation=n={})),function(e){e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.EQUAL="EQUAL"}(r||(t.DateOperation=r={})),function(e){e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.EQUAL="EQUAL"}(i||(t.IntOperation=i={})),function(e){e.CONTAINS="CONTAINS",e.CONTAINS_ONLY="CONTAINS_ONLY"}(o||(t.ListOperation=o={}))},6219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2212:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1708:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7554:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6051:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5862:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4612:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(6216),t),i(n(3443),t),i(n(9947),t),i(n(2473),t),i(n(588),t),i(n(9600),t),i(n(7620),t),i(n(3977),t),i(n(2267),t),i(n(7983),t),i(n(593),t),i(n(4794),t),i(n(4228),t),i(n(3608),t),i(n(4573),t),i(n(7751),t),i(n(963),t),i(n(5843),t),i(n(8002),t),i(n(8100),t),i(n(8939),t),i(n(9182),t),i(n(8188),t),i(n(5403),t),i(n(6863),t),i(n(5686),t),i(n(3271),t),i(n(6663),t),i(n(2526),t),i(n(9765),t),i(n(6219),t),i(n(2212),t),i(n(7717),t),i(n(6421),t),i(n(6451),t),i(n(9816),t),i(n(1708),t),i(n(104),t),i(n(2664),t),i(n(6469),t),i(n(7554),t),i(n(6051),t),i(n(5862),t),i(n(2791),t),i(n(8574),t),i(n(666),t),i(n(9100),t),i(n(853),t),i(n(9314),t),i(n(9417),t),i(n(9918),t),i(n(8940),t),i(n(8492),t),i(n(7795),t),i(n(7401),t),i(n(3576),t),i(n(9051),t),i(n(5871),t),i(n(9510),t),i(n(9541),t),i(n(9383),t),i(n(6018),t),i(n(3460),t),i(n(7997),t),i(n(9954),t),i(n(4955),t),i(n(3534),t),i(n(377),t),i(n(3210),t),i(n(3768),t),i(n(4446),t),i(n(8346),t),i(n(5783),t),i(n(3423),t),i(n(1209),t),i(n(4861),t),i(n(4460),t),i(n(5334),t),i(n(8333),t),i(n(7632),t),i(n(7397),t),i(n(8090),t),i(n(7168),t)},666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8940:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8492:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9051:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6018:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3460:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PublicationProductType=void 0,function(e){e.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",e.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE"}(n||(t.PublicationProductType=n={}))},9954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3534:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},377:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SystemConsentStatus=void 0,function(e){e.GRANTED="GRANTED",e.DENIED="DENIED",e.UNDETERMINED="UNDETERMINED"}(n||(t.SystemConsentStatus=n={}))},3210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3768:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5783:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SearchResultSortCriteria=void 0,function(e){e.RELEVANCE="RELEVANCE",e.PUB_DATE_DESC="PUB_DATE_DESC"}(n||(t.SearchResultSortCriteria=n={}))},3423:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SearchField=void 0,function(e){e.CONTENT="CONTENT",e.CONTENT_NAME="CONTENT_NAME",e.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",e.CUSTOM_TERMS="CUSTOM_TERMS"}(n||(t.SearchField=n={}))},1209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4460:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StartDownloadError=void 0,function(e){e.NETWORK="NETWORK",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.NOT_FOUND="NOT_FOUND",e.UNKNOWN="UNKNOWN"}(n||(t.StartDownloadError=n={}))},5334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8090:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7418:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.CONNECTION_TYPE=t.CONNECTION_STATE=void 0,function(e){e.ONLINE="ONLINE",e.OFFLINE="OFFLINE"}(n||(t.CONNECTION_STATE=n={})),function(e){e.TYPE_3G="TYPE_3G",e.TYPE_WLAN="TYPE_WLAN"}(r||(t.CONNECTION_TYPE=r={}))},5685:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6569:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentStateError=t.ContentInstallState=void 0,function(e){e.NOT_INSTALLED="NOT_INSTALLED",e.INCOMPLETE="INCOMPLETE",e.COMPLETE="COMPLETE"}(n||(t.ContentInstallState=n={})),function(e){e.NETWORK="NETWORK",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.NOT_FOUND="NOT_FOUND",e.UNKNOWN="UNKNOWN"}(r||(t.ContentStateError=r={}))},2082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5439:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2171:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8562:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(6569),t),i(n(5685),t),i(n(2082),t),i(n(1922),t),i(n(5439),t),i(n(2171),t),i(n(2995),t),i(n(2676),t),i(n(840),t),i(n(9329),t),i(n(4998),t),i(n(2213),t)},2995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2676:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9329:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ElementAlignment=void 0,function(e){e.TOP_LEFT="TOP_LEFT",e.TOP_CENTER="TOP_CENTER",e.TOP_RIGHT="TOP_RIGHT",e.CENTER_LEFT="CENTER_LEFT",e.CENTER_CENTER="CENTER_CENTER",e.CENTER_RIGHT="CENTER_RIGHT",e.BOTTOM_LEFT="BOTTOM_LEFT",e.BOTTOM_CENTER="BOTTOM_CENTER",e.BOTTOM_RIGHT="BOTTOM_RIGHT"}(n||(t.ElementAlignment=n={}))},4998:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2997:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayMode=t.DISPLAY_MODE=void 0,function(e){e.EMBEDDED="embedded",e.MODAL="modal"}(n||(t.DISPLAY_MODE=n={})),function(e){e.EMBEDDED="EMBEDDED",e.MODAL="MODAL"}(r||(t.DisplayMode=r={}))},4433:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ENTITLEMENT_MODE=void 0,function(e){e.ENTITLEMENT="entitlement",e.OAUTH="oauth",e.NONE="none"}(n||(t.ENTITLEMENT_MODE=n={}))},5316:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(3212),t),i(n(5245),t),i(n(9290),t),i(n(7418),t),i(n(2997),t),i(n(4433),t),i(n(3441),t),i(n(7173),t),i(n(5385),t),i(n(1846),t),i(n(6301),t),i(n(5751),t),i(n(4878),t),i(n(5380),t),i(n(8286),t),i(n(8891),t),i(n(9529),t),i(n(1038),t),i(n(6515),t),i(n(3344),t),i(n(1272),t),i(n(1752),t),i(n(3293),t),i(n(8853),t),i(n(2448),t),i(n(8961),t),i(n(9788),t),i(n(4612),t),i(n(8562),t),i(n(9318),t),i(n(2414),t),i(n(4144),t)},7173:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5385:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ISSUE_STATE=void 0,function(e){e.PURCHASABLE="PURCHASABLE",e.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",e.DOWNLOADING="DOWNLOADING",e.AVAILABLE="AVAILABLE",e.INSTALLING="INSTALLING",e.UPDATE="UPDATE",e.INSTALLED="INSTALLED",e.LOCKED="LOCKED",e.COMING_SOON="COMING_SOON",e.INDEXING="INDEXING",e.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",e.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED"}(n||(t.ISSUE_STATE=n={}))},3441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6301:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MEDIA_PLAYBACK_STATE=void 0,function(e){e.NONE="NONE",e.ERROR="ERROR",e.LOADING="LOADING",e.READY="READY",e.PLAYING="PLAYING"}(n||(t.MEDIA_PLAYBACK_STATE=n={}))},5751:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Platform=void 0,function(e){e.ANDROID="android",e.IOS="ios"}(n||(t.Platform=n={}))},4878:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PUBLICATION_TYPE=void 0,function(e){e.KIOSK="KIOSK",e.CHANNEL="CHANNEL"}(n||(t.PUBLICATION_TYPE=n={}))},9529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1038:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenFileMode=t.OpenFileTarget=void 0,function(e){e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL"}(n||(t.OpenFileTarget=n={})),function(e){e.MODAL="MODAL",e.EMBEDDED="EMBEDDED"}(r||(t.OpenFileMode=r={}))},6515:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3344:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.METADATA_KEY=void 0,function(e){e.APP_ID="app_id",e.APP_VERSION="app_version",e.BUNDLE_ID="bundle_id",e.DEEPLINK_SCHEME="deeplink_scheme",e.PREVIEW_APP="preview_app",e.DEVICE_ID="device_id",e.DEVICE_MODEL="device_model",e.DEVICE_OS="device_os",e.PLATFORM="platform",e.LOCALE="locale",e.MANAGER_BASE_URL="manager_base_url",e.PUSH_REGISTRATION_TOKEN="push_registration_token",e.ENTITLEMENT_LOGIN="entitlement_login",e.ENTITLEMENT_TOKEN="entitlement_token",e.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",e.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",e.ENTITLEMENT_MODE="entitlement_mode",e.ISSUE_ID="issue_id",e.ISSUE_NAME="issue_name",e.PUBLICATION_ID="publication_id",e.PUBLICATION_NAME="publication_name",e.PAGE_ID="page_id",e.PAGE_ALIAS="page_alias",e.PAGE_TITLE="page_title",e.PAGE_INDEX="page_index",e.PAGE_FILENAME="page_filename",e.PURPLE_VERSION="purple_version",e.ONBOARDING_MODE="onboarding_mode"}(n||(t.METADATA_KEY=n={}))},1272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1328:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2414:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1882),t),i(n(1328),t),i(n(5412),t),i(n(3197),t),i(n(185),t)},1882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LAST_VISITED_PATH=void 0,t.LAST_VISITED_PATH="lastVisitedPath"},1773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9613:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9318:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1773),t),i(n(9613),t),i(n(3597),t),i(n(833),t),i(n(1498),t),i(n(2582),t),i(n(5754),t),i(n(1061),t),i(n(4435),t),i(n(4143),t),i(n(7784),t),i(n(3574),t),i(n(1894),t),i(n(3782),t),i(n(3328),t)},5754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3782:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ProrationMode=void 0,function(e){e.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",e.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",e.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",e.DEFERRED="DEFERRED"}(n||(t.ProrationMode=n={}))},3328:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3293:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SUBSCRIPTION_STATE=void 0,function(e){e.NONE="NONE",e.PURCHASING="PURCHASING",e.VALIDATING="VALIDATING",e.PURCHASED="PURCHASED"}(n||(t.SUBSCRIPTION_STATE=n={}))},8853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2448:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_STOREFRONT_ERROR_CODE=t.UPDATE_STOREFRONT_TYPE=void 0,function(e){e.PARTIAL="PARTIAL",e.FULL="FULL",e.LOGIN="LOGIN",e.LOGOUT="LOGOUT"}(n||(t.UPDATE_STOREFRONT_TYPE=n={})),function(e){e.OFFLINE="OFFLINE",e.UNKNOWN="UNKNOWN"}(r||(t.UPDATE_STOREFRONT_ERROR_CODE=r={}))},9788:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6948:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6758),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([e.id,"@import'../assets/colors.css';body{display:flex;justify-content:center;align-items:center;flex-direction:column;height:100%}.custom-html{opacity:1;transition:opacity linear .5s}.custom-html.uninitialized{opacity:0}.storefront-spinner,.pxp-spinner{--spinnerColor: var(--primaryColor);display:block;max-width:100px}.storefront-spinner.hidden,.pxp-spinner.hidden{display:none}",""]);const a=s},5125:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6758),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([e.id,".storefront-spinner.button-spinner,storefront-spinner.button-spinner,.pxp-spinner.button-spinner{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;background-color:rgba(0,0,0,.2);padding:8px;margin:0}.storefront-spinner[type=tail] stop,storefront-spinner[type=tail] stop,.pxp-spinner[type=tail] stop{stop-color:var(--spinnerColor)}.storefront-spinner[type=tail] circle,storefront-spinner[type=tail] circle,.pxp-spinner[type=tail] circle{fill:var(--spinnerColor)}.storefront-spinner[type=dots] circle,storefront-spinner[type=dots] circle,.pxp-spinner[type=dots] circle{fill:var(--spinnerColor)}.storefront-spinner[type=oval] svg,storefront-spinner[type=oval] svg,.pxp-spinner[type=oval] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=puff] svg,storefront-spinner[type=puff] svg,.pxp-spinner[type=puff] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=rings] svg,storefront-spinner[type=rings] svg,.pxp-spinner[type=rings] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g,storefront-spinner[type=spinningCircles] g,.pxp-spinner[type=spinningCircles] g{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g circle,storefront-spinner[type=spinningCircles] g circle,.pxp-spinner[type=spinningCircles] g circle{fill:var(--spinnerColor)}.storefront-spinner[type=segments] g,storefront-spinner[type=segments] g,.pxp-spinner[type=segments] g{stroke:var(--spinnerColor)}",""]);const a=s},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(s[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&s[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3464:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",s="day",a="week",c="month",u="quarter",l="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,s=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:l,w:a,d:s,D:d,h:o,m:i,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",E={};E[y]=g;var _="$isDayjsObject",b=function(e){return e instanceof D||!(!e||!e[_])},C=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();E[o]&&(i=o),n&&(E[o]=n,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;E[a]=t,i=a}return!r&&i&&(y=i),i||!r&&y},S=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new D(n)},I=v;I.l=C,I.i=b,I.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(I.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return I},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return S(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<S(e)},m.$g=function(e,t,n){return I.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,u=!!I.u(t)||t,p=I.p(e),h=function(e,t){var r=I.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(s)},f=function(e,t){return I.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(p){case l:return u?h(1,0):h(31,11);case c:return u?h(1,m):h(0,m+1);case a:var E=this.$locale().weekStart||0,_=(g<E?g+7:g)-E;return h(u?v-_:v+(6-_),m);case s:case d:return f(y+"Hours",0);case o:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case r:return f(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var a,u=I.p(e),p="set"+(this.$u?"UTC":""),h=(a={},a[s]=p+"Date",a[d]=p+"Date",a[c]=p+"Month",a[l]=p+"FullYear",a[o]=p+"Hours",a[i]=p+"Minutes",a[r]=p+"Seconds",a[n]=p+"Milliseconds",a)[u],f=u===s?this.$D+(t-this.$W):t;if(u===c||u===l){var g=this.clone().set(d,1);g.$d[h](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[I.p(e)]()},m.add=function(n,u){var d,p=this;n=Number(n);var h=I.p(u),f=function(e){var t=S(p);return I.w(t.date(t.date()+Math.round(e*n)),p)};if(h===c)return this.set(c,this.$M+n);if(h===l)return this.set(l,this.$y+n);if(h===s)return f(1);if(h===a)return f(7);var g=(d={},d[i]=e,d[o]=t,d[r]=1e3,d)[h]||1,m=this.$d.getTime()+n*g;return I.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=I.z(this),o=this.$H,s=this.$m,a=this.$M,c=n.weekdays,u=n.months,l=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},h=function(e){return I.s(o%12||12,e,"0")},g=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return I.s(t.$y,4,"0");case"M":return a+1;case"MM":return I.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,u,3);case"MMMM":return d(u,a);case"D":return t.$D;case"DD":return I.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return I.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return g(o,s,!0);case"A":return g(o,s,!1);case"m":return String(s);case"mm":return I.s(s,2,"0");case"s":return String(t.$s);case"ss":return I.s(t.$s,2,"0");case"SSS":return I.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,p){var h,f=this,g=I.p(d),m=S(n),v=(m.utcOffset()-this.utcOffset())*e,y=this-m,E=function(){return I.m(f,m)};switch(g){case l:h=E()/12;break;case c:h=E();break;case u:h=E()/3;break;case a:h=(y-v)/6048e5;break;case s:h=(y-v)/864e5;break;case o:h=y/t;break;case i:h=y/e;break;case r:h=y/1e3;break;default:h=y}return p?h:I.a(h)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return E[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return I.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),w=D.prototype;return S.prototype=w,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",s],["$M",c],["$y",l],["$D",d]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,D,S),e.$i=!0),S},S.locale=C,S.isDayjs=b,S.unix=function(e){return S(1e3*e)},S.en=E[y],S.Ls=E,S.p={},S}()},1630:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},a=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=l(e,!1)}],a:[i,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,a("year")],Z:c,ZZ:c};function p(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,c=0;c<a;c+=1){var u=s[c],l=d[u],p=l&&l[0],h=l&&l[1];s[c]=h?{regex:p,parser:h}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,c=i.parser,u=e.slice(r),l=o.exec(u)[0];c.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var c=!0===s[2],u=!0===s[3],l=c||u,d=s[2];u&&(d=s[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=p(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,c=r.minutes,u=r.seconds,l=r.milliseconds,d=r.zone,h=new Date,f=s||(i||o?1:h.getDate()),g=i||h.getFullYear(),m=0;i&&!o||(m=o>0?o-1:h.getMonth());var v=a||0,y=c||0,E=u||0,_=l||0;return d?new Date(Date.UTC(g,m,f,v,y,E,_+60*d.offset*1e3)):n?new Date(Date.UTC(g,m,f,v,y,E,_)):new Date(g,m,f,v,y,E,_)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),l&&t!=this.format(a)&&(this.$d=new Date("")),o={}}else if(a instanceof Array)for(var h=a.length,f=1;f<=h;f+=1){s[1]=a[f-1];var g=n.apply(this,s);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===h&&(this.$d=new Date(""))}else i.call(this,e)}}}()},8792:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},9471:(e,t,n)=>{var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(e){return function(e,t){var n,r,s,a,c,u,l,d,p,h=1,f=e.length,g="";for(r=0;r<f;r++)if("string"==typeof e[r])g+=e[r];else if("object"==typeof e[r]){if((a=e[r]).keys)for(n=t[h],s=0;s<a.keys.length;s++){if(null==n)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[s],a.keys[s-1]));n=n[a.keys[s]]}else n=a.param_no?t[a.param_no]:t[h++];if(i.not_type.test(a.type)&&i.not_primitive.test(a.type)&&n instanceof Function&&(n=n()),i.numeric_arg.test(a.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(o("[sprintf] expecting number but found %T",n));switch(i.number.test(a.type)&&(d=n>=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?g+=n:(!i.number.test(a.type)||d&&!a.sign?p="":(p=d?"+":"-",n=n.toString().replace(i.sign,"")),u=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",l=a.width-(p+n).length,c=a.width&&l>0?u.repeat(l):"",g+=a.align?p+n+c:"0"===u?p+c+n:c+p+n)}return g}(function(e){if(a[e])return a[e];for(var t,n=e,r=[],o=0;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var s=[],c=t[2],u=[];if(null===(u=i.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(u[1]);""!==(c=c.substring(u[0].length));)if(null!==(u=i.key_access.exec(c)))s.push(u[1]);else{if(null===(u=i.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(u[1])}t[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return a[e]=r}(e),arguments)}function s(e,t){return o.apply(null,[e].concat(t||[]))}var a=Object.create(null);t.sprintf=o,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=s,void 0===(r=function(){return{sprintf:o,vsprintf:s}}.call(t,n,t,e))||(e.exports=r))}()},2591:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},s=[],a=0;a<e.length;a++){var c=e[a],u=r.base?c[0]+r.base:c[0],l=o[u]||0,d="".concat(u," ").concat(l);o[u]=l+1;var p=n(d),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=i(h,r);r.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}s.push(d)}return s}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=n(o[s]);t[a].references--}for(var c=r(e,i),u=0;u<o.length;u++){var l=n(o[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=c}}},8128:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},3051:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},855:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},1740:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},3656:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8881:(e,t)=>{"use strict";t.el=t.Op=void 0;const n=(e,t)=>`((?<${e}>-?\\d*[\\.,]?\\d+)${t})?`;new RegExp(["(?<negative>-)?P",n("years","Y"),n("months","M"),n("weeks","W"),n("days","D"),"(T",n("hours","H"),n("minutes","M"),n("seconds","S"),")?"].join(""));t.Op=new Error("Invalid duration"),t.el=new Error("Multiple fractions specified")},8617:(e,t,n)=>{"use strict";var r,i;n.d(t,{G:()=>i,r:()=>r}),function(e){e.ISSUE="ISSUE",e.ARTICLE="ARTICLE",e.ISSUE_ARTICLE="ISSUE_ARTICLE",e.READ_MODE_ARTICLE="READ_MODE_ARTICLE"}(r||(r={})),function(e){e.DOWNLOAD_STARTED="DOWNLOAD_STARTED",e.DOWNLOAD_CANCELLED="DOWNLOAD_CANCELLED",e.DELETED="DELETED",e.DOWNLOADED="DOWNLOADED",e.DOWNLOAD_FAILED="DOWNLOAD_FAILED"}(i||(i={}))},5420:(e,t,n)=>{"use strict";n.d(t,{V:()=>a});var r=n(1606),i=n(8617),o=n(864),s=n(9516);class a{_content;get content(){return this._content}_publication;get publication(){return this._publication}_state;get state(){return this._state}get downloadStarted(){return this._state.downloading}_autoUpdate;get autoUpdate(){return this._autoUpdate}updating;error;listeners=[];options;useNewContentAPI;constructor(e){this.useNewContentAPI=(0,o.E7)(window.purple.content,{major:1,minor:6},r.IntOperation.GREATER_THAN),this.options=e,this._content=e.content,this._autoUpdate=e.autoUpdate,this._publication=e.publication,this.getAppState().then((e=>{if(this._state=e,e.downloading&&this._autoUpdate)try{return this.updating=!0,this.updateState(!0),this.startDownload(this._content.id)}catch(e){}})),e.addAppStateListeners&&this.addAppStateListeners()}async download(){if(this._state.installState!==r.ContentInstallState.COMPLETE||this._state.updateAvailable){this.updating=!1,this._state.downloading=!0,this.error=null;try{const e=await this.startDownload(this._content.id);return this.removeErrorStates(),this.updateState(!1,!1,!0),e}catch(e){throw console.error(e),this._state.downloading=!1,this.error=null,await this.getAppState(),this.updateState(),await this.delete(),e}}}async pause(){return this.pauseDownload(this._content.id)}async update(){return await this.syncLocalContents(),await this.updateStatesFromLocal(),this.updating=!0,this.updateState(!0),this.startDownload(this._content.id)}async delete(e=!1){this.updating=!1,await this.deleteDownload(this._content.id),this._state=await this.getAppState(),this.updateState(!1,e)}async setContent(e){this._content=e,this._state=await this.getAppState(),this.updateState()}async syncLocalContents(){if(!this.useNewContentAPI)return window.purple.catalog.syncLocalIssues({issueIds:[this._content.id]});await window.purple.content.syncLocalContents({contentIds:[this._content.id]})}addDownloadStateListeners(e){this.listeners.push(e)}updateState(e,t,n){this.trackStateUpdate(this._state,n),e||this._state.installState!==r.ContentInstallState.COMPLETE||this._state.updateAvailable||(this.updating=!1),(t||this._state.downloading||this._state.installState!==r.ContentInstallState.INCOMPLETE||this._state.error&&this._state.error!==this.error)&&this.listeners.forEach((e=>e({...this._state,updating:this.updating}))),this.error=this._state.error}async openIssue(e){if(!(0,s.xl)(this._content))return void console.error("DownloadHandler.openIssue: you tried to open a non Issue");const t=this._content;let n=e.initialPublication;const a=await(0,o.Lb)([t],t,(e=>Promise.resolve(!e.purchaseData.purchased)),null,!1!==e.additionalIssuesOnly),c=e.initialContentOnly?t.type:this.getContentType(),u=a.find((e=>e===t.id||e===t.previewIssue?.id)),l=[];if(this._publication||l.push({id:{value:t.publicationId}}),!n&&t&&l.push({id:{value:t.publicationId}}),l.length){const e=1===l.length?l[0]:{OR:l.map((e=>e))},r=(await window.purple.catalog.getPublications({publicationFilter:e})).nodes;this._publication=this._publication||r.find((e=>t.publicationId===e.id)),n=n||r.find((e=>t.publicationId===e.id))}let d=null;void 0!==e.pageIndex&&null!==e.pageIndex&&(d={index:e.pageIndex}),e.elementAlias&&(d={...d,initialElement:{aliasOrId:e.elementAlias}});const p={type:c};p.optionalParams=t?(0,o.P8)((0,o.yC)(t,n)):{},(0,o.Gw)(c)&&(p.optionalParams={...p.optionalParams,...(0,o.P8)((0,o.VP)(t,this._publication,null,"SOURCE_"))});const h={issueIds:a,initialIssue:{id:u,initialPage:d},config:{mode:r.DisplayMode.MODAL,titleBar:c===i.r.ISSUE},tracking:p};return e?.checkLocalIssues&&(!(await window.purple.catalog.getLocalIssues()).issues.find((e=>e.id===t.id))&&await this.syncLocalContents(),h.skipSync=!0),e?.openIssueConfig&&(h.config=e.openIssueConfig),window.purple.content.open(h)}getContentType(e=""){if((0,s.xl)(this._content))return this._content&&this._content.type===r.IssueType.ISSUE?i.r.ISSUE:i.r.ARTICLE}async startDownload(e){this.useNewContentAPI?await window.purple.content.startDownload({contentId:e}):await window.purple.catalog.startDownload({issueId:e})}async pauseDownload(e){if(!this.useNewContentAPI)return await window.purple.catalog.pauseDownload({issueId:e});await window.purple.content.pauseDownload({contentId:e})}async deleteDownload(e){if(!this.useNewContentAPI)return await window.purple.catalog.deleteIssue({issueId:e}).catch((e=>console.warn("Error deleting issue ",e)));await window.purple.content.deleteDownload({contentId:e}).catch((e=>console.warn("Error deleting issue ",e)))}async getAppState(){if(this.useNewContentAPI)return(await window.purple.content.getContentStates({contents:[{contentId:this._content.id,contentVersion:this._content.version}]}))[this._content.id];{const e=await window.purple.catalog.getIssueStates({issues:[{issueId:this._content.id,issueVersion:this._content.version}]});return{...e[this._content.id],contentId:e[this._content.id].issueId}}}async updateStatesFromLocal(){let e;if(this.useNewContentAPI){const t=(await window.purple.content.getLocalContents().then((e=>e.contents))).find((e=>this._content.id===e.id));this._content.version=t.version,e=t.state}else{const t=(await window.purple.catalog.getLocalIssues().then((e=>e.issues))).find((e=>this._content.id===e.id));t&&(this._content.version=t.version,e={...t.state,contentId:t.state.issueId})}this._state=e}removeErrorStates(){delete this._state.error}addAppStateListeners(){if(this.useNewContentAPI){const e=e=>{this._state=e,this.updateState()};window.purple.content.addContentStateListener({contentId:this._content.id,contentVersion:this._content.version,publicationId:this._publication.id},e)}else{const e=e=>{this._state={...e,contentId:this._content.id},this.updateState()};window.purple.catalog.addIssueStateListener({issueId:this._content.id,issueVersion:this._content.version,publicationId:this._publication.id},e)}}trackStateUpdate(e,t){if(!(this._state.installState&&e.installState!==this._state.installState||e.error||t))return;let n;if(e.error&&e.error!==this.error)n=i.G.DOWNLOAD_FAILED;else if(t)n=i.G.DOWNLOAD_STARTED;else switch(e.installState){case r.ContentInstallState.COMPLETE:n=i.G.DOWNLOADED;break;case r.ContentInstallState.NOT_INSTALLED:n=this._state.downloading&&this._state.installState===r.ContentInstallState.INCOMPLETE?i.G.DOWNLOAD_CANCELLED:i.G.DELETED}n&&this.handleTrackAction(n),this._state.installState=e.installState}handleTrackAction(e){const t=this.getContentType("_COLLECTION"),n=(0,o.Dh)(`${t}_${e}`),r=(0,o.P8)((0,o.VP)(this._content,this._publication));window.purple.tracking.trackAction({key:n,optionalParams:r})}}},4409:(e,t,n)=>{"use strict";var r;n.d(t,{O:()=>r}),function(e){e.URL="urls",e.VIEW="views",e.MESSAGE="messages",e.NAVIGATION="navigation",e.APP_BAR="appBar",e.AD="ads",e.ACCESS="access",e.MENUS="menus",e.DOWNLOAD_OPTIONS="downloadOptions",e.GENERIC_WIDGET="genericWidget",e.FEATURE="features"}(r||(r={}))},1009:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{KR:()=>isStorefrontDateMapFilter});var _purple_model__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1606),_purple_model__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_purple_model__WEBPACK_IMPORTED_MODULE_0__),_util_common_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4664),_util_purple_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(864),_util_date_util__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3931),_util_function_parsing_util__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2239);function toPurpleIssueFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleIssueFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleIssueFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}if(e.publication){const t=toPurplePublicationFilter({...e.publication,condition:e.condition});return t?{publication:t}:null}if(e.properties&&(e={...e,properties:toPurpleMapFilter(e.properties)}),t&&t.age){const e=getDateFromStorefrontDuration(t.age),n=t.age.operation||DateOperation.LESS_THAN;let r=n;switch(n){case DateOperation.LESS_THAN:r=DateOperation.GREATER_THAN;break;case DateOperation.GREATER_THAN:r=DateOperation.LESS_THAN}return{publicationDate:{value:e,operation:r}}}return t}return null}function toLocalIssueFilter(e){if(!e)return null;const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toLocalIssueFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toLocalIssueFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return e.properties&&isStorefrontDateMapFilter(e.properties)?t:null}function toLocalContentsFilter(e){if(!e)return null;const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toLocalContentsFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toLocalContentsFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return e.properties&&isStorefrontDateMapFilter(e.properties)?t:null}function toPurplePublicationFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurplePublicationFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurplePublicationFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}return null}function toPurpleSubscriptionFilter(e){if(!e||e.productId&&compareApiVersion(window.purple.catalog,{major:1,minor:4},IntOperation.LESS_THAN))return null;{const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleSubscriptionFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleSubscriptionFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}}function toPurpleCategoryFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleCategoryFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleCategoryFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}return null}function toPurpleTaxonomyFilter(e){if(e){if(e.AND){const t=e.AND.map((e=>toPurpleTaxonomyFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleTaxonomyFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}if(e.contents?.content?.value){const t=toPurpleContentFilter({...e.contents.content.value,condition:e.condition});return t?{contents:{...e.contents,content:{value:t}}}:null}return getEnabledFilter(e)}return null}function toPurpleMapFilter(e){return isStorefrontDateMapFilter(e)?null:e}function toPurpleContentFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleContentFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleContentFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}if(e.publication){const t=toPurplePublicationFilter({...e.publication,condition:e.condition});return t?{publication:t}:null}if(e.taxonomies?.content?.value){const t=toPurpleTaxonomyFilter({...e.taxonomies.content.value,condition:e.condition});return t?{taxonomies:{...e.taxonomies,content:{value:t}}}:null}if(e.publicationDate&&(t.publicationDate.value=e.publicationDate.value.toString()),t&&t.age){const e=getDateFromStorefrontDuration(t.age),n=t.age.operation||DateOperation.LESS_THAN;let r=n;switch(n){case DateOperation.LESS_THAN:r=DateOperation.GREATER_THAN;break;case DateOperation.GREATER_THAN:r=DateOperation.LESS_THAN}return{publicationDate:{value:e,operation:r}}}return t}return null}function toPurpleCollectionFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleCollectionFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleCollectionFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}return null}function toPurpleMenuItemFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleMenuItemFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleMenuItemFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}return null}function getEnabledFilter(e){if(!e)return null;const t=Object.keys(e).filter((e=>"condition"!==e))[0];if(!t)return e;const{condition:n,...r}=e[t];return isEnabled(e)?r&&r.value&&Array.isArray(r.value)?r.value.map((e=>({[t]:{...r,value:e}}))).length?{OR:r.value.map((e=>({[t]:{...r,value:e}})))}:null:r?.id?.value&&Array.isArray(r.id.value)?r.id.value.length?{OR:r.id.value.map((e=>({[t]:{...r,id:{value:e}}})))}:null:r&&r.content&&r.content.value&&r.content.value.value&&Array.isArray(r.content.value.value)?r.content.value.value.map((e=>({[t]:{...r,value:e}}))).length?{OR:r.content.value.value.map((e=>({[t]:{...r,content:{value:{value:e}}}})))}:null:{[t]:r}:null}function isConditionalValue(e){return e&&"object"==typeof e&&e.condition}function isEnabledReplaceValue(e,t,n,r,i=!0){return isConditionalValue(e)?isEnabled({condition:replaceValue(e.condition,t,n,r,i)}):!!e}function isEnabled(e){if(!isConditionalValue(e))return!!e;const t=(()=>{if(e.condition.AND){let t=!0;for(const n of e.condition.AND)if(t=isEnabled({condition:n}),!t)break;return t}if(e.condition.OR){let t=!1;for(const n of e.condition.OR)if(t=isEnabled({condition:n}),t)break;return t}const t="value"in e.condition&&isValueResolved(e.condition.value,[])?e.condition.value:void 0;let n,r;switch(e.condition.operation){case ConditionCompareOperation.NOT_SET:return!t;case ConditionCompareOperation.EQUALS_NOT:return e.condition.stringIgnoreCase?!equalsIgnoreCase(t,e.condition.compareValue):t!==e.condition.compareValue;case ConditionCompareOperation.SET:return!!t;case ConditionCompareOperation.EMPTY:return t&&!t.length;case ConditionCompareOperation.NOT_EMPTY:return t&&!!t.length;case ConditionCompareOperation.LESS_THAN:return n=parseInt(t,10),r=parseInt(e.condition.compareValue,10),isNaN(n)||isNaN(r)?(console.log("error comparing values: "+t+" < "+e.condition.compareValue),!1):n<r;case ConditionCompareOperation.GREATER_THAN:return n=parseInt(t,10),r=parseInt(e.condition.compareValue,10),isNaN(n)||isNaN(r)?(console.log("error comparing values: "+t+" > "+e.condition.compareValue),!1):n>r;case ConditionCompareOperation.CONTAINS:return void 0===t?(console.log("error comparing values: "+t+" CONTAINS "+e.condition.compareValue),!1):Array.isArray(t)?e.condition.stringIgnoreCase?t.some((t=>equalsIgnoreCase(t.toString(),e.condition.compareValue))):t.includes(e.condition.compareValue):"string"==typeof t?e.condition.stringIgnoreCase?equalsIgnoreCase(t,e.condition.compareValue):t.includes(e.condition.compareValue):Object.keys(t).includes(e.condition.compareValue)&&t[e.condition.compareValue];default:return e.condition.stringIgnoreCase?equalsIgnoreCase(t.toString(),e.condition.compareValue):t+""==e.condition.compareValue+""}})();return e.condition.negated?!t:t}function getEnabledValue(e){return"boolean"==typeof e?e:isEnabled(e)?isConditionalValue(e)&&"value"in e?e.value:e:isConditionalValue(e)&&e.fallback?getEnabledValue(e.fallback):null}const CONTEXT_IDENTIFIER="$context",FUNCTIONS_IDENTIFIER="$functions",GLOBAL_IDENTIFIER="$global";function replaceValue(e,t,n,r,i=!0){const o=typeof e;if("string"===o)return replaceStringValue(e,t,n,r,i);if("object"===o){if(Array.isArray(e))return e.map((e=>replaceValue(e,t,n,r,i)));if(e)return Object.keys(e).reduce(((o,s)=>({...o,[s]:replaceValue(e[s],t,n,r,i)})),{})}return e}const parseScopeValue=(e,t)=>(t.match(/((\w|-)+|\[[^\]]+\])/g)?.map((e=>e.replace(/[[\]'"]/g,"")))??[]).reduce(((e,t)=>e?"count"===t?Array.isArray(e)?e.length:1:e[t]:e),e);function replaceStringValue(e,t,n,r,i=!0){if(!e.includes("$"))return e;let o=e.indexOf(FUNCTIONS_IDENTIFIER);for(;o>=0;){const s=e.slice(0,o),a=e.slice(o);try{const[c,u]=evalFunctionReference(a,t,n,r);void 0===c&&i?o++:e=s+c+u}catch(e){o++,console.log(`Error while evaluating function "${a}": ${e.message}`)}o=e.indexOf(FUNCTIONS_IDENTIFIER,o)}try{(e=replaceScope(e,t,CONTEXT_IDENTIFIER,i))&&"string"==typeof e&&(e=replaceScope(e,r,GLOBAL_IDENTIFIER,i))}catch(e){console.log(e)}return"null"!==e&&"undefined"!==e&&"false"!==e&&void 0!==e&&!1!==e||(e=null),e}function replaceScope(e,t,n,r){const i=new RegExp(`\\${n}(((\\[(['"])?[\\w -_.]*(['"])?])+)|(\\.[\\w-_]+))*`,"g"),o=e.match(i);if(o&&1===o.length&&o[0]===e)return replaceSingleValue(e,t,n,r);{let i=e.split("/");return o&&o.forEach((e=>{const o=replaceSingleValue(e,t,n,r);let s=i.find((t=>t.indexOf(e)>-1));null==o?i.splice(i.indexOf(s),1):s?i[i.indexOf(s)]=s.replace(e,o):console.debug("warn: segment not found: "+s)})),i.join("/")}}function replaceSingleValue(e,t,n,r=!0){const i=e.substring(n.length),o=parseScopeValue(t,i);return"number"==typeof o||"boolean"==typeof o?o:r?""===o?"":o||e:o}function isArrayResolved(e,t){let n=!0;for(const r of e)if(n=isValueResolved(r,t),!n)break;return n}function isObjectResolved(e,t){if(!isEnabled(e))return!0;e:for(const n of Object.keys(e)){for(const e of t){if("string"==typeof e&&n===e)continue e;if(Array.isArray(e)&&e[0]===n&&(e.shift(),0===e.length))continue e}if(!isValueResolved(e[n],t))return!1}return!0}function isStringResolved(e){return-1===e.indexOf(CONTEXT_IDENTIFIER)&&-1===e.indexOf(FUNCTIONS_IDENTIFIER)&&-1===e.indexOf(GLOBAL_IDENTIFIER)}function isNumberResolved(e){return!0}function isBooleanResolved(e){return!0}function isValueResolved(e,t){switch(typeof e){case"string":return isStringResolved(e);case"number":return isNumberResolved(e);case"boolean":return isBooleanResolved(e);case"object":return Array.isArray(e)?isArrayResolved(e,t):isObjectResolved(e,t);default:return!0}}function isResolved(e,t=["content"]){return isObjectResolved(e,t)}function sortDataLocal(data,comparator){return[...data].sort(((a,b)=>{let cmp=0;if("key"in comparator){const e=a[comparator.key],t=b[comparator.key];switch(comparator.valueType){case"STRING":cmp=e.toString().localeCompare(t.toString());break;case"INT":cmp=e-t}}else if("sortFunction"in comparator){const sortFuncReturned=eval(comparator.sortFunction);"number"==typeof sortFuncReturned&&isFinite(sortFuncReturned)&&(cmp=sortFuncReturned)}return comparator.direction===SortDirection.ASC?cmp:-cmp}))}function replaceNodes(e,t){return{...e,nodes:t,totalCount:e.totalCount?e.totalCount-(e.nodes.length-t.length):e.totalCount}}function randomizeOrder(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}function isStorefrontDateMapFilter(e){return e&&"date"===e.mode}var ConditionCompareOperation,SubscriptionSortOrder;!function(e){e.EQUALS="EQUALS",e.EQUALS_NOT="EQUALS_NOT",e.NOT_SET="NOT_SET",e.SET="SET",e.EMPTY="EMPTY",e.NOT_EMPTY="NOT_EMPTY",e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.CONTAINS="CONTAINS"}(ConditionCompareOperation||(ConditionCompareOperation={})),function(e){e.DEFAULT="DEFAULT",e.DURATION="DURATION"}(SubscriptionSortOrder||(SubscriptionSortOrder={}))},4664:(e,t,n)=>{"use strict";n.d(t,{hI:()=>o,q1:()=>a}),n(1606);var r=n(4620);const i=(0,r.zk)();async function o(e,t={}){let n;try{n=await s(e,t)}catch(r){if(i.isUniversal){if(r&&parseFloat(r)>=500&&parseFloat(r)<600)try{n=await s(e,t)}catch(t){throw new Error("failed to fetch ressource "+e)}}else n=new Promise(((n,r)=>{const i=new XMLHttpRequest;i.addEventListener("load",(()=>{i.status>=400&&r({message:""+i.status});try{n(JSON.parse(i.responseText))}catch(e){r({message:"No JSON"})}})),i.addEventListener("error",(()=>{r({message:"Unknown Error"})})),i.open(t&&t.method||"GET",e),i.send()}))}return n}async function s(e,t){return fetch(e,t).then((e=>{if(e.status,e.ok)return e.json();throw new Error(e.status.toString())}))}function a(e,t,n,r,i){if(null==t||0===t.length||t.startsWith("http://")||t.startsWith("https://")||t.startsWith("purple://"))return t;{let o;return o=t.startsWith("resource://dynamic/")?new URL(t.replace("resource://dynamic/",""),e):new URL(t,`${e}storefront/index.html`),r&&(n&&o.searchParams.set("preview","true"),void 0!==i&&o.searchParams.set("version",i.toString())),o.toString()}}(0,r.YE)()},9516:(e,t,n)=>{"use strict";n.d(t,{G4:()=>o,Ig:()=>c,mF:()=>i,tr:()=>a,xl:()=>s});var r=n(1606);function i(e){return e?.contentType===r.CatalogContentType.POST}function o(e){return e?.contentType===r.CatalogContentType.BUNDLE}function s(e){return e?.contentType===r.CatalogContentType.ISSUE}function a(e){return function(e){return e.contentType===r.CatalogContentType.ISSUE}(e)?e.issue:function(e){return e.contentType===r.CatalogContentType.POST}(e)?e.post:function(e){return e.contentType===r.CatalogContentType.BUNDLE}(e)?e.bundle:void 0}function c(e){return e.contents.map((e=>e.post??e.content))}},3931:(e,t,n)=>{"use strict";var r=n(1606);n(3464),n(8881),r.AppSubscriptionAdditionalBackIssueUnlocksType},2239:()=>{"use strict";var e=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],t=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:i,"5module":i+" export import",6:i+" const class extends export import super"},s=/^in(stanceof)?$/,a=new RegExp("["+n+"]"),c=new RegExp("["+n+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function u(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function l(e,n){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&a.test(String.fromCharCode(e)):!1!==n&&u(e,t)))}function d(n,r){return n<48?36===n:n<58||!(n<65)&&(n<91||(n<97?95===n:n<123||(n<=65535?n>=170&&c.test(String.fromCharCode(n)):!1!==r&&(u(n,t)||u(n,e)))))}var p=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function h(e,t){return new p(e,{beforeExpr:!0,binop:t})}var f={beforeExpr:!0},g={startsExpr:!0},m={};function v(e,t){return void 0===t&&(t={}),t.keyword=e,m[e]=new p(e,t)}var y={num:new p("num",g),regexp:new p("regexp",g),string:new p("string",g),name:new p("name",g),privateId:new p("privateId",g),eof:new p("eof"),bracketL:new p("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new p("]"),braceL:new p("{",{beforeExpr:!0,startsExpr:!0}),braceR:new p("}"),parenL:new p("(",{beforeExpr:!0,startsExpr:!0}),parenR:new p(")"),comma:new p(",",f),semi:new p(";",f),colon:new p(":",f),dot:new p("."),question:new p("?",f),questionDot:new p("?."),arrow:new p("=>",f),template:new p("template"),invalidTemplate:new p("invalidTemplate"),ellipsis:new p("...",f),backQuote:new p("`",g),dollarBraceL:new p("${",{beforeExpr:!0,startsExpr:!0}),eq:new p("=",{beforeExpr:!0,isAssign:!0}),assign:new p("_=",{beforeExpr:!0,isAssign:!0}),incDec:new p("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new p("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h("||",1),logicalAND:h("&&",2),bitwiseOR:h("|",3),bitwiseXOR:h("^",4),bitwiseAND:h("&",5),equality:h("==/!=/===/!==",6),relational:h("</>/<=/>=",7),bitShift:h("<</>>/>>>",8),plusMin:new p("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h("%",10),star:h("*",10),slash:h("/",10),starstar:new p("**",{beforeExpr:!0}),coalesce:h("??",1),_break:v("break"),_case:v("case",f),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",f),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",f),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",g),_if:v("if"),_return:v("return",f),_switch:v("switch"),_throw:v("throw",f),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",g),_super:v("super",g),_class:v("class",g),_extends:v("extends",f),_export:v("export"),_import:v("import",g),_null:v("null",g),_true:v("true",g),_false:v("false",g),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},E=/\r\n?|\n|\u2028|\u2029/,_=new RegExp(E.source,"g");function b(e){return 10===e||13===e||8232===e||8233===e}function C(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(b(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var S=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,I=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,D=Object.prototype,w=D.hasOwnProperty,T=D.toString,O=Object.hasOwn||function(e,t){return w.call(e,t)},A=Array.isArray||function(e){return"[object Array]"===T.call(e)},N=Object.create(null);function M(e){return N[e]||(N[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function P(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var R=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,x=function(e,t){this.line=e,this.column=t};x.prototype.offset=function(e){return new x(this.line,this.column+e)};var k=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function L(e,t){for(var n=1,r=0;;){var i=C(e,r,t);if(i<0)return new x(n,t-r);++n,r=i}}var F={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},U=!1;function j(e,t){return 2|(e?4:0)|(t?8:0)}var V=function(e,t,n){this.options=e=function(e){var t={};for(var n in F)t[n]=e&&O(e,n)?e[n]:F[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!U&&"object"==typeof console&&console.warn&&(U=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),A(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return A(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,o,s,a){var c={type:n?"Block":"Line",value:r,start:i,end:o};e.locations&&(c.loc=new k(this,s,a)),e.ranges&&(c.range=[i,o]),t.push(c)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=M(o[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var i="";!0!==e.allowReserved&&(i=r[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(i+=" await")),this.reservedWords=M(i);var s=(i?i+" ":"")+r.strict;this.reservedWordsStrict=M(s),this.reservedWordsStrictBind=M(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(E).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},$={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};V.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},$.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},$.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},$.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},$.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},$.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},$.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},$.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},$.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},$.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},V.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},V.parse=function(e,t){return new this(t,e).parse()},V.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},V.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(V.prototype,$);var B=V.prototype,H=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;B.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){I.lastIndex=e,e+=I.exec(this.input)[0].length;var t=H.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){I.lastIndex=e+t[0].length;var n=I.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||E.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,I.lastIndex=e,e+=I.exec(this.input)[0].length,";"===this.input[e]&&e++}},B.eat=function(e){return this.type===e&&(this.next(),!0)},B.isContextual=function(e){return this.type===y.name&&this.value===e&&!this.containsEsc},B.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},B.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},B.canInsertSemicolon=function(){return this.type===y.eof||this.type===y.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))},B.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},B.semicolon=function(){this.eat(y.semi)||this.insertSemicolon()||this.unexpected()},B.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},B.expect=function(e){this.eat(e)||this.unexpected()},B.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var G=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};B.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},B.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},B.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},B.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var q=V.prototype;q.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==y.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var o=i[r];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var z={kind:"loop"},W={kind:"switch"};q.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;I.lastIndex=this.pos;var t=I.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(l(r,!0)){for(var i=n+1;d(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var o=this.input.slice(n,i);if(!s.test(o))return!0}return!1},q.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;I.lastIndex=this.pos;var e,t=I.exec(this.input),n=this.pos+t[0].length;return!(E.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(d(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},q.parseStatement=function(e,t,n){var r,i=this.type,o=this.startNode();switch(this.isLet(e)&&(i=y._var,r="let"),i){case y._break:case y._continue:return this.parseBreakContinueStatement(o,i.keyword);case y._debugger:return this.parseDebuggerStatement(o);case y._do:return this.parseDoStatement(o);case y._for:return this.parseForStatement(o);case y._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case y._class:return e&&this.unexpected(),this.parseClass(o,!0);case y._if:return this.parseIfStatement(o);case y._return:return this.parseReturnStatement(o);case y._switch:return this.parseSwitchStatement(o);case y._throw:return this.parseThrowStatement(o);case y._try:return this.parseTryStatement(o);case y._const:case y._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(o,r);case y._while:return this.parseWhileStatement(o);case y._with:return this.parseWithStatement(o);case y.braceL:return this.parseBlock(!0,o);case y.semi:return this.parseEmptyStatement(o);case y._export:case y._import:if(this.options.ecmaVersion>10&&i===y._import){I.lastIndex=this.pos;var s=I.exec(this.input),a=this.pos+s[0].length,c=this.input.charCodeAt(a);if(40===c||46===c)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===y._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var u=this.value,l=this.parseExpression();return i===y.name&&"Identifier"===l.type&&this.eat(y.colon)?this.parseLabeledStatement(o,u,l,e):this.parseExpressionStatement(o,l)}},q.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(y.semi)||this.insertSemicolon()?e.label=null:this.type!==y.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},q.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},q.parseDoStatement=function(e){return this.next(),this.labels.push(z),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(y._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(y.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},q.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(z),this.enterScope(0),this.expect(y.parenL),this.type===y.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===y._var||this.type===y._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===y._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var o=this.isContextual("let"),s=!1,a=this.containsEsc,c=new G,u=this.start,l=t>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===y._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===y._in&&this.unexpected(t),e.await=!0):s&&this.options.ecmaVersion>=8&&(l.start!==u||a||"Identifier"!==l.type||"async"!==l.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),o&&s&&this.raise(l.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(l,!1,c),this.checkLValPattern(l),this.parseForIn(e,l)):(this.checkExpressionErrors(c,!0),t>-1&&this.unexpected(t),this.parseFor(e,l))},q.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Q|(n?0:Y),!1,t)},q.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(y._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},q.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(y.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},q.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(y.braceL),this.labels.push(W),this.enterScope(0);for(var n=!1;this.type!==y.braceR;)if(this.type===y._case||this.type===y._default){var r=this.type===y._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(y.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},q.parseThrowStatement=function(e){return this.next(),E.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var K=[];q.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(y.parenR),e},q.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===y._catch){var t=this.startNode();this.next(),this.eat(y.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(y._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},q.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},q.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(z),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},q.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},q.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},q.parseLabeledStatement=function(e,t,n,r){for(var i=0,o=this.labels;i<o.length;i+=1)o[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var s=this.type.isLoop?"loop":this.type===y._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var c=this.labels[a];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},q.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},q.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(y.braceL),e&&this.enterScope(0);this.type!==y.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},q.parseFor=function(e,t){return e.init=t,this.expect(y.semi),e.test=this.type===y.semi?null:this.parseExpression(),this.expect(y.semi),e.update=this.type===y.parenR?null:this.parseExpression(),this.expect(y.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},q.parseForIn=function(e,t){var n=this.type===y._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(y.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},q.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(y.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===y._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(y.comma))break}return e},q.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var Q=1,Y=2;function Z(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function J(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}q.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===y.star&&t&Y&&this.unexpected(),e.generator=this.eat(y.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Q&&(e.id=4&t&&this.type!==y.name?null:this.parseIdent(),!e.id||t&Y||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(j(e.async,e.generator)),t&Q||(e.id=this.type===y.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=o,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&Q?"FunctionDeclaration":"FunctionExpression")},q.parseFunctionParams=function(e){this.expect(y.parenL),e.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},q.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(y.braceL);this.type!==y.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(o&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),o=!0):s.key&&"PrivateIdentifier"===s.key.type&&Z(r,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},q.parseClassElement=function(e){if(this.eat(y.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,o=!1,s="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(y.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===y.star?a=!0:r="static"}if(n.static=a,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==y.star||this.canInsertSemicolon()?r="async":o=!0),!r&&(t>=9||!o)&&this.eat(y.star)&&(i=!0),!r&&!o&&!i){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===y.parenL||"method"!==s||i||o){var u=!n.static&&J(n,"constructor"),l=u&&e;u&&"method"!==s&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=u?"constructor":s,this.parseClassMethod(n,i,o,l)}else this.parseClassField(n);return n},q.isClassElementNameStart=function(){return this.type===y.name||this.type===y.privateId||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword},q.parseClassElementName=function(e){this.type===y.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},q.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&J(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==o.params.length&&this.raiseRecoverable(o.start,"getter should have no params"),"set"===e.kind&&1!==o.params.length&&this.raiseRecoverable(o.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===o.params[0].type&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},q.parseClassField=function(e){if(J(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&J(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(y.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},q.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==y.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},q.parseClassId=function(e,t){this.type===y.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},q.parseClassSuper=function(e){e.superClass=this.eat(y._extends)?this.parseExprSubscripts(null,!1):null},q.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},q.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],o=0;o<n.length;++o){var s=n[o];O(t,s.name)||(i?i.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}},q.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==y.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},q.parseExport=function(e,t){if(this.next(),this.eat(y.star))return this.parseExportAllDeclaration(e,t);if(this.eat(y._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==y.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},q.parseExportDeclaration=function(e){return this.parseStatement(null)},q.parseExportDefaultDeclaration=function(){var e;if(this.type===y._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|Q,!1,e)}if(this.type===y._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},q.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),O(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},q.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var o=i[r];this.checkPatternExport(e,o)}else if("ArrayPattern"===n)for(var s=0,a=t.elements;s<a.length;s+=1){var c=a[s];c&&this.checkPatternExport(e,c)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n&&this.checkPatternExport(e,t.argument)},q.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},q.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},q.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},q.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(y.braceL);!this.eat(y.braceR);){if(n)n=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;t.push(this.parseExportSpecifier(e))}return t},q.parseImport=function(e){return this.next(),this.type===y.string?(e.specifiers=K,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===y.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},q.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},q.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},q.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},q.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===y.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(y.comma)))return e;if(this.type===y.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(y.braceL);!this.eat(y.braceR);){if(t)t=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;e.push(this.parseImportSpecifier())}return e},q.parseWithClause=function(){var e=[];if(!this.eat(y._with))return e;this.expect(y.braceL);for(var t={},n=!0;!this.eat(y.braceR);){if(n)n=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;var r=this.parseImportAttribute(),i="Identifier"===r.key.type?r.key.name:r.key.value;O(t,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(r)}return e},q.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===y.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(y.colon),this.type!==y.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},q.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===y.string){var e=this.parseLiteral(this.value);return R.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},q.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},q.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var X=V.prototype;X.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var o=i[r];this.toAssignable(o,t),"RestElement"!==o.type||"ArrayPattern"!==o.argument.type&&"ObjectPattern"!==o.argument.type||this.raise(o.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},X.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var o=e[n-1];6===this.options.ecmaVersion&&t&&o&&"RestElement"===o.type&&"Identifier"!==o.argument.type&&this.unexpected(o.argument.start)}return e},X.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},X.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==y.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},X.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case y.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(y.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case y.braceL:return this.parseObj(!0)}return this.parseIdent()},X.parseBindingList=function(e,t,n,r){for(var i=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(y.comma),t&&this.type===y.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===y.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),i.push(s),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}i.push(this.parseAssignableListItem(r))}return i},X.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},X.parseBindingListItem=function(e){return e},X.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(y.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},X.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(O(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},X.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var o=i[r];this.checkLValInnerPattern(o,t,n)}break;case"ArrayPattern":for(var s=0,a=e.elements;s<a.length;s+=1){var c=a[s];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},X.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var ee=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},te={b_stat:new ee("{",!1),b_expr:new ee("{",!0),b_tmpl:new ee("${",!1),p_stat:new ee("(",!1),p_expr:new ee("(",!0),q_tmpl:new ee("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ee("function",!1),f_expr:new ee("function",!0),f_expr_gen:new ee("function",!0,!1,null,!0),f_gen:new ee("function",!1,!1,null,!0)},ne=V.prototype;ne.initialContext=function(){return[te.b_stat]},ne.curContext=function(){return this.context[this.context.length-1]},ne.braceIsBlock=function(e){var t=this.curContext();return t===te.f_expr||t===te.f_stat||(e!==y.colon||t!==te.b_stat&&t!==te.b_expr?e===y._return||e===y.name&&this.exprAllowed?E.test(this.input.slice(this.lastTokEnd,this.start)):e===y._else||e===y.semi||e===y.eof||e===y.parenR||e===y.arrow||(e===y.braceL?t===te.b_stat:e!==y._var&&e!==y._const&&e!==y.name&&!this.exprAllowed):!t.isExpr)},ne.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ne.updateContext=function(e){var t,n=this.type;n.keyword&&e===y.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},ne.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},y.parenR.updateContext=y.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===te.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},y.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?te.b_stat:te.b_expr),this.exprAllowed=!0},y.dollarBraceL.updateContext=function(){this.context.push(te.b_tmpl),this.exprAllowed=!0},y.parenL.updateContext=function(e){var t=e===y._if||e===y._for||e===y._with||e===y._while;this.context.push(t?te.p_stat:te.p_expr),this.exprAllowed=!0},y.incDec.updateContext=function(){},y._function.updateContext=y._class.updateContext=function(e){!e.beforeExpr||e===y._else||e===y.semi&&this.curContext()!==te.p_stat||e===y._return&&E.test(this.input.slice(this.lastTokEnd,this.start))||(e===y.colon||e===y.braceL)&&this.curContext()===te.b_stat?this.context.push(te.f_stat):this.context.push(te.f_expr),this.exprAllowed=!1},y.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},y.backQuote.updateContext=function(){this.curContext()===te.q_tmpl?this.context.pop():this.context.push(te.q_tmpl),this.exprAllowed=!1},y.star.updateContext=function(e){if(e===y._function){var t=this.context.length-1;this.context[t]===te.f_expr?this.context[t]=te.f_expr_gen:this.context[t]=te.f_gen}this.exprAllowed=!0},y.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==y.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var re=V.prototype;function ie(e){return"Identifier"===e.type||"ParenthesizedExpression"===e.type&&ie(e.expression)}function oe(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&oe(e.expression)||"ParenthesizedExpression"===e.type&&oe(e.expression)}re.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===o&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var s=t[r="$"+r];s?("init"===o?this.strict&&s.init||s.get||s.set:s.init||s[o])&&this.raiseRecoverable(i.start,"Redefinition of property"):s=t[r]={init:!1,get:!1,set:!1},s[o]=!0}}},re.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===y.comma){var o=this.startNodeAt(n,r);for(o.expressions=[i];this.eat(y.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i},re.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,o=-1,s=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new G,r=!0);var a=this.start,c=this.startLoc;this.type!==y.parenL&&this.type!==y.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,a,c)),this.type.isAssign){var l=this.startNodeAt(a,c);return l.operator=this.value,this.type===y.eq&&(u=this.toAssignable(u,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=u.start&&(t.shorthandAssign=-1),this.type===y.eq?this.checkLValPattern(u):this.checkLValSimple(u),l.left=u,this.next(),l.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(l,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),u},re.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(y.question)){var o=this.startNodeAt(n,r);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(y.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i},re.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},re.parseExprOp=function(e,t,n,r,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==y._in)&&o>r){var s=this.type===y.logicalOR||this.type===y.logicalAND,a=this.type===y.coalesce;a&&(o=y.logicalAND.binop);var c=this.value;this.next();var u=this.start,l=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),u,l,o,i),p=this.buildBinary(t,n,e,d,c,s||a);return(s&&this.type===y.coalesce||a&&(this.type===y.logicalOR||this.type===y.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,t,n,r,i)}return e},re.buildBinary=function(e,t,n,r,i,o){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=n,s.operator=i,s.right=r,this.finishNode(s,o?"LogicalExpression":"BinaryExpression")},re.parseMaybeUnary=function(e,t,n,r){var i,o=this.start,s=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var a=this.startNode(),c=this.type===y.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&ie(a.argument)?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&oe(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(a,c?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==y.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var u=this.startNodeAt(o,s);u.operator=this.value,u.prefix=!1,u.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(u,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==y._in&&this.unexpected();return n||!this.eat(y.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(o,s,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},re.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var o=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o},re.parseSubscripts=function(e,t,n,r,i){for(var o=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var a=this.parseSubscript(e,t,n,r,o,s,i);if(a.optional&&(s=!0),a===e||"ArrowFunctionExpression"===a.type){if(s){var c=this.startNodeAt(t,n);c.expression=a,a=this.finishNode(c,"ChainExpression")}return a}e=a}},re.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(y.arrow)},re.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},re.parseSubscript=function(e,t,n,r,i,o,s){var a=this.options.ecmaVersion>=11,c=a&&this.eat(y.questionDot);r&&c&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(y.bracketL);if(u||c&&this.type!==y.parenL&&this.type!==y.backQuote||this.eat(y.dot)){var l=this.startNodeAt(t,n);l.object=e,u?(l.property=this.parseExpression(),this.expect(y.bracketR)):this.type===y.privateId&&"Super"!==e.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!u,a&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(!r&&this.eat(y.parenL)){var d=new G,p=this.yieldPos,h=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var g=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=h,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,n,g,s);this.checkExpressionErrors(d,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var m=this.startNodeAt(t,n);m.callee=e,m.arguments=g,a&&(m.optional=c),e=this.finishNode(m,"CallExpression")}else if(this.type===y.backQuote){(c||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,n);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e},re.parseExprAtom=function(e,t,n){this.type===y.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case y._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==y.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==y.dot&&this.type!==y.bracketL&&this.type!==y.parenL&&this.unexpected(),this.finishNode(r,"Super");case y._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case y.name:var o=this.start,s=this.startLoc,a=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(y._function))return this.overrideContext(te.f_expr),this.parseFunction(this.startNodeAt(o,s),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(y.arrow))return this.parseArrowExpression(this.startNodeAt(o,s),[c],!1,t);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===y.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(y.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,s),[c],!0,t)}return c;case y.regexp:var u=this.value;return(r=this.parseLiteral(u.value)).regex={pattern:u.pattern,flags:u.flags},r;case y.num:case y.string:return this.parseLiteral(this.value);case y._null:case y._true:case y._false:return(r=this.startNode()).value=this.type===y._null?null:this.type===y._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case y.parenL:var l=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),d;case y.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(y.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case y.braceL:return this.overrideContext(te.b_expr),this.parseObj(!1,e);case y._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case y._class:return this.parseClass(this.startNode(),!1);case y._new:return this.parseNew();case y.backQuote:return this.parseTemplate();case y._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},re.parseExprAtomDefault=function(){this.unexpected()},re.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===y.parenL&&!e)return this.parseDynamicImport(t);if(this.type===y.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},re.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(y.parenR)?e.options=null:(this.expect(y.comma),this.afterTrailingComma(y.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(y.parenR)||(this.expect(y.comma),this.afterTrailingComma(y.parenR)||this.unexpected())));else if(!this.eat(y.parenR)){var t=this.start;this.eat(y.comma)&&this.eat(y.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},re.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},re.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},re.parseParenExpression=function(){this.expect(y.parenL);var e=this.parseExpression();return this.expect(y.parenR),e},re.shouldParseArrow=function(e){return!this.canInsertSemicolon()},re.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,c=this.startLoc,u=[],l=!0,d=!1,p=new G,h=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==y.parenR;){if(l?l=!1:this.expect(y.comma),o&&this.afterTrailingComma(y.parenR,!0)){d=!0;break}if(this.type===y.ellipsis){s=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var g=this.lastTokEnd,m=this.lastTokEndLoc;if(this.expect(y.parenR),e&&this.shouldParseArrow(u)&&this.eat(y.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=f,this.parseParenArrowList(r,i,u,t);u.length&&!d||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(p,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=f||this.awaitPos,u.length>1?((n=this.startNodeAt(a,c)).expressions=u,this.finishNodeAt(n,"SequenceExpression",g,m)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(r,i);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},re.parseParenItem=function(e){return e},re.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var se=[];re.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===y.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(y.parenL)?e.arguments=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1):e.arguments=se,this.finishNode(e,"NewExpression")},re.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===y.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===y.backQuote,this.finishNode(n,"TemplateElement")},re.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(y.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(y.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},re.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===y.name||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===y.star)&&!E.test(this.input.slice(this.lastTokEnd,this.start))},re.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(y.braceR);){if(r)r=!1;else if(this.expect(y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(y.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),n.properties.push(o)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},re.parseProperty=function(e,t){var n,r,i,o,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(y.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===y.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(n=this.eat(y.star)));var a=this.containsEsc;return this.parsePropertyName(s),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(s)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(y.star),this.parsePropertyName(s)):r=!1,this.parsePropertyValue(s,e,n,r,i,o,t,a),this.finishNode(s,"Property")},re.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},re.parsePropertyValue=function(e,t,n,r,i,o,s,a){(n||r)&&this.type===y.colon&&this.unexpected(),this.eat(y.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===y.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r)):t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===y.comma||this.type===y.braceR||this.type===y.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===y.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},re.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(y.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(y.bracketR),e.key;e.computed=!1}return e.key=this.type===y.num||this.type===y.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},re.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},re.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|j(t,r.generator)|(n?128:0)),this.expect(y.parenL),r.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(r,"FunctionExpression")},re.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|j(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},re.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==y.braceL,o=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!a||(s=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!o&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},re.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if("Identifier"!==n[t].type)return!1;return!0},re.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var o=i[r];this.checkLValInnerPattern(o,1,t?null:n)}},re.parseExprList=function(e,t,n,r){for(var i=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(y.comma),t&&this.afterTrailingComma(e))break;var s=void 0;n&&this.type===y.comma?s=null:this.type===y.ellipsis?(s=this.parseSpread(r),r&&this.type===y.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):s=this.parseMaybeAssign(!1,r),i.push(s)}return i},re.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},re.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},re.parseIdentNode=function(){var e=this.startNode();return this.type===y.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=y.name):this.unexpected(),e},re.parsePrivateIdent=function(){var e=this.startNode();return this.type===y.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},re.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===y.semi||this.canInsertSemicolon()||this.type!==y.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(y.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},re.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var ae=V.prototype;ae.raise=function(e,t){var n=L(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},ae.raiseRecoverable=ae.raise,ae.curPosition=function(){if(this.options.locations)return new x(this.curLine,this.pos-this.lineStart)};var ce=V.prototype,ue=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ce.enterScope=function(e){this.scopeStack.push(new ue(e))},ce.exitScope=function(){this.scopeStack.pop()},ce.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ce.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var o=this.currentScope();r=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var a=this.scopeStack[s];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){r=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],259&a.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},ce.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ce.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ce.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},ce.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var le=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new k(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},de=V.prototype;function pe(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}de.startNode=function(){return new le(this,this.start,this.startLoc)},de.startNodeAt=function(e,t){return new le(this,e,t)},de.finishNode=function(e,t){return pe.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},de.finishNodeAt=function(e,t,n,r){return pe.call(this,e,t,n,r)},de.copyNode=function(e){var t=new le(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var he,fe,ge="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",me=ge+" Extended_Pictographic",ve=me+" EBase EComp EMod EPres ExtPict",ye={9:ge,10:me,11:me,12:ve,13:ve,14:ve},Ee={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},_e="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",be="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Ce=be+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Se=Ce+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ie=Se+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",De=Ie+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",we={9:be,10:Ce,11:Se,12:Ie,13:De,14:De+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},Te={};for(var Oe=0,Ae=[9,10,11,12,13,14];Oe<Ae.length;Oe+=1)fe=void 0,(fe=Te[he=Ae[Oe]]={binary:M(ye[he]+" "+_e),binaryOfStrings:M(Ee[he]),nonBinary:{General_Category:M(_e),Script:M(we[he])}}).nonBinary.Script_Extensions=fe.nonBinary.Script,fe.nonBinary.gc=fe.nonBinary.General_Category,fe.nonBinary.sc=fe.nonBinary.Script,fe.nonBinary.scx=fe.nonBinary.Script_Extensions;var Ne=V.prototype,Me=function(e,t){this.parent=e,this.base=t||this};Me.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},Me.prototype.sibling=function(){return new Me(this.parent,this.base)};var Pe=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Te[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function Re(e){return 105===e||109===e||115===e}function xe(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function ke(e){return e>=65&&e<=90||e>=97&&e<=122}function Le(e){return ke(e)||95===e}function Fe(e){return Le(e)||Ue(e)}function Ue(e){return e>=48&&e<=57}function je(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Ve(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function $e(e){return e>=48&&e<=55}Pe.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},Pe.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Pe.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var o=n.charCodeAt(e+1);return o>=56320&&o<=57343?(i<<10)+o-56613888:i},Pe.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,o=n.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Pe.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Pe.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Pe.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Pe.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Pe.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var o=i[r],s=this.at(n,t);if(-1===s||s!==o)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},Ne.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,o=0;o<n.length;o++){var s=n.charAt(o);-1===t.indexOf(s)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(s,o+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===s&&(r=!0),"v"===s&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},Ne.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Ne.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}},Ne.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Me(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Ne.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Ne.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Ne.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Ne.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Ne.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Ne.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},Ne.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Ne.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Ne.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var o=n.charAt(i);n.indexOf(o,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(r){var s=this.regexp_eatModifiers(e);n||s||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var a=0;a<s.length;a++){var c=s.charAt(a);(s.indexOf(c,a+1)>-1||n.indexOf(c)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},Ne.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Ne.regexp_eatModifiers=function(e){for(var t="",n=0;-1!==(n=e.current())&&Re(n);)t+=P(n),e.advance();return t},Ne.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Ne.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Ne.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!xe(t)&&(e.lastIntValue=t,e.advance(),!0)},Ne.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!xe(n);)e.advance();return e.pos!==t},Ne.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Ne.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var r=0,i=n;r<i.length;r+=1)i[r].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},Ne.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Ne.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=P(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=P(e.lastIntValue);return!0}return!1},Ne.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return l(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ne.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Ne.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Ne.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Ne.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Ne.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Ne.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Ne.regexp_eatZero=function(e){return 48===e.current()&&!Ue(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Ne.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Ne.regexp_eatControlLetter=function(e){var t=e.current();return!!ke(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Ne.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(i&&o>=55296&&o<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(o-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=o}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},Ne.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Ne.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Ne.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===r&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return 0},Ne.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},Ne.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){O(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Ne.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Ne.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Le(t=e.current());)e.lastStringValue+=P(t),e.advance();return""!==e.lastStringValue},Ne.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Fe(t=e.current());)e.lastStringValue+=P(t),e.advance();return""!==e.lastStringValue},Ne.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Ne.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},Ne.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Ne.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},Ne.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||$e(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},Ne.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Ne.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},Ne.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Ne.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Ne.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},Ne.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},Ne.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Ne.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Ne.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n)||function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)||(e.advance(),e.lastIntValue=n,0))},Ne.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Ne.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ue(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Ne.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Ne.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ue(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Ne.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;je(n=e.current());)e.lastIntValue=16*e.lastIntValue+Ve(n),e.advance();return e.pos!==t},Ne.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Ne.regexp_eatOctalDigit=function(e){var t=e.current();return $e(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Ne.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!je(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Ve(i),e.advance()}return!0};var Be=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new k(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},He=V.prototype;function Ge(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}He.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Be(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},He.getToken=function(){return this.next(),new Be(this)},"undefined"!=typeof Symbol&&(He[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===y.eof,value:t}}}}),He.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(y.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},He.readToken=function(e){return l(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},He.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},He.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=C(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},He.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!b(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},He.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&S.test(String.fromCharCode(e))))break e;++this.pos}}},He.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},He.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(y.ellipsis)):(++this.pos,this.finishToken(y.dot))},He.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(y.assign,2):this.finishOp(y.slash,1)},He.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?y.star:y.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=y.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(y.assign,n+1):this.finishOp(r,n)},He.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(y.assign,3):this.finishOp(124===e?y.logicalOR:y.logicalAND,2):61===t?this.finishOp(y.assign,2):this.finishOp(124===e?y.bitwiseOR:y.bitwiseAND,1)},He.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(y.assign,2):this.finishOp(y.bitwiseXOR,1)},He.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!E.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(y.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(y.assign,2):this.finishOp(y.plusMin,1)},He.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(y.assign,n+1):this.finishOp(y.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(y.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},He.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(y.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(y.arrow)):this.finishOp(61===e?y.eq:y.prefix,1)},He.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(y.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(y.assign,3):this.finishOp(y.coalesce,2)}return this.finishOp(y.question,1)},He.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,l(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(y.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+P(e)+"'")},He.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(y.parenL);case 41:return++this.pos,this.finishToken(y.parenR);case 59:return++this.pos,this.finishToken(y.semi);case 44:return++this.pos,this.finishToken(y.comma);case 91:return++this.pos,this.finishToken(y.bracketL);case 93:return++this.pos,this.finishToken(y.bracketR);case 123:return++this.pos,this.finishToken(y.braceL);case 125:return++this.pos,this.finishToken(y.braceR);case 58:return++this.pos,this.finishToken(y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(y.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(y.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+P(e)+"'")},He.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},He.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(E.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var o=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(o);var a=this.regexpState||(this.regexpState=new Pe(this));a.reset(n,i,s),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var c=null;try{c=new RegExp(i,s)}catch(e){}return this.finishToken(y.regexp,{pattern:i,flags:s,value:c})},He.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),o=this.pos,s=0,a=0,c=0,u=null==t?1/0:t;c<u;++c,++this.pos){var l=this.input.charCodeAt(this.pos),d=void 0;if(r&&95===l)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===c&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=l;else{if((d=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;a=l,s=s*e+d}}return r&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:s},He.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=Ge(this.input.slice(t,this.pos)),++this.pos):l(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,n)},He.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=Ge(this.input.slice(t,this.pos));return++this.pos,l(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),l(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,s=(o=this.input.slice(t,this.pos),n?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(y.num,s)},He.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},He.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(b(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(y.string,t)};var qe={};He.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==qe)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},He.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw qe;this.raise(e,t)},He.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==y.template&&this.type!==y.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(y.template,e)):36===n?(this.pos+=2,this.finishToken(y.dollarBraceL)):(++this.pos,this.finishToken(y.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(b(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},He.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(y.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},He.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return P(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return b(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},He.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},He.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(d(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var o=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?l:d)(s,r)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=P(s),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},He.readWord=function(){var e=this.readWord1(),t=y.name;return this.keywords.test(e)&&(t=m[e]),this.finishToken(t,e)},V.acorn={Parser:V,version:"8.14.0",defaultOptions:F,Position:x,SourceLocation:k,getLineInfo:L,Node:le,TokenType:p,tokTypes:y,keywordTypes:m,TokContext:ee,tokContexts:te,isIdentifierChar:d,isIdentifierStart:l,Token:Be,isNewLine:b,lineBreak:E,lineBreakG:_,nonASCIIwhitespace:S}},864:(e,t,n)=>{"use strict";n.d(t,{fj:()=>tX,G9:()=>qJ,r6:()=>eX,Wp:()=>nX,Ty:()=>GJ,E7:()=>zJ,VP:()=>WJ,yC:()=>KJ,Lb:()=>HJ,Gw:()=>XJ,P8:()=>JJ,Dh:()=>ZJ});var r={};function i(e,t){return Object.is(e,t)}n.r(r),n.d(r,{ANIMATION_MODULE_TYPE:()=>El,APP_BOOTSTRAP_LISTENER:()=>Ab,APP_ID:()=>fl,APP_INITIALIZER:()=>Ib,AfterRenderPhase:()=>ed,ApplicationInitStatus:()=>wb,ApplicationModule:()=>JA,ApplicationRef:()=>kb,Attribute:()=>yc,COMPILER_OPTIONS:()=>OO,CSP_NONCE:()=>_l,CUSTOM_ELEMENTS_SCHEMA:()=>Jh,ChangeDetectionStrategy:()=>Pu,ChangeDetectorRef:()=>vA,Compiler:()=>TO,CompilerFactory:()=>AO,Component:()=>vO,ComponentFactory:()=>Zv,ComponentFactoryResolver:()=>Xv,ComponentRef:()=>Yv,ContentChild:()=>dE,ContentChildren:()=>lE,DEFAULT_CURRENCY_CODE:()=>HO,DebugElement:()=>IA,DebugEventListener:()=>bA,DebugNode:()=>SA,DefaultIterableDiffer:()=>kA,DestroyRef:()=>Rc,Directive:()=>mO,ENVIRONMENT_INITIALIZER:()=>Gr,ElementRef:()=>fu,EmbeddedViewRef:()=>_A,EnvironmentInjector:()=>vi,ErrorHandler:()=>ou,EventEmitter:()=>Hc,HOST_TAG_NAME:()=>Mc,Host:()=>Nr,HostAttributeToken:()=>Nc,HostBinding:()=>bO,HostListener:()=>CO,INJECTOR:()=>qr,Inject:()=>wr,InjectFlags:()=>ar,Injectable:()=>wc,InjectionToken:()=>Ln,Injector:()=>Ac,Input:()=>EO,IterableDiffers:()=>GA,KeyValueDiffers:()=>zA,LOCALE_ID:()=>BO,MissingTranslationStrategy:()=>zO,ModuleWithComponentFactories:()=>wO,NO_ERRORS_SCHEMA:()=>Xh,NgModule:()=>SO,NgModuleFactory:()=>AE,NgModuleRef:()=>OE,NgProbeToken:()=>Rb,NgZone:()=>Zc,Optional:()=>Tr,Output:()=>_O,OutputEmitterRef:()=>au,PACKAGE_ROOT_URL:()=>yl,PLATFORM_ID:()=>vl,PLATFORM_INITIALIZER:()=>ml,PendingTasks:()=>Bc,Pipe:()=>yO,PlatformRef:()=>JO,Query:()=>uE,QueryList:()=>Iu,REQUEST:()=>xM,REQUEST_CONTEXT:()=>LM,RESPONSE_INIT:()=>kM,Renderer2:()=>ty,RendererFactory2:()=>ey,RendererStyleFlags2:()=>Rg,ResourceStatus:()=>TM,Sanitizer:()=>ny,SecurityContext:()=>Fh,Self:()=>Or,SimpleChange:()=>Go,SkipSelf:()=>Ar,TRANSLATIONS:()=>GO,TRANSLATIONS_FORMAT:()=>qO,TemplateRef:()=>Am,Testability:()=>yb,TestabilityRegistry:()=>Eb,TransferState:()=>Dl,Type:()=>Pi,VERSION:()=>DO,Version:()=>IO,ViewChild:()=>hE,ViewChildren:()=>pE,ViewContainerRef:()=>yy,ViewEncapsulation:()=>Up,ViewRef:()=>EA,afterNextRender:()=>sd,afterRender:()=>od,afterRenderEffect:()=>wM,asNativeElements:()=>CA,assertInInjectionContext:()=>wi,assertNotInReactiveContext:()=>Xl,assertPlatform:()=>iA,booleanAttribute:()=>kN,computed:()=>nM,contentChild:()=>nE,contentChildren:()=>rE,createComponent:()=>MM,createEnvironmentInjector:()=>kE,createNgModule:()=>NE,createNgModuleRef:()=>ME,createPlatform:()=>tA,createPlatformFactory:()=>nA,defineInjectable:()=>wn,destroyPlatform:()=>sA,effect:()=>yM,enableProdMode:()=>hA,forwardRef:()=>rn,getDebugNode:()=>PA,getModuleFactory:()=>fA,getNgModuleById:()=>gA,getPlatform:()=>oA,importProvidersFrom:()=>ti,inject:()=>Cr,input:()=>du,isDevMode:()=>pA,isSignal:()=>yu,isStandalone:()=>Jr,linkedSignal:()=>iM,makeEnvironmentProviders:()=>Xr,makeStateKey:()=>Sl,mergeApplicationConfig:()=>RM,model:()=>aE,numberAttribute:()=>LN,output:()=>uu,platformCore:()=>ZA,provideAppInitializer:()=>Db,provideEnvironmentInitializer:()=>ei,provideExperimentalCheckNoChangesForDebug:()=>uA,provideExperimentalZonelessChangeDetection:()=>$O,providePlatformInitializer:()=>aA,provideZoneChangeDetection:()=>kO,reflectComponentType:()=>PM,resolveForwardRef:()=>on,resource:()=>OM,runInInjectionContext:()=>Ii,setTestabilityGetter:()=>_b,signal:()=>_u,untracked:()=>uM,viewChild:()=>Xy,viewChildren:()=>eE,ɵALLOW_MULTIPLE_PLATFORMS:()=>eA,ɵAfterRenderManager:()=>td,ɵCONTAINER_HEADER_OFFSET:()=>yo,ɵChangeDetectionScheduler:()=>Lc,ɵChangeDetectionSchedulerImpl:()=>VO,ɵComponentFactory:()=>Zv,ɵConsole:()=>K_,ɵDEFAULT_LOCALE_ID:()=>SI,ɵDEFER_BLOCK_CONFIG:()=>R_,ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>P_,ɵDeferBlockBehavior:()=>Id,ɵDeferBlockState:()=>pd,ɵENABLE_ROOT_COMPONENT_BOOTSTRAP:()=>QO,ɵEffectScheduler:()=>Tb,ɵIMAGE_CONFIG:()=>Cl,ɵIMAGE_CONFIG_DEFAULTS:()=>bl,ɵINJECTOR_SCOPE:()=>pi,ɵINPUT_SIGNAL_BRAND_WRITE_TYPE:()=>jt,ɵINTERNAL_APPLICATION_ERROR_HANDLER:()=>su,ɵIS_HYDRATION_DOM_REUSE_ENABLED:()=>Hl,ɵIS_INCREMENTAL_HYDRATION_ENABLED:()=>Ql,ɵJSACTION_EVENT_CONTRACT:()=>rp,ɵLContext:()=>Fu,ɵLifecycleHooksFeature:()=>vy,ɵLocaleDataIndex:()=>bI,ɵMicrotaskEffectScheduler:()=>pM,ɵNG_COMP_DEF:()=>Kn,ɵNG_DIR_DEF:()=>Qn,ɵNG_ELEMENT_ID:()=>Xn,ɵNG_INJ_DEF:()=>Rn,ɵNG_MOD_DEF:()=>Zn,ɵNG_PIPE_DEF:()=>Yn,ɵNG_PROV_DEF:()=>Pn,ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>ja,ɵNO_CHANGE:()=>Uf,ɵNgModuleFactory:()=>RE,ɵNoopNgZone:()=>ru,ɵPERFORMANCE_MARK_PREFIX:()=>FN,ɵPROVIDED_NG_ZONE:()=>RO,ɵPendingTasksInternal:()=>$c,ɵReflectionCapabilities:()=>Ui,ɵRender3ComponentFactory:()=>gy,ɵRender3ComponentRef:()=>my,ɵRender3NgModuleRef:()=>PE,ɵRuntimeError:()=>kt,ɵSIGNAL:()=>c,ɵSSR_CONTENT_INTEGRITY_MARKER:()=>lp,ɵTESTABILITY:()=>mb,ɵTESTABILITY_GETTER:()=>vb,ɵTracingAction:()=>Zl,ɵTracingService:()=>Jl,ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT:()=>uy,ɵViewRef:()=>Om,ɵXSS_SECURITY_URL:()=>xt,ɵZONELESS_ENABLED:()=>Fc,ɵ_sanitizeHtml:()=>kh,ɵ_sanitizeUrl:()=>dh,ɵallowSanitizationBypassAndThrow:()=>eh,ɵannotateForHydration:()=>gN,ɵbypassSanitizationTrustHtml:()=>nh,ɵbypassSanitizationTrustResourceUrl:()=>sh,ɵbypassSanitizationTrustScript:()=>ih,ɵbypassSanitizationTrustStyle:()=>rh,ɵbypassSanitizationTrustUrl:()=>oh,ɵclearResolutionOfComponentResourcesQueue:()=>EE,ɵcompileComponent:()=>XT,ɵcompileDirective:()=>eO,ɵcompileNgModule:()=>jT,ɵcompileNgModuleDefs:()=>VT,ɵcompileNgModuleFactory:()=>NO,ɵcompilePipe:()=>fO,ɵconvertToBitFlags:()=>Sr,ɵcreateInjector:()=>Tc,ɵdefaultIterableDiffers:()=>QA,ɵdefaultKeyValueDiffers:()=>YA,ɵdepsTracker:()=>dy,ɵdetectChangesInViewIfRequired:()=>Ub,ɵdevModeEqual:()=>h_,ɵdisableProfiling:()=>GN,ɵenableProfiling:()=>HN,ɵfindLocaleData:()=>mI,ɵflushModuleScopingQueueAsMuchAsPossible:()=>FT,ɵformatRuntimeError:()=>Lt,ɵgenerateStandaloneInDeclarationsError:()=>$T,ɵgetAsyncClassMetadataFn:()=>q_,ɵgetClosestComponentName:()=>qN,ɵgetDebugNode:()=>PA,ɵgetDeferBlocks:()=>X_,ɵgetDirectives:()=>ol,ɵgetHostElement:()=>sl,ɵgetInjectableDef:()=>On,ɵgetLContext:()=>Uu,ɵgetLocaleCurrencyCode:()=>vI,ɵgetLocalePluralCase:()=>yI,ɵgetOutputDestroyRef:()=>cu,ɵgetSanitizationBypassType:()=>th,ɵgetUnknownElementStrictMode:()=>nf,ɵgetUnknownPropertyStrictMode:()=>sf,ɵglobal:()=>Qt,ɵinjectChangeDetectorRef:()=>yA,ɵinternalCreateApplication:()=>eN,ɵinternalProvideZoneChangeDetection:()=>xO,ɵisBoundToModule:()=>Pb,ɵisComponentDefPendingResolution:()=>vE,ɵisEnvironmentProviders:()=>Wn,ɵisInjectable:()=>An,ɵisNgModule:()=>iy,ɵisPromise:()=>Cb,ɵisSubscribable:()=>Sb,ɵmicrotaskEffect:()=>gM,ɵnoSideEffects:()=>$t,ɵpatchComponentDefWithScope:()=>QT,ɵperformanceMarkFeature:()=>vu,ɵpublishExternalGlobalUtil:()=>fb,ɵreadHydrationInfo:()=>yp,ɵregisterLocaleData:()=>gI,ɵrenderDeferBlockState:()=>k_,ɵresetCompiledComponents:()=>zT,ɵresetJitOptions:()=>xT,ɵresolveComponentResources:()=>fE,ɵrestoreComponentResolutionQueue:()=>_E,ɵsetAllowDuplicateNgModuleIdsForTest:()=>wE,ɵsetAlternateWeakRefImpl:()=>XA,ɵsetClassDebugInfo:()=>AT,ɵsetClassMetadata:()=>W_,ɵsetClassMetadataAsync:()=>z_,ɵsetCurrentInjector:()=>yr,ɵsetDocument:()=>pl,ɵsetInjectorProfilerContext:()=>jn,ɵsetLocaleId:()=>OI,ɵsetUnknownElementStrictMode:()=>tf,ɵsetUnknownPropertyStrictMode:()=>of,ɵstartMeasuring:()=>jN,ɵstopMeasuring:()=>VN,ɵstore:()=>rw,ɵstringify:()=>Xt,ɵtransitiveScopesFor:()=>YT,ɵtriggerResourceLoading:()=>Hb,ɵtruncateMiddle:()=>tn,ɵunregisterLocaleData:()=>_I,ɵunwrapSafeValue:()=>Xp,ɵunwrapWritableSignal:()=>Eu,ɵwithDomHydration:()=>PN,ɵwithEventReplay:()=>oN,ɵwithI18nSupport:()=>RN,ɵwithIncrementalHydration:()=>xN,ɵɵCopyDefinitionFeature:()=>r_,ɵɵExternalStylesFeature:()=>Xw,ɵɵFactoryTarget:()=>Ti,ɵɵHostDirectivesFeature:()=>i_,ɵɵInheritDefinitionFeature:()=>QE,ɵɵInputTransformsFeature:()=>l_,ɵɵNgOnChangesFeature:()=>zo,ɵɵProvidersFeature:()=>Jw,ɵɵadvance:()=>jf,ɵɵattachSourceLocations:()=>Gw,ɵɵattribute:()=>bC,ɵɵattributeInterpolate1:()=>MC,ɵɵattributeInterpolate2:()=>PC,ɵɵattributeInterpolate3:()=>RC,ɵɵattributeInterpolate4:()=>xC,ɵɵattributeInterpolate5:()=>kC,ɵɵattributeInterpolate6:()=>LC,ɵɵattributeInterpolate7:()=>FC,ɵɵattributeInterpolate8:()=>UC,ɵɵattributeInterpolateV:()=>jC,ɵɵclassMap:()=>lS,ɵɵclassMapInterpolate1:()=>IS,ɵɵclassMapInterpolate2:()=>DS,ɵɵclassMapInterpolate3:()=>wS,ɵɵclassMapInterpolate4:()=>TS,ɵɵclassMapInterpolate5:()=>OS,ɵɵclassMapInterpolate6:()=>AS,ɵɵclassMapInterpolate7:()=>NS,ɵɵclassMapInterpolate8:()=>MS,ɵɵclassMapInterpolateV:()=>PS,ɵɵclassProp:()=>aS,ɵɵcomponentInstance:()=>RS,ɵɵconditional:()=>$S,ɵɵcontentQuery:()=>YD,ɵɵcontentQuerySignal:()=>ew,ɵɵdeclareLet:()=>$w,ɵɵdefer:()=>Jb,ɵɵdeferEnableTimerScheduling:()=>H_,ɵɵdeferHydrateNever:()=>nC,ɵɵdeferHydrateOnHover:()=>fC,ɵɵdeferHydrateOnIdle:()=>oC,ɵɵdeferHydrateOnImmediate:()=>cC,ɵɵdeferHydrateOnInteraction:()=>vC,ɵɵdeferHydrateOnTimer:()=>dC,ɵɵdeferHydrateOnViewport:()=>_C,ɵɵdeferHydrateWhen:()=>tC,ɵɵdeferOnHover:()=>pC,ɵɵdeferOnIdle:()=>rC,ɵɵdeferOnImmediate:()=>sC,ɵɵdeferOnInteraction:()=>gC,ɵɵdeferOnTimer:()=>uC,ɵɵdeferOnViewport:()=>yC,ɵɵdeferPrefetchOnHover:()=>hC,ɵɵdeferPrefetchOnIdle:()=>iC,ɵɵdeferPrefetchOnImmediate:()=>aC,ɵɵdeferPrefetchOnInteraction:()=>mC,ɵɵdeferPrefetchOnTimer:()=>lC,ɵɵdeferPrefetchOnViewport:()=>EC,ɵɵdeferPrefetchWhen:()=>eC,ɵɵdeferWhen:()=>Xb,ɵɵdefineComponent:()=>FE,ɵɵdefineDirective:()=>BE,ɵɵdefineInjectable:()=>Dn,ɵɵdefineInjector:()=>Tn,ɵɵdefineNgModule:()=>VE,ɵɵdefinePipe:()=>HE,ɵɵdirectiveInject:()=>$f,ɵɵdisableBindings:()=>Ns,ɵɵelement:()=>tI,ɵɵelementContainer:()=>sI,ɵɵelementContainerEnd:()=>oI,ɵɵelementContainerStart:()=>iI,ɵɵelementEnd:()=>eI,ɵɵelementStart:()=>XS,ɵɵenableBindings:()=>As,ɵɵgetComponentDepsFactory:()=>OT,ɵɵgetCurrentView:()=>uI,ɵɵgetInheritedFactory:()=>fc,ɵɵhostProperty:()=>lI,ɵɵi18n:()=>ID,ɵɵi18nApply:()=>TD,ɵɵi18nAttributes:()=>DD,ɵɵi18nEnd:()=>SD,ɵɵi18nExp:()=>wD,ɵɵi18nPostprocess:()=>OD,ɵɵi18nStart:()=>CD,ɵɵinject:()=>_r,ɵɵinjectAttribute:()=>vc,ɵɵinvalidFactory:()=>Bf,ɵɵinvalidFactoryDep:()=>br,ɵɵlistener:()=>MD,ɵɵloadQuery:()=>XD,ɵɵnamespaceHTML:()=>va,ɵɵnamespaceMathML:()=>ma,ɵɵnamespaceSVG:()=>ga,ɵɵnextContext:()=>LD,ɵɵngDeclareClassMetadata:()=>WN,ɵɵngDeclareClassMetadataAsync:()=>KN,ɵɵngDeclareComponent:()=>QN,ɵɵngDeclareDirective:()=>zN,ɵɵngDeclareFactory:()=>YN,ɵɵngDeclareInjectable:()=>JN,ɵɵngDeclareInjector:()=>XN,ɵɵngDeclareNgModule:()=>eM,ɵɵngDeclarePipe:()=>tM,ɵɵpipe:()=>_T,ɵɵpipeBind1:()=>bT,ɵɵpipeBind2:()=>CT,ɵɵpipeBind3:()=>ST,ɵɵpipeBind4:()=>IT,ɵɵpipeBindV:()=>DT,ɵɵprojection:()=>jD,ɵɵprojectionDef:()=>UD,ɵɵproperty:()=>iS,ɵɵpropertyInterpolate:()=>VD,ɵɵpropertyInterpolate1:()=>$D,ɵɵpropertyInterpolate2:()=>BD,ɵɵpropertyInterpolate3:()=>HD,ɵɵpropertyInterpolate4:()=>GD,ɵɵpropertyInterpolate5:()=>qD,ɵɵpropertyInterpolate6:()=>zD,ɵɵpropertyInterpolate7:()=>WD,ɵɵpropertyInterpolate8:()=>KD,ɵɵpropertyInterpolateV:()=>QD,ɵɵpureFunction0:()=>iT,ɵɵpureFunction1:()=>oT,ɵɵpureFunction2:()=>sT,ɵɵpureFunction3:()=>aT,ɵɵpureFunction4:()=>cT,ɵɵpureFunction5:()=>uT,ɵɵpureFunction6:()=>lT,ɵɵpureFunction7:()=>dT,ɵɵpureFunction8:()=>pT,ɵɵpureFunctionV:()=>hT,ɵɵqueryAdvance:()=>nw,ɵɵqueryRefresh:()=>JD,ɵɵreadContextLet:()=>Hw,ɵɵreference:()=>iw,ɵɵregisterNgModuleType:()=>IE,ɵɵrepeater:()=>QS,ɵɵrepeaterCreate:()=>zS,ɵɵrepeaterTrackByIdentity:()=>GS,ɵɵrepeaterTrackByIndex:()=>HS,ɵɵreplaceMetadata:()=>NT,ɵɵresetView:()=>xs,ɵɵresolveBody:()=>mf,ɵɵresolveDocument:()=>gf,ɵɵresolveWindow:()=>ff,ɵɵrestoreView:()=>Rs,ɵɵsanitizeHtml:()=>Uh,ɵɵsanitizeResourceUrl:()=>$h,ɵɵsanitizeScript:()=>Bh,ɵɵsanitizeStyle:()=>jh,ɵɵsanitizeUrl:()=>Vh,ɵɵsanitizeUrlOrResourceUrl:()=>qh,ɵɵsetComponentScope:()=>eT,ɵɵsetNgModuleScope:()=>tT,ɵɵstoreLet:()=>Bw,ɵɵstyleMap:()=>cS,ɵɵstyleMapInterpolate1:()=>ow,ɵɵstyleMapInterpolate2:()=>sw,ɵɵstyleMapInterpolate3:()=>aw,ɵɵstyleMapInterpolate4:()=>cw,ɵɵstyleMapInterpolate5:()=>uw,ɵɵstyleMapInterpolate6:()=>lw,ɵɵstyleMapInterpolate7:()=>dw,ɵɵstyleMapInterpolate8:()=>pw,ɵɵstyleMapInterpolateV:()=>hw,ɵɵstyleProp:()=>sS,ɵɵstylePropInterpolate1:()=>fw,ɵɵstylePropInterpolate2:()=>gw,ɵɵstylePropInterpolate3:()=>mw,ɵɵstylePropInterpolate4:()=>vw,ɵɵstylePropInterpolate5:()=>yw,ɵɵstylePropInterpolate6:()=>Ew,ɵɵstylePropInterpolate7:()=>_w,ɵɵstylePropInterpolate8:()=>bw,ɵɵstylePropInterpolateV:()=>Cw,ɵɵsyntheticHostListener:()=>PD,ɵɵsyntheticHostProperty:()=>dI,ɵɵtemplate:()=>C_,ɵɵtemplateRefExtractor:()=>TT,ɵɵtext:()=>Sw,ɵɵtextInterpolate:()=>ww,ɵɵtextInterpolate1:()=>Tw,ɵɵtextInterpolate2:()=>Ow,ɵɵtextInterpolate3:()=>Aw,ɵɵtextInterpolate4:()=>Nw,ɵɵtextInterpolate5:()=>Mw,ɵɵtextInterpolate6:()=>Pw,ɵɵtextInterpolate7:()=>Rw,ɵɵtextInterpolate8:()=>xw,ɵɵtextInterpolateV:()=>kw,ɵɵtrustConstantHtml:()=>Hh,ɵɵtrustConstantResourceUrl:()=>Gh,ɵɵtwoWayBindingSet:()=>Uw,ɵɵtwoWayListener:()=>jw,ɵɵtwoWayProperty:()=>Fw,ɵɵvalidateIframeAttribute:()=>TE,ɵɵviewQuery:()=>ZD,ɵɵviewQuerySignal:()=>tw});let o=null,s=!1,a=1;const c=Symbol("SIGNAL");function u(e){const t=o;return o=e,t}function l(){return o}function d(){return s}const p={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 h(e){if(s)throw new Error("undefined"!=typeof ngDevMode&&ngDevMode?"Assertion error: signal read during notification phase":"");if(null===o)return;o.consumerOnSignalRead(e);const t=o.nextProducerIndex++;w(o),t<o.producerNode.length&&o.producerNode[t]!==e&&D(o)&&I(o.producerNode[t],o.producerIndexOfThis[t]),o.producerNode[t]!==e&&(o.producerNode[t]=e,o.producerIndexOfThis[t]=D(o)?S(e,o,t):0),o.producerLastReadVersion[t]=e.version}function f(e){D(e)&&!e.dirty||(e.dirty||e.lastCleanEpoch!==a)&&(e.producerMustRecompute(e)||b(e)?(e.producerRecomputeValue(e),y(e)):y(e))}function g(e){if(void 0===e.liveConsumerNode)return;const t=s;s=!0;try{for(const t of e.liveConsumerNode)t.dirty||v(t)}finally{s=t}}function m(){return!1!==o?.consumerAllowSignalWrites}function v(e){e.dirty=!0,g(e),e.consumerMarkedDirty?.(e)}function y(e){e.dirty=!1,e.lastCleanEpoch=a}function E(e){return e&&(e.nextProducerIndex=0),u(e)}function _(e,t){if(u(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(D(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)I(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function b(e){w(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version)return!0;if(f(n),r!==n.version)return!0}return!1}function C(e){if(w(e),D(e))for(let t=0;t<e.producerNode.length;t++)I(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function S(e,t,n){if(T(e),0===e.liveConsumerNode.length&&O(e))for(let t=0;t<e.producerNode.length;t++)e.producerIndexOfThis[t]=S(e.producerNode[t],e,t);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function I(e,t){if(T(e),"undefined"!=typeof ngDevMode&&ngDevMode&&t>=e.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`);if(1===e.liveConsumerNode.length&&O(e))for(let t=0;t<e.producerNode.length;t++)I(e.producerNode[t],e.producerIndexOfThis[t]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const n=e.liveConsumerIndexOfThis[t],r=e.liveConsumerNode[t];w(r),r.producerIndexOfThis[n]=t}}function D(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function w(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function T(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function O(e){return void 0!==e.producerNode}function A(e){const t=Object.create(R);t.computation=e;const n=()=>{if(f(t),h(t),t.value===P)throw t.error;return t.value};return n[c]=t,n}const N=Symbol("UNSET"),M=Symbol("COMPUTING"),P=Symbol("ERRORED"),R=(()=>({...p,value:N,dirty:!0,error:null,equal:i,kind:"computed",producerMustRecompute:e=>e.value===N||e.value===M,producerRecomputeValue(e){if(e.value===M)throw new Error("Detected cycle in computations.");const t=e.value;e.value=M;const n=E(e);let r,i=!1;try{r=e.computation(),u(null),i=t!==N&&t!==P&&r!==P&&e.equal(t,r)}catch(t){r=P,e.error=t}finally{_(e,n)}i?e.value=t:(e.value=r,e.version++)}}))();let x=function(){throw new Error};function k(){x()}let L=null;function F(e,t){m()||k(),e.equal(e.value,t)||(e.value=t,function(e){e.version++,a++,g(e),L?.()}(e))}function U(e,t){m()||k(),F(e,t(e.value))}const j=(()=>({...p,equal:i,value:void 0,kind:"signal"}))();const V=()=>{},$=(()=>({...p,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:V}))();var B=function(e,t){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},B(e,t)};function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function G(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function q(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function W(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function K(e){return this instanceof K?(this.v=e,this):new K(e)}function Q(e){return"function"==typeof e}function Y(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Z=Y((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function J(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var X=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=q(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var c=this.initialTeardown;if(Q(c))try{c()}catch(e){i=e instanceof Z?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var l=q(u),d=l.next();!d.done;d=l.next()){var p=d.value;try{ne(p)}catch(e){i=null!=i?i:[],e instanceof Z?i=W(W([],z(i)),z(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new Z(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)ne(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&J(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&J(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e;var t}(),ee=X.EMPTY;function te(e){return e instanceof X||e&&"closed"in e&&Q(e.remove)&&Q(e.add)&&Q(e.unsubscribe)}function ne(e){Q(e)?e():e.unsubscribe()}var re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ie={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ie.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,W([e,t],z(n))):setTimeout.apply(void 0,W([e,t],z(n)))},clearTimeout:function(e){var t=ie.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function oe(e){ie.setTimeout((function(){var t=re.onUnhandledError;if(!t)throw e;t(e)}))}function se(){}var ae=ce("C",void 0,void 0);function ce(e,t,n){return{kind:e,value:t,error:n}}var ue=null;function le(e){if(re.useDeprecatedSynchronousErrorHandling){var t=!ue;if(t&&(ue={errorThrown:!1,error:null}),e(),t){var n=ue,r=n.errorThrown,i=n.error;if(ue=null,r)throw i}}else e()}var de=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,te(t)&&t.add(n)):n.destination=ye,n}return H(t,e),t.create=function(e,t,n){return new ge(e,t,n)},t.prototype.next=function(e){this.isStopped?ve(function(e){return ce("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?ve(ce("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?ve(ae,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(X),pe=Function.prototype.bind;function he(e,t){return pe.call(e,t)}var fe=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){me(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){me(e)}else me(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){me(e)}},e}(),ge=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;return Q(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&re.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&he(t.next,o),error:t.error&&he(t.error,o),complete:t.complete&&he(t.complete,o)}):i=t,s.destination=new fe(i),s}return H(t,e),t}(de);function me(e){var t;re.useDeprecatedSynchronousErrorHandling?(t=e,re.useDeprecatedSynchronousErrorHandling&&ue&&(ue.errorThrown=!0,ue.error=t)):oe(e)}function ve(e,t){var n=re.onStoppedNotification;n&&ie.setTimeout((function(){return n(e,t)}))}var ye={closed:!0,next:se,error:function(e){throw e},complete:se},Ee="function"==typeof Symbol&&Symbol.observable||"@@observable";function _e(e){return e}function be(e){return 0===e.length?_e:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var Ce=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof de||function(e){return e&&Q(e.next)&&Q(e.error)&&Q(e.complete)}(r)&&te(r)?e:new ge(e,t,n);return le((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Se(t))((function(t,r){var i=new ge({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[Ee]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return be(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Se(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Se(e){var t;return null!==(t=null!=e?e:re.Promise)&&void 0!==t?t:Promise}var Ie=Y((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),De=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return H(t,e),t.prototype.lift=function(e){var t=new we(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ie},t.prototype.next=function(e){var t=this;le((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=q(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;le((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;le((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?ee:(this.currentObservers=null,o.push(e),new X((function(){t.currentObservers=null,J(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Ce;return e.source=this,e},t.create=function(e,t){return new we(e,t)},t}(Ce),we=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return H(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:ee},t}(De),Te=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return H(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(De);const Oe={JSACTION:"jsaction"},Ae="__jsaction",Ne="__owner",Me={};function Pe(e,t){e[Ae]=t}const Re="click",xe="clickmod",ke="mouseover",Le="mouseout",Fe="mouseenter",Ue="mouseleave",je="pointerover",Ve="pointerout",$e="pointerenter",Be="pointerleave",He=[Fe,Ue,"pointerenter","pointerleave"],Ge=["focus","blur","error","load","toggle"],qe=e=>Ge.indexOf(e)>=0,ze=[Re,"dblclick","focusin","focusout","keydown","keyup","keypress",ke,Le,"submit","touchstart","touchend","touchmove","touchcancel","auxclick","change","compositionstart","compositionupdate","compositionend","beforeinput","input","select","copy","cut","paste","mousedown","mouseup","wheel","contextmenu","dragover","dragenter","dragleave","drop","dragstart","dragend","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","gotpointercapture","lostpointercapture","ended","loadedmetadata","pagehide","pageshow","visibilitychange","beforematch"].concat(Ge),We=e=>ze.indexOf(e)>=0;function Ke(e,t){if(e.removeEventListener){const n="boolean"==typeof t.passive?{capture:t.capture}:t.capture;e.removeEventListener(t.eventType,t.handler,n)}else e.detachEvent&&e.detachEvent(`on${t.eventType}`,t.handler)}let Qe="undefined"!=typeof navigator&&/Macintosh/.test(navigator.userAgent);"undefined"!=typeof navigator&&!/Opera/.test(navigator.userAgent)&&/WebKit/.test(navigator.userAgent),"undefined"!=typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident/.test(navigator.userAgent)),"undefined"!=typeof navigator&&!/Opera|WebKit/.test(navigator.userAgent)&&/Gecko/.test(navigator.product);const Ye="undefined"!=typeof navigator&&/iPhone|iPad|iPod/.test(navigator.userAgent);class Ze{element;handlerInfos=[];constructor(e){this.element=e}addEventListener(e,t,n){Ye&&(this.element.style.cursor="pointer"),this.handlerInfos.push(function(e,t,n,r){let i=!1;qe(t)&&(i=!0);const o="boolean"==typeof r?{capture:i,passive:r}:i;return e.addEventListener(t,n,o),{eventType:t,handler:n,capture:i,passive:r}}(this.element,e,t(this.element),n))}cleanUp(){for(let e=0;e<this.handlerInfos.length;e++)Ke(this.element,this.handlerInfos[e]);this.handlerInfos=[]}}function Je(e){return e.eventType}function Xe(e,t){e.eventType=t}function et(e){return e.event}function tt(e,t){e.event=t}function nt(e){return e.targetElement}function rt(e,t){e.targetElement=t}function it(e){return e.eic}function ot(e){return e.eia}function st(e,t,n){e.eia=[t,n]}function at(e){e.eia=void 0}function ct(e){return e[1]}function ut(e,t){e.eirp=t}function lt(e){return e.eir}function dt(e,t){e.eir=t}function pt(e){return{eventType:e.eventType,event:e.event,targetElement:e.targetElement,eic:e.eic,eia:e.eia,timeStamp:e.timeStamp,eirp:e.eirp,eiack:e.eiack,eir:e.eir}}class ht{eventInfo;constructor(e){this.eventInfo=e}getEventType(){return Je(this.eventInfo)}setEventType(e){Xe(this.eventInfo,e)}getEvent(){return et(this.eventInfo)}setEvent(e){tt(this.eventInfo,e)}getTargetElement(){return nt(this.eventInfo)}setTargetElement(e){rt(this.eventInfo,e)}getContainer(){return it(this.eventInfo)}setContainer(e){!function(e,t){e.eic=t}(this.eventInfo,e)}getTimestamp(){return this.eventInfo.timeStamp}setTimestamp(e){!function(e,t){e.timeStamp=t}(this.eventInfo,e)}getAction(){const e=ot(this.eventInfo);if(e)return{name:e[0],element:e[1]}}setAction(e){e?st(this.eventInfo,e.name,e.element):at(this.eventInfo)}getIsReplay(){return this.eventInfo.eirp}setIsReplay(e){ut(this.eventInfo,e)}getResolved(){return lt(this.eventInfo)}setResolved(e){dt(this.eventInfo,e)}clone(){return new ht(pt(this.eventInfo))}}const ft={},gt=/\s*;\s*/,mt=Re;class vt{a11yClickSupport=!1;clickModSupport=!0;syntheticMouseEventSupport;updateEventInfoForA11yClick=void 0;preventDefaultForA11yClick=void 0;populateClickOnlyAction=void 0;constructor({syntheticMouseEventSupport:e=!1,clickModSupport:t=!0}={}){this.syntheticMouseEventSupport=e,this.clickModSupport=t}resolveEventType(e){var t;this.clickModSupport&&Je(e)===Re&&(t=et(e),Qe&&t.metaKey||!Qe&&t.ctrlKey||function(e){return 2===e.which||null==e.which&&4===e.button}(t)||t.shiftKey)?Xe(e,xe):this.a11yClickSupport&&this.updateEventInfoForA11yClick(e)}resolveAction(e){lt(e)||(this.populateAction(e,nt(e)),dt(e,!0))}resolveParentAction(e){const t=ot(e),n=t&&ct(t);at(e);const r=n&&this.getParentNode(n);r&&this.populateAction(e,r)}populateAction(e,t){let n=t;for(;n&&n!==it(e)&&(n.nodeType===Node.ELEMENT_NODE&&this.populateActionOnElement(n,e),!ot(e));)n=this.getParentNode(n);const r=ot(e);r&&(this.a11yClickSupport&&this.preventDefaultForA11yClick(e),this.syntheticMouseEventSupport&&(Je(e)===Fe||Je(e)===Ue||Je(e)===$e||Je(e)===Be))&&(!function(e,t,n){const r=e.relatedTarget;return(e.type===ke&&t===Fe||e.type===Le&&t===Ue||e.type===je&&t===$e||e.type===Ve&&t===Be)&&(!r||r!==n&&!n.contains(r))}(et(e),Je(e),ct(r))?at(e):(tt(e,function(e,t){const n={};for(const t in e){if("srcElement"===t||"target"===t)continue;const r=t,i=e[r];"function"!=typeof i&&(n[r]=i)}return e.type===ke?n.type=Fe:e.type===Le?n.type=Ue:e.type===je?n.type=$e:n.type=Be,n.target=n.srcElement=t,n.bubbles=!1,n}(et(e),ct(r))),rt(e,ct(r))))}getParentNode(e){const t=e[Ne];if(t)return t;const n=e.parentNode;return"#document-fragment"===n?.nodeName?n?.host??null:n}populateActionOnElement(e,t){const n=this.parseActions(e),r=n[Je(t)];void 0!==r&&st(t,r,e),this.a11yClickSupport&&this.populateClickOnlyAction(e,t,n)}parseActions(e){let t=e[Ae];var n;if(!t){const r=e.getAttribute(Oe.JSACTION);if(r){if(t=Me[r],!t){t={};const e=r.split(gt);for(let n=0;n<e.length;n++){const r=e[n];if(!r)continue;const i=r.indexOf(":"),o=-1!==i,s=o?r.substr(0,i).trim():mt,a=o?r.substr(i+1).trim():r;t[s]=a}n=t,Me[r]=n}Pe(e,t)}else t=ft,Pe(e,t)}return t}addA11yClickSupport(e,t,n){this.a11yClickSupport=!0,this.updateEventInfoForA11yClick=e,this.preventDefaultForA11yClick=t,this.populateClickOnlyAction=n}}var yt;!function(e){e[e.I_AM_THE_JSACTION_FRAMEWORK=0]="I_AM_THE_JSACTION_FRAMEWORK"}(yt||(yt={}));class Et{dispatchDelegate;actionResolver;eventReplayer;eventReplayScheduled=!1;replayEventInfoWrappers=[];constructor(e,{actionResolver:t,eventReplayer:n}={}){this.dispatchDelegate=e,this.actionResolver=t,this.eventReplayer=n}dispatch(e){const t=new ht(e);this.actionResolver?.resolveEventType(e),this.actionResolver?.resolveAction(e);const n=t.getAction();var r;n&&function(e,t){return"A"===e.tagName&&(t.getEventType()===Re||t.getEventType()===xe)}(n.element,t)&&((r=t.getEvent()).preventDefault?r.preventDefault():r.returnValue=!1),this.eventReplayer&&t.getIsReplay()?this.scheduleEventInfoWrapperReplay(t):this.dispatchDelegate(t)}scheduleEventInfoWrapperReplay(e){this.replayEventInfoWrappers.push(e),this.eventReplayScheduled||(this.eventReplayScheduled=!0,Promise.resolve().then((()=>{this.eventReplayScheduled=!1,this.eventReplayer(this.replayEventInfoWrappers)})))}}const _t=Symbol.for("propagationStopped");class bt{dispatchDelegate;clickModSupport;actionResolver;dispatcher;constructor(e,t=!0){this.dispatchDelegate=e,this.clickModSupport=t,this.actionResolver=new vt({clickModSupport:t}),this.dispatcher=new Et((e=>{this.dispatchToDelegate(e)}),{actionResolver:this.actionResolver})}dispatch(e){this.dispatcher.dispatch(e)}dispatchToDelegate(e){for(e.getIsReplay()&&function(e){const t=e.getEvent(),n=e.getTargetElement(),r=t.preventDefault.bind(t);It(t,"target",n),It(t,"eventPhase",101),It(t,"preventDefault",(()=>{throw r(),new Error("`preventDefault` called during event replay."+(ngDevMode?" Because event replay occurs after browser dispatch, `preventDefault` would have no effect. You can check whether an event is being replayed by accessing the event phase: `event.eventPhase === EventPhase.REPLAY`.":""))})),It(t,"composedPath",(()=>{throw new Error("`composedPath` called during event replay."+(ngDevMode?" Because event replay occurs after browser dispatch, `composedPath()` will be empty. Iterate parent nodes from `event.target` or `event.currentTarget` if you need to check elements in the event path.":""))}))}(e),function(e){const t=e.getEvent(),n=e.getEvent().stopPropagation.bind(t),r=()=>{t[_t]=!0,n()};It(t,"stopPropagation",r),It(t,"stopImmediatePropagation",r)}(e);e.getAction();){if(St(e),qe(e.getEventType())&&e.getAction().element!==e.getTargetElement())return;if(this.dispatchDelegate(e.getEvent(),e.getAction().name),Ct(e))return;this.actionResolver.resolveParentAction(e.eventInfo)}}}function Ct(e){return!!e.getEvent()[_t]}function St(e){const t=e.getEvent(),n=e.getAction()?.element;n&&It(t,"currentTarget",n,{configurable:!0})}function It(e,t,n,{configurable:r=!1}={}){Object.defineProperty(e,t,{value:n,configurable:r})}function Dt(e,t,n,r){for(let i=0;i<t.length;i++)e.removeEventListener(t[i],n,r)}class wt{static MOUSE_SPECIAL_SUPPORT=!1;containerManager;eventHandlers={};browserEventTypeToExtraEventTypes={};dispatcher=null;queuedEventInfos=[];constructor(e){this.containerManager=e}handleEvent(e,t,n){const r=function(e,t,n,r,i,o,s,a){return{eventType:e,event:t,targetElement:n,eic:r,timeStamp:i,eia:o,eirp:s,eiack:a}}(e,t,t.target,n,Date.now());this.handleEventInfo(r)}handleEventInfo(e){if(!this.dispatcher)return ut(e,!0),void this.queuedEventInfos?.push(e);this.dispatcher(e)}addEvent(e,t,n){if(e in this.eventHandlers||!this.containerManager)return;if(!wt.MOUSE_SPECIAL_SUPPORT&&He.indexOf(e)>=0)return;const r=(e,t,n)=>{this.handleEvent(e,t,n)};this.eventHandlers[e]=r;const i=function(e){return e===Fe?ke:e===Ue?Le:e===$e?je:e===Be?Ve:e}(t||e);if(i!==e){const t=this.browserEventTypeToExtraEventTypes[i]||[];t.push(e),this.browserEventTypeToExtraEventTypes[i]=t}this.containerManager.addEventListener(i,(t=>n=>{r(e,n,t)}),n)}replayEarlyEvents(e=window._ejsa){e&&(this.replayEarlyEventInfos(e.q),function(e){e&&(Dt(e.c,e.et,e.h),Dt(e.c,e.etc,e.h,!0))}(e),delete window._ejsa)}replayEarlyEventInfos(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.getEventTypesForBrowserEventType(n.eventType);for(let e=0;e<r.length;e++){const t=pt(n);Xe(t,r[e]),this.handleEventInfo(t)}}}getEventTypesForBrowserEventType(e){const t=[];return this.eventHandlers[e]&&t.push(e),this.browserEventTypeToExtraEventTypes[e]&&t.push(...this.browserEventTypeToExtraEventTypes[e]),t}handler(e){return this.eventHandlers[e]}cleanUp(){this.containerManager?.cleanUp(),this.containerManager=null,this.eventHandlers={},this.browserEventTypeToExtraEventTypes={},this.dispatcher=null,this.queuedEventInfos=[]}registerDispatcher(e,t){this.ecrd(e,t)}ecrd(e,t){if(this.dispatcher=e,this.queuedEventInfos?.length){for(let e=0;e<this.queuedEventInfos.length;e++)this.handleEventInfo(this.queuedEventInfos[e]);this.queuedEventInfos=null}}}function Tt(e,t=window){t._ejsas&&(t._ejsas[e]=void 0)}function Ot(e){return Q(null==e?void 0:e.lift)}function At(e){return function(t){if(Ot(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}function Nt(e,t,n,r,i){return new Mt(e,t,n,r,i)}var Mt=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return H(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(de);function Pt(e,t){return At((function(n,r){var i=0;n.subscribe(Nt(r,(function(n){r.next(e.call(t,n,i++))})))}))}const Rt="https://angular.dev/errors",xt="https://g.co/ng/security#xss";class kt extends Error{code;constructor(e,t){super(Lt(e,t)),this.code=e}}function Lt(e,t){const n=`NG0${Math.abs(e)}`;let r=`${n}${t?": "+t:""}`;if(ngDevMode&&e<0){const e=!r.match(/[.,;!?\n]$/);r=`${r}${e?".":""} Find more at ${Rt}/${n}`}return r}const Ft=Symbol("InputSignalNode#UNSET"),Ut=(()=>({...j,transformFn:void 0,applyValueToInputSignal(e,t){F(e,t)}}))(),jt=Symbol();function Vt(e,t){const n=Object.create(Ut);function r(){if(h(n),n.value===Ft)throw new kt(-950,ngDevMode&&"Input is required but no value is available yet.");return n.value}return n.value=e,n.transformFn=t?.transform,r[c]=n,ngDevMode&&(r.toString=()=>`[Input Signal: ${r()}]`,n.debugName=t?.debugName),r}function $t(e){return{toString:e}.toString()}const Bt="__annotations__",Ht="__parameters__",Gt="__prop__metadata__";function qt(e,t,n,r,i){return $t((()=>{const o=zt(t);function s(...e){if(this instanceof s)return o.call(this,...e),this;const t=new s(...e);return function(n){return i&&i(n,...e),(n.hasOwnProperty(Bt)?n[Bt]:Object.defineProperty(n,Bt,{value:[]})[Bt]).push(t),r&&r(n),n}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}))}function zt(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function Wt(e,t,n){return $t((()=>{const r=zt(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(Ht)?e[Ht]:Object.defineProperty(e,Ht,{value:[]})[Ht];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}))}function Kt(e,t,n,r){return $t((()=>{const i=zt(t);function o(...e){if(this instanceof o)return i.apply(this,e),this;const t=new o(...e);return function(n,i){if(void 0===n)throw new Error("Standard Angular field decorators are not supported in JIT mode.");const o=n.constructor,s=o.hasOwnProperty(Gt)?o[Gt]:Object.defineProperty(o,Gt,{value:{}})[Gt];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(t),r&&r(n,i,...e)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}))}const Qt=globalThis;function Yt(){return!("undefined"!=typeof ngDevMode&&!ngDevMode||("object"==typeof ngDevMode&&0!==Object.keys(ngDevMode).length||function(){const e="undefined"!=typeof location?location.toString():"",t={namedConstructors:-1!=e.indexOf("ngDevMode=namedConstructors"),firstCreatePass:0,tNode:0,tView:0,rendererCreateTextNode:0,rendererSetText:0,rendererCreateElement:0,rendererAddEventListener:0,rendererSetAttribute:0,rendererRemoveAttribute:0,rendererSetProperty:0,rendererSetClassName:0,rendererAddClass:0,rendererRemoveClass:0,rendererSetStyle:0,rendererRemoveStyle:0,rendererDestroy:0,rendererDestroyNode:0,rendererMoveNode:0,rendererRemoveNode:0,rendererAppendChild:0,rendererInsertBefore:0,rendererCreateComment:0,hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0,deferBlocksWithIncrementalHydration:0};-1===e.indexOf("ngDevMode=false")?("object"!=typeof Qt.ngDevMode&&(Qt.ngDevMode={}),Object.assign(Qt.ngDevMode,t)):Qt.ngDevMode=!1}(),"undefined"==typeof ngDevMode||!ngDevMode))}function Zt(e){for(let t in e)if(e[t]===Zt)return t;throw Error("Could not find renamed property on target object.")}function Jt(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Xt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Xt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function en(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}function tn(e,t=100){if(!e||t<1||e.length<=t)return e;if(1==t)return e.substring(0,1)+"...";const n=Math.round(t/2);return e.substring(0,n)+"..."+e.substring(e.length-n)}const nn=Zt({__forward_ref__:Zt});function rn(e){return e.__forward_ref__=rn,e.toString=function(){return Xt(this())},e}function on(e){return sn(e)?e():e}function sn(e){return"function"==typeof e&&e.hasOwnProperty(nn)&&e.__forward_ref__===rn}function an(e,t){"number"!=typeof e&&_n(t,typeof e,"number","===")}function cn(e,t,n){an(e,"Expected a number"),mn(e,n,"Expected number to be less than or equal to"),yn(e,t,"Expected number to be greater than or equal to")}function un(e,t){"string"!=typeof e&&_n(t,null===e?"null":typeof e,"string","===")}function ln(e,t){"function"!=typeof e&&_n(t,null===e?"null":typeof e,"function","===")}function dn(e,t,n){e!=t&&_n(n,e,t,"==")}function pn(e,t,n){e==t&&_n(n,e,t,"!=")}function hn(e,t,n){e!==t&&_n(n,e,t,"===")}function fn(e,t,n){e===t&&_n(n,e,t,"!==")}function gn(e,t,n){e<t||_n(n,e,t,"<")}function mn(e,t,n){e<=t||_n(n,e,t,"<=")}function vn(e,t,n){e>t||_n(n,e,t,">")}function yn(e,t,n){e>=t||_n(n,e,t,">=")}function En(e,t){null==e&&_n(t,e,null,"!=")}function _n(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function bn(e){e instanceof Node||_n(`The provided value must be an instance of a DOM Node but got ${Xt(e)}`)}function Cn(e,t){En(e,"Array must be defined.");const n=e.length;(t<0||t>=n)&&_n(`Index expected to be less than ${n} but got ${t}`)}function Sn(e,...t){if(-1!==t.indexOf(e))return!0;_n(`Expected value to be one of ${JSON.stringify(t)} but was ${JSON.stringify(e)}.`)}function In(e){null!==l()&&_n(`${e}() should never be called in a reactive context.`)}function Dn(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const wn=Dn;function Tn(e){return{providers:e.providers||[],imports:e.imports||[]}}function On(e){return Nn(e,Pn)||Nn(e,xn)}function An(e){return null!==On(e)}function Nn(e,t){return e.hasOwnProperty(t)?e[t]:null}function Mn(e){return e&&(e.hasOwnProperty(Rn)||e.hasOwnProperty(kn))?e[Rn]:null}const Pn=Zt({ɵprov:Zt}),Rn=Zt({ɵinj:Zt}),xn=Zt({ngInjectableDef:Zt}),kn=Zt({ngInjectorDef:Zt});class Ln{_desc;ngMetadataName="InjectionToken";ɵprov;constructor(e,t){this._desc=e,this.ɵprov=void 0,"number"==typeof t?(("undefined"==typeof ngDevMode||ngDevMode)&&gn(t,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=t):void 0!==t&&(this.ɵprov=Dn({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}let Fn;function Un(){return!ngDevMode&&_n("getInjectorProfilerContext should never be called in production mode"),Fn}function jn(e){!ngDevMode&&_n("setInjectorProfilerContext should never be called in production mode");const t=Fn;return Fn=e,t}let Vn=null;const $n=e=>{!ngDevMode&&_n("setInjectorProfiler should never be called in production mode"),Vn=e};function Bn(e){!ngDevMode&&_n("Injector profiler should never be called in production mode"),null!=Vn&&Vn(e)}function Hn(e,t=!1){let n;!ngDevMode&&_n("Injector profiler should never be called in production mode"),n="function"==typeof e||e instanceof Ln?e:on(e.provide);let r=e;e instanceof Ln&&(r=e.ɵprov||e),Bn({type:2,context:Un(),providerRecord:{token:n,provider:r,isViewProvider:t}})}function Gn(e){!ngDevMode&&_n("Injector profiler should never be called in production mode"),Bn({type:1,context:Un(),instance:{value:e}})}function qn(e,t,n){!ngDevMode&&_n("Injector profiler should never be called in production mode"),Bn({type:0,context:Un(),service:{token:e,value:t,flags:n}})}function zn(e,t,n){!ngDevMode&&_n("runInInjectorProfilerContext should never be called in production mode");const r=jn({injector:e,token:t});try{n()}finally{jn(r)}}function Wn(e){return e&&!!e.ɵproviders}const Kn=Zt({ɵcmp:Zt}),Qn=Zt({ɵdir:Zt}),Yn=Zt({ɵpipe:Zt}),Zn=Zt({ɵmod:Zt}),Jn=Zt({ɵfac:Zt}),Xn=Zt({__NG_ELEMENT_ID__:Zt}),er=Zt({__NG_ENV_ID__:Zt});function tr(e){return"string"==typeof e?e:null==e?"":String(e)}function nr(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():tr(e)}function rr(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new kt(-200,ngDevMode?`Circular dependency in DI detected for ${e}${n}`:e)}function ir(){throw new Error("Cannot mix multi providers and regular providers")}function or(e,t,n){if(e&&t){const r=t.map((e=>e==n?"?"+n+"?":"..."));throw new Error(`Invalid provider for the NgModule '${Xt(e)}' - only instances of Provider and Type are allowed, got: [${r.join(", ")}]`)}throw Wn(n)?n.ɵfromNgModule?new kt(207,"Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers."):new kt(207,"Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers."):new Error("Invalid provider")}function sr(e,t){const n=ngDevMode&&`No provider for ${nr(e)} found${t?` in ${t}`:""}`;throw new kt(-201,n)}var ar;let cr;function ur(){return cr}function lr(e){const t=cr;return cr=e,t}function dr(e,t,n){const r=On(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ar.Optional?null:void 0!==t?t:void sr(e,"Injector")}!function(e){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"}(ar||(ar={}));const pr={},hr="__NG_DI_FLAG__",fr="ngTempTokenPath",gr=/\n/gm,mr="__source";let vr;function yr(e){const t=vr;return vr=e,t}function Er(e,t=ar.Default){if(void 0===vr)throw new kt(-203,ngDevMode&&"inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`.");if(null===vr)return dr(e,void 0,t);{const n=vr.get(e,t&ar.Optional?null:void 0,t);return ngDevMode&&qn(e,n,t),n}}function _r(e,t=ar.Default){return(ur()||Er)(on(e),t)}function br(e){throw new kt(202,ngDevMode&&`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${e} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${e} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`)}function Cr(e,t=ar.Default){return _r(e,Sr(t))}function Sr(e){return void 0===e||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ir(e){const t=[];for(let n=0;n<e.length;n++){const r=on(e[n]);if(Array.isArray(r)){if(0===r.length)throw new kt(900,ngDevMode&&"Arguments array must have arguments.");let e,n=ar.Default;for(let t=0;t<r.length;t++){const i=r[t],o=i[hr];"number"==typeof o?-1===o?e=i.token:n|=o:e=i}t.push(_r(e,n))}else t.push(_r(r))}return t}function Dr(e,t){return e[hr]=t,e.prototype[hr]=t,e}const wr=Dr(Wt("Inject",(e=>({token:e}))),-1),Tr=Dr(Wt("Optional"),8),Or=Dr(Wt("Self"),2),Ar=Dr(Wt("SkipSelf"),4),Nr=Dr(Wt("Host"),1);function Mr(e,t){const n=e.hasOwnProperty(Jn);if(!n&&!0===t&&ngDevMode)throw new Error(`Type ${Xt(e)} does not have 'ɵfac' property.`);return n?e[Jn]:null}function Pr(e){return e.flat(Number.POSITIVE_INFINITY)}function Rr(e,t){e.forEach((e=>Array.isArray(e)?Rr(e,t):t(e)))}function xr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function kr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Lr(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Fr(e,t,n){const r=e.length-n;for(;t<r;)e[t]=e[t+n],t++;for(;n--;)e.pop()}function Ur(e,t,n,r){ngDevMode&&mn(t,e.length,"Can't insert past array end.");let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){const t=i-2;e[i]=e[t],i--}e[t]=n,e[t+1]=r}}function jr(e,t,n){let r=$r(e,t);return r>=0?e[1|r]=n:(r=~r,Ur(e,r,t,n)),r}function Vr(e,t){const n=$r(e,t);if(n>=0)return e[1|n]}function $r(e,t){return function(e,t,n){ngDevMode&&dn(Array.isArray(e),!0,"Expecting an array");let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}(e,t,1)}const Br={},Hr=[];("undefined"==typeof ngDevMode||ngDevMode)&&Yt()&&(Object.freeze(Br),Object.freeze(Hr));const Gr=new Ln(ngDevMode?"ENVIRONMENT_INITIALIZER":""),qr=new Ln(ngDevMode?"INJECTOR":"",-1),zr=new Ln(ngDevMode?"INJECTOR_DEF_TYPES":"");class Wr{get(e,t=pr){if(t===pr){const t=new Error(`NullInjectorError: No provider for ${Xt(e)}!`);throw t.name="NullInjectorError",t}return t}}function Kr(e,t){const n=e[Zn]||null;if(!n&&!0===t)throw new Error(`Type ${Xt(e)} does not have 'ɵmod' property.`);return n}function Qr(e){return e[Kn]||null}function Yr(e){return e[Qn]||null}function Zr(e){return e[Yn]||null}function Jr(e){const t=Qr(e)||Yr(e)||Zr(e);return null!==t&&t.standalone}function Xr(e){return{ɵproviders:e}}function ei(e){return Xr([{provide:Gr,multi:!0,useValue:e}])}function ti(...e){return{ɵproviders:ni(!0,e),ɵfromNgModule:!0}}function ni(e,...t){const n=[],r=new Set;let i;const o=e=>{n.push(e)};return Rr(t,(t=>{if(("undefined"==typeof ngDevMode||ngDevMode)&&e){const e=Qr(t);if(e?.standalone)throw new kt(800,`Importing providers supports NgModule or ModuleWithProviders but got a standalone component "${nr(t)}"`)}const n=t;ii(n,o,[],r)&&(i||=[],i.push(n))})),void 0!==i&&ri(i,o),n}function ri(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:i}=e[n];si(i,(e=>{ngDevMode&&oi(e,i||Hr,r),t(e,r)}))}}function ii(e,t,n,r){if(!(e=on(e)))return!1;let i=null,o=Mn(e);const s=!o&&Qr(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const t=e.ngModule;if(o=Mn(t),!o)return!1;i=t}ngDevMode&&-1!==n.indexOf(i)&&rr(Xt(i),n.map(Xt));const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const e="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const i of e)ii(i,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let e;ngDevMode&&n.push(i),r.add(i);try{Rr(o.imports,(i=>{ii(i,t,n,r)&&(e||=[],e.push(i))}))}finally{ngDevMode&&n.pop()}void 0!==e&&ri(e,t)}if(!a){const e=Mr(i)||(()=>new i);t({provide:i,useFactory:e,deps:Hr},i),t({provide:zr,useValue:i,multi:!0},i),t({provide:Gr,useValue:()=>_r(i),multi:!0},i)}const s=o.providers;if(null!=s&&!a){const n=e;si(s,(e=>{ngDevMode&&oi(e,s,n),t(e,n)}))}}}return i!==e&&void 0!==e.providers}function oi(e,t,n){di(e)||ci(e)||li(e)||ui(e)||on(e&&(e.useClass||e.provide))||or(n,t,e)}function si(e,t){for(let n of e)Wn(n)&&(n=n.ɵproviders),Array.isArray(n)?si(n,t):t(n)}const ai=Zt({provide:String,useValue:Zt});function ci(e){return null!==e&&"object"==typeof e&&ai in e}function ui(e){return!(!e||!e.useExisting)}function li(e){return!(!e||!e.useFactory)}function di(e){return"function"==typeof e}const pi=new Ln(ngDevMode?"Set Injector scope.":""),hi={},fi={};let gi;function mi(){return void 0===gi&&(gi=new Wr),gi}class vi{}class yi extends vi{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,Si(e,(e=>this.processProvider(e))),this.records.set(qr,Ci(void 0,this)),r.has("environment")&&this.records.set(vi,Ci(void 0,this));const i=this.records.get(pi);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(zr,Hr,ar.Self))}destroy(){bi(this),this._destroyed=!0;const e=u(null);try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of e)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),u(e)}}onDestroy(e){return bi(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){bi(this);const t=yr(this),n=lr(void 0);let r;ngDevMode&&(r=jn({injector:this,token:null}));try{return e()}finally{yr(t),lr(n),ngDevMode&&jn(r)}}get(e,t=pr,n=ar.Default){if(bi(this),e.hasOwnProperty(er))return e[er](this);let r;n=Sr(n),ngDevMode&&(r=jn({injector:this,token:e}));const i=yr(this),o=lr(void 0);try{if(!(n&ar.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(s=e)||"object"==typeof s&&s instanceof Ln)&&On(e);n&&this.injectableDefInScope(n)?(ngDevMode&&zn(this,e,(()=>{Hn(e)})),t=Ci(Ei(e),hi)):t=null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}const r=n&ar.Self?mi():this.parent;return t=n&ar.Optional&&t===pr?null:t,r.get(e,t)}catch(t){if("NullInjectorError"===t.name){if((t[fr]=t[fr]||[]).unshift(Xt(e)),i)throw t;return function(e,t,n,r){const i=e[fr];throw t[mr]&&i.unshift(t[mr]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"ɵ"==e.charAt(1)?e.slice(2):e;let i=Xt(t);if(Array.isArray(t))i=t.map(Xt).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):Xt(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(gr,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[fr]=null,e}(t,e,"R3InjectorError",this.source)}throw t}finally{lr(o),yr(i),ngDevMode&&jn(r)}var s}resolveInjectorInitializers(){const e=u(null),t=yr(this),n=lr(void 0);let r;ngDevMode&&(r=jn({injector:this,token:null}));try{const e=this.get(Gr,Hr,ar.Self);if(ngDevMode&&!Array.isArray(e))throw new kt(-209,`Unexpected type of the \`ENVIRONMENT_INITIALIZER\` token value (expected an array, but got ${typeof e}). Please check that the \`ENVIRONMENT_INITIALIZER\` token is configured as a \`multi: true\` provider.`);for(const t of e)t()}finally{yr(t),lr(n),ngDevMode&&jn(r),u(e)}}toString(){const e=[],t=this.records;for(const n of t.keys())e.push(Xt(n));return`R3Injector[${e.join(", ")}]`}processProvider(e){let t=di(e=on(e))?e:on(e&&e.provide);const n=function(e){return ci(e)?Ci(void 0,e.useValue):Ci(_i(e),hi)}(e);if(ngDevMode&&zn(this,t,(()=>{ci(e)&&Gn(e.useValue),Hn(e)})),di(e)||!0!==e.multi){if(ngDevMode){const e=this.records.get(t);e&&void 0!==e.multi&&ir()}}else{let n=this.records.get(t);n?ngDevMode&&void 0===n.multi&&ir():(n=Ci(void 0,hi,!0),n.factory=()=>Ir(n.multi),this.records.set(t,n)),t=e,n.multi.push(e)}this.records.set(t,n)}hydrate(e,t){const n=u(null);try{return ngDevMode&&t.value===fi?rr(Xt(e)):t.value===hi&&(t.value=fi,ngDevMode?zn(this,e,(()=>{t.value=t.factory(),Gn(t.value)})):t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(r=t.value)&&"object"==typeof r&&"function"==typeof r.ngOnDestroy&&this._ngOnDestroyHooks.add(t.value),t.value}finally{u(n)}var r}injectableDefInScope(e){if(!e.providedIn)return!1;const t=on(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){const t=this._onDestroyHooks.indexOf(e);-1!==t&&this._onDestroyHooks.splice(t,1)}}function Ei(e){const t=On(e),n=null!==t?t.factory:Mr(e);if(null!==n)return n;if(e instanceof Ln)throw new kt(204,ngDevMode&&`Token ${Xt(e)} is missing a ɵprov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0)throw new kt(204,ngDevMode&&`Can't resolve all parameters for ${Xt(e)}: (${Lr(t,"?").join(", ")}).`);const n=function(e){const t=e&&(e[Pn]||e[xn]);return t?(ngDevMode&&console.warn(`DEPRECATED: DI is instantiating a token "${e.name}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e.name}" class.`),t):null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new kt(204,ngDevMode&&"unreachable")}function _i(e,t,n){let r;if(ngDevMode&&Wn(e)&&or(void 0,n,e),di(e)){const t=on(e);return Mr(t)||Ei(t)}if(ci(e))r=()=>on(e.useValue);else if(li(e))r=()=>e.useFactory(...Ir(e.deps||[]));else if(ui(e))r=()=>_r(on(e.useExisting));else{const i=on(e&&(e.useClass||e.provide));if(ngDevMode&&!i&&or(t,n,e),!e.deps)return Mr(i)||Ei(i);r=()=>new i(...Ir(e.deps))}return r}function bi(e){if(e.destroyed)throw new kt(205,ngDevMode&&"Injector has already been destroyed.")}function Ci(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Si(e,t){for(const n of e)Array.isArray(n)?Si(n,t):n&&Wn(n)?Si(n.ɵproviders,t):t(n)}function Ii(e,t){let n;e instanceof yi&&bi(e),ngDevMode&&(n=jn({injector:e,token:null}));const r=yr(e),i=lr(void 0);try{return t()}finally{yr(r),ngDevMode&&jn(n),lr(i)}}function Di(){return void 0!==ur()||null!=vr}function wi(e){if(!Di())throw new kt(-203,ngDevMode&&e.name+"() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`")}var Ti,Oi,Ai;function Ni(e){const t=Qt.ng;if(t&&t.ɵcompilerFacade)return t.ɵcompilerFacade;if("undefined"==typeof ngDevMode||ngDevMode){console.error(`JIT compilation failed for ${e.kind}`,e.type);let t=`The ${e.kind} '${e.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\n\n`;throw 1===e.usage?(t+=`The ${e.kind} is part of a library that has been partially compiled.\n`,t+="However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\n",t+="\n",t+="Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\n"):t+="JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\n",t+="Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\n",t+="or manually provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.",new Error(t)}throw new Error("JIT compiler unavailable")}!function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(Ti||(Ti={})),function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"}(Oi||(Oi={})),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Ai||(Ai={}));const Mi={ɵɵdefineInjectable:Dn,ɵɵdefineInjector:Tn,ɵɵinject:_r,ɵɵinvalidFactoryDep:br,resolveForwardRef:on},Pi=Function;function Ri(e){return"function"==typeof e}const xi=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,ki=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Li=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Fi=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Ui{_reflect;constructor(e){this._reflect=e||Qt.Reflect}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=Lr(void 0===e?t.length:e.length);for(let r=0;r<n.length;r++)void 0===e?n[r]=[]:e[r]&&e[r]!=Object?n[r]=[e[r]]:n[r]=[],t&&null!=t[r]&&(n[r]=n[r].concat(t[r]));return n}_ownParameters(e,t){if(n=e.toString(),xi.test(n)||Fi.test(n)||ki.test(n)&&!Li.test(n))return null;var n;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;const r=e.ctorParameters;if(r&&r!==t.ctorParameters){const e="function"==typeof r?r():r,t=e.map((e=>e&&e.type)),n=e.map((e=>e&&ji(e.decorators)));return this._zipTypesAndAnnotations(t,n)}const i=e.hasOwnProperty(Ht)&&e[Ht],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return o||i?this._zipTypesAndAnnotations(o,i):Lr(e.length)}parameters(e){if(!Ri(e))return[];const t=Vi(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?ji(e.decorators):e.hasOwnProperty(Bt)?e[Bt]:null}annotations(e){if(!Ri(e))return[];const t=Vi(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach((e=>{n[e]=ji(t[e])})),n}return e.hasOwnProperty(Gt)?e[Gt]:null}propMetadata(e){if(!Ri(e))return{};const t=Vi(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach((t=>{n[t]=e[t]}))}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach((e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t})),n}ownPropMetadata(e){return Ri(e)&&this._ownPropMetadata(e,Vi(e))||{}}hasLifecycleHook(e,t){return e instanceof Pi&&t in e.prototype}}function ji(e){return e?e.map((e=>new(0,e.type.annotationCls)(...e.args?e.args:[]))):[]}function Vi(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const $i=0,Bi=1,Hi=2,Gi=3,qi=4,zi=5,Wi=6,Ki=7,Qi=8,Yi=9,Zi=10,Ji=11,Xi=12,eo=13,to=14,no=15,ro=16,io=17,oo=18,so=19,ao=20,co=21,uo=22,lo=23,po=24,ho=25,fo=1,go=6,mo=7,vo=9,yo=10;function Eo(e){return Array.isArray(e)&&"object"==typeof e[fo]}function _o(e){return Array.isArray(e)&&!0===e[fo]}function bo(e){return!!(4&e.flags)}function Co(e){return e.componentOffset>-1}function So(e){return!(1&~e.flags)}function Io(e){return!!e.template}function Do(e){return!!(512&e[Hi])}function wo(e){return!(16&~e.type)}function To(e){return!(256&~e[Hi])}function Oo(e,t){Ao(e,t[Bi])}function Ao(e,t){No(e);const n=t.data;for(let t=ho;t<n.length;t++)if(n[t]===e)return;_n("This TNode does not belong to this TView.")}function No(e){En(e,"TNode must be defined"),e&&"object"==typeof e&&e.hasOwnProperty("directiveStylingLast")||_n("Not of type TNode, got: "+e)}function Mo(e){En(e,"Expected TIcu to be defined"),"number"!=typeof e.currentCaseLViewIndex&&_n("Object is not of TIcu type.")}function Po(e){En(e,"currentTNode should exist!"),En(e.parent,"currentTNode should have a parent")}function Ro(e){En(e,"LContainer must be defined"),dn(_o(e),!0,"Expecting LContainer")}function xo(e){e&&dn(Eo(e),!0,"Expecting LView or undefined or null")}function ko(e){En(e,"LView must be defined"),dn(Eo(e),!0,"Expecting LView")}function Lo(e,t){dn(e.firstCreatePass,!0,t||"Should only be called in first create pass.")}function Fo(e,t){dn(e.firstUpdatePass,!0,t||"Should only be called in first update pass.")}function Uo(e,t){Vo(ho,e.bindingStartIndex,t)}function jo(e,t){Vo(e[1].expandoStartIndex,e.length,t)}function Vo(e,t,n){e<=n&&n<t||_n(`Index out of range (expecting ${e} <= ${n} < ${t})`)}function $o(e,t){En(e,t||"Component views should always have a parent view (component's host view)")}function Bo(e){if(e.length<2)return;const t=new Set;for(const n of e){if(t.has(n))throw new kt(309,`Directive ${n.type.name} matches multiple times on the same element. Directives can only match an element once.`);t.add(n)}}function Ho(e,t){jo(e,t),jo(e,t+8),an(e[t+0],"injectorIndex should point to a bloom filter"),an(e[t+1],"injectorIndex should point to a bloom filter"),an(e[t+2],"injectorIndex should point to a bloom filter"),an(e[t+3],"injectorIndex should point to a bloom filter"),an(e[t+4],"injectorIndex should point to a bloom filter"),an(e[t+5],"injectorIndex should point to a bloom filter"),an(e[t+6],"injectorIndex should point to a bloom filter"),an(e[t+7],"injectorIndex should point to a bloom filter"),an(e[t+8],"injectorIndex should point to parent injector")}class Go{previousValue;currentValue;firstChange;constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function qo(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}const zo=(()=>{const e=()=>Wo;return e.ngInherit=!0,e})();function Wo(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qo),Ko}function Ko(){const e=Zo(this),t=e?.current;if(t){const n=e.previous;if(n===Br)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Qo(e,t,n,r,i){const o=this.declaredInputs[r];ngDevMode&&un(o,"Name of input in ngOnChanges has to be a string");const s=Zo(e)||function(e,t){return e[Yo]=t}(e,{previous:Br,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new Go(u&&u.currentValue,n,c===Br),qo(e,t,i,n)}const Yo="__ngSimpleChanges__";function Zo(e){return e[Yo]||null}let Jo=null;const Xo=function(e,t,n){null!=Jo&&Jo(e,t,n)},es="svg",ts="math";function ns(e){for(;Array.isArray(e);)e=e[$i];return e}function rs(e){for(;Array.isArray(e);){if("object"==typeof e[fo])return e;e=e[$i]}return null}function is(e,t){return ngDevMode&&Cn(t,e),ngDevMode&&yn(e,ho,"Expected to be past HEADER_OFFSET"),ns(t[e])}function os(e,t){return ngDevMode&&Oo(e,t),ngDevMode&&Cn(t,e.index),ns(t[e.index])}function ss(e,t){ngDevMode&&vn(t,-1,"wrong index for TNode"),ngDevMode&&gn(t,e.data.length,"wrong index for TNode");const n=e.data[t];return ngDevMode&&null!==n&&No(n),n}function as(e,t){return ngDevMode&&Cn(e,t),e[t]}function cs(e,t){ngDevMode&&Cn(t,e);const n=t[e];return Eo(n)?n:n[$i]}function us(e){return!(4&~e[Hi])}function ls(e){return!(128&~e[Hi])}function ds(e,t){return null==t?null:(ngDevMode&&Cn(e,t),e[t])}function ps(e){e[io]=0}function hs(e){1024&e[Hi]||(e[Hi]|=1024,ls(e)&&vs(e))}function fs(e,t){for(;e>0;)ngDevMode&&En(t[to],"Declaration view should be defined if nesting level is greater than 0."),t=t[to],e--;return t}function gs(e){return!!(9216&e[Hi]||e[po]?.dirty)}function ms(e){e[Zi].changeDetectionScheduler?.notify(9),64&e[Hi]&&(e[Hi]|=1024),gs(e)&&vs(e)}function vs(e){e[Zi].changeDetectionScheduler?.notify(0);let t=_s(e);for(;null!==t&&!(8192&t[Hi])&&(t[Hi]|=8192,ls(t));)t=_s(t)}function ys(e,t){if(To(e))throw new kt(911,ngDevMode&&"View has already been destroyed.");null===e[co]&&(e[co]=[]),e[co].push(t)}function Es(e,t){if(null===e[co])return;const n=e[co].indexOf(t);-1!==n&&e[co].splice(n,1)}function _s(e){ngDevMode&&ko(e);const t=e[Gi];return _o(t)?t[Gi]:t}function bs(e){return e[Ki]??=[]}function Cs(e){return e.cleanup??=[]}const Ss={lFrame:ca(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Is;!function(e){e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews"}(Is||(Is={}));let Ds=0,ws=!1;function Ts(){return Ss.bindingsEnabled}function Os(){return null!==Ss.skipHydrationRootTNode}function As(){Ss.bindingsEnabled=!0}function Ns(){Ss.bindingsEnabled=!1}function Ms(){return Ss.lFrame.lView}function Ps(){return Ss.lFrame.tView}function Rs(e){return Ss.lFrame.contextLView=e,e[Qi]}function xs(e){return Ss.lFrame.contextLView=null,e}function ks(){let e=Ls();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ls(){return Ss.lFrame.currentTNode}function Fs(){const e=Ss.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Us(e,t){ngDevMode&&e&&Ao(e,Ss.lFrame.tView);const n=Ss.lFrame;n.currentTNode=e,n.isParent=t}function js(){return Ss.lFrame.isParent}function Vs(){Ss.lFrame.isParent=!1}function $s(){const e=Ss.lFrame.contextLView;return ngDevMode&&En(e,"contextLView must be defined."),e}function Bs(){return!ngDevMode&&_n("Must never be called in production mode"),Ds!==Is.Off}function Hs(){return!ngDevMode&&_n("Must never be called in production mode"),Ds===Is.Exhaustive}function Gs(e){!ngDevMode&&_n("Must never be called in production mode"),Ds=e}function qs(){return ws}function zs(e){const t=ws;return ws=e,t}function Ws(){const e=Ss.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ks(){return Ss.lFrame.bindingIndex}function Qs(e){return Ss.lFrame.bindingIndex=e}function Ys(){return Ss.lFrame.bindingIndex++}function Zs(e){const t=Ss.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Js(e){Ss.lFrame.inI18n=e}function Xs(e,t){const n=Ss.lFrame;n.bindingIndex=n.bindingRootIndex=e,ea(t)}function ea(e){Ss.lFrame.currentDirectiveIndex=e}function ta(e){const t=Ss.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function na(){return Ss.lFrame.currentQueryIndex}function ra(e){Ss.lFrame.currentQueryIndex=e}function ia(e){const t=e[Bi];return 2===t.type?(ngDevMode&&En(t.declTNode,"Embedded TNodes should have declaration parents."),t.declTNode):1===t.type?e[zi]:null}function oa(e,t,n){if(ngDevMode&&xo(e),n&ar.SkipSelf){ngDevMode&&Ao(t,e[Bi]);let r=t,i=e;for(;ngDevMode&&En(r,"Parent TNode should be defined"),r=r.parent,!(null!==r||n&ar.Host||(r=ia(i),null===r)||(ngDevMode&&En(i,"Parent LView should be defined"),i=i[to],10&r.type)););if(null===r)return!1;t=r,e=i}ngDevMode&&Oo(t,e);const r=Ss.lFrame=aa();return r.currentTNode=t,r.lView=e,!0}function sa(e){ngDevMode&&pn(e[0],e[1],"????"),ngDevMode&&xo(e);const t=aa();ngDevMode&&(dn(t.isParent,!0,"Expected clean LFrame"),dn(t.lView,null,"Expected clean LFrame"),dn(t.tView,null,"Expected clean LFrame"),dn(t.selectedIndex,-1,"Expected clean LFrame"),dn(t.elementDepthCount,0,"Expected clean LFrame"),dn(t.currentDirectiveIndex,-1,"Expected clean LFrame"),dn(t.currentNamespace,null,"Expected clean LFrame"),dn(t.bindingRootIndex,-1,"Expected clean LFrame"),dn(t.currentQueryIndex,0,"Expected clean LFrame"));const n=e[Bi];Ss.lFrame=t,ngDevMode&&n.firstChild&&Ao(n.firstChild,n),t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function aa(){const e=Ss.lFrame,t=null===e?null:e.child;return null===t?ca(e):t}function ca(e){const t={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 null!==e&&(e.child=t),t}function ua(){const e=Ss.lFrame;return Ss.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const la=ua;function da(){const e=ua();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 pa(){return Ss.lFrame.selectedIndex}function ha(e){ngDevMode&&-1!==e&&yn(e,ho,"Index must be past HEADER_OFFSET (or -1)."),ngDevMode&&gn(e,Ss.lFrame.lView.length,"Can't set index passed end of LView"),Ss.lFrame.selectedIndex=e}function fa(){const e=Ss.lFrame;return ss(e.tView,e.selectedIndex)}function ga(){Ss.lFrame.currentNamespace=es}function ma(){Ss.lFrame.currentNamespace=ts}function va(){Ss.lFrame.currentNamespace=null}function ya(){return Ss.lFrame.currentNamespace}let Ea=!0;function _a(){return Ea}function ba(e){Ea=e}function Ca(e,t){ngDevMode&&Lo(e);for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const t=e.data[n];ngDevMode&&En(t,"Expecting DirectiveDef");const r=t.type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:o,ngAfterViewInit:s,ngAfterViewChecked:a,ngOnDestroy:c}=r;i&&(e.contentHooks??=[]).push(-n,i),o&&((e.contentHooks??=[]).push(n,o),(e.contentCheckHooks??=[]).push(n,o)),s&&(e.viewHooks??=[]).push(-n,s),a&&((e.viewHooks??=[]).push(n,a),(e.viewCheckHooks??=[]).push(n,a)),null!=c&&(e.destroyHooks??=[]).push(n,c)}}function Sa(e,t,n){wa(e,t,3,n)}function Ia(e,t,n,r){ngDevMode&&pn(n,3,"Init pre-order hooks should not be called more than once"),(3&e[Hi])===n&&wa(e,t,n,r)}function Da(e,t){ngDevMode&&pn(t,3,"Init hooks phase should not be incremented after all init hooks have been run.");let n=e[Hi];(3&n)===t&&(n&=16383,n+=1,e[Hi]=n)}function wa(e,t,n,r){ngDevMode&&dn(Bs(),!1,"Hooks should never be run when in check no changes mode.");const i=void 0!==r?65535&e[io]:0,o=null!=r?r:-1,s=t.length-1;let a=0;for(let c=i;c<s;c++)if("number"==typeof t[c+1]){if(a=t[c],null!=r&&a>=r)break}else t[c]<0&&(e[io]+=65536),(a<o||-1==o)&&(Oa(e,n,t,c),e[io]=(4294901760&e[io])+c+2),c++}function Ta(e,t){Xo(4,e,t);const n=u(null);try{t.call(e)}finally{u(n),Xo(5,e,t)}}function Oa(e,t,n,r){const i=n[r]<0,o=n[r+1],s=e[i?-n[r]:n[r]];i?e[Hi]>>14<e[io]>>16&&(3&e[Hi])===t&&(e[Hi]+=16384,Ta(s,o)):Ta(s,o)}const Aa=-1;class Na{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,t,n){this.factory=e,ngDevMode&&En(e,"Factory not specified"),ngDevMode&&dn(typeof e,"function","Expected factory function."),this.canSeeViewProviders=t,this.injectImpl=n}}function Ma(e){let t="";return 1&e&&(t+="|Text"),2&e&&(t+="|Element"),4&e&&(t+="|Container"),8&e&&(t+="|ElementContainer"),16&e&&(t+="|Projection"),32&e&&(t+="|IcuContainer"),64&e&&(t+="|Placeholder"),128&e&&(t+="|LetDeclaration"),t.length>0?t.substring(1):t}function Pa(e){return null!=e&&"object"==typeof e&&(null===e.insertBeforeIndex||"number"==typeof e.insertBeforeIndex||Array.isArray(e.insertBeforeIndex))}function Ra(e){return!!(128&e.type)}function xa(e,t,n){En(e,"should be called with a TNode"),e.type&t||_n(n||`Expected [${Ma(t)}] but got ${Ma(e.type)}.`)}function ka(e){return 3===e||4===e||6===e}function La(e){return 64===e.charCodeAt(0)}function Fa(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||Ua(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function Ua(e,t,n,r,i){let o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){const n=e[o++];if("number"==typeof n){if(n===t){s=-1;break}if(n>t){s=o-1;break}}}for(;o<e.length;){const t=e[o];if("number"==typeof t)break;if(t===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}const ja={};class Va{injector;parentInjector;constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=Sr(n);const r=this.injector.get(e,ja,n);return r!==ja||t===ja?r:this.parentInjector.get(e,t,n)}}function $a(e){return e!==Aa}function Ba(e){return ngDevMode&&(an(e,"Number expected"),pn(e,-1,"Not a valid state."),vn(32767&e,ho,"Parent injector must be pointing past HEADER_OFFSET.")),32767&e}function Ha(e,t){let n=e>>16,r=t;for(;n>0;)r=r[to],n--;return r}let Ga=!0;function qa(e){const t=Ga;return Ga=e,t}const za=255,Wa=5;let Ka=0;const Qa={};function Ya(e,t){const n=Ja(e,t);if(-1!==n)return n;const r=t[Bi];r.firstCreatePass&&(e.injectorIndex=t.length,Za(r.data,e),Za(t,null),Za(r.blueprint,null));const i=Xa(e,t),o=e.injectorIndex;if($a(i)){const e=Ba(i),n=Ha(i,t),r=n[Bi].data;for(let i=0;i<8;i++)t[o+i]=n[e+i]|r[e+i]}return t[o+8]=i,o}function Za(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ja(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:(ngDevMode&&Cn(t,e.injectorIndex),e.injectorIndex)}function Xa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=mc(i),null===r)return Aa;if(ngDevMode&&r&&Oo(r,i[to]),n++,i=i[to],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Aa}function ec(e,t,n){!function(e,t,n){let r;ngDevMode&&dn(t.firstCreatePass,!0,"expected firstCreatePass to be true"),"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xn)&&(r=n[Xn]),null==r&&(r=n[Xn]=Ka++);const i=r&za,o=1<<i;t.data[e+(i>>Wa)]|=o}(e,t,n)}function tc(e,t,n){if(n&ar.Optional||void 0!==e)return e;sr(t,"NodeInjector")}function nc(e,t,n,r){if(n&ar.Optional&&void 0===r&&(r=null),!(n&(ar.Self|ar.Host))){const i=e[Yi],o=lr(void 0);try{return i?i.get(t,r,n&ar.Optional):dr(t,r,n&ar.Optional)}finally{lr(o)}}return tc(r,t,n)}function rc(e,t,n,r=ar.Default,i){if(null!==e){if(2048&t[Hi]&&!(r&ar.Self)){const i=function(e,t,n,r,i){let o=e,s=t;for(;null!==o&&null!==s&&2048&s[Hi]&&!(512&s[Hi]);){ngDevMode&&Oo(o,s);const e=ic(o,s,n,r|ar.Self,Qa);if(e!==Qa)return e;let t=o.parent;if(!t){const e=s[ao];if(e){const t=e.get(n,Qa,r);if(t!==Qa)return t}t=mc(s),s=s[to]}o=t}return i}(e,t,n,r,Qa);if(i!==Qa)return i}const i=ic(e,t,n,r,Qa);if(i!==Qa)return i}return nc(t,n,r,i)}function ic(e,t,n,r,i){const o=function(e){if(ngDevMode&&En(e,"token must be defined"),"string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Xn)?e[Xn]:void 0;return"number"==typeof t?t>=0?t&za:(ngDevMode&&dn(t,-1,"Expecting to get Special Injector Id"),hc):t}(n);if("function"==typeof o){if(!oa(t,e,r))return r&ar.Host?tc(i,n,r):nc(t,n,r,i);try{let e;if(ngDevMode?zn(new pc(ks(),Ms()),n,(()=>{e=o(r),null!=e&&Gn(e)})):e=o(r),null!=e||r&ar.Optional)return e;sr(n)}finally{la()}}else if("number"==typeof o){let i=null,s=Ja(e,t),a=Aa,c=r&ar.Host?t[no][zi]:null;for((-1===s||r&ar.SkipSelf)&&(a=-1===s?Xa(e,t):t[s+8],a!==Aa&&uc(r,!1)?(i=t[Bi],s=Ba(a),t=Ha(a,t)):s=-1);-1!==s;){ngDevMode&&Ho(t,s);const e=t[Bi];if(ngDevMode&&Oo(e.data[s+8],t),cc(o,s,e.data)){const e=oc(s,t,n,i,r,c);if(e!==Qa)return e}a=t[s+8],a!==Aa&&uc(r,t[Bi].data[s+8]===c)&&cc(o,s,t)?(i=e,s=Ba(a),t=Ha(a,t)):s=-1}}return i}function oc(e,t,n,r,i,o){const s=t[Bi],a=s.data[e+8],c=sc(a,s,n,null==r?Co(a)&&Ga:r!=s&&!!(3&a.type),i&ar.Host&&o===a);return null!==c?ac(t,s,c,a):Qa}function sc(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,c=e.directiveStart,u=e.directiveEnd,l=o>>20,d=i?a+l:u;for(let e=r?a:a+l;e<d;e++){const t=s[e];if(e<c&&n===t||e>=c&&t.type===n)return e}if(i){const e=s[c];if(e&&Io(e)&&e.type===n)return c}return null}function ac(e,t,n,r){let i=e[n];const o=t.data;if(i instanceof Na){const a=i;a.resolving&&rr(nr(o[n]));const c=qa(a.canSeeViewProviders);let u;if(a.resolving=!0,ngDevMode){const t=o[n].type||o[n];u=jn({injector:new pc(r,e),token:t})}const l=a.injectImpl?lr(a.injectImpl):null,d=oa(e,r,ar.Default);ngDevMode&&dn(d,!0,"Because flags do not contain `SkipSelf' we expect this to always succeed.");try{i=e[n]=a.factory(void 0,o,e,r),ngDevMode&&Gn(i),t.firstCreatePass&&n>=r.directiveStart&&(ngDevMode&&(void 0!==(s=o[n]).type&&null!=s.selectors&&void 0!==s.inputs||_n("Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.")),function(e,t,n){ngDevMode&&Lo(n);const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const r=Wo(t);(n.preOrderHooks??=[]).push(e,r),(n.preOrderCheckHooks??=[]).push(e,r)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}(n,o[n],t))}finally{ngDevMode&&jn(u),null!==l&&lr(l),qa(c),a.resolving=!1,la()}}var s;return i}function cc(e,t,n){const r=1<<e;return!!(n[t+(e>>Wa)]&r)}function uc(e,t){return!(e&ar.Self||e&ar.Host&&t)}function lc(e){return e._lView}function dc(e){return e._tNode}class pc{_tNode;_lView;constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return rc(this._tNode,this._lView,e,Sr(n),t)}}function hc(){return new pc(ks(),Ms())}function fc(e){return $t((()=>{const t=e.prototype.constructor,n=t[Jn]||gc(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const e=i[Jn]||gc(i);if(e&&e!==n)return e;i=Object.getPrototypeOf(i)}return e=>new e}))}function gc(e){return sn(e)?()=>{const t=gc(on(e));return t&&t()}:Mr(e)}function mc(e){const t=e[Bi],n=t.type;return 2===n?(ngDevMode&&En(t.declTNode,"Embedded TNodes should have declaration parents."),t.declTNode):1===n?e[zi]:null}function vc(e){return function(e,t){if(ngDevMode&&xa(e,15),ngDevMode&&En(e,"expecting tNode"),"class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let r=0;for(;r<e;){const i=n[r];if(ka(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<e&&"string"==typeof n[r];)r++;else{if(i===t)return n[r+1];r+=2}}}return null}(ks(),e)}const yc=Wt("Attribute",(e=>({attributeName:e,__NG_ELEMENT_ID__:()=>vc(e)})));let Ec=null;function _c(){return Ec=Ec||new Ui}function bc(e){return Cc(_c().parameters(e))}function Cc(e){return e.map((e=>function(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){const r=e[n];if(void 0===r)continue;const i=Object.getPrototypeOf(r);if(r instanceof Tr||"Optional"===i.ngMetadataName)t.optional=!0;else if(r instanceof Ar||"SkipSelf"===i.ngMetadataName)t.skipSelf=!0;else if(r instanceof Or||"Self"===i.ngMetadataName)t.self=!0;else if(r instanceof Nr||"Host"===i.ngMetadataName)t.host=!0;else if(r instanceof wr)t.token=r.token;else if(r instanceof yc){if(void 0===r.attributeName)throw new kt(204,ngDevMode&&"Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else void 0===e||Array.isArray(e)&&0===e.length?t.token=null:t.token=e;return t}(e)))}const Sc=Zt({provide:String,useValue:Zt});function Ic(e){return void 0!==e.useClass}function Dc(e){return void 0!==e.useFactory}const wc=qt("Injectable",void 0,void 0,void 0,((e,t)=>function(e,t){let n=null,r=null;e.hasOwnProperty(Pn)||Object.defineProperty(e,Pn,{get:()=>{if(null===n){const r=Ni({usage:0,kind:"injectable",type:e});n=r.compileInjectable(Mi,`ng:///${e.name}/ɵprov.js`,function(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(Ic(n)||Dc(n))&&void 0!==n.deps&&(r.deps=Cc(n.deps)),Ic(n)?r.useClass=n.useClass:function(e){return Sc in e}(n)?r.useValue=n.useValue:Dc(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))}return n}}),e.hasOwnProperty(Jn)||Object.defineProperty(e,Jn,{get:()=>{if(null===r){const t=Ni({usage:0,kind:"injectable",type:e});r=t.compileFactory(Mi,`ng:///${e.name}/ɵfac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:bc(e),target:t.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t)));function Tc(e,t=null,n=null,r){const i=Oc(e,t,n,r);return i.resolveInjectorInitializers(),i}function Oc(e,t=null,n=null,r,i=new Set){const o=[n||Hr,ti(e)];return r=r||("object"==typeof e?void 0:Xt(e)),new yi(o,t||mi(),r||null,i)}class Ac{static THROW_IF_NOT_FOUND=pr;static NULL=new Wr;static create(e,t){if(Array.isArray(e))return Tc({name:""},t,e,"");{const t=e.name??"";return Tc({name:t},e.parent,e.providers,t)}}static ɵprov=Dn({token:Ac,providedIn:"any",factory:()=>_r(qr)});static __NG_ELEMENT_ID__=-1}class Nc{attributeName;constructor(e){this.attributeName=e}__NG_ELEMENT_ID__=()=>vc(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}const Mc=new Ln(ngDevMode?"HOST_TAG_NAME":"");Mc.__NG_ELEMENT_ID__=e=>{const t=ks();if(null===t)throw new kt(204,ngDevMode&&"HOST_TAG_NAME can only be injected in directives and components during construction time (in a class constructor or as a class field initializer)");if(2&t.type)return t.value;if(e&ar.Optional)return null;throw new kt(204,ngDevMode&&`HOST_TAG_NAME was used on ${function(e){return 8&e.type?"an <ng-container>":4&e.type?"an <ng-template>":128&e.type?"an @let declaration":"a node"}(t)} which doesn't have an underlying element in the DOM. This is invalid, and so the dependency should be marked as optional.`)};const Pc=!1;class Rc{static __NG_ELEMENT_ID__=kc;static __NG_ENV_ID__=e=>e}class xc extends Rc{_lView;constructor(e){super(),this._lView=e}onDestroy(e){return ys(this._lView,e),()=>Es(this._lView,e)}}function kc(){return new xc(Ms())}class Lc{}const Fc=new Ln("undefined"==typeof ngDevMode||ngDevMode?"Zoneless enabled":"",{providedIn:"root",factory:()=>!1}),Uc=new Ln("undefined"==typeof ngDevMode||ngDevMode?"Zoneless provided":"",{providedIn:"root",factory:()=>!1}),jc=new Ln("undefined"==typeof ngDevMode||ngDevMode?"scheduler disabled":""),Vc=new Ln("undefined"==typeof ngDevMode||ngDevMode?"run changes outside zone in root":"");class $c{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Te(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static ɵprov=Dn({token:$c,providedIn:"root",factory:()=>new $c})}class Bc{internalPendingTasks=Cr($c);scheduler=Cr(Lc);add(){const e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(12),this.internalPendingTasks.remove(e))}}async run(e){const t=this.add();try{return await e()}finally{t()}}static ɵprov=Dn({token:Bc,providedIn:"root",factory:()=>new Bc})}const Hc=class extends De{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,Di()&&(this.destroyRef=Cr(Rc,{optional:!0})??void 0,this.pendingTasks=Cr($c,{optional:!0})??void 0)}emit(e){const t=u(null);try{super.next(e)}finally{u(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&"object"==typeof e){const t=e;r=t.next?.bind(t),i=t.error?.bind(t),o=t.complete?.bind(t)}this.__isAsync&&(i=this.wrapInTimeout(i),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));const s=super.subscribe({next:r,error:i,complete:o});return e instanceof X&&e.add(s),s}wrapInTimeout(e){return t=>{const n=this.pendingTasks?.add();setTimeout((()=>{e(t),void 0!==n&&this.pendingTasks?.remove(n)}))}}};function Gc(...e){}function qc(e){let t,n;function r(){e=Gc;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout((()=>{e(),r()})),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame((()=>{e(),r()}))),()=>r()}function zc(e){return queueMicrotask((()=>e())),()=>{e=Gc}}class Wc{createTask;constructor(e,t=console){this.name="asyncStackTagging for "+e,this.createTask=t?.createTask??(()=>null)}name;onScheduleTask(e,t,n,r){return r.consoleTask=this.createTask(`Zone - ${r.source||r.type}`),e.scheduleTask(n,r)}onInvokeTask(e,t,n,r,i,o){let s;return s=r.consoleTask?r.consoleTask.run((()=>e.invokeTask(n,r,i,o))):e.invokeTask(n,r,i,o),s}}const Kc="isAngularZone",Qc=Kc+"_ID";let Yc=0;class Zc{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Hc(!1);onMicrotaskEmpty=new Hc(!1);onStable=new Hc(!1);onError=new Hc(!1);constructor(e){const{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:i=Pc}=e;if("undefined"==typeof Zone)throw new kt(908,ngDevMode&&"In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,ngDevMode&&(o._inner=o._inner.fork(new Wc("Angular"))),Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,o.scheduleInRootZone=i,function(e){const t=()=>{!function(e){function t(){qc((()=>{e.callbackScheduled=!1,eu(e),e.isCheckStableRunning=!0,Xc(e),e.isCheckStableRunning=!1}))}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run((()=>{t()})):e._outer.run((()=>{t()})),eu(e))}(e)},n=Yc++;e._inner=e._inner.fork({name:"angular",properties:{[Kc]:!0,[Qc]:n,[Qc+n]:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(function(e){return iu(e,"__ignore_ng_zone__")}(a))return n.invokeTask(i,o,s,a);try{return tu(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),nu(e)}},onInvoke:(n,r,i,o,s,a,c)=>{try{return tu(e),n.invoke(i,o,s,a,c)}finally{!e.shouldCoalesceRunChangeDetection||e.callbackScheduled||function(e){return iu(e,"__scheduler_tick__")}(a)||t(),nu(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,eu(e),Xc(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular((()=>e.onError.emit(i))),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get(Kc)}static assertInAngularZone(){if(!Zc.isInAngularZone())throw new kt(909,ngDevMode&&"Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Zc.isInAngularZone())throw new kt(909,ngDevMode&&"Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Jc,Gc,Gc);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const Jc={};function Xc(e){if(0==e._nesting&&!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 eu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function tu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function nu(e){e._nesting--,Xc(e)}class ru{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Hc;onMicrotaskEmpty=new Hc;onStable=new Hc;onError=new Hc;run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}function iu(e,t){return!!Array.isArray(e)&&1===e.length&&!0===e[0]?.data?.[t]}class ou{_console=console;handleError(e){this._console.error("ERROR",e)}}const su=new Ln("undefined"==typeof ngDevMode||ngDevMode?"internal error handler":"",{providedIn:"root",factory:()=>{const e=Cr(Zc),t=Cr(ou);return n=>e.runOutsideAngular((()=>t.handleError(n)))}});class au{destroyed=!1;listeners=null;errorHandler=Cr(ou,{optional:!0});destroyRef=Cr(Rc);constructor(){this.destroyRef.onDestroy((()=>{this.destroyed=!0,this.listeners=null}))}subscribe(e){if(this.destroyed)throw new kt(953,ngDevMode&&"Unexpected subscription to destroyed `OutputRef`. The owning directive/component is destroyed.");return(this.listeners??=[]).push(e),{unsubscribe:()=>{const t=this.listeners?.indexOf(e);void 0!==t&&-1!==t&&this.listeners?.splice(t,1)}}}emit(e){if(this.destroyed)throw new kt(953,ngDevMode&&"Unexpected emit for destroyed `OutputRef`. The owning directive/component is destroyed.");if(null===this.listeners)return;const t=u(null);try{for(const t of this.listeners)try{t(e)}catch(e){this.errorHandler?.handleError(e)}}finally{u(t)}}}function cu(e){return e.destroyRef}function uu(e){return ngDevMode&&wi(uu),new au}function lu(e,t){return ngDevMode&&wi(du),Vt(e,t)}const du=(lu.required=function(e){return ngDevMode&&wi(du),Vt(Ft,e)},lu);function pu(){return hu(ks(),Ms())}function hu(e,t){return new fu(os(e,t))}class fu{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=pu}function gu(e){return e instanceof fu?e.nativeElement:e}const mu=new Set;function vu(e){mu.has(e)||(mu.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function yu(e){return"function"==typeof e&&void 0!==e[c]}function Eu(e){return null}function _u(e,t){vu("NgSignals");const n=function(e){const t=Object.create(j);t.value=e;const n=()=>(h(t),t.value);return n[c]=t,n}(e),r=n[c];return t?.equal&&(r.equal=t.equal),n.set=e=>F(r,e),n.update=e=>U(r,e),n.asReadonly=bu.bind(n),ngDevMode&&(n.toString=()=>`[Signal: ${n()}]`,r.debugName=t?.debugName),n}function bu(){const e=this[c];if(void 0===e.readonlyFn){const t=()=>this();t[c]=e,e.readonlyFn=t}return e.readonlyFn}function Cu(e){return yu(e)&&"function"==typeof e.set}function Su(){return this._results[Symbol.iterator]()}class Iu{_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 De}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=Pr(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){void 0===this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=(()=>Su)()}const Du="ngSkipHydration",wu="ngskiphydration";function Tu(e){const t=e.mergedAttrs;if(null===t)return!1;for(let e=0;e<t.length;e+=2){const n=t[e];if("number"==typeof n)return!1;if("string"==typeof n&&n.toLowerCase()===wu)return!0}return!1}function Ou(e){return e.hasAttribute(Du)}function Au(e){return!(128&~e.flags)}function Nu(e){if(Au(e))return!0;let t=e.parent;for(;t;){if(Au(e)||Tu(t))return!0;t=t.parent}return!1}function Mu(e){return Au(e)||Tu(e)||Nu(e)}var Pu;!function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(Pu||(Pu={}));const Ru=new Map;let xu=0;function ku(e){return ngDevMode&&an(e,"ID used for LView lookup must be a number"),Ru.get(e)||null}function Lu(e){ngDevMode&&an(e[so],"Cannot stop tracking an LView that does not have an ID"),Ru.delete(e[so])}class Fu{lViewId;nodeIndex;native;component;directives;localRefs;get lView(){return ku(this.lViewId)}constructor(e,t,n){this.lViewId=e,this.nodeIndex=t,this.native=n}}function Uu(e){let t=Hu(e);if(t){if(Eo(t)){const r=t;let i,o,s;if(qu(e)){if(i=Ku(r,e),-1==i)throw new Error("The provided component was not found in the application");o=e}else if((n=e)&&n.constructor&&n.constructor.ɵdir){if(i=function(e,t){let n=e[Bi].firstChild;for(;n;){const r=n.directiveStart,i=n.directiveEnd;for(let o=r;o<i;o++)if(e[o]===t)return n.index;n=Wu(n)}return-1}(r,e),-1==i)throw new Error("The provided directive was not found in the application");s=Qu(i,r)}else if(i=zu(r,e),-1==i)return null;const a=ns(r[i]),c=Hu(a),u=c&&!Array.isArray(c)?c:ju(r,i,a);if(o&&void 0===u.component&&(u.component=o,Bu(u.component,u)),s&&void 0===u.directives){u.directives=s;for(let e=0;e<s.length;e++)Bu(s[e],u)}Bu(u.native,u),t=u}}else{const n=e;ngDevMode&&bn(n);let r=n;for(;r=r.parentNode;){const e=Hu(r);if(e){const r=Array.isArray(e)?e:e.lView;if(!r)return null;const i=zu(r,n);if(i>=0){const e=ns(r[i]),n=ju(r,i,e);Bu(e,n),t=n;break}}}}var n;return t||null}function ju(e,t,n){return new Fu(e[so],t,n)}function Vu(e){let t,n=Hu(e);if(Eo(n)){const r=n,i=Ku(r,e);t=cs(i,r);const o=ju(r,i,t[$i]);o.component=e,Bu(e,o),Bu(o.native,o)}else{const e=n,r=e.lView;ngDevMode&&ko(r),t=cs(e.nodeIndex,r)}return t}const $u="__ngContext__";function Bu(e,t){var n;ngDevMode&&En(e,"Target expected"),Eo(t)?(e[$u]=t[so],n=t,ngDevMode&&an(n[so],"LView must have an ID in order to be registered"),Ru.set(n[so],n)):e[$u]=t}function Hu(e){ngDevMode&&En(e,"Target expected");const t=e[$u];return"number"==typeof t?ku(t):t||null}function Gu(e){const t=Hu(e);return t?Eo(t)?t:t.lView:null}function qu(e){return e&&e.constructor&&e.constructor.ɵcmp}function zu(e,t){const n=e[Bi];for(let r=ho;r<n.bindingStartIndex;r++)if(ns(e[r])===t)return r;return-1}function Wu(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Ku(e,t){const n=e[Bi].components;if(n)for(let r=0;r<n.length;r++){const i=n[r];if(cs(i,e)[Qi]===t)return i}else if(cs(ho,e)[Qi]===t)return ho;return-1}function Qu(e,t){const n=t[Bi].data[e];if(0===n.directiveStart)return Hr;const r=[];for(let e=n.directiveStart;e<n.directiveEnd;e++){const n=t[e];qu(n)||r.push(n)}return r}function Yu(e){const t=function(e){ngDevMode&&En(e,"component");let t=Eo(e)?e:Gu(e);for(;t&&!(512&t[Hi]);)t=_s(t);return ngDevMode&&ko(t),t}(e);return ngDevMode&&En(t[Qi],"Root view has no context. Perhaps it is disconnected?"),t[Qi]}function Zu(e){return Xu(e[Xi])}function Ju(e){return Xu(e[qi])}function Xu(e){for(;null!==e&&!_o(e);)e=e[qi];return e}function el(e){ngDevMode&&ul(e);const t=Uu(e);if(null===t)return null;if(void 0===t.component){const e=t.lView;if(null===e)return null;t.component=function(e,t){const n=t[Bi].data[e],{directiveStart:r,componentOffset:i}=n;return i>-1?t[r+i]:null}(t.nodeIndex,e)}return t.component}function tl(e){ul(e);const t=Uu(e),n=t?t.lView:null;return null===n?null:n[Qi]}function nl(e){const t=Uu(e);let n,r=t?t.lView:null;if(null===r)return null;for(;2===r[Bi].type&&(n=_s(r));)r=n;return 512&r[Hi]?null:r[Qi]}function rl(e){const t=Gu(e);return null!==t?[Yu(t)]:[]}function il(e){const t=Uu(e),n=t?t.lView:null;if(null===n)return Ac.NULL;const r=n[Bi].data[t.nodeIndex];return new pc(r,n)}function ol(e){if(e instanceof Text)return[];const t=Uu(e),n=t?t.lView:null;if(null===n)return[];const r=n[Bi],i=t.nodeIndex;return r?.data[i]?(void 0===t.directives&&(t.directives=Qu(i,n)),null===t.directives?[]:[...t.directives]):[]}function sl(e){return Uu(e).native}function al(e){ngDevMode&&ul(e);const t=Uu(e),n=null===t?null:t.lView;if(null===n)return[];const r=n[Bi],i=n[Ki],o=r.cleanup,s=[];if(o&&i)for(let t=0;t<o.length;){const r=o[t++],a=o[t++];if("string"==typeof r){const c=r,u=ns(n[a]),l=i[o[t++]],d=o[t++],p="boolean"==typeof d||d>=0?"dom":"output",h="boolean"==typeof d&&d;e==u&&s.push({element:e,name:c,callback:l,useCapture:h,type:p})}}return s.sort(cl),s}function cl(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function ul(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function ll(e){const t={};for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];if(void 0===r)continue;let i;i=Array.isArray(r)?r[0]:r,t[n]=i}return t}let dl;function pl(e){dl=e}function hl(){if(void 0!==dl)return dl;if("undefined"!=typeof document)return document;throw new kt(210,("undefined"==typeof ngDevMode||ngDevMode)&&"The document object is not available in this context. Make sure the DOCUMENT injection token is provided.")}const fl=new Ln(ngDevMode?"AppId":"",{providedIn:"root",factory:()=>gl}),gl="ng",ml=new Ln(ngDevMode?"Platform Initializer":""),vl=new Ln(ngDevMode?"Platform ID":"",{providedIn:"platform",factory:()=>"unknown"}),yl=new Ln(ngDevMode?"Application Packages Root URL":""),El=new Ln(ngDevMode?"AnimationModuleType":""),_l=new Ln(ngDevMode?"CSP nonce":"",{providedIn:"root",factory:()=>hl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),bl={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},Cl=new Ln(ngDevMode?"ImageConfig":"",{providedIn:"root",factory:()=>bl});function Sl(e){return e}function Il(){const e=new Dl;return"browser"===Cr(vl)&&(e.store=function(e,t){const n=e.getElementById(t+"-state");if(n?.textContent)try{return JSON.parse(n.textContent)}catch(e){console.warn("Exception while restoring TransferState for app "+t,e)}return{}}(hl(),Cr(fl))),e}class Dl{static ɵprov=Dn({token:Dl,providedIn:"root",factory:Il});store={};onSerializeCallbacks={};get(e,t){return void 0!==this.store[e]?this.store[e]:t}set(e,t){this.store[e]=t}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(e,t){this.onSerializeCallbacks[e]=t}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}const wl="h",Tl="b",Ol="f",Al="n",Nl="e",Ml="t",Pl="c",Rl="x",xl="r",kl="i",Ll="n",Fl="d",Ul="l",jl="di",Vl="s",$l="p",Bl="t",Hl=new Ln("undefined"==typeof ngDevMode||ngDevMode?"IS_HYDRATION_DOM_REUSE_ENABLED":""),Gl=!1,ql=new Ln("undefined"==typeof ngDevMode||ngDevMode?"PRESERVE_HOST_CONTENT":"",{providedIn:"root",factory:()=>Gl}),zl=new Ln("undefined"==typeof ngDevMode||ngDevMode?"IS_I18N_HYDRATION_ENABLED":""),Wl=new Ln("undefined"==typeof ngDevMode||ngDevMode?"IS_EVENT_REPLAY_ENABLED":""),Kl=!1,Ql=new Ln("undefined"==typeof ngDevMode||ngDevMode?"IS_INCREMENTAL_HYDRATION_ENABLED":""),Yl=new Ln(ngDevMode?"JSACTION_BLOCK_ELEMENT_MAP":"",{providedIn:"root",factory:()=>new Map});var Zl;!function(e){e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER"}(Zl||(Zl={}));const Jl=new Ln(ngDevMode?"TracingService":"");function Xl(e,t){if(null!==l())throw new kt(-602,ngDevMode&&`${e.name}() cannot be called from within a reactive context.${t?` ${t}`:""}`)}var ed;!function(e){e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read"}(ed||(ed={}));class td{impl=null;execute(){this.impl?.execute()}static ɵprov=Dn({token:td,providedIn:"root",factory:()=>new td})}const nd=(()=>[ed.EarlyRead,ed.Write,ed.MixedReadWrite,ed.Read])();class rd{ngZone=Cr(Zc);scheduler=Cr(Lc);errorHandler=Cr(ou,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){Cr(Jl,{optional:!0})}execute(){this.executing=!0;for(const e of nd)for(const t of this.sequences)if(!t.erroredOrDestroyed&&t.hooks[e])try{t.pipelinedValue=this.ngZone.runOutsideAngular((()=>this.maybeTrace((()=>t.hooks[e](t.pipelinedValue)),t.snapshot)))}catch(e){t.erroredOrDestroyed=!0,this.errorHandler?.handleError(e)}this.executing=!1;for(const e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(const e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(7))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,t){return t?t.run(Zl.AFTER_NEXT_RENDER,e):e()}static ɵprov=Dn({token:rd,providedIn:"root",factory:()=>new rd})}class id{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,t,n,r,i=null){this.impl=e,this.hooks=t,this.once=n,this.snapshot=i,this.unregisterOnDestroy=r?.onDestroy((()=>this.destroy()))}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function od(e,t){ngDevMode&&Xl(od,"Call `afterRender` outside of a reactive context. For example, schedule the render callback inside the component constructor`."),!t?.injector&&wi(od);const n=t?.injector??Cr(Ac);return"undefined"!=typeof ngServerMode&&ngServerMode?cd:(vu("NgAfterRender"),ad(e,n,t,!1))}function sd(e,t){!t?.injector&&wi(sd);const n=t?.injector??Cr(Ac);return"undefined"!=typeof ngServerMode&&ngServerMode?cd:(vu("NgAfterNextRender"),ad(e,n,t,!0))}function ad(e,t,n,r){const i=t.get(td);i.impl??=t.get(rd);const o=t.get(Jl,null,{optional:!0}),s=n?.phase??ed.MixedReadWrite,a=!0!==n?.manualCleanup?t.get(Rc):null,c=new id(i.impl,function(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,s),r,a,o?.snapshot(null));return i.impl.register(c),c}const cd={destroy(){}};var ud;!function(e){e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED"}(ud||(ud={}));const ld=0,dd=1;var pd,hd;!function(e){e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error"}(pd||(pd={})),function(e){e[e.Initial=-1]="Initial"}(hd||(hd={}));const fd=0,gd=1,md=2,vd=3,yd=4,Ed=5,_d=6,bd=7,Cd=8,Sd=9;var Id;function Dd(e,t,n){const r=Od(e);null===t[r]&&(t[r]=[]),t[r].push(n)}function wd(e,t){const n=Od(e),r=t[n];if(null!==r){for(const e of r)e();t[n]=null}}function Td(e){wd(1,e),wd(0,e),wd(2,e)}function Od(e){let t=yd;return 1===e?t=Ed:2===e&&(t=Sd),t}function Ad(e){return e+1}function Nd(e,t){const n=e[Bi],r=Ad(t.index);return ngDevMode&&Uo(n,r),e[r]}function Md(e,t){const n=Ad(t.index);return ngDevMode&&Uo(e,n),e.data[n]}function Pd(e,t){return t===pd.Placeholder?e.placeholderBlockConfig?.[ld]??null:t===pd.Loading?e.loadingBlockConfig?.[ld]??null:null}function Rd(e){return e.loadingBlockConfig?.[dd]??null}function xd(e,t){if(!e||0===e.length)return t;const n=new Set(e);for(const e of t)n.add(e);return e.length===n.size?e:Array.from(n)}function kd(e){dn(e.loadingState,ud.COMPLETE,"Expecting all deferred dependencies to be loaded.")}function Ld(e){return null!==e&&"object"==typeof e&&"number"==typeof e.primaryTmplIndex}function Fd(e,t){let n=null;const r=Ad(t.index);return ho<r&&r<e.bindingStartIndex&&(n=Md(e,t)),!!n&&Ld(n)}function Ud(e,t,n){const r=Md(e,t);r.debug??={},r.debug.triggers??=new Set,r.debug.triggers.add(n)}!function(e){e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough"}(Id||(Id={}));const jd={passive:!0,capture:!0},Vd=new WeakMap,$d=new WeakMap,Bd=new WeakMap,Hd=["click","keydown"],Gd=["mouseenter","mouseover","focusin"];let qd=null,zd=0;class Wd{callbacks=new Set;listener=()=>{for(const e of this.callbacks)e()}}function Kd(e,t){let n=$d.get(e);if(!n){n=new Wd,$d.set(e,n);for(const t of Hd)e.addEventListener(t,n.listener,jd)}return n.callbacks.add(t),()=>{const{callbacks:r,listener:i}=n;if(r.delete(t),0===r.size){$d.delete(e);for(const t of Hd)e.removeEventListener(t,i,jd)}}}function Qd(e,t){let n=Vd.get(e);if(!n){n=new Wd,Vd.set(e,n);for(const t of Gd)e.addEventListener(t,n.listener,jd)}return n.callbacks.add(t),()=>{const{callbacks:r,listener:i}=n;if(r.delete(t),0===r.size){for(const t of Gd)e.removeEventListener(t,i,jd);Vd.delete(e)}}}function Yd(e,t,n){const r=n.get(Zc);let i=Bd.get(e);return qd=qd||r.runOutsideAngular((()=>new IntersectionObserver((e=>{for(const t of e)t.isIntersecting&&Bd.has(t.target)&&r.run(Bd.get(t.target).listener)})))),i||(i=new Wd,r.runOutsideAngular((()=>qd.observe(e))),Bd.set(e,i),zd++),i.callbacks.add(t),()=>{Bd.has(e)&&(i.callbacks.delete(t),0===i.callbacks.size&&(qd?.unobserve(e),Bd.delete(e),zd--),0===zd&&(qd?.disconnect(),qd=null))}}function Zd(e,t,n,r,i,o,s){const a=e[Yi],c=a.get(Zc);sd({read:function u(){if(To(e))return;const l=Nd(e,t),d=l[gd];if(d!==hd.Initial&&d!==pd.Placeholder)return;const p=function(e,t,n){if(null==n)return e;if(n>=0)return fs(n,e);const r=e[t.index];ngDevMode&&Ro(r);const i=r[yo]??null;return ngDevMode&&null!==i&&(dn(Nd(e,t)[gd],pd.Placeholder,"Expected a placeholder to be rendered in this defer block."),ko(i)),i}(e,t,r);if(!p)return void sd({read:u},{injector:a});if(To(p))return;const h=function(e,t){const n=is(ho+t,e);var r;return ngDevMode&&((r=n)instanceof Element||_n(`The provided value must be an element but got ${Xt(r)}`)),n}(p,n),f=i(h,(()=>{c.run((()=>{e!==p&&Es(p,f),o()}))}),a);e!==p&&ys(p,f),Dd(s,l,f)}},{injector:a})}const Jd="ngb";function Xd(e,t,n=null){if(0===t.length||e.nodeType!==Node.ELEMENT_NODE)return;const r=e.getAttribute(Oe.JSACTION),i=t.reduce(((e,t)=>-1===(r?.indexOf(t)??-1)?e+t+":;":e),"");e.setAttribute(Oe.JSACTION,`${r??""}${i}`);const o=n??"";""!==o&&i.length>0&&e.setAttribute(Jd,o)}const ep=(e,t,n)=>{const r=e,i=r.__jsaction_fns??new Map,o=i.get(t)??[];o.push(n),i.set(t,o),r.__jsaction_fns=i},tp=(e,t)=>{let n=e.getAttribute(Jd)??"";const r=e,i=t.get(n)??new Set;i.has(r)||i.add(r),t.set(n,i)},np=e=>{e.removeAttribute(Oe.JSACTION),e.removeAttribute(Jd),e.__jsaction_fns=void 0},rp=new Ln(ngDevMode?"EVENT_CONTRACT_DETAILS":"",{providedIn:"root",factory:()=>({})});function ip(e,t){const n=t?.__jsaction_fns?.get(e.type);if(n)for(const t of n)t(e)}const op=new Ln(ngDevMode?"DEHYDRATED_BLOCK_REGISTRY":"");class sp{registry=new Map;cleanupFns=new Map;jsActionMap=Cr(Yl);contract=Cr(rp);add(e,t){this.registry.set(e,t)}get(e){return this.registry.get(e)??null}has(e){return this.registry.has(e)}cleanup(e){!function(e,t){if(e.length>0){let n=[];for(let r of e)t.has(r)&&(n=[...n,...t.get(r)]);new Set(n).forEach(np)}}(e,this.jsActionMap);for(let t of e)this.registry.delete(t),this.jsActionMap.delete(t),this.invokeTriggerCleanupFns(t),this.hydrating.delete(t);0===this.size&&this.contract.instance?.cleanUp()}get size(){return this.registry.size}addCleanupFn(e,t){let n=[];this.cleanupFns.has(e)&&(n=this.cleanupFns.get(e)),n.push(t),this.cleanupFns.set(e,n)}invokeTriggerCleanupFns(e){const t=this.cleanupFns.get(e)??[];for(let e of t)e();this.cleanupFns.delete(e)}hydrating=new Map;static ɵprov=Dn({token:sp,providedIn:null,factory:()=>new sp})}const ap="__nghData__",cp="__nghDeferData__",up="ngh",lp="nghm";let dp=()=>null;function pp(e,t,n=!1){let r=e.getAttribute(up);if(null==r)return null;const[i,o]=r.split("|");if(r=n?o:i,!r)return null;const s=n?i:o?`|${o}`:"";let a={};if(""!==r){const e=t.get(Dl,null,{optional:!0});null!==e&&(a=e.get(ap,[])[Number(r)],ngDevMode&&En(a,"Unable to retrieve hydration info from the TransferState."))}const c={data:a,firstChild:e.firstChild??null};return n&&(c.firstChild=e,bp(c,0,e.nextSibling)),s?e.setAttribute(up,s):e.removeAttribute(up),ngDevMode&&Ep(e,!1),ngDevMode&&ngDevMode.hydratedComponents++,c}function hp(e,t,n=!1){return dp(e,t,n)}function fp(e){let t=e._lView;return 2===t[Bi].type?null:(Do(t)&&(t=t[ho]),t)}var gp;!function(e){e.Hydrated="hydrated",e.Skipped="skipped",e.Mismatched="mismatched"}(gp||(gp={}));const mp="__ngDebugHydrationInfo__";function vp(e,t){e[mp]=t}function yp(e){return e[mp]??null}function Ep(e,t=!0){if(!ngDevMode)throw new Error("Calling `markRNodeAsClaimedByHydration` in prod mode is not supported and likely a mistake.");if(t&&function(e){return yp(e)?.status===gp.Hydrated}(e))throw new Error("Trying to claim a node, which was claimed already.");vp(e,{status:gp.Hydrated}),ngDevMode.hydratedNodes++}function _p(e,t=null,n=null){if(!ngDevMode)throw new Error("Calling `markRNodeAsMismatchedByHydration` in prod mode is not supported and likely a mistake.");for(;e&&!el(e);)e=e?.parentNode;e&&vp(e,{status:gp.Mismatched,expectedNodeDetails:t,actualNodeDetails:n})}function bp(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function Cp(e,t){return e.segmentHeads?.[t]??null}function Sp(e){return e.get(Ql,!1,{optional:!0})}function Ip(e){En(e,"Internal error: expecting an SSR id for a defer block that should be hydrated, but the id is not present")}function Dp(e,t){const n=e.data;let r=n[Nl]?.[t]??null;return null===r&&n[Pl]?.[t]&&(r=Tp(e,t)),r}function wp(e,t){return e.data[Pl]?.[t]??null}function Tp(e,t){const n=wp(e,t)??[];let r=0;for(let e of n)r+=e[xl]*(e[Rl]??1);return r}function Op(e){if(void 0===e.disconnectedNodes){const t=e.data[Fl];e.disconnectedNodes=t?new Set(t):null}return e.disconnectedNodes}function Ap(e,t){if(void 0===e.disconnectedNodes){const t=e.data[Fl];e.disconnectedNodes=t?new Set(t):null}return!!Op(e)?.has(t)}function Np(e,t){const n=t,r=e.corruptedTextNodes;""===n.textContent?r.set(n,"ngetn"):n.nextSibling?.nodeType===Node.TEXT_NODE&&r.set(n,"ngtns")}let Mp=()=>({});function Pp(e){const t=e.get(Dl,null,{optional:!0});if(null!==t){const e=t.get(cp,{});return ngDevMode&&En(e,"Unable to retrieve defer block info from the TransferState."),e}return{}}function Rp(e){const t=e[Bl]?.find((e=>{return"object"==typeof(t=e)&&5===t.trigger;var t}));return t?.delay??null}function xp(e,t){return e[Bl]?.includes(t)??!1}function kp(e,t){const n=e.contentQueries;if(null!==n){const r=u(null);try{for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=e.data[o];ngDevMode&&En(n,"DirectiveDef not found."),ngDevMode&&En(n.contentQueries,"contentQueries function should be defined"),ra(i),n.contentQueries(2,t[o],o)}}}finally{u(r)}}}function Lp(e,t,n){ngDevMode&&En(t,"View queries function to execute must be defined."),ra(0);const r=u(null);try{t(e,n)}finally{u(r)}}function Fp(e,t,n){if(bo(t)){const r=u(null);try{const r=t.directiveStart,i=t.directiveEnd;for(let t=r;t<i;t++){const r=e.data[t];if(r.contentQueries){const e=n[t];ngDevMode&&En(t,"Incorrect reference to a directive defining a content query"),r.contentQueries(1,e,t)}}}finally{u(r)}}}var Up;let jp,Vp;function $p(){if(void 0===jp&&(jp=null,Qt.trustedTypes))try{jp=Qt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jp}function Bp(e){return $p()?.createHTML(e)||e}function Hp(){if(void 0===Vp&&(Vp=null,Qt.trustedTypes))try{Vp=Qt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Vp}function Gp(e){return Hp()?.createHTML(e)||e}function qp(e){return Hp()?.createScript(e)||e}function zp(e){return Hp()?.createScriptURL(e)||e}!function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Up||(Up={}));class Wp{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xt})`}}class Kp extends Wp{getTypeName(){return"HTML"}}class Qp extends Wp{getTypeName(){return"Style"}}class Yp extends Wp{getTypeName(){return"Script"}}class Zp extends Wp{getTypeName(){return"URL"}}class Jp extends Wp{getTypeName(){return"ResourceURL"}}function Xp(e){return e instanceof Wp?e.changingThisBreaksApplicationSecurity:e}function eh(e,t){const n=th(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${xt})`)}return n===t}function th(e){return e instanceof Wp&&e.getTypeName()||null}function nh(e){return new Kp(e)}function rh(e){return new Qp(e)}function ih(e){return new Yp(e)}function oh(e){return new Zp(e)}function sh(e){return new Jp(e)}function ah(e){const t=new uh(e);return function(){try{return!!(new window.DOMParser).parseFromString(Bp(""),"text/html")}catch{return!1}}()?new ch(t):t}class ch{inertDocumentHelper;constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Bp(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.firstChild?.remove(),t)}catch{return null}}}class uh{defaultDoc;inertDocument;constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){const t=this.inertDocument.createElement("template");return t.innerHTML=Bp(e),t}}const lh=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function dh(e){return(e=String(e)).match(lh)?e:(("undefined"==typeof ngDevMode||ngDevMode)&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see ${xt})`),"unsafe:"+e)}function ph(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function hh(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const fh=ph("area,br,col,hr,img,wbr"),gh=ph("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mh=ph("rp,rt"),vh=hh(mh,gh),yh=hh(gh,ph("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")),Eh=hh(mh,ph("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")),_h=hh(fh,yh,Eh,vh),bh=ph("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ch=ph("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"),Sh=ph("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"),Ih=hh(bh,Ch,Sh),Dh=ph("script,style,template");class wh{sanitizedSomething=!1;buf=[];sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)r.push(t),t=Oh(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=Th(t);if(e){t=e;break}t=r.pop()}return this.buf.join("")}startElement(e){const t=Ah(e).toLowerCase();if(!_h.hasOwnProperty(t))return this.sanitizedSomething=!0,!Dh.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let e=0;e<n.length;e++){const t=n.item(e),r=t.name,i=r.toLowerCase();if(!Ih.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;bh[i]&&(o=dh(o)),this.buf.push(" ",r,'="',Rh(o),'"')}return this.buf.push(">"),!0}endElement(e){const t=Ah(e).toLowerCase();_h.hasOwnProperty(t)&&!fh.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(Rh(e))}}function Th(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Nh(t);return t}function Oh(e){const t=e.firstChild;if(t&&(n=t,(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY))throw Nh(t);var n;return t}function Ah(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Nh(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Mh=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ph=/([^\#-~ |!])/g;function Rh(e){return e.replace(/&/g,"&amp;").replace(Mh,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(Ph,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let xh;function kh(e,t){let n=null;try{xh=xh||ah(e);let r=t?String(t):"";n=xh.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=xh.getInertBodyElement(r)}while(r!==o);const s=new wh,a=s.sanitizeChildren(Lh(n)||n);return("undefined"==typeof ngDevMode||ngDevMode)&&s.sanitizedSomething&&console.warn(`WARNING: sanitizing HTML stripped some content, see ${xt}`),Bp(a)}finally{if(n){const e=Lh(n)||n;for(;e.firstChild;)e.firstChild.remove()}}}function Lh(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Fh;function Uh(e){const t=zh();return t?Gp(t.sanitize(Fh.HTML,e)||""):eh(e,"HTML")?Gp(Xp(e)):kh(hl(),tr(e))}function jh(e){const t=zh();return t?t.sanitize(Fh.STYLE,e)||"":eh(e,"Style")?Xp(e):tr(e)}function Vh(e){const t=zh();return t?t.sanitize(Fh.URL,e)||"":eh(e,"URL")?Xp(e):dh(tr(e))}function $h(e){const t=zh();if(t)return zp(t.sanitize(Fh.RESOURCE_URL,e)||"");if(eh(e,"ResourceURL"))return zp(Xp(e));throw new kt(904,ngDevMode&&`unsafe value used in a resource URL context (see ${xt})`)}function Bh(e){const t=zh();if(t)return qp(t.sanitize(Fh.SCRIPT,e)||"");if(eh(e,"Script"))return qp(Xp(e));throw new kt(905,ngDevMode&&"unsafe value used in a script context")}function Hh(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||1!==e.length))throw new Error(`Unexpected interpolation in trusted HTML constant: ${e.join("?")}`);return Bp(e[0])}function Gh(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||1!==e.length))throw new Error(`Unexpected interpolation in trusted URL constant: ${e.join("?")}`);return function(e){return $p()?.createScriptURL(e)||e}(e[0])}function qh(e,t,n){return function(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$h:Vh}(t,n)(e)}function zh(){const e=Ms();return e&&e[Zi].sanitizer}!function(e){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"}(Fh||(Fh={}));const Wh=/^>|^->|<!--|-->|--!>|<!-$/g,Kh=/(<|>)/g,Qh="​$1​";function Yh(e){return e.replace(Wh,(e=>e.replace(Kh,Qh)))}const Zh=/([A-Z])/g,Jh={name:"custom-elements"},Xh={name:"no-errors-schema"};let ef=!1;function tf(e){ef=e}function nf(){return ef}let rf=!1;function of(e){rf=e}function sf(){return rf}function af(e,t,n,r){t||4!==n||(t="ng-template");const i=lf(r);let o=`Can't bind to '${e}' since it isn't a known property of '${t}'${df(r)}.`;const s=`'${i?"@Component":"@NgModule"}.schemas'`,a=i?"included in the '@Component.imports' of this component":"a part of an @NgModule where this component is declared";pf.has(e)?o+=`\nIf the '${e}' is an Angular control flow directive, please make sure that either the '${pf.get(e)}' directive or the 'CommonModule' is ${a}.`:(o+=`\n1. If '${t}' is an Angular component and it has the '${e}' input, then verify that it is ${a}.`,t&&t.indexOf("-")>-1?(o+=`\n2. If '${t}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${s} of this component to suppress this message.`,o+=`\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the ${s} of this component.`):o+=`\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the ${s} of this component.`),cf(o)}function cf(e){if(rf)throw new kt(303,e);console.error(Lt(303,e))}function uf(e){!ngDevMode&&_n("Must never be called in production mode");const t=e[no][Qi];return t&&t.constructor?Qr(t.constructor):null}function lf(e){!ngDevMode&&_n("Must never be called in production mode");const t=uf(e);return!!t?.standalone}function df(e){!ngDevMode&&_n("Must never be called in production mode");const t=uf(e),n=t?.type?.name;return n?` (used in the '${n}' component template)`:""}const pf=new Map([["ngIf","NgIf"],["ngFor","NgFor"],["ngSwitchCase","NgSwitchCase"],["ngSwitchDefault","NgSwitchDefault"]]);function hf(e,t){if(null!==e)for(let n=0;n<e.length;n++){const r=e[n];if(r===Xh||r===Jh&&t&&t.indexOf("-")>-1)return!0}return!1}function ff(e){return e.ownerDocument.defaultView}function gf(e){return e.ownerDocument}function mf(e){return e.ownerDocument.body}const vf="�";function yf(e){return e instanceof Function?e():e}const Ef=200;function _f(e){if(!Qr(e))throw new kt(906,`The ${nr(e)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}function bf(e,t,n){throw new kt(-300,`Multiple components match node with tagname ${e.value}: ${nr(t)} and ${nr(n)}`)}function Cf(e){let t=String(e);try{(Array.isArray(e)||"[object Object]"===t)&&(t=JSON.stringify(e))}catch(e){}return t.length>Ef?t.substring(0,Ef)+"…":t}function Sf(e,t,n,r,i){const[o,s,...a]=r.split(vf);let c=s,u=s;for(let r=0;r<a.length;r++){const o=t+r;c+=`${e[o]}${a[r]}`,u+=`${o===n?i:e[o]}${a[r]}`}return{propName:o,oldValue:c,newValue:u}}var If;function Df(e,t,n){ngDevMode&&pn(t,"",'can not look for "" string.');let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const n=t.length;if(i+n===r||e.charCodeAt(i+n)<=32)return i}n=i+1}}!function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"}(If||(If={}));const wf="ng-template";function Tf(e,t,n,r){ngDevMode&&dn(n,n.toLowerCase(),"Class name expected to be lowercase.");let i=0;if(r){for(;i<t.length&&"string"==typeof t[i];i+=2)if("class"===t[i]&&-1!==Df(t[i+1].toLowerCase(),n,0))return!0}else if(Of(e))return!1;if(i=t.indexOf(1,i),i>-1){let e;for(;++i<t.length&&"string"==typeof(e=t[i]);)if(e.toLowerCase()===n)return!0}return!1}function Of(e){return 4===e.type&&e.value!==wf}function Af(e,t,n){return t===(4!==e.type||n?e.value:wf)}function Nf(e,t,n){ngDevMode&&En(t[0],"Selector should have a tag name");let r=4;const i=e.attrs,o=null!==i?function(e){for(let t=0;t<e.length;t++)if(ka(e[t]))return t;return e.length}(i):0;let s=!1;for(let a=0;a<t.length;a++){const c=t[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!Af(e,c,n)||""===c&&1===t.length){if(Mf(r))return!1;s=!0}}else if(8&r){if(null===i||!Tf(e,i,c,n)){if(Mf(r))return!1;s=!0}}else{const u=t[++a],l=Pf(c,i,Of(e),n);if(-1===l){if(Mf(r))return!1;s=!0;continue}if(""!==u){let e;if(l>o?e="":(ngDevMode&&pn(i[l],0,"We do not match directives on namespaced attributes"),e=i[l+1].toLowerCase()),2&r&&u!==e){if(Mf(r))return!1;s=!0}}}}else{if(!s&&!Mf(r)&&!Mf(c))return!1;if(s&&Mf(c))continue;s=!1,r=c|1&r}}return Mf(r)||s}function Mf(e){return!(1&e)}function Pf(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i<t.length;){const r=t[i];if(r===e)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let e=t[++i];for(;"string"==typeof e;)e=t[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Rf(e,t,n=!1){for(let r=0;r<t.length;r++)if(Nf(e,t[r],n))return!0;return!1}function xf(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let t=0;t<e.length;t++)if(e[t]!==r[t])continue e;return!0}}return!1}function kf(e,t){return e?":not("+t.trim()+")":t}function Lf(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const t=e[++n];i+="["+s+(t.length>0?'="'+t+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||Mf(s)||(t+=kf(o,i),i=""),r=s,o=o||!Mf(r);n++}return""!==i&&(t+=kf(o,i)),t}function Ff(e){return e.map(Lf).join(",")}const Uf="undefined"==typeof ngDevMode||ngDevMode?{__brand__:"NO_CHANGE"}:{};function jf(e=1){ngDevMode&&vn(e,0,"Can only advance forward"),Vf(Ps(),Ms(),pa()+e,!!ngDevMode&&Bs())}function Vf(e,t,n,r){if(ngDevMode&&Uo(t[Bi],n),!r)if(3&~t[Hi]){const r=e.preOrderHooks;null!==r&&Ia(t,r,0,n)}else{const r=e.preOrderCheckHooks;null!==r&&Sa(t,r,n)}ha(n)}function $f(e,t=ar.Default){const n=Ms();if(null===n)return ngDevMode&&function(e){ngDevMode&&pn(cr,e,"Calling ɵɵinject would cause infinite recursion")}($f),_r(e,t);const r=rc(ks(),n,on(e),t);return ngDevMode&&qn(e,r,t),r}function Bf(){const e=ngDevMode?"This constructor was not compatible with Dependency Injection.":"invalid";throw new Error(e)}function Hf(e,t,n,r,i,o){const s=u(null);try{let s=null;i&If.SignalBased&&(s=t[r][c]),null!==s&&void 0!==s.transformFn&&(o=s.transformFn(o)),i&If.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(t,o)),null!==e.setInput?e.setInput(t,s,o,n,r):qo(t,s,r,o)}finally{u(s)}}function Gf(e,t){return ngDevMode&&ngDevMode.rendererCreateTextNode++,ngDevMode&&ngDevMode.rendererSetText++,e.createText(t)}function qf(e,t,n){ngDevMode&&ngDevMode.rendererSetText++,e.setValue(t,n)}function zf(e,t){return ngDevMode&&ngDevMode.rendererCreateComment++,e.createComment(Yh(t))}function Wf(e,t,n){return ngDevMode&&ngDevMode.rendererCreateElement++,e.createElement(t,n)}function Kf(e,t,n,r,i){ngDevMode&&ngDevMode.rendererInsertBefore++,e.insertBefore(t,n,r,i)}function Qf(e,t,n){ngDevMode&&ngDevMode.rendererAppendChild++,ngDevMode&&En(t,"parent node must be defined"),e.appendChild(t,n)}function Yf(e,t,n,r,i){null!==r?Kf(e,t,n,r,i):Qf(e,t,n)}function Zf(e,t,n){ngDevMode&&ngDevMode.rendererRemoveNode++,e.removeChild(null,t,n)}function Jf(e){e.textContent=""}function Xf(e,t,n){const{mergedAttrs:r,classes:i,styles:o}=n;null!==r&&function(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],s=n[r++],a=n[r++];ngDevMode&&ngDevMode.rendererSetAttribute++,e.setAttribute(t,s,a,o)}else{const o=i,s=n[++r];ngDevMode&&ngDevMode.rendererSetAttribute++,La(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}}(e,t,r),null!==i&&function(e,t,n){ngDevMode&&un(n,"'newValue' should be a string"),""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n),ngDevMode&&ngDevMode.rendererSetClassName++}(e,t,i),null!==o&&function(e,t,n){ngDevMode&&un(n,"'newValue' should be a string"),e.setAttribute(t,"style",n),ngDevMode&&ngDevMode.rendererSetStyle++}(e,t,o)}function eg(e,t,n,r,i,o,s,a,c,u,l){const d=t.blueprint.slice();return d[$i]=i,d[Hi]=1228|r,(null!==u||e&&2048&e[Hi])&&(d[Hi]|=2048),ps(d),ngDevMode&&t.declTNode&&e&&Oo(t.declTNode,e),d[Gi]=d[to]=e,d[Qi]=n,d[Zi]=s||e&&e[Zi],ngDevMode&&En(d[Zi],"LViewEnvironment is required"),d[Ji]=a||e&&e[Ji],ngDevMode&&En(d[Ji],"Renderer is required"),d[Yi]=c||e&&e[Yi]||null,d[zi]=o,d[so]=xu++,d[Wi]=l,d[ao]=u,ngDevMode&&dn(2!=t.type||null!==e,!0,"Embedded views must have parentLView"),d[no]=2==t.type?e[no]:d,d}function tg(e,t,n,r){if(0===n)return-1;ngDevMode&&(Lo(e),hn(e,t[Bi],"`LView` must be associated with `TView`!"),dn(e.data.length,t.length,"Expecting LView to be same size as TView"),dn(e.data.length,e.blueprint.length,"Expecting Blueprint to be same size as TView"),Fo(e));const i=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function ng(e,t,n,r,i){const o=pa(),s=2&r;try{ha(-1),s&&t.length>ho&&Vf(e,t,ho,!!ngDevMode&&Bs()),Xo(s?2:0,i),n(r,i)}finally{ha(o),Xo(s?3:1,i)}}function rg(e,t,n){Ts()&&(function(e,t,n,r){const i=n.directiveStart,o=n.directiveEnd;Co(n)&&(ngDevMode&&xa(n,3),function(e,t,n){const r=os(t,e),i=og(n),o=e[Zi].rendererFactory,s=wg(e,eg(e,i,null,_g(n),r,t,null,o.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[i+n.componentOffset])),e.firstCreatePass||Ya(n,t),Bu(r,t);const s=n.initialInputs;for(let r=i;r<o;r++){const o=e.data[r],a=ac(t,e,r,n);Bu(a,t),null!==s&&Sg(t,r-i,a,o,n,s),Io(o)&&(cs(n.index,t)[Qi]=ac(t,e,r,n))}}(e,t,n,os(n,t)),64&~n.flags||gg(e,t,n))}function ig(e,t,n=os){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(t,e):e[s];e[i++]=a}}}function og(e){const t=e.tView;if(null===t||t.incompleteFirstPass){const t=null;return e.tView=sg(1,t,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id)}return t}function sg(e,t,n,r,i,o,s,a,c,u,l){ngDevMode&&ngDevMode.tView++;const d=ho+r,p=d+i,h=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Uf);return n}(d,p),f="function"==typeof u?u():u,g=h[Bi]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,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:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:f,incompleteFirstPass:!1,ssrId:l};return ngDevMode&&Object.seal(g),g}let ag=()=>null;function cg(e){Ou(e)?Jf(e):function(e){const t=hl(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(e){const t=function(e){return e.textContent?.replace(/\s/gm,"")}(e);return"ngetn"===t||"ngtns"===t?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let r;const i=[];for(;r=n.nextNode();)i.push(r);for(const e of i)"ngetn"===e.textContent?e.replaceWith(t.createTextNode("")):e.remove()}(e)}function ug(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;const s=t[o];if(void 0===s)continue;let a;r??={};let c=If.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=o;if(null!==i){if(!i.hasOwnProperty(o))continue;u=i[o]}0===e?lg(r,n,u,a,c):lg(r,n,u,a)}return r}function lg(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],void 0!==i&&o.push(i)}function dg(e,t,n,r,i,o,s,a){ngDevMode&&fn(i,Uf,"Incoming value should never be NO_CHANGE.");const c=os(t,n);let u,l=t.inputs;var d;!a&&null!=l&&(u=l[r])?(Ng(e,n,u,r,i),Co(t)&&function(e,t){ngDevMode&&ko(e);const n=cs(t,e);16&n[Hi]||(n[Hi]|=64)}(n,t.index),ngDevMode&&function(e,t,n,r,i){if(7&n)for(let o=0;o<r.length;o+=3)pg(e,t,n,r[o+1],i)}(n,c,t.type,u,i)):3&t.type?(r="class"===(d=r)?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,ngDevMode&&(function(e){if(e.toLowerCase().startsWith("on")){const t=`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...\nIf '${e}' is a directive input, make sure the directive is imported by the current module.`;throw new kt(306,t)}}(r),function(e,t,n,r){return!(null!==r&&!(hf(r,n)||t in e||La(t))&&"undefined"!=typeof Node&&null!==Node&&e instanceof Node)}(c,r,t.value,e.schemas)||af(r,t.value,t.type,n),ngDevMode.rendererSetProperty++),i=null!=s?s(i,t.value||"",r):i,o.setProperty(c,r,i)):12&t.type&&ngDevMode&&!hf(e.schemas,t.value)&&af(r,t.value,t.type,n)}function pg(e,t,n,r,i){const o=e[Ji];var s;s=function(e){return e.replace(Zh,((...e)=>"-"+e[1].toLowerCase()))}((s=r).replace(/[$@]/g,"_")),r=`ng-reflect-${s}`;const a=function(e){try{return null!=e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}}(i);if(3&n)null==i?o.removeAttribute(t,r):o.setAttribute(t,r,a);else{const e=Yh(`bindings=${JSON.stringify({[r]:a},null,2)}`);o.setValue(t,e)}}function hg(e,t,n,r){if(ngDevMode&&Lo(e),Ts()){const i=null===r?null:{"":-1},o=function(e,t){ngDevMode&&Lo(e),ngDevMode&&xa(t,15);const n=e.directiveRegistry;let r=null,i=null;if(n)for(let o=0;o<n.length;o++){const s=n[o];if(Rf(t,s.selectors,!1))if(r||(r=[]),Io(s))if(ngDevMode&&(xa(t,2,`"${t.value}" tags cannot be used as component hosts. Please use a different tag to activate the ${Xt(s.type)} component.`),Co(t)&&bf(t,r.find(Io).type,s.type)),null!==s.findHostDirectiveDefs){const n=[];i=i||new Map,s.findHostDirectiveDefs(s,n,i),r.unshift(...n,s),vg(e,t,n.length)}else r.unshift(s),vg(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return ngDevMode&&null!==r&&Bo(r),null===r?null:[r,i]}(e,n);let s,a;null===o?s=a=null:[s,a]=o,null!==s&&fg(e,t,n,s,i,a),i&&function(e,t,n){if(t){const r=e.localNames=[];for(let e=0;e<t.length;e+=2){const i=n[t[e+1]];if(null==i)throw new kt(-301,ngDevMode&&`Export of name '${t[e+1]}' not found!`);r.push(t[e],i)}}}(n,r,i)}n.mergedAttrs=Fa(n.mergedAttrs,n.attrs)}function fg(e,t,n,r,i,o){ngDevMode&&Lo(e);for(let i=0;i<r.length;i++)ec(Ya(n,t),e,r[i].type);!function(e,t,n){ngDevMode&&pn(n,e.directiveEnd-e.directiveStart,"Reached the max number of directives"),e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let e=0;e<r.length;e++){const t=r[e];t.providersResolver&&t.providersResolver(t)}let s=!1,a=!1,c=tg(e,t,r.length,null);ngDevMode&&hn(c,n.directiveStart,"TNode.directiveStart should point to just allocated space");for(let o=0;o<r.length;o++){const u=r[o];n.mergedAttrs=Fa(n.mergedAttrs,u.hostAttrs),Eg(e,n,t,c,u),yg(c,u,i),null!==u.contentQueries&&(n.flags|=4),null===u.hostBindings&&null===u.hostAttrs&&0===u.hostVars||(n.flags|=64);const l=u.type.prototype;!s&&(l.ngOnChanges||l.ngOnInit||l.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),a||!l.ngOnChanges&&!l.ngDoCheck||((e.preOrderCheckHooks??=[]).push(n.index),a=!0),c++}!function(e,t,n){ngDevMode&&Lo(e);const r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[];let c=null,u=null;for(let e=r;e<i;e++){const r=o[e],i=n?n.get(r):null,l=i?i.inputs:null,d=i?i.outputs:null;c=ug(0,r.inputs,e,c,l),u=ug(1,r.outputs,e,u,d);const p=null===c||null===s||Of(t)?null:Ig(c,e,s);a.push(p)}null!==c&&(c.hasOwnProperty("class")&&(t.flags|=8),c.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=c,t.outputs=u}(e,n,o)}function gg(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Ss.lFrame.currentDirectiveIndex;try{ha(o);for(let n=r;n<i;n++){const r=e.data[n],i=t[n];ea(n),null===r.hostBindings&&0===r.hostVars&&null===r.hostAttrs||mg(r,i)}}finally{ha(-1),ea(s)}}function mg(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function vg(e,t,n){ngDevMode&&Lo(e),ngDevMode&&vn(n,-1,"componentOffset must be great than -1"),t.componentOffset=n,(e.components??=[]).push(t.index)}function yg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Io(t)&&(n[""]=e)}}function Eg(e,t,n,r,i){ngDevMode&&yn(r,ho,"Must be in Expando section"),e.data[r]=i;const o=i.factory||(i.factory=Mr(i.type,!0)),s=new Na(o,Io(i),$f);e.blueprint[r]=s,n[r]=s,function(e,t,n,r,i){ngDevMode&&Lo(e);const o=i.hostBindings;if(o){let i=e.hostBindingOpCodes;null===i&&(i=e.hostBindingOpCodes=[]);const s=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(i)!=s&&i.push(s),i.push(n,r,o)}}(e,t,r,tg(e,n,i.hostVars,Uf),i)}function _g(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function bg(e,t,n,r,i,o){ngDevMode&&(fn(r,Uf,"Incoming value should never be NO_CHANGE."),function(e){if(e.toLowerCase().startsWith("on")){const t=`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`;throw new kt(306,t)}}(n),xa(e,2,`Attempted to set attribute \`${n}\` on a container node. Host bindings are not valid on ng-container or ng-template.`));const s=os(e,t);Cg(t[Ji],s,o,e.value,n,r,i)}function Cg(e,t,n,r,i,o,s){if(null==o)ngDevMode&&ngDevMode.rendererRemoveAttribute++,e.removeAttribute(t,i,n);else{ngDevMode&&ngDevMode.rendererSetAttribute++;const a=null==s?tr(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function Sg(e,t,n,r,i,o){const s=o[t];if(null!==s)for(let t=0;t<s.length;){const o=s[t++],a=s[t++],c=s[t++],u=s[t++];Hf(r,n,o,a,c,u),ngDevMode&&pg(e,os(i,e),i.type,a,u)}}function Ig(e,t,n){let r=null,i=0;for(;i<n.length;){const o=n[i];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===r&&(r=[]);const s=e[o];for(let e=0;e<s.length;e+=3)if(s[e]===t){r.push(o,s[e+1],s[e+2],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function Dg(e,t,n,r){ngDevMode&&ko(t);const i=[e,!0,0,t,null,r,null,n,null,null];return ngDevMode&&dn(i.length,yo,"Should allocate correct number of slots for LContainer header."),i}function wg(e,t){return e[Xi]?e[eo][qi]=t:e[Xi]=t,e[eo]=t,t}function Tg(e,t,n,r,...i){if(null===e[r]&&(null==t.inputs||!t.inputs[n])){(t.propertyBindings||(t.propertyBindings=[])).push(r);let o=n;i.length>0&&(o+=vf+i.join(vf)),e[r]=o}}function Og(e,t,n){return(null===e||Io(e))&&(n=rs(n[t.index])),n[Ji]}function Ag(e,t){const n=e[Yi],r=n?n.get(ou,null):null;r&&r.handleError(t)}function Ng(e,t,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],c=n[o++],u=t[s];ngDevMode&&Cn(t,s),Hf(e.data[s],u,r,a,c,i)}}function Mg(e,t){ngDevMode&&dn(us(e),!0,"Should be run in creation mode");const n=cs(t,e),r=n[Bi];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const i=n[$i];null!==i&&null===n[Wi]&&(n[Wi]=hp(i,n[Yi])),Pg(r,n,n[Qi])}function Pg(e,t,n){ngDevMode&&dn(us(t),!0,"Should be run in creation mode"),ngDevMode&&In(Pg.name),sa(t);try{const r=e.viewQuery;null!==r&&Lp(1,r,n);const i=e.template;null!==i&&ng(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[oo]?.finishViewCreation(e),e.staticContentQueries&&kp(e,t),e.staticViewQueries&&Lp(2,e.viewQuery,n);const o=e.components;null!==o&&function(e,t){for(let n=0;n<t.length;n++)Mg(e,t[n])}(t,o)}catch(t){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),t}finally{t[Hi]&=-5,da()}}var Rg;let xg;function kg(e,t){return xg(e,t)}function Lg(e,t,n,r,i){if(null!=r){let o,s=!1;_o(r)?o=r:Eo(r)&&(s=!0,ngDevMode&&En(r[$i],"HOST must be defined for a component LView"),r=r[$i]);const a=ns(r);0===e&&null!==n?null==i?Qf(t,n,a):Kf(t,n,a,i||null,!0):1===e&&null!==n?Kf(t,n,a,i||null,!0):2===e?Zf(t,a,s):3===e&&(ngDevMode&&ngDevMode.rendererDestroyNode++,t.destroyNode(a)),null!=o&&function(e,t,n,r,i){ngDevMode&&Ro(n);const o=n[mo];o!==ns(n)&&Lg(t,e,r,o,i);for(let i=yo;i<n.length;i++){const s=n[i];im(s[Bi],s,e,t,r,o)}}(t,e,o,n,i)}}function Fg(e,t){Ug(e,t),t[$i]=null,t[zi]=null}function Ug(e,t){t[Zi].changeDetectionScheduler?.notify(10),im(e,t,t[Ji],2,null,null)}function jg(e,t){ngDevMode&&En(t,"LView required"),ngDevMode&&Ro(e);const n=e[vo],r=t[Gi];if(ngDevMode&&En(r,"missing parent"),Eo(r))e[Hi]|=2;else{const n=r[Gi][no];ngDevMode&&En(n,"Missing insertedComponentLView");const i=t[no];ngDevMode&&En(i,"Missing declaredComponentLView"),i!==n&&(e[Hi]|=2)}null===n?e[vo]=[t]:n.push(t)}function Vg(e,t){ngDevMode&&Ro(e),ngDevMode&&En(e[vo],"A projected view should belong to a non-empty projected views collection");const n=e[vo],r=n.indexOf(t);n.splice(r,1)}function $g(e,t){if(e.length<=yo)return;const n=yo+t,r=e[n];if(r){const i=r[ro];null!==i&&i!==e&&Vg(i,r),t>0&&(e[n-1][qi]=r[qi]);const o=kr(e,yo+t);Fg(r[Bi],r);const s=o[oo];null!==s&&s.detachView(o[Bi]),r[Gi]=null,r[qi]=null,r[Hi]&=-129}return r}function Bg(e,t){if(To(t))return;const n=t[Ji];n.destroyNode&&im(e,t,n,3,null,null),function(e){let t=e[Xi];if(!t)return Hg(e[Bi],e);for(;t;){let n=null;if(Eo(t))n=t[Xi];else{ngDevMode&&Ro(t);const e=t[yo];e&&(n=e)}if(!n){for(;t&&!t[qi]&&t!==e;)Eo(t)&&Hg(t[Bi],t),t=t[Gi];null===t&&(t=e),Eo(t)&&Hg(t[Bi],t),n=t&&t[qi]}t=n}}(t)}function Hg(e,t){if(To(t))return;const n=u(null);try{t[Hi]&=-129,t[Hi]|=256,t[po]&&C(t[po]),qg(e,t),Gg(e,t),1===t[Bi].type&&(ngDevMode&&ngDevMode.rendererDestroy++,t[Ji].destroy());const n=t[ro];if(null!==n&&_o(t[Gi])){n!==t[Gi]&&Vg(n,t);const r=t[oo];null!==r&&r.detachView(e)}Lu(t)}finally{u(n)}}function Gg(e,t){ngDevMode&&In(Gg.name);const n=e.cleanup,r=t[Ki];if(null!==n)for(let e=0;e<n.length-1;e+=2)if("string"==typeof n[e]){const t=n[e+3];ngDevMode&&an(t,"cleanup target must be a number"),t>=0?r[t]():r[-t].unsubscribe(),e+=2}else{const t=r[n[e+1]];n[e].call(t)}null!==r&&(t[Ki]=null);const i=t[co];if(null!==i){t[co]=null;for(let e=0;e<i.length;e++){const t=i[e];ngDevMode&&ln(t,"Expecting destroy hook to be a function."),t()}}const o=t[lo];if(null!==o){t[lo]=null;for(const e of o)e.destroy()}}function qg(e,t){let n;if(ngDevMode&&In(qg.name),null!=e&&null!=(n=e.destroyHooks))for(let e=0;e<n.length;e+=2){const r=t[n[e]];if(!(r instanceof Na)){const t=n[e+1];if(Array.isArray(t))for(let e=0;e<t.length;e+=2){const n=r[t[e]],i=t[e+1];Xo(4,n,i);try{i.call(n)}finally{Xo(5,n,i)}}else{Xo(4,r,t);try{t.call(r)}finally{Xo(5,r,t)}}}}}function zg(e,t,n){return Wg(e,t.parent,n)}function Wg(e,t,n){let r=t;for(;null!==r&&168&r.type;)r=(t=r).parent;if(null===r)return n[$i];{ngDevMode&&xa(r,7);const{componentOffset:t}=r;if(t>-1){ngDevMode&&Oo(r,n);const{encapsulation:i}=e.data[r.directiveStart+t];if(i===Up.None||i===Up.Emulated)return null}return os(r,n)}}function Kg(e,t,n){return Zg(e,t,n)}function Qg(e,t,n){return 40&e.type?os(e,n):null}!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(Rg||(Rg={}));let Yg,Zg=Qg;function Jg(e,t){Zg=e,Yg=t}function Xg(e,t,n,r){const i=zg(e,r,t),o=t[Ji],s=Kg(r.parent||t[zi],r,t);if(null!=i)if(Array.isArray(n))for(let e=0;e<n.length;e++)Yf(o,i,n[e],s,!1);else Yf(o,i,n,s,!1);void 0!==Yg&&Yg(o,r,t,n,i)}function em(e,t){if(null!==t){ngDevMode&&xa(t,191);const n=t.type;if(3&n)return os(t,e);if(4&n)return nm(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return em(e,n);{const n=e[t.index];return _o(n)?nm(-1,n):ns(n)}}if(128&n)return em(e,t.next);if(32&n)return kg(t,e)()||ns(e[t.index]);{const n=tm(e,t);if(null!==n){if(Array.isArray(n))return n[0];const t=_s(e[no]);return ngDevMode&&$o(t),em(t,n)}return em(e,t.next)}}return null}function tm(e,t){if(null!==t){const n=e[no][zi],r=t.projection;return ngDevMode&&function(e){En(e[no],"Component views should exist."),En(e[no][zi].projection,"Components with projection nodes (<ng-content>) must have projection slots defined.")}(e),n.projection[r]}return null}function nm(e,t){const n=yo+e+1;if(n<t.length){const e=t[n],r=e[Bi].firstChild;if(null!==r)return em(e,r)}return t[mo]}function rm(e,t,n,r,i,o,s){for(;null!=n;){if(ngDevMode&&Oo(n,r),128===n.type){n=n.next;continue}ngDevMode&&xa(n,63);const a=r[n.index],c=n.type;if(s&&0===t&&(a&&Bu(ns(a),r),n.flags|=2),32&~n.flags)if(8&c)rm(e,t,n.child,r,i,o,!1),Lg(t,e,i,a,o);else if(32&c){const s=kg(n,r);let c;for(;c=s();)Lg(t,e,i,c,o);Lg(t,e,i,a,o)}else 16&c?om(e,t,r,n,i,o):(ngDevMode&&xa(n,7),Lg(t,e,i,a,o));n=s?n.projectionNext:n.next}}function im(e,t,n,r,i,o){rm(n,r,e.firstChild,t,i,o,!1)}function om(e,t,n,r,i,o){const s=n[no],a=s[zi];ngDevMode&&dn(typeof r.projection,"number","expecting projection index");const c=a.projection[r.projection];if(Array.isArray(c))for(let n=0;n<c.length;n++)Lg(t,e,i,c[n],o);else{let n=c;const a=s[Gi];Au(r)&&(n.flags|=128),rm(e,t,n,a,i,o,!0)}}function sm(e,t,n,r){const i=u(null);try{const i=t.tView;ngDevMode&&En(i,"TView must be defined for a template node."),ngDevMode&&Oo(t,e);const o=eg(e,i,n,4096&e[Hi]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),s=e[t.index];ngDevMode&&Ro(s),o[ro]=s;const a=e[oo];return null!==a&&(o[oo]=a.createEmbeddedView(i)),Pg(i,o,n),o}finally{u(i)}}function am(e,t){const n=yo+t;if(n<e.length){const t=e[n];return ngDevMode&&ko(t),t}}function cm(e,t){return!t||null===t.firstChild||Au(e)}function um(e,t,n,r=!0){const i=t[Bi];if(function(e,t,n,r){ngDevMode&&ko(t),ngDevMode&&Ro(n);const i=yo+r,o=n.length;r>0&&(n[i-1][qi]=t),r<o-yo?(t[qi]=n[i],xr(n,yo+r,t)):(n.push(t),t[qi]=null),t[Gi]=n;const s=t[ro];null!==s&&n!==s&&jg(s,t);const a=t[oo];null!==a&&a.insertView(e),ms(t),t[Hi]|=128}(i,t,e,n),r){const r=nm(n,e),o=t[Ji],s=o.parentNode(e[mo]);null!==s&&function(e,t,n,r,i,o){r[$i]=i,r[zi]=t,im(e,r,n,1,i,o)}(i,e[zi],o,t,s,r)}const o=t[Wi];null!==o&&null!==o.firstChild&&(o.firstChild=null)}function lm(e,t){const n=$g(e,t);return void 0!==n&&Bg(n[Bi],n),n}function dm(e,t,n,r,i=!1){for(;null!==n;){if(128===n.type){n=i?n.projectionNext:n.next;continue}ngDevMode&&xa(n,63);const o=t[n.index];null!==o&&r.push(ns(o)),_o(o)&&pm(o,r);const s=n.type;if(8&s)dm(e,t,n.child,r);else if(32&s){const e=kg(n,t);let i;for(;i=e();)r.push(i)}else if(16&s){const e=tm(t,n);if(Array.isArray(e))r.push(...e);else{const n=_s(t[no]);ngDevMode&&$o(n),dm(n[Bi],n,e,r,!0)}}n=i?n.projectionNext:n.next}return r}function pm(e,t){for(let n=yo;n<e.length;n++){const r=e[n],i=r[Bi].firstChild;null!==i&&dm(r[Bi],r,i,t)}e[mo]!==e[$i]&&t.push(e[mo])}let hm=[];const fm={...p,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{vs(e.lView)},consumerOnSignalRead(){this.lView[po]=this}},gm={...p,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=_s(e.lView);for(;t&&!mm(t[Bi]);)t=_s(t);t&&hs(t)},consumerOnSignalRead(){this.lView[po]=this}};function mm(e){return 2!==e.type}function vm(e){if(null===e[lo])return;let t=!0;for(;t;){let n=!1;for(const t of e[lo])t.dirty&&(n=!0,null===t.zone||Zone.current===t.zone?t.run():t.zone.run((()=>t.run())));t=n&&!!(8192&e[Hi])}}const ym=100;function Em(e,t=!0,n=0){const r=e[Zi].rendererFactory,i=!!ngDevMode&&Bs();i||r.begin?.();try{!function(e,t){const n=qs();try{if(zs(!0),Dm(e,t),ngDevMode&&Hs())return;let n=0;for(;gs(e);){if(n===ym)throw new kt(103,ngDevMode&&"Infinite change detection while trying to refresh views. There may be components which each cause the other to require a refresh, causing an infinite loop.");n++,Dm(e,1)}}finally{zs(n)}}(e,n)}catch(n){throw t&&Ag(e,n),n}finally{i||r.end?.()}}function _m(e,t,n=!0){Gs(t);try{Em(e,n)}finally{Gs(Is.Off)}}function bm(e,t,n,r){if(ngDevMode&&dn(us(t),!1,"Should be run in update mode"),To(t))return;const i=t[Hi],o=ngDevMode&&Bs(),s=ngDevMode&&Hs();sa(t);let a=!0,c=null,u=null;o||(mm(e)?(u=function(e){return e[po]??function(e){const t=hm.pop()??Object.create(fm);return t.lView=e,t}(e)}(t),c=E(u)):null===l()?(a=!1,u=function(e){const t=e[po]??Object.create(gm);return t.lView=e,t}(t),c=E(u)):t[po]&&(C(t[po]),t[po]=null));try{ps(t),Qs(e.bindingStartIndex),null!==n&&ng(e,t,n,2,r);const a=!(3&~i);if(!o)if(a){const n=e.preOrderCheckHooks;null!==n&&Sa(t,n,null)}else{const n=e.preOrderHooks;null!==n&&Ia(t,n,0,null),Da(t,0)}if(s||function(e){for(let t=Zu(e);null!==t;t=Ju(t)){if(!(2&t[Hi]))continue;const e=t[vo];ngDevMode&&En(e,"Transplanted View flags set but missing MOVED_VIEWS");for(let t=0;t<e.length;t++)hs(e[t])}}(t),vm(t),Cm(t,0),null!==e.contentQueries&&kp(e,t),!o)if(a){const n=e.contentCheckHooks;null!==n&&Sa(t,n)}else{const n=e.contentHooks;null!==n&&Ia(t,n,1),Da(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const r=n[e];if(r<0)ha(~r);else{const i=r,o=n[++e],s=n[++e];Xs(o,i);const a=t[i];Xo(24,a),s(2,a),Xo(25,a)}}}finally{ha(-1)}}(e,t);const c=e.components;null!==c&&wm(t,c,0);const u=e.viewQuery;if(null!==u&&Lp(2,u,r),!o)if(a){const n=e.viewCheckHooks;null!==n&&Sa(t,n)}else{const n=e.viewHooks;null!==n&&Ia(t,n,2),Da(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[uo]){for(const e of t[uo])e();t[uo]=null}o||(t[Hi]&=-73)}catch(e){throw o||vs(t),e}finally{null!==u&&(_(u,c),a&&(d=u).lView[po]!==d&&(d.lView=null,hm.push(d))),da()}var d}function Cm(e,t){for(let n=Zu(e);null!==n;n=Ju(n))for(let e=yo;e<n.length;e++)Im(n[e],t)}function Sm(e,t,n){ngDevMode&&dn(us(e),!1,"Should be run in update mode"),Im(cs(t,e),n)}function Im(e,t){ls(e)&&Dm(e,t)}function Dm(e,t){const n=ngDevMode&&Bs(),r=e[Bi],i=e[Hi],o=e[po];let s=!!(0===t&&16&i);if(s||=!(!(64&i&&0===t)||n),s||=!!(1024&i),s||=!(!o?.dirty||!b(o)),s||=!(!ngDevMode||!Hs()),o&&(o.dirty=!1),e[Hi]&=-9217,s)bm(r,e,r.template,e[Qi]);else if(8192&i){vm(e),Cm(e,1);const t=r.components;null!==t&&wm(e,t,1)}}function wm(e,t,n){for(let r=0;r<t.length;r++)Sm(e,t[r],n)}function Tm(e,t){const n=qs()?64:1088;for(e[Zi].changeDetectionScheduler?.notify(t);e;){e[Hi]|=n;const t=_s(e);if(Do(e)&&!t)return e;e=t}return null}class Om{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){const e=this._lView,t=e[Bi];return dm(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n}get context(){return this._lView[Qi]}get dirty(){return!!(9280&this._lView[Hi])||!!this._lView[po]?.dirty}set context(e){ngDevMode&&console.warn("Angular: Replacing the `context` object of an `EmbeddedViewRef` is deprecated."),this._lView[Qi]=e}get destroyed(){return To(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[Gi];if(_o(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(ngDevMode&&dn(n,e.indexOf(this._lView)-yo,"An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array."),$g(e,n),kr(t,n))}this._attachedToViewContainer=!1}Bg(this._lView[Bi],this._lView)}onDestroy(e){ys(this._lView,e)}markForCheck(){Tm(this._cdRefInjectingView||this._lView,4)}markForRefresh(){hs(this._cdRefInjectingView||this._lView)}detach(){this._lView[Hi]&=-129}reattach(){ms(this._lView),this._lView[Hi]|=128}detectChanges(){this._lView[Hi]|=1024,Em(this._lView,this.notifyErrorHandler)}checkNoChanges(){ngDevMode&&_m(this._lView,Is.OnlyDirtyViews,this.notifyErrorHandler)}attachToViewContainerRef(){if(this._appRef)throw new kt(902,ngDevMode&&"This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const e=Do(this._lView),t=this._lView[ro];null===t||e||Vg(t,this._lView),Ug(this._lView[Bi],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new kt(902,ngDevMode&&"This view is already attached to a ViewContainer!");this._appRef=e;const t=Do(this._lView),n=this._lView[ro];null===n||t||jg(n,this._lView),ms(this._lView)}}class Am{static __NG_ELEMENT_ID__=Pm}const Nm=Am,Mm=class extends Nm{_declarationLView;_declarationTContainer;elementRef;constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){const r=sm(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n});return new Om(r)}};function Pm(){return Rm(ks(),Ms())}function Rm(e,t){return 4&e.type?(ngDevMode&&En(e.tView,"TView must be allocated"),new Mm(t,e,hu(e,t))):null}const xm="<-- AT THIS LOCATION";function km(e,t,n,r,i,o=!1){if(!e||e.nodeType!==t||e.nodeType===Node.ELEMENT_NODE&&e.tagName.toLowerCase()!==n?.toLowerCase()){let s=`During hydration Angular expected ${qm(t,n,null)} but `;const a=uf(r),c=a?.type?.name,u=Hm(r,i,o),l=`Angular expected this DOM:\n\n${u}\n\n`;let d="";const p=ns(r[$i]);if(e){s+=`found ${qm(e.nodeType,e.tagName??null,e.textContent??null)}.\n\n`;const t=Gm(e);d=`Actual DOM is:\n\n${t}\n\n`,_p(p,u,t)}else s+="the node was not found.\n\n",_p(p,u);const h=zm(c);throw new kt(-500,s+l+d+"Note: attributes are only displayed to better represent the DOM but have no effect on hydration mismatches.\n\n"+h)}}function Lm(e){if(Fm(e),!e.nextSibling){const t="During hydration Angular expected more sibling nodes to be present.\n\n",n=`Actual DOM is:\n\n${Gm(e)}\n\n`,r=t+n+zm();throw _p(e,"",n),new kt(-501,r)}}function Fm(e,t=null,n=null){if(!e){const e="During hydration, Angular expected an element to be present at this location.\n\n";let r="",i="";throw null!==t&&null!==n&&(r=Hm(t,n,!1),i=zm(),_p(ns(t[$i]),r,"")),new kt(-502,`${e}${r}\n\n${i}`)}}function Um(e,t){const n=`During hydration Angular was unable to locate a node using the "${t}" path, starting from the ${Bm(e)} node.\n\n`,r=zm();throw _p(e),new kt(-502,n+r)}function jm(e){const t=`${Gm(e)}\n\n`;return new kt(-503,"During serialization, Angular detected DOM nodes that were created outside of Angular context and provided as projectable nodes (likely via `ViewContainerRef.createComponent` or `createComponent` APIs). Hydration is not supported for such cases, consider refactoring the code to avoid this pattern or using `ngSkipHydration` on the host element of the component.\n\n"+t+"Note: attributes are only displayed to better represent the DOM but have no effect on hydration mismatches.\n\n")}const Vm=new Set(["ngh","ng-version","ng-server-context"]);function $m(e,t="…"){switch(e.type){case 1:return"#text"+(e.value?`(${e.value})`:"");case 2:const n=function(e){const t=[];if(e.attrs)for(let n=0;n<e.attrs.length;){const r=e.attrs[n++];if("number"==typeof r)break;const i=e.attrs[n++];t.push(`${r}="${Wm(i)}"`)}return t.join(" ")}(e),r=e.value.toLowerCase();return`<${r}${n?" "+n:""}>${t}</${r}>`;case 8:return"\x3c!-- ng-container --\x3e";case 4:return"\x3c!-- container --\x3e";default:return`#node(${function(e){switch(e){case 4:return"view container";case 2:return"element";case 8:return"ng-container";case 32:return"icu";case 64:return"i18n";case 16:return"projection";case 1:return"text";case 128:return"@let";default:return"<unknown>"}}(e.type)})`}}function Bm(e,t="…"){const n=e;switch(n.nodeType){case Node.ELEMENT_NODE:const e=n.tagName.toLowerCase(),r=function(e){const t=[];for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];Vm.has(r.name)||t.push(`${r.name}="${Wm(r.value)}"`)}return t.join(" ")}(n);return`<${e}${r?" "+r:""}>${t}</${e}>`;case Node.TEXT_NODE:const i=n.textContent?Wm(n.textContent):"";return"#text"+(i?`(${i})`:"");case Node.COMMENT_NODE:return`\x3c!-- ${Wm(n.textContent??"")} --\x3e`;default:return`#node(${n.nodeType})`}}function Hm(e,t,n){const r=" ";let i="";t.prev?(i+=" …\n",i+=r+$m(t.prev)+"\n"):t.type&&12&t.type&&(i+=" …\n"),n?(i+=r+$m(t)+"\n",i+=r+`\x3c!-- container --\x3e ${xm}\n`):i+=r+$m(t)+` ${xm}\n`,i+=" …\n";const o=t.type?zg(e[Bi],t,e):null;return o&&(i=Bm(o,"\n"+i)),i}function Gm(e){let t="";const n=e;return n.previousSibling&&(t+=" …\n",t+=" "+Bm(n.previousSibling)+"\n"),t+=" "+Bm(n)+` ${xm}\n`,e.nextSibling&&(t+=" …\n"),e.parentNode&&(t=Bm(n.parentNode,"\n"+t)),t}function qm(e,t,n){switch(e){case Node.ELEMENT_NODE:return`<${t.toLowerCase()}>`;case Node.TEXT_NODE:return"a text node"+(n?` (with the "${Wm(n)}" content)`:"");case Node.COMMENT_NODE:return"a comment node";default:return`#node(nodeType=${e})`}}function zm(e){return`To fix this problem:\n * check ${e?`the "${e}"`:"corresponding"} component for hydration-related issues\n * check to see if your template has valid HTML structure\n * or skip hydration by adding the \`ngSkipHydration\` attribute to its host node in a template\n\n`}function Wm(e,t=50){return e?(e=function(e){return e.replace(/\s+/gm,"")}(e)).length>t?`${e.substring(0,t-1)}…`:e:""}function Km(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?Qg(e,0,n):(ngDevMode&&Cn(n,i),ns(n[i]))}function Qm(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){ngDevMode&&bn(r);let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&-1===t.componentOffset)for(let t=1;t<o.length;t++)Kf(e,s,n[o[t]],a,!1)}}function Ym(e,t,n,r,i){ngDevMode&&0!==t&&yn(t,ho,"TNodes can't be in the LView header."),ngDevMode&&function(e){2!==e&&1!==e&&4!==e&&8!==e&&32!==e&&16!==e&&64!==e&&128!==e&&_n(`Expected TNodeType to have only a single type selected, but got ${Ma(e)}.`)}(n);let o=e.data[t];if(null===o)o=Zm(e,t,n,r,i),Ss.lFrame.inI18n&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const s=Fs();o.injectorIndex=null===s?-1:s.injectorIndex,ngDevMode&&Ao(o,e),ngDevMode&&dn(t,o.index,"Expecting same index")}return Us(o,!0),o}function Zm(e,t,n,r,i){const o=Ls(),s=js(),a=s?o:o&&o.parent,c=e.data[t]=function(e,t,n,r,i,o){ngDevMode&&0!==r&&yn(r,ho,"TNodes can't be in the LView header."),ngDevMode&&fn(o,void 0,"'undefined' is not valid value for 'attrs'"),ngDevMode&&ngDevMode.tNode++,ngDevMode&&t&&Ao(t,e);let s=t?t.injectorIndex:-1,a=0;Os()&&(a|=128);const c={type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};return ngDevMode&&Object.seal(c),c}(e,a,n,t,r,i);return function(e,t,n,r){null===e.firstChild&&(e.firstChild=t),null!==n&&(r?null==n.child&&null!==t.parent&&(n.child=t):null===n.next&&(n.next=t,t.prev=n))}(e,c,o,s),c}function Jm(e,t){if(ngDevMode&&dn(t.insertBeforeIndex,null,"We expect that insertBeforeIndex is not set"),e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Xm(r)||ev(r,t)&&null===tv(r)&&nv(r,t.index)}}function Xm(e){return!(64&e.type)}function ev(e,t){return Xm(t)||e.index>t.index}function tv(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function nv(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(Jg(Km,Qm),e.insertBeforeIndex=t)}function rv(e,t){const n=e.data[t];if(null===n||"string"==typeof n)return null;!ngDevMode||n.hasOwnProperty("tView")||n.hasOwnProperty("currentCaseLViewIndex")||_n("We expect to get 'null'|'TIcu'|'TIcuContainer', but got: "+n);const r=n.hasOwnProperty("currentCaseLViewIndex")?n:n.value;return ngDevMode&&Mo(r),r}function iv(e,t,n){const r=Zm(e,n,64,null,null);return Jm(t,r),r}function ov(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function sv(e){return e>>>17}function av(e){return(131070&e)>>>1}function cv(e){return 1&e}function uv(e){return-1===e}function lv(e,t,n){e.index=0;const r=ov(t,n);null!==r?(ngDevMode&&cn(r,0,t.cases.length-1),e.removes=t.remove[r]):e.removes=Hr}function dv(e){if(e.index<e.removes.length){const t=e.removes[e.index++];if(ngDevMode&&an(t,"Expecting OpCode number"),t>0){const n=e.lView[t];return ngDevMode&&bn(n),n}{e.stack.push(e.index,e.removes);const n=~t,r=e.lView[Bi].data[n];return ngDevMode&&Mo(r),lv(e,r,e.lView),dv(e)}}return 0===e.stack.length?null:(e.removes=e.stack.pop(),e.index=e.stack.pop(),dv(e))}function pv(){const e={stack:[],index:-1};return function(t,n){for(e.lView=n;e.stack.length;)e.stack.pop();return ngDevMode&&Oo(t,n),lv(e,t.value,n),dv.bind(null,e)}}const hv=new RegExp(`^(\\d+)*(${Tl}|${wl})*(.*)`);function fv(e){return e.index-ho}function gv(e,t){return!(144&e.type)&&!!t[e.index]&&mv(ns(t[e.index]))}function mv(e){return!!e&&!e.isConnected}function vv(e,t){const n=e.i18nNodes;if(n)return n.get(t)}function yv(e,t,n){const r=e.data[Ll],i=r?.[n];return i?Cv(i,t):null}function Ev(e,t,n,r){const i=fv(r);let o=vv(e,i);if(void 0===o){const s=e.data[Ll];if(s?.[i])o=Cv(s[i],n);else if(t.firstChild===r)o=e.firstChild;else{const t=null===r.prev,i=r.prev??r.parent;if(ngDevMode&&En(i,"Unexpected state: current TNode does not have a connection to the previous node or a parent node."),function(e){return!e.prev&&8===e.parent?.type}(r))o=Cp(e,fv(r.parent));else{let r=os(i,n);if(t)o=r.firstChild;else{const t=fv(i),n=Cp(e,t);o=2===i.type&&n?_v(Tp(e,t)+1,n):r.nextSibling}}}}return o}function _v(e,t){let n=t;for(let t=0;t<e;t++)ngDevMode&&Lm(n),n=n.nextSibling;return n}function bv(e){const t=[];for(let n=0;n<e.length;n+=2){const r=e[n],i=e[n+1];for(let e=0;e<i;e++)t.push(r===Ol?"firstChild":"nextSibling")}return t.join(".")}function Cv(e,t){const[n,...r]=function(e){const t=e.match(hv),[n,r,i,o]=t,s=r?parseInt(r,10):i,a=[];for(const[e,t,n]of o.matchAll(/(f|n)(\d*)/g)){const e=parseInt(n,10)||1;a.push(t,e)}return[s,...a]}(e);let i;return i=n===wl?t[no][$i]:n===Tl?mf(t[no][$i]):ns(t[Number(n)+ho]),function(e,t){let n=e;for(let r=0;r<t.length;r+=2){const i=t[r],o=t[r+1];for(let r=0;r<o;r++){if(ngDevMode&&!n)throw Um(e,bv(t));switch(i){case Ol:n=n.firstChild;break;case Al:n=n.nextSibling}}}if(ngDevMode&&!n)throw Um(e,bv(t));return n}(i,r)}function Sv(e,t){if(e===t)return[];if(null==e.parentElement||null==t.parentElement)return null;if(e.parentElement===t.parentElement)return function(e,t){const n=[];let r=null;for(r=e;null!=r&&r!==t;r=r.nextSibling)n.push(Al);return null==r?null:n}(e,t);{const n=t.parentElement,r=Sv(e,n),i=Sv(n.firstChild,t);return r&&i?[...r,Ol,...i]:null}}function Iv(e,t,n){const r=Sv(e,t);return null===r?null:function(e,t){const n=[e];for(const e of t){const t=n.length-1;if(t>0&&n[t-1]===e){const e=n[t]||1;n[t]=e+1}else n.push(e,"")}return n.join("")}(n,r)}function Dv(e){return e.textContent?.trimStart().startsWith("ngh=")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}let wv=!1,Tv=()=>{};function Ov(e){wv=e}function Av(){return wv}function Nv(e,t,n){if(!n.isI18nHydrationEnabled)return null;const r=e[Bi],i=r.data[t];if(!i||!i.ast)return null;const o=r.data[i.parentTNodeIndex];if(o&&Mu(o))return null;const s={caseQueue:[],disconnectedNodes:new Set,disjointNodes:new Set};return Mv(e,s,n,i.ast),0===s.caseQueue.length&&0===s.disconnectedNodes.size&&0===s.disjointNodes.size?null:s}function Mv(e,t,n,r){let i=null;for(const a of r){const r=Pv(e,t,n,a);r&&(s=r,(o=i)&&o.nextSibling!==s&&t.disjointNodes.add(a.index-ho),i=r)}var o,s;return i}function Pv(e,t,n,r){const i=ns(e[r.index]);if(!i||mv(i))return t.disconnectedNodes.add(r.index-ho),null;const o=i;switch(r.kind){case 0:Np(n,o);break;case 1:case 2:Mv(e,t,n,r.children);break;case 3:{const i=e[r.currentCaseLViewIndex];if(null!=i){const o=i<0?~i:i;t.caseQueue.push(o),Mv(e,t,n,r.cases[o])}break}}return function(e,t){const n=e[Bi].data[t.index];if(Pa(n))return em(e,n);if(3===t.kind){const r=function(e,t){const n={stack:[],index:-1,lView:t};return ngDevMode&&Mo(e),lv(n,e,t),dv.bind(null,n)}(n,e);return r()??ns(e[t.index])}return ns(e[t.index])??null}(e,r)}function Rv(e,t){e.currentNode=t}function xv(e,t,n){const r=n.index-ho,{disconnectedNodes:i}=e,o=t.currentNode;return t.isConnected?(e.i18nNodes.set(r,o),i.delete(r)):i.add(r),o}function kv(e,t){let n=e.currentNode;for(let e=0;e<t&&n;e++)n=n?.nextSibling??null;return n}function Lv(e,t){return{currentNode:t,isConnected:e.isConnected}}function Fv(e,t,n,r){const i=e[Wi];if(!i)return;if(!Av()||n&&(Mu(n)||Ap(i,n.index-ho)))return;const o=e[Bi],s=o.data[t];ngDevMode&&En(s,"Expected i18n data to be present in a given TView slot during hydration");const a=function(){if(uv(r)){ngDevMode&&En(n,"Expected parent TNode while hydrating i18n root");const t=Ev(i,o,e,n);return 8&n.type?t:t.firstChild}return i?.firstChild}();ngDevMode&&En(a,"Expected root i18n node during hydration");const c=Op(i)??new Set,u=i.i18nNodes??=new Map,l=i.data[Ul]?.[t-ho]??[],d=i.dehydratedIcuData??=new Map;Uv({hydrationInfo:i,lView:e,i18nNodes:u,disconnectedNodes:c,caseQueue:l,dehydratedIcuData:d},{currentNode:a,isConnected:!0},s.ast),i.disconnectedNodes=0===c.size?null:c}function Uv(e,t,n){if(Array.isArray(n)){let r=t;for(const i of n){const n=yv(e.hydrationInfo,e.lView,i.index-ho);n&&(r=Lv(t,n)),Uv(e,r,i)}}else{if(e.disconnectedNodes.has(n.index-ho))return;switch(n.kind){case 0:{const r=xv(e,t,n);Rv(t,r?.nextSibling??null);break}case 1:{Uv(e,Lv(t,t.currentNode?.firstChild??null),n.children);const r=xv(e,t,n);Rv(t,r?.nextSibling??null);break}case 2:{const r=n.index-ho,{hydrationInfo:i}=e,o=Dp(i,r);switch(n.type){case 0:{const s=xv(e,t,n);!function(e,t){return void 0!==e.data[Nl]?.[t]}(i,r)?(Uv(e,Lv(t,t.currentNode?.firstChild??null),n.children),Rv(t,s?.nextSibling??null),null!==o&&Rv(t,kv(t,o+1))):(Uv(e,t,n.children),Rv(t,kv(t,1)));break}case 1:ngDevMode&&pn(o,null,"Expected a container size while hydrating i18n subtemplate"),xv(e,t,n),Rv(t,kv(t,o+1))}break}case 3:{const r=t.isConnected?e.caseQueue.shift():null,i={currentNode:null,isConnected:!1};for(let o=0;o<n.cases.length;o++)Uv(e,o===r?t:i,n.cases[o]);null!==r&&e.dehydratedIcuData.set(n.index,{case:r,node:n});const o=xv(e,t,n);Rv(t,o?.nextSibling??null);break}}}}let jv=()=>{};function Vv(e,t,n){const r=e[Wi]?.dehydratedIcuData;if(r){const e=r.get(t);e?.case===n&&r.delete(t)}}function $v(e,t,n){for(const r of n.node.cases[n.case]){const n=t.get(r.index-ho);n&&Zf(e,n,!1)}}function Bv(e){const t=e[go]??[],n=e[Gi][Ji],r=[];for(const e of t)void 0!==e.data[jl]?r.push(e):(Hv(e,n),ngDevMode&&ngDevMode.dehydratedViewsRemoved++);e[go]=r}function Hv(e,t){let n=0,r=e.firstChild;if(r){const i=e.data[xl];for(;n<i;){ngDevMode&&Lm(r);const e=r.nextSibling;Zf(t,r,!1),r=e,n++}}}function Gv(e){Bv(e);const t=e[$i];Eo(t)&&qv(t);for(let t=yo;t<e.length;t++)qv(e[t])}function qv(e){!function(e){const t=e[Wi];if(t){const{i18nNodes:n,dehydratedIcuData:r}=t;if(n&&r){const t=e[Ji];for(const e of r.values())$v(t,n,e)}t.i18nNodes=void 0,t.dehydratedIcuData=void 0}}(e);const t=e[Bi];for(let n=ho;n<t.bindingStartIndex;n++)_o(e[n])?Gv(e[n]):Eo(e[n])&&qv(e[n])}function zv(e){const t=e._views;for(const e of t){const t=fp(e);null!==t&&null!==t[$i]&&(Eo(t)?qv(t):Gv(t),ngDevMode&&ngDevMode.dehydratedViewsCleanupRuns++)}}let Wv=()=>null;function Kv(e,t){const n=e[go];return t&&null!==n&&0!==n.length?n[0].data[kl]===t?n.shift():(Bv(e),null):null}function Qv(e,t){return Wv(e,t)}class Yv{}class Zv{}class Jv{resolveComponentFactory(e){throw Error(`No component factory found for ${Xt(e)}.`)}}class Xv{static NULL=new Jv}class ey{}class ty{destroyNode=null;static __NG_ELEMENT_ID__=()=>function(){const e=Ms(),t=cs(ks().index,e);return(Eo(t)?t:e)[Ji]}()}class ny{static ɵprov=Dn({token:ny,providedIn:"root",factory:()=>null})}function ry(e){return void 0!==e.ngModule}function iy(e){return!!Kr(e)}function oy(e){return!!Zr(e)}function sy(e){return!!Yr(e)}function ay(e){return!!Qr(e)}function cy(e,t){if(sn(e)&&!(e=on(e)))throw new Error(`Expected forwardRef function, imported from "${nr(t)}", to return a standalone entity or NgModule but got "${nr(e)||e}".`);if(null==Kr(e)){const r=Qr(e)||Yr(e)||Zr(e);if(null==r)throw ry(e)?new Error(`A module with providers was imported from "${nr(t)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${nr(e)}" type, imported from "${nr(t)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!r.standalone)throw new Error(`The "${nr(e)}" ${n=e,Qr(n)?"component":Yr(n)?"directive":Zr(n)?"pipe":"type"}, imported from "${nr(t)}", is not standalone. Did you forget to add the standalone: true flag?`)}var n}const uy=!0;function ly(e,t){for(const n of e)t.add(n)}const dy=new class{ownerNgModule=new Map;ngModulesWithSomeUnresolvedDecls=new Set;ngModulesScopeCache=new Map;standaloneComponentsScopeCache=new Map;resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const e of this.ngModulesWithSomeUnresolvedDecls){const t=Kr(e);if(t?.declarations)for(const n of yf(t.declarations))ay(n)&&this.ownerNgModule.set(n,e)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(e,t){this.resolveNgModulesDecls();const n=Qr(e);if(null===n)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${e}`);if(n.standalone){const n=this.getStandaloneComponentScope(e,t);return n.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...n.compilation.directives,...n.compilation.pipes,...n.compilation.ngModules]}}{if(!this.ownerNgModule.has(e))return{dependencies:[]};const t=this.getNgModuleScope(this.ownerNgModule.get(e));return t.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...t.compilation.directives,...t.compilation.pipes]}}}registerNgModule(e,t){if(!iy(e))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${e}`);this.ngModulesWithSomeUnresolvedDecls.add(e)}clearScopeCacheFor(e){this.ngModulesScopeCache.delete(e),this.standaloneComponentsScopeCache.delete(e)}getNgModuleScope(e){if(this.ngModulesScopeCache.has(e))return this.ngModulesScopeCache.get(e);const t=this.computeNgModuleScope(e);return this.ngModulesScopeCache.set(e,t),t}computeNgModuleScope(e){const t=Kr(e,!0),n={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const e of yf(t.imports))if(iy(e)){const t=this.getNgModuleScope(e);ly(t.exported.directives,n.compilation.directives),ly(t.exported.pipes,n.compilation.pipes)}else{if(!Jr(e)){n.compilation.isPoisoned=!0;break}if(sy(e)||ay(e))n.compilation.directives.add(e);else{if(!oy(e))throw new kt(980,"The standalone imported type is neither a component nor a directive nor a pipe");n.compilation.pipes.add(e)}}if(!n.compilation.isPoisoned)for(const e of yf(t.declarations)){if(iy(e)||Jr(e)){n.compilation.isPoisoned=!0;break}oy(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}for(const e of yf(t.exports))if(iy(e)){const t=this.getNgModuleScope(e);ly(t.exported.directives,n.exported.directives),ly(t.exported.pipes,n.exported.pipes),ly(t.exported.directives,n.compilation.directives),ly(t.exported.pipes,n.compilation.pipes)}else oy(e)?n.exported.pipes.add(e):n.exported.directives.add(e);return n}getStandaloneComponentScope(e,t){if(this.standaloneComponentsScopeCache.has(e))return this.standaloneComponentsScopeCache.get(e);const n=this.computeStandaloneComponentScope(e,t);return this.standaloneComponentsScopeCache.set(e,n),n}computeStandaloneComponentScope(e,t){const n={compilation:{directives:new Set([e]),pipes:new Set,ngModules:new Set}};for(const r of Pr(t??[])){const t=on(r);try{cy(t,e)}catch(e){return n.compilation.isPoisoned=!0,n}if(iy(t)){n.compilation.ngModules.add(t);const e=this.getNgModuleScope(t);if(e.exported.isPoisoned)return n.compilation.isPoisoned=!0,n;ly(e.exported.directives,n.compilation.directives),ly(e.exported.pipes,n.compilation.pipes)}else if(oy(t))n.compilation.pipes.add(t);else{if(!sy(t)&&!ay(t))return n.compilation.isPoisoned=!0,n;n.compilation.directives.add(t)}}return n}isOrphanComponent(e){const t=Qr(e);return!(!t||t.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(e)))}};function py(e,t,n){ngDevMode&&Lo(Ps(),"Expecting to be called in first template pass only");let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let e=0;e<t.length;e++){const n=t[e];"number"==typeof n?o=n:1==o?i=en(i,n):2==o&&(r=en(r,n+": "+t[++e]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}class hy extends Xv{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){ngDevMode&&function(e,t="Type passed in is not ComponentType, it does not have 'ɵcmp' property."){Qr(e)||_n(t)}(e);const t=Qr(e);return new gy(t,this.ngModule)}}function fy(e,t){const n=[];for(const r in e){if(!e.hasOwnProperty(r))continue;const i=e[r];if(void 0===i)continue;const o=Array.isArray(i),s=o?i[0]:i,a=o?i[1]:If.None;t?n.push({propName:s,templateName:r,isSignal:!!(a&If.SignalBased)}):n.push({propName:s,templateName:r})}return n}class gy extends Zv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){const e=this.componentDef,t=e.inputTransforms,n=fy(e.inputs,!0);if(null!==t)for(const e of n)t.hasOwnProperty(e.propName)&&(e.transform=t[e.propName]);return n}get outputs(){return fy(this.componentDef.outputs,!1)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=Ff(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}create(e,t,n,r){const i=u(null);try{if(ngDevMode&&("undefined"==typeof ngJitMode||ngJitMode)&&this.componentDef.debugInfo?.forbidOrphanRendering&&dy.isOrphanComponent(this.componentType))throw new kt(981,`Orphan component found! Trying to render the component ${function(e){let t=e[Kn]||null;return null!==t&&t.debugInfo?(n=t.debugInfo).filePath&&n.lineNumber?`${n.className} (at ${n.filePath}:${n.lineNumber})`:n.className:nr(e);var n}(this.componentType)} without first loading the NgModule that declares it. It is recommended to make this component standalone in order to avoid this error. If this is not possible now, import the component's NgModule in the appropriate NgModule, or the standalone component in which you are trying to render this component. If this is a lazy import, load the NgModule lazily as well and use its module injector.`);let i=(r=r||this.ngModule)instanceof vi?r:r?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const o=i?new Va(e,i):e,s=o.get(ey,null);if(null===s)throw new kt(407,ngDevMode&&"Angular was not able to inject a renderer (RendererFactory2). Likely this is due to a broken DI hierarchy. Make sure that any injector used to create this component has a correct parent.");const a={rendererFactory:s,sanitizer:o.get(ny,null),changeDetectionScheduler:o.get(Lc,null)},c=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",l=n?function(e,t,n,r){const i=r.get(ql,Gl)||n===Up.ShadowDom,o=e.selectRootElement(t,i);return function(e){ag(e)}(o),o}(c,n,this.componentDef.encapsulation,o):Wf(c,u,function(e){const t=e.toLowerCase();return"svg"===t?es:"math"===t?ts:null}(u));let d=512;this.componentDef.signals?d|=4096:this.componentDef.onPush||(d|=16);let p=null;null!==l&&(p=hp(l,o,!0));const h=sg(0,null,null,1,0,null,null,null,null,null,null),f=eg(null,h,null,d,null,null,a,c,o,null,p);let g;f[ho]=l,sa(f);let m=null;try{const e=this.componentDef;let r,i=null;e.findHostDirectiveDefs?(r=[],i=new Map,e.findHostDirectiveDefs(e,r,i),r.push(e),ngDevMode&&Bo(r)):r=[e];const o=n?["ng-version","19.1.3"]:function(e){const{attrs:t,classes:n}=function(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!Mf(i))break;i=o}r++}return{attrs:t,classes:n}}(e),r=t;return n.length&&r.push(1,...n),r}(this.componentDef.selectors[0]),s=Ym(h,ho,2,"#host",o);for(const e of r)s.mergedAttrs=Fa(s.mergedAttrs,e.hostAttrs);s.mergedAttrs=Fa(s.mergedAttrs,o),py(s,s.mergedAttrs,!0),l&&Xf(c,l,s),m=function(e,t,n,r,i,o){const s=i[Bi];let a=null;null!==t&&(a=hp(t,i[Yi]));const c=o.rendererFactory.createRenderer(t,n),u=eg(i,og(n),null,_g(n),i[e.index],e,o,c,null,null,a);return s.firstCreatePass&&vg(s,e,r.length-1),wg(i,u),i[e.index]=u}(s,l,e,r,f,a),void 0!==t&&function(e,t,n){const r=e.projection=[];for(let e=0;e<t.length;e++){const t=n[e];r.push(null!=t&&t.length?Array.from(t):null)}}(s,this.ngContentSelectors,t),g=function(e,t,n,r,i,o){const s=ks();ngDevMode&&En(s,"tNode should have been already created");const a=i[Bi],c=os(s,i);fg(a,i,s,n,null,r);for(let e=0;e<n.length;e++)Bu(ac(i,a,s.directiveStart+e,s),i);gg(a,i,s),c&&Bu(c,i),ngDevMode&&vn(s.componentOffset,-1,"componentOffset must be great than -1");const u=ac(i,a,s.directiveStart+s.componentOffset,s);if(e[Qi]=i[Qi]=u,null!==o)for(const e of o)e(u,t);return Fp(a,s,i),u}(m,e,r,i,f,[vy]),Pg(h,f,null)}catch(e){throw null!==m&&Lu(m),Lu(f),e}finally{da()}const v=ss(h,ho);return new my(this.componentType,g,hu(v,f),f,v)}finally{u(i)}}}class my extends Yv{location;_rootLView;_tNode;instance;hostView;changeDetectorRef;componentType;previousInputValues=null;constructor(e,t,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.instance=t,this.hostView=this.changeDetectorRef=new Om(r,void 0,!1),this.componentType=e}setInput(e,t){const n=this._tNode.inputs;let r;if(null!==n&&(r=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;const n=this._rootLView;Ng(n[Bi],n,r,e,t),this.previousInputValues.set(e,t),Tm(cs(this._tNode.index,n),1)}else if(ngDevMode){let t=`Can't set value of the '${e}' input on the '${nr(this.componentType)}' component. `;t+=`Make sure that the '${e}' property is annotated with @Input() or a mapped @Input('${e}') exists.`,cf(t)}}get injector(){return new pc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}function vy(){const e=ks();ngDevMode&&En(e,"TNode is required"),Ca(Ms()[Bi],e)}class yy{static __NG_ELEMENT_ID__=Ey}function Ey(){return Iy(ks(),Ms())}const _y=yy,by=class extends _y{_lContainer;_hostTNode;_hostLView;constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return hu(this._hostTNode,this._hostLView)}get injector(){return new pc(this._hostTNode,this._hostLView)}get parentInjector(){const e=Xa(this._hostTNode,this._hostLView);if($a(e)){const t=Ha(e,this._hostLView),n=Ba(e);ngDevMode&&Ho(t,n);const r=t[Bi].data[n+8];return new pc(r,t)}return new pc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Cy(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-yo}createEmbeddedView(e,t,n){let r,i;"number"==typeof n?r=n:null!=n&&(r=n.index,i=n.injector);const o=Qv(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(t||{},i,o);return this.insertImpl(s,r,cm(this._hostTNode,o)),s}createComponent(e,t,n,r,i){const o=e&&!Ri(e);let s;if(o)ngDevMode&&dn("object"!=typeof t,!0,"It looks like Component factory was provided as the first argument and an options object as the second argument. This combination of arguments is incompatible. You can either change the first argument to provide Component type or change the second argument to be a number (representing an index at which to insert the new component's host view into this container)"),s=t;else{ngDevMode&&(En(Qr(e),"Provided Component class doesn't contain Component definition. Please check whether provided class has @Component decorator."),dn("number"!=typeof t,!0,"It looks like Component type was provided as the first argument and a number (representing an index at which to insert the new component's host view into this container as the second argument. This combination of arguments is incompatible. Please use an object as the second argument instead."));const o=t||{};ngDevMode&&o.environmentInjector&&o.ngModuleRef&&_n("Cannot pass both environmentInjector and ngModuleRef options to createComponent()."),s=o.index,n=o.injector,r=o.projectableNodes,i=o.environmentInjector||o.ngModuleRef}const a=o?e:new gy(Qr(e)),c=n||this.parentInjector;if(!i&&null==a.ngModule){const e=(o?c:this.parentInjector).get(vi,null);e&&(i=e)}const u=Qr(a.componentType??{}),l=Qv(this._lContainer,u?.id??null),d=l?.firstChild??null,p=a.create(c,r,d,i);return this.insertImpl(p.hostView,s,cm(this._hostTNode,l)),p}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){const r=e._lView;if(ngDevMode&&e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(_o(r[Gi])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=r[Gi];ngDevMode&&dn(_o(t),!0,"An attached view should have its PARENT point to a container.");const n=new by(t,t[zi],t[Gi]);n.detach(n.indexOf(e))}}const i=this._adjustIndex(t),o=this._lContainer;return um(o,r,i,n),e.attachToViewContainerRef(),xr(Sy(o),i,e),e}move(e,t){if(ngDevMode&&e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=Cy(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=$g(this._lContainer,t);n&&(kr(Sy(this._lContainer),t),Bg(n[Bi],n))}detach(e){const t=this._adjustIndex(e,-1),n=$g(this._lContainer,t);return n&&null!=kr(Sy(this._lContainer),t)?new Om(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:(ngDevMode&&(vn(e,-1,`ViewRef index must be positive, got ${e}`),gn(e,this.length+1+t,"index")),e)}};function Cy(e){return e[8]}function Sy(e){return e[8]||(e[8]=[])}function Iy(e,t){let n;ngDevMode&&xa(e,15);const r=t[e.index];return _o(r)?n=r:(n=Dg(r,t,null,e),t[e.index]=n,wg(t,n)),Dy(n,t,e,r),new by(n,e,t)}let Dy=Oy,wy=()=>!1;function Ty(e,t,n){return wy(e,t,n)}function Oy(e,t,n,r){if(e[mo])return;let i;i=8&n.type?ns(r):function(e,t){const n=e[Ji];ngDevMode&&ngDevMode.rendererCreateComment++;const r=n.createComment(ngDevMode?"container":""),i=os(t,e),o=n.parentNode(i);return Kf(n,o,r,n.nextSibling(i),!1),r}(t,n),e[mo]=i}function Ay(e,t,n){if(e[mo]&&e[go])return!0;const r=n[Wi],i=t.index-ho;if(!r||Nu(t)||Ap(r,i))return!1;const o=Cp(r,i),s=r.data[Pl]?.[i];ngDevMode&&En(s,"Unexpected state: no hydration info available for a given TNode, which represents a view container.");const[a,c]=function(e,t){const n=[];for(const r of t)for(let t=0;t<(r[Rl]??1);t++){const t={data:r,firstChild:null};r[xl]>0&&(t.firstChild=e,e=_v(r[xl],e)),n.push(t)}return[e,n]}(o,s);return ngDevMode&&(km(a,Node.COMMENT_NODE,null,n,t,!0),Ep(a,!1)),e[mo]=a,e[go]=c,!0}function Ny(e,t,n,r){wy(e,n,t)||Oy(e,t,n,r)}class My{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new My(this.queryList)}setDirty(){this.queryList.setDirty()}}class Py{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e<n;e++){const n=t.getByIndex(e),i=this.queries[n.indexInDeclarationView];r.push(i.clone())}return new Py(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==qy(e,t).matches&&this.queries[t].setDirty()}}class Ry{flags;read;predicate;constructor(e,t,n=null){this.flags=t,this.read=n,this.predicate="string"==typeof e?e.split(",").map((e=>e.trim())):e}}class xy{queries;constructor(e=[]){this.queries=e}elementStart(e,t){ngDevMode&&Lo(e,"Queries should collect results on the first template pass only");for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const r=null!==t?t.length:0,i=this.getByIndex(n).embeddedTView(e,r);i&&(i.indexInDeclarationView=n,null!==t?t.push(i):t=[i])}return null!==t?new xy(t):null}template(e,t){ngDevMode&&Lo(e,"Queries should collect results on the first template pass only");for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return ngDevMode&&Cn(this.queries,e),this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class ky{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,t=-1){this.metadata=e,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new ky(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1&~this.metadata.flags){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(e,t,Ly(t,i)),this.matchTNodeWithReadOption(e,t,sc(t,e,i,!1,!1))}else n===Am?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,sc(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===fu||r===yy||r===Am&&4&t.type)this.addMatch(t.index,-2);else{const n=sc(t,e,r,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Ly(e,t){const n=e.localNames;if(null!==n)for(let e=0;e<n.length;e+=2)if(n[e]===t)return n[e+1];return null}function Fy(e,t,n,r){return-1===n?function(e,t){return 11&e.type?hu(e,t):4&e.type?Rm(e,t):null}(t,e):-2===n?function(e,t,n){return n===fu?hu(t,e):n===Am?Rm(t,e):n===yy?(ngDevMode&&xa(t,15),Iy(t,e)):void(ngDevMode&&_n(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${Xt(n)}.`))}(e,t,r):ac(e,e[Bi],n,t)}function Uy(e,t,n,r){const i=t[oo].queries[r];if(null===i.matches){const r=e.data,o=n.matches,s=[];for(let e=0;null!==o&&e<o.length;e+=2){const i=o[e];if(i<0)s.push(null);else{ngDevMode&&Cn(r,i);const a=r[i];s.push(Fy(t,a,o[e+1],n.metadata.read))}}i.matches=s}return i.matches}function jy(e,t,n,r){const i=e.queries.getByIndex(n),o=i.matches;if(null!==o){const s=Uy(e,t,i,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)r.push(s[e/2]);else{const i=o[e+1],s=t[-n];ngDevMode&&Ro(s);for(let e=yo;e<s.length;e++){const t=s[e];t[ro]===t[Gi]&&jy(t[Bi],t,i,r)}if(null!==s[vo]){const e=s[vo];for(let t=0;t<e.length;t++){const n=e[t];jy(n[Bi],n,i,r)}}}}}return r}function Vy(e,t){return ngDevMode&&En(e[oo],"LQueries should be defined when trying to load a query"),ngDevMode&&Cn(e[oo].queries,t),e[oo].queries[t].queryList}function $y(e,t,n){const r=new Iu(!(4&~n));return function(e,t,n,r){const i=bs(t);ngDevMode&&En(n,"Cleanup context is mandatory when registering framework-level destroy hooks"),i.push(n),e.firstCreatePass?Cs(e).push(r,i.length-1):ngDevMode&&Object.freeze(Cs(e))}(e,t,r,r.destroy),(t[oo]??=new Py).queries.push(new My(r))-1}function By(e,t,n){ngDevMode&&an(t,"Expecting flags");const r=Ps();return r.firstCreatePass&&(Gy(r,new Ry(e,t,n),-1),2&~t||(r.staticViewQueries=!0)),$y(r,Ms(),t)}function Hy(e,t,n,r){ngDevMode&&an(n,"Expecting flags");const i=Ps();if(i.firstCreatePass){const o=ks();Gy(i,new Ry(t,n,r),o.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2&~n||(i.staticContentQueries=!0)}return $y(i,Ms(),n)}function Gy(e,t,n){null===e.queries&&(e.queries=new xy),e.queries.track(new ky(t,n))}function qy(e,t){return ngDevMode&&En(e.queries,"TQueries must be defined to retrieve a TQuery"),e.queries.getByIndex(t)}function zy(e,t){const n=e[Bi],r=qy(n,t);return r.crossesNgTemplate?jy(n,e,t,[]):Uy(n,e,r,t)}function Wy(e,t,n){let r;const i=A((()=>{r._dirtyCounter();const n=function(e,t){const n=e._lView,r=e._queryIndex;if(void 0===n||void 0===r||4&n[Hi])return t?void 0:Hr;const i=Vy(n,r),o=zy(n,r);return i.reset(o,gu),t?i.first:i._changesDetected||void 0===e._flatValue?e._flatValue=i.toArray():e._flatValue}(r,e);if(t&&void 0===n)throw new kt(-951,ngDevMode&&"Child query result is required but no value is available.");return n}));return r=i[c],r._dirtyCounter=_u(0),r._flatValue=void 0,ngDevMode&&(i.toString=()=>"[Query Signal]",r.debugName=n?.debugName),i}function Ky(e){return Wy(!0,!1,e)}function Qy(e){return Wy(!0,!0,e)}function Yy(e){return Wy(!1,!1,e)}function Zy(e,t){const n=e[c];n._lView=Ms(),n._queryIndex=t,n._queryList=Vy(n._lView,t),n._queryList.onDirty((()=>n._dirtyCounter.update((e=>e+1))))}function Jy(e,t){return ngDevMode&&wi(Xy),Ky(t)}const Xy=(Jy.required=function(e,t){return ngDevMode&&wi(Xy),Qy(t)},Jy);function eE(e,t){return ngDevMode&&wi(eE),Yy(t)}function tE(e,t){return ngDevMode&&wi(nE),Ky(t)}const nE=(tE.required=function(e,t){return ngDevMode&&wi(rE),Qy(t)},tE);function rE(e,t){return Yy(t)}function iE(e,t){const n=Object.create(Ut),r=new au;function i(){return h(n),oE(n.value),n.value}return n.value=e,i[c]=n,i.asReadonly=bu.bind(i),i.set=e=>{n.equal(n.value,e)||(F(n,e),r.emit(e))},i.update=e=>{oE(n.value),i.set(e(n.value))},i.subscribe=r.subscribe.bind(r),i.destroyRef=r.destroyRef,ngDevMode&&(i.toString=()=>`[Model Signal: ${i()}]`,n.debugName=t?.debugName),i}function oE(e){if(e===Ft)throw new kt(952,ngDevMode&&"Model is required but no value is available yet.")}function sE(e,t){return ngDevMode&&wi(aE),iE(e,t)}const aE=(sE.required=function(e){return ngDevMode&&wi(aE),iE(Ft,e)},sE),cE=!0;class uE{}const lE=Kt("ContentChildren",((e,t={})=>({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:cE,...t})),uE),dE=Kt("ContentChild",((e,t={})=>({selector:e,first:!0,isViewQuery:!1,descendants:!0,...t})),uE),pE=Kt("ViewChildren",((e,t={})=>({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:cE,...t})),uE),hE=Kt("ViewChild",((e,t)=>({selector:e,first:!0,isViewQuery:!0,descendants:!0,...t})),uE);function fE(e){const t=[],n=new Map;function r(t){let r=n.get(t);if(!r){const i=e(t);n.set(t,r=i.then(bE))}return r}return gE.forEach(((e,n)=>{const i=[];e.templateUrl&&i.push(r(e.templateUrl).then((t=>{e.template=t})));const o="string"==typeof e.styles?[e.styles]:e.styles||[];if(e.styles=o,e.styleUrl&&e.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(e.styleUrls?.length){const t=e.styles.length,n=e.styleUrls;e.styleUrls.forEach(((s,a)=>{o.push(""),i.push(r(s).then((r=>{o[t+a]=r,n.splice(n.indexOf(s),1),0==n.length&&(e.styleUrls=void 0)})))}))}else e.styleUrl&&i.push(r(e.styleUrl).then((t=>{o.push(t),e.styleUrl=void 0})));const s=Promise.all(i).then((()=>function(e){mE.delete(e)}(n)));t.push(s)})),EE(),Promise.all(t).then((()=>{}))}let gE=new Map;const mE=new Set;function vE(e){return mE.has(e)}function yE(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length||e.styleUrl)}function EE(){const e=gE;return gE=new Map,e}function _E(e){mE.clear(),e.forEach(((e,t)=>mE.add(t))),gE=e}function bE(e){return"string"==typeof e?e:e.text()}const CE=new Map;let SE=!0;function IE(e,t){!function(e,t,n){if(t&&t!==n&&SE)throw new Error(`Duplicate module registered for ${e} - ${Xt(t)} vs ${Xt(t.name)}`)}(t,CE.get(t)||null,e),CE.set(t,e)}function DE(e){return CE.get(e)}function wE(e){SE=!e}function TE(e,t,n){const r=Ms(),i=fa(),o=os(i,r);if(2===i.type&&"iframe"===t.toLowerCase()){const e=o;e.src="",e.srcdoc=Bp(""),Zf(r[Ji],e);const t=ngDevMode&&`Angular has detected that the \`${n}\` was applied as a binding to an <iframe>${df(r)}. For security reasons, the \`${n}\` can be set on an <iframe> as a static attribute only. \nTo fix this, switch the \`${n}\` binding to a static attribute in a template or in host bindings section.`;throw new kt(-910,t)}return e}class OE{}class AE{}function NE(e,t){return new PE(e,t??null,[])}const ME=NE;class PE extends OE{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new hy(this);constructor(e,t,n,r=!0){super(),this.ngModuleType=e,this._parent=t;const i=Kr(e);ngDevMode&&En(i,`NgModule '${Xt(e)}' is not a subtype of 'NgModuleType'.`),this._bootstrapComponents=yf(i.bootstrap),this._r3Injector=Oc(e,t,[{provide:OE,useValue:this},{provide:Xv,useValue:this.componentFactoryResolver},...n],Xt(e),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){ngDevMode&&En(this.destroyCbs,"NgModule already destroyed");const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((e=>e())),this.destroyCbs=null}onDestroy(e){ngDevMode&&En(this.destroyCbs,"NgModule already destroyed"),this.destroyCbs.push(e)}}class RE extends AE{moduleType;constructor(e){super(),this.moduleType=e}create(e){return new PE(this.moduleType,e,[])}}class xE extends OE{injector;componentFactoryResolver=new hy(this);instance=null;constructor(e){super();const t=new yi([...e.providers,{provide:OE,useValue:this},{provide:Xv,useValue:this.componentFactoryResolver}],e.parent||mi(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function kE(e,t,n=null){return new xE({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}class LE{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const t=ni(!1,e.type),n=t.length>0?kE([t],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,n)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=Dn({token:LE,providedIn:"environment",factory:()=>new LE(_r(vi))})}function FE(e){return $t((()=>{("undefined"==typeof ngDevMode||ngDevMode)&&Yt();const t=GE(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Pu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?e=>e.get(LE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Up.Emulated,styles:e.styles||Hr,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&vu("NgStandalone"),qE(n);const r=e.dependencies;return n.directiveDefs=zE(r,!1),n.pipeDefs=zE(r,!0),n.id=function(e){let t=0;const n="function"==typeof e.consts?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,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];if("undefined"==typeof ngDevMode||ngDevMode)for(const e of r)pn(typeof e,"function","Internal error: attempting to use a function in component id computation logic.");for(const e of r.join("|"))t=Math.imul(31,t)+e.charCodeAt(0)|0;t+=2147483648;const i="c"+t;if(("undefined"==typeof ngDevMode||ngDevMode)&&("undefined"==typeof ngServerMode||!ngServerMode))if(WE.has(i)){const t=WE.get(i);t!==e.type&&console.warn(Lt(-912,`Component ID generation collision detected. Components '${t.name}' and '${e.type.name}' with selector '${Ff(e.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`))}else WE.set(i,e.type);return i}(n),n}))}function UE(e){return Qr(e)||Yr(e)}function jE(e){return null!==e}function VE(e){return $t((()=>({type:e.type,bootstrap:e.bootstrap||Hr,declarations:e.declarations||Hr,imports:e.imports||Hr,exports:e.exports||Hr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null})))}function $E(e,t){if(null==e)return Br;const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let o,s,a=If.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==If.None?[r,a]:r,t[o]=s):n[o]=r}return n}function BE(e){return $t((()=>{const t=GE(e);return qE(t),t}))}function HE(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function GE(e){const t={};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:t,inputTransforms:null,inputConfig:e.inputs||Br,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||Hr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:$E(e.inputs,t),outputs:$E(e.outputs),debugInfo:null}}function qE(e){e.features?.forEach((t=>t(e)))}function zE(e,t){if(!e)return null;const n=t?Zr:UE;return()=>("function"==typeof e?e():e).map((e=>n(e))).filter(jE)}const WE=new Map;function KE(e){return Object.getPrototypeOf(e.prototype).constructor}function QE(e){let t=KE(e.type),n=!0;const r=[e];for(;t;){let i;if(Io(e))i=t.ɵcmp||t.ɵdir;else{if(t.ɵcmp)throw new kt(903,ngDevMode&&`Directives cannot inherit Components. Directive ${nr(e.type)} is attempting to extend component ${nr(t)}`);i=t.ɵdir}if(i){if(n){r.push(i);const t=e;t.inputs=ZE(e.inputs),t.inputTransforms=ZE(e.inputTransforms),t.declaredInputs=ZE(e.declaredInputs),t.outputs=ZE(e.outputs);const n=i.hostBindings;n&&e_(e,n);const o=i.viewQuery,s=i.contentQueries;if(o&&JE(e,o),s&&XE(e,s),YE(e,i),Jt(e.outputs,i.outputs),Io(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let r=0;r<t.length;r++){const i=t[r];i&&i.ngInherit&&i(e),i===QE&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Fa(i.hostAttrs,n=Fa(n,i.hostAttrs))}}(r)}function YE(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n))continue;if(e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const n=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(n))continue;e.inputTransforms??={},e.inputTransforms[n]=t.inputTransforms[n]}}}function ZE(e){return e===Br?{}:e===Hr?[]:e}function JE(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function XE(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}function e_(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}const t_=["providersResolver"],n_=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function r_(e){let t,n=KE(e.type);t=Io(e)?n.ɵcmp:n.ɵdir;const r=e;for(const e of t_)r[e]=t[e];if(Io(t))for(const e of n_)r[e]=t[e]}function i_(e){const t=t=>{const n=Array.isArray(e);null===t.hostDirectives?(t.findHostDirectiveDefs=o_,t.hostDirectives=n?e.map(a_):[e]):n?t.hostDirectives.unshift(...e.map(a_)):t.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function o_(e,t,n){if(null!==e.hostDirectives)for(const r of e.hostDirectives)if("function"==typeof r){const e=r();for(const r of e)s_(a_(r),t,n)}else s_(r,t,n)}function s_(e,t,n){const r=Yr(e.directive);("undefined"==typeof ngDevMode||ngDevMode)&&function(e,t){const n=e.directive;if(null===t){if(null!==Qr(n))throw new kt(310,`Host directive ${n.name} cannot be a component.`);throw new kt(307,`Could not resolve metadata for host directive ${n.name}. Make sure that the ${n.name} class is annotated with an @Directive decorator.`)}if(!t.standalone)throw new kt(308,`Host directive ${t.type.name} must be standalone.`);u_("input",t,e.inputs),u_("output",t,e.outputs)}(e,r),function(e,t){for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],i=e[n];("undefined"==typeof ngDevMode||ngDevMode)&&e.hasOwnProperty(r)&&dn(e[r],e[n],`Conflicting host directive input alias ${n}.`),e[r]=i}}(r.declaredInputs,e.inputs),o_(r,t,n),n.set(r,e),t.push(r)}function a_(e){return"function"==typeof e?{directive:on(e),inputs:Br,outputs:Br}:{directive:on(e.directive),inputs:c_(e.inputs),outputs:c_(e.outputs)}}function c_(e){if(void 0===e||0===e.length)return Br;const t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function u_(e,t,n){const r=t.type.name,i="input"===e?t.inputs:t.outputs;for(const t in n)if(n.hasOwnProperty(t)){if(!i.hasOwnProperty(t))throw new kt(311,`Directive ${r} does not have an ${e} with a public name of ${t}.`);const o=n[t];if(i.hasOwnProperty(o)&&o!==t)throw new kt(312,`Cannot alias ${e} ${t} of host directive ${r} to ${o}, because it already has a different ${e} with the same public name.`)}}function l_(e){const t=e.inputConfig,n={};for(const e in t)if(t.hasOwnProperty(e)){const r=t[e];Array.isArray(r)&&r[3]&&(n[e]=r[3])}e.inputTransforms=n}function d_(e){return!!p_(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function p_(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function h_(e,t){const n=d_(e),r=d_(t);return n&&r?function(e,t,n){const r=e[Symbol.iterator](),i=t[Symbol.iterator]();for(;;){const e=r.next(),t=i.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,h_):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function f_(e,t,n){return e[t]=n}function g_(e,t){return ngDevMode&&Cn(e,t),ngDevMode&&fn(e[t],Uf,"Stored value should never be NO_CHANGE."),e[t]}function m_(e,t,n){ngDevMode&&fn(n,Uf,"Incoming value should never be NO_CHANGE."),ngDevMode&&gn(t,e.length,"Slot should have been initialized to NO_CHANGE");const r=e[t];if(Object.is(r,n))return!1;if(ngDevMode&&Bs()){const i=r!==Uf?r:void 0;if(!h_(i,n)){const o=function(e,t,n,r){const i=e[Bi].data,o=i[t];if("string"==typeof o)return o.indexOf(vf)>-1?Sf(e,t,t,o,r):{propName:o,oldValue:n,newValue:r};if(null===o){let n=t-1;for(;"string"!=typeof i[n]&&null===i[n+1];)n--;const o=i[n];if("string"==typeof o){const i=o.match(new RegExp(vf,"g"));if(i&&i.length-1>t-n)return Sf(e,n,t,o,r)}}return{propName:void 0,oldValue:n,newValue:r}}(e,t,i,n);!function(e,t,n,r,i){const o=uf(i),s=o?.type?.name;let a=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${r?` for '${r}'`:""}: '${Cf(t)}'. Current value: '${Cf(n)}'.${s?` Expression location: ${s} component`:""}`;throw e&&(a+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook?"),new kt(-100,a)}(r===Uf,o.oldValue,o.newValue,o.propName,e)}return!1}return e[t]=n,!0}function v_(e,t,n,r){const i=m_(e,t,n);return m_(e,t+1,r)||i}function y_(e,t,n,r,i){const o=v_(e,t,n,r);return m_(e,t+2,i)||o}function E_(e,t,n,r,i,o){const s=v_(e,t,n,r);return v_(e,t+2,i,o)||s}function __(e){return!(32&~e.flags)}function b_(e,t,n,r,i,o,s,a,c,u){const l=n+ho,d=t.firstCreatePass?function(e,t,n,r,i,o,s,a,c){ngDevMode&&Lo(t),ngDevMode&&ngDevMode.firstCreatePass++;const u=t.consts,l=Ym(t,e,4,s||null,a||null);hg(t,n,l,ds(u,c)),Ca(t,l);const d=l.tView=sg(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}(l,t,e,r,i,o,s,a,c):t.data[l];Us(d,!1);const p=S_(t,e,d,n);_a()&&Xg(t,e,p,d),Bu(p,e);const h=Dg(p,e,p,d);return e[l]=h,wg(e,h),Ty(h,d,e),So(d)&&rg(t,e,d),null!=c&&ig(e,d,u),d}function C_(e,t,n,r,i,o,s,a){const c=Ms(),u=Ps();return b_(c,u,e,t,n,r,i,ds(u.consts,o),s,a),C_}let S_=I_;function I_(e,t,n,r){return ba(!0),t[Ji].createComment(ngDevMode?"container":"")}function D_(e,t,n,r){const i=t[Wi],o=!i||Os()||__(n)||Ap(i,r);if(ba(o),o)return I_(0,t);const s=i.data[Ml]?.[r]??null;null!==s&&null!==n.tView&&(null===n.tView.ssrId?n.tView.ssrId=s:ngDevMode&&dn(n.tView.ssrId,s,"Unexpected value of the `ssrId` for this TView"));const a=Ev(i,e,t,n);ngDevMode&&Fm(a,t,n),bp(i,r,a);const c=_v(Tp(i,r),a);return ngDevMode&&(km(c,Node.COMMENT_NODE,null,t,n),Ep(c)),c}function w_(e,t){const n=t.get(T_);return n.add(e),()=>n.remove(e)}class T_{executingCallbacks=!1;idleId=null;current=new Set;deferred=new Set;ngZone=Cr(Zc);requestIdleCallbackFn=(()=>"undefined"!=typeof requestIdleCallback?requestIdleCallback:setTimeout)().bind(globalThis);cancelIdleCallbackFn=(()=>"undefined"!=typeof requestIdleCallback?cancelIdleCallback:clearTimeout)().bind(globalThis);add(e){(this.executingCallbacks?this.deferred:this.current).add(e),null===this.idleId&&this.scheduleIdleCallback()}remove(e){const{current:t,deferred:n}=this;t.delete(e),n.delete(e),0===t.size&&0===n.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const e=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const e of this.current)e();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const e of this.deferred)this.current.add(e);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn((()=>this.ngZone.run(e)))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static ɵprov=Dn({token:T_,providedIn:"root",factory:()=>new T_})}function O_(e){return(t,n)=>A_(e,t,n)}function A_(e,t,n){const r=n.get(N_);return r.add(e,t),()=>r.remove(t)}class N_{executingCallbacks=!1;timeoutId=null;invokeTimerAt=null;current=[];deferred=[];add(e,t){const n=this.executingCallbacks?this.deferred:this.current;this.addToQueue(n,Date.now()+e,t),this.scheduleTimer()}remove(e){const{current:t,deferred:n}=this;-1===this.removeFromQueue(t,e)&&this.removeFromQueue(n,e),0===t.length&&0===n.length&&this.clearTimeout()}addToQueue(e,t,n){let r=e.length;for(let n=0;n<e.length;n+=2)if(e[n]>t){r=n;break}Ur(e,r,t,n)}removeFromQueue(e,t){let n=-1;for(let r=0;r<e.length;r+=2)if(e[r+1]===t){n=r;break}return n>-1&&Fr(e,n,2),n}scheduleTimer(){const e=()=>{this.clearTimeout(),this.executingCallbacks=!0;const e=[...this.current],t=Date.now();for(let n=0;n<e.length;n+=2){const r=e[n+1];if(!(e[n]<=t))break;r()}let n=-1;for(let e=0;e<this.current.length&&this.current[e]<=t;e+=2)n=e+1;if(n>=0&&Fr(this.current,0,n+1),this.executingCallbacks=!1,this.deferred.length>0){for(let e=0;e<this.deferred.length;e+=2){const t=this.deferred[e],n=this.deferred[e+1];this.addToQueue(this.current,t,n)}this.deferred.length=0}this.scheduleTimer()};if(this.current.length>0){const t=Date.now(),n=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-n>16){this.clearTimeout();const r=Math.max(n-t,16);this.invokeTimerAt=n,this.timeoutId=setTimeout(e,r)}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static ɵprov=Dn({token:N_,providedIn:"root",factory:()=>new N_})}class M_{cachedInjectors=new Map;getOrCreateInjector(e,t,n,r){if(!this.cachedInjectors.has(e)){const i=n.length>0?kE(n,t,r):null;this.cachedInjectors.set(e,i)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=Dn({token:M_,providedIn:"environment",factory:()=>new M_})}const P_=new Ln("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR"),R_=new Ln(ngDevMode?"DEFER_BLOCK_CONFIG":"");function x_(e,t,n){return e.get(M_).getOrCreateInjector(t,e,n,ngDevMode?"DeferBlock Injector":"")}function k_(e,t,n,r=!1){const i=n[Gi],o=i[Bi];if(To(i))return;ngDevMode&&Oo(t,i);const s=Nd(i,t);ngDevMode&&En(s,"Expected a defer block state defined");const a=s[gd],c=s[bd];if(!(null!==c&&e<c)&&j_(a,e)&&j_(s[fd]??-1,e)){const a=Md(o,t),c=!r&&("undefined"==typeof ngServerMode||!ngServerMode)&&(null!==Rd(a)||null!==Pd(a,pd.Loading)||Pd(a,pd.Placeholder));ngDevMode&&c&&En(B_,"Expected scheduling function to be defined");const u=c?B_:L_;try{u(e,s,n,t,i)}catch(e){Ag(i,e)}}}function L_(e,t,n,r,i){const o=function(e,t,n){const r=Md(t[Bi],n);switch(e){case pd.Complete:return r.primaryTmplIndex;case pd.Loading:return r.loadingTmplIndex;case pd.Error:return r.errorTmplIndex;case pd.Placeholder:return r.placeholderTmplIndex;default:return ngDevMode&&_n(`Unexpected defer block state: ${e}`),null}}(e,i,r);if(null!==o){t[gd]=e;const s=i[Bi],a=ss(s,o+ho),c=0;let u;if(lm(n,c),e===pd.Complete){const e=Md(s,r),t=e.providers;t&&t.length>0&&(u=function(e,t,n){if(e instanceof Va){const r=e.injector,i=x_(e.parentInjector,t,n);return new Va(r,i)}const r=e.get(vi);if(r!==e){const i=x_(r,t,n);return new Va(e,i)}return x_(e,t,n)}(i[Yi],e,t))}const l=function(e,t){return e[go]?.find((e=>e.data[Vl]===t[gd]))??null}(n,t);n[go]=null;const d=sm(i,a,null,{injector:u,dehydratedView:l});if(um(n,d,c,cm(a,l)),Tm(d,2),(e===pd.Complete||e===pd.Error)&&Array.isArray(t[Cd])){for(const e of t[Cd])e();t[Cd]=null}}}function F_(e,t,n,r,i){const o=Date.now(),s=Md(i[Bi],r);if(null===t[md]||t[md]<=o){t[md]=null;const a=Rd(s),c=null!==t[vd];if(e!==pd.Loading||null===a||c){e>pd.Loading&&c&&(t[vd](),t[vd]=null,t[fd]=null),L_(e,t,n,r,i);const a=Pd(s,e);null!==a&&(t[md]=o+a,U_(a,t,r,n,i))}else{t[fd]=e;const o=U_(a,t,r,n,i);t[vd]=o}}else t[fd]=e}function U_(e,t,n,r,i){return A_(e,(()=>{const e=t[fd];t[md]=null,t[fd]=null,null!==e&&k_(e,n,r)}),i[Yi])}function j_(e,t){return e<t}function V_(e,t){const n=e[t.index];ngDevMode&&Ro(n),k_(pd.Placeholder,t,n)}function $_(e,t,n){ngDevMode&&En(e.loadingPromise,"Expected loading Promise to exist on this defer block"),e.loadingPromise.then((()=>{e.loadingState===ud.COMPLETE?(ngDevMode&&kd(e),k_(pd.Complete,t,n)):e.loadingState===ud.FAILED&&k_(pd.Error,t,n)}))}let B_=null;function H_(e,t,n,r){const i=e.consts;null!=n&&(t.placeholderBlockConfig=ds(i,n)),null!=r&&(t.loadingBlockConfig=ds(i,r)),null===B_&&(B_=F_)}const G_="__ngAsyncComponentMetadataFn__";function q_(e){return e[G_]??null}function z_(e,t,n){const r=e;return r[G_]=()=>Promise.all(t()).then((e=>(n(...e),r[G_]=null,e))),r[G_]}function W_(e,t,n,r){return $t((()=>{const i=e;null!==t&&(i.hasOwnProperty("decorators")&&void 0!==i.decorators?i.decorators.push(...t):i.decorators=t),null!==n&&(i.ctorParameters=n),null!==r&&(i.hasOwnProperty("propDecorators")&&void 0!==i.propDecorators?i.propDecorators={...i.propDecorators,...r}:i.propDecorators=r)}))}class K_{log(e){console.log(e)}warn(e){console.warn(e)}static ɵfac=function(e){return new(e||K_)};static ɵprov=Dn({token:K_,factory:K_.ɵfac,providedIn:"platform"})}("undefined"==typeof ngDevMode||ngDevMode)&&W_(K_,[{type:wc,args:[{providedIn:"platform"}]}],null,null);let Q_=new class{resolverToTokenToDependencies=new WeakMap;resolverToProviders=new WeakMap;resolverToEffects=new WeakMap;standaloneInjectorToComponent=new WeakMap;reset(){this.resolverToTokenToDependencies=new WeakMap,this.resolverToProviders=new WeakMap,this.standaloneInjectorToComponent=new WeakMap}};function Y_(){return Q_}function Z_(e){e instanceof pc||_n("getNodeInjectorContext must be called with a NodeInjector");const t=lc(e),n=dc(e);if(null!==n)return Oo(n,t),{lView:t,tNode:n}}function J_(e){let t=null;return void 0===e||(t=e instanceof pc?lc(e):e),t}function X_(e,t){const n=e[Bi];for(let r=ho;r<n.bindingStartIndex;r++)if(_o(e[r])){const i=e[r];if(r!==n.bindingStartIndex-1){const o=n.data[r],s=Md(n,o);if(Ld(s)){t.push({lContainer:i,lView:e,tNode:o,tDetails:s});continue}}for(let e=yo;e<i.length;e++)X_(i[e],t)}else Eo(e[r])&&X_(e[r],t)}function eb(e,t,n){const r=t[Yi].get(op,null,{optional:!0}),i=[];X_(t,i);for(const t of i){const i=os(t.tNode,t.lView),o=Nd(t.lView,t.tNode);if(!e.contains(i))continue;const s=t.tDetails,a=rb(t),c=[];null!==a&&dm(a[Bi],a,a[Bi].firstChild,c);const u={state:tb(o[gd]),incrementalHydrationState:nb(s,o,r),hasErrorBlock:null!==s.errorTmplIndex,loadingBlock:{exists:null!==s.loadingTmplIndex,minimumTime:s.loadingBlockConfig?.[ld]??null,afterTime:s.loadingBlockConfig?.[dd]??null},placeholderBlock:{exists:null!==s.placeholderTmplIndex,minimumTime:s.placeholderBlockConfig?.[ld]??null},triggers:s.debug?.triggers?Array.from(s.debug.triggers).sort():[],rootNodes:c};n.push(u),null!==a&&eb(e,a,n)}}function tb(e){switch(e){case pd.Complete:return"complete";case pd.Loading:return"loading";case pd.Placeholder:return"placeholder";case pd.Error:return"error";case hd.Initial:return"initial";default:throw new Error(`Unrecognized state ${e}`)}}function nb(e,t,n){return null===n||null===t[_d]||null===e.hydrateTriggers||e.hydrateTriggers.has(7)?"not-configured":n.has(t[_d])?"dehydrated":"hydrated"}function rb(e){if(e.lContainer.length<=yo)return null;const t=e.lContainer[yo];return ngDevMode&&ko(t),t}function ib(e){const t=Y_().resolverToProviders.get(e)??[];if(function(e){return e instanceof yi&&e.scopes.has("platform")}(e))return t;const n=function(e){const{standaloneInjectorToComponent:t}=Y_();if(t.has(e))return t.get(e);const n=e.get(OE,null,{self:!0,optional:!0});return null===n||null===n.instance?null:n.instance.constructor}(e);if(null===n)return t;const r=function(e){const t=new Map,n=function(e,t){return(n,r)=>{if(e.has(n)||e.set(n,[r]),!t.has(r))for(const t of e.keys()){const n=e.get(t);let i=Mn(r);if(i||(i=Mn(r.ngModule)),!i)return;const o=n[0];let s=!1;Rr(i.imports,(n=>{s||(s=n.ngModule===o||n===o,s&&e.get(t)?.unshift(r))}))}t.add(r)}}(t,new Set);return ii(e,n,[],new Set),t}(n),i=[];for(const e of t){const t=e.provider,o=t.provide;if(o===Gr||o===zr)continue;let s=r.get(t)??[];const a=Qr(n);!!a?.standalone&&(s=[n,...s]),i.push({...e,importPath:s})}return i}function ob(e){const t=[e];return sb(e,t),t}function sb(e,t){const n=function(e){if(e instanceof yi){const n=e.parent;return(t=n)instanceof Va&&"function"==typeof t.injector.__ngOutletInjector?n.parentInjector:n}var t;let n,r;if(e instanceof pc)n=dc(e),r=lc(e);else{if(e instanceof Wr)return null;if(e instanceof Va)return e.parentInjector;_n("getInjectorParent only support injectors of type R3Injector, NodeInjector, NullInjector")}const i=Xa(n,r);if($a(i)){const e=Ba(i),t=Ha(i,r),n=t[Bi].data[e+8];return new pc(n,t)}{const e=r[Yi],t=e.injector?.parent;if(t instanceof pc)return t}return null}(e);if(null===n){if(e instanceof pc){const e=t[0];if(e instanceof pc){const n=function(e){let t;e instanceof pc?t=lc(e):_n("getModuleInjectorOfNodeInjector must be called with a NodeInjector");const n=t[Yi],r=n instanceof Va?n.parentInjector:n.parent;return r||_n("NodeInjector must have some connection to the module injector tree"),r}(e);null===n&&_n("NodeInjector must have some connection to the module injector tree"),t.push(n),sb(n,t)}return t}}else t.push(n),sb(n,t);return t}function ab(e){return"template"===e.kind}function cb(e){return"effect"===e.kind}function ub(e,t=new Map){for(const n of e){if(t.has(n))continue;const e=n.producerNode??[];t.set(n,e),ub(e,t)}return t}const lb="ng",db={ɵgetDependenciesFromInjectable:function(e,t){const n=e.get(t,null,{self:!0,optional:!0});if(null===n)throw new Error(`Unable to determine instance of ${t} in given injector`);const r=function(e,t){const{resolverToTokenToDependencies:n}=Y_();if(!(t instanceof pc))return n.get(t)?.get?.(e)??[];const r=lc(t),i=n.get(r);return(i?.get(e)??[]).filter((e=>{const n=e.injectedIn?.tNode;if(void 0===n)return!1;const r=dc(t);return No(n),No(r),n===r}))}(t,e),i=ob(e),o=r.map((e=>{const t={value:e.value},n=e.flags;t.flags={optional:!(8&~n),host:!(1&~n),self:!(2&~n),skipSelf:!(4&~n)};for(let n=0;n<i.length;n++){const r=i[n];if(0!==n||!t.flags.skipSelf){if(t.flags.host&&r instanceof vi)break;if(null!==r.get(e.token,null,{self:!0,optional:!0})){if(t.flags.host){null!==i[0].get(e.token,null,{...t.flags,optional:!0})&&(t.providedIn=r);break}t.providedIn=r;break}if(0===n&&t.flags.self)break}}return e.token&&(t.token=e.token),t}));return{instance:n,dependencies:o}},ɵgetInjectorProviders:function(e){return e instanceof pc?function(e){const t=dc(e),{resolverToProviders:n}=Y_();return n.get(t)??[]}(e):e instanceof vi?ib(e):void _n("getInjectorProviders only supports NodeInjector and EnvironmentInjector")},ɵgetInjectorResolutionPath:ob,ɵgetInjectorMetadata:function(e){if(e instanceof pc){const t=lc(e),n=dc(e);return Oo(n,t),{type:"element",source:os(n,t)}}return e instanceof yi?{type:"environment",source:e.source??null}:e instanceof Wr?{type:"null",source:null}:null},ɵsetProfiler:e=>{Jo=e},ɵgetSignalGraph:function(e){let t=null;if(!(e instanceof pc||e instanceof yi))return _n("getSignalGraph must be called with a NodeInjector or R3Injector");e instanceof pc&&(t=function(e){const t=dc(e);No(t);const n=lc(e);ko(n);const r=n[t.index];return ko(r),r[po]}(e));const n=function(e){let t=e;return e instanceof pc&&(t=lc(e)),(Y_().resolverToEffects.get(t)??[]).map((e=>e[c]))}(e);return function(e){const t=Array.from(e.keys()),n=[],r=[];for(const[i,o]of e.entries()){const e=t.indexOf(i);"computed"===i.kind||"signal"===i.kind?n.push({label:i.debugName,value:i.value,kind:i.kind}):ab(i)?n.push({label:i.debugName??i.lView?.[$i]?.tagName?.toLowerCase?.(),kind:i.kind}):(cb(i),n.push({label:i.debugName,kind:i.kind}));for(const n of o)r.push({consumer:e,producer:t.indexOf(n)})}return{nodes:n,edges:r}}(ub(t?[t,...n]:n))},ɵgetDeferBlocks:function(e){const t=[],n=Uu(e)?.lView;return n&&eb(e,n,t),t},getDirectiveMetadata:function(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=Qr(t);if(n)return{inputs:ll(n.inputs),outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?Pu.OnPush:Pu.Default};const r=Yr(t);return r?{inputs:ll(r.inputs),outputs:r.outputs}:null},getComponent:el,getContext:tl,getListeners:al,getOwningComponent:nl,getHostElement:sl,getInjector:il,getRootComponents:rl,getDirectives:ol,applyChanges:function(e){ngDevMode&&En(e,"component"),Tm(Vu(e),3),rl(e).forEach((e=>function(e){const t=Vu(e);t[Hi]|=1024,Em(t)}(e)))},isSignal:yu};let pb=!1;function hb(e,t){gb(e,t)}function fb(e,t){gb(e,t)}function gb(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Qt;ngDevMode&&En(t,"function not defined"),n[lb]??={},n[lb][e]=t}}const mb=new Ln(""),vb=new Ln("");class yb{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(e,t,n){this._ngZone=e,this.registry=t,bb||(_b(n),n.addToWindow(t)),this._watchAngularEvents(),e.run((()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular((()=>{this._ngZone.onStable.subscribe({next:()=>{Zc.assertNotInAngularZone(),queueMicrotask((()=>{this._isZoneStable=!0,this._runCallbacksIfReady()}))}})}))}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask((()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}}));else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter((t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((e=>({source:e.source,creationLocation:e.creationLocation,data:e.data}))):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout((()=>{this._callbacks=this._callbacks.filter((e=>e.timeoutId!==r)),e()}),t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!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(e,t,n),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,t,n){return[]}static ɵfac=function(e){return new(e||yb)(_r(Zc),_r(Eb),_r(vb))};static ɵprov=Dn({token:yb,factory:yb.ɵfac})}("undefined"==typeof ngDevMode||ngDevMode)&&W_(yb,[{type:wc}],(()=>[{type:Zc},{type:Eb},{type:void 0,decorators:[{type:wr,args:[vb]}]}]),null);class Eb{_applications=new Map;registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return bb?.findTestabilityInTree(this,e,t)??null}static ɵfac=function(e){return new(e||Eb)};static ɵprov=Dn({token:Eb,factory:Eb.ɵfac,providedIn:"platform"})}function _b(e){bb=e}let bb;function Cb(e){return!!e&&"function"==typeof e.then}function Sb(e){return!!e&&"function"==typeof e.subscribe}("undefined"==typeof ngDevMode||ngDevMode)&&W_(Eb,[{type:wc,args:[{providedIn:"platform"}]}],null,null);const Ib=new Ln(ngDevMode?"Application Initializer":"");function Db(e){return Xr([{provide:Ib,multi:!0,useValue:e}])}class wb{resolve;reject;initialized=!1;done=!1;donePromise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}));appInits=Cr(Ib,{optional:!0})??[];injector=Cr(Ac);constructor(){if(("undefined"==typeof ngDevMode||ngDevMode)&&!Array.isArray(this.appInits))throw new kt(-209,`Unexpected type of the \`APP_INITIALIZER\` token value (expected an array, but got ${typeof this.appInits}). Please check that the \`APP_INITIALIZER\` token is configured as a \`multi: true\` provider.`)}runInitializers(){if(this.initialized)return;const e=[];for(const t of this.appInits){const n=Ii(this.injector,t);if(Cb(n))e.push(n);else if(Sb(n)){const t=new Promise(((e,t)=>{n.subscribe({complete:e,error:t})}));e.push(t)}}const t=()=>{this.done=!0,this.resolve()};Promise.all(e).then((()=>{t()})).catch((e=>{this.reject(e)})),0===e.length&&t(),this.initialized=!0}static ɵfac=function(e){return new(e||wb)};static ɵprov=Dn({token:wb,factory:wb.ɵfac,providedIn:"root"})}("undefined"==typeof ngDevMode||ngDevMode)&&W_(wb,[{type:wc,args:[{providedIn:"root"}]}],(()=>[]),null);class Tb{static ɵprov=Dn({token:Tb,providedIn:"root",factory:()=>new Ob})}class Ob{queuedEffectCount=0;queues=new Map;schedule(e){this.enqueue(e)}remove(e){const t=e.zone,n=this.queues.get(t);n.has(e)&&(n.delete(e),this.queuedEffectCount--)}enqueue(e){const t=e.zone;this.queues.has(t)||this.queues.set(t,new Set);const n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(const[e,t]of this.queues)null===e?this.flushQueue(t):e.run((()=>this.flushQueue(t)))}flushQueue(e){for(const t of e)e.delete(t),this.queuedEffectCount--,t.run()}}const Ab=new Ln(ngDevMode?"appBootstrapListener":"");function Nb(){ngDevMode&&function(){if(!pb){pb=!0,"undefined"!=typeof window&&(Q_.reset(),$n((e=>function(e){const{context:t,type:n}=e;0===n?function(e,t){const n=J_(e.injector);null===n&&_n("An Inject event must be run within an injection context.");const r=Q_.resolverToTokenToDependencies;if(r.has(n)||r.set(n,new WeakMap),!function(e){return null!==e&&("object"==typeof e||"function"==typeof e||"symbol"==typeof e)}(e.token))return;const i=r.get(n);i.has(e.token)||i.set(e.token,[]);const{token:o,value:s,flags:a}=t;En(e.token,"Injector profiler context token is undefined.");const c=i.get(e.token);En(c,"Could not resolve dependencies for token."),e.injector instanceof pc?c.push({token:o,value:s,flags:a,injectedIn:Z_(e.injector)}):c.push({token:o,value:s,flags:a})}(t,e.service):1===n?function(e,t){const{value:n}=t;let r;if(null===J_(e.injector)&&_n("An InjectorCreatedInstance event must be run within an injection context."),"object"==typeof n&&(r=n?.constructor),null==r||!function(e){const t=Qr(e);return!!t?.standalone}(r))return;const i=e.injector.get(vi,null,{optional:!0});if(null===i)return;const{standaloneInjectorToComponent:o}=Q_;o.has(i)||o.set(i,r)}(t,e.instance):2===n?function(e,t){const{resolverToProviders:n}=Q_;let r;r=e?.injector instanceof pc?dc(e.injector):e.injector,null===r&&_n("A ProviderConfigured event must be run within an injection context."),n.has(r)||n.set(r,[]),n.get(r).push(t)}(t,e.providerRecord):3===n&&function(e,t){const n=J_(e.injector);null===n&&_n("An EffectCreated event must be run within an injection context.");const{resolverToEffects:r}=Q_;r.has(n)||r.set(n,[]),r.get(n).push(t)}(t,e.effect)}(e))));for(const[e,t]of Object.entries(db))hb(e,t)}}()}function Mb(){x=()=>{throw new kt(600,ngDevMode&&"Writing to signals is not allowed in a `computed`.")}}function Pb(e){return e.isBoundToModule}class Rb{name;token;constructor(e,t){this.name=e,this.token=t}}function xb(e,t){return Array.isArray(t)?t.reduce(xb,e):{...e,...t}}class kb{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=Cr(su);afterRenderManager=Cr(td);zonelessEnabled=Cr(Fc);rootEffectScheduler=Cr(Tb);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new De;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=Cr($c).hasPendingTasks.pipe(Pt((e=>!e)));constructor(){Cr(Jl,{optional:!0})}whenStable(){let e;return new Promise((t=>{e=this.isStable.subscribe({next:e=>{e&&t()}})})).finally((()=>{e.unsubscribe()}))}_injector=Cr(vi);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,t){("undefined"==typeof ngDevMode||ngDevMode)&&Lb(this._destroyed);const n=e instanceof Zv;if(!this._injector.get(wb).done){const t=!n&&Jr(e),r=("undefined"==typeof ngDevMode||ngDevMode)&&"Cannot bootstrap as there are still asynchronous initializers running."+(t?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new kt(405,r)}let r;r=n?e:this._injector.get(Xv).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const i=Pb(r)?void 0:this._injector.get(OE),o=t||r.selector,s=r.create(Ac.NULL,[],o,i),a=s.location.nativeElement,c=s.injector.get(mb,null);return c?.registerApplication(a),s.onDestroy((()=>{this.detachView(s.hostView),Fb(this.components,s),c?.unregisterApplication(a)})),this._loadComponent(s),("undefined"==typeof ngDevMode||ngDevMode)&&this._injector.get(K_).log("Angular is running in development mode."),s}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(null!==this.tracingSnapshot){const e=this.tracingSnapshot;return this.tracingSnapshot=null,e.run(Zl.CHANGE_DETECTION,this._tick),void e.dispose()}if(("undefined"==typeof ngDevMode||ngDevMode)&&Lb(this._destroyed),this._runningTick)throw new kt(101,ngDevMode&&"ApplicationRef.tick is called recursively");const e=u(null);try{if(this._runningTick=!0,this.synchronize(),"undefined"==typeof ngDevMode||ngDevMode)for(let e of this.allViews)e.checkNoChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1,u(e),this.afterTick.next()}};synchronize(){null!==this._rendererFactory||this._injector.destroyed||(this._rendererFactory=this._injector.get(ey,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let e=0;for(;0!==this.dirtyFlags&&e++<10;)this.synchronizeOnce();if(("undefined"==typeof ngDevMode||ngDevMode)&&e>=10)throw new kt(103,ngDevMode&&"Infinite change detection while refreshing application views. Ensure views are not calling `markForCheck` on every template execution or that afterRender hooks always mark views for check.")}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const e=Boolean(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:t,notifyErrorHandler:n}of this.allViews)Ub(t,n,e,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some((({_lView:e})=>gs(e)))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(e){("undefined"==typeof ngDevMode||ngDevMode)&&Lb(this._destroyed);const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){("undefined"==typeof ngDevMode||ngDevMode)&&Lb(this._destroyed);const t=e;Fb(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const t=this._injector.get(Ab,[]);if(ngDevMode&&!Array.isArray(t))throw new kt(-209,`Unexpected type of the \`APP_BOOTSTRAP_LISTENER\` token value (expected an array, but got ${typeof t}). Please check that the \`APP_BOOTSTRAP_LISTENER\` token is configured as a \`multi: true\` provider.`);t.forEach((t=>t(e)))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach((e=>e())),this._views.slice().forEach((e=>e.destroy()))}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return("undefined"==typeof ngDevMode||ngDevMode)&&Lb(this._destroyed),this._destroyListeners.push(e),()=>Fb(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new kt(406,ngDevMode&&"This instance of the `ApplicationRef` has already been destroyed.");const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static ɵfac=function(e){return new(e||kb)};static ɵprov=Dn({token:kb,factory:kb.ɵfac,providedIn:"root"})}function Lb(e){e&&console.warn(Lt(406,"This instance of the `ApplicationRef` has already been destroyed."))}function Fb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Ub(e,t,n,r){(n||gs(e))&&Em(e,t,n&&!r?0:1)}function jb(e){const t=Ms(),n=ks();if(V_(t,n),!Gb(0,t))return;const r=t[Yi];Dd(0,Nd(t,n),e((()=>qb(0,t,n)),r))}function Vb(e,t){if("undefined"!=typeof ngServerMode&&ngServerMode)return;const n=Ms(),r=n[Yi],i=ks(),o=Md(n[Bi],i);o.loadingState===ud.NOT_STARTED&&Dd(1,Nd(n,i),e((()=>Bb(o,n,i)),r))}function $b(e,t,n){if("undefined"!=typeof ngServerMode&&ngServerMode)return;const r=t[Yi],i=Nd(t,n),o=i[_d];ngDevMode&&Ip(o),Dd(2,i,e((()=>zb(r,o)),r))}function Bb(e,t,n){Hb(e,t,n)}function Hb(e,t,n){const r=t[Yi],i=t[Bi];if(e.loadingState!==ud.NOT_STARTED)return e.loadingPromise??Promise.resolve();const o=Nd(t,n),s=function(e,t){return ss(e,t.primaryTmplIndex+ho)}(i,e);e.loadingState=ud.IN_PROGRESS,wd(1,o);let a=e.dependencyResolverFn;if(ngDevMode){const e=r.get(P_,null,{optional:!0});e&&(a=e.intercept(a))}const c=r.get($c),u=c.add();return a?(e.loadingPromise=Promise.allSettled(a()).then((n=>{let r=!1;const i=[],o=[];for(const e of n){if("fulfilled"!==e.status){r=!0;break}{const t=e.value,n=Qr(t)||Yr(t);if(n)i.push(n);else{const e=Zr(t);e&&o.push(e)}}}if(e.loadingPromise=null,c.remove(u),r){if(e.loadingState=ud.FAILED,null===e.errorTmplIndex){const e=ngDevMode?df(t):"",n=new kt(-750,ngDevMode&&`Loading dependencies for \`@defer\` block failed, but no \`@error\` block was configured${e}. Consider using the \`@error\` block to render an error state.`);Ag(t,n)}}else{e.loadingState=ud.COMPLETE;const t=s.tView;if(i.length>0){t.directiveRegistry=xd(t.directiveRegistry,i);const n=ni(!1,...i.map((e=>e.type)));e.providers=n}o.length>0&&(t.pipeRegistry=xd(t.pipeRegistry,o))}})),e.loadingPromise):(e.loadingPromise=Promise.resolve().then((()=>{e.loadingPromise=null,e.loadingState=ud.COMPLETE,c.remove(u)})),e.loadingPromise)}function Gb(e,t){if(0===e&&"undefined"!=typeof ngServerMode&&ngServerMode)return!1;const n=t[Yi].get(R_,null,{optional:!0});return n?.behavior!==Id.Manual}function qb(e,t,n){const r=t[Bi],i=t[n.index];if(ngDevMode&&Ro(i),!Gb(e,t))return;const o=Nd(t,n),s=Md(r,n);switch(Td(o),s.loadingState){case ud.NOT_STARTED:k_(pd.Loading,n,i),Hb(s,t,n),s.loadingState===ud.IN_PROGRESS&&$_(s,n,i);break;case ud.IN_PROGRESS:k_(pd.Loading,n,i),$_(s,n,i);break;case ud.COMPLETE:ngDevMode&&kd(s),k_(pd.Complete,n,i);break;case ud.FAILED:k_(pd.Error,n,i);break;default:ngDevMode&&_n("Unknown defer block state")}}async function zb(e,t,n){const r=e.get(op),i=r.hydrating;if(i.has(t))return;const{parentBlockPromise:o,hydrationQueue:s}=function(e,t){const n=t.get(op),r=t.get(Dl).get(cp,{});let i=!1,o=e,s=null;const a=[];for(;!i&&o;){ngDevMode&&dn(a.indexOf(o),-1,"Internal error: defer block hierarchy has a cycle."),i=n.has(o);const e=n.hydrating.get(o);if(null===s&&null!=e){s=e.promise;break}a.unshift(o),o=r[o][$l]}return{parentBlockPromise:s,hydrationQueue:a}}(t,e);!function(e,t){for(let n of t)e.hydrating.set(n,Promise.withResolvers())}(r,s);const a=e.get($c),c=a.add();null!==o&&await o;for(const t of s)await Kb(t,r),await Wb(e),i.get(t).resolve();var u,l,d,p;await(i.get(t)?.promise),a.remove(c),n&&n(s),u=r.get(t),l=s,d=r,p=e.get(kb),null!==u&&(d.cleanup(l),Gv(u.lContainer),zv(p))}function Wb(e){return new Promise((t=>sd(t,{injector:e})))}async function Kb(e,t){const n=t.get(e);if(null===n)return;const{tNode:r,lView:i}=n,o=Nd(i,r);return new Promise((e=>{!function(e,t){Array.isArray(e[Cd])||(e[Cd]=[]),e[Cd].push(t)}(o,e),qb(2,i,r)}))}function Qb(e,t,n){return 0===e?Yb(t,n):2===e?!Yb(t,n):!("undefined"!=typeof ngServerMode&&ngServerMode)}function Yb(e,t){const n=e[Yi],r=Md(e[Bi],t),i=Sp(n),o=null!==r.flags&&!(1&~r.flags);if("undefined"!=typeof ngServerMode&&ngServerMode)return!i||!o;const s=null!==Nd(e,t)[_d];return!(o&&s&&i)}function Zb(e,t){const n=Md(e,t);return n.hydrateTriggers??=new Map}function Jb(e,t,n,r,i,o,s,a,c,u){const l=Ms(),d=Ps(),p=e+ho,h=b_(l,d,e,null,0,0),f=l[Yi];if(d.firstCreatePass){vu("NgDefer");const e={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:i??null,errorTmplIndex:o??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:ud.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:u??0};c?.(d,e,a,s),function(e,t,n){const r=Ad(t);ngDevMode&&Uo(e,r),e.data[r]=n}(d,p,e)}const g=l[p];Ty(g,h,l);let m=null,v=null;if(g[go]?.length>0){const e=g[go][0].data;v=e[jl]??null,m=e[Vl]}const y=[null,hd.Initial,null,null,null,null,v,m,null,null];!function(e,t,n){const r=e[Bi],i=Ad(t);ngDevMode&&Uo(r,i),e[i]=n}(l,p,y);let E=null;null!==v&&(ngDevMode&&function(e){if(!Sp(e))throw new kt(508,"Angular has detected that some `@defer` blocks use `hydrate` triggers, but incremental hydration was not enabled. Please ensure that the `withIncrementalHydration()` call is added as an argument for the `provideClientHydration()` function call in your application config.")}(f),E=f.get(op),E.add(v,{lView:l,tNode:h,lContainer:g}));const _=()=>{Td(y),null!==v&&E?.cleanup([v])};Dd(0,y,(()=>Es(l,_))),ys(l,_)}function Xb(e){const t=Ms(),n=fa();if(ngDevMode&&Ud(t[Bi],n,"when <expression>"),Qb(0,t,n)&&m_(t,Ys(),e)){const r=u(null);try{const r=Boolean(e),i=Nd(t,n)[gd];!1===r&&i===hd.Initial?V_(t,n):!0!==r||i!==hd.Initial&&i!==pd.Placeholder||qb(0,t,n)}finally{u(r)}}}function eC(e){const t=Ms(),n=fa();if(ngDevMode&&Ud(t[Bi],n,"prefetch when <expression>"),Qb(1,t,n)&&m_(t,Ys(),e)){const n=u(null);try{const n=Boolean(e),r=t[Bi],i=fa(),o=Md(r,i);!0===n&&o.loadingState===ud.NOT_STARTED&&Bb(o,t,i)}finally{u(n)}}}function tC(e){const t=Ms(),n=fa();if(ngDevMode&&Ud(t[Bi],n,"hydrate when <expression>"),!Qb(2,t,n))return;const r=Ys();if(Zb(Ps(),n).set(6,null),m_(t,r,e))if("undefined"!=typeof ngServerMode&&ngServerMode)qb(2,t,n);else{const r=t[Yi],i=u(null);try{if(!0===Boolean(e)){const e=Nd(t,n)[_d];ngDevMode&&Ip(e),zb(r,e)}}finally{u(i)}}}function nC(){const e=Ms(),t=ks();ngDevMode&&Ud(e[Bi],t,"hydrate never"),Qb(2,e,t)&&(Zb(Ps(),t).set(7,null),"undefined"!=typeof ngServerMode&&ngServerMode&&qb(2,e,t))}function rC(){const e=Ms(),t=ks();ngDevMode&&Ud(e[Bi],t,"on idle"),Qb(0,e,t)&&jb(w_)}function iC(){const e=Ms(),t=ks();ngDevMode&&Ud(e[Bi],t,"prefetch on idle"),Qb(1,e,t)&&Vb(w_)}function oC(){const e=Ms(),t=ks();ngDevMode&&Ud(e[Bi],t,"hydrate on idle"),Qb(2,e,t)&&(Zb(Ps(),t).set(0,null),"undefined"!=typeof ngServerMode&&ngServerMode?qb(2,e,t):$b(w_,e,t))}function sC(){const e=Ms(),t=ks();ngDevMode&&Ud(e[Bi],t,"on immediate"),Qb(0,e,t)&&(null===Md(e[Bi],t).loadingTmplIndex&&V_(e,t),qb(0,e,t))}function aC(){const e=Ms(),t=ks();if(ngDevMode&&Ud(e[Bi],t,"prefetch on immediate"),!Qb(1,e,t))return;const n=Md(e[Bi],t);n.loadingState===ud.NOT_STARTED&&Hb(n,e,t)}function cC(){const e=Ms(),t=ks();if(ngDevMode&&Ud(e[Bi],t,"hydrate on immediate"),Qb(2,e,t))if(Zb(Ps(),t).set(1,null),"undefined"!=typeof ngServerMode&&ngServerMode)qb(2,e,t);else{const n=e[Yi],r=Nd(e,t)[_d];ngDevMode&&Ip(r),zb(n,r)}}function uC(e){const t=Ms(),n=ks();ngDevMode&&Ud(t[Bi],n,`on timer(${e}ms)`),Qb(0,t,n)&&jb(O_(e))}function lC(e){const t=Ms(),n=ks();ngDevMode&&Ud(t[Bi],n,`prefetch on timer(${e}ms)`),Qb(1,t,n)&&Vb(O_(e))}function dC(e){const t=Ms(),n=ks();ngDevMode&&Ud(t[Bi],n,`hydrate on timer(${e}ms)`),Qb(2,t,n)&&(Zb(Ps(),n).set(5,{delay:e}),"undefined"!=typeof ngServerMode&&ngServerMode?qb(2,t,n):$b(O_(e),t,n))}function pC(e,t){const n=Ms(),r=ks();ngDevMode&&Ud(n[Bi],r,"on hover"+(-1===t?"":"(<target>)")),Qb(0,n,r)&&(V_(n,r),"undefined"!=typeof ngServerMode&&ngServerMode||Zd(n,r,e,t,Qd,(()=>qb(0,n,r)),0))}function hC(e,t){const n=Ms(),r=ks();if(ngDevMode&&Ud(n[Bi],r,"prefetch on hover"+(-1===t?"":"(<target>)")),!Qb(1,n,r))return;const i=Md(n[Bi],r);i.loadingState===ud.NOT_STARTED&&Zd(n,r,e,t,Qd,(()=>Bb(i,n,r)),1)}function fC(){const e=Ms(),t=ks();ngDevMode&&Ud(e[Bi],t,"hydrate on hover"),Qb(2,e,t)&&(Zb(Ps(),t).set(4,null),"undefined"!=typeof ngServerMode&&ngServerMode&&qb(2,e,t))}function gC(e,t){const n=Ms(),r=ks();ngDevMode&&Ud(n[Bi],r,"on interaction"+(-1===t?"":"(<target>)")),Qb(0,n,r)&&(V_(n,r),"undefined"!=typeof ngServerMode&&ngServerMode||Zd(n,r,e,t,Kd,(()=>qb(0,n,r)),0))}function mC(e,t){const n=Ms(),r=ks();if(ngDevMode&&Ud(n[Bi],r,"prefetch on interaction"+(-1===t?"":"(<target>)")),!Qb(1,n,r))return;const i=Md(n[Bi],r);i.loadingState===ud.NOT_STARTED&&Zd(n,r,e,t,Kd,(()=>Bb(i,n,r)),1)}function vC(){const e=Ms(),t=ks();ngDevMode&&Ud(e[Bi],t,"hydrate on interaction"),Qb(2,e,t)&&(Zb(Ps(),t).set(3,null),"undefined"!=typeof ngServerMode&&ngServerMode&&qb(2,e,t))}function yC(e,t){const n=Ms(),r=ks();ngDevMode&&Ud(n[Bi],r,"on viewport"+(-1===t?"":"(<target>)")),Qb(0,n,r)&&(V_(n,r),"undefined"!=typeof ngServerMode&&ngServerMode||Zd(n,r,e,t,Yd,(()=>qb(0,n,r)),0))}function EC(e,t){const n=Ms(),r=ks();if(ngDevMode&&Ud(n[Bi],r,"prefetch on viewport"+(-1===t?"":"(<target>)")),!Qb(1,n,r))return;const i=Md(n[Bi],r);i.loadingState===ud.NOT_STARTED&&Zd(n,r,e,t,Yd,(()=>Bb(i,n,r)),1)}function _C(){const e=Ms(),t=ks();ngDevMode&&Ud(e[Bi],t,"hydrate on viewport"),Qb(2,e,t)&&(Zb(Ps(),t).set(2,null),"undefined"!=typeof ngServerMode&&ngServerMode&&qb(2,e,t))}function bC(e,t,n,r){const i=Ms(),o=Ys();if(m_(i,o,t)){const s=Ps(),a=fa();bg(a,i,e,t,n,r),ngDevMode&&Tg(s.data,a,"attr."+e,o)}return bC}function CC(e,t){ngDevMode&&gn(2,t.length,"should have at least 3 values"),ngDevMode&&dn(t.length%2,1,"should have an odd number of values");let n=!1,r=Ks();for(let i=1;i<t.length;i+=2)n=m_(e,r++,t[i])||n;if(Qs(r),!n)return Uf;let i=t[0];for(let e=1;e<t.length;e+=2)i+=tr(t[e])+t[e+1];return i}function SC(e,t,n,r){return m_(e,Ys(),n)?t+tr(n)+r:Uf}function IC(e,t,n,r,i,o){const s=v_(e,Ks(),n,i);return Zs(2),s?t+tr(n)+r+tr(i)+o:Uf}function DC(e,t,n,r,i,o,s,a){const c=y_(e,Ks(),n,i,s);return Zs(3),c?t+tr(n)+r+tr(i)+o+tr(s)+a:Uf}function wC(e,t,n,r,i,o,s,a,c,u){const l=E_(e,Ks(),n,i,s,c);return Zs(4),l?t+tr(n)+r+tr(i)+o+tr(s)+a+tr(c)+u:Uf}function TC(e,t,n,r,i,o,s,a,c,u,l,d){const p=Ks();let h=E_(e,p,n,i,s,c);return h=m_(e,p+4,l)||h,Zs(5),h?t+tr(n)+r+tr(i)+o+tr(s)+a+tr(c)+u+tr(l)+d:Uf}function OC(e,t,n,r,i,o,s,a,c,u,l,d,p,h){const f=Ks();let g=E_(e,f,n,i,s,c);return g=v_(e,f+4,l,p)||g,Zs(6),g?t+tr(n)+r+tr(i)+o+tr(s)+a+tr(c)+u+tr(l)+d+tr(p)+h:Uf}function AC(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g){const m=Ks();let v=E_(e,m,n,i,s,c);return v=y_(e,m+4,l,p,f)||v,Zs(7),v?t+tr(n)+r+tr(i)+o+tr(s)+a+tr(c)+u+tr(l)+d+tr(p)+h+tr(f)+g:Uf}function NC(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m,v){const y=Ks();let E=E_(e,y,n,i,s,c);return E=E_(e,y+4,l,p,f,m)||E,Zs(8),E?t+tr(n)+r+tr(i)+o+tr(s)+a+tr(c)+u+tr(l)+d+tr(p)+h+tr(f)+g+tr(m)+v:Uf}function MC(e,t,n,r,i,o){const s=Ms(),a=SC(s,t,n,r);if(a!==Uf){const n=fa();bg(n,s,e,a,i,o),ngDevMode&&Tg(Ps().data,n,"attr."+e,Ks()-1,t,r)}return MC}function PC(e,t,n,r,i,o,s,a){const c=Ms(),u=IC(c,t,n,r,i,o);if(u!==Uf){const n=fa();bg(n,c,e,u,s,a),ngDevMode&&Tg(Ps().data,n,"attr."+e,Ks()-2,t,r,o)}return PC}function RC(e,t,n,r,i,o,s,a,c,u){const l=Ms(),d=DC(l,t,n,r,i,o,s,a);if(d!==Uf){const n=fa();bg(n,l,e,d,c,u),ngDevMode&&Tg(Ps().data,n,"attr."+e,Ks()-3,t,r,o,a)}return RC}function xC(e,t,n,r,i,o,s,a,c,u,l,d){const p=Ms(),h=wC(p,t,n,r,i,o,s,a,c,u);if(h!==Uf){const n=fa();bg(n,p,e,h,l,d),ngDevMode&&Tg(Ps().data,n,"attr."+e,Ks()-4,t,r,o,a,u)}return xC}function kC(e,t,n,r,i,o,s,a,c,u,l,d,p,h){const f=Ms(),g=TC(f,t,n,r,i,o,s,a,c,u,l,d);if(g!==Uf){const n=fa();bg(n,f,e,g,p,h),ngDevMode&&Tg(Ps().data,n,"attr."+e,Ks()-5,t,r,o,a,u,d)}return kC}function LC(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g){const m=Ms(),v=OC(m,t,n,r,i,o,s,a,c,u,l,d,p,h);if(v!==Uf){const n=fa();bg(n,m,e,v,f,g),ngDevMode&&Tg(Ps().data,n,"attr."+e,Ks()-6,t,r,o,a,u,d,h)}return LC}function FC(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m,v){const y=Ms(),E=AC(y,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g);if(E!==Uf){const n=fa();bg(n,y,e,E,m,v),ngDevMode&&Tg(Ps().data,n,"attr."+e,Ks()-7,t,r,o,a,u,d,h,g)}return FC}function UC(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m,v,y,E){const _=Ms(),b=NC(_,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m,v);if(b!==Uf){const n=fa();bg(n,_,e,b,y,E),ngDevMode&&Tg(Ps().data,n,"attr."+e,Ks()-8,t,r,o,a,u,d,h,g,v)}return UC}function jC(e,t,n,r){const i=Ms(),o=CC(i,t);if(o!==Uf){const s=fa();if(bg(s,i,e,o,n,r),ngDevMode){const n=[t[0]];for(let e=2;e<t.length;e+=2)n.push(t[e]);Tg(Ps().data,s,"attr."+e,Ks()-n.length+1,...n)}}return jC}function VC(e,t){return ngDevMode&&cn(e,0,32767),ngDevMode&&cn(t,0,32767),e<<17|t<<2}function $C(e){return ngDevMode&&an(e,"expected number"),e>>17&32767}function BC(e){return ngDevMode&&an(e,"expected number"),2|e}function HC(e){return ngDevMode&&an(e,"expected number"),(131068&e)>>2}function GC(e,t){return ngDevMode&&an(e,"expected number"),ngDevMode&&cn(t,0,32767),-131069&e|t<<2}function qC(e){return ngDevMode&&an(e,"expected number"),1|e}function zC(e,t,n,r){const i=e[n+1],o=null===t;let s=r?$C(i):HC(i),a=!1;for(;0!==s&&(!1===a||o);){ngDevMode&&Cn(e,s);const n=e[s],i=e[s+1];WC(n,t)&&(a=!0,e[s+1]=r?qC(i):BC(i)),s=r?$C(i):HC(i)}a&&(e[n+1]=r?BC(i):qC(i))}function WC(e,t){return ngDevMode&&pn(Array.isArray(t),!0,"Expected that 'tStylingKey' has been unwrapped"),null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&$r(e,t)>=0}("undefined"==typeof ngDevMode||ngDevMode)&&W_(kb,[{type:wc,args:[{providedIn:"root"}]}],(()=>[]),null);const KC={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function QC(e){return e.substring(KC.key,KC.keyEnd)}function YC(e){return e.substring(KC.value,KC.valueEnd)}function ZC(e,t){const n=KC.textEnd;return n===t?-1:(t=KC.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,KC.key=t,n),eS(e,t,n))}function JC(e,t){const n=KC.textEnd;let r=KC.key=eS(e,t,n);return n===r?-1:(r=KC.keyEnd=function(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=tS(e,r,n,58),r=KC.value=eS(e,r,n),r=KC.valueEnd=function(e,t,n){let r=-1,i=-1,o=-1,s=t,a=s;for(;s<n;){const c=e.charCodeAt(s++);if(59===c)return a;34===c||39===c?a=s=nS(e,c,s,n):t===s-4&&85===o&&82===i&&76===r&&40===c?a=s=nS(e,41,s,n):c>32&&(a=s),o=i,i=r,r=-33&c}return a}(e,r,n),tS(e,r,n,59))}function XC(e){KC.key=0,KC.keyEnd=0,KC.value=0,KC.valueEnd=0,KC.textEnd=e.length}function eS(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function tS(e,t,n,r){return(t=eS(e,t,n))<n&&(ngDevMode&&e.charCodeAt(t)!==r&&rS(e,String.fromCharCode(r),t),t++),t}function nS(e,t,n,r){let i=-1,o=n;for(;o<r;){const n=e.charCodeAt(o++);if(n==t&&92!==i)return o;i=92==n&&92===i?0:n}throw ngDevMode?rS(e,String.fromCharCode(t),r):new Error}function rS(e,t,n){throw ngDevMode&&dn("string"==typeof e,!0,"String expected here"),_n(`Malformed style at location ${n} in string '`+e.substring(0,n)+"[>>"+e.substring(n,n+1)+"<<]"+e.slice(n+1)+`'. Expecting '${t}'.`)}function iS(e,t,n){const r=Ms(),i=Ys();if(m_(r,i,t)){const o=Ps(),s=fa();dg(o,s,r,e,t,r[Ji],n,!1),ngDevMode&&Tg(o.data,s,e,i)}return iS}function oS(e,t,n,r,i){const o=i?"class":"style";Ng(e,n,t.inputs[o],o,r)}function sS(e,t,n){return pS(e,t,n,!1),sS}function aS(e,t){return pS(e,t,null,!0),aS}function cS(e){hS(yS,uS,e,!1)}function uS(e,t){for(let n=function(e){return XC(e),JC(e,eS(e,0,KC.textEnd))}(t);n>=0;n=JC(t,n))yS(e,QC(t),YC(t))}function lS(e){hS(ES,dS,e,!0)}function dS(e,t){for(let n=function(e){return XC(e),ZC(e,eS(e,0,KC.textEnd))}(t);n>=0;n=ZC(t,n))jr(e,QC(t),!0)}function pS(e,t,n,r){const i=Ms(),o=Ps(),s=Zs(2);o.firstUpdatePass&&gS(o,e,s,r),t!==Uf&&m_(i,s,t)&&_S(o,o.data[pa()],i,i[Ji],e,i[s+1]=function(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Xt(Xp(e)))),e}(t,n),r,s)}function hS(e,t,n,r){const i=Ps(),o=Zs(2);i.firstUpdatePass&&gS(i,null,o,r);const s=Ms();if(n!==Uf&&m_(s,o,n)){const a=i.data[pa()];if(SS(a,r)&&!fS(i,o)){if(ngDevMode){const e=i.data[o];dn(Array.isArray(e)?e[1]:e,!1,"Styling linked list shadow input should be marked as 'false'")}let e=r?a.classesWithoutHost:a.stylesWithoutHost;ngDevMode&&!1===r&&null!==e&&dn(e.endsWith(";"),!0,"Expecting static portion to end with ';'"),null!==e&&(n=en(e,n||"")),oS(i,a,s,n,r)}else!function(e,t,n,r,i,o,s,a){i===Uf&&(i=Hr);let c=0,u=0,l=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==l||null!==d;){ngDevMode&&gn(c,999,"Are we stuck in infinite loop?"),ngDevMode&&gn(u,999,"Are we stuck in infinite loop?");const p=c<i.length?i[c+1]:void 0,h=u<o.length?o[u+1]:void 0;let f,g=null;l===d?(c+=2,u+=2,p!==h&&(g=d,f=h)):null===d||null!==l&&l<d?(c+=2,g=l):(ngDevMode&&En(d,"Expecting to have a valid key"),u+=2,g=d,f=h),null!==g&&_S(e,t,n,r,g,f,s,a),l=c<i.length?i[c]:null,d=u<o.length?o[u]:null}}(i,a,s,s[Ji],s[o+1],s[o+1]=function(e,t,n){if(null==n||""===n)return Hr;const r=[],i=Xp(n);if(Array.isArray(i))for(let t=0;t<i.length;t++)e(r,i[t],!0);else if("object"==typeof i)for(const t in i)i.hasOwnProperty(t)&&e(r,t,i[t]);else"string"==typeof i?t(r,i):ngDevMode&&_n("Unsupported styling type "+typeof i+": "+i);return r}(e,t,n),r,o)}}function fS(e,t){return t>=e.expandoStartIndex}function gS(e,t,n,r){ngDevMode&&Fo(e);const i=e.data;if(null===i[n+1]){const o=i[pa()];ngDevMode&&En(o,"TNode expected");const s=fS(e,n);SS(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=ta(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=vS(n=mS(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=mS(i,e,t,n,r),null===o){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==HC(r))return e[$C(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=mS(null,e,t,n[1],r),n=vS(n,t.attrs,r),function(e,t,n,r){const i=n?t.classBindings:t.styleBindings;ngDevMode&&pn(HC(i),0,"Expecting to have at least one template styling binding."),e[$C(i)]=r}(e,t,r,n))}else o=function(e,t,n){let r;const i=t.directiveEnd;ngDevMode&&pn(t.directiveStylingLast,-1,"By the time this function gets called at least one hostBindings-node styling instruction must have executed.");for(let o=1+t.directiveStylingLast;o<i;o++)r=vS(r,e[o].hostAttrs,n);return vS(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function(e,t,n,r,i,o){ngDevMode&&Fo(Ps());let s=o?t.classBindings:t.styleBindings,a=$C(s),c=HC(s);e[r]=n;let u,l=!1;if(Array.isArray(n)){const e=n;u=e[1],(null===u||$r(e,u)>0)&&(l=!0)}else u=n;if(i)if(0!==c){const t=$C(e[a+1]);e[r+1]=VC(t,a),0!==t&&(e[t+1]=GC(e[t+1],r)),e[a+1]=(d=e[a+1],p=r,ngDevMode&&an(d,"expected number"),ngDevMode&&cn(p,0,32767),131071&d|p<<17)}else e[r+1]=VC(a,0),0!==a&&(e[a+1]=GC(e[a+1],r)),a=r;else e[r+1]=VC(c,0),ngDevMode&&dn(0!==a&&0===c,!1,"Adding template bindings after hostBindings is not allowed."),0===a?a=r:e[c+1]=GC(e[c+1],r),c=r;var d,p;l&&(e[r+1]=BC(e[r+1])),zC(e,u,r,!0),zC(e,u,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&$r(o,t)>=0&&(n[r+1]=qC(n[r+1]))}(t,u,e,r,o),s=VC(a,c),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function mS(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=t[a],ngDevMode&&En(o,"expected to be defined"),r=vS(r,o.hostAttrs,i),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function vS(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?i=s:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),jr(e,s,!!n||t[++o]))}return void 0===e?null:e}function yS(e,t,n){jr(e,t,Xp(n))}function ES(e,t,n){const r=String(t);""===r||r.includes(" ")||jr(e,r,n)}function _S(e,t,n,r,i,o,s,a){if(!(3&t.type))return;const c=e.data,u=c[a+1];var l;CS((l=u,ngDevMode&&an(l,"expected number"),1&~l?void 0:bS(c,t,n,i,HC(u),s)))||(CS(o)||function(e){return ngDevMode&&an(e,"expected number"),!(2&~e)}(u)&&(o=bS(c,null,n,i,a,s)),function(e,t,n,r,i){if(t)i?(ngDevMode&&ngDevMode.rendererAddClass++,e.addClass(n,r)):(ngDevMode&&ngDevMode.rendererRemoveClass++,e.removeClass(n,r));else{let t=-1===r.indexOf("-")?void 0:Rg.DashCase;null==i?(ngDevMode&&ngDevMode.rendererRemoveStyle++,e.removeStyle(n,r,t)):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),t|=Rg.Important),ngDevMode&&ngDevMode.rendererSetStyle++,e.setStyle(n,r,i,t))}}(r,s,is(pa(),n),i,o))}function bS(e,t,n,r,i,o){const s=null===t;let a;for(;i>0;){const t=e[i],o=Array.isArray(t),c=o?t[1]:t,u=null===c;let l=n[i+1];l===Uf&&(l=u?Hr:void 0);let d=u?Vr(l,r):c===r?l:void 0;if(o&&!CS(d)&&(d=Vr(t,r)),CS(d)&&(a=d,s))return a;const p=e[i+1];i=s?$C(p):HC(p)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(a=Vr(e,r))}return a}function CS(e){return void 0!==e}function SS(e,t){return!!(e.flags&(t?8:16))}function IS(e,t,n){hS(jr,dS,SC(Ms(),e,t,n),!0)}function DS(e,t,n,r,i){hS(jr,dS,IC(Ms(),e,t,n,r,i),!0)}function wS(e,t,n,r,i,o,s){hS(jr,dS,DC(Ms(),e,t,n,r,i,o,s),!0)}function TS(e,t,n,r,i,o,s,a,c){hS(jr,dS,wC(Ms(),e,t,n,r,i,o,s,a,c),!0)}function OS(e,t,n,r,i,o,s,a,c,u,l){hS(jr,dS,TC(Ms(),e,t,n,r,i,o,s,a,c,u,l),!0)}function AS(e,t,n,r,i,o,s,a,c,u,l,d,p){hS(jr,dS,OC(Ms(),e,t,n,r,i,o,s,a,c,u,l,d,p),!0)}function NS(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f){hS(jr,dS,AC(Ms(),e,t,n,r,i,o,s,a,c,u,l,d,p,h,f),!0)}function MS(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m){hS(jr,dS,NC(Ms(),e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m),!0)}function PS(e){hS(jr,dS,CC(Ms(),e),!0)}function RS(){const e=Ms()[no][Qi];return ngDevMode&&En(e,"Expected component instance to be defined"),e}class xS{destroy(e){}updateValue(e,t){}swap(e,t){const n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){const e=this.detach(n);this.attach(n,i),this.attach(r,e)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}}function kS(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function LS(e,t,n){const r=e.get(t);void 0!==r?r.add(n):e.set(t,new Set([n]))}function FS(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function US(e,t,n,r,i){if(FS(e,t,r,n(r,i)))e.updateValue(r,i);else{const t=e.create(r,i);e.attach(r,t)}}function jS(e,t,n,r){const i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}class VS{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;const t=this.kvMap.get(e);return void 0!==this._vMap&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);if(ngDevMode&&n===t)throw new Error(`Detected a duplicated value ${t} for the key ${e}`);void 0===this._vMap&&(this._vMap=new Map);const r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),void 0!==this._vMap){const r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}}function $S(e,t){vu("NgControlFlow");const n=Ms(),r=Ys(),i=n[r]!==Uf?n[r]:-1,o=-1!==i?YS(n,ho+i):void 0;if(m_(n,r,e)){const r=u(null);try{if(void 0!==o&&lm(o,0),-1!==e){const r=ho+e,i=YS(n,r),o=JS(n[Bi],r),s=Qv(i,o.tView.ssrId);um(i,sm(n,o,t,{dehydratedView:s}),0,cm(o,s))}}finally{u(r)}}else if(void 0!==o){const e=am(o,0);void 0!==e&&(e[Qi]=t)}}class BS{lContainer;$implicit;$index;constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-yo}}function HS(e){return e}function GS(e,t){return t}class qS{hasEmptyBlock;trackByFn;liveCollection;constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}}function zS(e,t,n,r,i,o,s,a,c,u,l,d,p){vu("NgControlFlow"),ngDevMode&&ln(s,`A track expression must be a function, was ${typeof s} instead.`);const h=Ms(),f=Ps(),g=void 0!==c,m=Ms(),v=a?s.bind(m[no][Qi]):s,y=new qS(g,v);m[ho+e]=y,b_(h,f,e+1,t,n,r,i,ds(f.consts,o)),g&&(ngDevMode&&En(u,"Missing number of declarations for the empty repeater block."),ngDevMode&&En(l,"Missing number of bindings for the empty repeater block."),b_(h,f,e+2,c,u,l,d,ds(f.consts,p)))}class WS{created=0;destroyed=0;reset(){this.created=0,this.destroyed=0}recordCreate(){this.created++}recordDestroy(){this.destroyed++}wasReCreated(e){return e>0&&this.created===this.destroyed&&this.created===e}}class KS extends xS{lContainer;hostLView;templateTNode;operationsCounter=ngDevMode?new WS:void 0;needsIndexUpdate=!1;constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-yo}at(e){return this.getLView(e)[Qi].$implicit}attach(e,t){const n=t[Wi];this.needsIndexUpdate||=e!==this.length,um(this.lContainer,t,e,cm(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,function(e,t){const n=$g(e,t);return ngDevMode&&ko(n),n}(this.lContainer,e)}create(e,t){const n=Qv(this.lContainer,this.templateTNode.tView.ssrId),r=sm(this.hostLView,this.templateTNode,new BS(this.lContainer,t,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){Bg(e[Bi],e),this.operationsCounter?.recordDestroy()}updateValue(e,t){this.getLView(e)[Qi].$implicit=t}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Qi].$index=e}getLView(e){return ZS(this.lContainer,e)}}function QS(e){const t=u(null),n=pa();try{const t=Ms(),r=t[Bi],i=t[n],o=n+1,s=YS(t,o);if(void 0===i.liveCollection){const e=JS(r,o);i.liveCollection=new KS(s,t,e)}else i.liveCollection.reset();const a=i.liveCollection;if(function(e,t,n){let r,i,o=0,s=e.length-1;const a=ngDevMode?new Map:void 0;if(Array.isArray(t)){let c=t.length-1;for(;o<=s&&o<=c;){const u=e.at(o),l=t[o];ngDevMode&&LS(a,n(o,l),o);const d=kS(o,u,o,l,n);if(0!==d){d<0&&e.updateValue(o,l),o++;continue}const p=e.at(s),h=t[c];ngDevMode&&LS(a,n(c,h),c);const f=kS(s,p,c,h,n);if(0!==f){f<0&&e.updateValue(s,h),s--,c--;continue}const g=n(o,u),m=n(s,p),v=n(o,l);if(Object.is(v,m)){const t=n(c,h);Object.is(t,g)?(e.swap(o,s),e.updateValue(s,h),c--,s--):e.move(s,o),e.updateValue(o,l),o++}else if(r??=new VS,i??=jS(e,o,s,n),FS(e,r,o,v))e.updateValue(o,l),o++,s++;else if(i.has(v))r.set(g,e.detach(o)),s--;else{const n=e.create(o,t[o]);e.attach(o,n),o++,s++}}for(;o<=c;)US(e,r,n,o,t[o]),o++}else if(null!=t){const c=t[Symbol.iterator]();let u=c.next();for(;!u.done&&o<=s;){const t=e.at(o),l=u.value;ngDevMode&&LS(a,n(o,l),o);const d=kS(o,t,o,l,n);if(0!==d)d<0&&e.updateValue(o,l),o++,u=c.next();else{r??=new VS,i??=jS(e,o,s,n);const a=n(o,l);if(FS(e,r,o,a))e.updateValue(o,l),o++,s++,u=c.next();else if(i.has(a)){const i=n(o,t);r.set(i,e.detach(o)),s--}else e.attach(o,e.create(o,l)),o++,s++,u=c.next()}}for(;!u.done;)US(e,r,n,e.length,u.value),u=c.next()}for(;o<=s;)e.destroy(e.detach(s--));if(r?.forEach((t=>{e.destroy(t)})),ngDevMode){let e=[];for(const[t,n]of a)if(n.size>1){const r=[...n].sort(((e,t)=>e-t));for(let n=1;n<r.length;n++)e.push(`key "${nr(t)}" at index "${r[n-1]}" and "${r[n]}"`)}if(e.length>0){const t=Lt(-955,"The provided track expression resulted in duplicated keys for a given collection. Adjust the tracking expression such that it uniquely identifies all the items in the collection. Duplicated keys were: \n"+e.join(", \n")+".");console.warn(t)}}}(a,e,i.trackByFn),ngDevMode&&i.trackByFn===GS&&a.operationsCounter?.wasReCreated(a.length)&&ZS(s,0).length-ho>2){const e=Lt(-956,`The configured tracking expression (track by identity) caused re-creation of the entire collection of size ${a.length}. This is an expensive operation requiring destruction and subsequent creation of DOM nodes, directives, components etc. Please review the "track expression" and make sure that it uniquely identifies items in a collection.`);console.warn(e)}if(a.updateIndexes(),i.hasEmptyBlock){const e=Ys(),i=0===a.length;if(m_(t,e,i)){const e=n+2,o=YS(t,e);if(i){const n=JS(r,e),i=Qv(o,n.tView.ssrId);um(o,sm(t,n,void 0,{dehydratedView:i}),0,cm(n,i))}else lm(o,0)}}}finally{u(t)}}function YS(e,t){const n=e[t];return ngDevMode&&Ro(n),n}function ZS(e,t){const n=am(e,t);return ngDevMode&&ko(n),n}function JS(e,t){const n=ss(e,t);return ngDevMode&&No(n),n}function XS(e,t,n,r){const i=Ms(),o=Ps(),s=ho+e;ngDevMode&&dn(Ks(),o.bindingStartIndex,"elements should be created before any bindings"),ngDevMode&&Cn(i,s);const a=i[Ji],c=o.firstCreatePass?function(e,t,n,r,i,o){ngDevMode&&Lo(t),ngDevMode&&ngDevMode.firstCreatePass++;const s=t.consts,a=Ym(t,e,2,r,ds(s,i));return hg(t,n,a,ds(s,o)),null!==a.attrs&&py(a,a.attrs,!1),null!==a.mergedAttrs&&py(a,a.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,a),a}(s,o,i,t,n,r):o.data[s],u=nI(o,i,c,a,t,e);i[s]=u;const l=So(c);return ngDevMode&&o.firstCreatePass&&function(e,t,n,r,i){if(null!==r&&!i&&null!==n&&("undefined"!=typeof HTMLUnknownElement&&HTMLUnknownElement&&e instanceof HTMLUnknownElement||"undefined"!=typeof customElements&&n.indexOf("-")>-1&&!customElements.get(n))&&!hf(r,n)){const e=lf(t),r=`'${e?"@Component":"@NgModule"}.schemas'`;let i=`'${n}' is not a known element${df(t)}:\n`;if(i+=`1. If '${n}' is an Angular component, then verify that it is ${e?"included in the '@Component.imports' of this component":"a part of an @NgModule where this component is declared"}.\n`,n&&n.indexOf("-")>-1?i+=`2. If '${n}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${r} of this component to suppress this message.`:i+=`2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${r} of this component.`,ef)throw new kt(304,i);console.error(Lt(304,i))}}(u,i,c.value,o.schemas,l),Us(c,!0),Xf(a,u,c),!__(c)&&_a()&&Xg(o,i,u,c),0===Ss.lFrame.elementDepthCount&&Bu(u,i),Ss.lFrame.elementDepthCount++,l&&(rg(o,i,c),Fp(o,c,i)),null!==r&&ig(i,c),XS}function eI(){let e=ks();ngDevMode&&En(e,"No parent node to close."),js()?Vs():(ngDevMode&&Po(ks()),e=e.parent,Us(e,!1));const t=e;ngDevMode&&xa(t,3),function(e){return Ss.skipHydrationRootTNode===e}(t)&&(Ss.skipHydrationRootTNode=null),Ss.lFrame.elementDepthCount--;const n=Ps();return n.firstCreatePass&&(Ca(n,e),bo(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return!!(8&e.flags)}(t)&&oS(n,t,Ms(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return!!(16&e.flags)}(t)&&oS(n,t,Ms(),t.stylesWithoutHost,!1),eI}function tI(e,t,n,r){return XS(e,t,n,r),eI(),tI}let nI=(e,t,n,r,i,o)=>(ba(!0),Wf(r,i,ya()));function rI(e,t,n,r,i,o){const s=t[Wi],a=!s||Os()||__(n)||Ap(s,o);if(ba(a),a)return Wf(r,i,ya());const c=Ev(s,e,t,n);if(ngDevMode&&km(c,Node.ELEMENT_NODE,i,t,n),ngDevMode&&Ep(c),wp(s,o)&&(ngDevMode&&Fm(c.nextSibling,t,n),bp(s,o,c.nextSibling)),s&&(Tu(n)||Ou(c)))if(Co(n))!function(e){Ss.skipHydrationRootTNode=e}(n),Jf(c),ngDevMode&&function(e){if(!ngDevMode)throw new Error("Calling `markRNodeAsSkippedByHydration` in prod mode is not supported and likely a mistake.");vp(e,{status:gp.Skipped}),ngDevMode.componentsSkippedHydration++}(c);else if(ngDevMode)throw function(e){const t=`${Gm(e)}\n\n`;return new kt(-504,"The `ngSkipHydration` flag is applied on a node that doesn't act as a component host. Hydration can be skipped only on per-component basis.\n\n"+t+"Please move the `ngSkipHydration` attribute to the component host element.\n\n")}(c);return c}function iI(e,t,n){const r=Ms(),i=Ps(),o=e+ho;ngDevMode&&Cn(r,o),ngDevMode&&dn(Ks(),i.bindingStartIndex,"element containers should be created before any bindings");const s=i.firstCreatePass?function(e,t,n,r,i){ngDevMode&&ngDevMode.firstCreatePass++;const o=t.consts,s=ds(o,r),a=Ym(t,e,8,"ng-container",s);return null!==s&&py(a,s,!0),hg(t,n,a,ds(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,n):i.data[o];Us(s,!0);const a=aI(i,r,s,e);return r[o]=a,_a()&&Xg(i,r,a,s),Bu(a,r),So(s)&&(rg(i,r,s),Fp(i,s,r)),null!=n&&ig(r,s),iI}function oI(){let e=ks();const t=Ps();return js()?Vs():(ngDevMode&&Po(e),e=e.parent,Us(e,!1)),ngDevMode&&xa(e,8),t.firstCreatePass&&(Ca(t,e),bo(e)&&t.queries.elementEnd(e)),oI}function sI(e,t,n){return iI(e,t,n),oI(),sI}let aI=(e,t,n,r)=>(ba(!0),zf(t[Ji],ngDevMode?"ng-container":""));function cI(e,t,n,r){let i;const o=t[Wi],s=!o||Os()||Ap(o,r)||__(n);if(ba(s),s)return zf(t[Ji],ngDevMode?"ng-container":"");const a=Ev(o,e,t,n);ngDevMode&&Fm(a,t,n);const c=Dp(o,r);return ngDevMode&&an(c,"Unexpected state: hydrating an <ng-container>, but no hydration info is available."),bp(o,r,a),i=_v(c,a),ngDevMode&&(km(i,Node.COMMENT_NODE,null,t,n),Ep(i)),i}function uI(){return Ms()}function lI(e,t,n){const r=Ms(),i=Ys();if(m_(r,i,t)){const o=Ps(),s=fa();dg(o,s,r,e,t,r[Ji],n,!0),ngDevMode&&Tg(o.data,s,e,i)}return lI}function dI(e,t,n){const r=Ms(),i=Ys();if(m_(r,i,t)){const o=Ps(),s=fa();dg(o,s,r,e,t,Og(ta(o.data),s,r),n,!0),ngDevMode&&Tg(o.data,s,e,i)}return dI}"undefined"==typeof ngI18nClosureMode&&(Qt.ngI18nClosureMode="undefined"!=typeof goog&&"function"==typeof goog.getMsg);const pI=void 0;var hI=["en",[["a","p"],["AM","PM"],pI],[["AM","PM"],pI,pI],[["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"]],pI,[["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"]],pI,[["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}",pI,"{1} 'at' {0}",pI],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let fI={};function gI(e,t,n){"string"!=typeof t&&(n=t,t=e[bI.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),fI[t]=e,n&&(fI[t][bI.ExtraData]=n)}function mI(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=EI(t);if(n)return n;const r=t.split("-")[0];if(n=EI(r),n)return n;if("en"===r)return hI;throw new kt(701,ngDevMode&&`Missing locale data for the locale "${e}".`)}function vI(e){return mI(e)[bI.CurrencyCode]||null}function yI(e){return mI(e)[bI.PluralCase]}function EI(e){return e in fI||(fI[e]=Qt.ng&&Qt.ng.common&&Qt.ng.common.locales&&Qt.ng.common.locales[e]),fI[e]}function _I(){fI={}}var bI;!function(e){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"}(bI||(bI={}));const CI=["zero","one","two","few","many"],SI="en-US",II={marker:"element"},DI={marker:"ICU"};var wI;!function(e){e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT"}(wI||(wI={}));let TI=SI;function OI(e){ngDevMode&&En(e,"Expected localeId to be defined"),"string"==typeof e&&(TI=e.toLowerCase().replace(/_/g,"-"))}let AI=0,NI=0;function MI(e,t,n){const r=e[Ji];switch(n){case Node.COMMENT_NODE:return zf(r,t);case Node.TEXT_NODE:return Gf(r,t);case Node.ELEMENT_NODE:return Wf(r,t,null)}}let PI=(e,t,n,r)=>(ba(!0),MI(e,n,r));function RI(e,t,n,r){const i=e[Wi],o=t-ho,s=!Av()||!i||Os()||Ap(i,o);if(ba(s),s)return MI(e,n,r);const a=vv(i,o);return ngDevMode&&En(a,"expected native element"),ngDevMode&&dn(a.nodeType,r,"expected matching nodeType"),ngDevMode&&r===Node.ELEMENT_NODE&&dn(a.tagName.toLowerCase(),n.toLowerCase(),"expecting matching tagName"),ngDevMode&&Ep(a),a}function xI(e,t,n,r){ngDevMode&&bn(r);const i=n[Ji];let o,s=null;for(let a=0;a<t.length;a++){const c=t[a];if("string"==typeof c){const e=t[++a];null===n[e]&&(ngDevMode&&ngDevMode.rendererCreateTextNode++,ngDevMode&&Cn(n,e),n[e]=PI(n,e,c,Node.TEXT_NODE))}else if("number"==typeof c)switch(1&c){case 0:const u=sv(c);let l,d;if(null===s&&(s=u,o=i.parentNode(r)),u===s?(l=r,d=o):(l=null,d=ns(n[u])),null!==d){ngDevMode&&bn(d);const t=av(c);ngDevMode&&vn(t,ho,"Missing ref");const r=n[t];ngDevMode&&bn(r),Kf(i,d,r,l,!1);const o=rv(e,t);if(null!==o&&"object"==typeof o){ngDevMode&&Mo(o);const t=ov(o,n);null!==t&&xI(e,o.create[t],n,n[o.anchorIdx])}}break;case 1:const p=c>>>1,h=t[++a],f=t[++a];Cg(i,is(p,n),null,null,h,f,null);break;default:if(ngDevMode)throw new kt(700,`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case DI:const e=t[++a],r=t[++a];null===n[r]&&(ngDevMode&&dn(typeof e,"string",`Expected "${e}" to be a comment node value`),ngDevMode&&ngDevMode.rendererCreateComment++,ngDevMode&&jo(n,r),Bu(n[r]=PI(n,r,e,Node.COMMENT_NODE),n));break;case II:const i=t[++a],o=t[++a];null===n[o]&&(ngDevMode&&dn(typeof i,"string",`Expected "${i}" to be an element node tag name`),ngDevMode&&ngDevMode.rendererCreateElement++,ngDevMode&&jo(n,o),Bu(n[o]=PI(n,o,i,Node.ELEMENT_NODE),n));break;default:ngDevMode&&_n(`Unable to determine the type of mutate operation for "${c}"`)}}}function kI(e,t,n,r,i){for(let o=0;o<n.length;o++){const s=n[o],a=n[++o];if(s&i){let i="";for(let s=o+1;s<=o+a;s++){const o=n[s];if("string"==typeof o)i+=o;else if("number"==typeof o)if(o<0)i+=tr(t[r-o]);else{const a=o>>>2;switch(3&o){case 1:const o=n[++s],c=n[++s],u=e.data[a];ngDevMode&&En(u,"Experting TNode or string"),"string"==typeof u?Cg(t[Ji],t[a],null,u,o,i,c):dg(e,u,t,o,i,t[Ji],c,!1);break;case 0:const l=t[a];null!==l&&qf(t[Ji],l,i);break;case 2:FI(e,rv(e,a),t,i);break;case 3:LI(e,rv(e,a),r,t)}}}}else{const i=n[o+1];if(i>0&&!(3&~i)){const n=rv(e,i>>>2);t[n.currentCaseLViewIndex]<0&&LI(e,n,r,t)}}o+=a}}function LI(e,t,n,r){ngDevMode&&Cn(r,t.currentCaseLViewIndex);let i=r[t.currentCaseLViewIndex];if(null!==i){let o=AI;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),kI(e,r,t.update[i],n,o)}}function FI(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=yI(t)(parseInt(e,10)),r=CI[n];return void 0!==r?r:"other"}(t,TI);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(ov(t,n)!==i&&(UI(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const r=n[t.anchorIdx];r&&(ngDevMode&&bn(r),xI(e,t.create[i],n,r)),function(e,t,n){jv(e,t,n)}(n,t.anchorIdx,i)}}function UI(e,t,n){let r=ov(t,n);if(null!==r){const i=t.remove[r];for(let t=0;t<i.length;t++){const r=i[t];if(r>0){const e=is(r,n);null!==e&&Zf(n[Ji],e)}else UI(e,rv(e,~r),n)}}}function jI(e){const t=e||(Array.isArray(this)?this:[]);let n=[];for(let e=0;e<t.length;e++){const r=t[e++],i=t[e],o=(r&wI.COMMENT)===wI.COMMENT,s=(r&wI.APPEND_EAGERLY)===wI.APPEND_EAGERLY,a=r>>>wI.SHIFT;n.push(`lView[${a}] = document.${o?"createComment":"createText"}(${JSON.stringify(i)});`),s&&n.push(`parent.appendChild(lView[${a}]);`)}return n}function VI(e){const t=new HI(e||(Array.isArray(this)?this:[]));let n=[];function r(e){const n=e>>>2;switch(3&e){case 0:return`(lView[${n}] as Text).textContent = $$$`;case 1:const e=t.consumeString(),r=t.consumeFunction();return`(lView[${n}] as Element).setAttribute('${e}', ${r?`(${r})($$$)`:"$$$"})`;case 2:return`icuSwitchCase(${n}, $$$)`;case 3:return`icuUpdateCase(${n})`}throw new Error("unexpected OpCode")}for(;t.hasMore();){let e=t.consumeNumber(),i=t.consumeNumber();const o=t.i+i,s=[];let a="";for(;t.i<o;){let e=t.consumeNumberOrString();if("string"==typeof e)a+=e;else if(e<0)a+="${lView[i"+e+"]}";else{const t=r(e);s.push(t.replace("$$$","`"+a+"`")+";"),a=""}}n.push(`if (mask & 0b${e.toString(2)}) { ${s.join(" ")} }`)}return n}function $I(e){const t=new HI(e||(Array.isArray(this)?this:[]));let n=[];function r(e){const n=sv(e),r=av(e);switch(cv(e)){case 0:return`(lView[${n}] as Element).appendChild(lView[${i}])`;case 1:return`(lView[${r}] as Element).setAttribute("${t.consumeString()}", "${t.consumeString()}")`}throw new Error("Unexpected OpCode: "+cv(e))}let i=-1;for(;t.hasMore();){let e=t.consumeNumberStringOrMarker();if(e===DI){const e=t.consumeString();i=t.consumeNumber(),n.push(`lView[${i}] = document.createComment("${e}")`)}else if(e===II){const e=t.consumeString();i=t.consumeNumber(),n.push(`lView[${i}] = document.createElement("${e}")`)}else if("string"==typeof e)i=t.consumeNumber(),n.push(`lView[${i}] = document.createTextNode("${e}")`);else{if("number"!=typeof e)throw new Error("Unexpected value");{const t=r(e);t&&n.push(t)}}}return n}function BI(e){const t=e||(Array.isArray(this)?this:[]);let n=[];for(let e=0;e<t.length;e++){const r=t[e];r>0?n.push(`remove(lView[${r}])`):n.push(`removeNestedICU(${~r})`)}return n}class HI{i=0;codes;constructor(e){this.codes=e}hasMore(){return this.i<this.codes.length}consumeNumber(){let e=this.codes[this.i++];return an(e,"expecting number in OpCode"),e}consumeString(){let e=this.codes[this.i++];return un(e,"expecting string in OpCode"),e}consumeFunction(){let e=this.codes[this.i++];if(null===e||"function"==typeof e)return e;throw new Error("expecting function in OpCode")}consumeNumberOrString(){let e=this.codes[this.i++];return"string"==typeof e||an(e,"expecting number or string in OpCode"),e}consumeNumberStringOrMarker(){let e=this.codes[this.i++];return"string"==typeof e||"number"==typeof e||e==DI||e==II||an(e,"expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode"),e}}const GI=/�(\d+):?\d*�/gi,qI=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi,zI=/�(\d+)�/,WI=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,KI="�",QI=/�\/?\*(\d+:\d+)�/gi,YI=/�(\/?[#*]\d+):?\d*�/gi,ZI=/\uE500/g;function JI(e,t){if(!ngDevMode)throw new Error("This method should be guarded with `ngDevMode` so that it can be tree shaken in production!");Object.defineProperty(e,"debug",{get:t,enumerable:!1})}function XI(e,t,n,r,i,o,s){const a=tg(e,r,1,null);let c=a<<wI.SHIFT,u=Fs();t===u&&(u=null),null===u&&(c|=wI.APPEND_EAGERLY),s&&(c|=wI.COMMENT,void 0===xg&&(xg=pv())),i.push(c,null===o?"":o);const l=Zm(e,a,s?32:1,null===o?ngDevMode?"{{?}}":"":o,null);Jm(n,l);const d=l.index;return Us(l,!1),null!==u&&t!==u&&function(e,t){ngDevMode&&No(e);let n=e.insertBeforeIndex;null===n?(Jg(Km,Qm),n=e.insertBeforeIndex=[null,t]):(dn(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(u,d),l}function eD(e,t,n,r,i,o,s,a){const c=a.match(GI),u=XI(t,n,r,s,i,c?null:a,!1).index;c&&tD(o,a,u,null,0,null),e.push({kind:0,index:u})}function tD(e,t,n,r,i,o){ngDevMode&&yn(n,ho,"Index must be in absolute LView offset");const s=e.length,a=s+1;e.push(null,null);const c=s+2;ngDevMode&&JI(e,VI);const u=t.split(GI);let l=0;for(let t=0;t<u.length;t++){const n=u[t];if(1&t){const t=i+parseInt(n,10);e.push(-1-t),l|=rD(t)}else""!==n&&e.push(n)}return e.push(n<<2|(r?1:0)),r&&e.push(r,o),e[s]=l,e[a]=e.length-c,l}function nD(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r&&r<0&&t++}return t}function rD(e){return 1<<Math.min(e,31)}function iD(e){let t,n,r="",i=0,o=!1;for(;null!==(t=QI.exec(e));)o?t[0]===`${KI}/*${n}${KI}`&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return ngDevMode&&dn(o,!1,`Tag mismatch: unable to find the end of the sub-template in the translation "${e}"`),r+=e.slice(i),r}function oD(e,t,n,r,i,o,s){ngDevMode&&En(o,"ICU expression must be defined");let a=0;const c={type:o.type,currentCaseLViewIndex:tg(t,n,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(rD(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(r,o,s),function(e,t,n){const r=e.data[t];ngDevMode&&dn(null===r||r.hasOwnProperty("tView"),!0,"We expect to get 'null'|'TIcuContainer'"),null===r?e.data[t]=n:(ngDevMode&&xa(r,32),r.value=n)}(t,s,c);const u=o.values,l=[];for(let e=0;e<u.length;e++){const s=u[e],d=[];for(let e=0;e<s.length;e++){const t=s[e];if("string"!=typeof t){const n=d.push(t)-1;s[e]=`\x3c!--�${n}�--\x3e`}}const p=[];l.push(p),a=cD(p,t,c,n,r,i,o.cases[e],s.join(""),d)|a}a&&function(e,t,n){e.push(t,1,n<<2|3)}(r,a,s),e.push({kind:3,index:s,cases:l,currentCaseLViewIndex:c.currentCaseLViewIndex})}function sD(e){const t=[],n=[];let r=1,i=0;const o=aD(e=e.replace(WI,(function(e,t,n){return r="select"===n?0:1,i=parseInt(t.slice(1),10),""})));for(let e=0;e<o.length;){let i=o[e++].trim();1===r&&(i=i.replace(/\s*(?:=)?(\w+)\s*/,"$1")),i.length&&t.push(i);const s=aD(o[e++]);t.length>n.length&&n.push(s)}return{type:r,mainBinding:i,cases:t,values:n}}function aD(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const i=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);WI.test(n)?r.push(sD(n)):r.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);r.push(n),t=i+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function cD(e,t,n,r,i,o,s,a,c){const u=[],l=[],d=[];ngDevMode&&(JI(u,$I),JI(l,BI),JI(d,VI)),n.cases.push(s),n.create.push(u),n.remove.push(l),n.update.push(d);const p=ah(hl()).getInertBodyElement(a);ngDevMode&&En(p,"Unable to generate inert body element");const h=Lh(p)||p;return h?uD(e,t,n,r,i,u,l,d,h,o,c,0):0}function uD(e,t,n,r,i,o,s,a,c,u,l,d){let p=0,h=c.firstChild;for(;h;){const c=tg(t,r,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:const f=h,g=f.tagName.toLowerCase();if(_h.hasOwnProperty(g)){pD(o,II,g,u,c),t.data[c]=g;const m=f.attributes;for(let e=0;e<m.length;e++){const t=m.item(e),n=t.name.toLowerCase();t.value.match(GI)?Ih.hasOwnProperty(n)?bh[n]?tD(a,t.value,c,t.name,0,dh):tD(a,t.value,c,t.name,0,null):ngDevMode&&console.warn(`WARNING: ignoring unsafe attribute value ${n} on element ${g} (see ${xt})`):hD(o,c,t)}const v={kind:1,index:c,children:[]};e.push(v),p=uD(v.children,t,n,r,i,o,s,a,h,c,l,d+1)|p,lD(s,c,d)}break;case Node.TEXT_NODE:const m=h.textContent||"",v=m.match(GI);pD(o,null,v?"":m,u,c),lD(s,c,d),v&&(p=tD(a,m,c,null,0,null)|p),e.push({kind:0,index:c});break;case Node.COMMENT_NODE:const y=zI.exec(h.textContent||"");if(y){const n=parseInt(y[1],10),a=l[n];pD(o,DI,ngDevMode?`nested ICU ${n}`:"",u,c),oD(e,t,r,i,u,a,c),dD(s,c,d)}}h=h.nextSibling}return p}function lD(e,t,n){0===n&&e.push(t)}function dD(e,t,n){0===n&&(e.push(~t),e.push(t))}function pD(e,t,n,r,i){var o,s;null!==t&&e.push(t),e.push(n,i,(o=r,s=i,ngDevMode&&yn(o,0,"Missing parent index"),ngDevMode&&vn(s,0,"Missing ref index"),o<<17|s<<1))}function hD(e,t,n){e.push(t<<1|1,n.name,n.value)}const fD=0,gD=/\[(�.+?�?)\]/,mD=/\[(�.+?�?)\]|(�\/?\*\d+:\d+�)/g,vD=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,yD=/{([A-Z0-9_]+)}/g,ED=/�I18N_EXP_(ICU(_\d+)?)�/g,_D=/\/\*/,bD=/\d+\:(\d+)/;function CD(e,t,n=-1){const r=Ps(),i=Ms(),o=ho+e;ngDevMode&&En(r,"tView should be defined");const s=ds(r.consts,t),a=Fs();r.firstCreatePass&&function(e,t,n,r,i,o){const s=Fs(),a=[],c=[],u=[[]],l=[[]];ngDevMode&&(JI(a,jI),JI(c,VI)),i=function(e,t){if(uv(t))return iD(e);{const n=e.indexOf(`:${t}${KI}`)+2+t.toString().length,r=e.search(new RegExp(`${KI}\\/\\*\\d+:${t}${KI}`));return iD(e.substring(n,r))}}(i,o);const d=(p=i,p.replace(ZI," ")).split(YI);var p;for(let o=0;o<d.length;o++){let p=d[o];if(1&o){const t=47===p.charCodeAt(0),n=p.charCodeAt(t?1:0);ngDevMode&&Sn(n,42,35);const r=ho+Number.parseInt(p.substring(t?2:1));if(t)u.shift(),l.shift(),Us(Fs(),!1);else{const t=iv(e,u[0],r);u.unshift([]),Us(t,!0);const i={kind:2,index:r,children:[],type:35===n?0:1};l[0].push(i),l.unshift(i.children)}}else{const o=aD(p);for(let d=0;d<o.length;d++){let p=o[d];if(1&d){const o=p;if("object"!=typeof o)throw new Error(`Unable to parse ICU expression in "${i}" message.`);const d=XI(e,s,u[0],n,a,ngDevMode?`ICU ${r}:${o.mainBinding}`:"",!0).index;ngDevMode&&yn(d,ho,"Index must be in absolute LView offset"),oD(l[0],e,n,c,t,o,d)}else{const t=p;ngDevMode&&un(t,"Parsed ICU part should be string"),""!==t&&eD(l[0],e,s,u[0],a,c,n,t)}}}}e.data[r]={create:a,update:c,ast:l[0],parentTNodeIndex:t}}(r,null===a?0:a.index,i,o,s,n),2===r.type?i[no][Hi]|=32:i[Hi]|=32;const c=r.data[o],u=Wg(r,a===i[zi]?null:a,i),l=a&&8&a.type?i[a.index]:null;!function(e,t,n,r){Tv(e,t,n,r)}(i,o,a,n),function(e,t,n,r){const i=e[Ji];for(let o=0;o<t.length;o++){const s=t[o++],a=t[o],c=(s&wI.COMMENT)===wI.COMMENT,u=(s&wI.APPEND_EAGERLY)===wI.APPEND_EAGERLY,l=s>>>wI.SHIFT;let d=e[l],p=!1;null===d&&(d=e[l]=PI(e,l,a,c?Node.COMMENT_NODE:Node.TEXT_NODE),p=_a()),u&&null!==n&&p&&Kf(i,n,d,r,!1)}}(i,c.create,u,l),Js(!0)}function SD(){Js(!1)}function ID(e,t,n){CD(e,t,n),SD()}function DD(e,t){const n=Ps();ngDevMode&&En(n,"tView should be defined");const r=ds(n.consts,t);!function(e,t,n){const r=ks().index,i=[];if(ngDevMode&&JI(i,VI),e.firstCreatePass&&null===e.data[t]){for(let e=0;e<n.length;e+=2){const t=n[e],o=n[e+1];if(""!==o){if(qI.test(o))throw new Error(`ICU expressions are not supported in attributes. Message: "${o}".`);tD(i,o,r,t,nD(i),null)}}e.data[t]=i}}(n,e+ho,r)}function wD(e){return m_(Ms(),Ys(),e)&&(AI|=1<<Math.min(NI,31)),NI++,wD}function TD(e){!function(e,t,n){if(NI>0){ngDevMode&&En(e,"tView should be defined");const r=e.data[n];kI(e,t,Array.isArray(r)?r:r.update,Ks()-NI-1,AI)}AI=0,NI=0}(Ps(),Ms(),e+ho)}function OD(e,t={}){return function(e,t={}){let n=e;if(gD.test(e)){const e={},t=[fD];n=n.replace(mD,((n,r,i)=>{const o=r||i,s=e[o]||[];if(s.length||(o.split("|").forEach((e=>{const t=e.match(bD),n=t?parseInt(t[1],10):fD,r=_D.test(e);s.push([n,r,e])})),e[o]=s),!s.length)throw new Error(`i18n postprocess: unmatched placeholder - ${o}`);const a=t[t.length-1];let c=0;for(let e=0;e<s.length;e++)if(s[e][0]===a){c=e;break}const[u,l,d]=s[c];return l?t.pop():a!==u&&t.push(u),s.splice(c,1),d}))}return Object.keys(t).length?(n=n.replace(vD,((e,n,r,i,o,s)=>t.hasOwnProperty(r)?`${n}${t[r]}${s}`:e)),n=n.replace(yD,((e,n)=>t.hasOwnProperty(n)?t[n]:e)),n=n.replace(ED,((e,n)=>{if(t.hasOwnProperty(n)){const r=t[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return r.shift()}return e})),n):n}(e,t)}let AD=(e,t,n)=>{};function ND(e){AD=e}function MD(e,t,n,r){const i=Ms(),o=Ps(),s=ks();return RD(o,i,i[Ji],s,e,t,r),MD}function PD(e,t){const n=ks(),r=Ms(),i=Ps();return RD(i,r,Og(ta(i.data),n,r),n,e,t),PD}function RD(e,t,n,r,i,o,s){const a=So(r),c=e.firstCreatePass&&Cs(e),u=t[Qi],l=bs(t);ngDevMode&&xa(r,15);let d=!0;if(3&r.type||s){const p=os(r,t),h=s?s(p):p,f=l.length,g=s?e=>s(ns(e[r.index])):r.index;let m=null;if(!s&&a&&(m=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let e=0;e<i.length-1;e+=2){const o=i[e];if(o===n&&i[e+1]===r){const n=t[Ki],r=i[e+2];return n.length>r?n[r]:null}"string"==typeof o&&(e+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=kD(r,t,u,o),AD(p,i,o);const e=n.listen(h,i,o);ngDevMode&&ngDevMode.rendererAddEventListener++,l.push(o,e),c&&c.push(i,g,f,f+1)}}else o=kD(r,t,u,o);const p=r.outputs;let h;if(d&&null!==p&&(h=p[i])){const e=h.length;if(e)for(let n=0;n<e;n+=2){const e=h[n];ngDevMode&&Cn(t,e);const s=h[n+1],a=t[e],u=a[s];if(ngDevMode&&(null==(f=u)||"function"!=typeof f.subscribe))throw new Error(`@Output ${s} not initialized in '${a.constructor.name}'.`);const d=u.subscribe(o),p=l.length;l.push(o,d),c&&c.push(i,r.index,p,-(p+1))}}var f}function xD(e,t,n,r){const i=u(null);try{return Xo(6,t,n),!1!==n(r)}catch(t){return Ag(e,t),!1}finally{Xo(7,t,n),u(i)}}function kD(e,t,n,r){return function i(o){if(o===Function)return r;Tm(e.componentOffset>-1?cs(e.index,t):t,5);let s=xD(t,n,r,o),a=i.__ngNextListenerFn__;for(;a;)s=xD(t,n,a,o)&&s,a=a.__ngNextListenerFn__;return s}}function LD(e=1){return function(e){return(Ss.lFrame.contextLView=fs(e,Ss.lFrame.contextLView))[Qi]}(e)}function FD(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(e);for(let i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?Rf(e,o,!0):xf(r,o))return i}else n=i}return n}function UD(e){const t=Ms()[no][zi];if(!t.projection){const n=e?e.length:1,r=t.projection=Lr(n,null),i=r.slice();let o=t.child;for(;null!==o;){if(128!==o.type){const t=e?FD(o,e):0;null!==t&&(i[t]?i[t].projectionNext=o:r[t]=o,i[t]=o)}o=o.next}}}function jD(e,t=0,n,r,i,o){const s=Ms(),a=Ps(),c=r?e+1:null;null!==c&&b_(s,a,c,r,i,o,null,n);const u=Ym(a,ho+e,16,null,n||null);null===u.projection&&(u.projection=t),Vs();const l=!s[Wi]||Os();null===s[no][zi].projection[u.projection]&&null!==c?function(e,t,n){const r=ho+n,i=t.data[r],o=e[r];ngDevMode&&No(i),ngDevMode&&Ro(o);const s=Qv(o,i.tView.ssrId);um(o,sm(e,i,void 0,{dehydratedView:s}),0,cm(i,s))}(s,a,c):l&&32&~u.flags&&function(e,t,n){om(t[Ji],0,t,n,zg(e,n,t),Kg(n.parent||t[zi],n,t))}(a,s,u)}function VD(e,t,n){return $D(e,"",t,"",n),VD}function $D(e,t,n,r,i){const o=Ms(),s=SC(o,t,n,r);if(s!==Uf){const n=Ps(),a=fa();dg(n,a,o,e,s,o[Ji],i,!1),ngDevMode&&Tg(n.data,a,e,Ks()-1,t,r)}return $D}function BD(e,t,n,r,i,o,s){const a=Ms(),c=IC(a,t,n,r,i,o);if(c!==Uf){const n=Ps(),i=fa();dg(n,i,a,e,c,a[Ji],s,!1),ngDevMode&&Tg(n.data,i,e,Ks()-2,t,r,o)}return BD}function HD(e,t,n,r,i,o,s,a,c){const u=Ms(),l=DC(u,t,n,r,i,o,s,a);if(l!==Uf){const n=Ps(),i=fa();dg(n,i,u,e,l,u[Ji],c,!1),ngDevMode&&Tg(n.data,i,e,Ks()-3,t,r,o,a)}return HD}function GD(e,t,n,r,i,o,s,a,c,u,l){const d=Ms(),p=wC(d,t,n,r,i,o,s,a,c,u);if(p!==Uf){const n=Ps(),i=fa();dg(n,i,d,e,p,d[Ji],l,!1),ngDevMode&&Tg(n.data,i,e,Ks()-4,t,r,o,a,u)}return GD}function qD(e,t,n,r,i,o,s,a,c,u,l,d,p){const h=Ms(),f=TC(h,t,n,r,i,o,s,a,c,u,l,d);if(f!==Uf){const n=Ps(),i=fa();dg(n,i,h,e,f,h[Ji],p,!1),ngDevMode&&Tg(n.data,i,e,Ks()-5,t,r,o,a,u,d)}return qD}function zD(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f){const g=Ms(),m=OC(g,t,n,r,i,o,s,a,c,u,l,d,p,h);if(m!==Uf){const n=Ps(),i=fa();dg(n,i,g,e,m,g[Ji],f,!1),ngDevMode&&Tg(n.data,i,e,Ks()-6,t,r,o,a,u,d,h)}return zD}function WD(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m){const v=Ms(),y=AC(v,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g);if(y!==Uf){const n=Ps(),i=fa();dg(n,i,v,e,y,v[Ji],m,!1),ngDevMode&&Tg(n.data,i,e,Ks()-7,t,r,o,a,u,d,h,g)}return WD}function KD(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m,v,y){const E=Ms(),_=NC(E,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m,v);if(_!==Uf){const n=Ps(),i=fa();dg(n,i,E,e,_,E[Ji],y,!1),ngDevMode&&Tg(n.data,i,e,Ks()-8,t,r,o,a,u,d,h,g,v)}return KD}function QD(e,t,n){const r=Ms(),i=CC(r,t);if(i!==Uf){const o=Ps(),s=fa();if(dg(o,s,r,e,i,r[Ji],n,!1),ngDevMode){const n=[t[0]];for(let e=2;e<t.length;e+=2)n.push(t[e]);Tg(o.data,s,e,Ks()-n.length+1,...n)}}return QD}function YD(e,t,n,r){Hy(e,t,n,r)}function ZD(e,t,n){By(e,t,n)}function JD(e){const t=Ms(),n=Ps(),r=na();ra(r+1);const i=qy(n,r);if(e.dirty&&us(t)===!(2&~i.metadata.flags)){if(null===i.matches)e.reset([]);else{const n=zy(t,r);e.reset(n,gu),e.notifyOnChanges()}return!0}return!1}function XD(){return Vy(Ms(),na())}function ew(e,t,n,r,i){Zy(t,Hy(e,n,r,i))}function tw(e,t,n,r){Zy(e,By(t,n,r))}function nw(e=1){ra(na()+e)}function rw(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function iw(e){return as($s(),ho+e)}function ow(e,t,n){cS(SC(Ms(),e,t,n))}function sw(e,t,n,r,i){cS(IC(Ms(),e,t,n,r,i))}function aw(e,t,n,r,i,o,s){cS(DC(Ms(),e,t,n,r,i,o,s))}function cw(e,t,n,r,i,o,s,a,c){cS(wC(Ms(),e,t,n,r,i,o,s,a,c))}function uw(e,t,n,r,i,o,s,a,c,u,l){cS(TC(Ms(),e,t,n,r,i,o,s,a,c,u,l))}function lw(e,t,n,r,i,o,s,a,c,u,l,d,p){cS(OC(Ms(),e,t,n,r,i,o,s,a,c,u,l,d,p))}function dw(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f){cS(AC(Ms(),e,t,n,r,i,o,s,a,c,u,l,d,p,h,f))}function pw(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m){cS(NC(Ms(),e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m))}function hw(e){cS(CC(Ms(),e))}function fw(e,t,n,r,i){return pS(e,SC(Ms(),t,n,r),i,!1),fw}function gw(e,t,n,r,i,o,s){return pS(e,IC(Ms(),t,n,r,i,o),s,!1),gw}function mw(e,t,n,r,i,o,s,a,c){return pS(e,DC(Ms(),t,n,r,i,o,s,a),c,!1),mw}function vw(e,t,n,r,i,o,s,a,c,u,l){return pS(e,wC(Ms(),t,n,r,i,o,s,a,c,u),l,!1),vw}function yw(e,t,n,r,i,o,s,a,c,u,l,d,p){return pS(e,TC(Ms(),t,n,r,i,o,s,a,c,u,l,d),p,!1),yw}function Ew(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f){return pS(e,OC(Ms(),t,n,r,i,o,s,a,c,u,l,d,p,h),f,!1),Ew}function _w(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m){return pS(e,AC(Ms(),t,n,r,i,o,s,a,c,u,l,d,p,h,f,g),m,!1),_w}function bw(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m,v,y){return pS(e,NC(Ms(),t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m,v),y,!1),bw}function Cw(e,t,n){return pS(e,CC(Ms(),t),n,!1),Cw}function Sw(e,t=""){const n=Ms(),r=Ps(),i=e+ho;ngDevMode&&dn(Ks(),r.bindingStartIndex,"text nodes should be created before any bindings"),ngDevMode&&Cn(n,i);const o=r.firstCreatePass?Ym(r,i,1,t,null):r.data[i],s=Iw(r,n,o,t,e);n[i]=s,_a()&&Xg(r,n,s,o),Us(o,!1)}let Iw=(e,t,n,r,i)=>(ba(!0),Gf(t[Ji],r));function Dw(e,t,n,r,i){const o=t[Wi],s=!o||Os()||__(n)||Ap(o,i);if(ba(s),s)return Gf(t[Ji],r);const a=Ev(o,e,t,n);return ngDevMode&&km(a,Node.TEXT_NODE,null,t,n),ngDevMode&&Ep(a),a}function ww(e){return Tw("",e,""),ww}function Tw(e,t,n){const r=Ms(),i=SC(r,e,t,n);return i!==Uf&&Lw(r,pa(),i),Tw}function Ow(e,t,n,r,i){const o=Ms(),s=IC(o,e,t,n,r,i);return s!==Uf&&Lw(o,pa(),s),Ow}function Aw(e,t,n,r,i,o,s){const a=Ms(),c=DC(a,e,t,n,r,i,o,s);return c!==Uf&&Lw(a,pa(),c),Aw}function Nw(e,t,n,r,i,o,s,a,c){const u=Ms(),l=wC(u,e,t,n,r,i,o,s,a,c);return l!==Uf&&Lw(u,pa(),l),Nw}function Mw(e,t,n,r,i,o,s,a,c,u,l){const d=Ms(),p=TC(d,e,t,n,r,i,o,s,a,c,u,l);return p!==Uf&&Lw(d,pa(),p),Mw}function Pw(e,t,n,r,i,o,s,a,c,u,l,d,p){const h=Ms(),f=OC(h,e,t,n,r,i,o,s,a,c,u,l,d,p);return f!==Uf&&Lw(h,pa(),f),Pw}function Rw(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f){const g=Ms(),m=AC(g,e,t,n,r,i,o,s,a,c,u,l,d,p,h,f);return m!==Uf&&Lw(g,pa(),m),Rw}function xw(e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m){const v=Ms(),y=NC(v,e,t,n,r,i,o,s,a,c,u,l,d,p,h,f,g,m);return y!==Uf&&Lw(v,pa(),y),xw}function kw(e){const t=Ms(),n=CC(t,e);return n!==Uf&&Lw(t,pa(),n),kw}function Lw(e,t,n){ngDevMode&&un(n,"Value should be a string"),ngDevMode&&fn(n,Uf,"value should not be NO_CHANGE"),ngDevMode&&Cn(e,t);const r=is(t,e);ngDevMode&&En(r,"native element should exist"),qf(e[Ji],r,n)}function Fw(e,t,n){Cu(t)&&(t=t());const r=Ms(),i=Ys();if(m_(r,i,t)){const o=Ps(),s=fa();dg(o,s,r,e,t,r[Ji],n,!1),ngDevMode&&Tg(o.data,s,e,i)}return Fw}function Uw(e,t){const n=Cu(e);return n&&e.set(t),n}function jw(e,t){const n=Ms(),r=Ps(),i=ks();return RD(r,n,n[Ji],i,e,t),jw}const Vw={};function $w(e){const t=Ps(),n=Ms(),r=e+ho;return Us(Ym(t,r,128,null,null),!1),rw(t,n,r,Vw),$w}function Bw(e){return vu("NgLet"),rw(Ps(),Ms(),pa(),e),e}function Hw(e){const t=as($s(),ho+e);if(t===Vw)throw new kt(314,ngDevMode&&"Attempting to access a @let declaration whose value is not available yet");return t}function Gw(e,t){const n=Ps(),r=Ms(),i=r[Ji],o="data-ng-source-location";for(const[s,a,c,u]of t){const t=ss(n,s+ho);ngDevMode&&xa(t,2);const l=is(s+ho,r);if(!l.hasAttribute(o)){const t=`${e}@o:${a},l:${c},c:${u}`;i.setAttribute(l,o,t)}}}function qw(e,t,n,r,i){if(e=on(e),Array.isArray(e))for(let o=0;o<e.length;o++)qw(e[o],t,n,r,i);else{const o=Ps(),s=Ms(),a=ks();let c=di(e)?e:on(e.provide);const u=_i(e);ngDevMode&&zn(new pc(a,s),c,(()=>{Hn(e,i)}));const l=1048575&a.providerIndexes,d=a.directiveStart,p=a.providerIndexes>>20;if(di(e)||!e.multi){const r=new Na(u,i,$f),h=Kw(c,t,i?l:l+p,d);-1===h?(ec(Ya(a,s),o,c),zw(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(r),s.push(r)):(n[h]=r,s[h]=r)}else{const h=Kw(c,t,l+p,d),f=Kw(c,t,l,l+p),g=h>=0&&n[h],m=f>=0&&n[f];if(i&&!m||!i&&!g){ec(Ya(a,s),o,c);const l=function(e,t,n,r,i){const o=new Na(e,n,$f);return o.multi=[],o.index=t,o.componentProviders=0,Ww(o,i,r&&!n),o}(i?Yw:Qw,n.length,i,r,u);!i&&m&&(n[f].providerFactory=l),zw(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(l),s.push(l)}else{const t=Ww(n[i?f:h],u,!i&&r);zw(o,e,h>-1?h:f,t)}!i&&r&&m&&n[f].componentProviders++}}}function zw(e,t,n,r){const i=di(t),o=!!t.useClass;if(i||o){const s=(o?on(t.useClass):t).prototype.ngOnDestroy;if(s){const o=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){ngDevMode&&En(r,"indexInFactory when registering multi factory destroy hook");const e=o.indexOf(n);-1===e?o.push(n,[r,s]):o[e+1].push(r,s)}else o.push(n,s)}}}function Ww(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Kw(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function Qw(e,t,n,r){return Zw(this.multi,[])}function Yw(e,t,n,r){const i=this.multi;let o;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=ac(n,n[Bi],this.providerFactory.index,r);o=t.slice(0,e),Zw(i,o);for(let n=e;n<t.length;n++)o.push(t[n])}else o=[],Zw(i,o);return o}function Zw(e,t){for(let n=0;n<e.length;n++){const r=e[n];t.push(r())}return t}function Jw(e,t=[]){return n=>{n.providersResolver=(n,r)=>function(e,t,n){const r=Ps();if(r.firstCreatePass){const i=Io(e);qw(n,r.data,r.blueprint,i,!0),qw(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}function Xw(e){return t=>{e.length<1||(t.getExternalStyles=n=>e.map((e=>e+"?ngcomp"+(n?"="+encodeURIComponent(n):"")+"&e="+t.encapsulation)))}}function eT(e,t,n){const r=e.ɵcmp;r.directiveDefs=zE(t,!1),r.pipeDefs=zE(n,!0)}function tT(e,t){return $t((()=>{const n=Kr(e,!0);n.declarations=nT(t.declarations||Hr),n.imports=nT(t.imports||Hr),n.exports=nT(t.exports||Hr),t.bootstrap&&(n.bootstrap=nT(t.bootstrap)),dy.registerNgModule(e,t)}))}function nT(e){if("function"==typeof e)return e;const t=Pr(e);return t.some(sn)?()=>t.map(on).map(rT):t.map(rT)}function rT(e){return ry(e)?e.ngModule:e}function iT(e,t,n){const r=Ws()+e,i=Ms();return i[r]===Uf?f_(i,r,n?t.call(n):t()):g_(i,r)}function oT(e,t,n,r){return gT(Ms(),Ws(),e,t,n,r)}function sT(e,t,n,r,i){return mT(Ms(),Ws(),e,t,n,r,i)}function aT(e,t,n,r,i,o){return vT(Ms(),Ws(),e,t,n,r,i,o)}function cT(e,t,n,r,i,o,s){return yT(Ms(),Ws(),e,t,n,r,i,o,s)}function uT(e,t,n,r,i,o,s,a){const c=Ws()+e,u=Ms(),l=E_(u,c,n,r,i,o);return m_(u,c+4,s)||l?f_(u,c+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):g_(u,c+5)}function lT(e,t,n,r,i,o,s,a,c){const u=Ws()+e,l=Ms(),d=E_(l,u,n,r,i,o);return v_(l,u+4,s,a)||d?f_(l,u+6,c?t.call(c,n,r,i,o,s,a):t(n,r,i,o,s,a)):g_(l,u+6)}function dT(e,t,n,r,i,o,s,a,c,u){const l=Ws()+e,d=Ms();let p=E_(d,l,n,r,i,o);return y_(d,l+4,s,a,c)||p?f_(d,l+7,u?t.call(u,n,r,i,o,s,a,c):t(n,r,i,o,s,a,c)):g_(d,l+7)}function pT(e,t,n,r,i,o,s,a,c,u,l){const d=Ws()+e,p=Ms(),h=E_(p,d,n,r,i,o);return E_(p,d+4,s,a,c,u)||h?f_(p,d+8,l?t.call(l,n,r,i,o,s,a,c,u):t(n,r,i,o,s,a,c,u)):g_(p,d+8)}function hT(e,t,n,r){return ET(Ms(),Ws(),e,t,n,r)}function fT(e,t){ngDevMode&&Cn(e,t);const n=e[t];return n===Uf?void 0:n}function gT(e,t,n,r,i,o){const s=t+n;return m_(e,s,i)?f_(e,s+1,o?r.call(o,i):r(i)):fT(e,s+1)}function mT(e,t,n,r,i,o,s){const a=t+n;return v_(e,a,i,o)?f_(e,a+2,s?r.call(s,i,o):r(i,o)):fT(e,a+2)}function vT(e,t,n,r,i,o,s,a){const c=t+n;return y_(e,c,i,o,s)?f_(e,c+3,a?r.call(a,i,o,s):r(i,o,s)):fT(e,c+3)}function yT(e,t,n,r,i,o,s,a,c){const u=t+n;return E_(e,u,i,o,s,a)?f_(e,u+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):fT(e,u+4)}function ET(e,t,n,r,i,o){let s=t+n,a=!1;for(let t=0;t<i.length;t++)m_(e,s++,i[t])&&(a=!0);return a?f_(e,s,r.apply(o,i)):fT(e,s)}function _T(e,t){const n=Ps();let r;const i=e+ho;n.firstCreatePass?(r=function(e,t){if(t){if(ngDevMode){t.filter((t=>t.name===e)).length>1&&console.warn(Lt(313,function(e){const t=Ms(),n=t[no][Qi],r=lf(t);return`Multiple pipes match the name \`${e}\`${n?` in the '${n.constructor.name}' component`:""}. ${"check "+(r?"'@Component.imports' of this component":"the imports of this module")}`}(e)))}for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}if(ngDevMode)throw new kt(-302,function(e){const t=Ms(),n=t[no][Qi],r=lf(t);return`The pipe '${e}' could not be found${n?` in the '${n.constructor.name}' component`:""}. ${"Verify that it is "+(r?"included in the '@Component.imports' of this component":"declared or imported in this module")}`}(e))}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Mr(r.type,!0));let s;ngDevMode&&(s=jn({injector:new pc(ks(),Ms()),token:r.type}));const a=lr($f);try{const e=qa(!1),t=o();return qa(e),rw(n,Ms(),i,t),t}finally{lr(a),ngDevMode&&jn(s)}}function bT(e,t,n){const r=e+ho,i=Ms(),o=as(i,r);return wT(i,r)?gT(i,Ws(),t,o.transform,n,o):o.transform(n)}function CT(e,t,n,r){const i=e+ho,o=Ms(),s=as(o,i);return wT(o,i)?mT(o,Ws(),t,s.transform,n,r,s):s.transform(n,r)}function ST(e,t,n,r,i){const o=e+ho,s=Ms(),a=as(s,o);return wT(s,o)?vT(s,Ws(),t,a.transform,n,r,i,a):a.transform(n,r,i)}function IT(e,t,n,r,i,o){const s=e+ho,a=Ms(),c=as(a,s);return wT(a,s)?yT(a,Ws(),t,c.transform,n,r,i,o,c):c.transform(n,r,i,o)}function DT(e,t,n){const r=e+ho,i=Ms(),o=as(i,r);return wT(i,r)?ET(i,Ws(),t,o.transform,n,o):o.transform.apply(o,n)}function wT(e,t){return e[Bi].data[t].pure}function TT(e,t){return Rm(e,t)}function OT(e,t){return()=>{try{return dy.getComponentDependencies(e,t).dependencies}catch(t){throw console.error(`Computing dependencies in local compilation mode for the component "${e.name}" failed with the exception:`,t),t}}}function AT(e,t){const n=Qr(e);null!==n&&(n.debugInfo=t)}function NT(e,t,n,r){ngDevMode&&_f(e);const i=Qr(e);t.apply(null,[e,n,...r]);const{newDef:o,oldDef:s}=function(e,t){const n={...e},r=Object.assign(e,t,{directiveDefs:n.directiveDefs,pipeDefs:n.pipeDefs,setInput:n.setInput});return ngDevMode&&dn(r,e,"Expected definition to be merged in place"),{newDef:r,oldDef:n}}(i,Qr(e));if(e[Kn]=o,s.tView){const e=Ru.values();for(const t of e)512&t[Hi]&&null===t[Gi]&&MT(o,s,t)}}function MT(e,t,n){ngDevMode&&En(t.tView,"Expected a component definition that has been instantiated at least once");const r=n[Bi];if(r===t.tView)return ngDevMode&&_f(t.type),void function(e,t,n){const r=n[Qi];let i=n[$i];const o=n[Gi];ngDevMode&&ko(o);const s=n[zi];ngDevMode&&xa(s,2),ngDevMode&&pn(e,t,"Expected different component definition");const a=n[Yi].get(Zc,null),c=()=>{if(t.encapsulation===Up.ShadowDom){const e=i.cloneNode(!1);i.replaceWith(e),i=e}const a=og(e),c=eg(o,a,r,_g(e),i,s,null,null,null,null,null);!function(e,t,n,r){for(let r=ho;r<e[Bi].bindingStartIndex;r++){const i=e[r];if((Eo(i)||_o(i))&&i[qi]===t){i[qi]=n;break}}e[Xi]===t&&(e[Xi]=n),e[eo]===t&&(e[eo]=n),n[qi]=t[qi],t[qi]=null,e[r]=n}(o,n,c,s.index),Bg(n[Bi],n);const u=n[Zi].rendererFactory;var l,d;l=u,d=t,l.componentReplaced?.(d.id),c[Ji]=u.createRenderer(i,e),Fg(n[Bi],n),function(e){if(null!==e.projection){for(const t of e.projection)Pa(t)&&(t.projectionNext=null,t.flags&=-3);e.projection=null}}(s),Pg(a,c,r),bm(a,c,a.template,r)};null===a?c():a.run(c)}(e,t,n);for(let i=ho;i<r.bindingStartIndex;i++){const r=n[i];if(_o(r)){Eo(r[$i])&&MT(e,t,r[$i]);for(let n=yo;n<r.length;n++)MT(e,t,r[n])}else Eo(r)&&MT(e,t,r)}}const PT={ɵɵattribute:bC,ɵɵattributeInterpolate1:MC,ɵɵattributeInterpolate2:PC,ɵɵattributeInterpolate3:RC,ɵɵattributeInterpolate4:xC,ɵɵattributeInterpolate5:kC,ɵɵattributeInterpolate6:LC,ɵɵattributeInterpolate7:FC,ɵɵattributeInterpolate8:UC,ɵɵattributeInterpolateV:jC,ɵɵdefineComponent:FE,ɵɵdefineDirective:BE,ɵɵdefineInjectable:Dn,ɵɵdefineInjector:Tn,ɵɵdefineNgModule:VE,ɵɵdefinePipe:HE,ɵɵdirectiveInject:$f,ɵɵgetInheritedFactory:fc,ɵɵinject:_r,ɵɵinjectAttribute:vc,ɵɵinvalidFactory:Bf,ɵɵinvalidFactoryDep:br,ɵɵtemplateRefExtractor:TT,ɵɵresetView:xs,ɵɵHostDirectivesFeature:i_,ɵɵNgOnChangesFeature:zo,ɵɵProvidersFeature:Jw,ɵɵCopyDefinitionFeature:r_,ɵɵInheritDefinitionFeature:QE,ɵɵInputTransformsFeature:l_,ɵɵExternalStylesFeature:Xw,ɵɵnextContext:LD,ɵɵnamespaceHTML:va,ɵɵnamespaceMathML:ma,ɵɵnamespaceSVG:ga,ɵɵenableBindings:As,ɵɵdisableBindings:Ns,ɵɵelementStart:XS,ɵɵelementEnd:eI,ɵɵelement:tI,ɵɵelementContainerStart:iI,ɵɵelementContainerEnd:oI,ɵɵelementContainer:sI,ɵɵpureFunction0:iT,ɵɵpureFunction1:oT,ɵɵpureFunction2:sT,ɵɵpureFunction3:aT,ɵɵpureFunction4:cT,ɵɵpureFunction5:uT,ɵɵpureFunction6:lT,ɵɵpureFunction7:dT,ɵɵpureFunction8:pT,ɵɵpureFunctionV:hT,ɵɵgetCurrentView:uI,ɵɵrestoreView:Rs,ɵɵlistener:MD,ɵɵprojection:jD,ɵɵsyntheticHostProperty:dI,ɵɵsyntheticHostListener:PD,ɵɵpipeBind1:bT,ɵɵpipeBind2:CT,ɵɵpipeBind3:ST,ɵɵpipeBind4:IT,ɵɵpipeBindV:DT,ɵɵprojectionDef:UD,ɵɵhostProperty:lI,ɵɵproperty:iS,ɵɵpropertyInterpolate:VD,ɵɵpropertyInterpolate1:$D,ɵɵpropertyInterpolate2:BD,ɵɵpropertyInterpolate3:HD,ɵɵpropertyInterpolate4:GD,ɵɵpropertyInterpolate5:qD,ɵɵpropertyInterpolate6:zD,ɵɵpropertyInterpolate7:WD,ɵɵpropertyInterpolate8:KD,ɵɵpropertyInterpolateV:QD,ɵɵpipe:_T,ɵɵqueryRefresh:JD,ɵɵqueryAdvance:nw,ɵɵviewQuery:ZD,ɵɵviewQuerySignal:tw,ɵɵloadQuery:XD,ɵɵcontentQuery:YD,ɵɵcontentQuerySignal:ew,ɵɵreference:iw,ɵɵclassMap:lS,ɵɵclassMapInterpolate1:IS,ɵɵclassMapInterpolate2:DS,ɵɵclassMapInterpolate3:wS,ɵɵclassMapInterpolate4:TS,ɵɵclassMapInterpolate5:OS,ɵɵclassMapInterpolate6:AS,ɵɵclassMapInterpolate7:NS,ɵɵclassMapInterpolate8:MS,ɵɵclassMapInterpolateV:PS,ɵɵstyleMap:cS,ɵɵstyleMapInterpolate1:ow,ɵɵstyleMapInterpolate2:sw,ɵɵstyleMapInterpolate3:aw,ɵɵstyleMapInterpolate4:cw,ɵɵstyleMapInterpolate5:uw,ɵɵstyleMapInterpolate6:lw,ɵɵstyleMapInterpolate7:dw,ɵɵstyleMapInterpolate8:pw,ɵɵstyleMapInterpolateV:hw,ɵɵstyleProp:sS,ɵɵstylePropInterpolate1:fw,ɵɵstylePropInterpolate2:gw,ɵɵstylePropInterpolate3:mw,ɵɵstylePropInterpolate4:vw,ɵɵstylePropInterpolate5:yw,ɵɵstylePropInterpolate6:Ew,ɵɵstylePropInterpolate7:_w,ɵɵstylePropInterpolate8:bw,ɵɵstylePropInterpolateV:Cw,ɵɵclassProp:aS,ɵɵadvance:jf,ɵɵtemplate:C_,ɵɵconditional:$S,ɵɵdefer:Jb,ɵɵdeferWhen:Xb,ɵɵdeferOnIdle:rC,ɵɵdeferOnImmediate:sC,ɵɵdeferOnTimer:uC,ɵɵdeferOnHover:pC,ɵɵdeferOnInteraction:gC,ɵɵdeferOnViewport:yC,ɵɵdeferPrefetchWhen:eC,ɵɵdeferPrefetchOnIdle:iC,ɵɵdeferPrefetchOnImmediate:aC,ɵɵdeferPrefetchOnTimer:lC,ɵɵdeferPrefetchOnHover:hC,ɵɵdeferPrefetchOnInteraction:mC,ɵɵdeferPrefetchOnViewport:EC,ɵɵdeferHydrateWhen:tC,ɵɵdeferHydrateNever:nC,ɵɵdeferHydrateOnIdle:oC,ɵɵdeferHydrateOnImmediate:cC,ɵɵdeferHydrateOnTimer:dC,ɵɵdeferHydrateOnHover:fC,ɵɵdeferHydrateOnInteraction:vC,ɵɵdeferHydrateOnViewport:_C,ɵɵdeferEnableTimerScheduling:H_,ɵɵrepeater:QS,ɵɵrepeaterCreate:zS,ɵɵrepeaterTrackByIndex:HS,ɵɵrepeaterTrackByIdentity:GS,ɵɵcomponentInstance:RS,ɵɵtext:Sw,ɵɵtextInterpolate:ww,ɵɵtextInterpolate1:Tw,ɵɵtextInterpolate2:Ow,ɵɵtextInterpolate3:Aw,ɵɵtextInterpolate4:Nw,ɵɵtextInterpolate5:Mw,ɵɵtextInterpolate6:Pw,ɵɵtextInterpolate7:Rw,ɵɵtextInterpolate8:xw,ɵɵtextInterpolateV:kw,ɵɵi18n:ID,ɵɵi18nAttributes:DD,ɵɵi18nExp:wD,ɵɵi18nStart:CD,ɵɵi18nEnd:SD,ɵɵi18nApply:TD,ɵɵi18nPostprocess:OD,ɵɵresolveWindow:ff,ɵɵresolveDocument:gf,ɵɵresolveBody:mf,ɵɵsetComponentScope:eT,ɵɵsetNgModuleScope:tT,ɵɵregisterNgModuleType:IE,ɵɵgetComponentDepsFactory:OT,ɵsetClassDebugInfo:AT,ɵɵdeclareLet:$w,ɵɵstoreLet:Bw,ɵɵreadContextLet:Hw,ɵɵattachSourceLocations:Gw,ɵɵsanitizeHtml:Uh,ɵɵsanitizeStyle:jh,ɵɵsanitizeResourceUrl:$h,ɵɵsanitizeScript:Bh,ɵɵsanitizeUrl:Vh,ɵɵsanitizeUrlOrResourceUrl:qh,ɵɵtrustConstantHtml:Hh,ɵɵtrustConstantResourceUrl:Gh,ɵɵvalidateIframeAttribute:TE,forwardRef:rn,resolveForwardRef:on,ɵɵtwoWayProperty:Fw,ɵɵtwoWayBindingSet:Uw,ɵɵtwoWayListener:jw,ɵɵreplaceMetadata:NT};let RT=null;function xT(){RT=null}const kT=[];let LT=!1;function FT(){if(!LT){LT=!0;try{for(let e=kT.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=kT[e];n.declarations&&n.declarations.every(UT)&&(kT.splice(e,1),KT(t,n))}}finally{LT=!1}}}function UT(e){return Array.isArray(e)?e.every(UT):!!on(e)}function jT(e,t={}){VT(e,t),void 0!==t.id&&IE(e,t.id),function(e,t){kT.push({moduleType:e,ngModule:t})}(e,t)}function VT(e,t,n=!1){ngDevMode&&En(e,"Required value moduleType"),ngDevMode&&En(t,"Required value ngModule");const r=Pr(t.declarations||Hr);let i=null;Object.defineProperty(e,Zn,{configurable:!0,get:()=>{if(null===i){if(ngDevMode&&t.imports&&t.imports.indexOf(e)>-1)throw new Error(`'${nr(e)}' module can't import itself`);const n=Ni({usage:0,kind:"NgModule",type:e});i=n.compileNgModule(PT,`ng:///${e.name}/ɵmod.js`,{type:e,bootstrap:Pr(t.bootstrap||Hr).map(on),declarations:r.map(on),imports:Pr(t.imports||Hr).map(on).map(ZT),exports:Pr(t.exports||Hr).map(on).map(ZT),schemas:t.schemas?Pr(t.schemas):null,id:t.id||null}),i.schemas||(i.schemas=[])}return i}});let o=null;Object.defineProperty(e,Jn,{get:()=>{if(null===o){const t=Ni({usage:0,kind:"NgModule",type:e});o=t.compileFactory(PT,`ng:///${e.name}/ɵfac.js`,{name:e.name,type:e,deps:bc(e),target:t.FactoryTarget.NgModule,typeArgumentCount:0})}return o},configurable:!!ngDevMode});let s=null;Object.defineProperty(e,Rn,{get:()=>{if(null===s){ngDevMode&&BT(e,n);const r={name:e.name,type:e,providers:t.providers||Hr,imports:[(t.imports||Hr).map(on),(t.exports||Hr).map(on)]},i=Ni({usage:0,kind:"NgModule",type:e});s=i.compileInjector(PT,`ng:///${e.name}/ɵinj.js`,r)}return s},configurable:!!ngDevMode})}function $T(e,t){return`Unexpected "${nr(e)}" found in the "declarations" array of the ${t}, "${nr(e)}" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?`}function BT(e,t,n){if(qT.get(e))return;if(Jr(e))return;let r;if(qT.set(e,!0),e=on(e),n){if(r=Kr(e),!r)throw new Error(`Unexpected value '${e.name}' imported by the module '${n.name}'. Please add an @NgModule annotation.`)}else r=Kr(e,!0);const i=[],o=yf(r.declarations),s=yf(r.imports);Pr(s).map(HT).forEach((t=>{l(t,e),BT(t,!1,e)}));const a=yf(r.exports);o.forEach((function(t){Qr(t=on(t))||Yr(t)||Zr(t)||i.push(`Unexpected value '${nr(t)}' declared by the module '${nr(e)}'. Please add a @Pipe/@Directive/@Component annotation.`)})),o.forEach((function(e){const t=Yr(e=on(e));!Qr(e)&&t&&0==t.selectors.length&&i.push(`Directive ${nr(e)} has no selector, please add it!`)})),o.forEach((t=>function(e,t){const n=Qr(e=on(e))||Yr(e)||Zr(e);if(n?.standalone){const n=`"${nr(t)}" NgModule`;i.push($T(e,n))}}(t,e)));const c=[...o.map(on),...Pr(s.map(WT)).map(on)];a.forEach((function(t){const n=(Qr(t=on(t))?"component":Yr(t)&&"directive")||Zr(t)&&"pipe";n&&-1===c.lastIndexOf(t)&&i.push(`Can't export ${n} ${nr(t)} from ${nr(e)} as it was neither declared nor imported!`)})),o.forEach((n=>function(t,n){t=on(t);const r=GT.get(t);if(r&&r!==e){if(!n){const n=[r,e].map(nr).sort();i.push(`Type ${nr(t)} is part of the declarations of 2 modules: ${n[0]} and ${n[1]}! Please consider moving ${nr(t)} to a higher module that imports ${n[0]} and ${n[1]}. You can also create a new NgModule that exports and includes ${nr(t)} then import that NgModule in ${n[0]} and ${n[1]}.`)}}else GT.set(t,e)}(n,t)));const u=function(e,t){let n=null;return r(e.__annotations__),r(e.decorators),n;function r(e){e&&e.forEach(i)}function i(e){n||(Object.getPrototypeOf(e).ngMetadataName==t?n=e:e.type&&Object.getPrototypeOf(e.type).ngMetadataName==t&&(n=e.args[0]))}}(e,"NgModule");if(u&&(u.imports&&Pr(u.imports).map(HT).forEach((t=>{l(t,e),BT(t,!1,e)})),u.bootstrap&&Rr(u.bootstrap,(function(e){Qr(e=on(e))||i.push(`${nr(e)} cannot be used as an entry component.`),Jr(e)&&i.push(`The \`${nr(e)}\` class is a standalone component, which can not be used in the \`@NgModule.bootstrap\` array. Use the \`bootstrapApplication\` function for bootstrap instead.`)})),u.bootstrap&&Rr(u.bootstrap,(function(e){e=on(e),GT.get(e)||Jr(e)||i.push(`Component ${nr(e)} is not part of any NgModule or the module has not been imported into your module.`)}))),i.length)throw new Error(i.join("\n"));function l(e,t){const n=Qr(e=on(e))||Yr(e);if(null!==n&&!n.standalone)throw new Error(`Unexpected directive '${e.name}' imported by the module '${t.name}'. Please add an @NgModule annotation.`);const r=Zr(e);if(null!==r&&!r.standalone)throw new Error(`Unexpected pipe '${e.name}' imported by the module '${t.name}'. Please add an @NgModule annotation.`)}}function HT(e){return(e=on(e)).ngModule||e}let GT=new WeakMap,qT=new WeakMap;function zT(){GT=new WeakMap,qT=new WeakMap,kT.length=0,WE.clear()}function WT(e){const t=Kr(e=on(e));return null===t?[e]:Pr(yf(t.exports).map((e=>Kr(e)?(BT(e,!1),WT(e)):e)))}function KT(e,t){const n=Pr(t.declarations||Hr),r=YT(e);n.forEach((t=>{(t=on(t)).hasOwnProperty(Kn)?QT(Qr(t),r):t.hasOwnProperty(Qn)||t.hasOwnProperty(Yn)||(t.ngSelectorScope=e)}))}function QT(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map((e=>e.hasOwnProperty(Kn)?Qr(e):Yr(e))).filter((e=>!!e)),e.pipeDefs=()=>Array.from(t.compilation.pipes).map((e=>Zr(e))),e.schemas=t.schemas,e.tView=null}function YT(e){if(iy(e)){if(uy){const t=dy.getNgModuleScope(e);return{schemas:Kr(e,!0).schemas||null,...t}}return function(e){const t=Kr(e,!0);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return yf(t.imports).forEach((e=>{const t=YT(e);t.exported.directives.forEach((e=>n.compilation.directives.add(e))),t.exported.pipes.forEach((e=>n.compilation.pipes.add(e)))})),yf(t.declarations).forEach((e=>{Zr(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)})),yf(t.exports).forEach((e=>{const t=e;if(iy(t)){const e=YT(t);e.exported.directives.forEach((e=>{n.compilation.directives.add(e),n.exported.directives.add(e)})),e.exported.pipes.forEach((e=>{n.compilation.pipes.add(e),n.exported.pipes.add(e)}))}else Zr(t)?n.exported.pipes.add(t):n.exported.directives.add(t)})),t.transitiveCompileScopes=n,n}(e)}if(Jr(e)){if(null!==(Qr(e)||Yr(e)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(null!==Zr(e))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (ɵmod property)`)}function ZT(e){return ry(e)?e.ngModule:e}let JT=0;function XT(e,t){("undefined"==typeof ngDevMode||ngDevMode)&&Yt();let n=null;!function(e,t){yE(t)&&(gE.set(e,t),mE.add(e))}(e,t),nO(e,t),Object.defineProperty(e,Kn,{get:()=>{if(null===n){const r=Ni({usage:0,kind:"component",type:e});if(yE(t)){const n=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&n.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&n.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),t.styleUrl&&n.push(` - styleUrl: ${t.styleUrl}`),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=RT;let o=t.preserveWhitespaces;void 0===o&&(o=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let s=t.encapsulation;void 0===s&&(s=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:Up.Emulated);const a=t.templateUrl||`ng:///${e.name}/template.html`,c={...iO(e,t),typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:o,styles:"string"==typeof t.styles?[t.styles]:t.styles||Hr,animations:t.animations,declarations:[],changeDetection:t.changeDetection,encapsulation:s,interpolation:t.interpolation,viewProviders:t.viewProviders||null};JT++;try{if(c.usesInheritance&&oO(e),n=r.compileComponent(PT,a,c),c.isStandalone){const r=Pr(t.imports||Hr),{directiveDefs:i,pipeDefs:o}=function(e,t){let n=null,r=null;return{directiveDefs:()=>{if(uy){if(ngDevMode)for(const n of t)cy(n,e);return ay(e)?[...dy.getStandaloneComponentScope(e,t).compilation.directives].map((e=>Qr(e)||Yr(e))).filter((e=>null!==e)):[]}if(null===n){n=[Qr(e)];const r=new Set([e]);for(const i of t){ngDevMode&&cy(i,e);const t=on(i);if(!r.has(t))if(r.add(t),Kr(t)){const e=YT(t);for(const t of e.exported.directives){const e=Qr(t)||Yr(t);e&&!r.has(t)&&(r.add(t),n.push(e))}}else{const e=Qr(t)||Yr(t);e&&n.push(e)}}}return n},pipeDefs:()=>{if(uy){if(ngDevMode)for(const n of t)cy(n,e);return ay(e)?[...dy.getStandaloneComponentScope(e,t).compilation.pipes].map((e=>Zr(e))).filter((e=>null!==e)):[]}if(null===r){r=[];const e=new Set;for(const n of t){const t=on(n);if(!e.has(t))if(e.add(t),Kr(t)){const n=YT(t);for(const t of n.exported.pipes){const n=Zr(t);n&&!e.has(t)&&(e.add(t),r.push(n))}}else{const e=Zr(t);e&&r.push(e)}}}return r}}}(e,r);n.directiveDefs=i,n.pipeDefs=o,n.dependencies=()=>r.map(on)}}finally{JT--}if(0===JT&&FT(),void 0!==e.ngSelectorScope){const t=YT(e.ngSelectorScope);QT(n,t)}if(t.schemas){if(!c.isStandalone)throw new Error(`The 'schemas' was specified for the ${nr(e)} but is only valid on a component that is standalone.`);n.schemas=t.schemas}else c.isStandalone&&(n.schemas=[])}return n},set:e=>{n=e},configurable:!!ngDevMode})}function eO(e,t){let n=null;nO(e,t||{}),Object.defineProperty(e,Qn,{get:()=>{if(null===n){const r=tO(e,t||{}),i=Ni({usage:0,kind:"directive",type:e});n=i.compileDirective(PT,r.sourceMapUrl,r.metadata)}return n},configurable:!!ngDevMode})}function tO(e,t){const n=e&&e.name,r=`ng:///${n}/ɵdir.js`,i=Ni({usage:0,kind:"directive",type:e}),o=iO(e,t);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&oO(e),{metadata:o,sourceMapUrl:r}}function nO(e,t){let n=null;Object.defineProperty(e,Jn,{get:()=>{if(null===n){const r=tO(e,t),i=Ni({usage:0,kind:"directive",type:e});n=i.compileFactory(PT,`ng:///${e.name}/ɵfac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:bc(e),target:i.FactoryTarget.Directive})}return n},configurable:!!ngDevMode})}function rO(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function iO(e,t){const n=_c(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||Br,propMetadata:r,inputs:t.inputs||Hr,outputs:t.outputs||Hr,queries:aO(e,r,cO),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!rO(e),exportAs:(i=t.exportAs,void 0===i?null:dO(i)),providers:t.providers||null,viewQueries:aO(e,r,uO),isStandalone:void 0===t.standalone||!!t.standalone,isSignal:!!t.signals,hostDirectives:t.hostDirectives?.map((e=>"function"==typeof e?{directive:e}:e))||null};var i}function oO(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)Yr(n)||Qr(n)||!hO(n)||eO(n,null),n=Object.getPrototypeOf(n)}function sO(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?dO(n):on(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly,isSignal:!!t.isSignal};var n}function aO(e,t,n){const r=[];for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];o.forEach((t=>{if(n(t)){if(!t.selector)throw new Error(`Can't construct a query for the property "${i}" of "${nr(e)}" since the query selector wasn't defined.`);if(o.some(lO))throw new Error("Cannot combine @Input decorators with query decorators");r.push(sO(i,t))}}))}return r}function cO(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function uO(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function lO(e){return"Input"===e.ngMetadataName}function dO(e){return e.split(",").map((e=>e.trim()))}const pO=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function hO(e){const t=_c();if(pO.some((n=>t.hasLifecycleHook(e,n))))return!0;const n=t.propMetadata(e);for(const e in n){const t=n[e];for(let e=0;e<t.length;e++){const n=t[e],r=n.ngMetadataName;if(lO(n)||cO(n)||uO(n)||"Output"===r||"HostBinding"===r||"HostListener"===r)return!0}}return!1}function fO(e,t){let n=null,r=null;Object.defineProperty(e,Jn,{get:()=>{if(null===r){const n=gO(e,t),i=Ni({usage:0,kind:"pipe",type:n.type});r=i.compileFactory(PT,`ng:///${n.name}/ɵfac.js`,{name:n.name,type:n.type,typeArgumentCount:0,deps:bc(e),target:i.FactoryTarget.Pipe})}return r},configurable:!!ngDevMode}),Object.defineProperty(e,Yn,{get:()=>{if(null===n){const r=gO(e,t),i=Ni({usage:0,kind:"pipe",type:r.type});n=i.compilePipe(PT,`ng:///${r.name}/ɵpipe.js`,r)}return n},configurable:!!ngDevMode})}function gO(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure,isStandalone:void 0===t.standalone||!!t.standalone}}const mO=qt("Directive",((e={})=>e),void 0,void 0,((e,t)=>eO(e,t))),vO=qt("Component",((e={})=>({changeDetection:Pu.Default,...e})),mO,void 0,((e,t)=>XT(e,t))),yO=qt("Pipe",(e=>({pure:!0,...e})),void 0,void 0,((e,t)=>fO(e,t))),EO=Kt("Input",(e=>e?"string"==typeof e?{alias:e}:e:{})),_O=Kt("Output",(e=>({alias:e}))),bO=Kt("HostBinding",(e=>({hostPropertyName:e}))),CO=Kt("HostListener",((e,t)=>({eventName:e,args:t}))),SO=qt("NgModule",(e=>e),void 0,void 0,((e,t)=>jT(e,t)));class IO{full;major;minor;patch;constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}const DO=new IO("19.1.3");class wO{ngModuleFactory;componentFactories;constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}class TO{compileModuleSync(e){return new RE(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const t=this.compileModuleSync(e),n=yf(Kr(e).declarations).reduce(((e,t)=>{const n=Qr(t);return n&&e.push(new gy(n)),e}),[]);return new wO(t,n)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static ɵfac=function(e){return new(e||TO)};static ɵprov=Dn({token:TO,factory:TO.ɵfac,providedIn:"root"})}("undefined"==typeof ngDevMode||ngDevMode)&&W_(TO,[{type:wc,args:[{providedIn:"root"}]}],null,null);const OO=new Ln(ngDevMode?"compilerOptions":"");class AO{}function NO(e,t,n){ngDevMode&&function(e,t="Type passed in is not NgModuleType, it does not have 'ɵmod' property."){Kr(e)||_n(t)}(n);const r=new RE(n);if("undefined"!=typeof ngJitMode&&!ngJitMode)return Promise.resolve(r);const i=e.get(OO,[]).concat(t);if(function(e){if(null!==RT){if(e.defaultEncapsulation!==RT.defaultEncapsulation)return void(ngDevMode&&console.error("Provided value for `defaultEncapsulation` can not be changed once it has been set."));if(e.preserveWhitespaces!==RT.preserveWhitespaces)return void(ngDevMode&&console.error("Provided value for `preserveWhitespaces` can not be changed once it has been set."))}RT=e}({defaultEncapsulation:MO(i.map((e=>e.defaultEncapsulation))),preserveWhitespaces:MO(i.map((e=>e.preserveWhitespaces)))}),0===gE.size)return Promise.resolve(r);const o=i.flatMap((e=>e.providers??[]));if(0===o.length)return Promise.resolve(r);const s=Ni({usage:0,kind:"NgModule",type:n}),a=Ac.create({providers:o}).get(s.ResourceLoader);return fE((e=>Promise.resolve(a.get(e)))).then((()=>r))}function MO(e){for(let t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}class PO{zone=Cr(Zc);changeDetectionScheduler=Cr(Lc);applicationRef=Cr(kb);_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 ɵfac=function(e){return new(e||PO)};static ɵprov=Dn({token:PO,factory:PO.ɵfac,providedIn:"root"})}("undefined"==typeof ngDevMode||ngDevMode)&&W_(PO,[{type:wc,args:[{providedIn:"root"}]}],null,null);const RO=new Ln("undefined"==typeof ngDevMode||ngDevMode?"provideZoneChangeDetection token":"",{factory:()=>!1});function xO({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Zc({...LO(),scheduleInRootZone:n}),[{provide:Zc,useFactory:e},{provide:Gr,multi:!0,useFactory:()=>{const e=Cr(PO,{optional:!0});if(("undefined"==typeof ngDevMode||ngDevMode)&&null===e)throw new kt(402,"A required Injectable was not found in the dependency injection tree. If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.");return()=>e.initialize()}},{provide:Gr,multi:!0,useFactory:()=>{const e=Cr(FO);return()=>{e.initialize()}}},!0===t?{provide:jc,useValue:!0}:[],{provide:Vc,useValue:n??Pc}]}function kO(e){const t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=xO({ngZoneFactory:()=>{const t=LO(e);return t.scheduleInRootZone=n,t.shouldCoalesceEventChangeDetection&&vu("NgZone_CoalesceEvent"),new Zc(t)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Xr([{provide:RO,useValue:!0},{provide:Fc,useValue:!1},r])}function LO(e){return{enableLongStackTrace:"undefined"!=typeof ngDevMode&&!!ngDevMode,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}class FO{subscription=new X;initialized=!1;zone=Cr(Zc);pendingTasks=Cr($c);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;this.zone.isStable||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(e=this.pendingTasks.add()),this.zone.runOutsideAngular((()=>{this.subscription.add(this.zone.onStable.subscribe((()=>{Zc.assertNotInAngularZone(),queueMicrotask((()=>{null===e||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(this.pendingTasks.remove(e),e=null)}))})))})),this.subscription.add(this.zone.onUnstable.subscribe((()=>{Zc.assertInAngularZone(),e??=this.pendingTasks.add()})))}ngOnDestroy(){this.subscription.unsubscribe()}static ɵfac=function(e){return new(e||FO)};static ɵprov=Dn({token:FO,factory:FO.ɵfac,providedIn:"root"})}("undefined"==typeof ngDevMode||ngDevMode)&&W_(FO,[{type:wc,args:[{providedIn:"root"}]}],null,null);let UO=0,jO=[];class VO{appRef=Cr(kb);taskService=Cr($c);ngZone=Cr(Zc);zonelessEnabled=Cr(Fc);tracing=Cr(Jl,{optional:!0});disableScheduling=Cr(jc,{optional:!0})??!1;zoneIsDefined="undefined"!=typeof Zone&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new X;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(Cr(Vc,{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 ru||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&5===e)return;let t=!1;switch(e){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,t=!0;break;case 13:this.appRef.dirtyFlags|=16,t=!0;break;case 12:t=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(t))return;("undefined"==typeof ngDevMode||ngDevMode)&&(this.useMicrotaskScheduler?function(){if(UO++,100-UO<5){const e=(new Error).stack;e&&jO.push(e)}if(100===UO)throw new kt(103,"Angular could not stabilize because there were endless change notifications within the browser event loop. The stack from the last several notifications: \n"+jO.join("\n"))}():(UO=0,jO.length=0));const n=this.useMicrotaskScheduler?zc:qc;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run((()=>n((()=>this.tick())))):this.cancelScheduledCallback=this.ngZone.runOutsideAngular((()=>n((()=>this.tick()))))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const e=this.taskService.add();try{this.ngZone.run((()=>{this.runningTick=!0,this.appRef._tick()}),void 0,this.schedulerTickApplyArgs)}catch(t){throw this.taskService.remove(e),t}finally{this.cleanup()}this.useMicrotaskScheduler=!0,zc((()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)}))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static ɵfac=function(e){return new(e||VO)};static ɵprov=Dn({token:VO,factory:VO.ɵfac,providedIn:"root"})}function $O(){if(vu("NgZoneless"),("undefined"==typeof ngDevMode||ngDevMode)&&"undefined"!=typeof Zone&&Zone){const e=Lt(914,'The application is using zoneless change detection, but is still loading Zone.js. Consider removing Zone.js to get the full benefits of zoneless. In applications using the Angular CLI, Zone.js is typically included in the "polyfills" section of the angular.json file.');console.warn(e)}return Xr([{provide:Lc,useExisting:VO},{provide:Zc,useClass:ru},{provide:Fc,useValue:!0},{provide:Vc,useValue:!1},"undefined"==typeof ngDevMode||ngDevMode?[{provide:Uc,useValue:!0}]:[]])}("undefined"==typeof ngDevMode||ngDevMode)&&W_(VO,[{type:wc,args:[{providedIn:"root"}]}],(()=>[]),null);const BO=new Ln(ngDevMode?"LocaleId":"",{providedIn:"root",factory:()=>Cr(BO,ar.Optional|ar.SkipSelf)||("undefined"!=typeof ngI18nClosureMode&&ngI18nClosureMode&&"undefined"!=typeof goog&&"en"!==goog.LOCALE?goog.LOCALE:"undefined"!=typeof $localize&&$localize.locale||SI)}),HO=new Ln(ngDevMode?"DefaultCurrencyCode":"",{providedIn:"root",factory:()=>"USD"}),GO=new Ln(ngDevMode?"Translations":""),qO=new Ln(ngDevMode?"TranslationsFormat":"");var zO;!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(zO||(zO={}));class WO{window=null;observer=null;options=Cr(Cl);isBrowser="browser"===Cr(vl);lcpImageUrl;start(){if(!this.isBrowser||"undefined"==typeof PerformanceObserver||this.options?.disableImageSizeWarning&&this.options?.disableImageLazyLoadWarning)return;this.observer=this.initPerformanceObserver();const e=hl(),t=e.defaultView;if(void 0!==t){this.window=t;const n=()=>{setTimeout(this.scanImages.bind(this),200)},r=()=>{"complete"===e.readyState?n():this.window?.addEventListener("load",n,{once:!0})};"undefined"!=typeof Zone?Zone.root.run((()=>r())):r()}}ngOnDestroy(){this.observer?.disconnect()}initPerformanceObserver(){if("undefined"==typeof PerformanceObserver)return null;const e=new PerformanceObserver((e=>{const t=e.getEntries();if(0===t.length)return;const n=t[t.length-1],r=n.element?.src??"";r.startsWith("data:")||r.startsWith("blob:")||(this.lcpImageUrl=r)}));return e.observe({type:"largest-contentful-paint",buffered:!0}),e}scanImages(){const e=hl().querySelectorAll("img");let t,n=!1;var r;e.forEach((e=>{var r;this.options?.disableImageSizeWarning||!e.getAttribute("ng-img")&&this.isOversized(e)&&(r=e.src,console.warn(Lt(-913,`An image with src ${r} has intrinsic file dimensions much larger than its rendered size. This can negatively impact application loading performance. For more information about addressing or disabling this warning, see https://angular.dev/errors/NG0913`))),!this.options?.disableImageLazyLoadWarning&&this.lcpImageUrl&&e.src===this.lcpImageUrl&&(t=!0,("lazy"!==e.loading||e.getAttribute("ng-img"))&&(n=!0))})),t&&!n&&this.lcpImageUrl&&!this.options?.disableImageLazyLoadWarning&&(r=this.lcpImageUrl,console.warn(Lt(-913,`An image with src ${r} is the Largest Contentful Paint (LCP) element but was given a "loading" value of "lazy", which can negatively impact application loading performance. This warning can be addressed by changing the loading value of the LCP image to "eager", or by using the NgOptimizedImage directive's prioritization utilities. For more information about addressing or disabling this warning, see https://angular.dev/errors/NG0913`)))}isOversized(e){if(!this.window)return!1;const t=(e.src||"").toLowerCase();if([".svg"].some((e=>t.endsWith(e))))return!1;const n=this.window.getComputedStyle(e);let r=parseFloat(n.getPropertyValue("width")),i=parseFloat(n.getPropertyValue("height"));const o=n.getPropertyValue("box-sizing");if("cover"===n.getPropertyValue("object-fit"))return!1;if("border-box"===o){const e=n.getPropertyValue("padding-top"),t=n.getPropertyValue("padding-right"),o=n.getPropertyValue("padding-bottom"),s=n.getPropertyValue("padding-left");r-=parseFloat(t)+parseFloat(s),i-=parseFloat(e)+parseFloat(o)}const s=e.naturalWidth,a=e.naturalHeight,c=this.window.devicePixelRatio*r,u=this.window.devicePixelRatio*i;return s-c>=1200||a-u>=1200}static ɵfac=function(e){return new(e||WO)};static ɵprov=Dn({token:WO,factory:WO.ɵfac,providedIn:"root"})}("undefined"==typeof ngDevMode||ngDevMode)&&W_(WO,[{type:wc,args:[{providedIn:"root"}]}],null,null);const KO=new Ln(ngDevMode?"PlatformDestroyListeners":""),QO=new Ln(ngDevMode?"ENABLE_ROOT_COMPONENT_BOOTSTRAP":"");function YO(e){return!e.moduleRef}function ZO(e){const t=YO(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Zc);return n.run((()=>{YO(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(ou,null);if("undefined"==typeof ngDevMode||ngDevMode){if(null===r){const t=YO(e)?"No `ErrorHandler` found in the Dependency Injection tree.":"No ErrorHandler. Is platform module (BrowserModule) included";throw new kt(402,t)}if(t.get(Uc)&&t.get(RO))throw new kt(408,"Invalid change detection configuration: provideZoneChangeDetection and provideExperimentalZonelessChangeDetection cannot be used together.")}let i;if(n.runOutsideAngular((()=>{i=n.onError.subscribe({next:e=>{r.handleError(e)}})})),YO(e)){const n=()=>t.destroy(),r=e.platformInjector.get(KO);r.add(n),t.onDestroy((()=>{i.unsubscribe(),r.delete(n)}))}else{const t=()=>e.moduleRef.destroy(),n=e.platformInjector.get(KO);n.add(t),e.moduleRef.onDestroy((()=>{Fb(e.allPlatformModules,e.moduleRef),i.unsubscribe(),n.delete(t)}))}return function(n,r){try{const i=(()=>{const n=t.get(wb);return n.runInitializers(),n.donePromise.then((()=>{if(OI(t.get(BO,SI)||SI),!t.get(QO,!0))return YO(e)?t.get(kb):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(("undefined"==typeof ngDevMode||ngDevMode)&&t.get(WO).start(),YO(e)){const n=t.get(kb);return void 0!==e.rootComponent&&n.bootstrap(e.rootComponent),n}return function(e,t){const n=e.injector.get(kb);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((e=>n.bootstrap(e)));else{if(!e.instance.ngDoBootstrap)throw new kt(-403,ngDevMode&&`The module ${Xt(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef}))})();return Cb(i)?i.catch((e=>{throw r.runOutsideAngular((()=>n.handleError(e))),e})):i}catch(e){throw r.runOutsideAngular((()=>n.handleError(e))),e}}(r,n)}))}class JO{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,t){const n=t?.scheduleInRootZone,r=t?.ignoreChangesOutsideZone,i=[xO({ngZoneFactory:()=>function(e="zone.js",t){return"noop"===e?new ru:"zone.js"===e?new Zc(t):e}(t?.ngZone,{...LO({eventCoalescing:t?.ngZoneEventCoalescing,runCoalescing:t?.ngZoneRunCoalescing}),scheduleInRootZone:n}),ignoreChangesOutsideZone:r}),{provide:Lc,useExisting:VO}];var o,s;return ZO({moduleRef:(o=e.moduleType,s=this.injector,new PE(o,s,i,!1)),allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,t=[]){const n=xb({},t);return NO(this.injector,n,e).then((e=>this.bootstrapModuleFactory(e,n)))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new kt(404,ngDevMode&&"The platform has already been destroyed!");this._modules.slice().forEach((e=>e.destroy())),this._destroyListeners.forEach((e=>e()));const e=this._injector.get(KO,null);e&&(e.forEach((e=>e())),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static ɵfac=function(e){return new(e||JO)(_r(Ac))};static ɵprov=Dn({token:JO,factory:JO.ɵfac,providedIn:"platform"})}("undefined"==typeof ngDevMode||ngDevMode)&&W_(JO,[{type:wc,args:[{providedIn:"platform"}]}],(()=>[{type:Ac}]),null);let XO=null;const eA=new Ln(ngDevMode?"AllowMultipleToken":"");function tA(e){if(XO&&!XO.get(eA,!1))throw new kt(400,ngDevMode&&"There can be only one platform. Destroy the previous one to create a new one.");Nb(),Mb(),XO=e;const t=e.get(JO);return cA(e),t}function nA(e,t,n=[]){const r=`Platform: ${t}`,i=new Ln(r);return(t=[])=>{let o=oA();if(!o||o.injector.get(eA,!1)){const o=[...n,...t,{provide:i,useValue:!0}];e?e(o):tA(rA(o,r))}return iA(i)}}function rA(e=[],t){return Ac.create({name:t,providers:[{provide:pi,useValue:"platform"},{provide:KO,useValue:new Set([()=>XO=null])},...e]})}function iA(e){const t=oA();if(!t)throw new kt(401,ngDevMode&&"No platform exists!");if(("undefined"==typeof ngDevMode||ngDevMode)&&!t.injector.get(e,null))throw new kt(400,"A platform with a different configuration has been created. Please destroy it first.");return t}function oA(){return XO?.get(JO)??null}function sA(){oA()?.destroy()}function aA(e){return Xr([{provide:ml,useValue:e,multi:!0}])}function cA(e){const t=e.get(ml,null);Ii(e,(()=>{t?.forEach((e=>e()))}))}function uA(e){if("undefined"==typeof ngDevMode||ngDevMode){if(void 0===e.interval&&!e.useNgZoneOnStable)throw new Error("Must provide one of `useNgZoneOnStable` or `interval`");const t=!1===e?.exhaustive?Is.OnlyDirtyViews:Is.Exhaustive;return Xr([e?.useNgZoneOnStable?{provide:Zc,useFactory:()=>new lA(t)}:[],void 0!==e?.interval?dA(e.interval,t):[],{provide:Gr,multi:!0,useValue:()=>{if(e?.useNgZoneOnStable&&!(Cr(Zc)instanceof lA))throw new Error("`provideExperimentalCheckNoChangesForDebug` with `useNgZoneOnStable` must be after any other provider for `NgZone`.")}}])}return Xr([])}class lA extends Zc{checkNoChangesMode;applicationRef;scheduler;errorHandler;injector=Cr(vi);constructor(e){const t=Cr(Fc);super({shouldCoalesceEventChangeDetection:!0,shouldCoalesceRunChangeDetection:t}),this.checkNoChangesMode=e,t?(this.onMicrotaskEmpty.emit=()=>{},this.onStable.emit=()=>{this.scheduler||=this.injector.get(VO),this.scheduler.pendingRenderTaskId||this.scheduler.runningTick||this.checkApplicationViews()},this.onUnstable.emit=()=>{}):this.runOutsideAngular((()=>{this.onStable.subscribe((()=>{this.checkApplicationViews()}))}))}checkApplicationViews(){this.applicationRef||=this.injector.get(kb);for(const e of this.applicationRef.allViews)try{_m(e._lView,this.checkNoChangesMode,e.notifyErrorHandler)}catch(e){this.errorHandler||=this.injector.get(ou),this.errorHandler.handleError(e)}}}function dA(e,t){return{provide:Gr,multi:!0,useFactory:()=>{const n=Cr(kb),r=Cr(ou),i=Cr(VO),o=Cr(Zc);return()=>{!function s(){o.runOutsideAngular((()=>{setTimeout((()=>{if(!n.destroyed)if(i.pendingRenderTaskId||i.runningTick)s();else{for(const e of n.allViews)try{_m(e._lView,t,e.notifyErrorHandler)}catch(e){r.handleError(e)}s()}}),e)}))}()}}}}function pA(){return"undefined"==typeof ngDevMode||!!ngDevMode}function hA(){("undefined"==typeof ngDevMode||ngDevMode)&&(Qt.ngDevMode=!1)}function fA(e){const t=DE(e);if(!t)throw mA(e);return new RE(t)}function gA(e){const t=DE(e);if(!t)throw mA(e);return t}function mA(e){return new Error(`No module with ID ${e} loaded`)}class vA{static __NG_ELEMENT_ID__=yA}function yA(e){return function(e,t,n){if(Co(e)&&!n){const n=cs(e.index,t);return new Om(n,n)}if(175&e.type){const e=t[no];return new Om(e,t)}return null}(ks(),Ms(),!(16&~e))}class EA extends vA{}class _A extends EA{}class bA{name;callback;constructor(e,t){this.name=e,this.callback=t}}function CA(e){return e.map((e=>e.nativeElement))}class SA{nativeNode;constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new IA(e):null}get injector(){return il(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(el(e)||nl(e))}get context(){return el(this.nativeNode)||tl(this.nativeNode)}get listeners(){return al(this.nativeNode).filter((e=>"dom"===e.type))}get references(){return function(e){const t=Uu(e);if(null===t)return{};if(void 0===t.localRefs){const e=t.lView;if(null===e)return{};t.localRefs=function(e,t){const n=e[Bi].data[t];if(n&&n.localNames){const t={};let r=n.index+1;for(let i=0;i<n.localNames.length;i+=2)t[n.localNames[i]]=e[r],r++;return t}return null}(e,t.nodeIndex)}return t.localRefs||{}}(this.nativeNode)}get providerTokens(){return function(e){const t=Uu(e),n=t?t.lView:null;if(null===n)return[];const r=n[Bi],i=r.data[t.nodeIndex],o=[],s=1048575&i.providerIndexes,a=i.directiveEnd;for(let e=s;e<a;e++){let t=r.data[e];void 0!==(c=t).type&&void 0!==c.declaredInputs&&void 0!==c.findHostDirectiveDefs&&(t=t.type),o.push(t)}var c;return o}(this.nativeNode)}}class IA extends SA{constructor(e){ngDevMode&&bn(e),super(e)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const e=Uu(this.nativeNode),t=e?e.lView:null;return null!==t?t[Bi].data[e.nodeIndex].value:this.nativeNode.nodeName}get properties(){const e=Uu(this.nativeNode),t=e?e.lView:null;if(null===t)return{};const n=t[Bi].data,r=n[e.nodeIndex],i={};return function(e,t){if(e){let n=Object.getPrototypeOf(e);const r=Node.prototype;for(;null!==n&&n!==r;){const r=Object.getOwnPropertyDescriptors(n);for(let n in r)if(!n.startsWith("__")&&!n.startsWith("on")){const r=e[n];DA(r)&&(t[n]=r)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,i),function(e,t,n,r){let i=t.propertyBindings;if(null!==i)for(let t=0;t<i.length;t++){const o=i[t],s=r[o].split(vf),a=s[0];if(s.length>1){let t=s[1];for(let e=1;e<s.length-1;e++)t+=tr(n[o+e-1])+s[e+1];e[a]=t}else e[a]=n[o]}}(i,r,t,n),i}get attributes(){const e={},t=this.nativeElement;if(!t)return e;const n=Uu(t),r=n?n.lView:null;if(null===r)return{};const i=r[Bi].data[n.nodeIndex].attrs,o=[];if(i){let t=0;for(;t<i.length;){const n=i[t];if("string"!=typeof n)break;const r=i[t+1];e[n]=r,o.push(n.toLowerCase()),t+=2}}for(const n of t.attributes)o.includes(n.name)||(e[n.name]=n.value);return e}get styles(){const e=this.nativeElement;return e?.style??{}}get classes(){const e={},t=this.nativeElement.className;return("string"!=typeof t?t.baseVal.split(" "):t.split(" ")).forEach((t=>e[t]=!0)),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(PA(r))}return t}get children(){const e=this.nativeElement;if(!e)return[];const t=e.children,n=[];for(let e=0;e<t.length;e++){const r=t[e];n.push(PA(r))}return n}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return wA(this,e,t,!0),t}queryAllNodes(e){const t=[];return wA(this,e,t,!1),t}triggerEventHandler(e,t){const n=this.nativeNode,r=[];this.listeners.forEach((i=>{if(i.name===e){const e=i.callback;e.call(n,t),r.push(e)}})),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach((e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const i=e("__ngUnwrap__");return-1===r.indexOf(i)&&i.call(n,t)}}))}}function DA(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function wA(e,t,n,r){const i=Uu(e.nativeNode),o=i?i.lView:null;null!==o?TA(o[Bi].data[i.nodeIndex],o,t,n,r,e.nativeNode):NA(e.nativeNode,t,n,r)}function TA(e,t,n,r,i,o){ngDevMode&&Oo(e,t);const s=function(e,t){const n=null===e?-1:e.index;return-1!==n?(ngDevMode&&Oo(e,t),ns(t[n])):null}(e,t);if(11&e.type){if(AA(s,n,r,i,o),Co(e)){const s=cs(e.index,t);s&&s[Bi].firstChild&&TA(s[Bi].firstChild,s,n,r,i,o)}else e.child&&TA(e.child,t,n,r,i,o),s&&NA(s,n,r,i);const a=t[e.index];_o(a)&&OA(a,n,r,i,o)}else if(4&e.type){const s=t[e.index];AA(s[mo],n,r,i,o),OA(s,n,r,i,o)}else if(16&e.type){const s=t[no],a=s[zi].projection[e.projection];if(Array.isArray(a))for(let e of a)AA(e,n,r,i,o);else if(a){const e=s[Gi];TA(e[Bi].data[a.index],e,n,r,i,o)}}else e.child&&TA(e.child,t,n,r,i,o);if(o!==s){const s=2&e.flags?e.projectionNext:e.next;s&&TA(s,t,n,r,i,o)}}function OA(e,t,n,r,i){for(let o=yo;o<e.length;o++){const s=e[o],a=s[Bi].firstChild;a&&TA(a,s,t,n,r,i)}}function AA(e,t,n,r,i){if(i!==e){const i=PA(e);if(!i)return;(r&&i instanceof IA&&t(i)&&-1===n.indexOf(i)||!r&&t(i)&&-1===n.indexOf(i))&&n.push(i)}}function NA(e,t,n,r){const i=e.childNodes,o=i.length;for(let e=0;e<o;e++){const o=i[e],s=PA(o);s&&((r&&s instanceof IA&&t(s)&&-1===n.indexOf(s)||!r&&t(s)&&-1===n.indexOf(s))&&n.push(s),NA(o,t,n,r))}}new Map;const MA="__ng_debug__";function PA(e){return e instanceof Node?(e.hasOwnProperty(MA)||(e[MA]=e.nodeType==Node.ELEMENT_NODE?new IA(e):new SA(e)),e[MA]):null}class RA{constructor(){}supports(e){return d_(e)}create(e){return new kA(e)}}const xA=(e,t)=>t;class kA{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(e){this._trackByFn=e||xA}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const o=!n||t&&t.currentIndex<jA(n,r,i)?t:n,s=jA(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);const e=s-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;t<=o&&o<e&&(i[n]=r+1)}i[o.previousIndex]=t-e}}s!==a&&e(o,s,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!d_(e))throw new kt(900,ngDevMode&&`Error trying to diff '${Xt(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,t)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),o=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,(e=>{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),o=!0),i=i._next,t++})),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new LA(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new UA),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new UA),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}}class LA{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(e,t){this.item=e,this.trackById=t}}class FA{_head=null;_tail=null;add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class UA{map=new Map;put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new FA,this.map.set(t,n)),n.add(e)}get(e,t){const n=e,r=this.map.get(n);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function jA(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class VA{constructor(){}supports(e){return e instanceof Map||p_(e)}create(){return new $A}}class $A{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||p_(e)))throw new kt(900,ngDevMode&&`Error trying to diff '${Xt(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,((e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}})),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new BA(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((n=>t(e[n],n)))}}class BA{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}}function HA(){return new GA([new RA])}class GA{factories;static ɵprov=Dn({token:GA,providedIn:"root",factory:HA});constructor(e){this.factories=e}static create(e,t){if(null!=t){const n=t.factories.slice();e=e.concat(n)}return new GA(e)}static extend(e){return{provide:GA,useFactory:t=>GA.create(e,t||HA()),deps:[[GA,new Ar,new Tr]]}}find(e){const t=this.factories.find((t=>t.supports(e)));if(null!=t)return t;throw new kt(901,ngDevMode&&`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}function qA(){return new zA([new VA])}class zA{static ɵprov=Dn({token:zA,providedIn:"root",factory:qA});factories;constructor(e){this.factories=e}static create(e,t){if(t){const n=t.factories.slice();e=e.concat(n)}return new zA(e)}static extend(e){return{provide:zA,useFactory:t=>zA.create(e,t||qA()),deps:[[zA,new Ar,new Tr]]}}find(e){const t=this.factories.find((t=>t.supports(e)));if(t)return t;throw new kt(901,ngDevMode&&`Cannot find a differ supporting object '${e}'`)}}const WA=[new VA],KA=[new RA],QA=new GA(KA),YA=new zA(WA),ZA=nA(null,"core",[]);class JA{constructor(e){}static ɵfac=function(e){return new(e||JA)(_r(kb))};static ɵmod=VE({type:JA});static ɵinj=Tn({})}function XA(e){}function eN(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e;"undefined"!=typeof ngDevMode&&!ngDevMode||void 0===t||function(e){if(_f(e),!Qr(e).standalone)throw new kt(907,`The ${nr(e)} component is not marked as standalone, but Angular expects to have a standalone component here. Please make sure the ${nr(e)} component has the \`standalone: true\` flag in the decorator.`)}(t);const i=function(e=[]){if(XO)return XO;Nb();const t=rA(e);return XO=t,Mb(),cA(t),t}(r),o=[xO({}),{provide:Lc,useExisting:VO},...n||[]];return ZO({r3Injector:new xE({providers:o,parent:i,debugName:"undefined"==typeof ngDevMode||ngDevMode?"Environment Injector":"",runEnvironmentInitializers:!1}).injector,platformInjector:i,rootComponent:t})}catch(e){return Promise.reject(e)}}("undefined"==typeof ngDevMode||ngDevMode)&&W_(JA,[{type:SO}],(()=>[{type:kb}]),null);const tN=new WeakSet,nN="";let rN=[];function iN(e){return e.get(Wl,Kl)}function oN(){const e=[{provide:Wl,useFactory:()=>{let e=!0;if("undefined"==typeof ngServerMode||!ngServerMode){const t=Cr(fl);e=!!window._ejsas?.[t]}return e&&vu("NgEventReplay"),e}}];return"undefined"!=typeof ngServerMode&&ngServerMode||e.push({provide:Gr,useValue:()=>{const e=Cr(Ac),t=e.get(kb);if(!tN.has(t)){const t=Cr(Yl);iN(e)&&ND(((e,n,r)=>{ep(e,n,r),tp(e,t)}))}},multi:!0},{provide:Ab,useFactory:()=>{const e=Cr(fl),t=Cr(Ac),n=Cr(kb);return()=>{iN(t)&&!tN.has(n)&&(tN.add(n),n.onDestroy((()=>{tN.delete(n),"undefined"==typeof ngServerMode||ngServerMode||(Tt(e),ND((()=>{})))})),n.whenStable().then((()=>{const e=t.get(rp);sN(e,t);const r=t.get(Yl);r.get(nN)?.forEach(np),r.delete(nN);const i=e.instance;Sp(t)?n.onDestroy((()=>i.cleanUp())):i.cleanUp()})))}},multi:!0}),e}const sN=(e,t)=>{const n=t.get(fl),r=window._ejsas[n],i=e.instance=new wt(new Ze(r.c));for(const e of r.et)i.addEvent(e);for(const e of r.etc)i.addEvent(e);const o=function(e,t=window){return n=t._ejsas?.[e],n?.q??[];var n}(n);i.replayEarlyEventInfos(o),Tt(n);const s=new bt((e=>{!function(e,t,n){const r=(n&&n.getAttribute(Jd))??"";/d\d+/.test(r)?function(e,t,n,r){rN.push({event:n,currentTarget:r}),zb(t,e,aN)}(r,e,t,n):101===t.eventPhase&&ip(t,n)}(t,e,e.currentTarget)}));!function(e,t){e.ecrd((e=>{t.dispatch(e)}),yt.I_AM_THE_JSACTION_FRAMEWORK)}(i,s)};function aN(e){const t=[...rN],n=new Set(e);rN=[];for(let{event:e,currentTarget:r}of t){const t=r.getAttribute(Jd);n.has(t)?ip(e,r):rN.push({event:e,currentTarget:r})}}class cN{views=[];indexByContent=new Map;add(e){const t=JSON.stringify(e);if(!this.indexByContent.has(t)){const n=this.views.length;return this.views.push(e),this.indexByContent.set(t,n),n}return this.indexByContent.get(t)}getAll(){return this.views}}let uN=0;function lN(e){return e.ssrId||(e.ssrId="t"+uN++),e.ssrId}function dN(e,t,n){const r=[];return dm(e,t,n,r),r.length}function pN(e){const t=[];return pm(e,t),t.length}function hN(e,t,n){const r=e[$i];return r&&!r.hasAttribute(Du)?CN(r,e,null,t):null}function fN(e,t,n){const r=rs(e[$i]),i=hN(r,t);if(null===i)return;const o=ns(r[$i]),s=`${i}|${CN(o,e[Gi],null,t)}`;r[Ji].setAttribute(o,up,s)}function gN(e,t){const n=e.injector,r=function(e){return(e=e??Cr(Ac)).get(zl,!1)}(n),i=Sp(n),o=new cN,s=new Map,a=e._views,c=n.get(Wl,Kl),u={regular:new Set,capture:new Set},l=new Map,d=e.injector.get(fl);for(const e of a){const n=fp(e);if(null!==n){const e={serializedViewCollection:o,corruptedTextNodes:s,isI18nHydrationEnabled:r,isIncrementalHydrationEnabled:i,i18nChildren:new Map,eventTypesToReplay:u,shouldReplayEvents:c,appId:d,deferBlocks:l};_o(n)?fN(n,e):hN(n,e),IN(s,t)}}const p=o.getAll(),h=n.get(Dl);if(h.set(ap,p),l.size>0){const e={};for(const[t,n]of l.entries())e[t]=n;h.set(cp,e)}return u}function mN(e,t,n,r,i){const o=[];let s="";for(let a=yo;a<e.length;a++){let c,u,l,d=e[a];if(Do(d)&&(d=d[ho],_o(d))){u=pN(d)+1,fN(d,i,n[Yi]);const e=rs(d[$i]);l={[kl]:e[Bi].ssrId,[xl]:u}}if(!l){const o=d[Bi];1===o.type?(c=o.ssrId,u=1):(c=lN(o),u=dN(o,d,o.firstChild)),l={[kl]:c,[xl]:u};let s=!1;if(Fd(n[Bi],t)){const o=Nd(n,t),a=Md(n[Bi],t);if(i.isIncrementalHydrationEnabled&&null!==a.hydrateTriggers){const n=`d${i.deferBlocks.size}`;a.hydrateTriggers.has(7)&&(s=!0);let c=[];pm(e,c);const u={[xl]:c.length,[Vl]:o[gd]},p=vN(a.hydrateTriggers);p.length>0&&(u[Bl]=p),null!==r&&(u[$l]=r),i.deferBlocks.set(n,u);const h=ns(e);void 0!==h?h.nodeType===Node.COMMENT_NODE&&SN(h,n):(ngDevMode&&Fm(h,d,t),ngDevMode&&km(h,Node.COMMENT_NODE,null,d,t,!0),SN(h,n)),s||wN(a,c,n,i),r=n,l[jl]=n}l[Vl]=o[gd]}s||Object.assign(l,_N(e[a],r,i))}const p=JSON.stringify(l);if(o.length>0&&p===s){const e=o[o.length-1];e[Rl]??=1,e[Rl]++}else s=p,o.push(l)}return o}function vN(e){const t=new Set([0,1,2,5]);let n=[];for(let[r,i]of e)t.has(r)&&(null===i?n.push(r):n.push({trigger:r,delay:i.delay}));return n}function yN(e,t,n,r){const i=t.index-ho;e[Ll]??={},e[Ll][i]??=function(e,t,n){let r,i,o,s=e.parent;for(;null!==s&&(gv(s,t)||n?.has(s.index));)s=s.parent;null!==s&&3&s.type?(r=s.index,i=ns(t[r]),o=tr(r-ho)):(r=o=wl,i=t[no][$i]);let a=ns(t[e.index]);if(44&e.type){const n=em(t,e);n&&(a=n)}let c=Iv(i,a,o);if(null===c&&i!==a&&(c=Iv(i.ownerDocument.body,a,Tl),null===c))throw function(e,t){const n=`${Hm(e,t,!1)}\n\n`,r=zm();throw new kt(-502,"During serialization, Angular was unable to find an element in the DOM:\n\n"+n+r)}(t,e);return c}(t,n,r)}function EN(e,t){const n="number"==typeof t?t:t.index-ho;e[Fl]??=[],e[Fl].includes(n)||e[Fl].push(n)}function _N(e,t=null,n){const r={},i=e[Bi],o=function(e,t){let n=t.i18nChildren.get(e);return void 0===n&&(n=function(e){const t=new Set;function n(e){switch(t.add(e.index),e.kind){case 1:case 2:for(const t of e.children)n(t);break;case 3:for(const t of e.cases)for(const e of t)n(e)}}for(let t=ho;t<e.bindingStartIndex;t++){const r=e.data[t];if(r&&r.ast)for(const e of r.ast)n(e)}return 0===t.size?null:t}(e),t.i18nChildren.set(e,n)),n}(i,n),s=n.shouldReplayEvents?function(e,t,n){const r=new Map,i=t[Ki],o=e.cleanup;if(!o||!i)return r;for(let e=0;e<o.length;){const i=o[e++],s=o[e++];if("string"!=typeof i)continue;const a=i;if(!We(a))continue;qe(a)?n.capture.add(a):n.regular.add(a);const c=ns(t[s]);e++;const u=o[e++];("boolean"==typeof u||u>=0)&&(r.has(c)?r.get(c).push(a):r.set(c,[a]))}return r}(i,e,n.eventTypesToReplay):null;for(let a=ho;a<i.bindingStartIndex;a++){const c=i.data[a],u=a-ho,l=Nv(e,a,n);if(l){r[Ul]??={},r[Ul][u]=l.caseQueue;for(const e of l.disconnectedNodes)EN(r,e);for(const t of l.disjointNodes){const n=i.data[t+ho];ngDevMode&&No(n),yN(r,n,e,o)}}else if(Pa(c)&&!__(c))if(gv(c,e)&&DN(c))EN(r,c);else{if(Array.isArray(c.projection))for(const t of c.projection)if(t){if(Array.isArray(t))throw jm(ns(e[a]));wo(t)||Nu(t)||(gv(t,e)?EN(r,t):yN(r,t,e,o))}if(bN(r,c,e,o),_o(e[a])){const i=c.tView;null!==i&&(r[Ml]??={},r[Ml][u]=lN(i));const o=e[a][$i];if(Array.isArray(o)){const e=ns(o);e.hasAttribute(Du)||CN(e,o,t,n)}r[Pl]??={},r[Pl][u]=mN(e[a],c,e,t,n)}else if(Array.isArray(e[a])&&!Ra(c)){const r=ns(e[a][$i]);r.hasAttribute(Du)||CN(r,e[a],t,n)}else if(8&c.type)r[Nl]??={},r[Nl][u]=dN(i,e,c.child);else if(144&c.type){let t=c.next;for(;null!==t&&144&t.type;)t=t.next;t&&!Nu(t)&&yN(r,t,e,o)}else 1&c.type&&Np(n,ns(e[a]));if(s&&2&c.type){const n=ns(e[a]);s.has(n)&&Xd(n,s.get(n),t)}}}return r}function bN(e,t,n,r){wo(t)||(t.projectionNext&&t.projectionNext!==t.next&&!Nu(t.projectionNext)&&yN(e,t.projectionNext,n,r),null===t.prev&&null!==t.parent&&gv(t.parent,n)&&!gv(t,n)&&yN(e,t,n,r))}function CN(e,t,n,r){const i=t[Ji];if(function(e){return!(32&~e[Hi])}(t)&&!Av()||function(e){const t=e[Qi];return!!t?.constructor&&Qr(t.constructor)?.encapsulation===Up.ShadowDom}(t))return i.setAttribute(e,Du,""),null;{const o=_N(t,n,r),s=r.serializedViewCollection.add(o);return i.setAttribute(e,up,s.toString()),s}}function SN(e,t){e.textContent=`ngh=${t}`}function IN(e,t){for(const[n,r]of e)n.after(t.createComment(r))}function DN(e){let t=e;for(;null!=t;){if(Co(t))return!0;t=t.parent}return!1}function wN(e,t,n,r){const i=function(e){let t=[];return null!==e&&(e.has(4)&&t.push(...Gd),e.has(3)&&t.push(...Hd)),t}(e.hydrateTriggers);for(let e of i)r.eventTypesToReplay.regular.add(e);if(i.length>0){const e=t.filter((e=>e.nodeType===Node.ELEMENT_NODE));for(let t of e)Xd(t,i,n)}}let TN=!1,ON=!1,AN=!1;const NN=1e4;const MN="ngcm";function PN(){const e=[{provide:Hl,useFactory:()=>{let e=!0;if("undefined"==typeof ngServerMode||!ngServerMode){const t=Cr(Dl,{optional:!0});e=!!t?.get(ap,null)}return e&&vu("NgHydration"),e}},{provide:Gr,useValue:()=>{if(Ov(!1),"undefined"==typeof ngServerMode||!ngServerMode)if(Cr(Hl))!function(){const e=hl();let t;for(const n of e.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===lp){t=n;break}if(!t)throw new kt(-507,"undefined"!=typeof ngDevMode&&ngDevMode&&"Angular hydration logic detected that HTML content of this page was modified after it was produced during server side rendering. Make sure that there are no optimizations that remove comment nodes from HTML enabled on your CDN. Angular hydration relies on HTML produced by the server, including whitespaces and comment nodes.")}(),TN||(TN=!0,dp=pp,nI=rI,Iw=Dw,aI=cI,S_=D_,Dy=Ny,wy=Ay,Wv=Kv,ag=cg);else if("undefined"!=typeof ngDevMode&&ngDevMode&&!function(){const e=hl();return("undefined"==typeof ngServerMode||!ngServerMode)&&e.body.hasAttribute(MN)}()){const e=Cr(K_),t=Lt(-505,"Angular hydration was requested on the client, but there was no serialized information present in the server response, thus hydration was not enabled. Make sure the `provideClientHydration()` is included into the list of providers in the server part of the application configuration.");e.warn(t)}},multi:!0}];return"undefined"!=typeof ngServerMode&&ngServerMode||e.push({provide:ql,useFactory:()=>Cr(Hl)},{provide:Ab,useFactory:()=>{if(Cr(Hl)){const e=Cr(kb),t=Cr(Ac);return()=>{(function(e,t){const n=e.whenStable();if("undefined"!=typeof ngDevMode&&ngDevMode){const e=NN,r=t.get(K_),i=t.get(Zc).runOutsideAngular((()=>setTimeout((()=>function(e,t){const n=`Angular hydration expected the ApplicationRef.isStable() to emit \`true\`, but it didn't happen within ${e}ms. Angular hydration logic depends on the application becoming stable as a signal to complete hydration process.`;t.warn(Lt(-506,n))}(e,r)),e)));n.finally((()=>clearTimeout(i)))}return n})(e,t).then((()=>{zv(e),"undefined"!=typeof ngDevMode&&ngDevMode&&(function(e){const t=e.get(Dl).get(cp,{});ngDevMode&&(ngDevMode.deferBlocksWithIncrementalHydration=Object.keys(t).length)}(t),function(e){const t=e.get(K_),n=`Angular hydrated ${ngDevMode.hydratedComponents} component(s) and ${ngDevMode.hydratedNodes} node(s), ${ngDevMode.componentsSkippedHydration} component(s) were skipped. `+(Sp(e)?`${ngDevMode.deferBlocksWithIncrementalHydration} defer block(s) were configured to use incremental hydration. `:"")+"Learn more at https://angular.dev/guide/hydration.";t.log(n)}(t))}))}}return()=>{}},multi:!0}),Xr(e)}function RN(){return[{provide:zl,useFactory:()=>Cr(Hl)},{provide:Gr,useValue:()=>{Cr(Hl)&&(ON||(ON=!0,PI=RI,Tv=Fv,jv=Vv),Ov(!0),vu("NgI18nHydration"))},multi:!0}]}function xN(){const e=[oN(),{provide:Ql,useValue:!0},{provide:op,useClass:sp},{provide:Gr,useValue:()=>{AN||(AN=!0,Mp=Pp),vu("NgIncrementalHydration")},multi:!0}];return"undefined"!=typeof ngServerMode&&ngServerMode||e.push({provide:Ab,useFactory:()=>{const e=Cr(Ac),t=hl();return()=>{const n=function(e){const t=function(e){return Mp(e)}(e);let n=new Map;for(let e in t)n.set(e,{data:r=t[e],hydrate:{idle:xp(r,0),immediate:xp(r,1),timer:Rp(r),viewport:xp(r,2)}});var r;return n}(e),r=function(e,t){const n=e.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode:Dv});let r;const i=new Map;for(;r=n.nextNode();){const e="ngh=",t=r?.textContent,n=t?.indexOf(e)??-1;if(n>-1){const o=t.substring(n+e.length).trim();ngDevMode&&dn(o.startsWith("d"),!0,"Invalid defer block id found in a comment node."),i.set(o,r)}}return i}(t,t.body);(function(e,t,n){const r=[],i=[],o=[],s=[];for(let[e,a]of t){const t=n.get(e);if(void 0!==t){const n=a.data[xl];let c=t;for(let t=0;t<n;t++){if(c=c.previousSibling,c.nodeType!==Node.ELEMENT_NODE)continue;const t={el:c,blockName:e};a.hydrate.idle&&r.push(t),a.hydrate.immediate&&s.push(t),null!==a.hydrate.timer&&(t.delay=a.hydrate.timer,i.push(t)),a.hydrate.viewport&&o.push(t)}}}!function(e,t){for(const n of t){const t=e.get(op),r=w_((()=>zb(e,n.blockName)),e);t.addCleanupFn(n.blockName,r)}}(e,r),function(e,t){for(const n of t)zb(e,n.blockName)}(e,s),function(e,t){if(t.length>0){const n=e.get(op);for(let r of t){const t=Yd(r.el,(()=>zb(e,r.blockName)),e);n.addCleanupFn(r.blockName,t)}}}(e,o),function(e,t){for(const n of t){const t=e.get(op),r=()=>zb(e,n.blockName),i=O_(n.delay)(r,e);t.addCleanupFn(n.blockName,i)}}(e,i)})(e,n,r),function(e,t){const n=function(e){const t=e.body.querySelectorAll("[jsaction]"),n=new Set;for(let e of t){const t=e.getAttribute("jsaction"),r=e.getAttribute("ngb"),i=[...Gd.join(":;"),...Hd.join(":;")].join("|");t?.match(i)&&null!==r&&n.add(e)}return n}(e);for(let e of n){const n=t.get(Yl);tp(e,n)}}(t,e)}},multi:!0}),e}function kN(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function LN(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}const FN="🅰️";let UN=!1;function jN(e){if(!UN)return;const{startLabel:t}=$N(e);performance.mark(t)}function VN(e){if(!UN)return;const{startLabel:t,labelName:n,endLabel:r}=$N(e);performance.mark(r),performance.measure(n,t,r),performance.clearMarks(t),performance.clearMarks(r)}function $N(e){const t=`${FN}:${e}`;return{labelName:t,startLabel:`start:${t}`,endLabel:`end:${t}`}}let BN=!1;function HN(){if(!(BN||"undefined"!=typeof performance&&performance.mark&&performance.measure))return BN=!0,void console.warn("Performance API is not supported on this platform");UN=!0}function GN(){UN=!1}function qN(e){let t=e;for(;t;){const e=Gu(t);if(null!==e)for(let n=ho;n<e.length;n++){const r=e[n];if(!Eo(r)&&!_o(r)||r[$i]!==t)continue;const i=e[Bi],o=ss(i,n);if(Co(o)){const e=i.data[o.directiveStart+o.componentOffset],t=e.debugInfo?.className||e.type.name;if(t)return t;break}}t=t.parentNode}return null}function zN(e){return Ni({usage:1,kind:"directive",type:e.type}).compileDirectiveDeclaration(PT,`ng:///${e.type.name}/ɵfac.js`,e)}function WN(e){W_(e.type,e.decorators,e.ctorParameters??null,e.propDecorators??null)}function KN(e){z_(e.type,e.resolveDeferredDeps,((...t)=>{const n=e.resolveMetadata(...t);W_(e.type,n.decorators,n.ctorParameters,n.propDecorators)}))}function QN(e){return Ni({usage:1,kind:"component",type:e.type}).compileComponentDeclaration(PT,`ng:///${e.type.name}/ɵcmp.js`,e)}function YN(e){return Ni({usage:1,kind:ZN(e.target),type:e.type}).compileFactoryDeclaration(PT,`ng:///${e.type.name}/ɵfac.js`,e)}function ZN(e){switch(e){case Ti.Directive:return"directive";case Ti.Component:return"component";case Ti.Injectable:return"injectable";case Ti.Pipe:return"pipe";case Ti.NgModule:return"NgModule"}}function JN(e){return Ni({usage:1,kind:"injectable",type:e.type}).compileInjectableDeclaration(PT,`ng:///${e.type.name}/ɵprov.js`,e)}function XN(e){return Ni({usage:1,kind:"NgModule",type:e.type}).compileInjectorDeclaration(PT,`ng:///${e.type.name}/ɵinj.js`,e)}function eM(e){return Ni({usage:1,kind:"NgModule",type:e.type}).compileNgModuleDeclaration(PT,`ng:///${e.type.name}/ɵmod.js`,e)}function tM(e){return Ni({usage:1,kind:"pipe",type:e.type}).compilePipeDeclaration(PT,`ng:///${e.type.name}/ɵpipe.js`,e)}function nM(e,t){vu("NgSignals");const n=A(e);return t?.equal&&(n[c].equal=t.equal),ngDevMode&&(n.toString=()=>`[Computed: ${n()}]`,n[c].debugName=t?.debugName),n}const rM=e=>e;function iM(e,t){vu("NgSignals");const n="function"==typeof e,r=Object.create(cM);r.source=n?e:e.source,n||(r.computation=e.computation);const i=n?t?.equal:e.equal;return i&&(r.equal=i),function(e){const t=()=>{if(f(e),h(e),e.value===aM)throw e.error;return e.value};return t[c]=e,ngDevMode&&(t.toString=()=>`[LinkedSignal: ${t()}]`),t.set=t=>{f(e),F(e,t),y(e)},t.update=t=>{f(e),U(e,t),y(e)},t.asReadonly=bu.bind(t),t}(r)}const oM=Symbol("UNSET"),sM=Symbol("COMPUTING"),aM=Symbol("ERRORED"),cM=(()=>({...p,value:oM,dirty:!0,error:null,equal:i,computation:rM,producerMustRecompute:e=>e.value===oM||e.value===sM,producerRecomputeValue(e){if(e.value===sM)throw new Error("Detected cycle in computations.");const t=e.value;e.value=sM;const n=E(e);let r;try{const n=e.source(),i=t===oM||t===aM?void 0:{source:e.sourceValue,value:t};r=e.computation(n,i),e.sourceValue=n}catch(t){r=aM,e.error=t}finally{_(e,n)}t!==oM&&r!==aM&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}}))();function uM(e){const t=u(null);try{return e()}finally{u(t)}}class lM{view;node;constructor(e,t){this.view=e,this.node=t}static __NG_ELEMENT_ID__=dM}function dM(){return new lM(Ms(),ks())}class pM extends Ob{pendingTasks=Cr($c);taskId=null;schedule(e){super.schedule(e),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask((()=>this.flush())))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static ɵprov=Dn({token:pM,providedIn:"root",factory:()=>new pM})}class hM{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(e,t,n,r,i,o){this.scheduler=e,this.effectFn=t,this.zone=n,this.injector=i,this.watcher=function(e,t,n){const r=Object.create($);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const i=e=>{r.cleanupFn=e};return r.ref={notify:()=>v(r),run:()=>{if(null===r.fn)return;if(d())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!b(r))return;r.hasRun=!0;const e=E(r);try{r.cleanupFn(),r.cleanupFn=V,r.fn(i)}finally{_(r,e)}},cleanup:()=>r.cleanupFn(),destroy:()=>function(e){(function(e){return null===e.fn&&null===e.schedule})(e)||(C(e),e.cleanupFn(),e.fn=null,e.schedule=null,e.cleanupFn=V)}(r),[c]:r},r.ref}((e=>this.runEffect(e)),(()=>this.schedule()),o),this.unregisterOnDestroy=r?.onDestroy((()=>this.destroy()))}runEffect(e){try{this.effectFn(e)}catch(e){const t=this.injector.get(ou,null,{optional:!0});t?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function fM(){}function gM(e,t){vu("NgSignals"),ngDevMode&&Xl(fM,"Call `effect` outside of a reactive context. For example, schedule the effect inside the component constructor."),!t?.injector&&wi(fM);const n=t?.injector??Cr(Ac),r=!0!==t?.manualCleanup?n.get(Rc):null,i=new hM(n.get(pM),e,"undefined"==typeof Zone?null:Zone.current,r,n,t?.allowSignalWrites??!1),o=n.get(vA,null,{optional:!0});return o&&8&o._lView[Hi]?(o._lView[uo]??=[]).push(i.watcher.notify):i.watcher.notify(),i}let mM=!1;class vM{[c];constructor(e){this[c]=e}destroy(){this[c].destroy()}}function yM(e,t){if(mM){if(ngDevMode&&t?.forceRoot)throw new Error("Cannot use 'forceRoot' option with microtask effects on");return gM(e,t)}vu("NgSignals"),ngDevMode&&Xl(yM,"Call `effect` outside of a reactive context. For example, schedule the effect inside the component constructor."),!t?.injector&&wi(yM),ngDevMode&&void 0!==t?.allowSignalWrites&&console.warn("The 'allowSignalWrites' flag is deprecated and no longer impacts effect() (writes are always allowed)");const n=t?.injector??Cr(Ac);let r,i=!0!==t?.manualCleanup?n.get(Rc):null;const o=n.get(lM,null,{optional:!0}),s=n.get(Lc);null===o||t?.forceRoot?r=function(e,t,n){const r=Object.create(_M);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone="undefined"!=typeof Zone?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(13),r}(e,n.get(Tb),s):(r=function(e,t,n){const r=Object.create(bM);return r.view=e,r.zone="undefined"!=typeof Zone?Zone.current:null,r.notifier=t,r.fn=n,e[lo]??=new Set,e[lo].add(r),r.consumerMarkedDirty(r),r}(o.view,s,e),i instanceof xc&&i._lView===o.view&&(i=null)),r.injector=n,null!==i&&(r.onDestroyFn=i.onDestroy((()=>r.destroy())));const a=new vM(r);if(ngDevMode){r.debugName=t?.debugName??"";const e=jn({injector:n,token:null});try{!function(e){!ngDevMode&&_n("Injector profiler should never be called in production mode"),Bn({type:3,context:Un(),effect:e})}(a)}finally{jn(e)}}return a}const EM=(()=>({...p,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Gc,run(){if(this.dirty=!1,ngDevMode&&d())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(this.hasRun&&!b(this))return;this.hasRun=!0;const e=e=>(this.cleanupFns??=[]).push(e),t=E(this),n=zs(!1);try{this.maybeCleanup(),this.fn(e)}finally{zs(n),_(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}))(),_M=(()=>({...EM,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){C(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}))(),bM=(()=>({...EM,consumerMarkedDirty(){this.view[Hi]|=8192,vs(this.view),this.notifier.notify(14)},destroy(){C(this),this.onDestroyFn(),this.maybeCleanup(),this.view[lo]?.delete(this)}}))(),CM=Symbol("NOT_SET"),SM=new Set,IM=(()=>({...j,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:CM,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(null===this.sequence.lastPhase||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==CM&&!b(this))return this.signal;try{for(const e of this.cleanup??SM)e()}finally{this.cleanup?.clear()}const t=[];void 0!==e&&t.push(e),t.push(this.registerCleanupFn);const n=E(this);let r;try{r=this.userFn.apply(null,t)}finally{_(this,n)}return this.value!==CM&&this.equal(this.value,r)||(this.value=r,this.version++),this.signal}}))();class DM extends id{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];constructor(e,t,n,r,i=null){super(e,[void 0,void 0,void 0,void 0],!1,r,i),this.scheduler=n;for(const e of nd){const n=t[e];if(void 0===n)continue;const r=Object.create(IM);r.sequence=this,r.phase=e,r.userFn=n,r.dirty=!0,r.signal=()=>(h(r),r.value),r.signal[c]=r,r.registerCleanupFn=e=>(r.cleanup??=new Set).add(e),this.nodes[e]=r,this.hooks[e]=e=>r.phaseFn(e)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(const e of this.nodes)for(const t of e?.cleanup??SM)t()}}function wM(e,t){if(ngDevMode&&Xl(wM,"Call `afterRenderEffect` outside of a reactive context. For example, create the render effect inside the component constructor`."),!t?.injector&&wi(wM),"undefined"!=typeof ngServerMode&&ngServerMode)return cd;const n=t?.injector??Cr(Ac),r=n.get(Lc),i=n.get(td),o=n.get(Jl,null,{optional:!0});i.impl??=n.get(rd);let s=e;"function"==typeof s&&(s={mixedReadWrite:e});const a=new DM(i.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],r,n.get(Rc),o?.snapshot(null));return i.impl.register(a),a}var TM;function OM(e){e?.injector||wi(OM);const t=e.request??(()=>null);return new NM(t,e.loader,void 0,e.equal?(n=e.equal,(e,t)=>void 0===e||void 0===t?e===t:n(e,t)):void 0,e.injector??Cr(Ac));var n}!function(e){e[e.Idle=0]="Idle",e[e.Error=1]="Error",e[e.Loading=2]="Loading",e[e.Reloading=3]="Reloading",e[e.Resolved=4]="Resolved",e[e.Local=5]="Local"}(TM||(TM={}));class AM{value;constructor(e){this.value=e,this.value.set=this.set.bind(this),this.value.update=this.update.bind(this),this.value.asReadonly=bu}update(e){this.set(e(uM(this.value)))}isLoading=nM((()=>this.status()===TM.Loading||this.status()===TM.Reloading));hasValue(){return void 0!==this.value()}asReadonly(){return this}}class NM extends AM{loaderFn;defaultValue;equal;state;extendedRequest;pendingTasks;effectRef;pendingController;resolvePendingTask=void 0;destroyed=!1;constructor(e,t,n,r,i){super(nM((()=>this.state().value),{equal:r})),this.loaderFn=t,this.defaultValue=n,this.equal=r,this.pendingTasks=i.get(Bc),this.extendedRequest=nM((()=>({request:e(),reload:_u(0)}))),this.state=iM({source:()=>{const{request:e,reload:t}=this.extendedRequest();return void 0===e||this.destroyed?TM.Idle:0===t()?TM.Loading:TM.Reloading},computation:(e,t)=>({status:e,previousStatus:t?.value.status??TM.Idle,value:t&&e===TM.Reloading?t.value.value:this.defaultValue,error:void 0})}),this.effectRef=yM(this.loadEffect.bind(this),{injector:i,manualCleanup:!0}),i.get(Rc).onDestroy((()=>this.destroy()))}status=nM((()=>this.state().status));error=nM((()=>this.state().error));set(e){if(this.destroyed)return;const t=uM(this.state);(this.equal?this.equal(t.value,e):t.value===e)||(this.state.set({status:TM.Local,previousStatus:TM.Local,value:e,error:void 0}),this.abortInProgressLoad())}reload(){const e=uM(this.status);return e!==TM.Idle&&e!==TM.Loading&&e!==TM.Reloading&&(uM(this.extendedRequest).reload.update((e=>e+1)),!0)}destroy(){this.destroyed=!0,this.effectRef.destroy(),this.abortInProgressLoad(),this.state.set({status:TM.Idle,previousStatus:TM.Idle,value:this.defaultValue,error:void 0})}async loadEffect(){const{status:e}=uM(this.state),{request:t,reload:n}=this.extendedRequest();if(n(),void 0===t)return;if(e!==TM.Loading&&e!==TM.Reloading)return;this.abortInProgressLoad();const r=this.resolvePendingTask=this.pendingTasks.add(),{signal:i}=this.pendingController=new AbortController;try{const n=await uM((()=>this.loaderFn({abortSignal:i,request:t,previous:{status:e}})));if(i.aborted)return;this.state.set({status:TM.Resolved,previousStatus:TM.Resolved,value:n,error:void 0})}catch(e){if(i.aborted)return;this.state.set({status:TM.Error,previousStatus:TM.Error,value:this.defaultValue,error:e})}finally{r(),this.pendingController=void 0}}abortInProgressLoad(){uM((()=>this.pendingController?.abort())),this.pendingController=void 0,this.resolvePendingTask?.(),this.resolvePendingTask=void 0}}function MM(e,t){ngDevMode&&_f(e);const n=Qr(e),r=t.elementInjector||mi();return new gy(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}function PM(e){const t=Qr(e);if(!t)return null;const n=new gy(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}function RM(...e){return e.reduce(((e,t)=>Object.assign(e,t,{providers:[...e.providers,...t.providers]})),{providers:[]})}const xM=new Ln("undefined"==typeof ngDevMode||ngDevMode?"REQUEST":"",{providedIn:"platform",factory:()=>null}),kM=new Ln("undefined"==typeof ngDevMode||ngDevMode?"RESPONSE_INIT":"",{providedIn:"platform",factory:()=>null}),LM=new Ln("undefined"==typeof ngDevMode||ngDevMode?"REQUEST_CONTEXT":"",{providedIn:"platform",factory:()=>null});"undefined"!=typeof ngDevMode&&ngDevMode&&(Qt.$localize??=function(){throw new Error("It looks like your application or one of its dependencies is using i18n.\nAngular 9 introduced a global `$localize()` function that needs to be loaded.\nPlease run `ng add @angular/localize` from the Angular CLI.\n(For non-CLI projects, add `import '@angular/localize/init';` to your `polyfills.ts` file.\nFor server-side rendering applications add the import to your `main.server.ts` file.)")});var FM=n(1606),UM=n(8792),jM=n.n(UM),VM={now:function(){return(VM.delegate||Date).now()},delegate:void 0},$M=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=VM);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return H(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}},t}(De),BM=Y((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function HM(e,t){var n="object"==typeof t;return new Promise((function(r,i){var o=new ge({next:function(e){r(e),o.unsubscribe()},error:i,complete:function(){n?r(t.defaultValue):i(new BM)}});e.subscribe(o)}))}function GM(e,t){return At((function(n,r){var i=0;n.subscribe(Nt(r,(function(n){return e.call(t,n,i++)&&r.next(n)})))}))}var qM=new Ce((function(e){return e.complete()}));function zM(e){return e<=0?function(){return qM}:At((function(t,n){var r=0;t.subscribe(Nt(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}function WM(e){return At((function(t,n){var r=!1;t.subscribe(Nt(n,(function(e){r=!0,n.next(e)}),(function(){r||n.next(e),n.complete()})))}))}function KM(e){return void 0===e&&(e=QM),At((function(t,n){var r=!1;t.subscribe(Nt(n,(function(e){r=!0,n.next(e)}),(function(){return r?n.complete():n.error(e())})))}))}function QM(){return new BM}function YM(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?GM((function(t,n){return e(t,n,r)})):_e,zM(1),n?WM(t):KM((function(){return new BM})))}}var ZM=n(4409),JM=n(9516);const XM="storefront-invalidation",eP="exp-bidirectional-router-event";var tP=n(5316),nP=n(3464),rP=n.n(nP),iP=n(1630),oP=n.n(iP),sP=n(1009);function aP(e){const t=(n,r)=>{if(!r)return!1;if(!n)return!0;const i=e?.(n,r);if("boolean"==typeof i)return i;if(n.OR){for(const e of n.OR)if(t(e,r))return!0;return!1}return n.AND?n.AND.every((e=>t(e,r))):n.id?r.id&&dP(n.id,r.id):!!n.properties&&(n.properties.key in r.properties?dP(n.properties,r.properties[n.properties.key]):!!n.properties.negated)};return t}rP().extend(oP());const cP=aP((function(e,t){if(e.publication){if(e.publication.id){const n=e.publication.id.value===t.publicationId;return e.publication.id.negated?!n:n}return!0}if(e.categories)return lP(e.categories,t.categories??[]);if(e.tags)return lP(e.tags,t.tags);if(e.alias){const n=e.alias.value===t.alias;return e.alias.negated?!n:n}if(e.externalIssueId){const n=e.externalIssueId.value===t.externalIssueId;return e.externalIssueId.negated?!n:n}if(e.type){const n=e.type.value===t.type;return e.type.negated?!n:n}if(e.publicationDate)return pP(e.publicationDate,t.publicationDate);if(e.purchasable)return e.purchasable.value===t.purchasable;if(e.purchased)return e.purchased.value===t.purchased;if((0,sP.KR)(e.properties)){const n=e.properties;if(t.properties[n.key]){let r=!1;const i=rP()(t.properties[n.key],n.propertyFormat),o=rP()(n.value,n.valueFormat);if(i.isValid()&&o.isValid())switch(n.operation){case tP.DateOperation.EQUAL:r=i.isSame(o,"day");break;case tP.DateOperation.GREATER_THAN:r=i.isAfter(o,"day");break;case tP.DateOperation.LESS_THAN:r=i.isBefore(o,"day");break;default:console.warn("unsupported date operation",e)}return n.negated?!r:r}}})),uP=(aP((function(e,t){if(e.publication){if(e.publication.id){const n=e.publication.id.value===t.publicationId;return e.publication.id.negated?!n:n}return!0}if(e.taxonomies)return console.warn("local filtering by taxonomies is not implemented!"),!0;if(e.alias){const n=e.alias.value===t.alias;return e.alias.negated?!n:n}if(e.externalId){const n=e.externalId.value===t.externalId;return e.externalId.negated?!n:n}if(e.contentType){const n=e.contentType.value===t.contentType;return e.contentType.negated?!n:n}if(e.publicationDate)return pP(e.publicationDate,t.publicationDate);if(e.access)return e.access.value===t.access;if(e.purchased)return e.purchased.value===t.purchaseData.purchased;if((0,sP.KR)(e.properties)){const n=e.properties;if(t.properties[n.key]){let r=!1;const i=rP()(t.properties[n.key],n.propertyFormat),o=rP()(n.value,n.valueFormat);if(i.isValid()&&o.isValid())switch(n.operation){case tP.DateOperation.EQUAL:r=i.isSame(o,"day");break;case tP.DateOperation.GREATER_THAN:r=i.isAfter(o,"day");break;case tP.DateOperation.LESS_THAN:r=i.isBefore(o,"day");break;default:console.warn("unsupported date operation",e)}return n.negated?!r:r}}})),aP((function(e,t){return e.name?dP(e.name,t.name):e.parentCategoryId?dP(e.parentCategoryId,t.parentCategoryId):e.issues?(console.warn("Unhandled CategoryFilter field for filterLocalCategory: issues"),!0):void 0})));function lP(e,t){const n=e.content,r=e.size,i=e.negated;let o=!0;return n&&(o=n.operation===tP.ListOperation.CONTAINS_ONLY?dP(n.value,t[0]):!!t.find((e=>dP(n.value,e)))),r&&(o=function(e,t){let n;switch(e.operation){case tP.IntOperation.GREATER_THAN:n=t>e.value;break;case tP.IntOperation.LESS_THAN:n=t<e.value;break;default:n=t===e.value}return e.negated?!n:n}(r,t.length)),i?!o:o}function dP(e,t){let n;if(e.values?.length)n=e.values.includes(t);else switch(e.operation){case tP.StringOperation.STARTS_WITH:n=t.startsWith(e.value);break;case tP.StringOperation.CONTAINS:n=t.indexOf(e.value)>-1;break;default:n=t===e.value}return e.negated?!n:n}function pP(e,t){const n=function(e){const t=e.split("T");if(t[1])switch(t[0].split(":").length){case 3:return"hour";case 2:return"minute";default:return"second"}else switch(t[0].split("-").length){case 3:return"day";case 2:return"month";default:return"year"}}(e.value);let r;const i=rP()(t),o=rP()(e.value);switch(e.operation){case tP.DateOperation.LESS_THAN:r=i.isBefore(o,n);break;case tP.DateOperation.GREATER_THAN:r=i.isAfter(o,n);break;default:return i.isSame(o,n)}return e.negated?!r:r}aP((function(e,t){return e.name?dP(e.name,t.name):e.parentId?dP(e.parentId,t.parentId):void 0}));const hP=JSON.parse('{"rE":"3.9.0-SNAPSHOT"}');function fP(e){return t=>(n,r)=>{for(const i of t){const t=e(n,r,i);if(0!==t)return t}return e(n,r)}}function gP(e,t,n){const r=e[n.key],i=t[n.key];let o=0;switch(n.valueType){case"STRING":o=r.toString().localeCompare(i.toString());break;case"INT":o=parseInt(r,10)-parseInt(i,10)}return n.direction===FM.SortDirection.ASC?o:-o}const mP=fP((function(e,t,n){return n?n.index?(n.index.direction===FM.SortDirection.ASC?1:-1)*(e.index-t.index):n.publicationDate?(n.publicationDate.direction===FM.SortDirection.ASC?1:-1)*(e.publicationDate-t.publicationDate):n.property?gP(e.properties,t.properties,n.property):void 0:function(e,t){return e.publicationDate===t.publicationDate?e.id>t.id?1:-1:t.publicationDate-e.publicationDate}(e,t)}));function vP(e,t){const n=e&&{AND:e.AND&&e.AND?.map((e=>vP(e,!1))),OR:e.OR&&e.OR?.map((e=>vP(e,!1))),id:e.id,externalId:e.externalIssueId,alias:e.alias,publicationDate:e.publicationDate,access:yP(e.purchasable),productId:e.productId,purchased:e.purchased,publication:EP(e.publication)||_P(e.type),properties:e.properties,taxonomies:SP("category",e.categories)||SP("tag",e.tags)};return t?function(e){return e?{AND:[{contentType:{value:FM.CatalogContentType.ISSUE}},e]}:{contentType:{value:FM.CatalogContentType.ISSUE}}}(n):n}function yP(e){return e&&{value:FM.Access.FREE,negated:e.value}}function EP(e){return e&&{AND:e.AND&&e.AND.map((e=>EP(e))),OR:e.OR&&e.OR.map((e=>EP(e))),id:e.id,type:e.type,language:e.language,properties:e.properties,contents:e.contents||bP(e.issues)}}function _P(e){return e&&{type:{negated:e.negated,value:"ARTICLE"===e.value?FM.PublicationType.CHANNEL:FM.PublicationType.KIOSK}}}function bP(e){return e&&{negated:e.negated,content:CP(e.content),size:e.size}}function CP(e){return e&&{operation:e.operation,value:vP(e.value,!0)}}function SP(e,t){return t&&{negated:t.negated,content:IP(e,t.content),size:t.size}}function IP(e,t){return t&&{operation:t.operation,value:DP(e,t.value)}}function DP(e,t){return{AND:[{type:{value:e}},{id:t}]}}function wP(e){return{contentFilter:vP(e.issueFilter,!0),sort:e.sort?.map((e=>function(e){return{index:e.index,publicationDate:e.publicationDate,property:e.property}}(e))),first:e.first,after:e.after,fetchOptions:{totalCount:!0}}}var TP;fP((function(e,t,n){return n?n.name?function(e,t,n){const r=e.localeCompare(t);return n.direction===FM.SortDirection.ASC?r:-r}(e.name,t.name,n.name):n.property?gP(e.properties,t.properties,n.property):void 0:function(e,t){return e.id>t.id?1:-1}(e,t)})),function(e){e.ENTITLEMENT_TOKEN="entitlementToken",e.ENTITLEMENT_REFRESH_TOKEN="entitlementRefreshToken",e.ENTITLEMENT_ROLES="entitlementRoles"}(TP||(TP={}));let OP=null;function AP(){return OP}class NP{}class MP{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:MP,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:MP,providedIn:"platform",useFactory:()=>window.navigation})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:MP,decorators:[{type:wc,args:[{providedIn:"platform",useFactory:()=>window.navigation}]}]});const RP=new Ln(ngDevMode?"DocumentToken":"");class xP{historyGo(e){throw new Error(ngDevMode?"Not implemented":"")}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:xP,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:xP,providedIn:"platform",useFactory:()=>Cr(LP)})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:xP,decorators:[{type:wc,args:[{providedIn:"platform",useFactory:()=>Cr(LP)}]}]});const kP=new Ln(ngDevMode?"Location Initialized":"");class LP extends xP{_location;_history;_doc=Cr(RP);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return AP().getBaseHref(this._doc)}onPopState(e){const t=AP().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){const t=AP().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,t,n){this._history.pushState(e,t,n)}replaceState(e,t,n){this._history.replaceState(e,t,n)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:LP,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:LP,providedIn:"platform",useFactory:()=>new LP})}function FP(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function UP(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-("/"===e[n-1]?1:0);return e.slice(0,r)+e.slice(n)}function jP(e){return e&&"?"!==e[0]?"?"+e:e}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:LP,decorators:[{type:wc,args:[{providedIn:"platform",useFactory:()=>new LP}]}],ctorParameters:()=>[]});class VP{historyGo(e){throw new Error(ngDevMode?"Not implemented":"")}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:VP,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:VP,providedIn:"root",useFactory:()=>Cr(BP)})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:VP,decorators:[{type:wc,args:[{providedIn:"root",useFactory:()=>Cr(BP)}]}]});const $P=new Ln(ngDevMode?"appBaseHref":"");class BP extends VP{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,t){super(),this._platformLocation=e,this._baseHref=t??this._platformLocation.getBaseHrefFromDOM()??Cr(RP).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return FP(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+jP(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+jP(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+jP(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:BP,deps:[{token:xP},{token:$P,optional:!0}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:BP,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:BP,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:xP},{type:void 0,decorators:[{type:Tr},{type:wr,args:[$P]}]}]});class HP extends VP{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,t){super(),this._platformLocation=e,null!=t&&(this._baseHref=t)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const t=this._platformLocation.hash??"#";return t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=FP(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+jP(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+jP(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:HP,deps:[{token:xP},{token:$P,optional:!0}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:HP})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:HP,decorators:[{type:wc}],ctorParameters:()=>[{type:xP},{type:void 0,decorators:[{type:Tr},{type:wr,args:[$P]}]}]});class GP{_subject=new De;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;const t=this._locationStrategy.getBaseHref();this._basePath=function(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(UP(zP(t))),this._locationStrategy.onPopState((e=>{this._subject.next({url:this.path(!0),pop:!0,state:e.state,type:e.type})}))}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+jP(t))}normalize(e){return GP.stripTrailingSlash(function(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,zP(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._locationStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+jP(t)),n)}replaceState(e,t="",n=null){this._locationStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+jP(t)),n)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe((e=>{this._notifyUrlChangeListeners(e.url,e.state)})),()=>{const t=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(t,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach((n=>n(e,t)))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t??void 0,complete:n??void 0})}static normalizeQueryParams=jP;static joinWithSlash=FP;static stripTrailingSlash=UP;static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:GP,deps:[{token:VP}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:GP,providedIn:"root",useFactory:qP})}function qP(){return new GP(_r(VP))}function zP(e){return e.replace(/\/index.html$/,"")}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:GP,decorators:[{type:wc,args:[{providedIn:"root",useFactory:qP}]}],ctorParameters:()=>[{type:VP}]});const KP={ADP:[void 0,void 0,0],AFN:[void 0,"؋",0],ALL:[void 0,void 0,0],AMD:[void 0,"֏",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"₼"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"৳"],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¥","¥"],COP:[void 0,"$",2],CRC:[void 0,"₡",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"Kč",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E£"],ESP:[void 0,"₧",0],EUR:["€"],FJD:[void 0,"$"],FKP:[void 0,"£"],GBP:["£"],GEL:[void 0,"₾"],GHS:[void 0,"GH₵"],GIP:[void 0,"£"],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:["₪"],INR:["₹"],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:["¥",void 0,0],KHR:[void 0,"៛"],KMF:[void 0,"CF",0],KPW:[void 0,"₩",0],KRW:["₩",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"₸"],LAK:[void 0,"₭",0],LBP:[void 0,"L£",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,"₮",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"₦"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["₱"],PKR:[void 0,"Rs",2],PLN:[void 0,"zł"],PYG:[void 0,"₲",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"₽"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"£"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"£"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"£",0],THB:[void 0,"฿"],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,"₺"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"₴"],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:["₫",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["¤"],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]};var QP,YP,ZP,JP,XP;!function(e){e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific"}(QP||(QP={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other"}(YP||(YP={})),function(e){e[e.Format=0]="Format",e[e.Standalone=1]="Standalone"}(ZP||(ZP={})),function(e){e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short"}(JP||(JP={})),function(e){e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full"}(XP||(XP={}));const eR={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};var tR;function nR(e,t){return uR(mI(e)[bI.DateFormat],t)}function rR(e,t){return uR(mI(e)[bI.TimeFormat],t)}function iR(e,t){return uR(mI(e)[bI.DateTimeFormat],t)}function oR(e,t){const n=mI(e),r=n[bI.NumberSymbols][t];if(void 0===r){if(t===eR.CurrencyDecimal)return n[bI.NumberSymbols][eR.Decimal];if(t===eR.CurrencyGroup)return n[bI.NumberSymbols][eR.Group]}return r}function sR(e,t){return mI(e)[bI.NumberFormats][t]}!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(tR||(tR={}));const aR=yI;function cR(e){if(!e[bI.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[bI.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function uR(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function lR(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const dR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pR={},hR=/((?:[^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 fR(e,t,n,r){let i=function(e){if(AR(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,r=1]=e.split("-").map((e=>+e));return gR(t,n-1,r)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(dR))return function(e){const t=new Date(0);let n=0,r=0;const i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,s,a,c,u),t}(n)}const t=new Date(e);if(!AR(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=mR(n,t)||t;let o,s=[];for(;t;){if(o=hR.exec(t),!o){s.push(t);break}{s=s.concat(o.slice(1));const e=s.pop();if(!e)break;t=e}}let a=i.getTimezoneOffset();r&&(a=OR(r,a),i=function(e,t){const n=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(OR(t,n)-n))}(i,r));let c="";return s.forEach((e=>{const t=function(e){if(TR[e])return TR[e];let t;switch(e){case"G":case"GG":case"GGG":t=_R(3,JP.Abbreviated);break;case"GGGG":t=_R(3,JP.Wide);break;case"GGGGG":t=_R(3,JP.Narrow);break;case"y":t=ER(0,1,0,!1,!0);break;case"yy":t=ER(0,2,0,!0,!0);break;case"yyy":t=ER(0,3,0,!1,!0);break;case"yyyy":t=ER(0,4,0,!1,!0);break;case"Y":t=wR(1);break;case"YY":t=wR(2,!0);break;case"YYY":t=wR(3);break;case"YYYY":t=wR(4);break;case"M":case"L":t=ER(1,1,1);break;case"MM":case"LL":t=ER(1,2,1);break;case"MMM":t=_R(2,JP.Abbreviated);break;case"MMMM":t=_R(2,JP.Wide);break;case"MMMMM":t=_R(2,JP.Narrow);break;case"LLL":t=_R(2,JP.Abbreviated,ZP.Standalone);break;case"LLLL":t=_R(2,JP.Wide,ZP.Standalone);break;case"LLLLL":t=_R(2,JP.Narrow,ZP.Standalone);break;case"w":t=DR(1);break;case"ww":t=DR(2);break;case"W":t=DR(1,!0);break;case"d":t=ER(2,1);break;case"dd":t=ER(2,2);break;case"c":case"cc":t=ER(7,1);break;case"ccc":t=_R(1,JP.Abbreviated,ZP.Standalone);break;case"cccc":t=_R(1,JP.Wide,ZP.Standalone);break;case"ccccc":t=_R(1,JP.Narrow,ZP.Standalone);break;case"cccccc":t=_R(1,JP.Short,ZP.Standalone);break;case"E":case"EE":case"EEE":t=_R(1,JP.Abbreviated);break;case"EEEE":t=_R(1,JP.Wide);break;case"EEEEE":t=_R(1,JP.Narrow);break;case"EEEEEE":t=_R(1,JP.Short);break;case"a":case"aa":case"aaa":t=_R(0,JP.Abbreviated);break;case"aaaa":t=_R(0,JP.Wide);break;case"aaaaa":t=_R(0,JP.Narrow);break;case"b":case"bb":case"bbb":t=_R(0,JP.Abbreviated,ZP.Standalone,!0);break;case"bbbb":t=_R(0,JP.Wide,ZP.Standalone,!0);break;case"bbbbb":t=_R(0,JP.Narrow,ZP.Standalone,!0);break;case"B":case"BB":case"BBB":t=_R(0,JP.Abbreviated,ZP.Format,!0);break;case"BBBB":t=_R(0,JP.Wide,ZP.Format,!0);break;case"BBBBB":t=_R(0,JP.Narrow,ZP.Format,!0);break;case"h":t=ER(3,1,-12);break;case"hh":t=ER(3,2,-12);break;case"H":t=ER(3,1);break;case"HH":t=ER(3,2);break;case"m":t=ER(4,1);break;case"mm":t=ER(4,2);break;case"s":t=ER(5,1);break;case"ss":t=ER(5,2);break;case"S":t=ER(6,1);break;case"SS":t=ER(6,2);break;case"SSS":t=ER(6,3);break;case"Z":case"ZZ":case"ZZZ":t=bR(0);break;case"ZZZZZ":t=bR(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=bR(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=bR(2);break;default:return null}return TR[e]=t,t}(e);c+=t?t(i,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),c}function gR(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function mR(e,t){const n=function(e){return mI(e)[bI.LocaleId]}(e);if(pR[n]??={},pR[n][t])return pR[n][t];let r="";switch(t){case"shortDate":r=nR(e,XP.Short);break;case"mediumDate":r=nR(e,XP.Medium);break;case"longDate":r=nR(e,XP.Long);break;case"fullDate":r=nR(e,XP.Full);break;case"shortTime":r=rR(e,XP.Short);break;case"mediumTime":r=rR(e,XP.Medium);break;case"longTime":r=rR(e,XP.Long);break;case"fullTime":r=rR(e,XP.Full);break;case"short":const t=mR(e,"shortTime"),n=mR(e,"shortDate");r=vR(iR(e,XP.Short),[t,n]);break;case"medium":const i=mR(e,"mediumTime"),o=mR(e,"mediumDate");r=vR(iR(e,XP.Medium),[i,o]);break;case"long":const s=mR(e,"longTime"),a=mR(e,"longDate");r=vR(iR(e,XP.Long),[s,a]);break;case"full":const c=mR(e,"fullTime"),u=mR(e,"fullDate");r=vR(iR(e,XP.Full),[c,u])}return r&&(pR[n][t]=r),r}function vR(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function yR(e,t,n="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),o+s}function ER(e,t,n=0,r=!1,i=!1){return function(o,s){let a=function(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,o);if((n>0||a>-n)&&(a+=n),3===e)0===a&&-12===n&&(a=12);else if(6===e)return c=t,yR(a,3).substring(0,c);var c;const u=oR(s,eR.MinusSign);return yR(a,t,u,r,i)}}function _R(e,t,n=ZP.Format,r=!1){return function(i,o){return function(e,t,n,r,i,o){switch(n){case 2:return function(e,t,n){const r=mI(e),i=uR([r[bI.MonthsFormat],r[bI.MonthsStandalone]],t);return uR(i,n)}(t,i,r)[e.getMonth()];case 1:return function(e,t,n){const r=mI(e),i=uR([r[bI.DaysFormat],r[bI.DaysStandalone]],t);return uR(i,n)}(t,i,r)[e.getDay()];case 0:const s=e.getHours(),a=e.getMinutes();if(o){const e=function(e){const t=mI(e);return cR(t),(t[bI.ExtraData][2]||[]).map((e=>"string"==typeof e?lR(e):[lR(e[0]),lR(e[1])]))}(t),n=function(e,t,n){const r=mI(e);cR(r);const i=uR([r[bI.ExtraData][0],r[bI.ExtraData][1]],t)||[];return uR(i,n)||[]}(t,i,r),o=e.findIndex((e=>{if(Array.isArray(e)){const[t,n]=e,r=s>=t.hours&&a>=t.minutes,i=s<n.hours||s===n.hours&&a<n.minutes;if(t.hours<n.hours){if(r&&i)return!0}else if(r||i)return!0}else if(e.hours===s&&e.minutes===a)return!0;return!1}));if(-1!==o)return n[o]}return function(e,t,n){const r=mI(e),i=uR([r[bI.DayPeriodsFormat],r[bI.DayPeriodsStandalone]],t);return uR(i,n)}(t,i,r)[s<12?0:1];case 3:return function(e,t){return uR(mI(e)[bI.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(i,o,e,t,n,r)}}function bR(e){return function(t,n,r){const i=-1*r,o=oR(n,eR.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+yR(s,2,o)+yR(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+yR(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+yR(s,2,o)+":"+yR(Math.abs(i%60),2,o);case 3:return 0===r?"Z":(i>=0?"+":"")+yR(s,2,o)+":"+yR(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}const CR=0,SR=4;function IR(e){const t=e.getDay(),n=0===t?-3:SR-t;return gR(e.getFullYear(),e.getMonth(),e.getDate()+n)}function DR(e,t=!1){return function(n,r){let i;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();i=1+Math.floor((t+e)/7)}else{const e=IR(n),t=function(e){const t=gR(e,CR,1).getDay();return gR(e,0,1+(t<=SR?SR:SR+7)-t)}(e.getFullYear()),r=e.getTime()-t.getTime();i=1+Math.round(r/6048e5)}return yR(i,e,oR(r,eR.MinusSign))}}function wR(e,t=!1){return function(n,r){return yR(IR(n).getFullYear(),e,oR(r,eR.MinusSign),t)}}const TR={};function OR(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function AR(e){return e instanceof Date&&!isNaN(e.valueOf())}const NR=/^(\d+)?\.((\d+)(-(\d+))?)?$/,MR=22,PR=".",RR="0",xR=";",kR=",",LR="#";function FR(e,t,n,r,i,o,s=!1){let a="",c=!1;if(isFinite(e)){let u=function(e){let t,n,r,i,o,s=Math.abs(e)+"",a=0;for((n=s.indexOf(PR))>-1&&(s=s.replace(PR,"")),(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length),r=0;s.charAt(r)===RR;r++);if(r===(o=s.length))t=[0],n=1;else{for(o--;s.charAt(o)===RR;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(s.charAt(r))}return n>MR&&(t=t.splice(0,MR-1),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);s&&(u=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(o){const e=o.match(NR);if(null===e)throw new Error(`${o} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(l=jR(t)),null!=n&&(d=jR(n)),null!=r?p=jR(r):null!=n&&d>p&&(p=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen;const o=Math.min(Math.max(t,i),n);let s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let e=s;e<r.length;e++)r[e]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let e=1;e<s;e++)r[e]=0}if(a>=5)if(s-1<0){for(let t=0;t>s;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let c=0!==o;const u=t+e.integerLen,l=r.reduceRight((function(e,t,n,r){return t+=e,r[n]=t<10?t:t-10,c&&(0===r[n]&&n>=u?r.pop():c=!1),t>=10?1:0}),0);l&&(r.unshift(l),e.integerLen++)}(u,d,p);let h=u.digits,f=u.integerLen;const g=u.exponent;let m=[];for(c=h.every((e=>!e));f<l;f++)h.unshift(0);for(;f<0;f++)h.unshift(0);f>0?m=h.splice(f,h.length):(m=h,h=[0]);const v=[];for(h.length>=t.lgSize&&v.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)v.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&v.unshift(h.join("")),a=v.join(oR(n,r)),m.length&&(a+=oR(n,i)+m.join("")),g&&(a+=oR(n,eR.Exponential)+"+"+g)}else a=oR(n,eR.Infinity);return a=e<0&&!c?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}function UR(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(xR),i=r[0],o=r[1],s=-1!==i.indexOf(PR)?i.split(PR):[i.substring(0,i.lastIndexOf(RR)+1),i.substring(i.lastIndexOf(RR)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(LR));for(let e=0;e<c.length;e++){const t=c.charAt(e);t===RR?n.minFrac=n.maxFrac=e+1:t===LR?n.maxFrac=e+1:n.posSuf+=t}const u=a.split(kR);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,o){const e=i.length-n.posPre.length-n.posSuf.length,t=o.indexOf(LR);n.negPre=o.substring(0,t).replace(/'/g,""),n.negSuf=o.slice(t+e).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function jR(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class VR{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:VR,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:VR,providedIn:"root",useFactory:e=>new BR(e),deps:[{token:BO}]})}function $R(e,t,n,r){let i=`=${e}`;if(t.indexOf(i)>-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:VR,decorators:[{type:wc,args:[{providedIn:"root",useFactory:e=>new BR(e),deps:[BO]}]}]});class BR extends VR{locale;constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(aR(t||this.locale)(e)){case YP.Zero:return"zero";case YP.One:return"one";case YP.Two:return"two";case YP.Few:return"few";case YP.Many:return"many";default:return"other"}}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:BR,deps:[{token:BO}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:BR})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:BR,decorators:[{type:wc}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[BO]}]}]});const HR=/\s+/,GR=[];class qR{_ngEl;_renderer;initialClasses=GR;rawClass;stateMap=new Map;constructor(e,t){this._ngEl=e,this._renderer=t}set klass(e){this.initialClasses=null!=e?e.trim().split(HR):GR}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(HR):e}ngDoCheck(){for(const e of this.initialClasses)this._updateState(e,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const t of e)this._updateState(t,!0);else if(null!=e)for(const t of Object.keys(e))this._updateState(t,Boolean(e[t]));this._applyStateDiff()}_updateState(e,t){const n=this.stateMap.get(e);void 0!==n?(n.enabled!==t&&(n.changed=!0,n.enabled=t),n.touched=!0):this.stateMap.set(e,{enabled:t,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const t=e[0],n=e[1];n.changed?(this._toggleClass(t,n.enabled),n.changed=!1):n.touched||(n.enabled&&this._toggleClass(t,!1),this.stateMap.delete(t)),n.touched=!1}}_toggleClass(e,t){if(ngDevMode&&"string"!=typeof e)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Xt(e)}`);(e=e.trim()).length>0&&e.split(HR).forEach((e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)}))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:qR,deps:[{token:fu},{token:ty}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:qR,isStandalone:!0,selector:"[ngClass]",inputs:{klass:["class","klass"],ngClass:"ngClass"},ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:qR,decorators:[{type:mO,args:[{selector:"[ngClass]"}]}],ctorParameters:()=>[{type:fu},{type:ty}],propDecorators:{klass:[{type:EO,args:["class"]}],ngClass:[{type:EO,args:["ngClass"]}]}});class zR{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(e){this._viewContainerRef=e}_needToReCreateNgModuleInstance(e){return void 0!==e.ngComponentOutletNgModule||void 0!==e.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(e){return void 0!==e.ngComponentOutlet||void 0!==e.ngComponentOutletContent||void 0!==e.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(e)}ngOnChanges(e){if(this._needToReCreateComponentInstance(e)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(e)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=NE(this.ngComponentOutletNgModule,WR(t)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(WR(t)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:t,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const e of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(e,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(e){for(const[t,n]of this._inputsUsed)n?(e.setInput(t,this.ngComponentOutletInputs[t]),this._inputsUsed.set(t,!1)):(e.setInput(t,void 0),this._inputsUsed.delete(t))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:zR,deps:[{token:yy}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:zR,isStandalone:!0,selector:"[ngComponentOutlet]",inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],usesOnChanges:!0,ngImport:r})}function WR(e){return e.get(OE).injector}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:zR,decorators:[{type:mO,args:[{selector:"[ngComponentOutlet]",exportAs:"ngComponentOutlet"}]}],ctorParameters:()=>[{type:yy}],propDecorators:{ngComponentOutlet:[{type:EO}],ngComponentOutletInputs:[{type:EO}],ngComponentOutletInjector:[{type:EO}],ngComponentOutletContent:[{type:EO}],ngComponentOutletNgModule:[{type:EO}],ngComponentOutletNgModuleFactory:[{type:EO}]}});class KR{$implicit;ngForOf;index;count;constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class QR{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){"undefined"!=typeof ngDevMode&&!ngDevMode||null==e||"function"==typeof e||console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;if(!this._differ&&t)if("undefined"==typeof ngDevMode||ngDevMode)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch{let n=`Cannot find a differ supporting object '${t}' of type '${e=t,e.name||typeof e}'. NgFor only supports binding to Iterables, such as Arrays.`;throw"object"==typeof t&&(n+=" Did you mean to use the keyvalue pipe?"),new kt(-2200,n)}else this._differ=this._differs.find(t).create(this.ngForTrackBy)}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=this._viewContainer;e.forEachOperation(((e,n,r)=>{if(null==e.previousIndex)t.createEmbeddedView(this._template,new KR(e.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)t.remove(null===n?void 0:n);else if(null!==n){const i=t.get(n);t.move(i,r),YR(i,e)}}));for(let e=0,n=t.length;e<n;e++){const r=t.get(e).context;r.index=e,r.count=n,r.ngForOf=this._ngForOf}e.forEachIdentityChange((e=>{YR(t.get(e.currentIndex),e)}))}static ngTemplateContextGuard(e,t){return!0}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:QR,deps:[{token:yy},{token:Am},{token:GA}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:QR,isStandalone:!0,selector:"[ngFor][ngForOf]",inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},ngImport:r})}function YR(e,t){e.context.$implicit=t.item}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:QR,decorators:[{type:mO,args:[{selector:"[ngFor][ngForOf]"}]}],ctorParameters:()=>[{type:yy},{type:Am},{type:GA}],propDecorators:{ngForOf:[{type:EO}],ngForTrackBy:[{type:EO}],ngForTemplate:[{type:EO}]}});class ZR{_viewContainer;_context=new JR;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,t){this._viewContainer=e,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){XR("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){XR("ngIfElse",e),this._elseTemplateRef=e,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(e,t){return!0}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ZR,deps:[{token:yy},{token:Am}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:ZR,isStandalone:!0,selector:"[ngIf]",inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ZR,decorators:[{type:mO,args:[{selector:"[ngIf]"}]}],ctorParameters:()=>[{type:yy},{type:Am}],propDecorators:{ngIf:[{type:EO}],ngIfThen:[{type:EO}],ngIfElse:[{type:EO}]}});class JR{$implicit=null;ngIf=null}function XR(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Xt(t)}'.`)}class ex{_viewContainerRef;_templateRef;_created=!1;constructor(e,t){this._viewContainerRef=e,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}class tx{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const t=e===this._ngSwitch;return this._lastCasesMatched||=t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const t of this._defaultViews)t.enforceState(e)}}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:tx,deps:[],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:tx,isStandalone:!0,selector:"[ngSwitch]",inputs:{ngSwitch:"ngSwitch"},ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:tx,decorators:[{type:mO,args:[{selector:"[ngSwitch]"}]}],propDecorators:{ngSwitch:[{type:EO}]}});class nx{ngSwitch;_view;ngSwitchCase;constructor(e,t,n){this.ngSwitch=n,"undefined"!=typeof ngDevMode&&!ngDevMode||n||ix("ngSwitchCase","NgSwitchCase"),n._addCase(),this._view=new ex(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:nx,deps:[{token:yy},{token:Am},{token:tx,host:!0,optional:!0}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:nx,isStandalone:!0,selector:"[ngSwitchCase]",inputs:{ngSwitchCase:"ngSwitchCase"},ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:nx,decorators:[{type:mO,args:[{selector:"[ngSwitchCase]"}]}],ctorParameters:()=>[{type:yy},{type:Am},{type:tx,decorators:[{type:Tr},{type:Nr}]}],propDecorators:{ngSwitchCase:[{type:EO}]}});class rx{constructor(e,t,n){"undefined"!=typeof ngDevMode&&!ngDevMode||n||ix("ngSwitchDefault","NgSwitchDefault"),n._addDefault(new ex(e,t))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:rx,deps:[{token:yy},{token:Am},{token:tx,host:!0,optional:!0}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:rx,isStandalone:!0,selector:"[ngSwitchDefault]",ngImport:r})}function ix(e,t){throw new kt(2e3,`An element with the "${e}" attribute (matching the "${t}" directive) must be located inside an element with the "ngSwitch" attribute (matching "NgSwitch" directive)`)}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:rx,decorators:[{type:mO,args:[{selector:"[ngSwitchDefault]"}]}],ctorParameters:()=>[{type:yy},{type:Am},{type:tx,decorators:[{type:Tr},{type:Nr}]}]});class ox{_localization;_activeView;_caseViews={};constructor(e){this._localization=e}set ngPlural(e){this._updateView(e)}addCase(e,t){this._caseViews[e]=t}_updateView(e){this._clearViews();const t=$R(e,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[t])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(e){e&&(this._activeView=e,this._activeView.create())}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ox,deps:[{token:VR}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:ox,isStandalone:!0,selector:"[ngPlural]",inputs:{ngPlural:"ngPlural"},ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ox,decorators:[{type:mO,args:[{selector:"[ngPlural]"}]}],ctorParameters:()=>[{type:VR}],propDecorators:{ngPlural:[{type:EO}]}});class sx{value;constructor(e,t,n,r){this.value=e;const i=!isNaN(Number(e));r.addCase(i?`=${e}`:e,new ex(n,t))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:sx,deps:[{token:"ngPluralCase",attribute:!0},{token:Am},{token:yy},{token:ox,host:!0}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:sx,isStandalone:!0,selector:"[ngPluralCase]",ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:sx,decorators:[{type:mO,args:[{selector:"[ngPluralCase]"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:yc,args:["ngPluralCase"]}]},{type:Am},{type:yy},{type:ox,decorators:[{type:Nr}]}]});class ax{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split("."),i=-1===n.indexOf("-")?void 0:Rg.DashCase;null!=t?this._renderer.setStyle(this._ngEl.nativeElement,n,r?`${t}${r}`:t,i):this._renderer.removeStyle(this._ngEl.nativeElement,n,i)}_applyChanges(e){e.forEachRemovedItem((e=>this._setStyle(e.key,null))),e.forEachAddedItem((e=>this._setStyle(e.key,e.currentValue))),e.forEachChangedItem((e=>this._setStyle(e.key,e.currentValue)))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ax,deps:[{token:fu},{token:zA},{token:ty}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:ax,isStandalone:!0,selector:"[ngStyle]",inputs:{ngStyle:"ngStyle"},ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ax,decorators:[{type:mO,args:[{selector:"[ngStyle]"}]}],ctorParameters:()=>[{type:fu},{type:zA},{type:ty}],propDecorators:{ngStyle:[{type:EO,args:["ngStyle"]}]}});class cx{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;if(this._viewRef&&e.remove(e.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const t=this._createContextForwardProxy();this._viewRef=e.createEmbeddedView(this.ngTemplateOutlet,t,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,n)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,t,n),get:(e,t,n)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,n)}})}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:cx,deps:[{token:yy}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:cx,isStandalone:!0,selector:"[ngTemplateOutlet]",inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},usesOnChanges:!0,ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:cx,decorators:[{type:mO,args:[{selector:"[ngTemplateOutlet]"}]}],ctorParameters:()=>[{type:yy}],propDecorators:{ngTemplateOutletContext:[{type:EO}],ngTemplateOutlet:[{type:EO}],ngTemplateOutletInjector:[{type:EO}]}});const ux=[qR,zR,QR,ZR,cx,ax,tx,nx,rx,ox,sx];function lx(e,t){return new kt(2100,ngDevMode&&`InvalidPipeArgument: '${t}' for pipe '${Xt(e)}'`)}const dx=new class{createSubscription(e,t){return e.then(t,(e=>{throw e}))}dispose(e){}},px=new class{createSubscription(e,t){return uM((()=>e.subscribe({next:t,error:e=>{throw e}})))}dispose(e){uM((()=>e.unsubscribe()))}};class hx{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,(t=>this._updateLatestValue(e,t)))}_selectStrategy(e){if(Cb(e))return dx;if(Sb(e))return px;throw lx(hx,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:hx,deps:[{token:vA}],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:hx,isStandalone:!0,name:"async",pure:!1})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:hx,decorators:[{type:yO,args:[{name:"async",pure:!1}]}],ctorParameters:()=>[{type:vA}]});class fx{transform(e){if(null==e)return null;if("string"!=typeof e)throw lx(fx,e);return e.toLowerCase()}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:fx,deps:[],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:fx,isStandalone:!0,name:"lowercase"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:fx,decorators:[{type:yO,args:[{name:"lowercase"}]}]});const gx=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;class mx{transform(e){if(null==e)return null;if("string"!=typeof e)throw lx(mx,e);return e.replace(gx,(e=>e[0].toUpperCase()+e.slice(1).toLowerCase()))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:mx,deps:[],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:mx,isStandalone:!0,name:"titlecase"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:mx,decorators:[{type:yO,args:[{name:"titlecase"}]}]});class vx{transform(e){if(null==e)return null;if("string"!=typeof e)throw lx(vx,e);return e.toUpperCase()}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:vx,deps:[],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:vx,isStandalone:!0,name:"uppercase"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:vx,decorators:[{type:yO,args:[{name:"uppercase"}]}]});const yx=new Ln(ngDevMode?"DATE_PIPE_DEFAULT_TIMEZONE":""),Ex=new Ln(ngDevMode?"DATE_PIPE_DEFAULT_OPTIONS":"");class _x{locale;defaultTimezone;defaultOptions;constructor(e,t,n){this.locale=e,this.defaultTimezone=t,this.defaultOptions=n}transform(e,t,n,r){if(null==e||""===e||e!=e)return null;try{const i=t??this.defaultOptions?.dateFormat??"mediumDate",o=n??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return fR(e,i,r||this.locale,o)}catch(e){throw lx(_x,e.message)}}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:_x,deps:[{token:BO},{token:yx,optional:!0},{token:Ex,optional:!0}],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:_x,isStandalone:!0,name:"date"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:_x,decorators:[{type:yO,args:[{name:"date"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[BO]}]},{type:void 0,decorators:[{type:wr,args:[yx]},{type:Tr}]},{type:void 0,decorators:[{type:wr,args:[Ex]},{type:Tr}]}]});const bx=/#/g;class Cx{_localization;constructor(e){this._localization=e}transform(e,t,n){if(null==e)return"";if("object"!=typeof t||null===t)throw lx(Cx,t);return t[$R(e,Object.keys(t),this._localization,n)].replace(bx,e.toString())}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Cx,deps:[{token:VR}],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:Cx,isStandalone:!0,name:"i18nPlural"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Cx,decorators:[{type:yO,args:[{name:"i18nPlural"}]}],ctorParameters:()=>[{type:VR}]});class Sx{transform(e,t){if(null==e)return"";if("object"!=typeof t||"string"!=typeof e)throw lx(Sx,t);return t.hasOwnProperty(e)?t[e]:t.hasOwnProperty("other")?t.other:""}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Sx,deps:[],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:Sx,isStandalone:!0,name:"i18nSelect"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Sx,decorators:[{type:yO,args:[{name:"i18nSelect"}]}]});class Ix{transform(e){return JSON.stringify(e,null,2)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Ix,deps:[],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:Ix,isStandalone:!0,name:"json",pure:!1})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Ix,decorators:[{type:yO,args:[{name:"json",pure:!1}]}]});class Dx{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=wx;transform(e,t=wx){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ??=this.differs.find(e).create();const n=this.differ.diff(e),r=t!==this.compareFn;return n&&(this.keyValues=[],n.forEachItem((e=>{this.keyValues.push({key:e.key,value:e.currentValue})}))),(n||r)&&(t&&this.keyValues.sort(t),this.compareFn=t),this.keyValues}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Dx,deps:[{token:zA}],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:Dx,isStandalone:!0,name:"keyvalue",pure:!1})}function wx(e,t){const n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n<r?-1:1;if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;const i=String(n),o=String(r);return i==o?0:i<o?-1:1}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Dx,decorators:[{type:yO,args:[{name:"keyvalue",pure:!1}]}],ctorParameters:()=>[{type:zA}]});class Tx{_locale;constructor(e){this._locale=e}transform(e,t,n){if(!Nx(e))return null;n||=this._locale;try{return function(e,t,n){return FR(e,UR(sR(t,QP.Decimal),oR(t,eR.MinusSign)),t,eR.Group,eR.Decimal,n)}(Mx(e),n,t)}catch(e){throw lx(Tx,e.message)}}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Tx,deps:[{token:BO}],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:Tx,isStandalone:!0,name:"number"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Tx,decorators:[{type:yO,args:[{name:"number"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[BO]}]}]});class Ox{_locale;constructor(e){this._locale=e}transform(e,t,n){if(!Nx(e))return null;n||=this._locale;try{return function(e,t,n){return FR(e,UR(sR(t,QP.Percent),oR(t,eR.MinusSign)),t,eR.Group,eR.Decimal,n,!0).replace(new RegExp("%","g"),oR(t,eR.PercentSign))}(Mx(e),n,t)}catch(e){throw lx(Ox,e.message)}}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Ox,deps:[{token:BO}],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:Ox,isStandalone:!0,name:"percent"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Ox,decorators:[{type:yO,args:[{name:"percent"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[BO]}]}]});class Ax{_locale;_defaultCurrencyCode;constructor(e,t="USD"){this._locale=e,this._defaultCurrencyCode=t}transform(e,t=this._defaultCurrencyCode,n="symbol",r,i){if(!Nx(e))return null;i||=this._locale,"boolean"==typeof n&&(("undefined"==typeof ngDevMode||ngDevMode)&&console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),n=n?"symbol":"code");let o=t||this._defaultCurrencyCode;"code"!==n&&(o="symbol"===n||"symbol-narrow"===n?function(e,t,n="en"){const r=function(e){return mI(e)[bI.Currencies]}(n)[e]||KP[e]||[],i=r[1];return"narrow"===t&&"string"==typeof i?i:r[0]||e}(o,"symbol"===n?"wide":"narrow",i):n);try{return function(e,t,n,r,i){const o=UR(sR(t,QP.Currency),oR(t,eR.MinusSign));return o.minFrac=function(e){let t;const n=KP[e];return n&&(t=n[2]),"number"==typeof t?t:2}(r),o.maxFrac=o.minFrac,FR(e,o,t,eR.CurrencyGroup,eR.CurrencyDecimal,i).replace("¤",n).replace("¤","").trim()}(Mx(e),i,o,t,r)}catch(e){throw lx(Ax,e.message)}}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Ax,deps:[{token:BO},{token:HO}],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:Ax,isStandalone:!0,name:"currency"})}function Nx(e){return!(null==e||""===e||e!=e)}function Mx(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Ax,decorators:[{type:yO,args:[{name:"currency"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[BO]}]},{type:void 0,decorators:[{type:wr,args:[HO]}]}]});class Px{transform(e,t,n){if(null==e)return null;if(!this.supports(e))throw lx(Px,e);return e.slice(t,n)}supports(e){return"string"==typeof e||Array.isArray(e)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Px,deps:[],target:Ti.Pipe});static ɵpipe=tM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:Px,isStandalone:!0,name:"slice",pure:!1})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Px,decorators:[{type:yO,args:[{name:"slice",pure:!1}]}]});const Rx=[hx,vx,fx,Ix,Px,Tx,Ox,mx,Ax,_x,Cx,Sx,Dx];class xx{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:xx,deps:[],target:Ti.NgModule});static ɵmod=eM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:xx,imports:[qR,zR,QR,ZR,cx,ax,tx,nx,rx,ox,sx,hx,vx,fx,Ix,Px,Tx,Ox,mx,Ax,_x,Cx,Sx,Dx],exports:[qR,zR,QR,ZR,cx,ax,tx,nx,rx,ox,sx,hx,vx,fx,Ix,Px,Tx,Ox,mx,Ax,_x,Cx,Sx,Dx]});static ɵinj=XN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:xx})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:xx,decorators:[{type:SO,args:[{imports:[ux,Rx],exports:[ux,Rx]}]}]});const kx="browser";function Lx(e){return e===kx}function Fx(e){return"server"===e}new IO("19.1.3");class Ux{static ɵprov=Dn({token:Ux,providedIn:"root",factory:()=>"undefined"!=typeof ngServerMode&&ngServerMode?new Vx:new jx(Cr(RP),window)})}class jx{document;window;offset=()=>[0,0];constructor(e,t){this.document=e,this.window=t}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const e=r.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}}class Vx{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}}const $x="20";function Bx(e,t){return Hx(e)?new URL(e):new URL(e,t.location.href)}function Hx(e){return/^https?:\/\//.test(e)}function Gx(e){return Hx(e)?new URL(e).hostname:e}const qx=e=>e.src,zx=new Ln(ngDevMode?"ImageLoader":"",{providedIn:"root",factory:()=>qx});function Wx(e,t){return function(n){(function(e){if("string"!=typeof e||""===e.trim())return!1;try{return new URL(e),!0}catch{return!1}})(n)||function(e,t){throw new kt(2959,ngDevMode&&`Image loader has detected an invalid path (\`${e}\`). To fix this, supply a path using one of the following formats: ${t.join(" or ")}`)}(n,t||[]),n=function(e){return e.endsWith("/")?e.slice(0,-1):e}(n);const r=[{provide:zx,useValue:t=>{return Hx(t.src)&&function(e,t){throw new kt(2959,ngDevMode&&`Image loader has detected a \`<img>\` tag with an invalid \`ngSrc\` attribute: ${t}. This image loader expects \`ngSrc\` to be a relative URL - however the provided value is an absolute URL. To fix this, provide \`ngSrc\` as a path relative to the base URL configured for this loader (\`${e}\`).`)}(n,t.src),e(n,{...t,src:(r=t.src,r.startsWith("/")?r.slice(1):r)});var r}}];return r}}Wx((function(e,t){let n="format=auto";return t.width&&(n+=`,width=${t.width}`),t.isPlaceholder&&(n+=`,quality=${$x}`),`${e}/cdn-cgi/image/${n}/${t.src}`}),ngDevMode?["https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>"]:void 0);const Kx={name:"Cloudinary",testUrl:function(e){return Qx.test(e)}},Qx=/https?\:\/\/[^\/]+\.cloudinary\.com\/.+/;Wx((function(e,t){let n=`f_auto,${t.isPlaceholder?"q_auto:low":"q_auto"}`;return t.width&&(n+=`,w_${t.width}`),t.loaderParams?.rounded&&(n+=",r_max"),`${e}/image/upload/${n}/${t.src}`}),ngDevMode?["https://res.cloudinary.com/mysite","https://mysite.cloudinary.com","https://subdomain.mysite.com"]:void 0);const Yx={name:"ImageKit",testUrl:function(e){return Zx.test(e)}},Zx=/https?\:\/\/[^\/]+\.imagekit\.io\/.+/;Wx((function(e,t){const{src:n,width:r}=t,i=[];r&&i.push(`w-${r}`),t.isPlaceholder&&i.push(`q-${$x}`);const o=i.length?[e,`tr:${i.join(",")}`,n]:[e,n];return new URL(o.join("/")).href}),ngDevMode?["https://ik.imagekit.io/mysite","https://subdomain.mysite.com"]:void 0);const Jx={name:"Imgix",testUrl:function(e){return Xx.test(e)}},Xx=/https?\:\/\/[^\/]+\.imgix\.net\/.+/;Wx((function(e,t){const n=new URL(`${e}/${t.src}`);return n.searchParams.set("auto","format"),t.width&&n.searchParams.set("w",t.width.toString()),t.isPlaceholder&&n.searchParams.set("q",$x),n.href}),ngDevMode?["https://somepath.imgix.net/"]:void 0);const ek={name:"Netlify",testUrl:function(e){return tk.test(e)}},tk=/https?\:\/\/[^\/]+\.netlify\.app\/.+/;function nk(e,t=!0){return`The NgOptimizedImage directive ${t?`(activated on an <img> element with the \`ngSrc="${e}"\`) `:""}has detected that`}function rk(e){if(!ngDevMode)throw new kt(2958,`Unexpected invocation of the ${e} in the prod mode. Please make sure that the prod mode is enabled for production builds.`)}new Map([["height","h"],["fit","fit"],["quality","q"],["q","q"],["position","position"]]);class ik{images=new Map;window=null;observer=null;constructor(){const e=Lx(Cr(vl));rk("LCP checker");const t=Cr(RP).defaultView;e&&"undefined"!=typeof PerformanceObserver&&(this.window=t,this.observer=this.initPerformanceObserver())}initPerformanceObserver(){const e=new PerformanceObserver((e=>{const t=e.getEntries();if(0===t.length)return;const n=t[t.length-1],r=n.element?.src??"";if(r.startsWith("data:")||r.startsWith("blob:"))return;const i=this.images.get(r);i&&(i.priority||i.alreadyWarnedPriority||(i.alreadyWarnedPriority=!0,function(e){const t=nk(e);console.error(Lt(2955,`${t} this image is the Largest Contentful Paint (LCP) element but was not marked "priority". This image should be marked "priority" in order to prioritize its loading. To fix this, add the "priority" attribute.`))}(r)),i.modified&&!i.alreadyWarnedModified&&(i.alreadyWarnedModified=!0,function(e){const t=nk(e);console.warn(Lt(2964,`${t} this image is the Largest Contentful Paint (LCP) element and has had its "ngSrc" attribute modified. This can cause slower loading performance. It is recommended not to modify the "ngSrc" property on any image which could be the LCP element.`))}(r)))}));return e.observe({type:"largest-contentful-paint",buffered:!0}),e}registerImage(e,t,n){if(!this.observer)return;const r={priority:n,modified:!1,alreadyWarnedModified:!1,alreadyWarnedPriority:!1};this.images.set(Bx(e,this.window).href,r)}unregisterImage(e){this.observer&&this.images.delete(Bx(e,this.window).href)}updateImage(e,t){if(!this.observer)return;const n=Bx(e,this.window).href,r=this.images.get(n);r&&(r.modified=!0,this.images.set(Bx(t,this.window).href,r),this.images.delete(n))}ngOnDestroy(){this.observer&&(this.observer.disconnect(),this.images.clear())}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ik,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ik,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ik,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[]});const ok=new Set(["localhost","127.0.0.1","0.0.0.0"]),sk=new Ln(ngDevMode?"PRECONNECT_CHECK_BLOCKLIST":"");class ak{document=Cr(RP);isServer=Fx(Cr(vl));preconnectLinks=null;alreadySeen=new Set;window=null;blocklist=new Set(ok);constructor(){rk("preconnect link checker");const e=this.document.defaultView;void 0!==e&&(this.window=e);const t=Cr(sk,{optional:!0});t&&this.populateBlocklist(t)}populateBlocklist(e){Array.isArray(e)?ck(e,(e=>{this.blocklist.add(Gx(e))})):this.blocklist.add(Gx(e))}assertPreconnect(e,t){if(this.isServer)return;const n=Bx(e,this.window);this.blocklist.has(n.hostname)||this.alreadySeen.has(n.origin)||(this.alreadySeen.add(n.origin),this.preconnectLinks??=this.queryPreconnectLinks(),this.preconnectLinks.has(n.origin)||console.warn(Lt(2956,`${nk(t)} there is no preconnect tag present for this image. Preconnecting to the origin(s) that serve priority images ensures that these images are delivered as soon as possible. To fix this, please add the following element into the <head> of the document:\n <link rel="preconnect" href="${n.origin}">`)))}queryPreconnectLinks(){const e=new Set,t=Array.from(this.document.querySelectorAll("link[rel=preconnect]"));for(let n of t){const t=Bx(n.href,this.window);e.add(t.origin)}return e}ngOnDestroy(){this.preconnectLinks?.clear(),this.alreadySeen.clear()}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ak,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ak,providedIn:"root"})}function ck(e,t){for(let n of e)Array.isArray(n)?ck(n,t):t(n)}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:ak,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[]});const uk=new Ln("undefined"==typeof ngDevMode||ngDevMode?"NG_OPTIMIZED_PRELOADED_IMAGES":"",{providedIn:"root",factory:()=>new Set});class lk{preloadedImages=Cr(uk);document=Cr(RP);createPreloadLinkTag(e,t,n,r){if(ngDevMode&&this.preloadedImages.size>=5)throw new kt(2961,ngDevMode&&'The `NgOptimizedImage` directive has detected that more than 5 images were marked as priority. This might negatively affect an overall performance of the page. To fix this, remove the "priority" attribute from images with less priority.');if(this.preloadedImages.has(t))return;this.preloadedImages.add(t);const i=e.createElement("link");e.setAttribute(i,"as","image"),e.setAttribute(i,"href",t),e.setAttribute(i,"rel","preload"),e.setAttribute(i,"fetchpriority","high"),r&&e.setAttribute(i,"imageSizes",r),n&&e.setAttribute(i,"imageSrcset",n),e.appendChild(this.document.head,i)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:lk,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:lk,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:lk,decorators:[{type:wc,args:[{providedIn:"root"}]}]});const dk=/^((\s*\d+w\s*(,|$)){1,})$/,pk=/^((\s*\d+(\.\d+)?x\s*(,|$)){1,})$/,hk=[1,2],fk=[Jx,Yx,Kx,ek];let gk=0;class mk{imageLoader=Cr(zx);config=function(e){let t={};return e.breakpoints&&(t.breakpoints=e.breakpoints.sort(((e,t)=>e-t))),Object.assign({},bl,e,t)}(Cr(Cl));renderer=Cr(ty);imgElement=Cr(fu).nativeElement;injector=Cr(Ac);isServer=Fx(Cr(vl));preloadLinkCreator=Cr(lk);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){ngDevMode&&(this.lcpObserver=this.injector.get(ik),Cr(Rc).onDestroy((()=>{this.priority||null===this._renderedSrc||this.lcpObserver.unregisterImage(this._renderedSrc)})))}ngOnInit(){if(vu("NgOptimizedImage"),ngDevMode){const n=this.injector.get(Zc);vk(this,"ngSrc",this.ngSrc),function(e,t){if(null==t)return;vk(e,"ngSrcset",t);const n=t,r=dk.test(n),i=pk.test(n);if(i&&function(e,t){if(!t.split(",").every((e=>""===e||parseFloat(e)<=3)))throw new kt(2952,`${nk(e.ngSrc)} the \`ngSrcset\` contains an unsupported image density:\`${t}\`. NgOptimizedImage generally recommends a max image density of 2x but supports image densities up to 3x. The human eye cannot distinguish between image densities greater than 2x - which makes them unnecessary for most use cases. Images that will be pinch-zoomed are typically the primary use case for 3x images. Please remove the high density descriptor and try again.`)}(e,n),!r&&!i)throw new kt(2952,`${nk(e.ngSrc)} \`ngSrcset\` has an invalid value (\`${t}\`). To fix this, supply \`ngSrcset\` using a comma-separated list of one or more width descriptors (e.g. "100w, 200w") or density descriptors (e.g. "1x, 2x").`)}(this,this.ngSrcset),function(e){if(e.src)throw new kt(2950,`${nk(e.ngSrc)} both \`src\` and \`ngSrc\` have been set. Supplying both of these attributes breaks lazy loading. The NgOptimizedImage directive sets \`src\` itself based on the value of \`ngSrc\`. To fix this, please remove the \`src\` attribute.`)}(this),this.ngSrcset&&function(e){if(e.srcset)throw new kt(2951,`${nk(e.ngSrc)} both \`srcset\` and \`ngSrcset\` have been set. Supplying both of these attributes breaks lazy loading. The NgOptimizedImage directive sets \`srcset\` itself based on the value of \`ngSrcset\`. To fix this, please remove the \`srcset\` attribute.`)}(this),function(e){let t=e.ngSrc.trim();if(t.startsWith("data:"))throw t.length>50&&(t=t.substring(0,50)+"..."),new kt(2952,`${nk(e.ngSrc,!1)} \`ngSrc\` is a Base64-encoded string (${t}). NgOptimizedImage does not support Base64-encoded strings. To fix this, disable the NgOptimizedImage directive for this element by removing \`ngSrc\` and using a standard \`src\` attribute instead.`)}(this),function(e){const t=e.ngSrc.trim();if(t.startsWith("blob:"))throw new kt(2952,`${nk(e.ngSrc)} \`ngSrc\` was set to a blob URL (${t}). Blob URLs are not supported by the NgOptimizedImage directive. To fix this, disable the NgOptimizedImage directive for this element by removing \`ngSrc\` and using a regular \`src\` attribute instead.`)}(this),this.fill?(function(e){if(e.width||e.height)throw new kt(2952,`${nk(e.ngSrc)} the attributes \`height\` and/or \`width\` are present along with the \`fill\` attribute. Because \`fill\` mode causes an image to fill its containing element, the size attributes have no effect and should be removed.`)}(this),n.runOutsideAngular((()=>function(e,t,n){const r=()=>{i(),o();const n=t.clientHeight;e.fill&&0===n&&console.warn(Lt(2952,`${nk(e.ngSrc)} the height of the fill-mode image is zero. This is likely because the containing element does not have the CSS 'position' property set to one of the following: "relative", "fixed", or "absolute". To fix this problem, make sure the container element has the CSS 'position' property defined and the height of the element is not zero.`))},i=n.listen(t,"load",r),o=n.listen(t,"error",(()=>{i(),o()}));Ek(t,r)}(this,this.imgElement,this.renderer)))):(function(e){let t=[];if(void 0===e.width&&t.push("width"),void 0===e.height&&t.push("height"),t.length>0)throw new kt(2954,`${nk(e.ngSrc)} these required attributes are missing: ${t.map((e=>`"${e}"`)).join(", ")}. Including "width" and "height" attributes will prevent image-related layout shifts. To fix this, include "width" and "height" attributes on the image tag or turn on "fill" mode with the \`fill\` attribute.`)}(this),void 0!==this.height&&yk(this,this.height,"height"),void 0!==this.width&&yk(this,this.width,"width"),n.runOutsideAngular((()=>function(e,t,n){const r=()=>{i(),o();const n=window.getComputedStyle(t);let r=parseFloat(n.getPropertyValue("width")),s=parseFloat(n.getPropertyValue("height"));if("border-box"===n.getPropertyValue("box-sizing")){const e=n.getPropertyValue("padding-top"),t=n.getPropertyValue("padding-right"),i=n.getPropertyValue("padding-bottom"),o=n.getPropertyValue("padding-left");r-=parseFloat(t)+parseFloat(o),s-=parseFloat(e)+parseFloat(i)}const a=r/s,c=0!==r&&0!==s,u=t.naturalWidth,l=t.naturalHeight,d=u/l,p=e.width,h=e.height,f=p/h,g=Math.abs(f-d)>.1,m=c&&Math.abs(d-a)>.1;if(g)console.warn(Lt(2952,`${nk(e.ngSrc)} the aspect ratio of the image does not match the aspect ratio indicated by the width and height attributes. \nIntrinsic image size: ${u}w x ${l}h (aspect-ratio: ${_k(d)}). \nSupplied width and height attributes: ${p}w x ${h}h (aspect-ratio: ${_k(f)}). \nTo fix this, update the width and height attributes.`));else if(m)console.warn(Lt(2952,`${nk(e.ngSrc)} the aspect ratio of the rendered image does not match the image's intrinsic aspect ratio. \nIntrinsic image size: ${u}w x ${l}h (aspect-ratio: ${_k(d)}). \nRendered image size: ${r}w x ${s}h (aspect-ratio: ${_k(a)}). \nThis issue can occur if "width" and "height" attributes are added to an image without updating the corresponding image styling. To fix this, adjust image styling. In most cases, adding "height: auto" or "width: auto" to the image styling will fix this issue.`));else if(!e.ngSrcset&&c){const t=2*r,n=2*s;(u-t>=1e3||l-n>=1e3)&&console.warn(Lt(2960,`${nk(e.ngSrc)} the intrinsic image is significantly larger than necessary. \nRendered image size: ${r}w x ${s}h. \nIntrinsic image size: ${u}w x ${l}h. \nRecommended intrinsic image size: ${t}w x ${n}h. \nNote: Recommended intrinsic image size is calculated assuming a maximum DPR of 2. To improve loading time, resize the image or consider using the "ngSrcset" and "sizes" attributes.`))}},i=n.listen(t,"load",r),o=n.listen(t,"error",(()=>{i(),o()}));Ek(t,r)}(this,this.imgElement,this.renderer)))),function(e){if(e.loading&&e.priority)throw new kt(2952,`${nk(e.ngSrc)} the \`loading\` attribute was used on an image that was marked "priority". Setting \`loading\` on priority images is not allowed because these images will always be eagerly loaded. To fix this, remove the “loading” attribute from the priority image.`);if("string"==typeof e.loading&&!["auto","eager","lazy"].includes(e.loading))throw new kt(2952,`${nk(e.ngSrc)} the \`loading\` attribute has an invalid value (\`${e.loading}\`). To fix this, provide a valid value ("lazy", "eager", or "auto").`)}(this),this.ngSrcset||function(e){let t=e.sizes;if(t?.match(/((\)|,)\s|^)\d+px/))throw new kt(2952,`${nk(e.ngSrc,!1)} \`sizes\` was set to a string including pixel values. For automatic \`srcset\` generation, \`sizes\` must only include responsive values, such as \`sizes="50vw"\` or \`sizes="(min-width: 768px) 50vw, 100vw"\`. To fix this, modify the \`sizes\` attribute, or provide your own \`ngSrcset\` value directly.`)}(this),e=this,t=this.imageLoader,function(e){if(e.placeholderConfig&&!e.placeholder)throw new kt(2952,`${nk(e.ngSrc,!1)} \`placeholderConfig\` options were provided for an image that does not use the \`placeholder\` attribute, and will have no effect.`)}(e),function(e,t){if(!0===e.placeholder&&t===qx)throw new kt(2963,`${nk(e.ngSrc)} the \`placeholder\` attribute is set to true but no image loader is configured (i.e. the default one is being used), which would result in the same image being used for the primary image and its placeholder. To fix this, provide a loader or remove the \`placeholder\` attribute from the image.`)}(e,t),function(e){if(e.placeholder&&"string"==typeof e.placeholder&&e.placeholder.startsWith("data:")){if(e.placeholder.length>1e4)throw new kt(2965,`${nk(e.ngSrc)} the \`placeholder\` attribute is set to a data URL which is longer than 10000 characters. This is strongly discouraged, as large inline placeholders directly increase the bundle size of Angular and hurt page load performance. To fix this, generate a smaller data URL placeholder.`);e.placeholder.length>4e3&&console.warn(Lt(2965,`${nk(e.ngSrc)} the \`placeholder\` attribute is set to a data URL which is longer than 4000 characters. This is discouraged, as large inline placeholders directly increase the bundle size of Angular and hurt page load performance. For better loading performance, generate a smaller data URL placeholder.`))}}(e),function(e,t){if(t===qx){let t="";for(const n of fk)if(n.testUrl(e)){t=n.name;break}t&&console.warn(Lt(2962,`NgOptimizedImage: It looks like your images may be hosted on the ${t} CDN, but your app is not using Angular's built-in loader for that CDN. We recommend switching to use the built-in by calling \`provide${t}Loader()\` in your \`providers\` and passing it your instance's base URL. If you don't want to use the built-in loader, define a custom loader function using IMAGE_LOADER to silence this warning.`))}}(this.ngSrc,this.imageLoader),function(e,t){e.ngSrcset&&t===qx&&console.warn(Lt(2963,`${nk(e.ngSrc)} the \`ngSrcset\` attribute is present but no image loader is configured (i.e. the default one is being used), which would result in the same image being used for all configured sizes. To fix this, provide a loader or remove the \`ngSrcset\` attribute from the image.`))}(this,this.imageLoader),function(e,t){e.loaderParams&&t===qx&&console.warn(Lt(2963,`${nk(e.ngSrc)} the \`loaderParams\` attribute is present but no image loader is configured (i.e. the default one is being used), which means that the loaderParams data will not be consumed and will not affect the URL. To fix this, provide a custom loader or remove the \`loaderParams\` attribute from the image.`))}(this,this.imageLoader),n.runOutsideAngular((()=>{this.lcpObserver.registerImage(this.getRewrittenSrc(),this.ngSrc,this.priority)})),this.priority&&(this.injector.get(ak).assertPreconnect(this.getRewrittenSrc(),this.ngSrc),this.isServer||async function(e){0===gk?(gk++,await e.whenStable(),gk>10&&console.warn(Lt(2966,`NgOptimizedImage: The "priority" attribute is set to true more than 10 times (${gk} times). Marking too many images as "high" priority can hurt your application's LCP (https://web.dev/lcp). "Priority" should only be set on the image expected to be the page's LCP element.`))):gk++}(this.injector.get(kb)))}var e,t;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");const e=this.updateSrcAndSrcset();this.sizes?"lazy"===this.getLoadingBehavior()?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&dk.test(this.ngSrcset)&&"lazy"===this.getLoadingBehavior()&&this.setHostAttribute("sizes","auto, 100vw"),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),e,this.sizes)}ngOnChanges(e){if(ngDevMode&&function(e,t){["ngSrcset","width","height","priority","fill","loading","sizes","loaderParams","disableOptimizedSrcset"].forEach((n=>{if(t.hasOwnProperty(n)&&!t[n].isFirstChange())throw"ngSrc"===n&&(e={ngSrc:t[n].previousValue}),function(e,t){let n;return n="width"===t||"height"===t?`Changing \`${t}\` may result in different attribute value applied to the underlying image element and cause layout shifts on a page.`:`Changing the \`${t}\` would have no effect on the underlying image element, because the resource loading has already occurred.`,new kt(2953,`${nk(e.ngSrc)} \`${t}\` was updated after initialization. The NgOptimizedImage directive will not react to this input change. ${n} To fix this, either switch \`${t}\` to a static value or wrap the image element in an @if that is gated on the necessary value.`)}(e,n)}))}(this,e),e.ngSrc&&!e.ngSrc.isFirstChange()){const e=this._renderedSrc;if(this.updateSrcAndSrcset(!0),ngDevMode){const t=this._renderedSrc;e&&t&&e!==t&&this.injector.get(Zc).runOutsideAngular((()=>{this.lcpObserver.updateImage(e,t)}))}}ngDevMode&&e.placeholder?.currentValue&&!this.isServer&&function(e,t){const n=window.getComputedStyle(t);let r=parseFloat(n.getPropertyValue("width")),i=parseFloat(n.getPropertyValue("height"));(r>1e3||i>1e3)&&console.warn(Lt(2967,`${nk(e.ngSrc)} it uses a placeholder image, but at least one of the dimensions attribute (height or width) exceeds the limit of 1000px. To fix this, use a smaller image as a placeholder.`))}(this,this.imgElement)}callImageLoader(e){let t=e;return this.loaderParams&&(t.loaderParams=this.loaderParams),this.imageLoader(t)}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){const e={src:this.ngSrc};this._renderedSrc=this.callImageLoader(e)}return this._renderedSrc}getRewrittenSrcset(){const e=dk.test(this.ngSrcset);return this.ngSrcset.split(",").filter((e=>""!==e)).map((t=>{t=t.trim();const n=e?parseFloat(t):parseFloat(t)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:n})} ${t}`})).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:e}=this.config;let t=e;"100vw"===this.sizes?.trim()&&(t=e.filter((e=>e>=640)));return t.map((e=>`${this.callImageLoader({src:this.ngSrc,width:e})} ${e}w`)).join(", ")}updateSrcAndSrcset(e=!1){e&&(this._renderedSrc=null);const t=this.getRewrittenSrc();let n;return this.setHostAttribute("src",t),this.ngSrcset?n=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(n=this.getAutomaticSrcset()),n&&this.setHostAttribute("srcset",n),n}getFixedSrcset(){return hk.map((e=>`${this.callImageLoader({src:this.ngSrc,width:this.width*e})} ${e}x`)).join(", ")}shouldGenerateAutomaticSrcset(){let e=!1;return this.sizes||(e=this.width>1920||this.height>1080),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==qx&&!e}generatePlaceholder(e){const{placeholderResolution:t}=this.config;return!0===e?`url(${this.callImageLoader({src:this.ngSrc,width:t,isPlaceholder:!0})})`:"string"==typeof e?`url(${e})`:null}shouldBlurPlaceholder(e){return!e||!e.hasOwnProperty("blur")||Boolean(e.blur)}removePlaceholderOnLoad(e){const t=()=>{const e=this.injector.get(vA);n(),r(),this.placeholder=!1,e.markForCheck()},n=this.renderer.listen(e,"load",t),r=this.renderer.listen(e,"error",t);Ek(e,t)}setHostAttribute(e,t){this.renderer.setAttribute(this.imgElement,e,t)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:mk,deps:[],target:Ti.Directive});static ɵdir=zN({minVersion:"16.1.0",version:"19.1.3",type:mk,isStandalone:!0,selector:"img[ngSrc]",inputs:{ngSrc:["ngSrc","ngSrc",bk],ngSrcset:"ngSrcset",sizes:"sizes",width:["width","width",LN],height:["height","height",LN],loading:"loading",priority:["priority","priority",kN],loaderParams:"loaderParams",disableOptimizedSrcset:["disableOptimizedSrcset","disableOptimizedSrcset",kN],fill:["fill","fill",kN],placeholder:["placeholder","placeholder",Ck],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},host:{properties:{"style.position":'fill ? "absolute" : null',"style.width":'fill ? "100%" : null',"style.height":'fill ? "100%" : null',"style.inset":'fill ? "0" : null',"style.background-size":'placeholder ? "cover" : null',"style.background-position":'placeholder ? "50% 50%" : null',"style.background-repeat":'placeholder ? "no-repeat" : null',"style.background-image":"placeholder ? generatePlaceholder(placeholder) : null","style.filter":'placeholder && shouldBlurPlaceholder(placeholderConfig) ? "blur(15px)" : null'}},usesOnChanges:!0,ngImport:r})}function vk(e,t,n){const r="string"==typeof n,i=r&&""===n.trim();if(!r||i)throw new kt(2952,`${nk(e.ngSrc)} \`${t}\` has an invalid value (\`${n}\`). To fix this, change the value to a non-empty string.`)}function yk(e,t,n){const r="number"==typeof t&&t>0,i="string"==typeof t&&/^\d+$/.test(t.trim())&&parseInt(t)>0;if(!r&&!i)throw new kt(2952,`${nk(e.ngSrc)} \`${n}\` has an invalid value. To fix this, provide \`${n}\` as a number greater than 0.`)}function Ek(e,t){e.complete&&e.naturalWidth&&t()}function _k(e){return Number.isInteger(e)?e:e.toFixed(2)}function bk(e){return"string"==typeof e?e:Xp(e)}function Ck(e){return"string"==typeof e&&"true"!==e&&"false"!==e&&""!==e?e:kN(e)}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:mk,decorators:[{type:mO,args:[{selector:"img[ngSrc]",host:{"[style.position]":'fill ? "absolute" : null',"[style.width]":'fill ? "100%" : null',"[style.height]":'fill ? "100%" : null',"[style.inset]":'fill ? "0" : null',"[style.background-size]":'placeholder ? "cover" : null',"[style.background-position]":'placeholder ? "50% 50%" : null',"[style.background-repeat]":'placeholder ? "no-repeat" : null',"[style.background-image]":"placeholder ? generatePlaceholder(placeholder) : null","[style.filter]":'placeholder && shouldBlurPlaceholder(placeholderConfig) ? "blur(15px)" : null'}}]}],ctorParameters:()=>[],propDecorators:{ngSrc:[{type:EO,args:[{required:!0,transform:bk}]}],ngSrcset:[{type:EO}],sizes:[{type:EO}],width:[{type:EO,args:[{transform:LN}]}],height:[{type:EO,args:[{transform:LN}]}],loading:[{type:EO}],priority:[{type:EO,args:[{transform:kN}]}],loaderParams:[{type:EO}],disableOptimizedSrcset:[{type:EO,args:[{transform:kN}]}],fill:[{type:EO,args:[{transform:kN}]}],placeholder:[{type:EO,args:[{transform:Ck}]}],placeholderConfig:[{type:EO}],src:[{type:EO}],srcset:[{type:EO}]}});var Sk=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Ik(e){return Q(null==e?void 0:e.then)}function Dk(e){return Q(e[Ee])}function wk(e){return Symbol.asyncIterator&&Q(null==e?void 0:e[Symbol.asyncIterator])}function Tk(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var Ok="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Ak(e){return Q(null==e?void 0:e[Ok])}function Nk(e){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return",(function(e){return function(t){return Promise.resolve(t).then(e,u)}})),r[Symbol.asyncIterator]=function(){return this},r;function s(e,t){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))},t&&(r[e]=t(r[e])))}function a(e,t){try{(n=i[e](t)).value instanceof K?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,(function(){var t,n,r;return G(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,K(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,K(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,K(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function Mk(e){return Q(null==e?void 0:e.getReader)}function Pk(e){if(e instanceof Ce)return e;if(null!=e){if(Dk(e))return i=e,new Ce((function(e){var t=i[Ee]();if(Q(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(Sk(e))return r=e,new Ce((function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()}));if(Ik(e))return n=e,new Ce((function(e){n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,oe)}));if(wk(e))return Rk(e);if(Ak(e))return t=e,new Ce((function(e){var n,r;try{for(var i=q(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.next(s),e.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()}));if(Mk(e))return Rk(Nk(e))}var t,n,r,i;throw Tk(e)}function Rk(e){return new Ce((function(t){(function(e,t){var n,r,i,o,s,a,c,u;return s=this,a=void 0,u=function(){var s,a;return G(this,(function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=q(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}(e),c.label=1;case 1:return[4,n.next()];case 2:if((r=c.sent()).done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),i={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))},new((c=void 0)||(c=Promise))((function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function r(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof c?i:new c((function(e){e(i)}))).then(n,r)}i((u=u.apply(s,a||[])).next())}))})(e,t).catch((function(e){return t.error(e)}))}))}function xk(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule((function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(o),!i)return o}function kk(e,t){return void 0===t&&(t=0),At((function(n,r){n.subscribe(Nt(r,(function(n){return xk(r,e,(function(){return r.next(n)}),t)}),(function(){return xk(r,e,(function(){return r.complete()}),t)}),(function(n){return xk(r,e,(function(){return r.error(n)}),t)})))}))}function Lk(e,t){return void 0===t&&(t=0),At((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}function Fk(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ce((function(n){xk(n,t,(function(){var r=e[Symbol.asyncIterator]();xk(n,t,(function(){r.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}function Uk(e,t){if(null!=e){if(Dk(e))return function(e,t){return Pk(e).pipe(Lk(t),kk(t))}(e,t);if(Sk(e))return function(e,t){return new Ce((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}(e,t);if(Ik(e))return function(e,t){return Pk(e).pipe(Lk(t),kk(t))}(e,t);if(wk(e))return Fk(e,t);if(Ak(e))return function(e,t){return new Ce((function(n){var r;return xk(n,t,(function(){r=e[Ok](),xk(n,t,(function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){return void n.error(e)}i?n.complete():n.next(t)}),0,!0)})),function(){return Q(null==r?void 0:r.return)&&r.return()}}))}(e,t);if(Mk(e))return function(e,t){return Fk(Nk(e),t)}(e,t)}throw Tk(e)}var jk,Vk=function(e){function t(t,n){return e.call(this)||this}return H(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(X),$k={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=$k.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,W([e,t],z(n))):setInterval.apply(void 0,W([e,t],z(n)))},clearInterval:function(e){var t=$k.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},Bk=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return H(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),$k.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&$k.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,J(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Vk),Hk=1,Gk={};function qk(e){return e in Gk&&(delete Gk[e],!0)}var zk=function(e){var t=Hk++;return Gk[t]=!0,jk||(jk=Promise.resolve()),jk.then((function(){return qk(t)&&e()})),t},Wk=function(e){qk(e)},Kk={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Kk.delegate;return((null==n?void 0:n.setImmediate)||zk).apply(void 0,W([],z(e)))},clearImmediate:function(e){var t=Kk.delegate;return((null==t?void 0:t.clearImmediate)||Wk)(e)},delegate:void 0},Qk=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return H(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Kk.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var o=t.actions;null!=n&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(Kk.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(Bk),Yk=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=VM.now,e}(),Zk=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return H(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(function(e){function t(t,n){void 0===n&&(n=Yk.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return H(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(Yk)))(Qk);function Jk(e,t){return t?Uk(e,t):Pk(e)}function Xk(e){return e[e.length-1]}function eL(e){return(t=Xk(e))&&Q(t.schedule)?e.pop():void 0;var t}function tL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Jk(e,eL(e))}var nL=Array.isArray,rL=Object.getPrototypeOf,iL=Object.prototype,oL=Object.keys;var sL=Array.isArray;function aL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=eL(e),r=function(e){return Q(Xk(e))?e.pop():void 0}(e),i=function(e){if(1===e.length){var t=e[0];if(nL(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&rL(r)===iL){var n=oL(t);return{args:n.map((function(e){return t[e]})),keys:n}}}var r;return{args:e,keys:null}}(e),o=i.args,s=i.keys;if(0===o.length)return Jk([],n);var a=new Ce(function(e,t,n){return void 0===n&&(n=_e),function(r){cL(t,(function(){for(var i=e.length,o=new Array(i),s=i,a=i,c=function(i){cL(t,(function(){var c=Jk(e[i],t),u=!1;c.subscribe(Nt(r,(function(e){o[i]=e,u||(u=!0,a--),a||r.next(n(o.slice()))}),(function(){--s||r.complete()})))}),r)},u=0;u<i;u++)c(u)}),r)}}(o,n,s?function(e){return function(e,t){return e.reduce((function(e,n,r){return e[n]=t[r],e}),{})}(s,e)}:_e));return r?a.pipe(function(e){return Pt((function(t){return function(e,t){return sL(t)?e.apply(void 0,W([],z(t))):e(t)}(e,t)}))}(r)):a}function cL(e,t,n){e?xk(n,e,t):t()}function uL(e,t,n){return void 0===n&&(n=1/0),Q(t)?uL((function(n,r){return Pt((function(e,i){return t(n,e,r,i)}))(Pk(e(n,r)))}),n):("number"==typeof t&&(n=t),At((function(t,r){return function(e,t,n,r){var i=[],o=0,s=0,a=!1,c=function(){!a||i.length||o||t.complete()},u=function(e){return o<r?l(e):i.push(e)},l=function(e){o++;var a=!1;Pk(n(e,s++)).subscribe(Nt(t,(function(e){t.next(e)}),(function(){a=!0}),void 0,(function(){if(a)try{o--;for(;i.length&&o<r;)e=void 0,e=i.shift(),l(e);c()}catch(e){t.error(e)}var e})))};return e.subscribe(Nt(t,u,(function(){a=!0,c()}))),function(){}}(t,r,e,n)})))}function lL(e){return void 0===e&&(e=1/0),uL(_e,e)}function dL(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return lL(1)(Jk(e,eL(e)))}function pL(e){return new Ce((function(t){Pk(e()).subscribe(t)}))}function hL(e,t){var n=Q(e)?e:function(){return e},r=function(e){return e.error(n())};return new Ce(t?function(e){return t.schedule(r,0,e)}:r)}function fL(){return At((function(e,t){var n=null;e._refCount++;var r=Nt(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(n=e.connect())}))}var gL=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,Ot(t)&&(r.lift=t.lift),r}return H(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new X;var n=this.getSubject();t.add(this.source.subscribe(Nt(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=X.EMPTY)}return t},t.prototype.refCount=function(){return fL()(this)},t}(Ce);function mL(e,t){return At((function(n,r){var i=null,o=0,s=!1,a=function(){return s&&!i&&r.complete()};n.subscribe(Nt(r,(function(n){null==i||i.unsubscribe();var s=0,c=o++;Pk(e(n,c)).subscribe(i=Nt(r,(function(e){return r.next(t?t(n,e,c,s++):e)}),(function(){i=null,a()})))}),(function(){s=!0,a()})))}))}function vL(e,t){return Q(t)?uL(e,t,1):uL(e,1)}function yL(e,t,n){var r=Q(e)||t||n?{next:e,error:t,complete:n}:e;return r?At((function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var i=!0;e.subscribe(Nt(t,(function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)}),(function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var n;i=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)}),(function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):_e}function EL(e){return At((function(t,n){var r,i=null,o=!1;i=t.subscribe(Nt(n,void 0,void 0,(function(s){r=Pk(e(s,EL(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(n)):o=!0}))),o&&(i.unsubscribe(),i=null,r.subscribe(n))}))}function _L(e){return e<=0?function(){return qM}:At((function(t,n){var r=[];t.subscribe(Nt(n,(function(t){r.push(t),e<r.length&&r.shift()}),(function(){var e,t;try{for(var i=q(r),o=i.next();!o.done;o=i.next()){var s=o.value;n.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){r=null})))}))}function bL(e){return At((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}class CL extends NP{supportsDOMEvents=!0}class SL extends CL{static makeCurrent(){var e;e=new SL,OP??=e}onAndCancel(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=(IL=IL||document.querySelector("base"),IL?IL.getAttribute("href"):null);return null==t?null:new URL(t,document.baseURI).pathname}resetBaseElement(){IL=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,e)}}let IL=null;class DL{build(){return new XMLHttpRequest}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:DL,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:DL})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:DL,decorators:[{type:wc}]});const wL=new Ln(ngDevMode?"EventManagerPlugins":"");class TL{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach((e=>{e.manager=this})),this._plugins=e.slice().reverse()}addEventListener(e,t,n,r){return this._findPluginFor(t).addEventListener(e,t,n,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find((t=>t.supports(e))),!t)throw new kt(5101,("undefined"==typeof ngDevMode||ngDevMode)&&`No event manager plugin found for event ${e}`);return this._eventNameToPlugin.set(e,t),t}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:TL,deps:[{token:wL},{token:Zc}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:TL})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:TL,decorators:[{type:wc}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[wL]}]},{type:Zc}]});class OL{_doc;constructor(e){this._doc=e}manager}const AL="ng-app-id";function NL(e){for(const t of e)t.remove()}function ML(e,t){const n=t.createElement("style");return n.textContent=e,n}function PL(e,t){const n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}class RL{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,n,r={}){this.doc=e,this.appId=t,this.nonce=n,this.isServer=Fx(r),function(e,t,n,r){const i=e.head?.querySelectorAll(`style[${AL}="${t}"],link[${AL}="${t}"]`);if(i)for(const e of i)e.removeAttribute(AL),e instanceof HTMLLinkElement?r.set(e.href.slice(e.href.lastIndexOf("/")+1),{usage:0,elements:[e]}):e.textContent&&n.set(e.textContent,{usage:0,elements:[e]})}(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(const t of e)this.addUsage(t,this.inline,ML);t?.forEach((e=>this.addUsage(e,this.external,PL)))}removeStyles(e,t){for(const t of e)this.removeUsage(t,this.inline);t?.forEach((e=>this.removeUsage(e,this.external)))}addUsage(e,t,n){const r=t.get(e);r?("undefined"!=typeof ngDevMode&&!ngDevMode||0!==r.usage||r.elements.forEach((e=>e.setAttribute("ng-style-reused",""))),r.usage++):t.set(e,{usage:1,elements:[...this.hosts].map((t=>this.addElement(t,n(e,this.doc))))})}removeUsage(e,t){const n=t.get(e);n&&(n.usage--,n.usage<=0&&(NL(n.elements),t.delete(e)))}ngOnDestroy(){for(const[,{elements:e}]of[...this.inline,...this.external])NL(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(const[t,{elements:n}]of this.inline)n.push(this.addElement(e,ML(t,this.doc)));for(const[t,{elements:n}]of this.external)n.push(this.addElement(e,PL(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(AL,this.appId),e.appendChild(t)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:RL,deps:[{token:RP},{token:fl},{token:_l,optional:!0},{token:vl}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:RL})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:RL,decorators:[{type:wc}],ctorParameters:()=>[{type:Document,decorators:[{type:wr,args:[RP]}]},{type:void 0,decorators:[{type:wr,args:[fl]}]},{type:void 0,decorators:[{type:wr,args:[_l]},{type:Tr}]},{type:void 0,decorators:[{type:wr,args:[vl]}]}]});const xL={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"},kL=/%COMP%/g,LL="%COMP%",FL=`_nghost-${LL}`,UL=`_ngcontent-${LL}`,jL=new Ln(ngDevMode?"RemoveStylesOnCompDestroy":"",{providedIn:"root",factory:()=>!0});function VL(e,t){return t.map((t=>t.replace(kL,e)))}class $L{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,n,r,i,o,s,a=null,c=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=i,this.platformId=o,this.ngZone=s,this.nonce=a,this.tracingService=c,this.platformIsServer=Fx(o),this.defaultRenderer=new BL(e,i,s,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Up.ShadowDom&&(t={...t,encapsulation:Up.Emulated});const n=this.getOrCreateRenderer(e,t);return n instanceof KL?n.applyToHost(e):n instanceof WL&&n.applyStyles(),n}getOrCreateRenderer(e,t){const n=this.rendererByCompId;let r=n.get(t.id);if(!r){const i=this.doc,o=this.ngZone,s=this.eventManager,a=this.sharedStylesHost,c=this.removeStylesOnCompDestroy,u=this.platformIsServer;switch(t.encapsulation){case Up.Emulated:r=new KL(s,a,t,this.appId,c,i,o,u,this.tracingService);break;case Up.ShadowDom:return new zL(s,a,e,t,i,o,this.nonce,u,this.tracingService);default:r=new WL(s,a,t,c,i,o,u,this.tracingService)}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:$L,deps:[{token:TL},{token:RL},{token:fl},{token:jL},{token:RP},{token:vl},{token:Zc},{token:_l},{token:Jl,optional:!0}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:$L})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:$L,decorators:[{type:wc}],ctorParameters:()=>[{type:TL},{type:RL},{type:void 0,decorators:[{type:wr,args:[fl]}]},{type:void 0,decorators:[{type:wr,args:[jL]}]},{type:Document,decorators:[{type:wr,args:[RP]}]},{type:Object,decorators:[{type:wr,args:[vl]}]},{type:Zc},{type:void 0,decorators:[{type:wr,args:[_l]}]},{type:Jl,decorators:[{type:wr,args:[Jl]},{type:Tr}]}]});class BL{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,r,i){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(xL[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(qL(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(qL(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n="string"==typeof e?this.doc.querySelector(e):e;if(!n)throw new kt(-5104,("undefined"==typeof ngDevMode||ngDevMode)&&`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const i=xL[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=xL[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(Rg.DashCase|Rg.Important)?e.style.setProperty(t,n,r&Rg.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&Rg.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){null!=e&&(("undefined"==typeof ngDevMode||ngDevMode)&&this.throwOnSyntheticProps&&GL(t,"property"),e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,r){if(("undefined"==typeof ngDevMode||ngDevMode)&&this.throwOnSyntheticProps&&GL(t,"listener"),"string"==typeof e&&!(e=AP().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${t}`);let i=this.decoratePreventDefault(n);return null!==this.tracingService&&this.tracingService.wrapEventListener&&(i=this.tracingService.wrapEventListener(e,t,i)),this.eventManager.addEventListener(e,t,i,r)}decoratePreventDefault(e){return t=>{if("__ngUnwrap__"===t)return e;!1===(this.platformIsServer?this.ngZone.runGuarded((()=>e(t))):e(t))&&t.preventDefault()}}}const HL="@".charCodeAt(0);function GL(e,t){if(e.charCodeAt(0)===HL)throw new kt(5105,`Unexpected synthetic ${t} ${e} found. Please make sure that:\n - Make sure \`provideAnimationsAsync()\`, \`provideAnimations()\` or \`provideNoopAnimations()\` call was added to a list of providers used to bootstrap an application.\n - There is a corresponding animation configuration named \`${e}\` defined in the \`animations\` field of the \`@Component\` decorator (see https://angular.dev/api/core/Component#animations).`)}function qL(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class zL extends BL{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,r,i,o,s,a,c){super(e,i,o,a,c),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=VL(r.id,r.styles);for(const e of u){const t=document.createElement("style");s&&t.setAttribute("nonce",s),t.textContent=e,this.shadowRoot.appendChild(t)}const l=r.getExternalStyles?.();if(l)for(const e of l){const t=PL(e,i);s&&t.setAttribute("nonce",s),this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class WL extends BL{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,r,i,o,s,a,c){super(e,i,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=c?VL(c,n.styles):n.styles,this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class KL extends WL{contentAttr;hostAttr;constructor(e,t,n,r,i,o,s,a,c){const u=r+"-"+n.id;var l;super(e,t,n,i,o,s,a,c,u),this.contentAttr=(l=u,UL.replace(kL,l)),this.hostAttr=function(e){return FL.replace(kL,e)}(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class QL extends OL{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n,r){return e.addEventListener(t,n,r),()=>this.removeEventListener(e,t,n,r)}removeEventListener(e,t,n,r){return e.removeEventListener(t,n,r)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:QL,deps:[{token:RP}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:QL})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:QL,decorators:[{type:wc}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[RP]}]}]});const YL=["alt","control","meta","shift"],ZL={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},JL={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class XL extends OL{constructor(e){super(e)}supports(e){return null!=XL.parseEventName(e)}addEventListener(e,t,n,r){const i=XL.parseEventName(t),o=XL.eventCallback(i.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular((()=>AP().onAndCancel(e,i.domEventName,o,r)))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=XL._normalizeKey(t.pop());let i="",o=t.indexOf("code");if(o>-1&&(t.splice(o,1),i="code."),YL.forEach((e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")})),i+=r,0!=t.length||0===r.length)return null;const s={};return s.domEventName=n,s.fullKey=i,s}static matchEventFullKeyCode(e,t){let n=ZL[e.key]||e.key,r="";return t.indexOf("code.")>-1&&(n=e.code,r="code."),!(null==n||!n)&&(n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),YL.forEach((t=>{t!==n&&(0,JL[t])(e)&&(r+=t+".")})),r+=n,r===t)}static eventCallback(e,t,n){return r=>{XL.matchEventFullKeyCode(r,e)&&n.runGuarded((()=>t(r)))}}static _normalizeKey(e){return"esc"===e?"escape":e}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:XL,deps:[{token:RP}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:XL})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:XL,decorators:[{type:wc}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[RP]}]}]});const eF=(nA(ZA,"browser",[{provide:vl,useValue:kx},{provide:ml,useValue:function(){SL.makeCurrent()},multi:!0},{provide:RP,useFactory:function(){return pl(document),document},deps:[]}]),new Ln("undefined"==typeof ngDevMode||ngDevMode?"BrowserModule Providers Marker":"")),tF=[{provide:vb,useClass:class{addToWindow(e){Qt.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new kt(5103,("undefined"==typeof ngDevMode||ngDevMode)&&"Could not find testability for element.");return r},Qt.getAllAngularTestabilities=()=>e.getAllTestabilities(),Qt.getAllAngularRootElements=()=>e.getAllRootElements(),Qt.frameworkStabilizers||(Qt.frameworkStabilizers=[]),Qt.frameworkStabilizers.push((e=>{const t=Qt.getAllAngularTestabilities();let n=t.length;const r=function(){n--,0==n&&e()};t.forEach((e=>{e.whenStable(r)}))}))}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?AP().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}},deps:[]},{provide:mb,useClass:yb,deps:[Zc,Eb,vb]},{provide:yb,useClass:yb,deps:[Zc,Eb,vb]}],nF=[{provide:pi,useValue:"root"},{provide:ou,useFactory:function(){return new ou},deps:[]},{provide:wL,useClass:QL,multi:!0,deps:[RP,Zc,vl]},{provide:wL,useClass:XL,multi:!0,deps:[RP]},$L,RL,TL,{provide:ey,useExisting:$L},{provide:class{},useClass:DL,deps:[]},"undefined"==typeof ngDevMode||ngDevMode?{provide:eF,useValue:!0}:[]];class rF{constructor(){if(("undefined"==typeof ngDevMode||ngDevMode)&&Cr(eF,{optional:!0,skipSelf:!0}))throw new kt(5100,"Providers from the `BrowserModule` have already been loaded. If you need access to common directives such as NgIf and NgFor, import the `CommonModule` instead.")}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:rF,deps:[],target:Ti.NgModule});static ɵmod=eM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:rF,exports:[xx,JA]});static ɵinj=XN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:rF,providers:[...nF,...tF],imports:[xx,JA]})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:rF,decorators:[{type:SO,args:[{providers:[...nF,...tF],exports:[xx,JA]}]}],ctorParameters:()=>[]});class iF{_doc;_dom;constructor(e){this._doc=e,this._dom=AP()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce(((e,n)=>(n&&e.push(this._getOrCreateElement(n,t)),e)),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);const n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,t=!1){if(!t){const t=this._parseSelector(e),n=this.getTags(t).filter((t=>this._containsAttributes(e,t)))[0];if(void 0!==n)return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(e,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(e,t){return Object.keys(e).forEach((n=>t.setAttribute(this._getMetaKeyMap(n),e[n]))),t}_parseSelector(e){const t=e.name?"name":"property";return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every((n=>t.getAttribute(this._getMetaKeyMap(n))===e[n]))}_getMetaKeyMap(e){return oF[e]||e}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:iF,deps:[{token:RP}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:iF,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:iF,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[RP]}]}]});const oF={httpEquiv:"http-equiv"};class sF{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:sF,deps:[{token:RP}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:sF,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:sF,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[RP]}]}]});const aF={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},cF=new Ln("undefined"==typeof ngDevMode||ngDevMode?"HammerGestureConfig":""),uF=new Ln("undefined"==typeof ngDevMode||ngDevMode?"HammerLoader":"");class lF{events=[];overrides={};options;buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const e in this.overrides)t.get(e).set(this.overrides[e]);return t}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:lF,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:lF})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:lF,decorators:[{type:wc}]});class dF extends OL{_config;_injector;loader;_loaderPromise=null;constructor(e,t,n,r){super(e),this._config=t,this._injector=n,this.loader=r}supports(e){return!(!aF.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))&&(!(!window.Hammer&&!this.loader)||(("undefined"==typeof ngDevMode||ngDevMode)&&this._injector.get(K_).warn(`The "${e}" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.`),!1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||r.runOutsideAngular((()=>this.loader()));let i=!1,o=()=>{i=!0};return r.runOutsideAngular((()=>this._loaderPromise.then((()=>{window.Hammer?i||(o=this.addEventListener(e,t,n)):(("undefined"==typeof ngDevMode||ngDevMode)&&this._injector.get(K_).warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),o=()=>{})})).catch((()=>{("undefined"==typeof ngDevMode||ngDevMode)&&this._injector.get(K_).warn(`The "${t}" event cannot be bound because the custom Hammer.JS loader failed.`),o=()=>{}})))),()=>{o()}}return r.runOutsideAngular((()=>{const i=this._config.buildHammer(e),o=function(e){r.runGuarded((function(){n(e)}))};return i.on(t,o),()=>{i.off(t,o),"function"==typeof i.destroy&&i.destroy()}}))}isCustomEvent(e){return this._config.events.indexOf(e)>-1}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:dF,deps:[{token:RP},{token:cF},{token:Ac},{token:uF,optional:!0}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:dF})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:dF,decorators:[{type:wc}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[RP]}]},{type:lF,decorators:[{type:wr,args:[cF]}]},{type:Ac},{type:void 0,decorators:[{type:Tr},{type:wr,args:[uF]}]}]});class pF{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:pF,deps:[],target:Ti.NgModule});static ɵmod=eM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:pF});static ɵinj=XN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:pF,providers:[{provide:wL,useClass:dF,multi:!0,deps:[RP,cF,Ac,[new Tr,uF]]},{provide:cF,useClass:lF,deps:[]}]})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:pF,decorators:[{type:SO,args:[{providers:[{provide:wL,useClass:dF,multi:!0,deps:[RP,cF,Ac,[new Tr,uF]]},{provide:cF,useClass:lF,deps:[]}]}]}]});class hF{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:hF,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:hF,providedIn:"root",useExisting:rn((()=>fF))})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:hF,decorators:[{type:wc,args:[{providedIn:"root",useExisting:rn((()=>fF))}]}]});class fF extends hF{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case Fh.NONE:return t;case Fh.HTML:return eh(t,"HTML")?Xp(t):kh(this._doc,String(t)).toString();case Fh.STYLE:return eh(t,"Style")?Xp(t):t;case Fh.SCRIPT:if(eh(t,"Script"))return Xp(t);throw new kt(5200,("undefined"==typeof ngDevMode||ngDevMode)&&"unsafe value used in a script context");case Fh.URL:return eh(t,"URL")?Xp(t):dh(String(t));case Fh.RESOURCE_URL:if(eh(t,"ResourceURL"))return Xp(t);throw new kt(5201,("undefined"==typeof ngDevMode||ngDevMode)&&`unsafe value used in a resource URL context (see ${xt})`);default:throw new kt(5202,("undefined"==typeof ngDevMode||ngDevMode)&&`Unexpected SecurityContext ${e} (see ${xt})`)}}bypassSecurityTrustHtml(e){return nh(e)}bypassSecurityTrustStyle(e){return rh(e)}bypassSecurityTrustScript(e){return ih(e)}bypassSecurityTrustUrl(e){return oh(e)}bypassSecurityTrustResourceUrl(e){return sh(e)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:fF,deps:[{token:RP}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:fF,providedIn:"root"})}var gF;WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:fF,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:wr,args:[RP]}]}]}),function(e){e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",e[e.I18nSupport=2]="I18nSupport",e[e.EventReplay=3]="EventReplay",e[e.IncrementalHydration=4]="IncrementalHydration"}(gF||(gF={})),new IO("19.1.3");const mF="primary",vF=Symbol("RouteTitle");class yF{params;constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function EF(e){return new yF(e)}function _F(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const i={};for(let t=0;t<r.length;t++){const n=r[t],o=e[t];if(":"===n[0])i[n.substring(1)]=o;else if(n!==o.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function bF(e,t){const n=e?CF(e):void 0,r=t?CF(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let r=0;r<n.length;r++)if(i=n[r],!SF(e[i],t[i]))return!1;return!0}function CF(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function SF(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every(((e,t)=>r[t]===e))}return e===t}function IF(e){return e.length>0?e[e.length-1]:null}function DF(e){return(t=e)&&(t instanceof Ce||Q(t.lift)&&Q(t.subscribe))?e:Cb(e)?Jk(Promise.resolve(e)):tL(e);var t}const wF={exact:function e(t,n,r){if(!kF(t.segments,n.segments))return!1;if(!MF(t.segments,n.segments,r))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i],r))return!1}return!0},subset:AF},TF={exact:function(e,t){return bF(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((n=>SF(e[n],t[n])))},ignored:()=>!0};function OF(e,t,n){return wF[n.paths](e.root,t.root,n.matrixParams)&&TF[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function AF(e,t,n){return NF(e,t,t.segments,n)}function NF(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!!kF(i,n)&&!t.hasChildren()&&!!MF(i,n,r)}if(e.segments.length===n.length){if(!kF(e.segments,n))return!1;if(!MF(e.segments,n,r))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!AF(e.children[n],t.children[n],r))return!1}return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!kF(e.segments,i)&&!!MF(e.segments,i,r)&&!!e.children[mF]&&NF(e.children[mF],t,o,r)}}function MF(e,t,n){return t.every(((t,r)=>TF[n](e[r].parameters,t.parameters)))}class PF{root;queryParams;fragment;_queryParamMap;constructor(e=new RF([],{}),t={},n=null){if(this.root=e,this.queryParams=t,this.fragment=n,("undefined"==typeof ngDevMode||ngDevMode)&&e.segments.length>0)throw new kt(4015,"The root `UrlSegmentGroup` should not contain `segments`. Instead, these segments belong in the `children` so they can be associated with a named outlet.")}get queryParamMap(){return this._queryParamMap??=EF(this.queryParams),this._queryParamMap}toString(){return UF.serialize(this)}}class RF{segments;children;parent=null;constructor(e,t){this.segments=e,this.children=t,Object.values(t).forEach((e=>e.parent=this))}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jF(this)}}class xF{path;parameters;_parameterMap;constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap??=EF(this.parameters),this._parameterMap}toString(){return zF(this)}}function kF(e,t){return e.length===t.length&&e.every(((e,n)=>e.path===t[n].path))}class LF{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:LF,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:LF,providedIn:"root",useFactory:()=>new FF})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:LF,decorators:[{type:wc,args:[{providedIn:"root",useFactory:()=>new FF}]}]});class FF{parse(e){const t=new JF(e);return new PF(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${VF(e.root,!0)}`,n=function(e){const t=Object.entries(e).map((([e,t])=>Array.isArray(t)?t.map((t=>`${BF(e)}=${BF(t)}`)).join("&"):`${BF(e)}=${BF(t)}`)).filter((e=>e));return t.length?`?${t.join("&")}`:""}(e.queryParams);var r;return`${t}${n}${"string"==typeof e.fragment?`#${r=e.fragment,encodeURI(r)}`:""}`}}const UF=new FF;function jF(e){return e.segments.map((e=>zF(e))).join("/")}function VF(e,t){if(!e.hasChildren())return jF(e);if(t){const t=e.children[mF]?VF(e.children[mF],!1):"",n=[];return Object.entries(e.children).forEach((([e,t])=>{e!==mF&&n.push(`${e}:${VF(t,!1)}`)})),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return Object.entries(e.children).forEach((([e,r])=>{e===mF&&(n=n.concat(t(r,e)))})),Object.entries(e.children).forEach((([e,r])=>{e!==mF&&(n=n.concat(t(r,e)))})),n}(e,((t,n)=>n===mF?[VF(e.children[mF],!1)]:[`${n}:${VF(t,!1)}`]));return 1===Object.keys(e.children).length&&null!=e.children[mF]?`${jF(e)}/${t[0]}`:`${jF(e)}/(${t.join("//")})`}}function $F(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function BF(e){return $F(e).replace(/%3B/gi,";")}function HF(e){return $F(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function GF(e){return decodeURIComponent(e)}function qF(e){return GF(e.replace(/\+/g,"%20"))}function zF(e){return`${HF(e.path)}${t=e.parameters,Object.entries(t).map((([e,t])=>`;${HF(e)}=${HF(t)}`)).join("")}`;var t}const WF=/^[^\/()?;#]+/;function KF(e){const t=e.match(WF);return t?t[0]:""}const QF=/^[^\/()?;=#]+/,YF=/^[^=?&#]+/,ZF=/^[^&#]+/;class JF{url;remaining;constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new RF([],{}):new RF([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[mF]=new RF(e,t)),n}parseSegment(){const e=KF(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new kt(4009,("undefined"==typeof ngDevMode||ngDevMode)&&`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new xF(GF(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=function(e){const t=e.match(QF);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=KF(this.remaining);e&&(n=e,this.capture(n))}e[GF(t)]=GF(n)}parseQueryParam(e){const t=function(e){const t=e.match(YF);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(ZF);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=qF(t),i=qF(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=KF(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new kt(4010,("undefined"==typeof ngDevMode||ngDevMode)&&`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=mF);const o=this.parseChildren();t[i]=1===Object.keys(o).length?o[mF]:new RF([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new kt(4011,("undefined"==typeof ngDevMode||ngDevMode)&&`Expected "${e}".`)}}function XF(e){return e.segments.length>0?new RF([],{[mF]:e}):e}function eU(e){const t={};for(const[n,r]of Object.entries(e.children)){const e=eU(r);if(n===mF&&0===e.segments.length&&e.hasChildren())for(const[n,r]of Object.entries(e.children))t[n]=r;else(e.segments.length>0||e.hasChildren())&&(t[n]=e)}return function(e){if(1===e.numberOfChildren&&e.children[mF]){const t=e.children[mF];return new RF(e.segments.concat(t.segments),t.children)}return e}(new RF(e.segments,t))}function tU(e){return e instanceof PF}function nU(e){let t;const n=XF(function n(r){const i={};for(const e of r.children){const t=n(e);i[e.outlet]=t}const o=new RF(r.url,i);return r===e&&(t=o),o}(e.root));return t??n}function rU(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(0===t.length)return sU(i,i,i,n,r);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new cU(!0,0,e);let t=0,n=!1;const r=e.reduce(((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return Object.entries(r.outlets).forEach((([e,n])=>{t[e]="string"==typeof n?n.split("/"):n})),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach(((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))})),e):[...e,r]}),[]);return new cU(n,t,r)}(t);if(o.toRoot())return sU(i,i,new RF([],{}),n,r);const s=function(e,t,n){if(e.isAbsolute)return new uU(t,!0,0);if(!n)return new uU(t,!1,NaN);if(null===n.parent)return new uU(n,!0,0);const r=iU(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new kt(4005,("undefined"==typeof ngDevMode||ngDevMode)&&"Invalid number of '../'");i=r.segments.length}return new uU(r,!1,i-o)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?dU(s.segmentGroup,s.index,o.commands):lU(s.segmentGroup,s.index,o.commands);return sU(i,s.segmentGroup,a,n,r)}function iU(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function oU(e){return"object"==typeof e&&null!=e&&e.outlets}function sU(e,t,n,r,i){let o,s={};r&&Object.entries(r).forEach((([e,t])=>{s[e]=Array.isArray(t)?t.map((e=>`${e}`)):`${t}`})),o=e===t?n:aU(e,t,n);const a=XF(eU(o));return new PF(a,s,i)}function aU(e,t,n){const r={};return Object.entries(e.children).forEach((([e,i])=>{r[e]=i===t?n:aU(i,t,n)})),new RF(e.segments,r)}class cU{isAbsolute;numberOfDoubleDots;commands;constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&iU(n[0]))throw new kt(4003,("undefined"==typeof ngDevMode||ngDevMode)&&"Root segment cannot have matrix parameters");const r=n.find(oU);if(r&&r!==IF(n))throw new kt(4004,("undefined"==typeof ngDevMode||ngDevMode)&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class uU{segmentGroup;processChildren;index;constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function lU(e,t,n){if(e??=new RF([],{}),0===e.segments.length&&e.hasChildren())return dU(e,t,n);const r=function(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;const t=e.segments[i],s=n[r];if(oU(s))break;const a=`${s}`,c=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!gU(a,c,t))return o;r+=2}else{if(!gU(a,{},t))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new RF(e.segments.slice(0,r.pathIndex),{});return t.children[mF]=new RF(e.segments.slice(r.pathIndex),e.children),dU(t,0,i)}return r.match&&0===i.length?new RF(e.segments,{}):r.match&&!e.hasChildren()?pU(e,t,n):r.match?dU(e,0,i):pU(e,t,n)}function dU(e,t,n){if(0===n.length)return new RF(e.segments,{});{const r=function(e){return oU(e[0])?e[0].outlets:{[mF]:e}}(n),i={};if(Object.keys(r).some((e=>e!==mF))&&e.children[mF]&&1===e.numberOfChildren&&0===e.children[mF].segments.length){const r=dU(e.children[mF],t,n);return new RF(e.segments,r.children)}return Object.entries(r).forEach((([n,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(i[n]=lU(e.children[n],t,r))})),Object.entries(e.children).forEach((([e,t])=>{void 0===r[e]&&(i[e]=t)})),new RF(e.segments,i)}}function pU(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i<n.length;){const o=n[i];if(oU(o)){const e=hU(o.outlets);return new RF(r,e)}if(0===i&&iU(n[0])){const o=e.segments[t];r.push(new xF(o.path,fU(n[0]))),i++;continue}const s=oU(o)?o.outlets[mF]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&iU(a)?(r.push(new xF(s,fU(a))),i+=2):(r.push(new xF(s,{})),i++)}return new RF(r,{})}function hU(e){const t={};return Object.entries(e).forEach((([e,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(t[e]=pU(new RF([],{}),0,n))})),t}function fU(e){const t={};return Object.entries(e).forEach((([e,n])=>t[e]=`${n}`)),t}function gU(e,t,n){return e==n.path&&bF(t,n.parameters)}const mU="imperative";var vU,yU,EU,_U;(_U=vU||(vU={}))[_U.NavigationStart=0]="NavigationStart",_U[_U.NavigationEnd=1]="NavigationEnd",_U[_U.NavigationCancel=2]="NavigationCancel",_U[_U.NavigationError=3]="NavigationError",_U[_U.RoutesRecognized=4]="RoutesRecognized",_U[_U.ResolveStart=5]="ResolveStart",_U[_U.ResolveEnd=6]="ResolveEnd",_U[_U.GuardsCheckStart=7]="GuardsCheckStart",_U[_U.GuardsCheckEnd=8]="GuardsCheckEnd",_U[_U.RouteConfigLoadStart=9]="RouteConfigLoadStart",_U[_U.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",_U[_U.ChildActivationStart=11]="ChildActivationStart",_U[_U.ChildActivationEnd=12]="ChildActivationEnd",_U[_U.ActivationStart=13]="ActivationStart",_U[_U.ActivationEnd=14]="ActivationEnd",_U[_U.Scroll=15]="Scroll",_U[_U.NavigationSkipped=16]="NavigationSkipped";class bU{id;url;constructor(e,t){this.id=e,this.url=t}}class CU extends bU{type=vU.NavigationStart;navigationTrigger;restoredState;constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class SU extends bU{urlAfterRedirects;type=vU.NavigationEnd;constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}!function(e){e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected"}(yU||(yU={})),function(e){e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy"}(EU||(EU={}));class IU extends bU{reason;code;type=vU.NavigationCancel;constructor(e,t,n,r){super(e,t),this.reason=n,this.code=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class DU extends bU{reason;code;type=vU.NavigationSkipped;constructor(e,t,n,r){super(e,t),this.reason=n,this.code=r}}class wU extends bU{error;target;type=vU.NavigationError;constructor(e,t,n,r){super(e,t),this.error=n,this.target=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class TU extends bU{urlAfterRedirects;state;type=vU.RoutesRecognized;constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class OU extends bU{urlAfterRedirects;state;type=vU.GuardsCheckStart;constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class AU extends bU{urlAfterRedirects;state;shouldActivate;type=vU.GuardsCheckEnd;constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class NU extends bU{urlAfterRedirects;state;type=vU.ResolveStart;constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MU extends bU{urlAfterRedirects;state;type=vU.ResolveEnd;constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class PU{route;type=vU.RouteConfigLoadStart;constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class RU{route;type=vU.RouteConfigLoadEnd;constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class xU{snapshot;type=vU.ChildActivationStart;constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kU{snapshot;type=vU.ChildActivationEnd;constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class LU{snapshot;type=vU.ActivationStart;constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class FU{snapshot;type=vU.ActivationEnd;constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class UU{routerEvent;position;anchor;type=vU.Scroll;constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){const e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}}class jU{}class VU{url;navigationBehaviorOptions;constructor(e,t){this.url=e,this.navigationBehaviorOptions=t}}function $U(e,t="",n=!1){for(let r=0;r<e.length;r++){const i=e[r];HU(i,GU(t,i),n)}}function BU(e,t){if(t&&iy(t))throw new kt(4014,`Invalid configuration of route '${e}'. You are using 'loadComponent' with a module, but it must be used with standalone components. Use 'loadChildren' instead.`);if(t&&!Jr(t))throw new kt(4014,`Invalid configuration of route '${e}'. The component must be standalone.`)}function HU(e,t,n){if("undefined"==typeof ngDevMode||ngDevMode){if(!e)throw new kt(4014,`\n Invalid configuration of route '${t}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(e))throw new kt(4014,`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.redirectTo&&!e.component&&!e.loadComponent&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==mF)throw new kt(4014,`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new kt(4014,`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new kt(4014,`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new kt(4014,`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&(e.component||e.loadComponent))throw new kt(4014,`Invalid configuration of route '${t}': redirectTo and component/loadComponent cannot be used together`);if(e.component&&e.loadComponent)throw new kt(4014,`Invalid configuration of route '${t}': component and loadComponent cannot be used together`);if(e.redirectTo&&e.canActivate)throw new kt(4014,`Invalid configuration of route '${t}': redirectTo and canActivate cannot be used together. Redirects happen before activation so canActivate will never be executed.`);if(e.path&&e.matcher)throw new kt(4014,`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(!(void 0!==e.redirectTo||e.component||e.loadComponent||e.children||e.loadChildren))throw new kt(4014,`Invalid configuration of route '${t}'. One of the following must be provided: component, loadComponent, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new kt(4014,`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new kt(4014,`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch){const n="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new kt(4014,`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. ${n}`)}n&&BU(t,e.component)}e.children&&$U(e.children,t,n)}function GU(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function qU(e){return e.outlet||mF}function zU(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class WU{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return zU(this.route?.snapshot)??this.rootInjector}constructor(e){this.rootInjector=e,this.children=new KU(this.rootInjector)}}class KU{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new WU(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:KU,deps:[{token:vi}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:KU,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:KU,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:vi}]});class QU{_root;constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=YU(e,this._root);return t?t.children.map((e=>e.value)):[]}firstChild(e){const t=YU(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=ZU(e,this._root);return t.length<2?[]:t[t.length-2].children.map((e=>e.value)).filter((t=>t!==e))}pathFromRoot(e){return ZU(e,this._root).map((e=>e.value))}}function YU(e,t){if(e===t.value)return t;for(const n of t.children){const t=YU(e,n);if(t)return t}return null}function ZU(e,t){if(e===t.value)return[t];for(const n of t.children){const r=ZU(e,n);if(r.length)return r.unshift(t),r}return[]}class JU{value;children;constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function XU(e){const t={};return e&&e.children.forEach((e=>t[e.value.outlet]=e)),t}class ej extends QU{snapshot;constructor(e,t){super(e),this.snapshot=t,sj(this,e)}toString(){return this.snapshot.toString()}}function tj(e){const t=function(e){const t=new ij([],{},{},"",{},mF,e,null,{});return new oj("",new JU(t,[]))}(e),n=new Te([new xF("",{})]),r=new Te({}),i=new Te({}),o=new Te({}),s=new Te(""),a=new nj(n,r,o,s,i,mF,e,t.root);return a.snapshot=t.root,new ej(new JU(a,[]),t)}class nj{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(e,t,n,r,i,o,s,a){this.urlSubject=e,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=i,this.outlet=o,this.component=s,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(Pt((e=>e[vF])))??tL(void 0),this.url=e,this.params=t,this.queryParams=n,this.fragment=r,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(Pt((e=>EF(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Pt((e=>EF(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rj(e,t,n="emptyOnly"){let r;const{routeConfig:i}=e;return r=null===t||"always"!==n&&""!==i?.path&&(t.component||t.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.data,...i?.data,...e._resolvedData}},i&&lj(i)&&(r.resolve[vF]=i.title),r}class ij{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[vF]}constructor(e,t,n,r,i,o,s,a,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._resolve=c}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??=EF(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=EF(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map((e=>e.toString())).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class oj extends QU{url;constructor(e,t){super(t),this.url=e,sj(this,t)}toString(){return aj(this._root)}}function sj(e,t){t.value._routerState=e,t.children.forEach((t=>sj(e,t)))}function aj(e){const t=e.children.length>0?` { ${e.children.map(aj).join(", ")} } `:"";return`${e.value}${t}`}function cj(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,bF(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),bF(t.params,n.params)||e.paramsSubject.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!bF(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.urlSubject.next(n.url),bF(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function uj(e,t){const n=bF(e.params,t.params)&&function(e,t){return kF(e,t)&&e.every(((e,n)=>bF(e.parameters,t[n].parameters)))}(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||uj(e.parent,t.parent))}function lj(e){return"string"==typeof e.title||null===e.title}const dj=new Ln(ngDevMode?"RouterOutlet data":"");class pj{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=mF;activateEvents=new Hc;deactivateEvents=new Hc;attachEvents=new Hc;detachEvents=new Hc;routerOutletData=du(void 0);parentContexts=Cr(KU);location=Cr(yy);changeDetector=Cr(vA);inputBinder=Cr(fj,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){const{firstChange:t,previousValue:n}=e.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new kt(4012,("undefined"==typeof ngDevMode||ngDevMode)&&"Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new kt(4012,("undefined"==typeof ngDevMode||ngDevMode)&&"Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new kt(4012,("undefined"==typeof ngDevMode||ngDevMode)&&"Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new kt(4013,("undefined"==typeof ngDevMode||ngDevMode)&&"Cannot activate an already activated outlet");this._activatedRoute=e;const n=this.location,r=e.snapshot.component,i=this.parentContexts.getOrCreateContext(this.name).children,o=new hj(e,i,n.injector,this.routerOutletData);this.activated=n.createComponent(r,{index:n.length,injector:o,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:pj,deps:[],target:Ti.Directive});static ɵdir=zN({minVersion:"17.1.0",version:"19.1.3",type:pj,isStandalone:!0,selector:"router-outlet",inputs:{name:{classPropertyName:"name",publicName:"name",isSignal:!1,isRequired:!1,transformFunction:null},routerOutletData:{classPropertyName:"routerOutletData",publicName:"routerOutletData",isSignal:!0,isRequired:!1,transformFunction:null}},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],usesOnChanges:!0,ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:pj,decorators:[{type:mO,args:[{selector:"router-outlet",exportAs:"outlet"}]}],propDecorators:{name:[{type:EO}],activateEvents:[{type:_O,args:["activate"]}],deactivateEvents:[{type:_O,args:["deactivate"]}],attachEvents:[{type:_O,args:["attach"]}],detachEvents:[{type:_O,args:["detach"]}]}});class hj{route;childContexts;parent;outletData;__ngOutletInjector(e){return new hj(this.route,this.childContexts,e,this.outletData)}constructor(e,t,n,r){this.route=e,this.childContexts=t,this.parent=n,this.outletData=r}get(e,t){return e===nj?this.route:e===KU?this.childContexts:e===dj?this.outletData:this.parent.get(e,t)}}const fj=new Ln("");class gj{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:t}=e,n=aL([t.queryParams,t.params,t.data]).pipe(mL((([e,t,n],r)=>(n={...e,...t,...n},0===r?tL(n):Promise.resolve(n))))).subscribe((n=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||null===t.component)return void this.unsubscribeFromRouteData(e);const r=PM(t.component);if(r)for(const{templateName:t}of r.inputs)e.activatedComponentRef.setInput(t,n[t]);else this.unsubscribeFromRouteData(e)}));this.outletDataSubscriptions.set(e,n)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:gj,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:gj})}function mj(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function(e,t,n){return t.children.map((t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return mj(e,t,r);return mj(e,t)}))}(e,t,n);return new JU(r,i)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const r=n.route;return r.value._futureSnapshot=t.value,r.children=t.children.map((t=>mj(e,t))),r}}const n=(r=t.value,new nj(new Te(r.url),new Te(r.params),new Te(r.queryParams),new Te(r.fragment),new Te(r.data),r.outlet,r.component,r)),i=t.children.map((t=>mj(e,t)));return new JU(n,i)}var r}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:gj,decorators:[{type:wc}]});class vj{redirectTo;navigationBehaviorOptions;constructor(e,t){this.redirectTo=e,this.navigationBehaviorOptions=t}}const yj="ngNavigationCancelingError";function Ej(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=tU(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=_j(ngDevMode&&`Redirecting to "${e.serialize(n)}"`,yU.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function _j(e,t){const n=new Error(`NavigationCancelingError: ${e||""}`);return n[yj]=!0,n.cancellationCode=t,n}function bj(e){return!!e&&e[yj]}let Cj=!1;class Sj{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(e,t,n,r,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),cj(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=XU(t);e.children.forEach((e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]})),Object.values(r).forEach((e=>{this.deactivateRouteAndItsChildren(e,n)}))}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=XU(e);for(const e of Object.values(i))this.deactivateRouteAndItsChildren(e,r);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=XU(e);for(const e of Object.values(i))this.deactivateRouteAndItsChildren(e,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,t,n){const r=XU(t);e.children.forEach((e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new FU(e.value.snapshot))})),e.children.length&&this.forwardEvent(new kU(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(cj(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const n=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(n.contexts),t.attachRef=n.componentRef,t.route=n.route.value,t.outlet&&t.outlet.attach(n.componentRef,n.route.value),cj(n.route.value),this.activateChildRoutes(e,null,t.children)}else t.attachRef=null,t.route=r,t.outlet&&t.outlet.activateWith(r,t.injector),this.activateChildRoutes(e,null,t.children)}else this.activateChildRoutes(e,null,n);if("undefined"==typeof ngDevMode||ngDevMode){const e=n.getOrCreateContext(r.outlet).outlet;e&&this.inputBindingEnabled&&!e.supportsBindingToComponentInputs&&!Cj&&(console.warn("'withComponentInputBinding' feature is enabled but this application is using an outlet that may not support binding to component inputs."),Cj=!0)}}}class Ij{path;route;constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Dj{component;route;constructor(e,t){this.component=e,this.route=t}}function wj(e,t,n){const r=e._root;return Oj(r,t?t._root:null,n,[r.value])}function Tj(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||An(e)?t.get(e):e:r}function Oj(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=XU(t);return e.children.forEach((e=>{!function(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!kF(e.url,t.url);case"pathParamsOrQueryParamsChange":return!kF(e.url,t.url)||!bF(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!uj(e,t)||!bF(e.queryParams,t.queryParams);default:return!uj(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Ij(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Oj(e,t,a?a.children:null,r,i):Oj(e,t,n,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Dj(a.outlet.component,s))}else s&&Aj(t,a,i),i.canActivateChecks.push(new Ij(r)),o.component?Oj(e,null,a?a.children:null,r,i):Oj(e,null,n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]})),Object.entries(o).forEach((([e,t])=>Aj(t,n.getContext(e),i))),i}function Aj(e,t,n){const r=XU(e),i=e.value;Object.entries(r).forEach((([e,r])=>{i.component?Aj(r,t?t.children.getContext(e):null,n):Aj(r,t,n)})),i.component&&t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Dj(t.outlet.component,i)):n.canDeactivateChecks.push(new Dj(null,i))}function Nj(e){return"function"==typeof e}function Mj(e){return e instanceof BM||"EmptyError"===e?.name}const Pj=Symbol("INITIAL_VALUE");function Rj(){return mL((e=>aL(e.map((e=>e.pipe(zM(1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=eL(e);return At((function(t,r){(n?dL(e,t,n):dL(e,t)).subscribe(r)}))}(Pj))))).pipe(Pt((e=>{for(const n of e)if(!0!==n){if(n===Pj)return Pj;if(!1===n||tU(t=n)||t instanceof vj)return n}var t;return!0})),GM((e=>e!==Pj)),zM(1))))}function xj(e){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return be(e)}(yL((t=>{if("boolean"!=typeof t)throw Ej(e,t)})),Pt((e=>!0===e)))}class kj{segmentGroup;constructor(e){this.segmentGroup=e||null}}class Lj extends Error{urlTree;constructor(e){super(),this.urlTree=e}}function Fj(e){return hL(new kj(e))}class Uj{urlSerializer;urlTree;constructor(e,t){this.urlSerializer=e,this.urlTree=t}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return tL(n);if(r.numberOfChildren>1||!r.children[mF])return i=`${e.redirectTo}`,hL(new kt(4e3,("undefined"==typeof ngDevMode||ngDevMode)&&`Only absolute redirects can have named outlets. redirectTo: '${i}'`));r=r.children[mF]}var i}applyRedirectCommands(e,t,n,r,i){if("string"!=typeof t){const e=t,{queryParams:n,fragment:o,routeConfig:s,url:a,outlet:c,params:u,data:l,title:d}=r,p=Ii(i,(()=>e({params:u,data:l,queryParams:n,fragment:o,routeConfig:s,url:a,outlet:c,title:d})));if(p instanceof PF)throw new Lj(p);t=p}const o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,n);if("/"===t[0])throw new Lj(o);return o}applyRedirectCreateUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new PF(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Object.entries(e).forEach((([e,r])=>{if("string"==typeof r&&":"===r[0]){const i=r.substring(1);n[e]=t[i]}else n[e]=r})),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let o={};return Object.entries(t.children).forEach((([t,i])=>{o[t]=this.createSegmentGroup(e,i,n,r)})),new RF(i,o)}createSegments(e,t,n,r){return t.map((t=>":"===t.path[0]?this.findPosParam(e,t,r):this.findOrReturn(t,n)))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new kt(4001,("undefined"==typeof ngDevMode||ngDevMode)&&`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}const jj={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Vj(e,t,n,r,i){const o=$j(e,t,n);return o.matched?(r=function(e,t){return e.providers&&!e._injector&&(e._injector=kE(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function(e,t,n,r){const i=t.canMatch;return i&&0!==i.length?tL(i.map((r=>{const i=Tj(r,e);return DF(function(e){return e&&Nj(e.canMatch)}(i)?i.canMatch(t,n):Ii(e,(()=>i(t,n))))}))).pipe(Rj(),xj(r)):tL(!0)}(r,t,n,i).pipe(Pt((e=>!0===e?o:{...jj})))):tL(o)}function $j(e,t,n){if("**"===t.path)return function(e){return{matched:!0,parameters:e.length>0?IF(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(n);if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...jj}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const r=(t.matcher||_F)(n,e,t);if(!r)return{...jj};const i={};Object.entries(r.posParams??{}).forEach((([e,t])=>{i[e]=t.path}));const o=r.consumed.length>0?{...i,...r.consumed[r.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:r.consumed,remainingSegments:n.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function Bj(e,t,n,r){if(n.length>0&&function(e,t,n){return n.some((n=>Hj(e,t,n)&&qU(n)!==mF))}(e,n,r))return{segmentGroup:new RF(t,function(e,t){const n={};n[mF]=t;for(const t of e)if(""===t.path&&qU(t)!==mF){const e=new RF([],{});n[qU(t)]=e}return n}(r,new RF(n,e.children))),slicedSegments:[]};if(0===n.length&&function(e,t,n){return n.some((n=>Hj(e,t,n)))}(e,n,r)){const t=new RF(e.segments,function(e,t,n,r){const i={};for(const o of n)if(Hj(e,t,o)&&!r[qU(o)]){const e=new RF([],{});i[qU(o)]=e}return{...r,...i}}(e,n,r,e.children));return{segmentGroup:t,slicedSegments:n}}return{segmentGroup:new RF(e.segments,e.children),slicedSegments:n}}function Hj(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class Gj{}class qj{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(e,t,n,r,i,o,s){this.injector=e,this.configLoader=t,this.rootComponentType=n,this.config=r,this.urlTree=i,this.paramsInheritanceStrategy=o,this.urlSerializer=s,this.applyRedirects=new Uj(this.urlSerializer,this.urlTree)}noMatchError(e){return new kt(4002,"undefined"==typeof ngDevMode||ngDevMode?`Cannot match any routes. URL Segment: '${e.segmentGroup}'`:`'${e.segmentGroup}'`)}recognize(){const e=Bj(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(Pt((({children:e,rootSnapshot:t})=>{const n=new JU(t,e),r=new oj("",n),i=function(e,t,n=null,r=null){return rU(nU(e),t,n,r)}(t,[],this.urlTree.queryParams,this.urlTree.fragment);return i.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(i),{state:r,tree:i}})))}match(e){const t=new ij([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),mF,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,mF,t).pipe(Pt((e=>({children:e,rootSnapshot:t}))),EL((e=>{if(e instanceof Lj)return this.urlTree=e.urlTree,this.match(e.urlTree.root);if(e instanceof kj)throw this.noMatchError(e);throw e})))}processSegmentGroup(e,t,n,r,i){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,t,n,i):this.processSegment(e,t,n,n.segments,r,!0,i).pipe(Pt((e=>e instanceof JU?[e]:[])))}processChildren(e,t,n,r){const i=[];for(const e of Object.keys(n.children))"primary"===e?i.unshift(e):i.push(e);return Jk(i).pipe(vL((i=>{const o=n.children[i],s=function(e,t){const n=e.filter((e=>qU(e)===t));return n.push(...e.filter((e=>qU(e)!==t))),n}(t,i);return this.processSegmentGroup(e,s,o,i,r)})),function(e,t){return At(function(e,t,n){return function(r,i){var o=n,s=t,a=0;r.subscribe(Nt(i,(function(t){var n=a++;s=o?e(s,t,n):(o=!0,t),i.next(s)}),void 0))}}(e,t,arguments.length>=2))}(((e,t)=>(e.push(...t),e))),WM(null),function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?GM((function(t,n){return e(t,n,r)})):_e,_L(1),n?WM(t):KM((function(){return new BM})))}}(),uL((e=>{if(null===e)return Fj(n);const t=Wj(e);return("undefined"==typeof ngDevMode||ngDevMode)&&function(e){const t={};e.forEach((e=>{const n=t[e.value.outlet];if(n){const t=n.url.map((e=>e.toString())).join("/"),r=e.value.url.map((e=>e.toString())).join("/");throw new kt(4006,("undefined"==typeof ngDevMode||ngDevMode)&&`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value}))}(t),t.sort(((e,t)=>e.value.outlet===mF?-1:t.value.outlet===mF?1:e.value.outlet.localeCompare(t.value.outlet))),tL(t)})))}processSegment(e,t,n,r,i,o,s){return Jk(t).pipe(vL((a=>this.processSegmentAgainstRoute(a._injector??e,t,a,n,r,i,o,s).pipe(EL((e=>{if(e instanceof kj)return tL(null);throw e}))))),YM((e=>!!e)),EL((e=>{if(Mj(e))return function(e,t,n){return 0===t.length&&!e.children[n]}(n,r,i)?tL(new Gj):Fj(n);throw e})))}processSegmentAgainstRoute(e,t,n,r,i,o,s,a){return qU(n)===o||o!==mF&&Hj(r,i,n)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(e,r,n,i,o,a):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,r,t,n,i,o,a):Fj(r):Fj(r)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o,s){const{matched:a,parameters:c,consumedSegments:u,positionalParamSegments:l,remainingSegments:d}=$j(t,r,i);if(!a)return Fj(t);if("string"==typeof r.redirectTo&&"/"===r.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31)){if(ngDevMode)throw new kt(4016,`Detected possible infinite redirect when redirecting from '${this.urlTree}' to '${r.redirectTo}'.\nThis is currently a dev mode only error but will become a call stack size exceeded error in production in a future major version.`);this.allowRedirects=!1}const p=new ij(i,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kj(r),qU(r),r.component??r._loadedComponent??null,r,Qj(r)),h=rj(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(h.params),p.data=Object.freeze(h.data);const f=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,l,p,e);return this.applyRedirects.lineralizeSegments(r,f).pipe(uL((r=>this.processSegment(e,n,t,r.concat(d),o,!1,s))))}matchSegmentAgainstRoute(e,t,n,r,i,o){const s=Vj(t,n,r,e,this.urlSerializer);return"**"===n.path&&(t.children={}),s.pipe(mL((s=>s.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(mL((({routes:r})=>{const a=n._loadedInjector??e,{parameters:c,consumedSegments:u,remainingSegments:l}=s,d=new ij(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kj(n),qU(n),n.component??n._loadedComponent??null,n,Qj(n)),p=rj(d,o,this.paramsInheritanceStrategy);d.params=Object.freeze(p.params),d.data=Object.freeze(p.data);const{segmentGroup:h,slicedSegments:f}=Bj(t,u,l,r);if(0===f.length&&h.hasChildren())return this.processChildren(a,r,h,d).pipe(Pt((e=>new JU(d,e))));if(0===r.length&&0===f.length)return tL(new JU(d,[]));const g=qU(n)===i;return this.processSegment(a,r,h,f,g?mF:i,!0,d).pipe(Pt((e=>new JU(d,e instanceof JU?[e]:[]))))})))):Fj(t))))}getChildConfig(e,t,n){return t.children?tL({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?tL({routes:t._loadedRoutes,injector:t._loadedInjector}):function(e,t,n,r){const i=t.canLoad;return void 0===i||0===i.length?tL(!0):tL(i.map((r=>{const i=Tj(r,e);return DF(function(e){return e&&Nj(e.canLoad)}(i)?i.canLoad(t,n):Ii(e,(()=>i(t,n))))}))).pipe(Rj(),xj(r))}(e,t,n,this.urlSerializer).pipe(uL((n=>n?this.configLoader.loadChildren(e,t).pipe(yL((e=>{t._loadedRoutes=e.routes,t._loadedInjector=e.injector}))):function(e){return hL(_j(("undefined"==typeof ngDevMode||ngDevMode)&&`Cannot load children because the guard of the route "path: '${e.path}'" returned false`,yU.GuardRejected))}(t)))):tL({routes:[],injector:e})}}function zj(e){const t=e.value.routeConfig;return t&&""===t.path}function Wj(e){const t=[],n=new Set;for(const r of e){if(!zj(r)){t.push(r);continue}const e=t.find((e=>r.value.routeConfig===e.value.routeConfig));void 0!==e?(e.children.push(...r.children),n.add(e)):t.push(r)}for(const e of n){const n=Wj(e.children);t.push(new JU(e.value,n))}return t.filter((e=>!n.has(e)))}function Kj(e){return e.data||{}}function Qj(e){return e.resolve||{}}function Yj(e){const t=e.children.map((e=>Yj(e))).flat();return[e,...t]}function Zj(e){return mL((t=>{const n=e(t);return n?Jk(n).pipe(Pt((()=>t))):tL(t)}))}class Jj{buildTitle(e){let t,n=e.root;for(;void 0!==n;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find((e=>e.outlet===mF));return t}getResolvedTitleForRoute(e){return e.data[vF]}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Jj,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Jj,providedIn:"root",useFactory:()=>Cr(Xj)})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Jj,decorators:[{type:wc,args:[{providedIn:"root",useFactory:()=>Cr(Xj)}]}]});class Xj extends Jj{title;constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Xj,deps:[{token:sF}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Xj,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:Xj,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:sF}]});const eV=new Ln("undefined"==typeof ngDevMode||ngDevMode?"router config":"",{providedIn:"root",factory:()=>({})});class tV{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:tV,deps:[],target:Ti.Component});static ɵcmp=QN({minVersion:"14.0.0",version:"19.1.3",type:tV,isStandalone:!0,selector:"ng-component",exportAs:["emptyRouterOutlet"],ngImport:r,template:"<router-outlet/>",isInline:!0,dependencies:[{kind:"directive",type:pj,selector:"router-outlet",inputs:["name","routerOutletData"],outputs:["activate","deactivate","attach","detach"],exportAs:["outlet"]}]})}function nV(e){const t=e.children&&e.children.map(nV),n=t?{...e,children:t}:{...e};return n.component||n.loadComponent||!t&&!n.loadChildren||!n.outlet||n.outlet===mF||(n.component=tV),n}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:tV,decorators:[{type:vO,args:[{template:"<router-outlet/>",imports:[pj],exportAs:"emptyRouterOutlet"}]}]});const rV=new Ln(ngDevMode?"ROUTES":"");class iV{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=Cr(TO);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return tL(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=DF(e.loadComponent()).pipe(Pt(oV),yL((t=>{this.onLoadEndListener&&this.onLoadEndListener(e),("undefined"==typeof ngDevMode||ngDevMode)&&BU(e.path??"",t),e._loadedComponent=t})),bL((()=>{this.componentLoaders.delete(e)}))),n=new gL(t,(()=>new De)).pipe(fL());return this.componentLoaders.set(e,n),n}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return tL({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const n=function(e,t,n,r){return DF(e.loadChildren()).pipe(Pt(oV),uL((e=>e instanceof AE||Array.isArray(e)?tL(e):Jk(t.compileModuleAsync(e)))),Pt((t=>{let i,o;r&&r(e);let s=!1;Array.isArray(t)?(o=t,s=!0):(i=t.create(n).injector,o=i.get(rV,[],{optional:!0,self:!0}).flat());const a=o.map(nV);return("undefined"==typeof ngDevMode||ngDevMode)&&$U(a,e.path,s),{routes:a,injector:i}})))}(t,this.compiler,e,this.onLoadEndListener),r=n.pipe(bL((()=>{this.childrenLoaders.delete(t)}))),i=new gL(r,(()=>new De)).pipe(fL());return this.childrenLoaders.set(t,i),i}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:iV,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:iV,providedIn:"root"})}function oV(e){return(t=e)&&"object"==typeof t&&"default"in t?e.default:e;var t}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:iV,decorators:[{type:wc,args:[{providedIn:"root"}]}]});class sV{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:sV,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:sV,providedIn:"root",useFactory:()=>Cr(aV)})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:sV,decorators:[{type:wc,args:[{providedIn:"root",useFactory:()=>Cr(aV)}]}]});class aV{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:aV,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:aV,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:aV,decorators:[{type:wc,args:[{providedIn:"root"}]}]});const cV=new Ln(ngDevMode?"view transition helper":""),uV=new Ln(ngDevMode?"view transition options":"");function lV(e,t,n){const r=e.get(uV),i=e.get(RP);return e.get(Zc).runOutsideAngular((()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise((e=>setTimeout(e)));let o;const s=new Promise((e=>{o=e})),a=i.startViewTransition((()=>(o(),function(e){return new Promise((t=>{sd({read:()=>setTimeout(t)},{injector:e})}))}(e)))),{onViewTransitionCreated:c}=r;return c&&Ii(e,(()=>c({transition:a,from:t,to:n}))),s}))}const dV=new Ln("undefined"==typeof ngDevMode||ngDevMode?"navigation error handler":"");class pV{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new De;transitionAbortSubject=new De;configLoader=Cr(iV);environmentInjector=Cr(vi);urlSerializer=Cr(LF);rootContexts=Cr(KU);location=Cr(GP);inputBindingEnabled=null!==Cr(fj,{optional:!0});titleStrategy=Cr(Jj);options=Cr(eV,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=Cr(sV);createViewTransition=Cr(cV,{optional:!0});navigationErrorHandler=Cr(dV,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>tL(void 0);rootComponentType=null;constructor(){this.configLoader.onLoadEndListener=e=>this.events.next(new RU(e)),this.configLoader.onLoadStartListener=e=>this.events.next(new PU(e))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const t=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:t})}setupNavigations(e,t,n){return this.transitions=new Te({id:0,currentUrlTree:t,currentRawUrl:t,extractedUrl:this.urlHandlingStrategy.extract(t),urlAfterRedirects:this.urlHandlingStrategy.extract(t),rawUrl:t,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:mU,restoredState:null,currentSnapshot:n.snapshot,targetSnapshot:null,currentRouterState:n,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(GM((e=>0!==e.id)),Pt((e=>({...e,extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)}))),mL((t=>{let n=!1,r=!1;return tL(t).pipe(mL((n=>{if(this.navigationId>t.id){const e="undefined"==typeof ngDevMode||ngDevMode?`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`:"";return this.cancelNavigationTransition(t,e,yU.SupersededByNewNavigation),qM}this.currentTransition=t,this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,targetBrowserUrl:"string"==typeof n.extras.browserUrl?this.urlSerializer.parse(n.extras.browserUrl):n.extras.browserUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const r=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),i=n.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!r&&"reload"!==i){const e="undefined"==typeof ngDevMode||ngDevMode?`Navigation to ${n.rawUrl} was ignored because it is the same as the current Router URL.`:"";return this.events.next(new DU(n.id,this.urlSerializer.serialize(n.rawUrl),e,EU.IgnoredSameUrlNavigation)),n.resolve(!1),qM}if(this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return tL(n).pipe(mL((e=>{const t=this.transitions?.getValue();return this.events.next(new CU(e.id,this.urlSerializer.serialize(e.extractedUrl),e.source,e.restoredState)),t!==this.transitions?.getValue()?qM:Promise.resolve(e)})),function(e,t,n,r,i,o){return uL((s=>function(e,t,n,r,i,o,s="emptyOnly"){return new qj(e,t,n,r,i,s,o).recognize()}(e,t,n,r,s.extractedUrl,i,o).pipe(Pt((({state:e,tree:t})=>({...s,targetSnapshot:e,urlAfterRedirects:t}))))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),yL((e=>{t.targetSnapshot=e.targetSnapshot,t.urlAfterRedirects=e.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:e.urlAfterRedirects};const n=new TU(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(n)})));if(r&&this.urlHandlingStrategy.shouldProcessUrl(n.currentRawUrl)){const{id:e,extractedUrl:r,source:i,restoredState:o,extras:s}=n,a=new CU(e,this.urlSerializer.serialize(r),i,o);this.events.next(a);const c=tj(this.rootComponentType).snapshot;return this.currentTransition=t={...n,targetSnapshot:c,urlAfterRedirects:r,extras:{...s,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=r,tL(t)}{const e="undefined"==typeof ngDevMode||ngDevMode?`Navigation was ignored because the UrlHandlingStrategy indicated neither the current URL ${n.currentRawUrl} nor target URL ${n.rawUrl} should be processed.`:"";return this.events.next(new DU(n.id,this.urlSerializer.serialize(n.extractedUrl),e,EU.IgnoredByUrlHandlingStrategy)),n.resolve(!1),qM}})),yL((e=>{const t=new OU(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(t)})),Pt((e=>(this.currentTransition=t={...e,guards:wj(e.targetSnapshot,e.currentSnapshot,this.rootContexts)},t))),function(e,t){return uL((n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?tL({...n,guardsResult:!0}):function(e,t,n,r){return Jk(e).pipe(uL((e=>function(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?tL(o.map((o=>{const s=zU(t)??i,a=Tj(o,s);return DF(function(e){return e&&Nj(e.canDeactivate)}(a)?a.canDeactivate(e,t,n,r):Ii(s,(()=>a(e,t,n,r)))).pipe(YM())}))).pipe(Rj()):tL(!0)}(e.component,e.route,n,t,r))),YM((e=>!0!==e),!0))}(s,r,i,e).pipe(uL((n=>n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,r){return Jk(t).pipe(vL((t=>dL(function(e,t){return null!==e&&t&&t(new xU(e)),tL(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new LU(e)),tL(!0)}(t.route,r),function(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map((e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e))).filter((e=>null!==e)).map((t=>pL((()=>tL(t.guards.map((i=>{const o=zU(t.node)??n,s=Tj(i,o);return DF(function(e){return e&&Nj(e.canActivateChild)}(s)?s.canActivateChild(r,e):Ii(o,(()=>s(r,e)))).pipe(YM())}))).pipe(Rj())))));return tL(i).pipe(Rj())}(e,t.path,n),function(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?tL(r.map((r=>pL((()=>{const i=zU(t)??n,o=Tj(r,i);return DF(function(e){return e&&Nj(e.canActivate)}(o)?o.canActivate(t,e):Ii(i,(()=>o(t,e)))).pipe(YM())}))))).pipe(Rj()):tL(!0)}(e,t.route,n)))),YM((e=>!0!==e),!0))}(r,o,e,t):tL(n))),Pt((e=>({...n,guardsResult:e}))))}))}(this.environmentInjector,(e=>this.events.next(e))),yL((e=>{if(t.guardsResult=e.guardsResult,e.guardsResult&&"boolean"!=typeof e.guardsResult)throw Ej(this.urlSerializer,e.guardsResult);const n=new AU(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.events.next(n)})),GM((e=>!!e.guardsResult||(this.cancelNavigationTransition(e,"",yU.GuardRejected),!1))),Zj((e=>{if(e.guards.canActivateChecks.length)return tL(e).pipe(yL((e=>{const t=new NU(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(t)})),mL((e=>{let t=!1;return tL(e).pipe((n=this.paramsInheritanceStrategy,r=this.environmentInjector,uL((e=>{const{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return tL(e);const o=new Set(i.map((e=>e.route))),s=new Set;for(const e of o)if(!s.has(e))for(const t of Yj(e))s.add(t);let a=0;return Jk(s).pipe(vL((e=>o.has(e)?function(e,t,n,r){const i=e.routeConfig,o=e._resolve;return void 0===i?.title||lj(i)||(o[vF]=i.title),function(e,t,n,r){const i=CF(e);if(0===i.length)return tL({});const o={};return Jk(i).pipe(uL((i=>function(e,t,n,r){const i=zU(t)??r,o=Tj(e,i);return DF(o.resolve?o.resolve(t,n):Ii(i,(()=>o(t,n))))}(e[i],t,n,r).pipe(YM(),yL((e=>{if(e instanceof vj)throw Ej(new FF,e);o[i]=e}))))),_L(1),Pt((()=>o)),EL((e=>Mj(e)?qM:hL(e))))}(o,e,t,r).pipe(Pt((t=>(e._resolvedData=t,e.data=rj(e,e.parent,n).resolve,null))))}(e,t,n,r):(e.data=rj(e,e.parent,n).resolve,tL(void 0)))),yL((()=>a++)),_L(1),uL((t=>a===s.size?tL(e):qM)))}))),yL({next:()=>t=!0,complete:()=>{t||this.cancelNavigationTransition(e,"undefined"==typeof ngDevMode||ngDevMode?"At least one route resolver didn't emit any value.":"",yU.NoDataFromResolver)}}));var n,r})),yL((e=>{const t=new MU(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(t)})))})),Zj((e=>{const t=e=>{const n=[];e.routeConfig?.loadComponent&&!e.routeConfig._loadedComponent&&n.push(this.configLoader.loadComponent(e.routeConfig).pipe(yL((t=>{e.component=t})),Pt((()=>{}))));for(const r of e.children)n.push(...t(r));return n};return aL(t(e.targetSnapshot.root)).pipe(WM(null),zM(1))})),Zj((()=>this.afterPreactivation())),mL((()=>{const{currentSnapshot:e,targetSnapshot:n}=t,r=this.createViewTransition?.(this.environmentInjector,e.root,n.root);return r?Jk(r).pipe(Pt((()=>t))):tL(t)})),Pt((n=>{const r=function(e,t,n){const r=mj(e,t._root,n?n._root:void 0);return new ej(r,t)}(e.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return this.currentTransition=t={...n,targetRouterState:r},this.currentNavigation.targetRouterState=r,t})),yL((()=>{this.events.next(new jU)})),(o=this.rootContexts,s=e.routeReuseStrategy,a=e=>this.events.next(e),c=this.inputBindingEnabled,Pt((e=>(new Sj(s,e.targetRouterState,e.currentRouterState,a,c).activate(o),e)))),zM(1),yL({next:e=>{n=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new SU(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects))),this.titleStrategy?.updateTitle(e.targetRouterState.snapshot),e.resolve(!0)},complete:()=>{n=!0}}),(i=this.transitionAbortSubject.pipe(yL((e=>{throw e}))),At((function(e,t){Pk(i).subscribe(Nt(t,(function(){return t.complete()}),se)),!t.closed&&e.subscribe(t)}))),bL((()=>{if(!n&&!r){const e="undefined"==typeof ngDevMode||ngDevMode?`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`:"";this.cancelNavigationTransition(t,e,yU.SupersededByNewNavigation)}this.currentTransition?.id===t.id&&(this.currentNavigation=null,this.currentTransition=null)})),EL((e=>{if(r=!0,bj(e))this.events.next(new IU(t.id,this.urlSerializer.serialize(t.extractedUrl),e.message,e.cancellationCode)),bj(n=e)&&tU(n.url)?this.events.next(new VU(e.url,e.navigationBehaviorOptions)):t.resolve(!1);else{const n=new wU(t.id,this.urlSerializer.serialize(t.extractedUrl),e,t.targetSnapshot??void 0);try{const r=Ii(this.environmentInjector,(()=>this.navigationErrorHandler?.(n)));if(!(r instanceof vj))throw this.events.next(n),e;{const{message:e,cancellationCode:n}=Ej(this.urlSerializer,r);this.events.next(new IU(t.id,this.urlSerializer.serialize(t.extractedUrl),e,n)),this.events.next(new VU(r.redirectTo,r.navigationBehaviorOptions))}}catch(e){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(e)}}var n;return qM})));var i,o,s,a,c})))}cancelNavigationTransition(e,t,n){const r=new IU(e.id,this.urlSerializer.serialize(e.extractedUrl),t,n);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:pV,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:pV,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:pV,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[]});class hV{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:hV,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:hV,providedIn:"root",useFactory:()=>Cr(gV)})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:hV,decorators:[{type:wc,args:[{providedIn:"root",useFactory:()=>Cr(gV)}]}]});class fV{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}class gV extends fV{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:gV,deps:null,target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:gV,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:gV,decorators:[{type:wc,args:[{providedIn:"root"}]}]});class mV{static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:mV,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:mV,providedIn:"root",useFactory:()=>Cr(vV)})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:mV,decorators:[{type:wc,args:[{providedIn:"root",useFactory:()=>Cr(vV)}]}]});class vV extends mV{location=Cr(GP);urlSerializer=Cr(LF);options=Cr(eV,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=Cr(sV);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new PF;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}routerState=tj(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe((t=>{"popstate"===t.type&&e(t.url,t.state)}))}handleRouterEvent(e,t){if(e instanceof CU)this.stateMemento=this.createStateMemento();else if(e instanceof DU)this.rawUrlTree=t.initialUrl;else if(e instanceof TU){if("eager"===this.urlUpdateStrategy&&!t.extras.skipLocationChange){const e=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl);this.setBrowserUrl(t.targetBrowserUrl??e,t)}}else e instanceof jU?(this.currentUrlTree=t.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl),this.routerState=t.targetRouterState,"deferred"!==this.urlUpdateStrategy||t.extras.skipLocationChange||this.setBrowserUrl(t.targetBrowserUrl??this.rawUrlTree,t)):e instanceof IU&&(e.code===yU.GuardRejected||e.code===yU.NoDataFromResolver)?this.restoreHistory(t):e instanceof wU?this.restoreHistory(t,!0):e instanceof SU&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,t){const n=e instanceof PF?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl){const e=this.browserPageId,r={...t.extras.state,...this.generateNgRouterState(t.id,e)};this.location.replaceState(n,"",r)}else{const e={...t.extras.state,...this.generateNgRouterState(t.id,this.browserPageId+1)};this.location.go(n,"",e)}}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const t=this.browserPageId,n=this.currentPageId-t;0!==n?this.location.historyGo(n):this.currentUrlTree===e.finalUrl&&0===n&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,ɵrouterPageId:t}:{navigationId:e}}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:vV,deps:null,target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:vV,providedIn:"root"})}function yV(e,t){e.events.pipe(GM((e=>e instanceof SU||e instanceof IU||e instanceof wU||e instanceof DU)),Pt((e=>e instanceof SU||e instanceof DU?0:e instanceof IU&&(e.code===yU.Redirect||e.code===yU.SupersededByNewNavigation)?2:1)),GM((e=>2!==e)),zM(1)).subscribe((()=>{t()}))}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:vV,decorators:[{type:wc,args:[{providedIn:"root"}]}]});const EV={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_V={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};class bV{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=Cr(K_);stateManager=Cr(mV);options=Cr(eV,{optional:!0})||{};pendingTasks=Cr($c);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=Cr(pV);urlSerializer=Cr(LF);location=Cr(GP);urlHandlingStrategy=Cr(sV);_events=new De;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=Cr(hV);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=Cr(rV,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!Cr(fj,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(ngDevMode?`Unhandled Navigation Error: ${e}`:e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new X;subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe((e=>{try{const n=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==n&&null!==r)if(this.stateManager.handleRouterEvent(e,r),e instanceof IU&&e.code!==yU.Redirect&&e.code!==yU.SupersededByNewNavigation)this.navigated=!0;else if(e instanceof SU)this.navigated=!0;else if(e instanceof VU){const r=e.navigationBehaviorOptions,i=this.urlHandlingStrategy.merge(e.url,n.currentRawUrl),o={browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||"eager"===this.urlUpdateStrategy||(t=n.source,t!==mU),...r};this.scheduleNavigation(i,mU,null,o,{resolve:n.resolve,reject:n.reject,promise:n.promise})}(function(e){return!(e instanceof jU||e instanceof VU)})(e)&&this._events.next(e)}catch(e){this.navigationTransitions.transitionAbortSubject.next(e)}var t}));this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),mU,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener(((e,t)=>{setTimeout((()=>{this.navigateToSyncWithBrowser(e,"popstate",t)}),0)}))}navigateToSyncWithBrowser(e,t,n){const r={replaceUrl:!0},i=n?.navigationId?n:null;if(n){const e={...n};delete e.navigationId,delete e.ɵrouterPageId,0!==Object.keys(e).length&&(r.state=e)}const o=this.parseUrl(e);this.scheduleNavigation(o,t,i,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){("undefined"==typeof ngDevMode||ngDevMode)&&$U(e),this.config=e.map(nV),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(e,t={}){const{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:o,preserveFragment:s}=t,a=s?this.currentUrlTree.fragment:i;let c,u=null;switch(o??this.options.defaultQueryParamsHandling){case"merge":u={...this.currentUrlTree.queryParams,...r};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}null!==u&&(u=this.removeEmptyProps(u));try{c=nU(n?n.snapshot:this.routerState.snapshot.root)}catch(t){"string"==typeof e[0]&&"/"===e[0][0]||(e=[]),c=this.currentUrlTree.root}return rU(c,e,u,a??null)}navigateByUrl(e,t={skipLocationChange:!1}){const n=tU(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,mU,null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new kt(4008,("undefined"==typeof ngDevMode||ngDevMode)&&`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let n;if(n=!0===t?{...EV}:!1===t?{..._V}:t,tU(e))return OF(this.currentUrlTree,e,n);const r=this.parseUrl(e);return OF(this.currentUrlTree,r,n)}removeEmptyProps(e){return Object.entries(e).reduce(((e,[t,n])=>(null!=n&&(e[t]=n),e)),{})}scheduleNavigation(e,t,n,r,i){if(this.disposed)return Promise.resolve(!1);let o,s,a;i?(o=i.resolve,s=i.reject,a=i.promise):a=new Promise(((e,t)=>{o=e,s=t}));const c=this.pendingTasks.add();return yV(this,(()=>{queueMicrotask((()=>this.pendingTasks.remove(c)))})),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:o,reject:s,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch((e=>Promise.reject(e)))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:bV,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:bV,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:bV,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[]});class CV{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new De;constructor(e,t,n,r,i,o){this.router=e,this.route=t,this.tabIndexAttribute=n,this.renderer=r,this.el=i,this.locationStrategy=o;const s=i.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===s||"area"===s,this.isAnchorElement?this.subscription=e.events.subscribe((e=>{e instanceof SU&&this.updateHref()})):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){if(ngDevMode&&tU(this.routerLinkInput)&&(void 0!==this.fragment||this.queryParams||this.queryParamsHandling||this.preserveFragment||this.relativeTo))throw new kt(4016,"Cannot configure queryParams or fragment when using a UrlTree as the routerLink input value.");this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){null==e?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(tU(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,n,r,i){const o=this.urlTree;if(null===o)return!0;if(this.isAnchorElement){if(0!==e||t||n||r||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0}const s={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(o,s),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const t=null===this.href?null:qh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(e,t){const n=this.renderer,r=this.el.nativeElement;null!==t?n.setAttribute(r,e,t):n.removeAttribute(r,e)}get urlTree(){return null===this.routerLinkInput?null:tU(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:CV,deps:[{token:bV},{token:nj},{token:"tabindex",attribute:!0},{token:ty},{token:fu},{token:VP}],target:Ti.Directive});static ɵdir=zN({minVersion:"16.1.0",version:"19.1.3",type:CV,isStandalone:!0,selector:"[routerLink]",inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",kN],skipLocationChange:["skipLocationChange","skipLocationChange",kN],replaceUrl:["replaceUrl","replaceUrl",kN],routerLink:"routerLink"},host:{listeners:{click:"onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)"},properties:{"attr.target":"this.target"}},usesOnChanges:!0,ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:CV,decorators:[{type:mO,args:[{selector:"[routerLink]"}]}],ctorParameters:()=>[{type:bV},{type:nj},{type:void 0,decorators:[{type:yc,args:["tabindex"]}]},{type:ty},{type:fu},{type:VP}],propDecorators:{target:[{type:bO,args:["attr.target"]},{type:EO}],queryParams:[{type:EO}],fragment:[{type:EO}],queryParamsHandling:[{type:EO}],state:[{type:EO}],info:[{type:EO}],relativeTo:[{type:EO}],preserveFragment:[{type:EO,args:[{transform:kN}]}],skipLocationChange:[{type:EO,args:[{transform:kN}]}],replaceUrl:[{type:EO,args:[{transform:kN}]}],routerLink:[{type:EO}],onClick:[{type:CO,args:["click",["$event.button","$event.ctrlKey","$event.shiftKey","$event.altKey","$event.metaKey"]]}]}});class SV{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new Hc;constructor(e,t,n,r,i){this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.link=i,this.routerEventsSubscription=e.events.subscribe((e=>{e instanceof SU&&this.update()}))}ngAfterContentInit(){tL(this.links.changes,tL(null)).pipe(lL()).subscribe((e=>{this.update(),this.subscribeToEachLinkOnChanges()}))}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter((e=>!!e)).map((e=>e.onChanges));this.linkInputChangesSubscription=Jk(e).pipe(lL()).subscribe((e=>{this._isActive!==this.isLinkActive(this.router)(e)&&this.update()}))}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter((e=>!!e))}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){this.links&&this.router.navigated&&queueMicrotask((()=>{const e=this.hasActiveLinks();this.classes.forEach((t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)})),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))}))}isLinkActive(e){const t=function(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>{const r=n.urlTree;return!!r&&e.isActive(r,t)}}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:SV,deps:[{token:bV},{token:fu},{token:ty},{token:vA},{token:CV,optional:!0}],target:Ti.Directive});static ɵdir=zN({minVersion:"14.0.0",version:"19.1.3",type:SV,isStandalone:!0,selector:"[routerLinkActive]",inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},queries:[{propertyName:"links",predicate:CV,descendants:!0}],exportAs:["routerLinkActive"],usesOnChanges:!0,ngImport:r})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:SV,decorators:[{type:mO,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],ctorParameters:()=>[{type:bV},{type:fu},{type:ty},{type:vA},{type:CV,decorators:[{type:Tr}]}],propDecorators:{links:[{type:lE,args:[CV,{descendants:!0}]}],routerLinkActiveOptions:[{type:EO}],ariaCurrentWhenActive:[{type:EO}],isActiveChange:[{type:_O}],routerLinkActive:[{type:EO}]}});class IV{}class DV{preload(e,t){return t().pipe(EL((()=>tL(null))))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:DV,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:DV,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:DV,decorators:[{type:wc,args:[{providedIn:"root"}]}]});class wV{preload(e,t){return tL(null)}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:wV,deps:[],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:wV,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:wV,decorators:[{type:wc,args:[{providedIn:"root"}]}]});class TV{router;injector;preloadingStrategy;loader;subscription;constructor(e,t,n,r,i){this.router=e,this.injector=n,this.preloadingStrategy=r,this.loader=i}setUpPreloading(){this.subscription=this.router.events.pipe(GM((e=>e instanceof SU)),vL((()=>this.preload()))).subscribe((()=>{}))}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t){r.providers&&!r._injector&&(r._injector=kE(r.providers,e,`Route: ${r.path}`));const t=r._injector??e,i=r._loadedInjector??t;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&n.push(this.preloadConfig(t,r)),(r.children||r._loadedRoutes)&&n.push(this.processRoutes(i,r.children??r._loadedRoutes))}return Jk(n).pipe(lL())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,(()=>{let n;n=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):tL(null);const r=n.pipe(uL((n=>null===n?tL(void 0):(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,this.processRoutes(n.injector??e,n.routes)))));return t.loadComponent&&!t._loadedComponent?Jk([r,this.loader.loadComponent(t)]).pipe(lL()):r}))}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:TV,deps:[{token:bV},{token:TO},{token:vi},{token:IV},{token:iV}],target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:TV,providedIn:"root"})}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:TV,decorators:[{type:wc,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:bV},{type:TO},{type:vi},{type:IV},{type:iV}]});const OV=new Ln("");class AV{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,t,n,r,i={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=n,this.zone=r,this.options=i,i.scrollPositionRestoration||="disabled",i.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe((e=>{e instanceof CU?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof SU?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof DU&&e.code===EU.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))}))}consumeScrollEvents(){return this.transitions.events.subscribe((e=>{e instanceof UU&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))}))}scheduleScrollEvent(e,t){this.zone.runOutsideAngular((()=>{setTimeout((()=>{this.zone.run((()=>{this.transitions.events.next(new UU(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}))}),0)}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:AV,deps:"invalid",target:Ti.Injectable});static ɵprov=JN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:AV})}function NV(e,t){return{ɵkind:e,ɵproviders:t}}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:AV,decorators:[{type:wc}],ctorParameters:()=>[{type:LF},{type:pV},{type:Ux},{type:Zc},{type:void 0}]});const MV=new Ln("",{providedIn:"root",factory:()=>!1});function PV(){const e=Cr(Ac);return t=>{const n=e.get(kb);if(t!==n.components[0])return;const r=e.get(bV),i=e.get(RV);1===e.get(xV)&&r.initialNavigation(),e.get(LV,null,ar.Optional)?.setUpPreloading(),e.get(OV,null,ar.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const RV=new Ln("undefined"==typeof ngDevMode||ngDevMode?"bootstrap done indicator":"",{factory:()=>new De}),xV=new Ln("undefined"==typeof ngDevMode||ngDevMode?"initial navigation":"",{providedIn:"root",factory:()=>1});function kV(){let e=[];return e="undefined"==typeof ngDevMode||ngDevMode?[{provide:Gr,multi:!0,useFactory:()=>{const e=Cr(bV);return()=>e.events.subscribe((e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function(e){switch(e.type){case vU.ActivationEnd:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case vU.ActivationStart:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case vU.ChildActivationEnd:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case vU.ChildActivationStart:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case vU.GuardsCheckEnd:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case vU.GuardsCheckStart:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case vU.NavigationCancel:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case vU.NavigationSkipped:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case vU.NavigationEnd:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case vU.NavigationError:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case vU.NavigationStart:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case vU.ResolveEnd:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case vU.ResolveStart:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case vU.RouteConfigLoadEnd:return`RouteConfigLoadEnd(path: ${e.route.path})`;case vU.RouteConfigLoadStart:return`RouteConfigLoadStart(path: ${e.route.path})`;case vU.RoutesRecognized:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case vU.Scroll:const t=e.position?`${e.position[0]}, ${e.position[1]}`:null;return`Scroll(anchor: '${e.anchor}', position: '${t}')`}}(e)),console.log(e),console.groupEnd?.()}))}}]:[],NV(1,e)}const LV=new Ln("undefined"==typeof ngDevMode||ngDevMode?"router preloader":""),FV=[pj,CV,SV,tV],UV=new Ln("undefined"==typeof ngDevMode||ngDevMode?"router duplicate forRoot guard":""),jV=[GP,{provide:LF,useClass:FF},bV,KU,{provide:nj,useFactory:function(e){return e.routerState.root},deps:[bV]},iV,"undefined"==typeof ngDevMode||ngDevMode?{provide:MV,useValue:!0}:[]];class VV{constructor(){("undefined"==typeof ngDevMode||ngDevMode)&&Cr(UV,{optional:!0})}static forRoot(e,t){return{ngModule:VV,providers:[jV,("undefined"==typeof ngDevMode||ngDevMode)&&t?.enableTracing?kV().ɵproviders:[],{provide:rV,multi:!0,useValue:e},"undefined"==typeof ngDevMode||ngDevMode?{provide:UV,useFactory:$V,deps:[[bV,new Tr,new Ar]]}:[],t?.errorHandler?{provide:dV,useValue:t.errorHandler}:[],{provide:eV,useValue:t||{}},t?.useHash?{provide:VP,useClass:HP}:{provide:VP,useClass:BP},{provide:OV,useFactory:()=>{const e=Cr(Ux),t=Cr(Zc),n=Cr(eV),r=Cr(pV),i=Cr(LF);return n.scrollOffset&&e.setOffset(n.scrollOffset),new AV(i,r,e,t,n)}},t?.preloadingStrategy?(r=t.preloadingStrategy,NV(0,[{provide:LV,useExisting:TV},{provide:IV,useExisting:r}])).ɵproviders:[],t?.initialNavigation?BV(t):[],t?.bindToComponentInputs?NV(8,[gj,{provide:fj,useExisting:gj}]).ɵproviders:[],t?.enableViewTransitions?NV(9,[{provide:cV,useValue:lV},{provide:uV,useValue:{skipNextTransition:!1,...n}}]).ɵproviders:[],[{provide:HV,useFactory:PV},{provide:Ab,multi:!0,useExisting:HV}]]};var n,r}static forChild(e){return{ngModule:VV,providers:[{provide:rV,multi:!0,useValue:e}]}}static ɵfac=YN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:VV,deps:[],target:Ti.NgModule});static ɵmod=eM({minVersion:"14.0.0",version:"19.1.3",ngImport:r,type:VV,imports:[pj,CV,SV,tV],exports:[pj,CV,SV,tV]});static ɵinj=XN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:VV})}function $V(e){if(e)throw new kt(4007,"The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function BV(e){return["disabled"===e.initialNavigation?NV(3,[{provide:Ib,multi:!0,useFactory:()=>{const e=Cr(bV);return()=>{e.setUpLocationChangeListener()}}},{provide:xV,useValue:2}]).ɵproviders:[],"enabledBlocking"===e.initialNavigation?NV(2,[{provide:xV,useValue:0},{provide:Ib,multi:!0,deps:[Ac],useFactory:e=>{const t=e.get(kP,Promise.resolve());return()=>t.then((()=>new Promise((t=>{const n=e.get(bV),r=e.get(RV);yV(n,(()=>{t(!0)})),e.get(pV).afterPreactivation=()=>(t(!0),r.closed?tL(void 0):r),n.initialNavigation()}))))}}]).ɵproviders:[]]}WN({minVersion:"12.0.0",version:"19.1.3",ngImport:r,type:VV,decorators:[{type:SO,args:[{imports:FV,exports:FV}]}],ctorParameters:()=>[]});const HV=new Ln("undefined"==typeof ngDevMode||ngDevMode?"Router Initializer":"");async function GV(e,t,n,r){if("publication"in r)e.publication=r.publication;else if(n.publication){let r=n.publication;if(Array.isArray(r)&&(r=r[0]),r){try{e.publication=await t.getPublication(r,!0)}catch(n){e.publication=await t.getPublicationFromCache(r)}return}}}async function qV(e,t,n,r){if("issue"in r)e.issue=r.issue;else if(n.issue){let r=n.issue;if(Array.isArray(r)&&(r=r[0]),r){try{e.issue=await t.getIssue(r,!0)}catch(n){e.issue=await t.getIssueFromCache(r).catch((()=>null))}return}}}async function zV(e,t,n,r){if("content"in r)e.content=r.content;else if(n.content){let r=n.content;if(Array.isArray(r)&&(r=r[0]),r)return void(e.content=await t.getCatalogContent(r,!0))}}async function WV(e,t,n,r){if("post"in r)e.post=r.post;else if(n.post){let r=n.post;if(Array.isArray(r)&&(r=r[0]),r)return e.post=await t.getCatalogContent(r,!0),void(e.post&&!(0,JM.mF)(e.post)&&console.warn("post from context / url is not referring to an actual post. Did you want to pass a different ID?"))}}async function KV(e,t,n,r){if("category"in r)e.category=r.category;else if(n.category){let r=n.category;if(Array.isArray(r)&&(r=r[0]),r){try{e.category=await t.getCategory(r,!0)}catch(n){e.category=await t.getCategory(r,!1)}return}}}async function QV(e,t,n,r){if("taxonomy"in r)e.taxonomy=r.taxonomy;else if(n.taxonomy){let r=n.taxonomy;if(Array.isArray(r)&&(r=r[0]),r){try{e.taxonomy=await t.getTaxonomy(r,null,!0,null)}catch(n){e.taxonomy=await t.getTaxonomy(r,null,!1,null)}return}}}async function YV(e,t,n,r){if("collection"in r)e.collection=r.collection;else if(n.collection){let r=n.collection;if(Array.isArray(r)&&(r=r[0]),r){try{e.collection=await t.getCollection(r,!0)}catch(n){e.collection=await t.getCollection(r,!1)}return}}}new IO("19.1.3"),fb("ɵgetLoadedRoutes",(function(e){return e._loadedRoutes}));var ZV,JV,XV=n(4620),e$=n(4664);!function(e){e.Android="android",e.iOS="ios",e.Unknown="unknown",e.WindowsPhone="Windows Phone"}(ZV||(ZV={})),function(e){e.Linux="linux",e.MacOS="mac_os",e.Unix="unix",e.Unknown="unknown",e.Windows="windows"}(JV||(JV={}));const t$=(()=>{let e=null;return()=>{if(e)return e;const t=navigator.userAgent||navigator.vendor||window.opera||void 0,n=()=>[/(Android)(.+)(Mobile)/i,/BlackBerry/i,/iPhone|iPod/i,/Opera Mini/i,/IEMobile/i].some((e=>t.match(e))),r=()=>/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(t.toLowerCase()),i=()=>!n()&&!r(),o=i(),s=n(),a=r(),c=()=>n()?/windows phone/i.test(t)?ZV.WindowsPhone:/android/i.test(t)?ZV.Android:/iPad|iPhone|iPod/.test(t)&&!window.MSStream?ZV.iOS:ZV.Unknown:void 0,u=()=>i()?-1!==t.indexOf("Win")?JV.Windows:-1!==t.indexOf("Mac")?JV.MacOS:-1!==t.indexOf("X11")?JV.Unix:-1!==t.indexOf("Linux")?JV.Linux:JV.Unknown:void 0,l=()=>c()??u(),d=c(),p=l()===ZV.Android,h=l()===ZV.iOS||l()===JV.MacOS,f=l()===ZV.Unknown,g=u(),m=l()===JV.Windows,v=l()===JV.Linux||l()===JV.Unix;return e={isDesktop:o,desktopOS:g,isWindowsDesktop:m,isLinuxOrUnixDesktop:v,isMobile:s,mobileOS:d,isAndroidDevice:p,isAppleDevice:h,isUnknownMobileDevice:f,isTablet:a,userAgent:t},e}})();var n$=function(e,t){return function(n,r){t(n,r,e)}};const r$=(0,XV.zk)();let i$=class{platformId;route;router;document;purpleEnv;purpleService;appData;domHelper;baseUrl;viewContext={};outletContext={};viewContextSubject=new Te(null);viewContextChangeSubject=new Te(null);baseUrlSubject=new $M(1);baseUrl$=this.baseUrlSubject.asObservable();dataCollectionSubject=new Te(null);moveToSlideSubject=new De;closeModalSubject=new De;closeModalCompleteSubject=new De;$functions;viewContext$=Uk(this.viewContextSubject.pipe(GM((e=>e))),Zk);viewContextChange$=Uk(this.viewContextChangeSubject.pipe(GM((e=>e))),Zk);activeTocItemSubject=new Te(null);dataSources={};dataCollectionComponents={};metadata={};userAttributes=null;params={};removedParams=null;accountData={};initialUrl;pathUrl;activeOutlet;navigationCount=0;cancellations$=new De;brand;path;isCustomerDomainUsed;isCustomDomainUsedSubject=new $M(1);dynamicResourcesVersion;constructor(e,t,n,r,i,o,s,a){this.platformId=e,this.route=t,this.router=n,this.document=r,this.purpleEnv=i,this.purpleService=o,this.appData=s,this.domHelper=a}getPurpleEnvironment(){return this.purpleEnv}init(){this.route.queryParams.subscribe((e=>{this.removedParams={};for(let t in this.params)e[t]||(this.removedParams[t]=null);this.params=e,this.updateParamsContext()})),this.router.events.pipe(GM((e=>e instanceof SU))).subscribe((()=>{const e=this.getActiveOutlet();e!==this.activeOutlet&&(this.activeOutlet=e,this.notify(null))})),this.router.events.pipe(GM((e=>e instanceof CU&&!!this.router.getCurrentNavigation()))).subscribe((()=>{const e=this.router.getCurrentNavigation();e.extras?.replaceUrl?"popstate"===e.trigger&&this.navigationCount>0&&this.navigationCount--:this.navigationCount++})),this.purpleService.getState("userAttributes").then((e=>{this.userAttributes=e?JSON.parse(e):{},this.notify({userAttributes:this.userAttributes})}))}setData(e,t){this.viewContext[e]=t,this.notify({[e]:t})}toResourceUrl(e){const t=this.baseUrl.split("/"),n=t.splice(0,t.length-2).join("/")+"/",r=this.isPreview();return(0,e$.q1)(n,e,r,this.purpleEnv.isUniversal,this.dynamicResourcesVersion)}setOutletData(e,t,n){this.outletContext[n]||(this.outletContext[n]={}),this.outletContext[n][e]=t,this.notify({[e]:t})}clearOutletData(e=this.getActiveOutlet(),t=null){t?e in this.outletContext&&delete this.outletContext[e][t]:(delete this.outletContext[e],delete this.dataSources[e],delete this.dataCollectionComponents[e])}setDataArray(e){let t={};e.forEach((({key:e,value:n})=>{this.viewContext[e]=t[e]=n})),this.notify(t)}setMultipleData(e,t){Object.keys(e).forEach((t=>{this.viewContext[t]=e[t]})),this.notify({...e,...t??{}})}getCurrentViewContext(){return this.viewContextSubject.value}getCurrentViewContextChange(){return this.viewContextChangeSubject.value}notify(e,t){const n=t?this.getContext(t):this.getContext();t&&t!==mF||this.setBodyAttributes(n),this.viewContextSubject.next(n),e&&this.viewContextChangeSubject.next({value:n,change:e})}async setBodyAttributes(e){const t=this.domHelper.leanDom?"data-pxp-":"data-storefront-",n=this.document.body;n.getAttributeNames().filter((e=>e.startsWith(t))).forEach((e=>this.document.body.removeAttribute(e))),Object.keys(e).forEach((r=>{if(e[r]){const i="object"==typeof e[r]?e[r].id:e[r];i&&n.setAttribute(`${t}${r}`,i)}}))}registerDataSource(e,t){this.dataSources[t]||(this.dataSources[t]=[]),e.registered=!0,this.dataSources[t].push(e)}unregisterDataSource(e){Object.keys(this.dataSources).forEach((t=>{this.dataSources[t]&&(this.dataSources[t]=this.dataSources[t].filter((t=>t!==e)))})),e.registered=!1,e.hasContextKey()?e.cleanupContextData():Fx(this.platformId)||this.notify(null)}getAllDataSources(){return Object.keys(this.dataSources).reduce(((e,t)=>[...e,...this.dataSources[t]]),[])}updateDataSources(){const e=this.getAllDataSources();return Promise.all(e.map((e=>e.update())))}getDataCollectionComponents(e){return this.dataCollectionComponents[e||this.getActiveOutlet()]||[]}registerDataCollectionComponent(e){const t=e.outlet||this.getActiveOutlet();this.dataCollectionComponents[t]||(this.dataCollectionComponents[t]=[]),this.dataCollectionComponents[t].push(e),e.getDependingDataCollections().filter((e=>e.getLatestData())).forEach((t=>{e.notifyHasData({component:t,data:t.getLatestData()})}))}unregisterDataCollectionComponent(e){this.dataCollectionComponents[e.outlet]&&(this.dataCollectionComponents[e.outlet]=this.dataCollectionComponents[e.outlet].filter((t=>t!==e)))}notifyContainerComponents(e){const t=this.getDataCollectionComponents(e.component.outlet);t&&t.forEach((t=>{t.getDependingDataCollections()?.includes(e.component)&&t.notifyHasData(e)}))}async updateMetadata(){return this.metadata={...await this.purpleService.getMetadata(),today:rP()().format("YYYY-MM-DD"),connection_state:this.metadata.connection_state},await this.purpleService.setState("storefront-entitlement-token",this.metadata[FM.METADATA_KEY.ENTITLEMENT_TOKEN]),Object.keys(this.outletContext).forEach((e=>{this.notify(this.metadata,e)})),this.metadata}updateDeviceSettings(){if(Lx(this.platformId)){let e=t$().isDesktop?"desktop":"tablet",t="portrait";(r$.innerWidth<533||r$.innerHeight<533)&&"desktop"!==e&&(e="phone"),r$.innerWidth>r$.innerHeight&&(t="landscape");const n={device_type:e,device_orientation:t,device_width:r$.innerWidth,device_height:r$.innerHeight};this.setMultipleData(n)}}clear(){this.viewContext={userTags:this.viewContext.userTags},delete this.dataSources[this.getActiveOutlet()],this.updateDeviceSettings()}setMetadata(e,t){this.metadata[e]=t,this.notify({[e]:t})}setFullMetadata(e){this.metadata=e,this.notify(e)}getMetadata(){return{...this.metadata}}setUserAttribute(e,t){this.userAttributes||(this.userAttributes={}),this.userAttributes[e]=t,this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes}),this.getActiveOutlet()!==mF&&this.notify({userAttributes:this.userAttributes},mF)}setUserAttributes(e){Object.keys(e).forEach((t=>{this.userAttributes[t]=e[t]})),this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes})}getUserAttributes(){return{...this.userAttributes}}getAccountData(){return{...this.accountData}}setAccountData(e){this.accountData={...e},this.notify({accountData:this.accountData})}async updateAccountData(){this.accountData=await this.purpleService.getAccountUserData(),this.notify({accountData:this.accountData})}getActiveOutlet(){const e=this.route.children[this.route.children.length-1];return e?e.outlet:"primary"}set$Functions(e){this.$functions&&console.warn("set$Functions was called twice. This should only be called once at startup"),this.$functions=e}async updateParamsContext(){let e=!1;const t=this.cancellations$.subscribe((()=>e=!0));try{if(e)throw new Error("cancelled");const t=await async function(e,t,n){const r={};return await Promise.all([qV(r,e,t,n),zV(r,e,t,n),WV(r,e,t,n),GV(r,e,t,n),KV(r,e,t,n),YV(r,e,t,n),QV(r,e,t,n)]),"search-result"in n&&(r["search-result"]=n["search-result"]),"bookmark"in n&&(r.bookmark=n.bookmark),r}(this.purpleService,this.params,{});if(e)throw new Error("cancelled");let n={...this.removedParams??{},...this.params};this.setMultipleData(t,n),this.removedParams=null}catch(e){}finally{t.unsubscribe()}}getParams(){return{...this.params}}async update(){return Promise.all([this.updateMetadata(),this.updateParamsContext(),this.updateDataSources()])}setInitialUrl(e){this.initialUrl=e,this.notify({initialUrl:this.initialUrl})}setPathUrl(e){this.pathUrl=e,this.notify({pathUrl:this.pathUrl})}getContext(e=this.getActiveOutlet()){const t=this.outletContext[e];return{...this.removedParams,...this.metadata,...this.params,...this.viewContext,...t,initialUrl:this.initialUrl,pathUrl:this.pathUrl,userAttributes:this.userAttributes,accountData:this.accountData,outlet:e}}isLoggedIn(){const e=this.getMetadata(),t=this.getAccountData();return!!e.entitlement_token||!(!t||!t.token)}cancelPendingParamUpdates(){this.cancellations$.next()}setBrand(e){this.brand=e}getBrand(){return this.brand}setPath(e){if(void 0===this.getIsCustomerDomainUsed()&&console.error("ContextService: called setPath before setIsCustomerDomainUsed"),"string"==typeof e)this.path=e;else if("primary"===e.snapshot.outlet){const t=e.snapshot.url,n=t.slice(this.getIsCustomerDomainUsed()?0:1,t.length).map((e=>e.path)).join("/")||"/";this.path=n}}getPath(){return this.path}setBaseUrl(e){this.baseUrl=e,this.baseUrlSubject.next(e)}getBaseUrl(){return this.baseUrl}setIsCustomerDomainUsed(e){this.isCustomDomainUsedSubject.next(e),this.isCustomerDomainUsed=e}getIsCustomDomainUsed(){return HM(this.isCustomDomainUsedSubject)}getIsCustomerDomainUsed(){return void 0===this.isCustomerDomainUsed&&console.warn("Attention: getIsCustomerDomainUsed is called before it was set!"),this.isCustomerDomainUsed}setDynamicResourcesVersion(e){this.dynamicResourcesVersion=e}getDynamicResourcesVersion(){return this.dynamicResourcesVersion}getHomeUrl(){const e=new URL(r$.location.href);return this.getIsCustomerDomainUsed()?e.pathname="":e.pathname=e.pathname.split("/")[1]+"/",e.href}closeModal(e){this.closeModalSubject.next(e)}notifyAll(){this.notify({})}isPreview(){return this.appData.preview||"true"==this.getMetadata().preview_app}};var o$;i$=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([wc({providedIn:"root"}),n$(0,wr(vl)),n$(3,wr(RP)),n$(4,wr(eX)),n$(6,wr(tX))],i$);var s$=new Uint8Array(16);function a$(){if(!o$&&!(o$="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o$(s$)}const c$=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u$=[],l$=0;l$<256;++l$)u$.push((l$+256).toString(16).substr(1));const d$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u$[e[t+0]]+u$[e[t+1]]+u$[e[t+2]]+u$[e[t+3]]+"-"+u$[e[t+4]]+u$[e[t+5]]+"-"+u$[e[t+6]]+u$[e[t+7]]+"-"+u$[e[t+8]]+u$[e[t+9]]+"-"+u$[e[t+10]]+u$[e[t+11]]+u$[e[t+12]]+u$[e[t+13]]+u$[e[t+14]]+u$[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&c$.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},p$=function(e,t,n){var r=(e=e||{}).random||(e.rng||a$)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return d$(r)};function h$(){return p$()}let f$=class{router;route;location;contextService;currentRouteBSubject=new Te(null);currentRoute$=this.currentRouteBSubject.asObservable();afterPopState$=new Te(!1);brand="";previousStatePath="";constructor(e,t,n,r){this.router=e,this.route=t,this.location=n,this.contextService=r,this.brand=this.contextService.getIsCustomerDomainUsed()?"":this.contextService.getBrand()}initWidgetRouter(){const e=this.getActiveRouteState();this.sendRouteState(e)}changeUrl(e){if(console.debug("bidirectional changeRoute from widget: ",e),!e.path||this.afterPopState$.value)return;this.brand&&(e.path=this.brand+`${e.path.startsWith("/")?"":"/"}${e.path}`);const t=this.convertObjectToString(e);if(this.previousStatePath!==t)if(this.previousStatePath=t,e.forceReload)this.router.navigate([e.path],{queryParams:e.queryParams?Object.fromEntries(e.queryParams):{},queryParamsHandling:e.queryParamsHandling??"merge"});else{const t=this.router.createUrlTree([e.path],{queryParams:e.queryParams?Object.fromEntries(e.queryParams):{},queryParamsHandling:e.queryParamsHandling??""}).toString();this.location.go(t,"",{navigationId:h$()})}}sendRouteState(e){const t={...e,path:e.path.startsWith("/")?e.path.substring(1):e.path};this.previousStatePath=this.convertObjectToString(t),this.brand&&(e.path=e.path.replace(this.brand,""),e.path.indexOf("//")>-1&&(e.path=e.path.replace("//","/"))),console.debug("bidirectional changeRoute from client: ",e),this.currentRouteBSubject.next(e)}getActiveRouteState(){return{path:this.getUrlWithoutParams(),queryParams:new Map(Object.entries(this.route.snapshot.queryParams))}}getUrlWithoutParams(){let e=this.router.parseUrl(this.router.url);return e.queryParams={},e.fragment=null,e.toString()}convertObjectToString(e){const t=Object.fromEntries(e.queryParams);return JSON.stringify({...e,queryParams:t})}};f$=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([wc({providedIn:"root"})],f$);class g${injector;version={major:1,minor:0};router;constructor(e){this.injector=e,this.router=new m$(e)}}class m${injector;version={major:1,minor:0};currentRoute;listenersMap=new WeakMap;bidiRouterService;initialLoad=!0;constructor(e){this.injector=e,this.bidiRouterService=this.injector.get(f$),this.bidiRouterService.currentRoute$.subscribe((e=>{this.currentRoute=e,this.shareState()}))}getCurrentRoute(){return Promise.resolve(this.currentRoute)}changeRoute(e){try{return this.bidiRouterService.changeUrl(e),Promise.resolve(!0)}catch(e){return console.error(e),Promise.reject(!1)}}addRouteChangeListener(e){try{if(this.initialLoad&&(window.addEventListener("popstate",(e=>{this.bidiRouterService.afterPopState$.next(!0),setTimeout((()=>{this.bidiRouterService.afterPopState$.next(!1)}),2e3)})),this.initialLoad=!1),this.bidiRouterService.afterPopState$.value)return;if(this.listenersMap.has(e))return void console.debug("Bidirectional Router listener already exists");const t=t=>{e(t.detail)};window.addEventListener(eP,t),this.listenersMap.set(e,t),this.shareState(),console.debug("Bidirectional Router listener added, state sent",this.currentRoute)}catch(e){console.error(e)}}removeRouteChangeListener(e){const t=this.listenersMap.get(e);t?(window.removeEventListener(eP,t),this.listenersMap.delete(e)):console.debug("Bidirectional Router listener does not exist")}shareState(){const e=new CustomEvent(eP,{detail:this.currentRoute});window.dispatchEvent(e)}}var v$;!function(e){e.useractioncomplete="useractioncomplete",e.tcloaded="tcloaded",e.cmpuishown="cmpuishown"}(v$||(v$={}));class y${data;constructor(e){this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return this.data?.purpose?.consents}vendorGrant(e){return this.data?.vendor?.consents?.[e]}}class E${hasConsent(e){return!1}getVendorGrant(e){return!1}getPurposeGrants(e){return{}}}class _${tcData;customConsentData;updateTCData(e){this.tcData=e}updateCustomConsentData(e){this.customConsentData=e}hasConsent(e){return!(!this.tcData?.hasConsent(e)&&!this.customConsentData?.hasConsent(e))}getVendorGrant(e){return!(!this.tcData?.getVendorGrant(e)&&!this.customConsentData?.getVendorGrant(e))}getPurposeGrants(e){return{...this.tcData?.getPurposeGrants(e),...this.customConsentData?.getPurposeGrants(e)}}}class b${displayName;data;constructor(e,t){this.displayName=e,this.data=t}isEnabled(){return!!this.data}}class C${pluginConfiguration;init$;constructor(e){this.pluginConfiguration=e,this.init$=new Promise(((e,t)=>{this.init(e,t)}))}async init(e,t){return this.adjustDocument().then((()=>{console.debug(`Document adjusted for plugin: ${this.getDisplayName()}`),e()})).catch((e=>{console.error(`Error while adjusting document for plugin: ${this.getDisplayName()}`,e),t(e)}))}getConfig(){return this.pluginConfiguration}getDisplayName(){return this.getConfig().displayName}}class S$ extends b${}class I$ extends C${consentInfo=new _$;cmpLoadedFirstTime=!1;isCMPLoadedFirstTime(){return!this.cmpLoadedFirstTime&&(this.cmpLoadedFirstTime=!0,!0)}hasConsent(e){return!!e&&this.consentInfo.hasConsent(e)}getConsent(e){const t=e.vendorId;return{vendorId:t,vendorGrant:this.consentInfo.getVendorGrant(t),purposeGrants:this.consentInfo.getPurposeGrants(t)}}updateConsent(){}}class D$ extends S${hasConsentDefaultValue;constructor(e){super("PXP Default CMP",null),this.hasConsentDefaultValue=e}isEnabled(){return!0}isValidConfiguration(){return!0}createInstance(){return new w$(this)}}class w$ extends I${async adjustDocument(){}async showPrivacyManager(){return{}}async grantConsent(e){}hasConsent(e){return this.getConfig().hasConsentDefaultValue}getConsent(e){return{vendorId:e.vendorId,vendorGrant:!0,purposeGrants:{}}}}class T$ extends E${data;constructor(e){super(),this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return this.data?.purposeConsents}vendorGrant(e){return this.data?.vendorConsents?.[e]}}class O$ extends S${constructor(e){super("ConsentManager CMP",e)}createInstance(){return new A$(this)}getCodeId(){return this.data?.configuration?.codeId}getCmpHost(){return this.data?.configuration?.cmpHost}getCmpCdn(){return this.data?.configuration?.cmpCdn}getCmpBlockIgnoreDomains(){return this.data?.configuration?.cmpBlockIgnoreDomains??[]}isValidConfiguration(){return!!this.getCodeId()&&!!this.getCmpHost()&&!!this.getCmpCdn()}}class A$ extends I${adjustDocument(){return new Promise(((e,t)=>{const n=document.head.firstChild;this.getConfig().getCmpBlockIgnoreDomains().length>0&&document.head.insertBefore(this.createBlockingScript(),n),document.head.insertBefore(this.createCmpEndpoint(e,t),n)}))}createBlockingScript(){const e="['"+this.getConfig().getCmpBlockIgnoreDomains().join("','")+"']",t=document.createElement("script");return t.setAttribute("data-cmp-ab","1"),t.innerHTML=`\n window.cmp_block_inline = false;\n window.cmp_block_ignoredomains = ${e};\n `,t}createCmpEndpoint(e,t){const n=this,r=this.getConfig(),i=document.createElement("script");return i.type="text/javascript",i.src=`https://${r.getCmpCdn()}/delivery/autoblocking/${r.getCodeId()}.js`,i.setAttribute("data-cmp-ab","1"),i.setAttribute("data-cmp-host",r.getCmpHost()),i.setAttribute("data-cmp-cdn",r.getCmpCdn()),i.setAttribute("data-cmp-codesrc","1"),i.onload=()=>{window.__cmp("addEventListener",["consent",async()=>{console.debug(`${n.getDisplayName()}, addEventListener, consent loaded`),await n.updateConsentInfo(),n.isCMPLoadedFirstTime()&&e()},!1],null)},i.onerror=()=>{console.error(`Error while loading: ${n.getDisplayName()}`),n.isCMPLoadedFirstTime()&&t()},i}async showPrivacyManager(){return window.__cmp("showScreen")}async grantConsent(e){window.__cmp("setVendorConsent",[e.vendorId,1]),e.purposeIds?.length>0&&e.purposeIds.forEach((e=>{window.__cmp("setPurposeConsent",[e,1])}))}async updateConsentInfo(){console.debug(`${this.getDisplayName()}, updateConsentInfo`);const e=await window.__cmp("getCMPData");console.debug(`${this.getDisplayName()}, getCMPData, data:`,e),this.consentInfo.updateCustomConsentData(new T$(e))}}var N$,M$=n(8287),P$=n.n(M$);!function(e){e.gdpr="gdpr",e.usnat="usnat"}(N$||(N$={}));class R${data;constructor(e){this.data=e}getType(){return this.data?.type}getPrivacyManagerId(){return this.data?.privacyManagerId}}class x${pluginConfiguration;activeVisitorCampaign;unresolvedCampaigns=new Set;constructor(e){this.pluginConfiguration=e,this.initResolvedCampaigns()}getActiveVisitorCampaign(){return this.activeVisitorCampaign}assignCampaignToVisitor(e){void 0===this.getActiveVisitorCampaign()&&(this.activeVisitorCampaign=new R$(this.pluginConfiguration.getCampaignData(e)),console.debug(`${this.pluginConfiguration.displayName}, set active campaign to '${this.activeVisitorCampaign.getType()}'`))}receivedCampaign(e,t){this.unresolvedCampaigns.has(e)&&this.unresolvedCampaigns.delete(e),this.allCampaignsResolved()&&t()}allCampaignsResolved(){return 0==this.unresolvedCampaigns.size}initResolvedCampaigns(){this.unresolvedCampaigns=this.pluginConfiguration.getCampaignTypes(),console.debug(`${this.pluginConfiguration.displayName}, Active campaigns: `,this.unresolvedCampaigns)}}class k$ extends E${hasConsent(e){return!0}getVendorGrant(e){return!0}getPurposeGrants(e){return{}}}class L$ extends E${data;constructor(e){super(),this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return this.data?.grants?.[e]?.purposeGrants}vendorGrant(e){return this.data?.grants?.[e]?.vendorGrant}}class F$ extends E${data;constructor(e){super(),this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return{}}vendorGrant(e){const t=this.data?.vendors?.find((t=>t._id===e));return t?.consented??!1}}class U$ extends S${constructor(e){super("SourcePoint CMP",e)}createInstance(){return new j$(this)}getAccountId(){return this.data?.configuration?.accountId}getPropertyId(){return this.data?.configuration?.propertyId}getPropertyName(){return this.data?.configuration?.propertyName}isValidConfiguration(){return!!(this.getAccountId()&&this.getPropertyId()&&this.getPropertyName()&&this.hasValidCampaignConfiguration())}getCampaignTypes(){const e=new Set;return this.hasCampaigns()?this.data?.configuration?.campaigns?.forEach((t=>{e.add(t.type)})):e.add(N$.gdpr),e}hasCampaigns(){return this.data?.configuration?.campaigns?.length>0}hasCampaignGDPR(){return this.hasCampaign(N$.gdpr)||!!this.getPrivacyManagerId()}hasCampaignUsNational(){return this.hasCampaign(N$.usnat)}getCampaignData(e){return this.hasCampaigns()?this.data?.configuration?.campaigns?.find((t=>t.type===e)):{type:N$.gdpr,privacyManagerId:this.getPrivacyManagerId()}}isKnownCampaignType(e){return Object.values(N$).includes(e)}hasCampaign(e){return void 0!==this.data?.configuration?.campaigns?.find((t=>t.type===e))}getPrivacyManagerId(){return this.data?.configuration?.privacyManagerId}hasValidCampaignConfiguration(){if(this.hasCampaigns()){const e=this.data?.configuration?.campaigns.find((e=>this.isKnownCampaignType(e.type)&&void 0!==e.privacyManagerId));return void 0!==e}return!!this.getPrivacyManagerId()}}class j$ extends I${campaignManager;constructor(e){super(e),this.campaignManager=new x$(this.getConfig())}adjustDocument(){const e=this;return new Promise(((t,n)=>{const r=e.getConfig();r.hasCampaignGDPR()&&e.createTcfStubScript(),r.hasCampaignUsNational()&&document.head.appendChild(e.createGppStubScript()),document.head.appendChild(e.createClientConfigurationScript()),e.addListener(t,n),document.head.appendChild(e.createMessagingLibraryScript((()=>{}),(t=>{e.isCMPLoadedFirstTime()&&n(t)})))}))}createTcfStubScript(){P$()()}createGppStubScript(){const e=document.createElement("script");return e.type="text/javascript",e.innerHTML='window.__gpp_addFrame=function(e){if(!window.frames[e])if(document.body){var t=document.createElement("iframe");t.style.cssText="display:none",t.name=e,document.body.appendChild(t)}else window.setTimeout(window.__gpp_addFrame,10,e)},window.__gpp_stub=function(){var e=arguments;if(__gpp.queue=__gpp.queue||[],__gpp.events=__gpp.events||[],!e.length||1==e.length&&"queue"==e[0])return __gpp.queue;if(1==e.length&&"events"==e[0])return __gpp.events;var t=e[0],p=e.length>1?e[1]:null,s=e.length>2?e[2]:null;if("ping"===t)p({gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}},!0);else if("addEventListener"===t){"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;var n=__gpp.lastId;__gpp.events.push({id:n,callback:p,parameter:s}),p({eventName:"listenerRegistered",listenerId:n,data:!0,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else if("removeEventListener"===t){for(var a=!1,i=0;i<__gpp.events.length;i++)if(__gpp.events[i].id==s){__gpp.events.splice(i,1),a=!0;break}p({eventName:"listenerRemoved",listenerId:s,data:a,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else"hasSection"===t?p(!1,!0):"getSection"===t||"getField"===t?p(null,!0):__gpp.queue.push([].slice.apply(e))},window.__gpp_msghandler=function(e){var t="string"==typeof e.data;try{var p=t?JSON.parse(e.data):e.data}catch(e){p=null}if("object"==typeof p&&null!==p&&"__gppCall"in p){var s=p.__gppCall;window.__gpp(s.command,(function(p,n){var a={__gppReturn:{returnValue:p,success:n,callId:s.callId}};e.source.postMessage(t?JSON.stringify(a):a,"*")}),"parameter"in s?s.parameter:null,"version"in s?s.version:"1.1")}},"__gpp"in window&&"function"==typeof window.__gpp||(window.__gpp=window.__gpp_stub,window.addEventListener("message",window.__gpp_msghandler,!1),window.__gpp_addFrame("__gppLocator"));',e}createClientConfigurationScript(){const e=document.createElement("script");return e.type="text/javascript",e.innerHTML=`\n window._sp_queue = [];\n window._sp_ = {\n ${this.createConfiguration()}\n };\n `,e}createConfiguration(){const e=this.getConfig();return`\n config: {\n accountId: ${e.getAccountId()},\n baseEndpoint: 'https://cdn.privacy-mgmt.com',\n propertyId: ${e.getPropertyId()},\n propertyHref: '${e.getPropertyName()}',\n ${this.createCampaigns()},\n events: {}\n }\n `}createCampaigns(){const e=this.getConfig(),t=new Array;return e.hasCampaignGDPR()&&t.push("gdpr: {}"),e.hasCampaignUsNational()&&t.push("usnat: {}"),t.join(", ")}createMessagingLibraryScript(e,t){const n=this,r=document.createElement("script");return r.async=!0,r.type="text/javascript",r.src="https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js",r.onload=()=>e(),r.onerror=e=>{console.error(`Error while loading: ${n.getDisplayName()}`,e),t(e)},r}addListener(e,t){const n=this.getConfig();n.hasCampaignGDPR()&&this.handleTFCEventListener(),n.hasCampaignUsNational()&&this.handleGPPEventListener(),this.addOnConsentReadyListener(e),this.addOnErrorListener(t)}addOnErrorListener(e){const t=this;window._sp_.config.events.onError=async function(){console.debug(`${t.getDisplayName()}, [event] onError`,arguments),t.isCMPLoadedFirstTime()&&e()}}addOnConsentReadyListener(e){const t=this;window._sp_.config.events.onConsentReady=async function(n,r,i,o){console.debug(`${t.getDisplayName()}, onConsentReady`,arguments),console.debug(`${t.getDisplayName()}, Geo location applies to visitor: ${o.applies}`),t.getConfig().isKnownCampaignType(n)||console.warn(`${t.getDisplayName()}, Incoming message_type "${n}" is not configured by any campaign in "experience.config.json". That may result in unexpected behavior and need to be fixed!`),o.applies&&(t.campaignManager.assignCampaignToVisitor(n),await t.updateConsentInfo()),t.campaignManager.receivedCampaign(n,(()=>{void 0===t.campaignManager.getActiveVisitorCampaign()&&t.consentInfo.updateCustomConsentData(new k$),t.isCMPLoadedFirstTime()&&e()}))}}handleTFCEventListener(){const e=this;window.__tcfapi("addEventListener",2,(async function(t,n){n?(console.debug(`${e.getDisplayName()}, [TCF] addEventListener, eventStatus: ${t.eventStatus}`),t.eventStatus!==v$.useractioncomplete&&t.eventStatus!==v$.tcloaded||await e.updateConsentInfoTCData(new y$(t))):console.warn(`${e.getDisplayName()}, [TCF] addEventListener failed, no success!`)}))}handleGPPEventListener(){const e=this;window.__gpp("addEventListener",(async function(t,n){n?(console.debug(`${e.getDisplayName()}, [GPP] addEventListener`,t),"signalStatus"===t.eventName&&"ready"===t.data&&await e.updateConsentInfo()):console.warn(`${e.getDisplayName()}, [GPP] addEventListener failed, no success!`)}))}showPrivacyManager(){const e=this.campaignManager.getActiveVisitorCampaign();if(void 0===e)return void console.debug(`${this.getDisplayName()}, 'showPrivacyManager' called without any active campaign!`);const t=e.getPrivacyManagerId();switch(e.getType()){case N$.gdpr:return this.showPrivacyManagerTCF(t);case N$.usnat:return this.showPrivacyManagerUsNational(t);default:return}}showPrivacyManagerTCF(e){return window._sp_.gdpr.loadPrivacyManagerModal(e)}showPrivacyManagerUsNational(e){return window._sp_.usnat.loadPrivacyManagerModal(e)}async grantConsent(e){const t=this.campaignManager.getActiveVisitorCampaign();void 0!==t?t.getType()===N$.gdpr?await this.grantConsentTCF(e):console.debug(`${this.getDisplayName()}, Campaign (${t.getType()}) do not provide an API to grant anything.`):console.debug(`${this.getDisplayName()}, 'grantConsent' called without any active campaign!`)}async grantConsentTCF(e){const t=this;await window.__tcfapi("postCustomConsent",2,(function(e,n){console.debug(`${t.getDisplayName()}, postCustomConsent, success:`,n),console.debug(`${t.getDisplayName()}, postCustomConsent, data:`,e),n&&t.consentInfo.updateCustomConsentData(new L$(e))}),[e.vendorId],e.purposeIds,[])}async updateConsentInfo(){const e=this.campaignManager.getActiveVisitorCampaign();if(void 0!==e)switch(console.debug(`${this.getDisplayName()}, updateConsentInfo`),e.getType()){case N$.gdpr:await this.updateConsentInfoTCF();break;case N$.usnat:await this.updateConsentInfoUsNational()}}async updateConsentInfoTCData(e){console.debug(`${this.getDisplayName()}, updateConsentInfo, tcdata:`,e),this.consentInfo.updateTCData(e)}async updateConsentInfoTCF(){const e=this;await window.__tcfapi("getCustomVendorConsents",2,(function(t,n){console.debug(`${e.getDisplayName()}, getCustomVendorConsents, success:`,n),console.debug(`${e.getDisplayName()}, getCustomVendorConsents, data:`,t),n&&e.consentInfo.updateCustomConsentData(new L$(t))}))}async updateConsentInfoUsNational(){const e=this;await window._sp_.usnat.getUserConsents(((t,n)=>{console.debug(`${e.getDisplayName()}, getUserConsents, success:`,n),console.debug(`${e.getDisplayName()}, getUserConsents, data:`,t),n&&e.consentInfo.updateCustomConsentData(new F$(t))}))}}class V$ extends E${data;constructor(e){super(),this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return{}}vendorGrant(e){return this.data?.consents?.[e]}}class $$ extends S${constructor(e){super("Traffective CMP",e)}createInstance(){return new B$(this)}getDataDomain(){return this.data?.configuration?.dataDomain}isValidConfiguration(){return!!this.getDataDomain()}}class B$ extends I${adjustDocument(){return new Promise(((e,t)=>{document.head.insertBefore(this.createCmpEndpointScript(e,t),document.head.firstChild)}))}createCmpEndpointScript(e,t){const n=this,r=this.getConfig().getDataDomain(),i=document.createElement("script");return i.id="open-cmp-stub",i.type="text/javascript",i.src="https://cdn.opencmp.net/tcf-v2/cmp-stub-latest.js",i.setAttribute("data-domain",r),i.onload=()=>{window.__tcfapi("addEventListener",2,(async(r,i)=>{i?(console.debug(`${n.getDisplayName()}, addEventListener, eventStatus: ${r.eventStatus}`),r.eventStatus!==v$.useractioncomplete&&r.eventStatus!==v$.tcloaded||(await n.updateConsentInfo(new y$(r),new V$(r.customVendors)),n.isCMPLoadedFirstTime()&&e())):(console.warn(`${n.getDisplayName()}, addEventListener, script configuration is not valid!`),n.isCMPLoadedFirstTime()&&t())}))},i.onerror=()=>{console.error(`Error while loading: ${n.getDisplayName()}`),n.isCMPLoadedFirstTime()&&t()},i}async showPrivacyManager(){return window.__tcfapi("showUi",2,(function(){}))}async grantConsent(e){}async updateConsentInfo(e,t){console.debug(`${this.getDisplayName()}, updateConsentInfo`),this.consentInfo.updateTCData(e),console.debug(`${this.getDisplayName()}, updateConsentInfo, tcdata:`,e),this.consentInfo.updateCustomConsentData(t),console.debug(`${this.getDisplayName()}, updateConsentInfo, customConsentData:`,t)}updateConsent(){console.debug(`${this.getDisplayName()}, processConsent`),window?.__tcfapi("processConsent",2,(()=>console.debug(`${this.getDisplayName()}, processConsent done.`)))}}class H$ extends E${data;constructor(e){super(),this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return{}}vendorGrant(e){const t=this.data.find((t=>t.id===e));return t?.consent?.status??!1}}class G$ extends S${constructor(e){super("Usercentrics CMP",e)}createInstance(){return new q$(this)}scriptVersion(){return this.data?.configuration?.scriptVersion??"3.48.0"}getDataSettingsId(){return this.data?.configuration?.dataSettingsId}isDataTcfEnabled(){return this.data?.configuration?.dataTcfEnabled??!1}isCmpDisplaySuppressed(){return this.data?.configuration?.suppressCmpDisplay??!1}isValidConfiguration(){return!!this.getDataSettingsId()}}class q$ extends I${adjustDocument(){return new Promise(((e,t)=>{const n=this.getConfig(),r=document.head.firstElementChild;document.head.insertBefore(this.createLinkElement("preconnect","//app.usercentrics.eu"),r),document.head.insertBefore(this.createLinkElement("preconnect","//api.usercentrics.eu"),r),document.head.insertBefore(this.createLinkElement("preload",`//app.usercentrics.eu/browser-ui/${n.scriptVersion()}/loader.js`,"script"),r),n.isCmpDisplaySuppressed()&&document.head.insertBefore(this.createSupressCMPDisplay(),r),document.head.insertBefore(this.createCmpEndpoint(e,t),r)}))}createSupressCMPDisplay(){const e=document.createElement("script");return e.type="application/javascript",e.innerHTML="var UC_UI_SUPPRESS_CMP_DISPLAY = true;",e}createLinkElement(e,t,n){const r=document.createElement("link");return r.rel=e,r.href=t,n&&(r.as=n),r}createCmpEndpoint(e,t){const n=this,r=this.getConfig(),i=document.createElement("script");return i.id="usercentrics-cmp",i.src=`https://app.usercentrics.eu/browser-ui/${r.scriptVersion()}/loader.js`,i.setAttribute("data-settings-id",r.getDataSettingsId()),r.isDataTcfEnabled()?i.setAttribute("data-tcf-enabled",""):i.async=!0,r.isDataTcfEnabled()?i.onload=()=>{n.handleCmpEndpointOnLoadTCF(e,t)}:i.onload=()=>{n.handleCmpEndpointOnLoadDefault(e)},i.onerror=e=>{console.error(`Error while loading: ${n.getDisplayName()}`),n.isCMPLoadedFirstTime()&&t(e)},i}lastTcdataEventStatus;handleCmpEndpointOnLoadTCF(e,t){const n=this;window.__tcfapi("addEventListener",2,((r,i)=>{i?(console.debug(`${n.getDisplayName()}, addEventListener, eventStatus: ${r.eventStatus}`),n.lastTcdataEventStatus=r.eventStatus,r.eventStatus!==v$.useractioncomplete&&r.eventStatus!==v$.tcloaded||(n.updateConsentInfo(new y$(r)),n.isCMPLoadedFirstTime()&&e())):(console.warn(`${n.getDisplayName()}, addEventListener, script configuration is not valid!`),n.isCMPLoadedFirstTime()&&t())})),window.addEventListener("UC_UI_INITIALIZED",(()=>{console.debug(`${n.getDisplayName()}, event, UC_UI_INITIALIZED`),n.updateConsentInfo(),(n.lastTcdataEventStatus===v$.useractioncomplete||n.lastTcdataEventStatus===v$.tcloaded)&&this.isCMPLoadedFirstTime()&&e()})),window.addEventListener("UC_SDK_EVENT",(function(e){console.debug(`${n.getDisplayName()}, event: UC_SDK_EVENT: ${e.detail.action}`,e.detail),n.updateConsentInfo()}))}handleCmpEndpointOnLoadDefault(e){const t=this;window.addEventListener("UC_UI_INITIALIZED",(()=>{console.debug(`${t.getDisplayName()}, event, UC_UI_INITIALIZED`),t.updateConsentInfo(),!window.UC_UI.isConsentRequired()&&t.isCMPLoadedFirstTime()&&e()})),window.addEventListener("UC_SDK_EVENT",(function(n){console.debug(`${t.getDisplayName()}, event: UC_SDK_EVENT`,n.detail),"onInitialPageLoad"!==n.detail?.event&&(t.updateConsentInfo(),t.isCMPLoadedFirstTime()&&e())}))}isCMPLoadedFirstTime(){return window.UC_UI?.isInitialized()&&super.isCMPLoadedFirstTime()}async showPrivacyManager(){return window.UC_UI.showSecondLayer(),{}}async grantConsent(e){const t=e.vendorId;await window.UC_UI.acceptService(t),console.log(`Consent granted for custom vendor: ${t}`),this.updateConsentInfo()}updateConsentInfo(e){if(console.debug(`${this.getDisplayName()}, updateConsentInfo`),this.getConfig().isDataTcfEnabled()&&e&&(this.consentInfo.updateTCData(e),console.debug(`${this.getDisplayName()}, updateConsentInfo, tcdata:`,e)),window.UC_UI?.isInitialized()){const e=window.UC_UI.getServicesBaseInfo();this.consentInfo.updateCustomConsentData(new H$(e)),console.debug(`${this.getDisplayName()}, updateConsentInfo, customConsentData:`,e)}}}class z${kioskConfig;experienceConfig;constructor(e,t){this.kioskConfig=e,this.experienceConfig=t}loadCmpPluginConfiguration(){switch(this.getCmpProvider()){case"sourcepoint":return new U$(this.getSourcepointConfigData());case"consentManager":case"consentmanager":return new O$(this.getConsentmanagerConfigData());case"traffective":return new $$(this.getTraffectiveConfigData());case"usercentrics":return new G$(this.getUsercentricsConfigData());default:return new D$(!0)}}getCmpProvider(){return this.experienceConfig.purple?.consentManagement?.cmpProvider||this.experienceConfig.cmpProvider||this.kioskConfig.cmpProvider||"none"}getSourcepointConfigData(){const e=this.experienceConfig?.purple?.consentManagement?.cmps?.sourcepoint;return e||{configuration:{accountId:parseInt(this.kioskConfig.sourcePointAccountId,10),propertyId:parseInt(this.kioskConfig.sourcePointPropertyId,10),propertyName:this.kioskConfig.sourcePointPropertyName,privacyManagerId:this.kioskConfig.sourcePointPrivacyManagerId}}}getConsentmanagerConfigData(){const e=this.experienceConfig.purple?.consentManagement?.cmps?.consentmanager;if(e)return e;const t=this.experienceConfig.consentManager;if(t)try{return{configuration:{codeId:this.extractCodeId(t.script.properties.src),cmpHost:t.script.properties["data-cmp-host"],cmpCdn:t.script.properties["data-cmp-cdn"],cmpBlockIgnoreDomains:this.extractBlockIgnoreDomains(t.blockingScript.content)}}}catch(e){console.error("Can not convert legacy configuration for Consentmanager!")}return null}extractCodeId(e){const t=e?.substring(e.lastIndexOf("/")+1),n=t?.split(".");return n?n[0]:""}extractBlockIgnoreDomains(e){return e.match(/\[(.*)]/)?.[1].split(",").map((e=>e.trim().replace(/'/g,"").replace(/"/g,"")))??[]}getTraffectiveConfigData(){const e=this.experienceConfig.purple?.consentManagement?.cmps?.traffective;return e||(this.experienceConfig?.traffectiveCmp?{configuration:{dataDomain:this.experienceConfig?.traffectiveCmp?.script?.properties["data-domain"]}}:null)}getUsercentricsConfigData(){return this.experienceConfig.purple?.consentManagement?.cmps?.usercentrics}}class W${kioskConfigService;pluginService;pxpConfig;init$;currentCMP;constructor(e,t,n){this.kioskConfigService=e,this.pluginService=t,this.pxpConfig=n,this.init$=new Promise(((e,t)=>{this.init(e,t)}))}async init(e,t){const n=this,r=this.kioskConfigService.getConfig().subscribe((async t=>{this.currentCMP=this.createCMP(t.kioskConfig),this.currentCMP.init$.then((()=>{e()})).catch((t=>{const r=n.fallbackCMP();console.debug(`Could not load: ${n.currentCMP.getDisplayName()}.`,t),console.debug(` => Use fallback CMP instead: ${r.getDisplayName()}`),n.currentCMP=r,e()})),r.unsubscribe()}))}createCMP(e){const t=new z$(e,this.pxpConfig);return this.pluginService.loadPlugin(t.loadCmpPluginConfiguration())??this.fallbackCMP()}fallbackCMP(){return new D$(!1).createInstance()}}var K$=function(e,t){return function(n,r){t(n,r,e)}};let Q$=class{kioskConfigService;pluginService;platformId;pxpConfig;init$;CMPManager;consentAwarePlugins=new Set;constructor(e,t,n,r){this.kioskConfigService=e,this.pluginService=t,this.platformId=n,this.pxpConfig=r,this.init$=new Promise(((e,t)=>{this.init(e,t)}))}async init(e,t){Lx(this.platformId)?(this.CMPManager=new W$(this.kioskConfigService,this.pluginService,this.pxpConfig),this.CMPManager.init$.then((()=>{e()}))):e()}registerConsentAwarePlugin(e){this.consentAwarePlugins.add(e)}canRunPlugin(e){const t=this.hasConsent(e.getVendorId())||this.hasConsent(e.getIABVendorId());t?console.debug(` => ${e.displayName} consent granted.`):console.debug(` => ${e.displayName} consent not granted!`);const n=e.canRunWithoutConsent();return n&&console.debug(` => ${e.displayName} can run without given consent!`),t||n}async showPrivacyManager(){return this.CMPManager.currentCMP.showPrivacyManager()}hasConsent(e){return this.CMPManager.currentCMP.hasConsent(e)}getConsent(e){if(!e)throw{code:FM.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!e.vendorId)throw{code:FM.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};return this.CMPManager.currentCMP.getConsent(e)}async grantConsent(e){if(!e)throw{code:FM.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!e.vendorId)throw{code:FM.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};await this.CMPManager.currentCMP.grantConsent(e)}updateConsent(){this.CMPManager?.currentCMP?.updateConsent()}};Q$=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([wc({providedIn:"root"}),K$(2,wr(vl)),K$(3,wr(nX))],Q$);var Y$=function(e,t){return Y$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Y$(e,t)};function Z$(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Y$(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var J$=function(){return J$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},J$.apply(this,arguments)};function X$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function eB(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function tB(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function nB(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var rB="Invariant Violation",iB=Object.setPrototypeOf,oB=void 0===iB?function(e,t){return e.__proto__=t,e}:iB,sB=function(e){function t(n){void 0===n&&(n=rB);var r=e.call(this,"number"==typeof n?rB+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=rB,oB(r,t.prototype),r}return Z$(t,e),t}(Error);function aB(e,t){if(!e)throw new sB(t)}var cB,uB=["debug","log","warn","error","silent"],lB=uB.indexOf("log");function dB(e){return function(){if(uB.indexOf(e)>=lB)return(console[e]||console.log).apply(console,arguments)}}(cB=aB||(aB={})).debug=dB("debug"),cB.log=dB("log"),cB.warn=dB("warn"),cB.error=dB("error");var pB="3.8.1";function hB(e){try{return e()}catch{}}var fB=hB((function(){return globalThis}))||hB((function(){return window}))||hB((function(){return self}))||hB((function(){return global}))||hB((function(){return hB.constructor("return this")()})),gB=new Map;function mB(e){var t=gB.get(e)||1;return gB.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function vB(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.apply(void 0,nB(["number"==typeof t?bB(t):t],n,!1))}}var yB=Object.assign((function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||aB(e,bB(t,n))}),{debug:vB(aB.debug),log:vB(aB.log),warn:vB(aB.warn),error:vB(aB.error)});function EB(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new sB(bB(e,t))}var _B=Symbol.for("ApolloErrorMessageHandler_"+pB);function bB(e,t){if(void 0===t&&(t=[]),e){var n=t.map((function(e){return"string"==typeof e?e:function(e,t){void 0===t&&(t=0);var n=mB("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?n:t}),t).split(JSON.stringify(n)).join("<undefined>")}(e,2).slice(0,1e3)}));return fB[_B]&&fB[_B](e,n)||"An error occured! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:pB,message:e,args:n})))}}function CB(e,t){if(!e)throw new Error(t)}function SB(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}const IB=/\r\n|[\n\r]/g;function DB(e,t){let n=0,r=1;for(const i of e.body.matchAll(IB)){if("number"==typeof i.index||SB(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function wB(e){return TB(e.source,DB(e.source,e.start))}function TB(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?n:0,c=t.column+a,u=`${e.name}:${s}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),d=l[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return u+OB([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return u+OB([[s-1+" |",l[i-1]],[`${s} |`,d],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function OB(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class AB extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:a,path:c,originalError:u,extensions:l}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=NB(Array.isArray(o)?o:o?[o]:void 0);const d=NB(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=s??(null==d||null===(r=d[0])||void 0===r?void 0:r.source),this.positions=a??d?.map((e=>e.start)),this.locations=a&&s?a.map((e=>DB(s,e))):d?.map((e=>DB(e.source,e.start)));const p=function(e){return"object"==typeof e&&null!==e}(u?.extensions)?u?.extensions:void 0;this.extensions=null!==(i=l??p)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,AB):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+wB(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+TB(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function NB(e){return void 0===e||0===e.length?void 0:e}function MB(e,t,n){return new AB(`Syntax Error: ${n}`,{source:e,positions:[t]})}class PB{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class RB{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const xB={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},kB=new Set(Object.keys(xB));function LB(e){const t=e?.kind;return"string"==typeof t&&kB.has(t)}var FB,UB,jB,VB;function $B(e){return 9===e||32===e}function BB(e){return e>=48&&e<=57}function HB(e){return e>=97&&e<=122||e>=65&&e<=90}function GB(e){return HB(e)||95===e}function qB(e){return HB(e)||BB(e)||95===e}function zB(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var o;const s=e[t],a=WB(s);a!==s.length&&(r=null!==(o=r)&&void 0!==o?o:t,i=t,0!==t&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function WB(e){let t=0;for(;t<e.length&&$B(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(FB||(FB={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(UB||(UB={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(jB||(jB={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(VB||(VB={}));class KB{constructor(e){const t=new RB(VB.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==VB.EOF)do{if(e.next)e=e.next;else{const t=tH(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===VB.COMMENT);return e}}function QB(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function YB(e,t){return ZB(e.charCodeAt(t))&&JB(e.charCodeAt(t+1))}function ZB(e){return e>=55296&&e<=56319}function JB(e){return e>=56320&&e<=57343}function XB(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return VB.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function eH(e,t,n,r,i){const o=e.line,s=1+n-e.lineStart;return new RB(t,n,r,o,s,i)}function tH(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return nH(e,i);case 33:return eH(e,VB.BANG,i,i+1);case 36:return eH(e,VB.DOLLAR,i,i+1);case 38:return eH(e,VB.AMP,i,i+1);case 40:return eH(e,VB.PAREN_L,i,i+1);case 41:return eH(e,VB.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return eH(e,VB.SPREAD,i,i+3);break;case 58:return eH(e,VB.COLON,i,i+1);case 61:return eH(e,VB.EQUALS,i,i+1);case 64:return eH(e,VB.AT,i,i+1);case 91:return eH(e,VB.BRACKET_L,i,i+1);case 93:return eH(e,VB.BRACKET_R,i,i+1);case 123:return eH(e,VB.BRACE_L,i,i+1);case 124:return eH(e,VB.PIPE,i,i+1);case 125:return eH(e,VB.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?dH(e,i):oH(e,i)}if(BB(t)||45===t)return rH(e,i,t);if(GB(t))return pH(e,i);throw MB(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":QB(t)||YB(n,i)?`Unexpected character: ${XB(e,i)}.`:`Invalid character: ${XB(e,i)}.`)}return eH(e,VB.EOF,r,r)}function nH(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(QB(e))++i;else{if(!YB(n,i))break;i+=2}}return eH(e,VB.COMMENT,t,i,n.slice(t+1,i))}function rH(e,t,n){const r=e.source.body;let i=t,o=n,s=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),BB(o))throw MB(e.source,i,`Invalid number, unexpected digit after 0: ${XB(e,i)}.`)}else i=iH(e,i,o),o=r.charCodeAt(i);if(46===o&&(s=!0,o=r.charCodeAt(++i),i=iH(e,i,o),o=r.charCodeAt(i)),(69===o||101===o)&&(s=!0,o=r.charCodeAt(++i),(43===o||45===o)&&(o=r.charCodeAt(++i)),i=iH(e,i,o),o=r.charCodeAt(i)),46===o||GB(o))throw MB(e.source,i,`Invalid number, expected digit but got: ${XB(e,i)}.`);return eH(e,s?VB.FLOAT:VB.INT,t,i,r.slice(t,i))}function iH(e,t,n){if(!BB(n))throw MB(e.source,t,`Invalid number, expected digit but got: ${XB(e,t)}.`);const r=e.source.body;let i=t+1;for(;BB(r.charCodeAt(i));)++i;return i}function oH(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,s="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return s+=n.slice(o,i),eH(e,VB.STRING,t,i+1,s);if(92!==r){if(10===r||13===r)break;if(QB(r))++i;else{if(!YB(n,i))throw MB(e.source,i,`Invalid character within String: ${XB(e,i)}.`);i+=2}}else{s+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?sH(e,i):aH(e,i):lH(e,i);s+=t.value,i+=t.size,o=i}}throw MB(e.source,i,"Unterminated string.")}function sH(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!QB(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|uH(e),r<0)break}throw MB(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function aH(e,t){const n=e.source.body,r=cH(n,t+2);if(QB(r))return{value:String.fromCodePoint(r),size:6};if(ZB(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=cH(n,t+8);if(JB(e))return{value:String.fromCodePoint(r,e),size:12}}throw MB(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function cH(e,t){return uH(e.charCodeAt(t))<<12|uH(e.charCodeAt(t+1))<<8|uH(e.charCodeAt(t+2))<<4|uH(e.charCodeAt(t+3))}function uH(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function lH(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw MB(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function dH(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const c=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){a+=n.slice(s,o),c.push(a);const r=eH(e,VB.BLOCK_STRING,t,o+3,zB(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(QB(r))++o;else{if(!YB(n,o))throw MB(e.source,o,`Invalid character within String: ${XB(e,o)}.`);o+=2}else a+=n.slice(s,o),c.push(a),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,a="",s=o,i=o;else a+=n.slice(s,o),s=o+1,o+=4}throw MB(e.source,o,"Unterminated string.")}function pH(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&qB(n.charCodeAt(i));)++i;return eH(e,VB.NAME,t,i,n.slice(t,i))}const hH=10,fH=2;function gH(e){return mH(e,[])}function mH(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:mH(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>fH)return"[Array]";const n=Math.min(hH,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(mH(e[r],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>fH?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map((([e,n])=>e+": "+mH(n,t))).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const vH=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=gH(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class yH{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||CB(!1,`Body must be a string. Received: ${gH(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||CB(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||CB(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class EH{constructor(e,t={}){const n=function(e){return vH(e,yH)}(e)?e:new yH(e);this._lexer=new KB(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(VB.NAME);return this.node(e,{kind:jB.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:jB.DOCUMENT,definitions:this.many(VB.SOF,this.parseDefinition,VB.EOF)})}parseDefinition(){if(this.peek(VB.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===VB.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw MB(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(VB.BRACE_L))return this.node(e,{kind:jB.OPERATION_DEFINITION,operation:FB.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(VB.NAME)&&(n=this.parseName()),this.node(e,{kind:jB.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(VB.NAME);switch(e.value){case"query":return FB.QUERY;case"mutation":return FB.MUTATION;case"subscription":return FB.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(VB.PAREN_L,this.parseVariableDefinition,VB.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:jB.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(VB.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(VB.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(VB.DOLLAR),this.node(e,{kind:jB.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:jB.SELECTION_SET,selections:this.many(VB.BRACE_L,this.parseSelection,VB.BRACE_R)})}parseSelection(){return this.peek(VB.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(VB.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:jB.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(VB.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(VB.PAREN_L,t,VB.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(VB.COLON),this.node(t,{kind:jB.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(VB.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(VB.NAME)?this.node(e,{kind:jB.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:jB.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:jB.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:jB.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case VB.BRACKET_L:return this.parseList(e);case VB.BRACE_L:return this.parseObject(e);case VB.INT:return this.advanceLexer(),this.node(t,{kind:jB.INT,value:t.value});case VB.FLOAT:return this.advanceLexer(),this.node(t,{kind:jB.FLOAT,value:t.value});case VB.STRING:case VB.BLOCK_STRING:return this.parseStringLiteral();case VB.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:jB.BOOLEAN,value:!0});case"false":return this.node(t,{kind:jB.BOOLEAN,value:!1});case"null":return this.node(t,{kind:jB.NULL});default:return this.node(t,{kind:jB.ENUM,value:t.value})}case VB.DOLLAR:if(e){if(this.expectToken(VB.DOLLAR),this._lexer.token.kind===VB.NAME){const e=this._lexer.token.value;throw MB(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:jB.STRING,value:e.value,block:e.kind===VB.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:jB.LIST,values:this.any(VB.BRACKET_L,(()=>this.parseValueLiteral(e)),VB.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:jB.OBJECT,fields:this.any(VB.BRACE_L,(()=>this.parseObjectField(e)),VB.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(VB.COLON),this.node(t,{kind:jB.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(VB.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(VB.AT),this.node(t,{kind:jB.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(VB.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(VB.BRACKET_R),t=this.node(e,{kind:jB.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(VB.BANG)?this.node(e,{kind:jB.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:jB.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(VB.STRING)||this.peek(VB.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(VB.BRACE_L,this.parseOperationTypeDefinition,VB.BRACE_R);return this.node(e,{kind:jB.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(VB.COLON);const n=this.parseNamedType();return this.node(e,{kind:jB.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:jB.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:jB.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(VB.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(VB.BRACE_L,this.parseFieldDefinition,VB.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(VB.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:jB.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(VB.PAREN_L,this.parseInputValueDef,VB.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(VB.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(VB.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:jB.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:jB.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:jB.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(VB.EQUALS)?this.delimitedMany(VB.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:jB.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(VB.BRACE_L,this.parseEnumValueDefinition,VB.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:jB.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw MB(this._lexer.source,this._lexer.token.start,`${_H(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:jB.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(VB.BRACE_L,this.parseInputValueDef,VB.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===VB.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(VB.BRACE_L,this.parseOperationTypeDefinition,VB.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:jB.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:jB.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:jB.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:jB.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:jB.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:jB.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:jB.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(VB.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:jB.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(VB.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(UB,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new PB(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw MB(this._lexer.source,t.start,`Expected ${bH(e)}, found ${_H(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==VB.NAME||t.value!==e)throw MB(this._lexer.source,t.start,`Expected "${e}", found ${_H(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===VB.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=e??this._lexer.token;return MB(this._lexer.source,t.start,`Unexpected ${_H(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==VB.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw MB(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function _H(e){const t=e.value;return bH(e.kind)+(null!=t?` "${t}"`:"")}function bH(e){return function(e){return e===VB.BANG||e===VB.DOLLAR||e===VB.AMP||e===VB.PAREN_L||e===VB.PAREN_R||e===VB.SPREAD||e===VB.COLON||e===VB.EQUALS||e===VB.AT||e===VB.BRACKET_L||e===VB.BRACKET_R||e===VB.BRACE_L||e===VB.PIPE||e===VB.BRACE_R}(e)?`"${e}"`:e}const CH=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function SH(e){return IH[e.charCodeAt(0)]}const IH=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],DH=Object.freeze({});function wH(e,t,n=xB){const r=new Map;for(const e of Object.values(jB))r.set(e,TH(t,e));let i,o,s,a=Array.isArray(e),c=[e],u=-1,l=[],d=e;const p=[],h=[];do{u++;const e=u===c.length,v=e&&0!==l.length;if(e){if(o=0===h.length?void 0:p[p.length-1],d=s,s=h.pop(),v)if(a){d=d.slice();let e=0;for(const[t,n]of l){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of l)d[e]=t}u=i.index,c=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(s){if(o=a?u:c[u],d=s[o],null==d)continue;p.push(o)}let y;if(!Array.isArray(d)){var f,g;LB(d)||CB(!1,`Invalid AST Node: ${gH(d)}.`);const n=e?null===(f=r.get(d.kind))||void 0===f?void 0:f.leave:null===(g=r.get(d.kind))||void 0===g?void 0:g.enter;if(y=n?.call(t,d,o,s,p,h),y===DH)break;if(!1===y){if(!e){p.pop();continue}}else if(void 0!==y&&(l.push([o,y]),!e)){if(!LB(y)){p.pop();continue}d=y}}var m;void 0===y&&v&&l.push([o,d]),e?p.pop():(i={inArray:a,index:u,keys:c,edits:l,prev:i},a=Array.isArray(d),c=a?d:null!==(m=n[d.kind])&&void 0!==m?m:[],u=-1,l=[],s&&h.push(s),s=d)}while(void 0!==i);return 0!==l.length?l[l.length-1][1]:e}function TH(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}const OH={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>AH(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=MH("(",AH(e.variableDefinitions,", "),")"),n=AH([e.operation,AH([e.name,t]),AH(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+MH(" = ",n)+MH(" ",AH(r," "))},SelectionSet:{leave:({selections:e})=>NH(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=MH("",e,": ")+t;let s=o+MH("(",AH(n,", "),")");return s.length>80&&(s=o+MH("(\n",PH(AH(n,"\n")),"\n)")),AH([s,AH(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+MH(" ",AH(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>AH(["...",MH("on ",e),AH(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${MH("(",AH(n,", "),")")} on ${t} ${MH("",AH(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e){const t=e.replace(/"""/g,'\\"""'),n=t.split(/\r\n|[\n\r]/g),r=1===n.length,i=n.length>1&&n.slice(1).every((e=>0===e.length||$B(e.charCodeAt(0)))),o=t.endsWith('\\"""'),s=e.endsWith('"')&&!o,a=e.endsWith("\\"),c=s||a,u=!r||e.length>70||c||i||o;let l="";const d=r&&$B(e.charCodeAt(0));return(u&&!d||i)&&(l+="\n"),l+=t,(u||c)&&(l+="\n"),'"""'+l+'"""'}(e):function(e){return`"${e.replace(CH,SH)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+AH(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+AH(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+MH("(",AH(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>MH("",e,"\n")+AH(["schema",AH(t," "),NH(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>MH("",e,"\n")+AH(["scalar",t,AH(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>MH("",e,"\n")+AH(["type",t,MH("implements ",AH(n," & ")),AH(r," "),NH(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>MH("",e,"\n")+t+(RH(n)?MH("(\n",PH(AH(n,"\n")),"\n)"):MH("(",AH(n,", "),")"))+": "+r+MH(" ",AH(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>MH("",e,"\n")+AH([t+": "+n,MH("= ",r),AH(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>MH("",e,"\n")+AH(["interface",t,MH("implements ",AH(n," & ")),AH(r," "),NH(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>MH("",e,"\n")+AH(["union",t,AH(n," "),MH("= ",AH(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>MH("",e,"\n")+AH(["enum",t,AH(n," "),NH(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>MH("",e,"\n")+AH([t,AH(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>MH("",e,"\n")+AH(["input",t,AH(n," "),NH(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>MH("",e,"\n")+"directive @"+t+(RH(n)?MH("(\n",PH(AH(n,"\n")),"\n)"):MH("(",AH(n,", "),")"))+(r?" repeatable":"")+" on "+AH(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>AH(["extend schema",AH(e," "),NH(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>AH(["extend scalar",e,AH(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>AH(["extend type",e,MH("implements ",AH(t," & ")),AH(n," "),NH(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>AH(["extend interface",e,MH("implements ",AH(t," & ")),AH(n," "),NH(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>AH(["extend union",e,AH(t," "),MH("= ",AH(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>AH(["extend enum",e,AH(t," "),NH(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>AH(["extend input",e,AH(t," "),NH(n)]," ")}};function AH(e,t=""){var n;return null!==(n=e?.filter((e=>e)).join(t))&&void 0!==n?n:""}function NH(e){return MH("{\n",PH(AH(e,"\n")),"\n}")}function MH(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function PH(e){return MH(" ",e.replace(/\n/g,"\n "))}function RH(e){var t;return null!==(t=e?.some((e=>e.includes("\n"))))&&void 0!==t&&t}function xH(e){return e.kind===jB.FIELD||e.kind===jB.FRAGMENT_SPREAD||e.kind===jB.INLINE_FRAGMENT}function kH(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;yB(n&&1===n.length,65,r);var i=n[0];yB(i.name&&"if"===i.name.value,66,r);var o=i.value;yB(o&&("Variable"===o.kind||"BooleanValue"===o.kind),67,r),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],yB(void 0!==i,64,n.name.value)):i=r.value.value,"skip"===n.name.value?!i:i}))}function LH(e,t,n){var r=new Set(e),i=r.size;return wH(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return DH}}),n?!r.size:r.size<i}function FH(e){return e&&LH(["client","export"],e,!0)}const UH=()=>Object.create(null),{forEach:jH,slice:VH}=Array.prototype,{hasOwnProperty:$H}=Object.prototype;class BH{constructor(e=!0,t=UH){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return jH.call(e,(e=>t=t.getChildTrie(e))),$H.call(t,"data")?t.data:t.data=this.makeData(VH.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=this.weakness&&HH(e[n])?t.weak:t.strong;t=r&&r.get(e[n])}return t&&t.data}getChildTrie(e){const t=this.weakness&&HH(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let n=t.get(e);return n||t.set(e,n=new BH(this.weakness,this.makeData)),n}}function HH(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var GH="function"==typeof WeakMap&&"ReactNative"!==hB((function(){return navigator.product})),qH="function"==typeof WeakSet,zH="function"==typeof Symbol&&"function"==typeof Symbol.for,WH=zH&&Symbol.asyncIterator;function KH(e){return null!==e&&"object"==typeof e}function QH(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw EB(68,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&r.push(e)})),typeof n>"u"&&(yB(1===r.length,69,r.length),n=r[0].name.value),J$(J$({},e),{definitions:nB([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function YH(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function ZH(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return yB(r,70,n),r||null;default:return null}}function JH(e){return{__ref:String(e)}}function XH(e){return!(!e||"object"!=typeof e||"string"!=typeof e.__ref)}function eG(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return eG(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return eG(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw EB(79,t.value,n.kind);e[t.value]=null}}hB((function(){return window.document.createElement})),hB((function(){return navigator.userAgent.indexOf("jsdom")>=0}));var tG=["connection","include","skip","client","rest","export","nonreactive"],nG=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(rG(i),")")}return n.connection.key}var o=e;if(t){var s=rG(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach((function(e){-1===tG.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(rG(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=rG;return rG=e,t}}),rG=function(e){return JSON.stringify(e,iG)};function iG(e,t){return KH(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function oG(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return eG(n,r,i,t)})),n}return null}function sG(e){return e.alias?e.alias.value:e.name.value}function aG(e,t,n){for(var r,i=0,o=t.selections;i<o.length;i++)if(cG(c=o[i])){if("__typename"===c.name.value)return e[sG(c)]}else r?r.push(c):r=[c];if("string"==typeof e.__typename)return e.__typename;if(r)for(var s=0,a=r;s<a.length;s++){var c,u=aG(e,ZH(c=a[s],n).selectionSet,n);if("string"==typeof u)return u}}function cG(e){return"Field"===e.kind}function uG(e){yB(e&&"Document"===e.kind,71);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw EB(72,e.kind);return e}));return yB(t.length<=1,73,t.length),e}function lG(e){return uG(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function dG(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function pG(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function hG(e){uG(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"===i.kind&&!t&&(t=i)}if(t)return t;throw EB(78)}function fG(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&eG(t,e.variable.name,e.defaultValue)})),t}function gG(e){return e}var mG=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=qH?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new BH(GH,(function(e){return{key:e}})))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(gG,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),new e((function(e){return(t(e)?n:r).transformDocument(e)}),{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;uG(e);var n=this.transform(e);return this.resultCache.add(n),t&&(t.value=n),n},e.prototype.concat=function(t){var n=this;return new e((function(e){return t.transformDocument(n.transformDocument(e))}),{cache:!1})},e.prototype.getStableCacheEntry=function(e){if(this.stableCacheKeys){var t=this.getCacheKey(e);if(t)return yB(Array.isArray(t),63),this.stableCacheKeys.lookupArray(t)}},e}(),vG=GH?new WeakMap:void 0,yG=function(e){var t;return t=vG?.get(e),t||(t=function(e){return wH(e,OH)}(e),vG?.set(e,t)),t},EG=Array.isArray;function _G(e){return Array.isArray(e)&&e.length>0}var bG={kind:jB.FIELD,name:{kind:jB.NAME,value:"__typename"}};function CG(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===jB.FRAGMENT_SPREAD&&CG(t[e.name.value],t)}))}function SG(e){return CG(lG(e)||function(e){yB("Document"===e.kind,75),yB(e.definitions.length<=1,76);var t=e.definitions[0];return yB("FragmentDefinition"===t.kind,77),t}(e),YH(pG(e)))?null:e}function IG(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function DG(e,t){uG(t);for(var n=IG(""),r=IG(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!EG(i)){if(i.kind===jB.OPERATION_DEFINITION)return n(i.name&&i.name.value);if(i.kind===jB.FRAGMENT_DEFINITION)return r(i.name.value)}return null},o=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===jB.OPERATION_DEFINITION&&++o;var a=function(e){var t=new Map,n=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))})),function(e){var r=t.get(e.name.value);return!r&&n.size&&n.forEach((function(t,n){n(e)&&(r=t)})),r}}(e),c=function(e){return _G(e)&&e.map(a).some((function(e){return e&&e.remove}))},u=new Map,l=!1,d={enter:function(e){if(c(e.directives))return l=!0,null}},p=wH(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,o){var s=i(o);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,o){if(c(e.directives))return l=!0,null;var s=i(o);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){u.set(JSON.stringify(r),e)},leave:function(e,t,n,i){return e===u.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every((function(e){return e.kind===jB.FIELD&&"__typename"===e.name.value}))?(r(e.name.value).removed=!0,l=!0,null):void 0}},Directive:{leave:function(e){if(a(e))return l=!0,null}}});if(!l)return t;var h=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){h(r(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},f=new Set;p.definitions.forEach((function(e){e.kind===jB.OPERATION_DEFINITION?h(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){f.add(e)})):e.kind===jB.FRAGMENT_DEFINITION&&0===o&&!r(e.name.value).removed&&f.add(e.name.value)})),f.forEach((function(e){h(r(e)).fragmentSpreads.forEach((function(e){f.add(e)}))}));var g={enter:function(e){if(function(e){return!(f.has(e)&&!r(e).removed)}(e.name.value))return null}};return SG(wH(p,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=h(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return J$(J$({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var wG=Object.assign((function(e){return wH(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==jB.OPERATION_DEFINITION){var r=e.selections;if(r&&!r.some((function(e){return cG(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(cG(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return J$(J$({},e),{selections:nB(nB([],r,!0),[bG],!1)})}}}}})}),{added:function(e){return e===bG}});function TG(e){if("query"===hG(e).operation)return e;var t=wH(e,{OperationDefinition:{enter:function(e){return J$(J$({},e),{operation:"query"})}}});return t}function OG(e){return uG(e),DG([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var AG=Object.prototype.hasOwnProperty;function NG(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return MG(e)}function MG(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new RG,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var PG=function(e,t,n){return this.merge(e[n],t[n])},RG=function(){function e(e){void 0===e&&(e=PG),this.reconciler=e,this.isObject=KH,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return KH(t)&&KH(e)?(Object.keys(t).forEach((function(i){if(AG.call(e,i)){var o=e[i];if(t[i]!==o){var s=n.reconciler.apply(n,nB([e,t,i],r,!1));s!==o&&((e=n.shallowCopyForMerge(e))[i]=s)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return KH(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):J$({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function xG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function LG(e,t,n){return t&&kG(e.prototype,t),n&&kG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var FG=function(){return"function"==typeof Symbol},UG=function(e){return FG()&&!!Symbol[e]},jG=function(e){return UG(e)?Symbol[e]:"@@"+e};FG()&&!UG("observable")&&(Symbol.observable=Symbol("observable"));var VG=jG("iterator"),$G=jG("observable"),BG=jG("species");function HG(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function GG(e){var t=e.constructor;return void 0!==t&&null===(t=t[BG])&&(t=void 0),void 0!==t?t:XG}function qG(e){qG.log?qG.log(e):setTimeout((function(){throw e}))}function zG(e){Promise.resolve().then((function(){try{e()}catch(e){qG(e)}}))}function WG(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=HG(t,"unsubscribe");n&&n.call(t)}}catch(e){qG(e)}}function KG(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function QG(e,t,n){e._state="running";var r=e._observer;try{var i=HG(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(KG(e),!i)throw n;i.call(r,n);break;case"complete":KG(e),i&&i.call(r)}}catch(e){qG(e)}"closed"===e._state?WG(e):"running"===e._state&&(e._state="ready")}function YG(e,t,n){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:n});if("ready"!==e._state)return e._state="buffering",e._queue=[{type:t,value:n}],void zG((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(QG(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}));QG(e,t,n)}}var ZG=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new JG(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(KG(this),WG(this))},LG(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),JG=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){YG(this._subscription,"next",e)},t.error=function(e){YG(this._subscription,"error",e)},t.complete=function(){YG(this._subscription,"complete")},LG(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),XG=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new ZG(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(GG(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(GG(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=GG(this),r=arguments.length>1,i=!1,o=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var s=!i;if(i=!0,!s||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=GG(this);return new i((function(t){var r,o=0;return function e(s){r=s.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=GG(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){r.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[$G]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=HG(t,$G);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof XG}(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(UG("iterator")&&(r=HG(t,VG)))return new n((function(e){zG((function(){if(!e.closed){for(var n,i=function(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return xG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xG(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){zG((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)((function(e){zG((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},LG(e,null,[{key:BG,get:function(){return this}}]),e}();FG()&&Object.defineProperty(XG,Symbol("extensions"),{value:{symbol:$G,hostReportError:qG},configurable:!0}),function(){var e,t=(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:typeof module<"u"?module:Function("return this")()).Symbol;if("function"==typeof t)if(t.observable)e=t.observable;else{e="function"==typeof t.for?t.for("https://github.com/benlesh/symbol-observable"):t("https://github.com/benlesh/symbol-observable");try{t.observable=e}catch{}}else e="@@observable"}();var eq=XG.prototype,tq="@@observable";eq[tq]||(eq[tq]=function(){return this});var nq=Object.prototype.toString;function rq(e){return iq(e)}function iq(e,t){switch(nq.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=iq(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=iq(e[n],t)})),r;default:return e}}function oq(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function sq(e,t,n){return new XG((function(r){var i=r.next,o=r.error,s=r.complete,a=0,c=!1,u={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++a;var n=function(){return e(t)};u=u.then(n,n).then((function(e){--a,i&&i.call(r,e),c&&d.complete()}),(function(e){throw--a,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:l(t,i),error:l(n,o),complete:function(){c=!0,a||s&&s.call(r)}},p=e.subscribe(d);return function(){return p.unsubscribe()}}))}function aq(e){function t(t){Object.defineProperty(e,t,{value:XG})}return zH&&Symbol.species&&t(Symbol.species),t("@@species"),e}function cq(e){return e&&"function"==typeof e.then}var uq=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),oq(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),oq(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?cq(i)?i.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=i.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),oq(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new XG(t)]),cq(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return Z$(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(XG);function lq(e){return"incremental"in e}function dq(e){return KH(e)&&"payload"in e}function pq(e,t){var n=e,r=new RG;return lq(t)&&_G(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var s=i[o],a=isNaN(+s)?{}:[];a[s]=t,t=a}n=r.merge(n,t)})),n}function hq(e){return _G(fq(e))}function fq(e){var t=_G(e.errors)?e.errors.slice(0):[];return lq(e)&&_G(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}function gq(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}function mq(e,t){return gq(e,t,t.variables&&{variables:gq(J$(J$({},e&&e.variables),t.variables))})}function vq(e){return new XG((function(t){t.error(e)}))}aq(uq);var yq=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function Eq(e,t){return t?t(e):XG.of()}function _q(e){return"function"==typeof e?new Cq(e):e}function bq(e){return e.request.length<=1}var Cq=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return XG.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(_q).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=_q(n),o=_q(r||new e(Eq));return bq(i)&&bq(o)?new e((function(e){return t(e)?i.request(e)||XG.of():o.request(e)||XG.of()})):new e((function(e,n){return t(e)?i.request(e,n)||XG.of():o.request(e,n)||XG.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=J$({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=J$(J$({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return J$({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?dG(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw EB(41,i)}return e}(t))))||XG.of()},e.concat=function(t,n){var r=_q(t);if(bq(r))return r;var i=_q(n);return bq(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||XG.of()}))||XG.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||XG.of()}))||XG.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Eq)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw EB(34)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();Cq.empty;var Sq=Cq.from;Cq.split,Cq.concat;var Iq=Cq.execute;function Dq(e){var t={next:function(){return e.read()}};return WH&&(t[Symbol.asyncIterator]=function(){return this}),t}function wq(e){var t=e;if(function(e){return!!e.body}(e)&&(t=e.body),function(e){return!(!WH||!e[Symbol.asyncIterator])}(t))return function(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(t);if(function(e){return!!e.getReader}(t))return Dq(t.getReader());if(function(e){return!!e.stream}(t))return Dq(t.stream().getReader());if(function(e){return!!e.arrayBuffer}(t))return function(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,n){e.then((function(e){t({value:e,done:!1})})).catch(n)})))}};return WH&&(n[Symbol.asyncIterator]=function(){return this}),n}(t.arrayBuffer());if(function(e){return!!e.pipe}(t))return function(e){var t=null,n=null,r=!1,i=[],o=[];function s(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function a(e){n=e,o.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){r=!0,o.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",a),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",a),e.on("end",c),e.on("finish",c),e.on("close",c);var u={next:function(){return new Promise((function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])}))}};return WH&&(u[Symbol.asyncIterator]=function(){return this}),u}(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Tq=Symbol(),Oq=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,s=n.networkError,a=n.errorMessage,c=n.extraInfo,u=e.call(this,a)||this;return u.name="ApolloError",u.graphQLErrors=r||[],u.protocolErrors=i||[],u.clientErrors=o||[],u.networkError=s||null,u.message=a||function(e){var t=nB(nB(nB([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map((function(e){return KH(e)&&e.message||"Error message not found."})).join("\n")}(u),u.extraInfo=c,u.__proto__=t.prototype,u}return Z$(t,e),t}(Error),Aq=Object.prototype.hasOwnProperty;function Nq(e){var t={};return e.split("\n").forEach((function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}})),t}function Mq(e,t){e.status>=300&&yq(e,function(){try{return JSON.parse(t)}catch{return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var Pq=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=EB(37,t,e.message);throw r.parseError=e,r}return n},Rq={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},xq=function(e,t){return t(e)};var kq=hB((function(){return fetch})),Lq=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?xq:i,s=e.includeExtensions,a=e.preserveHeaderCase,c=e.useGETForQueries,u=e.includeUnusedVariables,l=void 0!==u&&u,d=X$(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),p={http:{includeExtensions:s,preserveHeaderCase:a},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new Cq((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),s={};if(i.clientAwareness){var a=i.clientAwareness,u=a.name,d=a.version;u&&(s["apollographql-client-name"]=u),d&&(s["apollographql-client-version"]=d)}var h=J$(J$({},s),i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h};if(LH(["client"],e.query)){var g=OG(e.query);if(!g)return vq(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=g}var m,v=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};n.forEach((function(e){i=J$(J$(J$({},i),e.options),{headers:J$(J$({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=J$(J$({},o),e.http)})),i.headers&&(i.headers=function(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]=e[t]})),n}var r=Object.create(null);Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}}));var i=Object.create(null);return Object.keys(r).forEach((function(e){i[r[e].originalName]=r[e].value})),i}(i.headers,o.preserveHeaderCase));var s=e.operationName,a=e.extensions,c=e.variables,u=e.query,l={operationName:s,variables:c};return o.includeExtensions&&(l.extensions=a),o.includeQuery&&(l.query=t(u,yG)),{options:i,body:l}}(e,o,Rq,p,f),y=v.options,E=v.body;E.variables&&!l&&(E.variables=function(e,t){var n=J$({},e),r=new Set(Object.keys(e));return wH(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.forEach((function(e){delete n[e]})),n}(E.variables,e.query)),!y.signal&&typeof AbortController<"u"&&(m=new AbortController,y.signal=m.signal);var _,b="OperationDefinition"===(_=hG(e.query)).kind&&"subscription"===_.operation,C=LH(["defer"],e.query);if(c&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(y.method="GET"),C||b){y.headers=y.headers||{};var S="multipart/mixed;";b?S+="boundary=graphql;subscriptionSpec=1.0,application/json":C&&(S+="deferSpec=20220824,application/json"),y.headers.accept=S}if("GET"===y.method){var I=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=Pq(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=Pq(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var s="",a=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),a=e.substr(0,c));var u=-1===a.indexOf("?")?"?":"&";return{newURI:a+u+n.join("&")+s}}(t,E),D=I.newURI,w=I.parseError;if(w)return vq(w);t=D}else try{y.body=Pq(E,"Payload")}catch(_){return vq(_)}return new XG((function(n){var i=r||hB((function(){return fetch}))||kq,o=n.next.bind(n);return i(t,y).then((function(t){var n;e.setContext({response:t});var r=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?function(e,t){var n;return eB(this,void 0,void 0,(function(){var r,i,o,s,a,c,u,l,d,p,h,f,g,m,v,y,E,_,b,C,S,I,D;return tB(this,(function(w){switch(w.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),i=null===(n=e.headers)||void 0===n?void 0:n.get("content-type"),o="boundary=",s=i?.includes(o)?i?.substring(i?.indexOf(o)+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(s),c="",u=wq(e),l=!0,w.label=1;case 1:return l?[4,u.next()]:[3,3];case 2:for(d=w.sent(),p=d.value,h=d.done,f="string"==typeof p?p:r.decode(p),g=c.length-a.length+1,l=!h,m=(c+=f).indexOf(a,g);m>-1;){if(v=void 0,I=[c.slice(0,m),c.slice(m+a.length)],c=I[1],y=(v=I[0]).indexOf("\r\n\r\n"),E=Nq(v.slice(0,y)),(_=E["content-type"])&&-1===_.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(b=v.slice(y))if(C=Mq(e,b),Object.keys(C).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)dq(C)?(S={},"payload"in C&&(S=J$({},C.payload)),"errors"in C&&(S=J$(J$({},S),{extensions:J$(J$({},"extensions"in S?S.extensions:null),(D={},D[Tq]=C.errors,D))})),t(S)):t(C);else if(1===Object.keys(C).length&&"hasNext"in C&&!C.hasNext)return[2];m=c.indexOf(a)}return[3,1];case 3:return[2]}}))}))}(t,o):function(e){return function(t){return t.text().then((function(e){return Mq(t,e)})).then((function(n){return t.status>=300&&yq(t,n,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(n)&&!Aq.call(n,"data")&&!Aq.call(n,"errors")&&yq(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),n}))}}(e)(t).then(o)})).then((function(){m=void 0,n.complete()})).catch((function(e){m=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)})),function(){m&&m.abort()}}))}))},Fq=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,Lq(t).request)||this;return n.options=t,n}return Z$(t,e),t}(Cq);const{toString:Uq,hasOwnProperty:jq}=Object.prototype,Vq=Function.prototype.toString,$q=new Map;function Bq(e,t){try{return Hq(e,t)}finally{$q.clear()}}function Hq(e,t){if(e===t)return!0;const n=Uq.call(e);if(n!==Uq.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Wq(e,t))return!0;const n=Gq(e),r=Gq(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!jq.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!Hq(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Wq(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,o]=e.value;if(!t.has(n)||i&&!Hq(o,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=Vq.call(e);return n===Vq.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,zq)}}return!1}function Gq(e){return Object.keys(e).filter(qq,e)}function qq(e){return void 0!==this[e]}const zq="{ [native code] }";function Wq(e,t){let n=$q.get(e);if(n){if(n.has(t))return!0}else $q.set(e,n=new Set);return n.add(t),!1}function Kq(){}class Qq{constructor(e=1/0,t=Kq){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}let Yq=null;const Zq={};let Jq=1;function Xq(e){try{return e()}catch{}}const ez="@wry/context:Slot",tz=Xq((()=>globalThis))||Xq((()=>global))||Object.create(null),nz=tz[ez]||Array[ez]||function(e){try{Object.defineProperty(tz,ez,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Jq++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Yq;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Zq)break;return e!==Yq&&(Yq.slots[this.id]=t),!0}return Yq&&(Yq.slots[this.id]=Zq),!1}getValue(){if(this.hasValue())return Yq.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=Yq;Yq={parent:o,slots:i};try{return t.apply(r,n)}finally{Yq=o}}static bind(e){const t=Yq;return function(){const n=Yq;try{return Yq=t,e.apply(this,arguments)}finally{Yq=n}}}static noContext(e,t,n){if(!Yq)return e.apply(n,t);{const r=Yq;try{return Yq=null,e.apply(n,t)}finally{Yq=r}}}}),rz=new nz,{hasOwnProperty:iz}=Object.prototype,oz=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function sz(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const az=[],cz=100;function uz(e,t){if(!e)throw new Error(t||"assertion failure")}function lz(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class dz{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++dz.count}peek(){if(1===this.value.length&&!fz(this))return pz(this),this.value[0]}recompute(e){return uz(!this.recomputing,"already recomputing"),pz(this),fz(this)?function(e,t){return bz(e),rz.withValue(e,hz,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{sz(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,!fz(e)&&mz(e)}(e),lz(e.value)}(this,e):lz(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,gz(this),sz(this))}dispose(){this.setDirty(),bz(this),vz(this,((e,t)=>{e.setDirty(),Cz(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=az.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(oz(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),az.push(this.deps),this.deps=null)}}function pz(e){const t=rz.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),fz(e)?yz(t,e):Ez(t,e),t}function hz(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function fz(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function gz(e){vz(e,yz)}function mz(e){vz(e,Ez)}function vz(e,t){const n=e.parents.size;if(n){const r=oz(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function yz(e,t){uz(e.childValues.has(t)),uz(fz(t));const n=!fz(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=az.pop()||new Set;e.dirtyChildren.add(t),n&&gz(e)}function Ez(e,t){uz(e.childValues.has(t)),uz(!fz(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):function(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),_z(e,t),!fz(e)&&mz(e)}function _z(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(az.length<cz&&az.push(n),e.dirtyChildren=null))}function bz(e){e.childValues.size>0&&e.childValues.forEach(((t,n)=>{Cz(e,n)})),e.forgetDeps(),uz(null===e.dirtyChildren)}function Cz(e,t){t.parents.delete(e),e.childValues.delete(t),_z(e,t)}dz.count=0;const Sz={setDirty:!0,dispose:!0,forget:!0};function Iz(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=rz.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(sz(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&iz.call(Sz,n)?n:"setDirty";oz(r).forEach((e=>e[i]())),t.delete(e),sz(r)}},r}let Dz;function wz(...e){return(Dz||(Dz=new BH("function"==typeof WeakMap))).lookupArray(e)}const Tz=new Set;function Oz(e,{max:t=Math.pow(2,16),makeCacheKey:n=wz,keyArgs:r,subscribe:i}=Object.create(null)){const o=new Qq(t,(e=>e.dispose())),s=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=o.get(t);s||(o.set(t,s=new dz(e)),s.subscribe=i,s.forget=()=>o.delete(t));const a=s.recompute(Array.prototype.slice.call(arguments));return o.set(t,s),Tz.add(o),rz.hasValue()||(Tz.forEach((e=>e.clean())),Tz.clear()),a};function a(e){const t=o.get(e);t&&t.setDirty()}function c(e){const t=o.get(e);if(t)return t.peek()}function u(e){return o.delete(e)}return Object.defineProperty(s,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(s.options={max:t,makeCacheKey:n,keyArgs:r,subscribe:i}),s.dirtyKey=a,s.dirty=function(){a(n.apply(null,arguments))},s.peekKey=c,s.peek=function(){return c(n.apply(null,arguments))},s.forgetKey=u,s.forget=function(){return u(n.apply(null,arguments))},s.makeCacheKey=n,s.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(s)}var Az=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Oz(QH)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(J$(J$({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(J$(J$({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=X$(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=X$(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery(J$(J$({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment(J$(J$({},e),{data:i})),i)}})},e}(),Nz=function(e){function t(n,r,i,o){var s,a=e.call(this,n)||this;if(a.message=n,a.path=r,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var c=a.path.length-1;c>=0;--c)a.missing=((s={})[a.path[c]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return Z$(t,e),t}(Error),Mz=Object.prototype.hasOwnProperty;function Pz(e){return null==e}function Rz(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=Pz(r)?Pz(i)?void 0:{_id:i}:{id:r}),Pz(r)&&!Pz(i)&&(r=i),!Pz(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var xz={dataIdFromObject:Rz,addTypename:!0,resultCaching:!0,canonizeResults:!1};function kz(e){var t=e.canonizeResults;return void 0===t?xz.canonizeResults:t}var Lz=/^[_a-z][_0-9a-z]*/i;function Fz(e){var t=e.match(Lz);return t?t[0]:e}function Uz(e,t,n){return!!KH(t)&&(EG(t)?t.every((function(t){return Uz(e,t,n)})):e.selections.every((function(e){if(cG(e)&&kH(e,n)){var r=sG(e);return Mz.call(t,r)&&(!e.selectionSet||Uz(e.selectionSet,t[r],n))}return!0})))}function jz(e){return KH(e)&&!XH(e)&&!EG(e)}function Vz(e,t){var n=YH(pG(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var $z=Object.create(null),Bz=function(){return $z},Hz=Object.create(null),Gz=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return XH(e)?n.get(e.__ref,t):e&&e[t]},this.canRead=function(e){return XH(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return JH(e);if(XH(e))return e;var r=n.policies.identify(e)[0];if(r){var i=JH(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return J$({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),Mz.call(this.data,e)){var n=this.data[e];if(n&&Mz.call(n,t))return n[t]}return"__typename"===t&&Mz.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Kz?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Mz.call(this.data,e)?this.data[e]:this instanceof Kz?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;XH(e)&&(e=e.__ref),XH(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){yB("string"==typeof n,1);var s=new RG(Yz).merge(i,o);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){var a=Object.create(null);i||(a.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==s[e]){a[e]=1;var t=Fz(e);t!==e&&!r.policies.hasKeyArgs(s.__typename,t)&&(a[t]=1),void 0===s[e]&&!(r instanceof Kz)&&delete s[e]}})),a.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete a.__typename,Object.keys(a).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,s=!0,a={DELETE:$z,INVALIDATE:Hz,isReference:XH,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||JH(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(c){var u=Fz(c),l=r[c];if(void 0!==l){var d="function"==typeof t?t:t[c]||t[u];if(d){var p=d===Bz?$z:d(l,J$(J$({},a),{fieldName:u,storeFieldName:c,storage:n.getStorage(e,c)}));p===Hz?n.group.dirty(e,c):(p===$z&&(p=void 0),p!==l&&(i[c]=p,o=!0,l=p))}void 0!==l&&(s=!1)}})),o)return this.merge(e,i),s&&(this instanceof Kz?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),s=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,s?((r={})[s]=Bz,r):Bz)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(Mz.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Kz&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){Mz.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&Mz.call(e,n)||t.delete(n)})),e){var n=e.__META,r=X$(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Kz?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){Mz.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof Kz;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!Mz.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){XH(e)&&(t[e.__ref]=!0),KH(e)&&Object.keys(e).forEach((function(t){var n=e[t];KH(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),qz=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Iz():null,this.keyMaker=new BH(GH)},e.prototype.depend=function(e,t){if(this.d){this.d(zz(e,t));var n=Fz(t);n!==t&&this.d(zz(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(zz(e,t),"__exists"===t?"forget":"setDirty")},e}();function zz(e,t){return t+"#"+e}function Wz(e,t){Zz(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,s=e.call(this,n,new qz(i))||this;return s.stump=new Qz(s),s.storageTrie=new BH(GH),o&&s.replace(o),s}return Z$(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(Gz||(Gz={}));var Kz=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return Z$(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){Bq(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return J$(J$({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Mz.call(this.data,t)?J$(J$({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Gz),Qz=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new qz(t.group.caching,t.group))||this}return Z$(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Kz);function Yz(e,t,n){var r=e[n],i=t[n];return Bq(r,i)?r:i}function Zz(e){return!!(e instanceof Gz&&e.group.caching)}var Jz,Xz,eW=function(){function e(){this.known=new(qH?WeakSet:Set),this.pool=new BH(GH),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return KH(e)&&this.known.has(e)},e.prototype.pass=function(e){if(KH(e)){var t=function(e){return KH(e)?EG(e)?e.slice(0):J$({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(KH(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(a=this.pool.lookupArray(r)).array||this.known.add(a.array=r),a.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],s=this.sortedKeys(e);o.push(s.json);var a,c=o.length;if(s.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(a=this.pool.lookupArray(o)).object){var u=a.object=Object.create(i);this.known.add(u),s.sorted.forEach((function(e,t){u[e]=o[c+t]}))}return a.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),tW=Object.assign((function(e){if(KH(e)){void 0===Jz&&nW();var t=Jz.admit(e),n=Xz.get(t);return void 0===n&&Xz.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:nW});function nW(){Jz=new eW,Xz=new(GH?WeakMap:Map)}function rW(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var iW=function(){function e(e){var t=this;this.knownResults=new(GH?WeakMap:Map),this.config=gq(e,{addTypename:!1!==e.addTypename,canonizeResults:kz(e)}),this.canon=e.canon||new eW,this.executeSelectionSet=Oz((function(e){var n,r=e.context.canonizeResults,i=rW(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?J$(J$({},o),{result:t.canon.admit(o.result)}):o:(Wz(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:rW,makeCacheKey:function(e,t,n,r){if(Zz(n.store))return n.store.makeCacheKey(e,XH(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Oz((function(e){return Wz(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(Zz(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new eW},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,s=e.returnPartialData,a=void 0===s||s,c=e.canonizeResults,u=void 0===c?this.config.canonizeResults:c,l=this.config.cache.policies;o=J$(J$({},fG(function(e){var t=lG(e);return yB(t&&"query"===t.operation,74),t}(n))),o);var d,p=JH(i),h=this.executeSelectionSet({selectionSet:hG(n).selectionSet,objectOrReference:p,enclosingRef:p,context:J$({store:t,query:n,policies:l,variables:o,varString:tW(o),canonizeResults:u},Vz(n,this.config.fragments))});if(h.missing&&(d=[new Nz(oW(h.missing),h.missing,n,o)],!a))throw d[0];return{result:h.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,n,r){if(Zz(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(XH(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var s,a=o.variables,c=o.policies,u=o.store.getFieldValue(r,"__typename"),l=[],d=new RG;function p(e,t){var n;return e.missing&&(s=d.merge(s,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof u&&!c.rootIdsByTypename[u]&&l.push({__typename:u});var h=new Set(n.selections);h.forEach((function(e){var n,f;if(kH(e,a))if(cG(e)){var g=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),m=sG(e);void 0===g?wG.added(e)||(s=d.merge(s,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(XH(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):EG(g)?g=p(t.executeSubSelectedArray({field:e,array:g,enclosingRef:i,context:o}),m):e.selectionSet?null!=g&&(g=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:XH(g)?g:i,context:o}),m)):o.canonizeResults&&(g=t.canon.pass(g)),void 0!==g&&l.push(((f={})[m]=g,f))}else{var v=ZH(e,o.lookupFragment);if(!v&&e.kind===jB.FRAGMENT_SPREAD)throw EB(7,e.name.value);v&&c.fragmentMatches(v,u)&&v.selectionSet.selections.forEach(h.add,h)}}));var f={result:MG(l),missing:s},g=o.canonizeResults?this.canon.admit(f):f;return g.result&&this.knownResults.set(g.result,n),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,s=e.context,a=new RG;function c(e,n){var r;return e.missing&&(t=a.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map((function(e,t){return null===e?null:EG(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:s}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:XH(e)?e:o,context:s}),t):e})),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function oW(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var sW=new nz,aW=new WeakMap;function cW(e){var t=aW.get(e);return t||aW.set(e,t={vars:new Set,dep:Iz()}),t}function uW(e){cW(e).vars.forEach((function(t){return t.forgetCache(e)}))}function lW(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){cW(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var s=Array.from(n);n.clear(),s.forEach((function(t){return t(e)}))}}else{var a=sW.getValue();a&&(i(a),cW(a).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),cW(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var dW=Object.create(null);function pW(e){var t=JSON.stringify(e);return dW[t]||(dW[t]=Object.create(null))}function hW(e){var t=pW(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=gW(e,(function(e){var i=yW(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&Mz.call(t,e[0])&&(i=yW(t,e,vW)),yB(void 0!==i,2,e.join("."),t),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function fW(e){var t=pW(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,s=gW(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return yW(t,e)}else{var s=n.slice(1);if(i&&Mz.call(i,s)){var a=e.slice(0);return a[0]=s,yW(i,a)}}else if(r&&_G(r.directives)){var c=n.slice(1),u=r.directives.find((function(e){return e.name.value===c})),l=u&&oG(u,i);return l&&yW(l,e.slice(1))}})),a=JSON.stringify(s);return(t||"{}"!==a)&&(o+=":"+a),o})}function gW(e,t){var n=new RG;return mW(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var s=r.length-1;s>=0;--s)(i={})[r[s]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function mW(e){var t=pW(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){EG(t)?(mW(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),EG(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function vW(e,t){return e[t]}function yW(e,t,n){return n=n||vW,EW(t.reduce((function e(t,r){return EG(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function EW(e){return KH(e)?EG(e)?e.map(EW):gW(Object.keys(e).sort(),(function(t){return yW(e,t)})):e}function _W(e){return void 0!==e.args?e.args:e.field?oG(e.field,e.variables):null}nG.setStringify(tW);var bW=function(){},CW=function(e,t){return t.fieldName},SW=function(e,t,n){return(0,n.mergeObjects)(e,t)},IW=function(e,t){return t},DW=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=J$({dataIdFromObject:Rz},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,s=t&&t.storeObject||e,a=J$(J$({},t),{typename:i,storeObject:s,readField:t&&t.readField||function(){var e=TW(arguments,s);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),c=i&&this.getTypePolicy(i),u=c&&c.keyFn||this.config.dataIdFromObject;u;){var l=u(J$(J$({},e),s),a);if(!EG(l)){o=l;break}u=hW(l)}return o=o?String(o):void 0,a.keyObject?[o,a.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,s=r.subscriptionType,a=X$(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),Mz.call(t.toBeAdded,n)?t.toBeAdded[n].push(a):t.toBeAdded[n]=[a]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?SW:!1===t?IW:e.merge}s(r,t.merge),r.keyFn=!1===i?bW:EG(i)?hW(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var a=i.keyArgs,c=i.read,u=i.merge;r.keyFn=!1===a?CW:EG(a)?fW(a):"function"==typeof a?a:r.keyFn,"function"==typeof c&&(r.read=c),s(r,u)}r.read&&r.merge&&(r.keyFn=r.keyFn||CW)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(yB(!r||r===e,3,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Lz);(!r||r[0]!==e)&&t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Mz.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(n,i){if(n.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach((function(e){return r.add(e)}))}}))),r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=X$(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),a=[s],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&a.indexOf(t)<0&&a.push(t)},u=!(!n||!this.fuzzySubtypes.size),l=0;l<a.length;++l){var d=a[l];if(d.has(o))return s.has(o)||s.add(o),!0;d.forEach(c),u&&l===a.length-1&&Uz(e.selectionSet,n,r)&&(u=!1,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var s={typename:n,fieldName:r,field:e.field||null,variables:e.variables},a=_W(e);o;){var c=o(a,s);if(!EG(c)){t=c||r;break}o=fW(c)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return eG(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return eG(r,n,i,t)}))),nG(e.name.value,r,n)}(e.field,e.variables):nG(r,_W(e))),!1===t?r:r===Fz(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=Fz(i),s=t.store.getFieldValue(n,i),a=this.getFieldPolicy(e.typename,o,!1),c=a&&a.read;if(c){var u=wW(this,n,e,t,t.store.getStorage(XH(n)?n.__ref:n,i));return sW.withValue(this.cache,c,[s,u])}return s}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,s=n.typename,a=n.merge;return a===SW?OW(r.store)(e,t):a===IW?t:(r.overwrite&&(e=void 0),a(e,t,wW(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function wW(e,t,n,r,i){var o=e.getStoreFieldName(n),s=Fz(o),a=n.variables||r.variables,c=r.store,u=c.toReference,l=c.canRead;return{args:_W(n),field:n.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:XH,toReference:u,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(TW(arguments,t,a),r)},mergeObjects:OW(r.store)}}function TW(e,t,n){var r,i=e[0],o=e[1],s=e.length;return"string"==typeof i?r={fieldName:i,from:s>1?o:t}:(r=J$({},i),Mz.call(r,"from")||(r.from=t)),void 0===r.variables&&(r.variables=n),r}function OW(e){return function(t,n){if(EG(t)||EG(n))throw EB(6);if(KH(t)&&KH(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(XH(t)&&jz(n))return e.merge(t.__ref,n),t;if(jz(t)&&XH(n))return e.merge(t,n.__ref),n;if(jz(t)&&jz(n))return J$(J$({},t),n)}return n}}function AW(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:J$(J$({},e),{clientOnly:t,deferred:n})),i}var NW,MW=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,s=t.variables,a=t.overwrite,c=lG(r),u=new RG;s=J$(J$({},fG(c)),s);var l=J$(J$({store:e,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:s,varString:tW(s)},Vz(r,this.fragments)),{overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:l});if(!XH(d))throw EB(9,i);return l.incomingById.forEach((function(t,r){var i=t.storeObject,o=t.mergeTree,s=(t.fieldNodeSet,JH(r));if(o&&o.map.size){var a=n.applyMerges(o,s,i,l);if(XH(a))return;i=a}e.merge(r,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,s=e.mergeTree,a=this.cache.policies,c=Object.create(null),u=n&&a.rootTypenamesById[n]||aG(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof u&&(c.__typename=u);var l=function(){var e=TW(arguments,c,o.variables);if(XH(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=a.readField(J$(J$({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return a.readField(e,o)},d=new Set;this.flattenFields(i,r,o,u).forEach((function(e,n){var i,o=sG(n),p=r[o];if(d.add(n),void 0!==p){var h=a.getStoreFieldName({typename:u,fieldName:n.name.value,field:n,variables:e.variables}),f=RW(s,h),g=t.processFieldValue(p,n,n.selectionSet?AW(e,!1,!1):e,f),m=void 0;n.selectionSet&&(XH(g)||jz(g))&&(m=l("__typename",g));var v=a.getMergeFunction(u,n.name.value,m);v?f.info={field:n,typename:u,merge:v}:LW(s,h),c=e.merge(c,((i={})[h]=g,i))}}));try{var p=a.identify(r,{typename:u,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:l}),h=p[0],f=p[1];n=n||h,f&&(c=o.merge(c,f))}catch(e){if(!n)throw e}if("string"==typeof n){var g=JH(n),m=o.written[n]||(o.written[n]=[]);if(m.indexOf(i)>=0||(m.push(i),this.reader&&this.reader.isFresh(r,g,i,o)))return g;var v=o.incomingById.get(n);return v?(v.storeObject=o.merge(v.storeObject,c),v.mergeTree=xW(v.mergeTree,s),d.forEach((function(e){return v.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:c,mergeTree:kW(s)?void 0:s,fieldNodeSet:d}),g}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?EG(e)?e.map((function(e,o){var s=i.processFieldValue(e,t,n,RW(r,o));return LW(r,o),s})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=aG(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,s=new BH(!1);return function e(a,c){var u=s.lookup(a,c.clientOnly,c.deferred);u.visited||(u.visited=!0,a.selections.forEach((function(s){if(kH(s,n.variables)){var a=c.clientOnly,u=c.deferred;if(!(a&&u)&&_G(s.directives)&&s.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(a=!0),"defer"===t){var r=oG(e,n.variables);(!r||!1!==r.if)&&(u=!0)}})),cG(s)){var l=i.get(s);l&&(a=a&&l.clientOnly,u=u&&l.deferred),i.set(s,AW(n,a,u))}else{var d=ZH(s,n.lookupFragment);if(!d&&s.kind===jB.FRAGMENT_SPREAD)throw EB(11,s.name.value);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,AW(n,a,u))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,s=this;if(e.map.size&&!XH(n)){var a=EG(n)||!XH(t)&&!jz(t)?void 0:t,c=n;a&&!i&&(i=[XH(a)?a.__ref:a]);var u,l=function(e,t){return EG(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=l(a,t),o=l(c,t);if(void 0!==o){i&&i.push(t);var d=s.applyMerges(e,n,o,r,i);d!==o&&(u=u||new Map).set(t,d),i&&yB(i.pop()===t)}})),u&&(n=EG(c)?c.slice(0):J$({},c),u.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),PW=[];function RW(e,t){var n=e.map;return n.has(t)||n.set(t,PW.pop()||{map:new Map}),n.get(t)}function xW(e,t){if(e===t||!t||kW(t))return e;if(!e||kW(e))return t;var n=e.info&&t.info?J$(J$({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,xW(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,xW(t.map.get(n),e.map.get(n)))}))}return i}function kW(e){return!e||!(e.info||e.map.size)}function LW(e,t){var n=e.map,r=n.get(t);r&&kW(r)&&(PW.push(r),n.delete(t))}function FW(e){return!!e&&e<7}function UW(e,t,n,r){var i=t.data,o=X$(t,["data"]),s=n.data;return Bq(o,X$(n,["data"]))&&jW(hG(e).selectionSet,i,s,{fragmentMap:YH(pG(e)),variables:r})}function jW(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e)||(i.add(e),!kH(e,r.variables))||VW(e))return!0;if(cG(e)){var o=sG(e),s=t&&t[o],a=n&&n[o],c=e.selectionSet;if(!c)return Bq(s,a);var u=Array.isArray(s),l=Array.isArray(a);if(u!==l)return!1;if(u&&l){var d=s.length;if(a.length!==d)return!1;for(var p=0;p<d;++p)if(!jW(c,s[p],a[p],r))return!1;return!0}return jW(c,s,a,r)}var h=ZH(e,r.fragmentMap);return h?!!VW(h)||jW(h.selectionSet,t,n,r):void 0}))}function VW(e){return!!e.directives&&e.directives.some($W)}function $W(e){return"nonreactive"===e.name.value}new Set,function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new mG(wG),n.assumeImmutableResults=!0,n.makeVar=lW,n.txCount=0,n.config=function(e){return gq(xz,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new DW({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}Z$(t,e),t.prototype.init=function(){var e=this.data=new Gz.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new MW(this,this.storeReader=new iW({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:kz(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=Oz((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Zz(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,tW({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(J$(J$({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Nz)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{! --this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(e){if(Mz.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{! --this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(J$(J$({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){cW(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&uW(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){tW.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(XH(e))return e.__ref;try{return this.policies.identify(e)[0]}catch{}},t.prototype.evict=function(e){if(!e.id){if(Mz.call(e,"id"))return!1;e=J$(J$({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{! --this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),tW.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),uW(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,s=e.removeOptimistic,a=e.onWatchUpdated,c=function(e){var i=n,o=i.data,s=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=s}},u=new Set;return a&&!this.txCount&&this.broadcastWatches(J$(J$({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),a&&u.size?(this.broadcastWatches(J$(J$({},e),{onWatchUpdated:function(e,t){var n=a.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||(!n||!Bq(n.result,r.result))&&e.callback(e.lastDiff=r,n)}}(Az),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(NW||(NW={}));var BW=Object.assign,HW=(Object.hasOwnProperty,function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=qW)}catch{}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=r,o.queryManager=n,o.waitForOwnResult=zW(i.fetchPolicy),o.isTornDown=!1;var s=n.defaultOptions.watchQuery,a=(void 0===s?{}:s).fetchPolicy,c=void 0===a?"cache-first":a,u=i.fetchPolicy,l=void 0===u?c:u,d=i.initialFetchPolicy,p=void 0===d?"standby"===l?c:l:d;o.options=J$(J$({},i),{initialFetchPolicy:p,fetchPolicy:l}),o.queryId=r.queryId||n.generateQueryId();var h=lG(o.query);return o.queryName=h&&h.name&&h.name.value,o}return Z$(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||NW.ready,r=J$(J$({},t),{loading:FW(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(!zW(o)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(r.data=s.result),Bq(r.data,{})&&(r.data=void 0),s.complete?(delete r.partial,s.complete&&r.networkStatus===NW.loading&&("cache-first"===o||"cache-only"===o)&&(r.networkStatus=NW.ready,r.loading=!1)):r.partial=!0}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!UW(this.query,this.last.result,e,this.variables):!Bq(this.last.result,e))||t&&!Bq(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Bq(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return t.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",e&&!Bq(this.options.variables,e)&&(t.variables=this.options.variables=J$(J$({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,NW.refetch)},t.prototype.fetchMore=function(e){var t=this,n=J$(J$({},e.query?e:J$(J$(J$(J$({},this.options),{query:this.options.query}),e),{variables:J$(J$({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=NW.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(r,n,NW.fetchMore).then((function(a){return t.queryManager.removeQuery(r),i.networkStatus===NW.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return i(e,{fetchMoreResult:a.data,variables:n.variables})})):r.writeQuery({query:n.query,variables:n.variables,data:a.data})},onWatchUpdated:function(e){s.add(e.query)}}),a})).finally((function(){s.has(t.query)||GW(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=gq(this.options,e||{});BW(this.options,t)},t.prototype.setVariables=function(e){return Bq(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},NW.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n)return void(t&&(clearTimeout(t.timeout),delete this.pollingInfo));if(!t||t.interval!==n){yB(n,20),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(FW(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},NW.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!Bq(t,this.last.variables)&&(n=void 0),this.last=J$({result:this.queryManager.assumeImmutableResults?e:rq(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===NW.refetch||t===NW.fetchMore||t===NW.poll,i=this.options.variables,o=this.options.fetchPolicy,s=gq(this.options,e||{}),a=r?s:BW(this.options,s),c=this.transformDocument(a.query);this.lastQuery=c,r||(this.updatePolling(),e&&e.variables&&!Bq(e.variables,i)&&"standby"!==a.fetchPolicy&&a.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",a),void 0===t&&(t=NW.setVariables)));var u=c===a.query?a:J$(J$({},a),{query:c});this.waitForOwnResult&&(this.waitForOwnResult=zW(u.fetchPolicy));var l=function(){n.concast===h&&(n.waitForOwnResult=!1)},d=u.variables&&J$({},u.variables),p=this.fetch(u,t),h=p.concast,f=p.fromLink,g={next:function(e){l(),n.reportResult(e,d)},error:function(e){l(),n.reportError(e,d)}};return!r&&(f||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=h,this.observer=g),h.addObserver(g),h},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||r)&&oq(this.observers,"next",e)},t.prototype.reportError=function(e,t){var n=J$(J$({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:NW.error,loading:!1});this.updateLastResult(n,t),oq(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(XG));function GW(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=r,"function"==typeof r?r.apply(this,arguments):n}}):e.reobserve()}function qW(e){}function zW(e){return"network-only"===e||"no-cache"===e||"standby"===e}aq(HW);var WW=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=NG(t.resolvers,e)})):this.resolvers=NG(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return eB(this,void 0,void 0,(function(){return tB(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,s).then((function(e){return J$(J$({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return LH(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return OG(e)},e.prototype.prepareContext=function(e){var t=this.cache;return J$(J$({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),eB(this,void 0,void 0,(function(){return tB(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return J$(J$({},t),e.exportedVariables)}))]:[2,J$({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return wH(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})),t))return DH}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:TG(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),eB(this,void 0,void 0,(function(){var s,a,c,u,l,d,p,h,f,g;return tB(this,(function(m){return s=hG(e),a=pG(e),c=YH(a),u=this.collectSelectionsToResolve(s,c),l=s.operation,d=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",h=(p=this).cache,f=p.client,g={fragmentMap:c,context:J$(J$({},n),{cache:h,client:f}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,g).then((function(e){return{result:e,exportedVariables:g.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,r){return eB(this,void 0,void 0,(function(){var i,o,s,a,c,u=this;return tB(this,(function(l){return i=r.fragmentMap,o=r.context,s=r.variables,a=[n],c=function(e){return eB(u,void 0,void 0,(function(){var c,u;return tB(this,(function(l){return(t||r.selectionsToResolve.has(e))&&kH(e,s)?cG(e)?[2,this.resolveField(e,t,n,r).then((function(t){var n;typeof t<"u"&&a.push(((n={})[sG(e)]=t,n))}))]:(function(e){return"InlineFragment"===e.kind}(e)?c=e:(c=i[e.name.value],yB(c,16,e.name.value)),c&&c.typeCondition&&(u=c.typeCondition.name.value,r.fragmentMatcher(n,u,o))?[2,this.resolveSelectionSet(c.selectionSet,t,n,r).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return MG(a)}))]}))}))},e.prototype.resolveField=function(e,t,n,r){return eB(this,void 0,void 0,(function(){var i,o,s,a,c,u,l,d,p,h=this;return tB(this,(function(f){return n?(i=r.variables,o=e.name.value,s=sG(e),a=o!==s,c=n[s]||n[o],u=Promise.resolve(c),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=n.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[l])&&(p=d[a?o:s])&&(u=Promise.resolve(sW.withValue(this.cache,p,[n,oG(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,u.then((function(n){var i,o;if(void 0===n&&(n=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)}))})),!e.selectionSet||null==n)return n;var s=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(n)?h.resolveSubSelectedArray(e,t||s,n,r):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||s,n,r):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),wH(i,{Directive:function(e,t,r,i,s){"client"===e.name.value&&s.forEach((function(e){n(e)&&xH(e)&&o.add(e)}))},FragmentSpread:function(r,i,s,a,c){var u=t[r.name.value];yB(u,17,r.name.value);var l=e(u);l.size>0&&(c.forEach((function(e){n(e)&&xH(e)&&o.add(e)})),o.add(r),l.forEach((function(e){o.add(e)})))}})}return r.get(i)}(e)},e}(),KW=new(GH?WeakMap:Map);function QW(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return KW.set(e,(KW.get(e)+1)%1e15),n.apply(this,arguments)})}function YW(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ZW=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;KW.has(n)||(KW.set(n,0),QW(n,"evict"),QW(n,"modify"),QW(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||NW.loading;return this.variables&&this.networkStatus!==NW.loading&&!Bq(this.variables,e.variables)&&(t=NW.setVariables),Bq(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){YW(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Bq(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),!this.dirty&&!Bq(n&&n.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():GW(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;YW(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(FW(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=J$(J$({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});(!this.lastWatch||!Bq(r,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===KW.get(this.cache)&&Bq(t,n.variables)&&Bq(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new RG,s=_G(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&_G(e.incremental)){var a=pq(this.getDiff().result,e);e.data=a}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=s,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(JW(e,n.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:KW.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var s=i.getDiffOptions(n.variables),a=o.diff(s);i.stopped||i.updateWatch(n.variables),i.updateLastDiff(a,s),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=NW.ready},e.prototype.markError=function(e){return this.networkStatus=NW.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function JW(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!hq(e);return!r&&n&&e.data&&(r=!0),r}var XW=Object.prototype.hasOwnProperty,eK=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,s=void 0!==o&&o,a=e.onBroadcast,c=e.ssrMode,u=void 0!==c&&c,l=e.clientAwareness,d=void 0===l?{}:l,p=e.localState,h=e.assumeImmutableResults,f=void 0===h?!!t.assumeImmutableResults:h,g=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(GH?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var m=new mG((function(e){return g.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=s,this.clientAwareness=d,this.localState=p||new WW({cache:t}),this.ssrMode=u,this.assumeImmutableResults=f,this.documentTransform=i?m.concat(i).concat(m):m,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(EB(23))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,r=e.mutation,i=e.variables,o=e.optimisticResponse,s=e.updateQueries,a=e.refetchQueries,c=void 0===a?[]:a,u=e.awaitRefetchQueries,l=void 0!==u&&u,d=e.update,p=e.onQueryUpdated,h=e.fetchPolicy,f=void 0===h?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":h,g=e.errorPolicy,m=void 0===g?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":g,v=e.keepRootFields,y=e.context;return eB(this,void 0,void 0,(function(){var e,t,n,a;return tB(this,(function(u){switch(u.label){case 0:return yB(r,24),yB("network-only"===f||"no-cache"===f,25),e=this.generateMutationId(),r=this.cache.transformForLink(this.transform(r)),t=this.getDocumentInfo(r).hasClientExports,i=this.getVariables(r,i),t?[4,this.localState.addExportedVariables(r,i,y)]:[3,2];case 1:i=u.sent(),u.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[e]={mutation:r,variables:i,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:r,variables:i,fetchPolicy:f,errorPolicy:m,context:y,updateQueries:s,update:d,keepRootFields:v}),this.broadcastQueries(),a=this,[2,new Promise((function(t,u){return sq(a.getObservableFromLink(r,J$(J$({},y),{optimisticResponse:o}),i,!1),(function(t){if(hq(t)&&"none"===m)throw new Oq({graphQLErrors:fq(t)});n&&(n.loading=!1,n.error=null);var u=J$({},t);return"function"==typeof c&&(c=c(u)),"ignore"===m&&hq(u)&&delete u.errors,a.markMutationResult({mutationId:e,result:u,document:r,variables:i,fetchPolicy:f,errorPolicy:m,context:y,update:d,updateQueries:s,awaitRefetchQueries:l,refetchQueries:c,removeOptimistic:o?e:void 0,onQueryUpdated:p,keepRootFields:v})})).subscribe({next:function(e){a.broadcastQueries(),(!("hasNext"in e)||!1===e.hasNext)&&t(e)},error:function(t){n&&(n.loading=!1,n.error=t),o&&a.cache.removeOptimistic(e),a.broadcastQueries(),u(t instanceof Oq?t:new Oq({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&JW(r,e.errorPolicy)){if(lq(r)||i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),lq(r)&&_G(r.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),a=void 0;s.result&&(a=pq(s.result,r)),typeof a<"u"&&(r.data=a,i.push({result:a,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach((function(e,o){var s=e.observableQuery,a=s&&s.queryName;if(a&&XW.call(c,a)){var u=c[a],l=n.queries.get(o),d=l.document,p=l.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),f=h.result;if(h.complete&&f){var g=u(f,{mutationResult:r,queryName:d&&dG(d)||void 0,queryVariables:p});g&&i.push({result:g,dataId:"ROOT_QUERY",query:d,variables:p})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var s=e.update,a=!function(e){return lq(e)||function(e){return"hasNext"in e&&"data"in e}(e)}(r)||lq(r)&&!r.hasNext;if(s){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(r=J$(J$({},r),{data:c.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}a&&s(t,r,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&a&&t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return u.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(u).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(J$(J$({},t),{result:{data:r}}),e)}catch{}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:FH(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:LH(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:DG([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:fG(lG(e)),asQuery:J$(J$({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?J$(J$({},e),{operation:"query"}):e}))})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return J$(J$({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);typeof(e=J$(J$({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new ZW(this),r=new HW({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),yB(e.query,26),yB("Document"===e.query.kind,27),yB(!e.returnPartialData,28),yB(!e.pollInterval,29),this.fetchQuery(t,J$(J$({},e),{query:this.transform(e.query)})).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(EB(30)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=NW.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?r.set(e,!1):function(e){return KH(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(e)?r.set(t.transform(e),!1):KH(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,s=t.document;if(o){if("all"===e)return void n.set(i,o);var a=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||a&&r.has(a)||s&&r.has(s))&&(n.set(i,o),a&&r.set(a,!0),s&&r.set(s,!0))}})),i.size&&i.forEach((function(e){var r=mB("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new HW({queryManager:t,queryInfo:i,options:J$(J$({},e),{fetchPolicy:"network-only"})});yB(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,s=e.context,a=void 0===s?{}:s;n=this.transform(n),o=this.getVariables(n,o);var c=function(e){return t.getObservableFromLink(n,a,e).map((function(o){"no-cache"!==r&&(JW(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var s=hq(o),a=function(e){return!!e.extensions&&Array.isArray(e.extensions[Tq])}(o);if(s||a){var c={};throw s&&(c.graphQLErrors=o.errors),a&&(c.protocolErrors=o.extensions[Tq]),new Oq(c)}return o}))};if(this.getDocumentInfo(n).hasClientExports){var u=this.localState.addExportedVariables(n,o,a).then(c);return new XG((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o=this;void 0===r&&(r=null!==(i=t?.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s,a=this.getDocumentInfo(e),c=a.serverQuery,u=a.clientQuery;if(c){var l=this.inFlightLinkObservables,d=this.link,p={query:c,variables:n,operationName:dG(c)||void 0,context:this.prepareContext(J$(J$({},t),{forceFetch:!r}))};if(t=p.context,r){var h=yG(c),f=l.get(h)||new Map;l.set(h,f);var g=tW(n);if(!(s=f.get(g))){var m=new uq([Iq(d,p)]);f.set(g,s=m),m.beforeNext((function(){f.delete(g)&&f.size<1&&l.delete(h)}))}}else s=new uq([Iq(d,p)])}else s=new uq([XG.of({data:{}})]),t=this.prepareContext(t);return u&&(s=sq(s,(function(e){return o.localState.runResolvers({document:u,remoteResult:e,context:t,variables:n})}))),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return sq(this.getObservableFromLink(i,n.context,n.variables),(function(o){var s=fq(o),a=s.length>0;if(r>=e.lastRequestId){if(a&&"none"===n.errorPolicy)throw e.markError(new Oq({graphQLErrors:s}));e.markResult(o,i,n,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:NW.ready};return a&&"ignore"!==n.errorPolicy&&(c.errors=s,c.networkStatus=NW.error),c}),(function(t){var n=function(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:new Oq({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchConcastWithInfo=function(e,t,n){var r=this;void 0===n&&(n=NW.loading);var i,o,s=t.query,a=this.getVariables(s,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,d=void 0===l?u&&u.fetchPolicy||"cache-first":l,p=t.errorPolicy,h=void 0===p?u&&u.errorPolicy||"none":p,f=t.returnPartialData,g=void 0!==f&&f,m=t.notifyOnNetworkStatusChange,v=void 0!==m&&m,y=t.context,E=void 0===y?{}:y,_=Object.assign({},t,{query:s,variables:a,fetchPolicy:d,errorPolicy:h,returnPartialData:g,notifyOnNetworkStatusChange:v,context:E}),b=function(e){_.variables=e;var i=r.fetchQueryByPolicy(c,_,n);return"standby"!==_.fetchPolicy&&i.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),i},C=function(){return r.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){C(),setTimeout((function(){return i.cancel(e)}))})),this.getDocumentInfo(_.query).hasClientExports)i=new uq(this.localState.addExportedVariables(_.query,_.variables,_.context).then(b).then((function(e){return e.sources}))),o=!0;else{var S=b(_.variables);o=S.fromLink,i=new uq(S.sources)}return i.promise.then(C,C),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,s=e.removeOptimistic,a=void 0===s?o?mB("refetchQueries"):void 0:s,c=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&a||!1,removeOptimistic:a,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof ZW&&e.watcher.observableQuery;if(r){if(c){u.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==c&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,s=e.diff;if(c){if(!s){var a=i.queryInfo;a.reset(),s=a.getDiff()}r=c(i,s,o)}(!c||!0===r)&&(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),a&&this.cache.removeOptimistic(a),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,s=t.fetchPolicy,a=t.refetchWritePolicy,c=t.errorPolicy,u=t.returnPartialData,l=t.context,d=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var h=function(){return e.getDiff(o)},f=function(t,n){void 0===n&&(n=e.networkStatus||NW.loading);var s=t.result,a=function(e){return XG.of(J$({data:e,loading:FW(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&r.getDocumentInfo(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:s},context:l,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return a(e.data||void 0)})):"none"===c&&n===NW.refetch&&Array.isArray(t.missing)?a(void 0):a(s)},g="no-cache"===s?0:n===NW.refetch&&"merge"!==a?1:2,m=function(){return r.getResultsFromLink(e,g,{query:i,variables:o,context:l,fetchPolicy:s,errorPolicy:c})},v=d&&"number"==typeof p&&p!==n&&FW(n);switch(s){default:case"cache-first":return(y=h()).complete?{fromLink:!1,sources:[f(y,e.markReady())]}:u||v?{fromLink:!0,sources:[f(y),m()]}:{fromLink:!0,sources:[m()]};case"cache-and-network":var y;return(y=h()).complete||u||v?{fromLink:!0,sources:[f(y),m()]}:{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[f(h(),e.markReady())]};case"network-only":return v?{fromLink:!0,sources:[f(h()),m()]}:{fromLink:!0,sources:[m()]};case"no-cache":return v?{fromLink:!0,sources:[f(e.getDiff()),m()]}:{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ZW(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return J$(J$({},t),{clientAwareness:this.clientAwareness})},e}(),tK=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw EB(13);var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,s=e.documentTransform,a=e.ssrMode,c=void 0!==a&&a,u=e.ssrForceFetchDelay,l=void 0===u?0:u,d=e.connectToDevTools,p=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:d,h=e.queryDeduplication,f=void 0===h||h,g=e.defaultOptions,m=e.assumeImmutableResults,v=void 0===m?o.assumeImmutableResults:m,y=e.resolvers,E=e.typeDefs,_=e.fragmentMatcher,b=e.name,C=e.version,S=e.link;S||(S=n?new Fq({uri:n,credentials:r,headers:i}):Cq.empty()),this.link=S,this.cache=o,this.disableNetworkFetches=c||l>0,this.queryDeduplication=f,this.defaultOptions=g||Object.create(null),this.typeDefs=E,l&&setTimeout((function(){return t.disableNetworkFetches=!1}),l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version=pB,this.localState=new WW({cache:o,client:this,resolvers:y,fragmentMatcher:_}),this.queryManager=new eK({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:s,queryDeduplication:f,ssrMode:c,clientAwareness:{name:b,version:C},localState:this.localState,assumeImmutableResults:v,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mq(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=J$(J$({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=mq(this.defaultOptions.query,e)),yB("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=J$(J$({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mq(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Iq(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),nK=new Map,rK=new Map,iK=!0,oK=!1;function sK(e){return e.replace(/[\s,]+/g," ").trim()}function aK(e){var t=sK(e);if(!nK.has(t)){var n=function(e,t){return new EH(e,t).parseDocument()}(e,{experimentalFragmentVariables:oK,allowLegacyFragmentVariables:oK});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");nK.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function(e){return sK(e.source.body.substring(e.start,e.end))}(e.loc),o=rK.get(r);o&&!o.has(i)?iK&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||rK.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),J$(J$({},e),{definitions:n})}(n)))}return nK.get(t)}function cK(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),aK(r)}var uK=cK,lK=function(){nK.clear(),rK.clear()},dK=function(){iK=!1},pK=function(){oK=!0},hK=function(){oK=!1};(function(e){e.gql=uK,e.resetCaches=lK,e.disableFragmentWarnings=dK,e.enableExperimentalFragmentVariables=pK,e.disableExperimentalFragmentVariables=hK})(cK||(cK={})),cK.default=cK;var fK=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gK={},mK={},vK={};Object.defineProperty(vK,"__esModule",{value:!0});var yK,EK={};Object.defineProperty(EK,"__esModule",{value:!0}),EK.APP_STATE_TYPE=void 0,function(e){e.STARTED="STARTED",e.RESUMED="RESUMED",e.PAUSED="PAUSED",e.STOPPED="STOPPED"}(yK||(EK.APP_STATE_TYPE=yK={}));var _K={};Object.defineProperty(_K,"__esModule",{value:!0});var bK,CK,SK={};Object.defineProperty(SK,"__esModule",{value:!0}),SK.CONNECTION_TYPE=SK.CONNECTION_STATE=void 0,function(e){e.ONLINE="ONLINE",e.OFFLINE="OFFLINE"}(bK||(SK.CONNECTION_STATE=bK={})),function(e){e.TYPE_3G="TYPE_3G",e.TYPE_WLAN="TYPE_WLAN"}(CK||(SK.CONNECTION_TYPE=CK={}));var IK,DK,wK={};Object.defineProperty(wK,"__esModule",{value:!0}),wK.DisplayMode=wK.DISPLAY_MODE=void 0,function(e){e.EMBEDDED="embedded",e.MODAL="modal"}(IK||(wK.DISPLAY_MODE=IK={})),function(e){e.EMBEDDED="EMBEDDED",e.MODAL="MODAL"}(DK||(wK.DisplayMode=DK={}));var TK,OK={};Object.defineProperty(OK,"__esModule",{value:!0}),OK.ENTITLEMENT_MODE=void 0,function(e){e.ENTITLEMENT="entitlement",e.OAUTH="oauth",e.NONE="none"}(TK||(OK.ENTITLEMENT_MODE=TK={}));var AK={};Object.defineProperty(AK,"__esModule",{value:!0});var NK={};Object.defineProperty(NK,"__esModule",{value:!0});var MK,PK={};Object.defineProperty(PK,"__esModule",{value:!0}),PK.ISSUE_STATE=void 0,function(e){e.PURCHASABLE="PURCHASABLE",e.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",e.DOWNLOADING="DOWNLOADING",e.AVAILABLE="AVAILABLE",e.INSTALLING="INSTALLING",e.UPDATE="UPDATE",e.INSTALLED="INSTALLED",e.LOCKED="LOCKED",e.COMING_SOON="COMING_SOON",e.INDEXING="INDEXING",e.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",e.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED"}(MK||(PK.ISSUE_STATE=MK={}));var RK={};Object.defineProperty(RK,"__esModule",{value:!0});var xK,kK={};Object.defineProperty(kK,"__esModule",{value:!0}),kK.MEDIA_PLAYBACK_STATE=void 0,function(e){e.NONE="NONE",e.ERROR="ERROR",e.LOADING="LOADING",e.READY="READY",e.PLAYING="PLAYING"}(xK||(kK.MEDIA_PLAYBACK_STATE=xK={}));var LK,FK={};Object.defineProperty(FK,"__esModule",{value:!0}),FK.Platform=void 0,function(e){e.ANDROID="android",e.IOS="ios"}(LK||(FK.Platform=LK={}));var UK,jK={};Object.defineProperty(jK,"__esModule",{value:!0}),jK.PUBLICATION_TYPE=void 0,function(e){e.KIOSK="KIOSK",e.CHANNEL="CHANNEL"}(UK||(jK.PUBLICATION_TYPE=UK={}));var VK={};Object.defineProperty(VK,"__esModule",{value:!0});var $K={};Object.defineProperty($K,"__esModule",{value:!0});var BK={};Object.defineProperty(BK,"__esModule",{value:!0});var HK={};Object.defineProperty(HK,"__esModule",{value:!0});var GK,qK,zK={};Object.defineProperty(zK,"__esModule",{value:!0}),zK.OpenFileMode=zK.OpenFileTarget=void 0,function(e){e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL"}(GK||(zK.OpenFileTarget=GK={})),function(e){e.MODAL="MODAL",e.EMBEDDED="EMBEDDED"}(qK||(zK.OpenFileMode=qK={}));var WK={};Object.defineProperty(WK,"__esModule",{value:!0});var KK,QK={};Object.defineProperty(QK,"__esModule",{value:!0}),QK.METADATA_KEY=void 0,function(e){e.APP_ID="app_id",e.APP_VERSION="app_version",e.BUNDLE_ID="bundle_id",e.DEEPLINK_SCHEME="deeplink_scheme",e.PREVIEW_APP="preview_app",e.DEVICE_ID="device_id",e.DEVICE_MODEL="device_model",e.DEVICE_OS="device_os",e.PLATFORM="platform",e.LOCALE="locale",e.MANAGER_BASE_URL="manager_base_url",e.PUSH_REGISTRATION_TOKEN="push_registration_token",e.ENTITLEMENT_LOGIN="entitlement_login",e.ENTITLEMENT_TOKEN="entitlement_token",e.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",e.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",e.ENTITLEMENT_MODE="entitlement_mode",e.ISSUE_ID="issue_id",e.ISSUE_NAME="issue_name",e.PUBLICATION_ID="publication_id",e.PUBLICATION_NAME="publication_name",e.PAGE_ID="page_id",e.PAGE_ALIAS="page_alias",e.PAGE_TITLE="page_title",e.PAGE_INDEX="page_index",e.PAGE_FILENAME="page_filename",e.PURPLE_VERSION="purple_version",e.ONBOARDING_MODE="onboarding_mode"}(KK||(QK.METADATA_KEY=KK={}));var YK={};Object.defineProperty(YK,"__esModule",{value:!0});var ZK={};Object.defineProperty(ZK,"__esModule",{value:!0});var JK,XK={};Object.defineProperty(XK,"__esModule",{value:!0}),XK.SUBSCRIPTION_STATE=void 0,function(e){e.NONE="NONE",e.PURCHASING="PURCHASING",e.VALIDATING="VALIDATING",e.PURCHASED="PURCHASED"}(JK||(XK.SUBSCRIPTION_STATE=JK={}));var eQ={};Object.defineProperty(eQ,"__esModule",{value:!0});var tQ,nQ,rQ={};Object.defineProperty(rQ,"__esModule",{value:!0}),rQ.UPDATE_STOREFRONT_ERROR_CODE=rQ.UPDATE_STOREFRONT_TYPE=void 0,function(e){e.PARTIAL="PARTIAL",e.FULL="FULL",e.LOGIN="LOGIN",e.LOGOUT="LOGOUT"}(tQ||(rQ.UPDATE_STOREFRONT_TYPE=tQ={})),function(e){e.OFFLINE="OFFLINE",e.UNKNOWN="UNKNOWN"}(nQ||(rQ.UPDATE_STOREFRONT_ERROR_CODE=nQ={}));var iQ={};Object.defineProperty(iQ,"__esModule",{value:!0});var oQ={};Object.defineProperty(oQ,"__esModule",{value:!0});var sQ={},aQ={};Object.defineProperty(aQ,"__esModule",{value:!0});var cQ,uQ,lQ={};Object.defineProperty(lQ,"__esModule",{value:!0}),lQ.AppSubscriptionType=lQ.AppSubscriptionDuration=void 0,function(e){e.SEVEN_DAYS="SEVEN_DAYS",e.TWO_WEEKS="TWO_WEEKS",e.ONE_MONTH="ONE_MONTH",e.TWO_MONTHS="TWO_MONTHS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS",e.ONE_YEAR="ONE_YEAR"}(cQ||(lQ.AppSubscriptionDuration=cQ={})),function(e){e.FREE="FREE",e.AUTORENEWABLE="AUTORENEWABLE",e.NONAUTORENEWABLE="NONAUTORENEWABLE"}(uQ||(lQ.AppSubscriptionType=uQ={}));var dQ,pQ={};Object.defineProperty(pQ,"__esModule",{value:!0}),pQ.AppSubscriptionAdditionalBackIssueUnlocksType=void 0,function(e){e.DAY="DAY",e.WEEK="WEEK",e.MONTH="MONTH",e.YEAR="YEAR"}(dQ||(pQ.AppSubscriptionAdditionalBackIssueUnlocksType=dQ={}));var hQ={};Object.defineProperty(hQ,"__esModule",{value:!0});var fQ={};Object.defineProperty(fQ,"__esModule",{value:!0});var gQ={};Object.defineProperty(gQ,"__esModule",{value:!0});var mQ={};Object.defineProperty(mQ,"__esModule",{value:!0});var vQ,yQ,EQ,_Q,bQ={};Object.defineProperty(bQ,"__esModule",{value:!0}),bQ.ContentResourceType=bQ.CatalogBundleType=bQ.CatalogContentType=bQ.Access=void 0,function(e){e.FREE="FREE",e.HIDDEN="HIDDEN",e.PURCHASABLE="PURCHASABLE"}(vQ||(bQ.Access=vQ={})),function(e){e.ISSUE="ISSUE",e.POST="POST",e.BUNDLE="BUNDLE"}(yQ||(bQ.CatalogContentType=yQ={})),function(e){e.ISSUE="ISSUE",e.DOSSIER="DOSSIER"}(EQ||(bQ.CatalogBundleType=EQ={})),function(e){e.ASSET="ASSET",e.CONTENT_BUNDLE="CONTENT_BUNDLE"}(_Q||(bQ.ContentResourceType=_Q={}));var CQ,SQ,IQ={};Object.defineProperty(IQ,"__esModule",{value:!0}),IQ.IssueType=IQ.PurchaseOption=void 0,function(e){e.APP_STORE_PURCHASE="APP_STORE_PURCHASE",e.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",e.ENTITLEMENT="ENTITLEMENT",e.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",e.TRIAL="TRIAL",e.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT"}(CQ||(IQ.PurchaseOption=CQ={})),function(e){e.ARTICLE="ARTICLE",e.ISSUE="ISSUE"}(SQ||(IQ.IssueType=SQ={}));var DQ={};Object.defineProperty(DQ,"__esModule",{value:!0});var wQ={};Object.defineProperty(wQ,"__esModule",{value:!0});var TQ={};Object.defineProperty(TQ,"__esModule",{value:!0});var OQ={};Object.defineProperty(OQ,"__esModule",{value:!0});var AQ,NQ={};Object.defineProperty(NQ,"__esModule",{value:!0}),NQ.PublicationType=void 0,function(e){e.KIOSK="KIOSK",e.CHANNEL="CHANNEL"}(AQ||(NQ.PublicationType=AQ={}));var MQ={};Object.defineProperty(MQ,"__esModule",{value:!0});var PQ={};Object.defineProperty(PQ,"__esModule",{value:!0});var RQ={};Object.defineProperty(RQ,"__esModule",{value:!0});var xQ={};Object.defineProperty(xQ,"__esModule",{value:!0});var kQ,LQ={};Object.defineProperty(LQ,"__esModule",{value:!0}),LQ.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(kQ||(LQ.SortDirection=kQ={}));var FQ={};Object.defineProperty(FQ,"__esModule",{value:!0});var UQ={};Object.defineProperty(UQ,"__esModule",{value:!0});var jQ={};Object.defineProperty(jQ,"__esModule",{value:!0});var VQ={};Object.defineProperty(VQ,"__esModule",{value:!0});var $Q={};Object.defineProperty($Q,"__esModule",{value:!0});var BQ={};Object.defineProperty(BQ,"__esModule",{value:!0});var HQ={};Object.defineProperty(HQ,"__esModule",{value:!0});var GQ={};Object.defineProperty(GQ,"__esModule",{value:!0});var qQ={};Object.defineProperty(qQ,"__esModule",{value:!0});var zQ,WQ={};Object.defineProperty(WQ,"__esModule",{value:!0}),WQ.ERROR_CODE=void 0,function(e){e.ACCESS_DENIED="ACCESS_DENIED",e.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",e.ALREADY_OWNED="ALREADY_OWNED",e.CANCELLED="CANCELLED",e.CONFIGURATION_ERROR="CONFIGURATION_ERROR",e.DUPLICATE_CODE="DUPLICATE_CODE",e.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",e.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",e.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.INVALID_CODE="INVALID_CODE",e.INVALID_CREDENTIALS="INVALID_CREDENTIALS",e.NETWORK="NETWORK",e.NO_ISSUES_FOUND="NO_ISSUES_FOUND",e.NOT_AVAILABLE="NOT_AVAILABLE",e.NOT_FOUND="NOT_FOUND",e.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",e.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",e.NOT_HANDLED="NOT_HANDLED",e.NOTHING_LOADED="NOTHING_LOADED",e.NOT_LOGGED_IN="NOT_LOGGED_IN",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.UNKNOWN="UNKNOWN",e.UNKNOWN_CODE="UNKNOWN_CODE",e.UNKNOWN_OFFER="UNKNOWN_OFFER",e.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",e.UNKNOWN_VENDOR="UNKNOWN_VENDOR",e.USER_DEACTIVATED="USER_DEACTIVATED",e.VALIDATION_FAILED="VALIDATION_FAILED"}(zQ||(WQ.ERROR_CODE=zQ={}));var KQ,QQ,YQ,ZQ,JQ={};Object.defineProperty(JQ,"__esModule",{value:!0}),JQ.ListOperation=JQ.IntOperation=JQ.DateOperation=JQ.StringOperation=void 0,function(e){e.EQUAL="EQUAL",e.CONTAINS="CONTAINS",e.STARTS_WITH="STARTS_WITH",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.REGEX="REGEX"}(KQ||(JQ.StringOperation=KQ={})),function(e){e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.EQUAL="EQUAL"}(QQ||(JQ.DateOperation=QQ={})),function(e){e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.EQUAL="EQUAL"}(YQ||(JQ.IntOperation=YQ={})),function(e){e.CONTAINS="CONTAINS",e.CONTAINS_ONLY="CONTAINS_ONLY"}(ZQ||(JQ.ListOperation=ZQ={}));var XQ={};Object.defineProperty(XQ,"__esModule",{value:!0});var eY={};Object.defineProperty(eY,"__esModule",{value:!0});var tY={};Object.defineProperty(tY,"__esModule",{value:!0});var nY={};Object.defineProperty(nY,"__esModule",{value:!0});var rY={};Object.defineProperty(rY,"__esModule",{value:!0});var iY={};Object.defineProperty(iY,"__esModule",{value:!0});var oY={};Object.defineProperty(oY,"__esModule",{value:!0});var sY={};Object.defineProperty(sY,"__esModule",{value:!0});var aY={};Object.defineProperty(aY,"__esModule",{value:!0});var cY={};Object.defineProperty(cY,"__esModule",{value:!0});var uY={};Object.defineProperty(uY,"__esModule",{value:!0});var lY={};Object.defineProperty(lY,"__esModule",{value:!0});var dY={};Object.defineProperty(dY,"__esModule",{value:!0});var pY={};Object.defineProperty(pY,"__esModule",{value:!0});var hY={};Object.defineProperty(hY,"__esModule",{value:!0});var fY={};Object.defineProperty(fY,"__esModule",{value:!0});var gY={};Object.defineProperty(gY,"__esModule",{value:!0});var mY={};Object.defineProperty(mY,"__esModule",{value:!0});var vY={};Object.defineProperty(vY,"__esModule",{value:!0});var yY={};Object.defineProperty(yY,"__esModule",{value:!0});var EY={};Object.defineProperty(EY,"__esModule",{value:!0});var _Y={};Object.defineProperty(_Y,"__esModule",{value:!0});var bY={};Object.defineProperty(bY,"__esModule",{value:!0});var CY={};Object.defineProperty(CY,"__esModule",{value:!0});var SY={};Object.defineProperty(SY,"__esModule",{value:!0});var IY={};Object.defineProperty(IY,"__esModule",{value:!0});var DY={};Object.defineProperty(DY,"__esModule",{value:!0});var wY={};Object.defineProperty(wY,"__esModule",{value:!0});var TY={};Object.defineProperty(TY,"__esModule",{value:!0});var OY={};Object.defineProperty(OY,"__esModule",{value:!0});var AY={};Object.defineProperty(AY,"__esModule",{value:!0});var NY={};Object.defineProperty(NY,"__esModule",{value:!0});var MY,PY={};Object.defineProperty(PY,"__esModule",{value:!0}),PY.PublicationProductType=void 0,function(e){e.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",e.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE"}(MY||(PY.PublicationProductType=MY={}));var RY={};Object.defineProperty(RY,"__esModule",{value:!0});var xY={};Object.defineProperty(xY,"__esModule",{value:!0});var kY={};Object.defineProperty(kY,"__esModule",{value:!0});var LY={};Object.defineProperty(LY,"__esModule",{value:!0});var FY,UY={};Object.defineProperty(UY,"__esModule",{value:!0}),UY.SystemConsentStatus=void 0,function(e){e.GRANTED="GRANTED",e.DENIED="DENIED",e.UNDETERMINED="UNDETERMINED"}(FY||(UY.SystemConsentStatus=FY={}));var jY={};Object.defineProperty(jY,"__esModule",{value:!0});var VY={};Object.defineProperty(VY,"__esModule",{value:!0});var $Y={};Object.defineProperty($Y,"__esModule",{value:!0});var BY={};Object.defineProperty(BY,"__esModule",{value:!0});var HY,GY={};Object.defineProperty(GY,"__esModule",{value:!0}),GY.SearchResultSortCriteria=void 0,function(e){e.RELEVANCE="RELEVANCE",e.PUB_DATE_DESC="PUB_DATE_DESC"}(HY||(GY.SearchResultSortCriteria=HY={}));var qY,zY={};Object.defineProperty(zY,"__esModule",{value:!0}),zY.SearchField=void 0,function(e){e.CONTENT="CONTENT",e.CONTENT_NAME="CONTENT_NAME",e.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",e.CUSTOM_TERMS="CUSTOM_TERMS"}(qY||(zY.SearchField=qY={}));var WY={};Object.defineProperty(WY,"__esModule",{value:!0});var KY={};Object.defineProperty(KY,"__esModule",{value:!0});var QY,YY={};Object.defineProperty(YY,"__esModule",{value:!0}),YY.StartDownloadError=void 0,function(e){e.NETWORK="NETWORK",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.NOT_FOUND="NOT_FOUND",e.UNKNOWN="UNKNOWN"}(QY||(YY.StartDownloadError=QY={}));var ZY={};Object.defineProperty(ZY,"__esModule",{value:!0});var JY={};Object.defineProperty(JY,"__esModule",{value:!0});var XY={};Object.defineProperty(XY,"__esModule",{value:!0});var eZ={};Object.defineProperty(eZ,"__esModule",{value:!0});var tZ={};Object.defineProperty(tZ,"__esModule",{value:!0});var nZ={};Object.defineProperty(nZ,"__esModule",{value:!0}),function(e){var t=fK&&fK.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fK&&fK.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(aQ,e),n(lQ,e),n(pQ,e),n(hQ,e),n(fQ,e),n(gQ,e),n(mQ,e),n(bQ,e),n(IQ,e),n(DQ,e),n(wQ,e),n(TQ,e),n(OQ,e),n(NQ,e),n(MQ,e),n(PQ,e),n(RQ,e),n(xQ,e),n(LQ,e),n(FQ,e),n(UQ,e),n(jQ,e),n(VQ,e),n($Q,e),n(BQ,e),n(HQ,e),n(GQ,e),n(qQ,e),n(WQ,e),n(JQ,e),n(XQ,e),n(eY,e),n(tY,e),n(nY,e),n(rY,e),n(iY,e),n(oY,e),n(sY,e),n(aY,e),n(cY,e),n(uY,e),n(lY,e),n(dY,e),n(pY,e),n(hY,e),n(fY,e),n(gY,e),n(mY,e),n(vY,e),n(yY,e),n(EY,e),n(_Y,e),n(bY,e),n(CY,e),n(SY,e),n(IY,e),n(DY,e),n(wY,e),n(TY,e),n(OY,e),n(AY,e),n(NY,e),n(PY,e),n(RY,e),n(xY,e),n(kY,e),n(LY,e),n(UY,e),n(jY,e),n(VY,e),n($Y,e),n(BY,e),n(GY,e),n(zY,e),n(WY,e),n(KY,e),n(YY,e),n(ZY,e),n(JY,e),n(XY,e),n(eZ,e),n(tZ,e),n(nZ,e)}(sQ);var rZ,iZ,oZ,sZ={},aZ={};Object.defineProperty(aZ,"__esModule",{value:!0}),aZ.ContentStateError=rZ=aZ.ContentInstallState=void 0,function(e){e.NOT_INSTALLED="NOT_INSTALLED",e.INCOMPLETE="INCOMPLETE",e.COMPLETE="COMPLETE"}(iZ||(rZ=aZ.ContentInstallState=iZ={})),function(e){e.NETWORK="NETWORK",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.NOT_FOUND="NOT_FOUND",e.UNKNOWN="UNKNOWN"}(oZ||(aZ.ContentStateError=oZ={}));var cZ={};Object.defineProperty(cZ,"__esModule",{value:!0});var uZ={};Object.defineProperty(uZ,"__esModule",{value:!0});var lZ={};Object.defineProperty(lZ,"__esModule",{value:!0});var dZ={};Object.defineProperty(dZ,"__esModule",{value:!0});var pZ={};Object.defineProperty(pZ,"__esModule",{value:!0});var hZ={};Object.defineProperty(hZ,"__esModule",{value:!0});var fZ={};Object.defineProperty(fZ,"__esModule",{value:!0});var gZ={};Object.defineProperty(gZ,"__esModule",{value:!0});var mZ,vZ={};Object.defineProperty(vZ,"__esModule",{value:!0}),vZ.ElementAlignment=void 0,function(e){e.TOP_LEFT="TOP_LEFT",e.TOP_CENTER="TOP_CENTER",e.TOP_RIGHT="TOP_RIGHT",e.CENTER_LEFT="CENTER_LEFT",e.CENTER_CENTER="CENTER_CENTER",e.CENTER_RIGHT="CENTER_RIGHT",e.BOTTOM_LEFT="BOTTOM_LEFT",e.BOTTOM_CENTER="BOTTOM_CENTER",e.BOTTOM_RIGHT="BOTTOM_RIGHT"}(mZ||(vZ.ElementAlignment=mZ={}));var yZ={};Object.defineProperty(yZ,"__esModule",{value:!0});var EZ={};Object.defineProperty(EZ,"__esModule",{value:!0}),function(e){var t=fK&&fK.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fK&&fK.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(aZ,e),n(cZ,e),n(uZ,e),n(lZ,e),n(dZ,e),n(pZ,e),n(hZ,e),n(fZ,e),n(gZ,e),n(vZ,e),n(yZ,e),n(EZ,e)}(sZ);var _Z={},bZ={};Object.defineProperty(bZ,"__esModule",{value:!0});var CZ={};Object.defineProperty(CZ,"__esModule",{value:!0});var SZ={};Object.defineProperty(SZ,"__esModule",{value:!0});var IZ={};Object.defineProperty(IZ,"__esModule",{value:!0});var DZ={};Object.defineProperty(DZ,"__esModule",{value:!0});var wZ={};Object.defineProperty(wZ,"__esModule",{value:!0});var TZ={};Object.defineProperty(TZ,"__esModule",{value:!0});var OZ={};Object.defineProperty(OZ,"__esModule",{value:!0});var AZ={};Object.defineProperty(AZ,"__esModule",{value:!0});var NZ={};Object.defineProperty(NZ,"__esModule",{value:!0});var MZ={};Object.defineProperty(MZ,"__esModule",{value:!0});var PZ={};Object.defineProperty(PZ,"__esModule",{value:!0});var RZ={};Object.defineProperty(RZ,"__esModule",{value:!0});var xZ,kZ={};Object.defineProperty(kZ,"__esModule",{value:!0}),kZ.ProrationMode=void 0,function(e){e.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",e.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",e.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",e.DEFERRED="DEFERRED"}(xZ||(kZ.ProrationMode=xZ={}));var LZ={};Object.defineProperty(LZ,"__esModule",{value:!0}),function(e){var t=fK&&fK.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fK&&fK.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(bZ,e),n(CZ,e),n(SZ,e),n(IZ,e),n(DZ,e),n(wZ,e),n(TZ,e),n(OZ,e),n(AZ,e),n(NZ,e),n(MZ,e),n(PZ,e),n(RZ,e),n(kZ,e),n(LZ,e)}(_Z);var FZ={},UZ={};Object.defineProperty(UZ,"__esModule",{value:!0});var jZ={};Object.defineProperty(jZ,"__esModule",{value:!0});var VZ={};Object.defineProperty(VZ,"__esModule",{value:!0});var $Z={};Object.defineProperty($Z,"__esModule",{value:!0});var BZ={};Object.defineProperty(BZ,"__esModule",{value:!0}),BZ.LAST_VISITED_PATH=void 0,BZ.LAST_VISITED_PATH="lastVisitedPath",function(e){var t=fK&&fK.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fK&&fK.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(UZ,e),n(jZ,e),n(VZ,e),n($Z,e),n(BZ,e)}(FZ);var HZ,GZ={},qZ={};Object.defineProperty(qZ,"__esModule",{value:!0}),qZ.AssignLocalPurchasesMode=void 0,function(e){e.UNASSIGNED="UNASSIGNED",e.REASSIGN="REASSIGN",e.ASSIGN="ASSIGN"}(HZ||(qZ.AssignLocalPurchasesMode=HZ={})),function(e){var t=fK&&fK.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fK&&fK.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(qZ,e)}(GZ),function(e){var t=fK&&fK.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fK&&fK.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(vK,e),n(EK,e),n(_K,e),n(SK,e),n(wK,e),n(OK,e),n(AK,e),n(NK,e),n(PK,e),n(RK,e),n(kK,e),n(FK,e),n(jK,e),n(VK,e),n($K,e),n(BK,e),n(HK,e),n(zK,e),n(WK,e),n(QK,e),n(YK,e),n(ZK,e),n(XK,e),n(eQ,e),n(rQ,e),n(iQ,e),n(oQ,e),n(sQ,e),n(sZ,e),n(_Z,e),n(FZ,e),n(GZ,e)}(mK),function(e){var t=fK&&fK.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=fK&&fK.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(mK,e)}(gK);var zZ=(e=>(e.NOT_IMPLEMENTED="not implemented. Please override this method",e))(zZ||{});class WZ{constructor(e,t){this.major=e,this.minor=t}toString(){return`${this.major}.${this.minor}`}}var KZ=(e=>(e.INVALIDATION="APP:INVALIDATION",e.MEDIA_STATUS="MEDIA:STATUS",e.MEDIA_PROGRESS="MEDIA:PROGRESS",e.ISSUE_PAGER_STATE="ISSUEPAGER:STATE",e))(KZ||{});const QZ={sendEvent:(e,t)=>{window.dispatchEvent(new CustomEvent(e,{detail:t}))},addListener(e,t){window.addEventListener(e,t)},removeListener(e,t){window.removeEventListener(e,t)}};class YZ{version=new WZ(1,3);addConnectionStateListener(e){}addInvalidationListener(e){QZ.addListener(KZ.INVALIDATION,e)}addLifecycleListener(e){}closeOnboarding(e){console.warn("app.closeOnboarding:"+zZ.NOT_IMPLEMENTED)}async performActionUrl(e){console.warn("app.performActionUrl:"+zZ.NOT_IMPLEMENTED)}async performAuthentication(e){return console.warn("app.performAuthentication:"+zZ.NOT_IMPLEMENTED),{values:new Map}}removeConnectionStateListener(e){}removeInvalidationListener(e){QZ.removeListener(KZ.INVALIDATION,e)}removeLifecycleListener(e){}}class ZZ{version=new WZ(2,0);async getDisplayConfig(){return{controlsEnabled:!1,displayMode:gK.DisplayMode.EMBEDDED,statusBarEnabled:!1,titleBarEnabled:!1}}getDisplayMode(e){this.getDisplayConfig().then((t=>e(t.displayMode.toLowerCase())))}isControlsEnabled(e){this.getDisplayConfig().then((t=>e(t.controlsEnabled)))}isStatusBarEnabled(e){this.getDisplayConfig().then((t=>e(t.statusBarEnabled)))}isTitleBarEnabled(e){this.getDisplayConfig().then((t=>e(t.titleBarEnabled)))}}class JZ{version=new WZ(1,0);async assignLocalPurchases(e){return Promise.resolve(void 0)}async getUserData(){return Promise.resolve({token:void 0})}async login(e){return Promise.resolve(void 0)}async logout(){return Promise.resolve(void 0)}}class XZ{version=new WZ(2,0);async createBookmark(e){return console.warn("bookmark.createBookmark:"+zZ.NOT_IMPLEMENTED),null}async deleteBookmark(e){console.warn("bookmark.deleteBookmark:"+zZ.NOT_IMPLEMENTED)}async getBookmarks(){return console.warn("bookmark.getBookmarks:"+zZ.NOT_IMPLEMENTED),{bookmarks:[]}}}class eJ{version=new WZ(1,7);open(e){return Promise.resolve()}async getLocalContents(){return console.warn("content.getLocalContents:"+zZ.NOT_IMPLEMENTED),{contents:[],previewContents:[]}}async syncLocalContents(e){console.warn("content.syncLocalContents:"+zZ.NOT_IMPLEMENTED)}async startDownload(e){console.warn("content.startDownload:"+zZ.NOT_IMPLEMENTED)}async pauseDownload(e){console.warn("content.pauseDownload:"+zZ.NOT_IMPLEMENTED)}async deleteDownload(e){console.warn("content.deleteDownload:"+zZ.NOT_IMPLEMENTED)}async getContentStates(e){return Object.fromEntries(e.contents.map((({contentId:e})=>[e,{contentId:e,installState:rZ.NOT_INSTALLED,updateAvailable:!1,downloading:!1,progress:0}])))}addContentStateListener(e,t){console.warn("content.addContentStateListener:"+zZ.NOT_IMPLEMENTED)}removeContentStateListener(e,t){console.warn("content.removeContentStateListener:"+zZ.NOT_IMPLEMENTED)}async getPostResourceUrl(e){return console.warn("content.getPostResourceUrl:"+zZ.NOT_IMPLEMENTED),""}}const tJ="pageInfo { hasNextPage, endCursor }";function nJ(e){return e?"totalCount":""}const rJ=e=>`preview_${e}`,iJ=cK`
3
+ fragment TaxonomySummaryFragment on Taxonomy {
4
+ id
5
+ internalId
6
+ name
7
+ type
8
+ parentId
9
+ seoMetadata @include(if: $includeContentSeoMetadata) {
10
+ key
11
+ value
12
+ }
13
+ properties {
14
+ key
15
+ value
16
+ }
17
+ }
18
+ `,oJ=cK`
19
+ fragment ContentFragment on Content {
20
+ __typename
21
+ id
22
+ version
23
+ name
24
+ description
25
+ index
26
+ alias
27
+ externalId
28
+ publicationDate
29
+ unpublishDate
30
+ lastModified
31
+ access
32
+ productId
33
+ purchaseData {
34
+ purchased
35
+ purchasedBy
36
+ }
37
+ publication {
38
+ id
39
+ }
40
+ properties (filter: $propertyFilter) {
41
+ key
42
+ value
43
+ }
44
+ seoMetadata @include(if: $includeContentSeoMetadata) {
45
+ key
46
+ value
47
+ }
48
+ thumbnails {
49
+ kind
50
+ url
51
+ properties {
52
+ key
53
+ value
54
+ }
55
+ }
56
+ categories
57
+ tags
58
+ }
59
+ `,sJ=cK`
60
+ fragment ContentBlockFragment on ContentBlock {
61
+ id
62
+ type
63
+ parentId
64
+ children
65
+ sequence
66
+ html
67
+ level
68
+ properties {
69
+ key
70
+ value
71
+ type
72
+ }
73
+ }
74
+ `,aJ=cK`
75
+ fragment IssueFragment on Issue {
76
+ contentLength
77
+ numberOfPages
78
+ previewContentLength
79
+ resources @include(if: $includeResources) {
80
+ id
81
+ url
82
+ type
83
+ contentLength
84
+ properties {
85
+ key
86
+ value
87
+ type
88
+ }
89
+ }
90
+ }
91
+ `,cJ=cK`
92
+ fragment PostFragment on Post {
93
+ postType
94
+ bundleId
95
+ bundles {
96
+ id
97
+ bundleType
98
+ }
99
+ taxonomies {
100
+ ...TaxonomySummaryFragment
101
+ }
102
+ authors {
103
+ name
104
+ email
105
+ }
106
+ bundleId
107
+ content @include(if: $includeBlocks) {
108
+ ...ContentBlockFragment
109
+ }
110
+
111
+ previewContentBlocks @include(if: $includeBlocks) {
112
+ ...ContentBlockFragment
113
+ }
114
+
115
+ contentHtml @include(if: $includeHtml)
116
+ previewContentHtml @include(if: $includeHtml)
117
+ resources @include(if: $includeResources) {
118
+ id
119
+ url
120
+ type
121
+ contentLength
122
+ properties {
123
+ key
124
+ value
125
+ type
126
+ }
127
+ }
128
+ }
129
+
130
+ ${sJ}
131
+ `,uJ=cK`
132
+ fragment BundleFragment on Bundle {
133
+ bundleType
134
+ taxonomies {
135
+ ...TaxonomySummaryFragment
136
+ }
137
+ authors {
138
+ name
139
+ email
140
+ }
141
+ contents @include(if: $includeBundledContent) {
142
+ id
143
+ content {
144
+ ...ContentFragment
145
+ ...PostFragment
146
+ }
147
+ }
148
+ }
149
+ `,lJ=cK`
150
+ fragment PostSearchResultFragment on PostSearchResult {
151
+ post {
152
+ ...ContentFragment
153
+ ...PostFragment
154
+ },
155
+ excerpt
156
+ }
157
+ `;var dJ=(e=>(e.APP_PERFORM_ACTION_URL="APP_PERFORM_ACTION_URL",e.APP_BROWSER_GET_DISPLAY_CONFIG="APP_BROWSER_GET_DISPLAY_CONFIG",e.ACCOUNT_ASSIGN_LOCAL_PURCHASES="ACCOUNT_ASSIGN_LOCAL_PURCHASES",e.ACCOUNT_GET_USER_DATA="ACCOUNT_GET_USER_DATA",e.ACCOUNT_LOGIN="ACCOUNT_LOGIN",e.ACCOUNT_LOGOUT="ACCOUNT_LOGOUT",e.BOOKMARK_CREATE="BOOKMARK_CREATE",e.BOOKMARK_DELETE="BOOKMARK_DELETE",e.BOOKMARK_GET="BOOKMARK_GET",e.CATALOG_GET_CATEGORIES="CATALOG_GET_CATEGORIES",e.CATALOG_GET_ISSUES="CATALOG_GET_ISSUES",e.CATALOG_GET_METADATA="CATALOG_GET_METADATA",e.CATALOG_GET_CONTENT="CATALOG_GET_CONTENT",e.CATALOG_GET_PRODUCTS="CATALOG_GET_PRODUCTS",e.CATALOG_GET_PUBLICATION_PRODUCTS="CATALOG_GET_PUBLICATION_PRODUCTS",e.CATALOG_GET_PUBLICATIONS="CATALOG_GET_PUBLICATIONS",e.CATALOG_GET_SUBSCRIPTIONS="CATALOG_GET_PUBLICATIONS",e.CATALOG_SEARCH="CATALOG_SEARCH",e.CATALOG_GET_ISSUE_STATES="CATALOG_GET_ISSUE_STATES",e.CATALOG_GET_MENUS="CATALOG_GET_MENUS",e.CATALOG_GET_TAXONOMIES="CATALOG_GET_TAXONOMIES",e.CATALOG_GET_COLLECTIONS="CATALOG_GET_COLLECTIONS",e.CATALOG_GET_APP_SETTINGS="CATALOG_GET_APP_SETTINGS",e.CATALOG_GET_REDIRECTS="CATALOG_GET_REDIRECTS",e.CATALOG_LOOKUP_PATH_SEGMENTS="CATALOG_LOOKUP_PATH_SEGMENTS",e.CLOSE_VIEW="CLOSE_VIEW",e.CONTENT_OPEN="CONTENT_OPEN",e.ENTITLEMENT_GET_USER_DATA="ENTITLEMENT_GET_USER_DATA",e.ENTITLEMENT_LOGIN="ENTITLEMENT_LOGIN",e.ENTITLEMENT_LOGIN_OAUTH="ENTITLEMENT_LOGIN_OAUTH",e.ENTITLEMENT_LOGOUT="ENTITLEMENT_LOGOUT",e.ENTITLEMENT_INVALIDATE_TOKENS="ENTITLEMENT_INVALIDATE_TOKENS",e.ENTITLEMENT_CHECK_OAUTH="ENTITLEMENT_CHECK_OAUTH",e.ENTITLEMENT_VERIFY_ACCESS_TOKEN="ENTITLEMENT_VERIFY_ACCESS_TOKEN",e.CONSENT_GET_CONSENT="CONSENT_GET_CONSENT",e.CONSENT_GRANT_CONSENT="CONSENT_GRANT_CONSENT",e.CONSENT_SHOW_PRIVACY_MANAGER="CONSENT_SHOW_PRIVACY_MANAGER",e.CONSENT_GET_SYSTEM_CONSENT="CONSENT_GET_SYSTEM_CONSENT",e.CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER="CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER",e.ENV_RESOURCE_URL="ENV_RESOURCE_URL",e.ENV_RESIZE="ENV_RESIZE",e.ENV_CSS_URLS="ENV_CSS_URLS",e.ENV_INIT="ENV_INIT",e.ENV_TITLE="ENV_TITLE",e.ENV_PRINT="ENV_PRINT",e.ENV_BACK="ENV_BACK",e.ENV_FORWARD="ENV_FORWARD",e.ENV_RELOAD="ENV_RELOAD",e.ENV_LOCATION="ENV_LOCATION",e.ISSUE_GET_BASE_URL="ISSUE_GET_BASE_URL",e.ISSUE_GET_PAGES="ISSUE_GET_PAGES",e.ISSUE_GET_TOC="ISSUE_GET_TOC",e.ISSUE_PAGER_GET_INFO="ISSUE_PAGER_GET_INFO",e.ISSUE_PAGER_NAVIGATE_TO="ISSUE_PAGER_NAVIGATE_TO",e.MEDIA_START_AUDIO="MEDIA_START_AUDIO",e.MEDIA_PAUSE_AUDIO="MEDIA_PAUSE_AUDIO",e.MEDIA_RESUME_AUDIO="MEDIA_RESUME_AUDIO",e.MEDIA_STOP_AUDIO="MEDIA_STOP_AUDIO",e.MEDIA_SEEK_TO="MEDIA_SEEK_TO",e.MEDIA_GET_PLAYBACK_RATE="MEDIA_GET_PLAYBACK_RATE",e.MEDIA_SET_PLAYBACK_RATE="MEDIA_SET_PLAYBACK_RATE",e.METADATA_GET_METADATA="METADATA_GET_METADATA",e.SHARE_SHARE="SHARE_SHARE",e.STATE_GET_STATE="STATE_GET_STATE",e.STATE_SET_STATE="STATE_SET_STATE",e.STORE_ADD_SUBSCRIPTION_CODES="STORE_ADD_SUBSCRIPTION_CODES",e.STORE_ADD_SUBSCRIPTION_CODE="STORE_ADD_SUBSCRIPTION_CODE",e.STORE_GET_PRICES="STORE_GET_PRICES",e.STORE_GET_SUBSCRIPTION_CODES="STORE_GET_SUBSCRIPTION_CODES",e.STORE_OPEN_CODE_REDEMPTION="STORE_OPEN_CODE_REDEMPTION",e.STORE_PURCHASE="STORE_PURCHASE",e.STORE_REMOVE_SUBSCRIPTION_CODE="STORE_REMOVE_SUBSCRIPTION_CODE",e.STORE_REMOVE_SUBSCRIPTION_CODES="STORE_REMOVE_SUBSCRIPTION_CODES",e.STORE_RESTORE_PURCHASES="STORE_RESTORE_PURCHASES",e.STORE_SUBSCRIBE="STORE_SUBSCRIBE",e.TRACKING_TRACK_ACTION="TRACKING_TRACK_ACTION",e.TRACKING_TRACK_VIEW="TRACKING_TRACK_VIEW",e.TRACKING_TRACK_PURCHASE="TRACKING_TRACK_PURCHASE",e.TRACKING_SET_USER_ATTRIBUTE="TRACKING_SET_USER_ATTRIBUTE",e))(dJ||{}),pJ=(e=>(e.ANDROID="ANDROID",e.IOS="IOS",e.WEB="WEB",e))(pJ||{}),hJ=(e=>(e.CONNECTIONS_STATE="APP_CONNECTION_STATE",e.LIFECYCLE="APP_LIFECYCLE",e.INVALIDATION="APP_INVALIDATION",e.MEDIA_STATUS="MEDIA_STATUS",e.MEDIA_PROGRESS="MEDIA_PROGRESS",e.ISSUE_PAGER_STATE="ISSUE_PAGER_STATE",e))(hJ||{});class fJ{constructor(e,t,n,r,i,o){this.getConfig=e,this.thisPurple=t,this.client=n,this.appInfo=r,this.deviceInfo=i,this.authorization=o}get config(){return this.getConfig()}version=new WZ(1,14);getDataOrThrow(e){if(e.data)return e.data;throw{message:e.errors[0].message,code:"UNKNOWN"}}async queryWithAuthRetry(e,t){let n=await this.client.query({query:e,variables:{...t,appInfo:this.appInfo(),deviceInfo:this.deviceInfo(),authorization:this.authorization()}});if(n.errors?.some((e=>"INVALID_ENTITLEMENT_TOKEN"===e.extensions.code))){if(console.warn("err: INVALID_ENTITLEMENT_TOKEN, refreshing token and retrying again"),!this.getConfig().entitlementRefreshToken)return this.logoutAndReturnResponse(n,"Error during refresh: no refreshToken");try{await this.thisPurple.entitlement.refreshAccessToken()}catch(e){return this.logoutAndReturnResponse(n,"Error during refresh: logging user out",e)}console.debug("refreshed accessToken, retrying query again"),n=await this.client.query({query:e,variables:{...t,appInfo:this.appInfo(),deviceInfo:this.deviceInfo(),authorization:this.authorization()}})}return this.getDataOrThrow(n)}logoutAndReturnResponse(e,t,n){return console.error(t,n),this.thisPurple.entitlement.clearLocalData(),this.getDataOrThrow(e)}toPage(e,t){return{totalCount:e.totalCount,cursor:e.pageInfo.endCursor,hasNextPage:e.pageInfo.hasNextPage,nodes:e.edges.map(t).filter((e=>!!e))}}getPublications=async e=>{e=this.convertPublicationsParams(e);const t=e?.contentsParams,n=t?.fetchOptions,r=(await this.queryWithAuthRetry(function(e,t){return cK`
158
+ query CatalogPublicationQuery(
159
+ $appInfo: AppInfo!,
160
+ $deviceInfo: DeviceInfo!,
161
+ $authorization: Authorization!,
162
+ $filter: PublicationFilter,
163
+ $sort: [PublicationComparator!],
164
+ $first: Int,
165
+ $after: String,
166
+ $includeContents: Boolean!,
167
+ $contentFilter: ContentFilter,
168
+ $contentSort: [ContentComparator!],
169
+ $contentFirst: Int,
170
+ $contentAfter: String,
171
+ $includeBundledContent: Boolean!,
172
+ $includeResources: Boolean!,
173
+ $includeBlocks: Boolean!,
174
+ $includeHtml: Boolean!,
175
+ $includeContentSeoMetadata: Boolean!,
176
+ $propertyFilter: PropertyFilter
177
+ ) {
178
+ catalog(
179
+ appInfo: $appInfo,
180
+ deviceInfo: $deviceInfo,
181
+ authorization: $authorization
182
+ ) {
183
+ publicationsConnection(
184
+ filter: $filter,
185
+ sort: $sort,
186
+ first: $first,
187
+ after: $after
188
+ ) {
189
+ ${tJ}
190
+ ${nJ(e?.totalCount)}
191
+ edges {
192
+ publication: node {
193
+ ...PublicationFragment
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+ ${function(e){return cK`
201
+ fragment PublicationFragment on Publication {
202
+ id
203
+ name
204
+ description
205
+ type
206
+ language
207
+ index
208
+ currentContentId
209
+ contentsConnection(
210
+ filter: $contentFilter,
211
+ sort: $contentSort,
212
+ first: $contentFirst,
213
+ after: $contentAfter
214
+ ) @include(if: $includeContents) {
215
+ ${tJ},
216
+ ${nJ(e?.totalCount)},
217
+ edges {
218
+ node {
219
+ ...ContentFragment
220
+ ...IssueFragment
221
+ ...PostFragment
222
+ ...BundleFragment
223
+ }
224
+ }
225
+ }
226
+ properties {
227
+ key
228
+ value
229
+ }
230
+ thumbnails {
231
+ kind
232
+ url
233
+ properties {
234
+ key
235
+ value
236
+ }
237
+ },
238
+ tocSettings {
239
+ pageLabelsEnabled
240
+ style
241
+ }
242
+ }
243
+
244
+ ${oJ}
245
+ ${aJ}
246
+ ${cJ}
247
+ ${uJ}
248
+ ${iJ}
249
+ `}(t)}
250
+ `}(e?.fetchOptions,n),{filter:e?.publicationFilter,sort:e?.sort,first:e?.first,after:e?.after,includeContents:!!e?.includeContents,contentFilter:t?.contentFilter,contentSort:t?.sort,contentFirst:t?.first,contentAfter:t?.after,includeBundledContent:!!n?.includeBundledContent,includeResources:!!n?.includeResources,includeBlocks:!!n?.includeBlocks,includeHtml:!!n?.includeHtml,includeContentSeoMetadata:!!n?.seoMetadata,propertyFilter:n?.properties})).catalog;return this.toPage(r.publicationsConnection,(e=>this.mapPublication(e.publication)))};mapProperties(e){return e.reduce(((e,t)=>({...e,[t.key]:t.value})),{})}mapSeoMetadata(e){return e?.reduce(((e,t)=>({...e,[t.key]:t.value})),{})}mapThumbnails(e){return e.reduce(((e,t)=>({...e,[t.kind]:t.url})),{})}mapThumbnailsExtended(e){return e.reduce(((e,t)=>(e[t.kind]={kind:t.kind,url:t.url,properties:this.mapProperties(t.properties)},e)),{})}mapPublication(e){return{id:e.id,currentContentId:e.currentContentId,currentIssueId:e.currentContentId,description:e.description,freeConsumable:e.freeConsumable,index:e.index,contents:e.contentsConnection?this.toPage(e.contentsConnection,(e=>this.mapContent(e.node))):null,language:e.language,name:e.name,printSubscriptionEnabled:e.printSubscriptionEnabled,properties:this.mapProperties(e.properties),thumbnails:this.mapThumbnails(e.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(e.thumbnails),type:e.type,tocSettings:e.tocSettings}}mapIssueToCatalogPreviewIssue(e){return{id:rJ(e.id),contentLength:e.contentLength,numberOfPages:e.numberOfPages,state:this.getIssueState(e.id),version:e.version}}getIssueState(e){return{installState:gK.ContentInstallState.NOT_INSTALLED,downloading:!1,issueId:e,progress:0,updateAvailable:!1}}mapIssue(e){const t=this.mapContent(e);if(t?.contentType!==gK.CatalogContentType.ISSUE)throw new Error(`mapIssue received contentType: ${t.contentType}`);return t}mapIssueSpecificFields(e){return{comingSoon:!1,contentLength:e.contentLength,numberOfPages:e.numberOfPages,previewIssue:e.previewContentLength>0?this.mapIssueToCatalogPreviewIssue(e):void 0,state:this.getIssueState(e.id),purchasable:e.access===gK.Access.PURCHASABLE,type:gK.IssueType.ISSUE,externalIssueId:e.externalId,purchased:e.purchaseData.purchased,purchasedBy:e.purchaseData.purchased,categories:e.categories,tags:e.tags,resources:e.resources?.map((e=>this.mapResource(e)))}}mapPost(e){const t=this.mapContent(e);if(t?.contentType!==gK.CatalogContentType.POST)throw new Error("mapPost received contentType: "+t.contentType);return t}mapPostSpecificFields(e){return{postType:e.postType,content:e.content?.map((e=>this.mapPostBlock(e))),contentHtml:e.contentHtml,authors:e.authors?.map((e=>this.mapAuthor(e))),resources:e.resources?.map((e=>this.mapResource(e))),previewResources:e.previewResources?.map((e=>this.mapResource(e))),taxonomies:e.taxonomies.map((e=>this.mapTaxonomySummary(e))),bundleId:e.bundleId,bundles:e.bundles.map((e=>this.mapBundleSummary(e)))}}mapBundle(e){const t=this.mapContent(e);if(t?.contentType!==gK.CatalogContentType.BUNDLE)throw new Error("mapBundle received contentType: "+t.contentType);return t}mapPostBlock(e){return{id:e.id,html:e.html,children:e.children,level:e.level,properties:this.mapProperties(e.properties),sequence:e.sequence,type:e.type,parentId:e.parentId}}mapBundleSummary(e){return{id:e.id,bundleType:e.bundleType}}mapAuthor(e){return{name:e.name,email:e.email}}mapBundleSpecificFields(e){return{bundleType:e.bundleType,taxonomies:e.taxonomies.map((e=>this.mapTaxonomySummary(e))),contents:e.contents?.map((e=>this.mapBundleContent(e))),authors:e.authors?.map((e=>this.mapAuthor(e)))}}mapBundleContent(e){return{id:e.id,post:this.mapPost(e.content)}}mapContent(e){const t=e.__typename.toUpperCase(),n={contentType:t,id:e.id,publicationId:e.publication.id,version:e.version,name:e.name,description:e.description??"",alias:e.alias,externalId:e.externalId,publicationDate:gJ(e.publicationDate),lastModified:gJ(e.lastModified),unpublishDate:gJ(e.unpublishDate),index:e.index,productId:e.productId,access:e.access,purchaseData:e.purchaseData,properties:this.mapProperties(e.properties),seoMetadata:this.mapSeoMetadata(e.seoMetadata),thumbnails:this.mapThumbnails(e.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(e.thumbnails)};switch(t){case gK.CatalogContentType.ISSUE:return{...n,...this.mapIssueSpecificFields(e)};case gK.CatalogContentType.BUNDLE:return{...n,...this.mapBundleSpecificFields(e)};case gK.CatalogContentType.POST:return{...n,...this.mapPostSpecificFields(e)};default:return}}mapResource(e){return{id:e.id,url:e.url,properties:this.mapProperties(e.properties),contentLength:e.contentLength,type:e.type}}mapPathSegmentLookupResult(e){return{identifier:e.identifier,matches:e.matches.map((e=>this.mapPathSegmentMatch(e))).filter((e=>!!e))}}mapPathSegmentMatch(e){switch(e.__typename){case"ContentMatch":return{type:"CONTENT",contentType:e.contentType,id:e.id,postType:e.postType};case"TaxonomyMatch":return{type:"TAXONOMY",id:e.id,identifier:e.identifier,name:e.name,taxonomyType:e.taxonomyType,parentIdentifier:e.parentIdentifier};case"CollectionMatch":return{type:"COLLECTION",id:e.id,name:e.name};case"RedirectMatch":return{type:"REDIRECT",id:e.id,identifier:e.identifier,redirectType:e.redirectType,statusCode:e.statusCode,target:e.target};default:return}}mapTaxonomy(e){return{id:e.id,internalId:e.internalId,name:e.name,description:e.description,seoMetadata:this.mapSeoMetadata(e.seoMetadata),properties:this.mapProperties(e.properties),thumbnails:this.mapThumbnails(e.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(e.thumbnails),type:e.type,parentId:e.parentId,contents:e.contentsConnection?this.toPage(e.contentsConnection,(e=>this.mapContent(e.node))):null}}mapTaxonomySummary(e){return{id:e.id,internalId:e.internalId,name:e.name,seoMetadata:this.mapSeoMetadata(e.seoMetadata),properties:this.mapProperties(e.properties),type:e.type,parentId:e.parentId}}mapCollection(e){return{id:e.id,name:e.name,properties:e.properties?this.mapProperties(e.properties):null,elements:e.elementsConnection?this.toPage(e.elementsConnection,(e=>this.mapCollectionElement(e.node))):void 0}}mapCollectionElement(e){if("ContentElement"===e.__typename)return{id:e.id,sortIndex:e.sortIndex,type:"CONTENT",content:this.mapContent(e.content)}}mapIssueSearchResult(e){return{contentType:gK.CatalogContentType.ISSUE,issue:this.mapIssue(e.issue),pageHits:e.pagesConnection.edges.map((({node:e})=>({excerpt:e.excerpt,pageIndex:e.pageIndex,pageNumber:e.pageNumber,pageLabel:e.pageLabel,pageTitle:e.pageTitle,elementAlias:e.elementAlias})))}}mapPostSearchResult(e){return{contentType:gK.CatalogContentType.POST,excerpt:e.excerpt,post:this.mapPost(e.post)}}mapBundleSearchResult(e){return{contentType:gK.CatalogContentType.BUNDLE,bundle:this.mapBundle(e.bundle),posts:e.posts.map((e=>this.mapPostSearchResult(e)))}}mapSearchResult(e){switch(e.__typename){case"IssueSearchResult":return this.mapIssueSearchResult(e);case"PostSearchResult":return this.mapPostSearchResult(e);case"BundleSearchResult":return this.mapBundleSearchResult(e);default:return}}mapRedirect(e){return{id:e.id,identifier:e.identifier,statusCode:e.statusCode,target:e.target,type:e.type}}mapMenu(e){return{id:e.id,name:e.name,properties:this.mapProperties(e.properties),items:e.items?.map((e=>this.mapMenuItem(e)))}}mapMenuItem(e){return{id:e.id,name:e.name,properties:this.mapProperties(e.properties),title:e.title,description:e.description,target:e.target,cssClasses:e.cssClasses,sortIndex:e.sortIndex,url:e.url,parentId:e.parentId,thumbnailsExtended:this.mapThumbnailsExtended(e.thumbnails)}}getIssues=async e=>{const t=this.convertIssueParams(e);return this.getContents(t)};async getLocalIssues(){return Promise.resolve({issues:[],previewIssues:[]})}getContents=async e=>{const t=e?.fetchOptions,n=(await this.queryWithAuthRetry(function(e){return cK`
251
+ query CatalogContentsQuery(
252
+ $appInfo: AppInfo!,
253
+ $deviceInfo: DeviceInfo!,
254
+ $authorization: Authorization!,
255
+ $filter: ContentFilter,
256
+ $sort: [ContentComparator!],
257
+ $first: Int,
258
+ $after: String,
259
+ $includeBundledContent: Boolean!,
260
+ $includeResources: Boolean!,
261
+ $includeBlocks: Boolean!,
262
+ $includeHtml: Boolean!,
263
+ $includeContentSeoMetadata: Boolean!,
264
+ $propertyFilter: PropertyFilter
265
+ ) {
266
+ catalog(
267
+ appInfo: $appInfo,
268
+ deviceInfo: $deviceInfo,
269
+ authorization: $authorization
270
+ ) {
271
+ contentsConnection(
272
+ filter: $filter,
273
+ sort: $sort,
274
+ first: $first,
275
+ after: $after
276
+ ) {
277
+ ${tJ}
278
+ ${nJ(e?.totalCount)}
279
+ edges {
280
+ content: node {
281
+ __typename
282
+ ...ContentFragment
283
+ ...PostFragment
284
+ ...IssueFragment
285
+ ...BundleFragment
286
+ }
287
+ }
288
+ }
289
+ }
290
+ }
291
+ ${oJ}
292
+ ${cJ}
293
+ ${uJ}
294
+ ${aJ}
295
+ ${iJ}
296
+ `}(t),{filter:e?.contentFilter,sort:e?.sort,first:e?.first,after:e?.after,includeBlocks:!!t?.includeBlocks,includeHtml:!!t?.includeHtml,includeResources:!!t?.includeResources,includeBundledContent:!!t?.includeBundledContent,includeContentSeoMetadata:!!t?.seoMetadata,propertyFilter:t?.properties})).catalog;return this.toPage(n.contentsConnection,(e=>this.mapContent(e.content)))};getMenus=async e=>{const t=(await this.queryWithAuthRetry(function(e){return cK`
297
+ query MenuQuery(
298
+ $appInfo: AppInfo!,
299
+ $deviceInfo: DeviceInfo!,
300
+ $authorization: Authorization!,
301
+ $filter: MenuFilter,
302
+ $first: Int,
303
+ $after: String,
304
+ $includeItems: Boolean!
305
+ ) {
306
+ catalog(
307
+ appInfo: $appInfo
308
+ deviceInfo: $deviceInfo
309
+ authorization: $authorization
310
+ ) {
311
+ menusConnection(filter: $filter, first: $first, after: $after) {
312
+ edges {
313
+ node {
314
+ id
315
+ name
316
+ properties {
317
+ key
318
+ value
319
+ type
320
+ }
321
+ items @include(if: $includeItems) {
322
+ id
323
+ sortIndex
324
+ parentId
325
+ url
326
+ name
327
+ title
328
+ description
329
+ target
330
+ cssClasses
331
+ properties {
332
+ key
333
+ value
334
+ type
335
+ }
336
+ thumbnails {
337
+ kind
338
+ url
339
+ properties {
340
+ key
341
+ value
342
+ }
343
+ }
344
+ }
345
+ }
346
+ },
347
+ ${tJ}
348
+ ${nJ(e?.totalCount)}
349
+ }
350
+ }
351
+ }
352
+ `}(e?.fetchOptions),{filter:e?.menuFilter,first:e?.first,after:e?.after,includeItems:!!e?.includeItems})).catalog;return this.toPage(t.menusConnection,(e=>this.mapMenu(e.node)))};getCollections=async e=>{const t=e?.elementsParams,n=e?.fetchOptions,r=t?.fetchOptions,i=(await this.queryWithAuthRetry(function(e,t){return cK`
353
+ query CatalogCollections(
354
+ $appInfo: AppInfo!,
355
+ $deviceInfo: DeviceInfo!,
356
+ $authorization: Authorization!,
357
+ $filter: CollectionFilter,
358
+ $sort: [CollectionComparator!],
359
+ $first: Int,
360
+ $after: String,
361
+ $includeElements: Boolean!,
362
+ $elementsFirst: Int,
363
+ $elementsAfter: String,
364
+ $includeBundledContent: Boolean!,
365
+ $includeResources: Boolean!,
366
+ $includeBlocks: Boolean!,
367
+ $includeHtml: Boolean!,
368
+ $includeContentSeoMetadata: Boolean!,
369
+ $propertyFilter: PropertyFilter
370
+ ) {
371
+ catalog(appInfo: $appInfo, deviceInfo: $deviceInfo, authorization: $authorization) {
372
+ collectionsConnection(
373
+ filter: $filter
374
+ sort: $sort
375
+ first: $first
376
+ after: $after
377
+ ) {
378
+ ${tJ}
379
+ ${nJ(e?.totalCount)}
380
+ edges {
381
+ node {
382
+ id
383
+ name
384
+ properties {
385
+ key
386
+ value
387
+ }
388
+ elementsConnection(
389
+ first: $elementsFirst,
390
+ after: $elementsAfter
391
+ ) @include(if: $includeElements) {
392
+ ${tJ}
393
+ ${nJ(t?.totalCount)}
394
+ edges {
395
+ node {
396
+ __typename
397
+ ... on ContentElement {
398
+ id
399
+ sortIndex
400
+ content {
401
+ ...ContentFragment
402
+ ...IssueFragment
403
+ ...PostFragment
404
+ ...BundleFragment
405
+ }
406
+ }
407
+ }
408
+ }
409
+ }
410
+ }
411
+ }
412
+ }
413
+ }
414
+ }
415
+ ${oJ}
416
+ ${aJ}
417
+ ${cJ}
418
+ ${uJ}
419
+ ${iJ}
420
+ `}(n,r),{filter:e?.collectionFilter,sort:e?.sort,first:e?.first,after:e?.after,includeElements:!!e?.includeElements,elementsFirst:t?.first,elementsAfter:t?.after,includeBlocks:!!r?.includeBlocks,includeHtml:!!r?.includeHtml,includeResources:!!r?.includeResources,includeBundledContent:!!r?.includeBundledContent,includeContentSeoMetadata:!!r?.seoMetadata,propertyFilter:r?.properties})).catalog;return this.toPage(i.collectionsConnection,(e=>this.mapCollection(e.node)))};getCategories=async e=>{const t=this.convertCategoriesParams(e),n=await this.getTaxonomies(t);return this.convertToCategoryPage(n)};getTaxonomies=async e=>{const t=e?.contentsParams,n=t?.fetchOptions,r=(await this.queryWithAuthRetry(function(e,t){return cK`
421
+ query CatalogTaxonomiesQuery(
422
+ $appInfo: AppInfo!,
423
+ $deviceInfo: DeviceInfo!,
424
+ $authorization: Authorization!,
425
+ $filter: TaxonomyFilter,
426
+ $sort: [TaxonomyComparator!],
427
+ $first: Int,
428
+ $after: String,
429
+ $includeTaxonomySeoMetadata: Boolean!,
430
+ $includeContents: Boolean!,
431
+ $contentFilter: ContentFilter,
432
+ $contentSort: [ContentComparator!],
433
+ $contentFirst: Int,
434
+ $contentAfter: String,
435
+ $includeBundledContent: Boolean!,
436
+ $includeResources: Boolean!,
437
+ $includeBlocks: Boolean!,
438
+ $includeHtml: Boolean!,
439
+ $includeContentSeoMetadata: Boolean!,
440
+ $propertyFilter: PropertyFilter
441
+ ) {
442
+ catalog(
443
+ appInfo: $appInfo,
444
+ deviceInfo: $deviceInfo,
445
+ authorization: $authorization
446
+ ) {
447
+ taxonomiesConnection(
448
+ first: $first,
449
+ after: $after,
450
+ sort: $sort,
451
+ filter: $filter
452
+ ) {
453
+ ${tJ}
454
+ ${nJ(e?.totalCount)}
455
+ edges {
456
+ node {
457
+ __typename
458
+ ...TaxonomyFragment
459
+ }
460
+ }
461
+ }
462
+ }
463
+ }
464
+ ${function(e){return cK`
465
+ fragment TaxonomyFragment on Taxonomy {
466
+ id
467
+ internalId
468
+ name
469
+ description
470
+ type
471
+ parentId
472
+ seoMetadata @include(if: $includeTaxonomySeoMetadata) {
473
+ key
474
+ value
475
+ }
476
+ properties {
477
+ key
478
+ value
479
+ }
480
+ thumbnails {
481
+ kind
482
+ url
483
+ properties {
484
+ key
485
+ value
486
+ }
487
+ }
488
+ contentsConnection(
489
+ filter: $contentFilter,
490
+ sort: $contentSort,
491
+ first: $contentFirst,
492
+ after: $contentAfter
493
+ ) @include(if: $includeContents) {
494
+ ${tJ},
495
+ ${nJ(e?.totalCount)},
496
+ edges {
497
+ node {
498
+ ...ContentFragment
499
+ ...IssueFragment
500
+ ...PostFragment
501
+ ...BundleFragment
502
+ }
503
+ }
504
+ }
505
+ }
506
+
507
+ ${oJ}
508
+ ${aJ}
509
+ ${cJ}
510
+ ${uJ}
511
+ ${iJ}
512
+ `}(t)}
513
+ `}(e?.fetchOptions,n),{filter:e?.taxonomyFilter,sort:e?.sort,first:e?.first,after:e?.after,includeTaxonomySeoMetadata:!!e?.fetchOptions?.seoMetadata,includeContents:!!e?.includeContents,contentFilter:t?.contentFilter,contentSort:t?.sort,contentFirst:t?.first,contentAfter:t?.after,includeBundledContent:!!n?.includeBundledContent,includeResources:!!n?.includeResources,includeBlocks:!!n?.includeBlocks,includeHtml:!!n?.includeHtml,includeContentSeoMetadata:!!n?.seoMetadata,propertyFilter:n?.properties})).catalog;return this.toPage(r.taxonomiesConnection,(e=>this.mapTaxonomy(e.node)))};getAppSettings=async e=>{const t=(await this.queryWithAuthRetry(function(e){return cK`
514
+ query AppSettingsQuery(
515
+ $appInfo: AppInfo!
516
+ $deviceInfo: DeviceInfo!
517
+ $authorization: Authorization!
518
+ $filter: AppSettingFilter
519
+ $first: Int
520
+ $after: String
521
+ ) {
522
+ catalog(
523
+ appInfo: $appInfo
524
+ deviceInfo: $deviceInfo
525
+ authorization: $authorization
526
+ ) {
527
+ appSettingsConnection(filter: $filter, first: $first, after: $after) {
528
+ edges {
529
+ node {
530
+ key
531
+ value
532
+ }
533
+ },
534
+ ${tJ}
535
+ ${nJ(e?.totalCount)}
536
+ }
537
+ }
538
+ }
539
+ `}(e?.fetchOptions),{filter:e?.appSettingFilter,first:e?.first,after:e?.after})).catalog;return this.toPage(t.appSettingsConnection,(e=>e.node))};getRedirects=async e=>{const t=(await this.queryWithAuthRetry(function(e){return cK`
540
+ query RedirectsQuery(
541
+ $appInfo: AppInfo!
542
+ $deviceInfo: DeviceInfo!
543
+ $authorization: Authorization!
544
+ $filter: RedirectFilter,
545
+ $first: Int,
546
+ $after: String
547
+ ) {
548
+ catalog(
549
+ appInfo: $appInfo
550
+ deviceInfo: $deviceInfo
551
+ authorization: $authorization
552
+ ) {
553
+ redirectsConnection(filter: $filter, first: $first, after: $after) {
554
+ edges {
555
+ node {
556
+ id
557
+ identifier
558
+ type
559
+ target
560
+ statusCode
561
+ }
562
+ },
563
+ ${tJ}
564
+ ${nJ(e?.totalCount)}
565
+ }
566
+ }
567
+ }
568
+ `}(e?.fetchOptions),{filter:e?.redirectFilter,first:e?.first,after:e?.after})).catalog;return this.toPage(t.redirectsConnection,(e=>this.mapRedirect(e.node)))};lookupPathSegments=async e=>(await this.queryWithAuthRetry(cK`
569
+ query LookupPathSegmentsQuery(
570
+ $appInfo: AppInfo!
571
+ $deviceInfo: DeviceInfo!
572
+ $authorization: Authorization!
573
+ $pathSegments: [String!]!
574
+ ) {
575
+ catalog(
576
+ appInfo: $appInfo
577
+ deviceInfo: $deviceInfo
578
+ authorization: $authorization
579
+ ) {
580
+ lookupPathSegments(pathSegments: $pathSegments) {
581
+ identifier
582
+ matches {
583
+ __typename
584
+ ... on ContentMatch {
585
+ id
586
+ contentType
587
+ postType
588
+ }
589
+ ... on TaxonomyMatch {
590
+ id
591
+ identifier
592
+ parentIdentifier
593
+ name
594
+ taxonomyType
595
+ }
596
+ ... on CollectionMatch {
597
+ id
598
+ name
599
+ }
600
+ ... on RedirectMatch {
601
+ id
602
+ identifier
603
+ redirectType
604
+ target
605
+ statusCode
606
+ }
607
+ }
608
+ }
609
+ }
610
+ }
611
+ `,{pathSegments:e.pathSegments})).catalog.lookupPathSegments.map((e=>this.mapPathSegmentLookupResult(e)));search=async e=>{const t=!!e.phrase||!!e.issueFilter;let n=e.contentFilter;if(t){const t={contentType:{value:gK.CatalogContentType.ISSUE}};n=e.issueFilter?{AND:[t,e.issueFilter]}:t}let r=e.sort;if(!r&&e.options?.sortBy)switch(e.options?.sortBy){case gK.SearchResultSortCriteria.RELEVANCE:r=[{relevance:{direction:gK.SortDirection.DESC}}];break;case gK.SearchResultSortCriteria.PUB_DATE_DESC:r=[{publicationDate:{direction:gK.SortDirection.DESC}}]}let i=e.options?.pageSort;!i&&e.options?.sortPages&&(i=[{index:{direction:gK.SortDirection.ASC}}]);const o=e.fetchOptions,s=(await this.queryWithAuthRetry(function(e){return cK`
612
+ query CatalogSearchQuery(
613
+ $appInfo: AppInfo!,
614
+ $deviceInfo: DeviceInfo!,
615
+ $authorization: Authorization!,
616
+ $phrase: String!,
617
+ $fields: [SearchField!],
618
+ $fuzzy: Boolean,
619
+ $pageSort: [IssuePageComparator!]
620
+ $sort: [ContentSearchResultComparator!]
621
+ $findAll: Boolean,
622
+ $contentFilter: ContentFilter,
623
+ $first: Int,
624
+ $after: String,
625
+ $includeHtml: Boolean!,
626
+ $includeBlocks: Boolean!,
627
+ $includeResources: Boolean!,
628
+ $includeBundledContent: Boolean!,
629
+ $includeContentSeoMetadata: Boolean!,
630
+ $propertyFilter: PropertyFilter
631
+ ) {
632
+ catalog(
633
+ appInfo: $appInfo,
634
+ deviceInfo: $deviceInfo,
635
+ authorization: $authorization
636
+ ) {
637
+ contentSearchConnection(
638
+ searchPhrase: $phrase,
639
+ searchFields: $fields,
640
+ contentFilter: $contentFilter,
641
+ fuzzyMatching: $fuzzy,
642
+ sort: $sort,
643
+ findAllWords: $findAll,
644
+ first: $first,
645
+ after: $after
646
+ ) {
647
+ ${tJ}
648
+ ${nJ(e?.totalCount)}
649
+ edges {
650
+ searchResult: node {
651
+ __typename
652
+ ... on IssueSearchResult {
653
+ issue {
654
+ ...ContentFragment
655
+ ...IssueFragment
656
+ }
657
+ pagesConnection(
658
+ sort: $pageSort
659
+ ) {
660
+ edges {
661
+ node {
662
+ excerpt
663
+ pageIndex
664
+ pageNumber
665
+ pageLabel
666
+ pageTitle
667
+ elementAlias
668
+ }
669
+ }
670
+ }
671
+ }
672
+ ...PostSearchResultFragment
673
+ ... on BundleSearchResult {
674
+ bundle {
675
+ ...ContentFragment
676
+ ...BundleFragment
677
+ }
678
+ posts {
679
+ ...PostSearchResultFragment
680
+ }
681
+ }
682
+ }
683
+ }
684
+ }
685
+ }
686
+ }
687
+ ${lJ}
688
+ ${aJ}
689
+ ${oJ}
690
+ ${uJ}
691
+ ${cJ}
692
+ ${iJ}
693
+ `}(o),{phrase:e.searchPhrase??e.phrase,fields:e.searchFields,fuzzy:e.options?.fuzzy,sort:r,findAll:e.options?.findAll,contentFilter:n,pageSort:i,first:e.first,after:e.after,includeHtml:!!o?.includeHtml,includeBlocks:!!o?.includeBlocks,includeBundledContent:!!o?.includeBundledContent,includeResources:!!o?.includeResources,includeContentSeoMetadata:!!o?.seoMetadata,propertyFilter:o?.properties})).catalog;return this.toPage(s.contentSearchConnection,(e=>this.mapSearchResult(e.searchResult)))};async getIssueStates(e){return Object.fromEntries(e.issues.map((({issueId:e})=>[e,{issueId:e,installState:gK.ContentInstallState.NOT_INSTALLED,updateAvailable:!1,downloading:!1,progress:0}])))}async startDownload(e){console.warn("catalog.startDownload:"+zZ.NOT_IMPLEMENTED)}async pauseDownload(e){console.warn("catalog.pauseDownload:"+zZ.NOT_IMPLEMENTED)}addInvalidationListener(e){QZ.addListener(KZ.INVALIDATION,e)}addIssueStateListener(e,t){}async deleteIssue(e){console.warn("catalog.deleteIssue:"+zZ.NOT_IMPLEMENTED)}async deleteIssues(e){return console.warn("catalog.deleteIssues:"+zZ.NOT_IMPLEMENTED),{}}getMetadata(){return Promise.resolve({activePurchaseTypes:[]})}async getPublicationProducts(e){return console.warn("catalog.getPublicationProducts:"+zZ.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}}async getSubscriptions(e){return console.warn("catalog.getSubscriptions:"+zZ.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}}async pauseDownloads(e){return console.warn("catalog.pauseDownloads:"+zZ.NOT_IMPLEMENTED),{}}removeInvalidationListener(e){QZ.removeListener(KZ.INVALIDATION,e)}removeIssueStateListener(e,t){}async startDownloads(e){return console.warn("catalog.startDownloads:"+zZ.NOT_IMPLEMENTED),{}}async syncLocalIssues(e){console.warn("catalog.syncLocalIssues:"+zZ.NOT_IMPLEMENTED)}async getProducts(e){return console.warn("catalog.getProducts:"+zZ.NOT_IMPLEMENTED),{issues:[],subscriptions:[],publicationProducts:[],contents:[]}}convertIssueParams(e){return e?{contentFilter:this.issueToContentFilter(e.issueFilter,!0),sort:e.sort&&e.sort.map((e=>this.issueToContentSort(e))),first:e.first,after:e.after}:{contentFilter:this.issueToContentFilter(void 0,!0)}}convertCategoriesParams(e){return e?{taxonomyFilter:this.categoryToTaxonomyFilter(e.categoryFilter,!0),sort:e.sort&&e.sort.map((e=>this.categoryToTaxonomySort(e))),first:e.first,after:e.after,includeContents:e.includeIssues,contentsParams:e.includeIssues?this.convertIssueParams(e.issuesParams):void 0}:{taxonomyFilter:this.categoryToTaxonomyFilter(void 0,!0)}}convertPublicationsParams(e){let t=e?.contentsParams;return e?.includeIssues&&(console.warn('PublicationParams: deprecated "includeIssues" used',e),t=this.convertIssueParams(e?.issuesParams)),{...e,publicationFilter:this.pubToPubFilter(e?.publicationFilter),sort:e?.sort?.map((e=>this.pubToPubSort(e))),includeContents:e?.includeContents||e?.includeIssues,contentsParams:t}}convertToCategoryPage(e){return{hasNextPage:e.hasNextPage,totalCount:e.totalCount,cursor:e.cursor,nodes:e.nodes.map((e=>({id:e.id,name:e.name,type:e.type,parentCategoryId:e.parentId,thumbnails:e.thumbnails,properties:e.properties,issues:e.contents})))}}issueToContentSort(e){return e&&{index:e.index,publicationDate:e.publicationDate,property:e.property}}categoryToTaxonomySort(e){return e&&{name:e.name,property:e.property}}pubToPubSort(e){if(e)return e.currentIssuePublicationDate&&console.warn('PublicationComparator: deprecated "currentIssuePublicationDate" use',e),{index:e.index,property:e.property,currentContentPublicationDate:e.currentContentPublicationDate||e.currentIssuePublicationDate}}categoryToTaxonomyFilter(e,t){const n=e&&{AND:e.AND&&e.AND.map((e=>this.categoryToTaxonomyFilter(e,!1))),OR:e.OR&&e.OR.map((e=>this.categoryToTaxonomyFilter(e,!1))),id:e.id,parentId:e.parentCategoryId,name:e.name,properties:e.properties,contents:this.issueListToContentListFilter(e.issues)};return t?this.wrapAsCategoryFilter(n):n}issueToContentFilter(e,t){const n=e&&{AND:e.AND&&e.AND.map((e=>this.issueToContentFilter(e,!1))),OR:e.OR&&e.OR.map((e=>this.issueToContentFilter(e,!1))),id:e.id,externalId:e.externalIssueId,alias:e.alias,publicationDate:e.publicationDate,access:this.purchasableToAccessFilter(e.purchasable),purchased:e.purchased,publication:this.pubToPubFilter(e.publication)||this.issueTypeToPubFilter(e.type),properties:e.properties,taxonomies:this.stringListToTaxonomyListFilter("category",e.categories)||this.stringListToTaxonomyListFilter("tag",e.tags)};return t?this.wrapAsIssueFilter(n):n}purchasableToAccessFilter(e){return e&&{value:gK.Access.FREE,negated:e.value}}stringListToTaxonomyListFilter(e,t){if(t)return{negated:t.negated,content:this.stringListContentToTaxonomyListContentFilter(e,t.content),size:t.size}}stringListContentToTaxonomyListContentFilter(e,t){if(t)return{operation:t.operation,value:this.stringFilterToTaxonomyFilter(e,t.value)}}stringFilterToTaxonomyFilter(e,t){return{AND:[{type:{value:e}},{id:t}]}}issueTypeToPubFilter(e){if(e)return{type:{negated:e.negated,value:"ARTICLE"===e.value?gK.PublicationType.CHANNEL:gK.PublicationType.KIOSK}}}pubToPubFilter(e){if(!e)return;let t=e.contents;return!e.contents&&e.issues&&(console.warn('PublicationFilter: deprecated "issues" used',e),t=this.issueListToContentListFilter(e.issues)),{AND:e.AND&&e.AND.map((e=>this.pubToPubFilter(e))),OR:e.OR&&e.OR.map((e=>this.pubToPubFilter(e))),id:e.id,type:e.type,language:e.language,properties:e.properties,contents:t}}issueListToContentListFilter(e){return e&&{negated:e.negated,content:this.issueListContentToContentListContentFilter(e.content),size:e.size}}issueListContentToContentListContentFilter(e){return e&&{operation:e.operation,value:this.issueToContentFilter(e.value,!0)}}wrapAsCategoryFilter(e){return e?{AND:[{type:{value:"category"}},e]}:{type:{value:"category"}}}wrapAsIssueFilter(e){return e?{AND:[{contentType:{value:gK.CatalogContentType.ISSUE}},e]}:{contentType:{value:gK.CatalogContentType.ISSUE}}}}function gJ(e){return new Date(e).getTime()}class mJ{constructor(e){this._getMetadata=e}version=new WZ(2,2);getMetadata(e,t,n){return Promise.resolve({...this._getMetadata(n)})}}const vJ=cK`
694
+ fragment AppWebConfigurationFields on AppWebConfiguration {
695
+ id
696
+ dynamicResources {
697
+ lastModified
698
+ }
699
+ favicons {
700
+ url
701
+ mimeType
702
+ }
703
+ entitlementConfig {
704
+ __typename
705
+ ... on EntitlementConfig {
706
+ dummy
707
+ }
708
+ ... on OAuthConfig {
709
+ clientId
710
+ tokenUrl
711
+ loginUrl
712
+ logoutUrl
713
+ }
714
+ }
715
+ }
716
+ `;class yJ{version=new WZ(2,0);getState(e,t){let n;n="string"==typeof e?e:e.key;let r=localStorage.getItem("storefront-"+n);if(void 0===r&&(r=null),!t)return Promise.resolve({key:n,value:r});t(n,r)}setState(e,t){let n,r;return"string"==typeof e?(n=e,r=t):(n=e.key,r=e.value),null==r?localStorage.removeItem("storefront-"+n):localStorage.setItem("storefront-"+n,r),Promise.resolve()}}class EJ{constructor(e,t,n,r,i){this.setConfigValue=e,this.getConfig=t,this.client=n,this.appInfo=r,this.deviceInfo=i}version=new WZ(2,4);get config(){return this.getConfig()}sanitizeCode(e){return e.substring(0,255).trim().toUpperCase()}async addSubscriptionCode(e){const t=this.sanitizeCode(e.code);if(this.config.subscriptionCodes.includes(t))throw{code:"DUPLICATE_CODE",message:`Code is already added: ${e.code}`};try{if(!((await this.client.mutate({mutation:cK`
717
+ mutation CheckSubscriptionCodes(
718
+ $appInfo: AppInfo!,
719
+ $deviceInfo: DeviceInfo!
720
+ $subscriptionCodes: [String!]!
721
+ ) {
722
+ subscriptionCodes(
723
+ appInfo: $appInfo
724
+ deviceInfo: $deviceInfo
725
+ codes: $subscriptionCodes
726
+ ) {
727
+ codes {
728
+ code
729
+ valid
730
+ }
731
+ }
732
+ }
733
+ `,variables:{appInfo:this.appInfo(),deviceInfo:this.deviceInfo(),subscriptionCodes:[t]}})).data.subscriptionCodes.codes.filter((e=>e.code===t&&e.valid)).length>0))throw{code:"INVALID_CODE",message:`Code is invalid: ${e.code}`};this.setConfigValue("subscriptionCodes",this.config.subscriptionCodes.concat(t)),QZ.sendEvent(KZ.INVALIDATION,{})}catch(e){throw console.warn(e),e}}addSubscriptionCodes(e,t){console.warn("store.addSubscriptionCodes:"+zZ.NOT_IMPLEMENTED),t({success:!0})}getPrices(e,t){return console.warn("store.getPrices:"+zZ.NOT_IMPLEMENTED),Promise.resolve({priceInfos:[]})}getSubscriptionCodes(e){const t=this.config.subscriptionCodes;if("function"!=typeof e)return Promise.resolve({subscriptionCodes:t});e(t)}async openCodeRedemption(){console.warn("store.purchase:"+zZ.NOT_IMPLEMENTED)}purchase(e,t){return console.warn("store.purchase:"+zZ.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof e?e:e.productId})}async removeSubscriptionCode(e){const t=this.sanitizeCode(e.code),n=this.config.subscriptionCodes,r=n.indexOf(t);if(!(r>-1))throw{code:"UNKNOWN_CODE",message:`No such code found: ${e.code}`};n.splice(r,1),this.setConfigValue("subscriptionCodes",n),QZ.sendEvent(KZ.INVALIDATION,{})}removeSubscriptionCodes(e,t){}restorePurchases(e){console.warn("store.restorePurchases:"+zZ.NOT_IMPLEMENTED)}setPurchaseStateListener(e){}subscribe(e,t){return console.warn("store.subscribe:"+zZ.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof e?e:e.productId})}}class _J{version=new WZ(2,1);async setUserAttribute(e){console.warn("tracking.setUserAttribute:"+zZ.NOT_IMPLEMENTED)}trackAction(e,t,n){console.warn("tracking.trackAction:"+zZ.NOT_IMPLEMENTED)}trackPurchase(e,t,n,r,i,o,s){console.warn("tracking.trackPurchase:"+zZ.NOT_IMPLEMENTED)}trackView(e,t,n){console.warn("tracking.trackView:"+zZ.NOT_IMPLEMENTED)}async debug(e){console.warn("tracking.debug:"+zZ.NOT_IMPLEMENTED)}}const bJ=cK`
734
+ fragment EntitlementFields on EntitlementResult {
735
+ ... on EntitlementError {
736
+ code
737
+ message
738
+ }
739
+ ... on EntitlementUserData {
740
+ accessToken
741
+ refreshToken
742
+ roles
743
+ }
744
+ }
745
+ `;class CJ{constructor(e,t,n,r,i,o){this.getMetadata=e,this.setConfigValue=t,this.getConfig=n,this.client=r,this.appInfo=i,this.deviceInfo=o}version=new WZ(1,2);isRefreshing=!1;refreshSubscribers=[];get config(){return this.getConfig()}async entitlementMutation(e,t,n,r,i){try{const o=await this.client.mutate({mutation:e,variables:{...t,appInfo:this.appInfo(),deviceInfo:this.deviceInfo()}});return this.handleEntitlementResult(n(o.data),r,i)}catch(e){throw{code:e.code||gK.ERROR_CODE.UNKNOWN,message:e.message,error:e}}}handleEntitlementResult(e,t,n){const r=this.mapEntitlementResult(e);if(function(e){return"code"in e}(r))throw r;return n&&this.setConfigValue("entitlementLogin",n),this.setConfigValue("entitlementToken",r.accessToken),r.refreshToken&&this.setConfigValue("entitlementRefreshToken",r.refreshToken),r.roles&&this.setConfigValue("entitlementRoles",r.roles),t&&QZ.sendEvent(KZ.INVALIDATION,{}),this.mapLoginResult(r)}getUserData(){return Promise.resolve({username:this.config.entitlementLogin,accessToken:this.config.entitlementToken,refreshToken:this.config.entitlementRefreshToken})}getRedirectUri(){const e=new URL(location.protocol+"//"+location.host+location.pathname+location.search),t=new URL(this.config.baseUrl).host;return e.host.indexOf(t)>-1||e.host.indexOf("localhost")>-1?e.pathname=e.pathname.split("/")[1]+"/":e.pathname="",e.pathname=e.pathname+"oauth/callback",e.toString()}async login(e){if(e.externalToken)return this.loginWithExternalToken(e.externalToken);{const t=this.config.entitlementConfig;switch(t.mode){case gK.ENTITLEMENT_MODE.ENTITLEMENT:return this.loginWithUsernameAndPassword(e.username,e.password);case gK.ENTITLEMENT_MODE.OAUTH:return this.loginWithOauth(t,e.state);default:throw{code:gK.ERROR_CODE.CONFIGURATION_ERROR,message:"No Entitlement configured"}}}}async loginWithExternalToken(e){return await this.entitlementMutation(cK`
746
+ mutation LoginWithExternalToken(
747
+ $appInfo: AppInfo!,
748
+ $deviceInfo: DeviceInfo!,
749
+ $externalToken: String!,
750
+ ) {
751
+ loginWithExternalToken(
752
+ appInfo: $appInfo,
753
+ deviceInfo: $deviceInfo,
754
+ externalToken: $externalToken,
755
+ ) {
756
+ ... EntitlementFields
757
+ }
758
+ }${bJ}`,{externalToken:e},(e=>e.loginWithExternalToken),!0)}async loginWithUsernameAndPassword(e,t){return await this.entitlementMutation(cK`
759
+ mutation Login(
760
+ $appInfo: AppInfo!,
761
+ $deviceInfo: DeviceInfo!,
762
+ $username: String!,
763
+ $password: String
764
+ ) {
765
+ login(
766
+ appInfo: $appInfo,
767
+ deviceInfo: $deviceInfo,
768
+ username: $username,
769
+ password: $password
770
+ ) {
771
+ ... EntitlementFields
772
+ }
773
+ }
774
+
775
+ ${bJ}`,{username:e,password:t},(e=>e.login),!0,e)}async loginWithOauth(e,t){const n=new URL(e.loginUrl);n.searchParams.set("response_type","code"),n.searchParams.set("client_id",e.clientId),n.searchParams.set("device_id",this.config.deviceId);const r=this.getRedirectUri();n.searchParams.set("redirectUri",r);const i=function(){var e=new Uint32Array(28);return window.crypto.getRandomValues(e),Array.from(e,SJ).join("")}(),o=await async function(e){const t=await function(e){const t=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",t)}(e);return function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;i<r;i++)t+=String.fromCharCode(n[i]);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}(t)}(i);if(n.searchParams.set("code_challenge",o),n.searchParams.set("code_challenge_method","S256"),!this.config.deviceId)throw{code:"MISSING_DEVICE_ID",message:"oauth is only available if an deviceId was specified"};const s=t||{};s.verifier=i,s.tokenRedirectUrl=r;const a=encodeURIComponent(btoa(JSON.stringify(s)));return n.searchParams.set("state",a),localStorage.setItem("loginState",a),window.location.href=n.toString(),new Promise((()=>{}))}async checkForOauthEntitlement(){const e=localStorage.getItem("loginState"),t=localStorage.getItem("logoutState");return e?this.handleOauthLogin(e):t?this.handleOauthLogout(t):void 0}async handleOauthLogin(e){const t=new URL(window.location.href),n=t.searchParams.get("code"),r=t.searchParams.get("state");if(e&&e!=r)throw{code:gK.ERROR_CODE.INVALID_CREDENTIALS,message:"Invalid State"};localStorage.removeItem("loginState");const i=JSON.parse(atob(decodeURIComponent(r))),o=JSON.parse(localStorage.getItem("AppWebConfiguration"));if(o.entitlementConfig.mode!==gK.ENTITLEMENT_MODE.OAUTH)throw{code:gK.ERROR_CODE.CONFIGURATION_ERROR,message:"Invalid entitlement mode"};const s=o.entitlementConfig,a=s.clientId,c=s.tokenUrl;let u=new FormData;u.append("grant_type","authorization_code"),u.append("code",n),u.append("redirect_uri",i.tokenRedirectUrl),u.append("code_verifier",i.verifier),u.append("client_id",a);let l=await(await fetch(c,{method:"POST",body:u})).json();if(l.error)throw{code:gK.ERROR_CODE.INVALID_CREDENTIALS,message:"Error when retrieving token"};if(l.access_token){const e={accessToken:l.access_token,refreshToken:l.refresh_token,roles:l.roles,state:i};return this.setConfigValue("entitlementToken",e.accessToken),this.setConfigValue("entitlementRefreshToken",e.refreshToken),this.setConfigValue("entitlementRoles",e.roles),QZ.sendEvent(KZ.INVALIDATION,{}),e.state?.redirectUrl}}async logout(e){const t=this.config.entitlementToken,n=this.config.entitlementRefreshToken;if(!t)throw new Error("No accessToken to logout");try{const r=this.config.entitlementConfig;if(r.mode===gK.ENTITLEMENT_MODE.OAUTH&&r.logoutUrl){const t=new URL(r.logoutUrl);return t.searchParams.set("redirect_uri",this.getRedirectUri()),t.searchParams.set("device_id",this.config.deviceId),localStorage.setItem("logoutState",JSON.stringify({redirectUri:e?.state?.redirectUrl??"purple://app/home/open"})),window.location.href=t.href,new Promise((()=>{}))}await this.client.mutate({mutation:cK`
776
+ mutation Logout(
777
+ $appInfo: AppInfo!,
778
+ $deviceInfo: DeviceInfo!,
779
+ $accessToken: String!,
780
+ $refreshToken: String
781
+ ) {
782
+ logout(
783
+ appInfo: $appInfo,
784
+ deviceInfo: $deviceInfo,
785
+ accessToken: $accessToken,
786
+ refreshToken: $refreshToken
787
+ )
788
+ }`,variables:{appInfo:this.appInfo(),deviceInfo:this.deviceInfo(),accessToken:t,refreshToken:n}}),this.clearLocalData()}catch(e){throw console.warn(e),e}}async handleOauthLogout(e){localStorage.removeItem("logoutState");const t=JSON.parse(e);return this.clearLocalData(),Promise.resolve(t.redirectUri)}async refreshAccessToken(){const e=this.config.entitlementRefreshToken;if(!e)throw{code:"NO_REFRESH_TOKEN",message:"Tried to refresh without refresh token"};if(this.isRefreshing)return new Promise((e=>{this.addRefreshSubscriber((t=>{e(t)}))}));this.isRefreshing=!0;try{const t=await this.entitlementMutation(cK`
789
+ mutation RefreshAccessToken(
790
+ $appInfo: AppInfo!,
791
+ $deviceInfo: DeviceInfo!,
792
+ $refreshToken: String!
793
+ ) {
794
+ refreshAccessToken(
795
+ appInfo: $appInfo,
796
+ deviceInfo: $deviceInfo
797
+ refreshToken: $refreshToken
798
+ ) {
799
+ ... EntitlementFields
800
+ }
801
+ }
802
+ ${bJ}`,{refreshToken:e},(e=>e.refreshAccessToken),!1);return this.notifyRefreshSubscribers(t),t}catch(e){throw e}finally{this.isRefreshing=!1}}addRefreshSubscriber(e){this.refreshSubscribers.push(e)}notifyRefreshSubscribers(e){this.refreshSubscribers.forEach((t=>t(e))),this.refreshSubscribers=[]}mapLoginResult(e){return{accessToken:e.accessToken,refreshToken:e.refreshToken,roles:e.roles}}mapEntitlementResult(e){return e.accessToken?this.mapEntitlementUserData(e):this.mapEntitlementError(e)}mapEntitlementUserData(e){return{accessToken:e.accessToken,refreshToken:e.refreshToken,roles:e.roles}}mapEntitlementError(e){return{message:e.message,code:this.mapEntitlementErrorCode(e.code)}}mapEntitlementErrorCode(e){switch(e){case"WRONG_PASSWORD_OR_USERNAME":case"WRONG_PASSWORD":case"AUTHENTICATION_ERROR":return gK.ERROR_CODE.INVALID_CREDENTIALS;case"USER_DEACTIVATED":return gK.ERROR_CODE.USER_DEACTIVATED;case"INSTALLATION_LIMIT_EXCEEDED":return gK.ERROR_CODE.INSTALLATION_LIMIT_EXCEEDED;case"SYSTEM_ERROR_IN_REMOTE_SYSTEM":case"PARAMETER_ERROR_IN_REMOTE_SYSTEM":return gK.ERROR_CODE.CONFIGURATION_ERROR;default:return gK.ERROR_CODE.UNKNOWN}}invalidateTokens(e){e?.refreshTokenOnly||this.setConfigValue("entitlementToken",`devtest_${this.config.entitlementToken}`),e?.accessTokenOnly||this.setConfigValue("entitlementRefreshToken",`devtest_${this.config.entitlementRefreshToken}`)}clearLocalData(){this.setConfigValue("entitlementLogin",null),this.setConfigValue("entitlementToken",null),this.setConfigValue("entitlementRefreshToken",null),this.setConfigValue("entitlementRoles",null),QZ.sendEvent(KZ.INVALIDATION,{})}async verifyAccessToken(e){return await this.entitlementMutation(cK`
803
+ mutation VerifyToken(
804
+ $appInfo: AppInfo!,
805
+ $deviceInfo: DeviceInfo!,
806
+ $accessToken: String!
807
+ ) {
808
+ verify(
809
+ appInfo: $appInfo,
810
+ deviceInfo: $deviceInfo,
811
+ accessToken: $accessToken
812
+ ) {
813
+ ... EntitlementFields
814
+ }
815
+ }
816
+ ${bJ}`,{accessToken:e.accessToken},(e=>e.verify),!0)}}function SJ(e){return("0"+e.toString(16)).substr(-2)}const IJ="purple-catalog-audio-context";class DJ{version=new WZ(2,0);audioElement;title;playbackRate=1;constructor(){this.audioElement=document.getElementById(IJ),this.audioElement||this.setupAudioElement(),this.setupEventListeners()}setupAudioElement(){this.audioElement=document.createElement("audio"),this.audioElement.id=IJ,document.body.append(this.audioElement)}setupEventListeners(){this.audioElement.addEventListener("playing",(()=>this.sendStatus({playbackState:"PLAYING"}))),this.audioElement.addEventListener("pause",(()=>this.sendStatus({playbackState:this.audioElement.src?"READY":"NONE"}))),this.audioElement.addEventListener("timeupdate",(()=>this.sendProgress({currentTime:1e3*this.audioElement.currentTime,duration:1e3*this.audioElement.duration}))),this.audioElement.addEventListener("waiting",(()=>this.sendStatus({playbackState:"LOADING"})))}sendStatus(e){const t={displayName:this.title,url:this.audioElement.src,...e};QZ.sendEvent(KZ.MEDIA_STATUS,t)}sendProgress(e){QZ.sendEvent(KZ.MEDIA_PROGRESS,e)}addProgressListener(e){QZ.addListener(KZ.MEDIA_PROGRESS,e)}addStatusListener(e){QZ.addListener(KZ.MEDIA_STATUS,e)}async getPlaybackRate(e){return{playbackRate:this.playbackRate}}async pauseAudio(){this.audioElement.pause()}removeProgressListener(e){QZ.removeListener(KZ.MEDIA_PROGRESS,e)}removeStatusListener(e){QZ.removeListener(KZ.MEDIA_STATUS,e)}resumeAudio(){return this.audioElement.play()}async seekTo(e){"number"==typeof e&&(e={time:e}),this.audioElement.currentTime=e.time/1e3}async setPlaybackRate(e){return"number"==typeof e&&(e={playbackRate:e}),this.playbackRate=e.playbackRate,this.audioElement.playbackRate=this.playbackRate,{playbackRate:this.audioElement.playbackRate}}async startAudio(e,t){"string"==typeof e&&(e={displayName:e,url:t}),this.audioElement.src=e.url,this.audioElement.playbackRate=this.playbackRate,this.title=e.displayName;try{return this.audioElement.play()}catch{this.sendStatus({playbackState:"ERROR"})}}stopAudio(){this.audioElement.pause(),this.audioElement.currentTime=0,this.audioElement.src=null,this.title=null,this.sendStatus({playbackState:"NONE"}),this.sendProgress({duration:-1,currentTime:0})}}class wJ{version=new WZ(2,0);async getBaseUrl(){return console.warn("issue.getBaseUrl:"+zZ.NOT_IMPLEMENTED),{baseUrl:""}}async getPages(e){return console.warn("issue.getPages:"+zZ.NOT_IMPLEMENTED),[]}async getToc(e){return console.warn("issue.getToc:"+zZ.NOT_IMPLEMENTED),[]}async openFile(e){console.warn("issue.openFile:"+zZ.NOT_IMPLEMENTED)}}class TJ{version=new WZ(1,0);async share(e){console.warn("Share.share:"+zZ.NOT_IMPLEMENTED)}}class OJ{constructor(e){this.getPagerInfo=e}version=new WZ(1,2);getInfo(){return Promise.resolve(this.getPagerInfo())}navigateTo(e){return Promise.resolve(void 0)}addIssueChangeListener(e){}removeIssueChangeListener(e){}retryLoad(){}}class AJ{version=new WZ(1,1);getConsent(e){throw new Error("Method not implemented.")}grantConsent(e){throw new Error("Method not implemented.")}showPrivacyManager(){throw new Error("Method not implemented.")}getSystemConsent(){throw new Error("Method not implemented.")}showSystemPrivacyManager(){throw new Error("Method not implemented.")}}function NJ(e){return new Cq((function(t,n){return new XG((function(r){var i,o,s;try{i=n(t).subscribe({next:function(i){i.errors&&(s=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?o=s.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function(i){(s=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?o=s.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function(){s||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var n=e.call(this)||this;return n.link=NJ(t),n}Z$(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(Cq);class MJ{constructor(e,t){this.config=e,this.onConfigChange=t;const n=NJ((({graphQLErrors:e})=>{e?.forEach((e=>this.config.onGraphQLError(e)))})),r=new Fq({uri:`${this.config.contentUrl}/graphql`});this.client=new tK({cache:this.cache,link:Sq([n,r]),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"},mutate:{errorPolicy:"all"}}}),this.account=new JZ,this.app=new YZ,this.appBrowser=new ZZ,this.bookmark=new XZ,this.content=new eJ,this.entitlement=new CJ((()=>this.configToMetadata()),((e,t)=>this.setConfigValue(e,t)),(()=>e),this.client,this.appInfo,this.deviceInfo),this.issue=new wJ,this.issuePager=new OJ((()=>this.pagerInfo)),this.media=new DJ,this.metadata=new mJ((e=>this.configToMetadata(e))),this.share=new TJ,this.state=new yJ,this.store=new EJ(((e,t)=>this.setConfigValue(e,t)),(()=>e),this.client,this.appInfo,this.deviceInfo),this.tracking=new _J,this.consent=new AJ,this.catalog=null,this.storefront=null}version=new WZ(3,1);app;appBrowser;account;bookmark;content;consent;catalog;entitlement;experience;issue;issuePager;media;share;storefront;metadata;state;store;tracking;pageData={};pagerInfo;cache=new RJ;client;appInfo(){return{appId:this.config.appId,appVersion:this.config.appVersion,preview:this.config.preview}}deviceInfo(){return{deviceId:this.config.deviceId,deviceModel:this.config.deviceModel,locale:this.config.locale,smallestScreenWidthDp:this.config.smallestScreenWidthDp,deviceOs:this.config.deviceOs,platform:(this.config.platform??"web").toUpperCase()}}authorization(){return{accessToken:this.config.entitlementToken,subscriptionCodes:this.config.subscriptionCodes,accountAccessToken:this.config.accountAccessToken}}closeView(){console.warn("closeView:"+zZ.NOT_IMPLEMENTED)}setConfig(e,t){this.config=e,this.onConfigChange({...this.config},t)}setConfigValue(e,t){this.config[e]=t,this.setConfig(this.config,e)}setPageData(e,t){this.pageData[e]=t}setIssuePagerInfo(e){this.pagerInfo=e}configToMetadata(e){const t=this.pageData[e]||{};return this.config.preview=this.config.preview||!1,{app_id:this.config.appId,app_version:this.config.appVersion,bundle_id:this.config.bundleId,device_id:this.config.deviceId,device_model:this.config.deviceModel,device_os:this.config.deviceOs,entitlement_forced_login_enabled:this.config.entitlementForcedLoginEnabled,entitlement_login:this.config.entitlementLogin,entitlement_login_mode:this.config.entitlementLoginMode,entitlement_mode:this.config.entitlementConfig.mode,entitlement_token:this.config.entitlementToken,locale:this.config.locale,manager_base_url:this.config.baseUrl,platform:this.config.platform,preview_app:this.config.preview.toString(),purple_version:this.config.purple_version,issue_id:this.config.issueId,issue_name:this.config.issueName,publication_Id:this.config.publicationId,publication_name:this.config.publicationName,page_id:t.id,page_alias:t.alias,page_label:t.label,page_title:t.title,page_filename:t.filename,page_number:t.number}}}class PJ extends MJ{constructor(e,t){super(e,t),this.config=e,this.onConfigChange=t,this.catalog=new fJ((()=>this.config),this,this.client,this.appInfo,this.deviceInfo,this.authorization)}static async getAppIdByPath(e,t,n=!1){return PJ.getAppWebConfig(cK`
817
+ query AppWebConfigForPath(
818
+ $path: String!
819
+ $preview: Boolean! = false
820
+ ) {
821
+ appConfigurationForPath(
822
+ path: $path,
823
+ preview: $preview
824
+ ) {
825
+ ... AppWebConfigurationFields
826
+ }
827
+ }
828
+ ${vJ}
829
+ `,(e=>e.appConfigurationForPath),t,{path:e,preview:n})}static async getAppIdByDomain(e,t,n){return PJ.getAppWebConfig(cK`
830
+ query AppWebConfigForDomain(
831
+ $domainName: String!
832
+ $preview: Boolean! = false
833
+ ) {
834
+ appConfigurationForDomain(
835
+ domainName: $domainName,
836
+ preview: $preview
837
+ ) {
838
+ ... AppWebConfigurationFields
839
+ }
840
+ }
841
+ ${vJ}
842
+ `,(e=>e.appConfigurationForDomain),t,{domainName:e,preview:n})}static async getAppWebConfig(e,t,n,r){const i=function(e){return new tK({uri:e+"/graphql",cache:new RJ,defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})}(n),o=await i.query({query:e,variables:r});return i.stop(),PJ.mapAppConfiguration(t(o.data))}static mapAppConfiguration(e){return e?{id:e.id,dynamicResources:{lastModified:e.dynamicResources?.lastModified},favicons:e.favicons.map((e=>PJ.mapFavicons(e))),entitlementConfig:PJ.mapEntitlementConfig(e.entitlementConfig)}:null}static mapFavicons(e){if(e)return{url:e.url,mimeType:e.mimeType}}static mapEntitlementConfig(e){switch(e?.__typename){case"EntitlementConfig":return{mode:gK.ENTITLEMENT_MODE.ENTITLEMENT};case"OAuthConfig":return{mode:gK.ENTITLEMENT_MODE.OAUTH,clientId:e.clientId,loginUrl:e.loginUrl,tokenUrl:e.tokenUrl,logoutUrl:e.logoutUrl};default:return{mode:gK.ENTITLEMENT_MODE.NONE}}}}class RJ extends Az{read=()=>null;write=()=>{};diff=()=>({});watch=()=>()=>{};reset=async()=>{};evict=()=>!1;restore=()=>this;extract=()=>({});removeOptimistic=()=>{};batch=()=>{};performTransaction=()=>{};recordOptimisticTransaction=()=>{};transformDocument=e=>e;transformForLink=e=>e;identify=()=>{};gc=()=>[];modify=()=>!1;readQuery=()=>null;readFragment=()=>null;writeQuery=()=>{};writeFragment=()=>{};updateQuery=()=>null;updateFragment=()=>null}var xJ;!function(e){e.PURPLE_API_CACHE="PURPLE_API_CACHE",e.PURPLE_CONTENT_CACHE="PURPLE_CONTENT_CACHE",e.PURPLE_COLLECTION_CACHE="PURPLE_COLLECTION_CACHE",e.PURPLE_MENU_CACHE="PURPLE_MENU_CACHE",e.PURPLE_PUBLICATION_CACHE="PURPLE_PUBLICATION_CACHE",e.PURPLE_TAXONOMY_CACHE="PURPLE_TAXONOMY_CACHE",e.PURPLE_OPTIONAL_CACHE="PURPLE_OPTIONAL_CACHE",e.PURPLE_REDIRECT_CACHE="PURPLE_REDIRECT_CACHE",e.PURPLE_PATH_SEGMENT_CACHE="PURPLE_PATH_SEGMENT_CACHE",e.PURPLE_JSON_CACHE="PURPLE_JSON_CACHE"}(xJ||(xJ={}));var kJ=n(5420),LJ=function(e,t){return function(n,r){t(n,r,e)}};const FJ={hasNextPage:!1,totalCount:0,cursor:"",nodes:[]},UJ="PURPLE_CACHE_VERSION",jJ=hP.rE;let VJ=class{platformId;router;injector;purpleEnv;transferState;cacheService;DOWNLOAD_HANDLERS={};IMAGE_SRCS=[];bookmarksSubject=new Te(null);bookmarks$=this.bookmarksSubject.asObservable();initedSubject=new $M(1);inited$=this.initedSubject.asObservable();repeatablePublicationProductsSubject=new Te(null);repeatablePublicationProducts$=this.repeatablePublicationProductsSubject.asObservable();connectionStateSubject=new Te(null);connectionState$=this.connectionStateSubject.asObservable();_downloadOptions={};get downloadOptions(){return this._downloadOptions}purpleConfig;purpleRef;issuePagerInfo;implUsedDirectly=!1;isContentLocked(e,t){return!1}constructor(e,t,n,r,i,o){this.platformId=e,this.router=t,this.injector=n,this.purpleEnv=r,this.transferState=i,this.cacheService=o}async init(e=!1,t,n,r,i,o,s,a,c,u,l){this.purpleConfig=o,t.loadConfig(),this.cacheService.purpleService=this,e?this.initServerPlatform(s,o,a,c,u,r,i):this.initAppPlatform(),window.PurpleService=this,this.initPurpleExperience(l,n),this.subscribeToConfigLoaderService(t),await this.initCache(),this.cacheService.fillCachesFromTransferState(),this.initListeners();try{window.storefrontHooks.onPurpleServiceInit?.()}catch(e){console.error("Error in onPurpleServiceInit hook:",e)}this.initedSubject.next(!0),this.initedSubject.complete()}getPurpleConfig(){return this.purpleConfig}async updateRepeatablePublicationProducts(){let e;const t={publicationProductFilter:{AND:[{type:{value:FM.PublicationProductType.REPEATABLE_ISSUE_PURCHASE}},{hidden:{value:!1}}]},maxUnlockableContents:1};try{e=await this.getPublicationProducts(t)}catch(t){console.warn("Failed to load repeatable publication products",t),e=[]}return this.repeatablePublicationProductsSubject.next(e),e}async getRepeatablePublicationProductByPublicationId(e){return(await HM(this.repeatablePublicationProducts$.pipe(GM((e=>!!e))))).find((t=>!!t.publications[e]))}nextInvalidation(){let e;const t=new Promise(((t,n)=>e=t));return window.addEventListener(XM,(()=>e())),t}async invalidate(){this.cacheService.bustApiCache(),await this.updateDownloadHandlerStates(),await this.updateRepeatablePublicationProducts(),window.dispatchEvent(new CustomEvent(XM,{})),this.onMaybeSubscriptionsChanged()}async onMaybeSubscriptionsChanged(){const e=await this.getState("storefront-purchased-subs").then((e=>e&&JSON.parse(e))),t=(await this.getSubscriptions({subscriptionFilter:{purchased:{value:!0}}})).nodes;jM()(e,t)||(window.storefrontHooks?.subscriptionsChanged?.({subscriptions:t}),await this.setState("storefront-purchased-subs",JSON.stringify(t))),this.injector.get(i$).notifyAll()}addImageSrc(e){this.IMAGE_SRCS.indexOf(e)<0&&this.IMAGE_SRCS.push(e)}getAlternativeSrc(e){const t=e?.split("?")[0];return this.IMAGE_SRCS.find((e=>e?.split("?")[0]===t))||t}filterCategoriesByParam(e){return Object.values(this.cacheService.PURPLE_TAXONOMY_CACHE).filter((t=>uP(e.categoryFilter,t)))}setConfigValue(e,t){this.purpleRef.setConfigValue(e,t)}setPageData(e,t){this.purpleRef.setPageData(e,t)}setIssuePagerInfo(e){this.purpleRef.setIssuePagerInfo(e)}isIssuePager(){return!!this.issuePagerInfo}setCurrentPagerIssueId(e){if(this.issuePagerInfo){const t=this.issuePagerInfo.issues.findIndex((t=>t.id===e));-1!==t&&(this.issuePagerInfo.currentIndex=t,this.issuePagerInfo.visibleIndex=t)}}async getDownloadHandler(e,t){const n=e.id,r=this.DOWNLOAD_HANDLERS[n]&&await this.DOWNLOAD_HANDLERS[n];if(r)return e.id!==r.content.id||jM()(e,r.content)||await r.setContent(e),r;const i=await this.getPublication(e.publicationId);return this.DOWNLOAD_HANDLERS[n]=new Promise((n=>{const r=this.downloadOptions,o=new kJ.V({content:e,publication:i,autoUpdate:Boolean(r.autoUpdateBehavior),addAppStateListeners:!0}),s={...o.state,error:null},a=new Te(s);o.addDownloadStateListeners((e=>a.next(e))),o.updates$=a,t&&o.updates$.pipe(GM((e=>!(!e||!e.error)))).subscribe((e=>{const n=function(e,t){const n=[e];return t&&(n.push(t.name),n.push(t.id)),n}(e.error,o.content);t.alert({text:"ERROR_DOWNLOAD",args:n},"DIALOG_ERROR")})),n(o)})),this.DOWNLOAD_HANDLERS[n]}async destroyDownloadHandler(e){for(const t in this.DOWNLOAD_HANDLERS)if(await this.DOWNLOAD_HANDLERS[t]===e){e.updates$.observers.length||delete this.DOWNLOAD_HANDLERS[e.content.id];break}}async updateDownloadHandlers(){return Promise.all(Object.values(this.DOWNLOAD_HANDLERS).map((async e=>{const t=await e;if(t.downloadStarted&&t.autoUpdate)try{await t.update()}catch(e){console.warn("error updating download handler",e)}else t.updateState(!1,!0)})))}async updateDownloadHandlerStates(){return Promise.all(Object.values(this.DOWNLOAD_HANDLERS).map((e=>e.then((e=>e.updateState(!1,!0))))))}async loginAccount(e){return this.purpleRef.account?.login({token:e})}logoutAccount(){return this.purpleRef.account?.logout()}assignLocalPurchases(e){return this.purpleRef.account?.assignLocalPurchases({mode:e})}async getAccountUserData(){return this.purpleRef.account?.getUserData()}overrideAppPerformActionUrlApi(e){this.purpleRef.app.performActionUrl=async({actionUrl:t})=>{if("undefined"!=typeof WP&&WP.instance){const e=WP.instance.getCurrentPlayer();if(e.ctx.actionHandler.processAction({open:{URL:t}},null,e))return}e.openUrl(t)}}openActionUrl(e,t,n){const r="purple-action-url-frame";if(e.startsWith("purple://")&&this.purpleRef.app.performActionUrl&&!t)this.purpleRef.app.performActionUrl({actionUrl:e});else if(t){let t=document.getElementById(r);t||(t=document.createElement("iframe"),t.style.opacity="0",t.id=r,document.body.appendChild(t)),t.src=e}else n?window.open(e,n):window.location.href=e}async performAuthentication(e,t){return this.purpleRef.app.performAuthentication({url:e,callbackParamName:t||"callbackurl"})}addConnectionStateListener(e){this.purpleRef.app.addConnectionStateListener(e)}removeConnectionStateListener(e){this.purpleRef.app.removeConnectionStateListener(e)}addLifecycleListener(e){this.purpleRef.app.addLifecycleListener(e)}removeLifecycleListener(e){this.purpleRef.app.removeLifecycleListener(e)}async getDisplayMode(){return(await this.purpleRef.appBrowser.getDisplayConfig()).displayMode}async isTitleBarEnabled(){return(await this.purpleRef.appBrowser.getDisplayConfig()).titleBarEnabled}overrideBookmarkApis(e){this.purpleRef.bookmark.createBookmark=async t=>{const n={...t,id:h$(),contentType:FM.CatalogContentType.ISSUE,createdAt:Date.now(),contentId:t.issueId,issueId:t.issueId,issueType:void 0,sharingEnabled:t.sharingEnabled,customData:{...t.customData}},r=(await this.purpleRef.bookmark.getBookmarks()).bookmarks;return r.push(n),await this.setState(`bookmarks-${e.appId}`,JSON.stringify(r)),{bookmark:n}},this.purpleRef.bookmark.getBookmarks=async()=>({bookmarks:JSON.parse(await this.getState(`bookmarks-${e.appId}`))||[]}),this.purpleRef.bookmark.deleteBookmark=async({id:t})=>{const n=(await this.purpleRef.bookmark.getBookmarks()).bookmarks.filter((e=>e.id!==t));await this.setState(`bookmarks-${e.appId}`,JSON.stringify(n))}}async getBookmarks(){return HM(this.bookmarks$)}async updateBookmarks(){const e=(await this.purpleRef.bookmark.getBookmarks()).bookmarks;return this.bookmarksSubject.next(e),e}async createBookmark(e){const t=await this.purpleRef.bookmark.createBookmark(e);return await this.updateBookmarks(),t}async deleteBookmark(e){await this.purpleRef.bookmark.deleteBookmark(e),await this.updateBookmarks()}async deleteBookmarks(e){for(const t of e)await this.purpleRef.bookmark.deleteBookmark({id:t});await this.updateBookmarks()}overrideCatalogApis(){this.purpleRef.catalog.getSubscriptions=async e=>FJ,this.purpleRef.catalog.getPublicationProducts=async e=>FJ}async getPublications(e,t=!1){return this.withApiCache("getPublications",this.purpleRef.catalog.getPublications,e,t,(t=>{t.forEach((t=>{this.cacheService.PURPLE_PUBLICATION_CACHE[t.id]=this.cacheService.setOptionalCache(t,"getPublications",e)})),this.cacheService.updateTransferStateAndStorage([xJ.PURPLE_PUBLICATION_CACHE,xJ.PURPLE_CONTENT_CACHE,xJ.PURPLE_OPTIONAL_CACHE])}))}async getIssues(e,t=!1,n=!1){const r=wP(e);return n&&(r.fetchOptions={includeResources:!0}),this.withApiCache("getContents",this.purpleRef.catalog.getContents,r,t,(e=>{e.forEach((e=>this.cacheService.PURPLE_CONTENT_CACHE[e.id]=this.cacheService.setOptionalCache(e))),this.cacheService.updateTransferStateAndStorage([xJ.PURPLE_CONTENT_CACHE,xJ.PURPLE_OPTIONAL_CACHE])}))}async getLocalIssues(e,t=!1,n){const r=(await this.purpleRef.catalog.getLocalIssues()).issues.filter((e=>n?e.state.installState===n:e.state.installState!==FM.ContentInstallState.NOT_INSTALLED));let i=[];if(!r.length)return{issues:i};try{if(t){for(const e of r){let t={};try{t=await this.getIssueFromCache(e.id)}catch(e){}i.push({...qJ,...e,...t})}e.issueFilter&&(i=i.filter((t=>cP(e.issueFilter,t))))}else{const t={...e,issueFilter:GJ(r.map((e=>e.id)),e.issueFilter)};i=(await this.getIssues(t,!0)).nodes}}catch(t){const n=await Promise.all(r.map((async(e,t)=>{let n=qJ;try{n={...n,...await this.getIssue(e.id).catch((()=>null))}}catch(e){console.error(e)}const r={...n,...e};return this.cacheService.PURPLE_CONTENT_CACHE[e.id]||(this.cacheService.PURPLE_CONTENT_CACHE[e.id]=r),r})));i=n.filter((t=>cP(e.issueFilter,t)))}return i=i.sort(mP(e.sort??[])),i.forEach((e=>{const t=r.find((t=>t.id===e.id&&t.version===e.version));t&&(e.state=t.state)})),{issues:i}}async getCatalogContents(e,t=!1){return this.withApiCache("getContents",this.purpleRef.catalog.getContents||this.purpleRef.catalog.getIssues,e,t,(t=>{t.forEach((t=>{this.cacheService.PURPLE_CONTENT_CACHE[t.id]=this.cacheService.setOptionalCache(t,"getContents",e)})),this.cacheService.updateTransferStateAndStorage([xJ.PURPLE_CONTENT_CACHE,xJ.PURPLE_OPTIONAL_CACHE])}))}async completePost(e,t){const n={includeResources:"resources",includeBlocks:"content",includeHtml:"contentHtml",includeBundledContent:"contents",seoMetadata:"seoMetadata"},r=this.cacheService.PURPLE_OPTIONAL_CACHE[e.id];if(Object.entries(n).some((([n,i])=>t[n]&&!e[i]&&!r?.[i]))||r?.version!==e?.version)return await this.getCatalogContent(e.id,!0,t);let i={...e,...r.downloadedBy?{downloadedBy:r.downloadedBy}:{}};for(let[e,t]of Object.entries(n))e&&(i[t]=r[t]);return i}async getOptionalData(e,t,n){if((0,JM.mF)(e))return await this.completePost(e,t);if((0,JM.G4)(e)){const r=(0,JM.Ig)(e);return await this.completePost(r[n],t)}throw new Error(`Invalid content type for getOptionalData: ${e.contentType}`)}async getCollections(e,t=!1){return this.withApiCache("getCollections",this.purpleRef.catalog.getCollections,e,t,(t=>{t.forEach((t=>this.cacheService.PURPLE_COLLECTION_CACHE[t.id]=this.cacheService.setOptionalCache(t,"getCollections",e))),this.cacheService.updateTransferStateAndStorage([xJ.PURPLE_COLLECTION_CACHE,xJ.PURPLE_OPTIONAL_CACHE])}))}async getCategories(e,t=!1){return this.withApiCache("getCategories",this.purpleRef.catalog.getCategories,e,t,(e=>{e.forEach((e=>this.cacheService.PURPLE_TAXONOMY_CACHE[e.id]=e)),this.cacheService.updateTransferStateAndStorage(xJ.PURPLE_TAXONOMY_CACHE)}))}async getTaxonomies(e,t=!1){return this.withApiCache("getTaxonomies",this.purpleRef.catalog.getTaxonomies,e,t,(t=>{t.forEach((t=>{this.cacheService.PURPLE_TAXONOMY_CACHE[this.cacheService.getTaxonomyCacheKey(t)]=this.cacheService.setOptionalCache(t,"getTaxonomies",e)})),this.cacheService.updateTransferStateAndStorage([xJ.PURPLE_TAXONOMY_CACHE,xJ.PURPLE_OPTIONAL_CACHE])}))}async getMenus(e,t=!1){return this.withApiCache("getMenus",this.purpleRef.catalog.getMenus,e,t,(e=>{e.forEach((e=>{this.cacheService.PURPLE_MENU_CACHE[e.id]=e})),this.cacheService.updateTransferStateAndStorage(xJ.PURPLE_MENU_CACHE)}))}async getSubscriptions(e){return this.purpleRef.catalog.getSubscriptions(e)}async getCatalogAppSettings(e){return this.purpleRef.catalog.getAppSettings(e)}async search(e){return this.purpleRef.catalog.search(e).then((e=>(e.nodes.forEach((e=>{const t=(0,JM.tr)(e);this.cacheService.PURPLE_CONTENT_CACHE[t.id]=t})),this.cacheService.updateTransferStateAndStorage(xJ.PURPLE_CONTENT_CACHE),e)))}async getIssueStates(e){return this.purpleRef.catalog.getIssueStates(e)}addInvalidationListener(e){this.isCatalogAPIAvailable()&&this.purpleRef.catalog.addInvalidationListener(e)}removeInvalidationListener(e){this.purpleRef.catalog.removeInvalidationListener(e)}addIssueStateListener=(e,t)=>this.purpleRef.catalog.addIssueStateListener(e,t);removeIssueStateListener=(e,t)=>this.purpleRef.catalog.removeIssueStateListener(e,t);async getPublicationProducts(e){return this.purpleRef.catalog.getPublicationProducts(e).then((e=>e.nodes))}async getCatalogMetadata(){return this.purpleRef.catalog.getMetadata()}async getProducts(e){return this.purpleRef.catalog.getProducts({productId:e})}async getRedirects(e){return this.withApiCache("getRedirects",this.purpleRef.catalog.getRedirects,e,!1,(e=>{e.forEach((e=>{this.cacheService.PURPLE_REDIRECT_CACHE[e.id]=e})),this.cacheService.updateTransferStateAndStorage(xJ.PURPLE_REDIRECT_CACHE)}))}async lookupPathSegments(e){return this.withApiCache("lookupPathSegments",this.purpleRef.catalog.lookupPathSegments,{pathSegments:e},!1,(e=>{e.forEach((e=>{this.cacheService.PURPLE_PATH_SEGMENT_CACHE[e.identifier]=e})),this.cacheService.updateTransferStateAndStorage(xJ.PURPLE_PATH_SEGMENT_CACHE)}))}isCatalogAPIAvailable(){return!!this.purpleRef.catalog}overrideConsentApis(){const e=this.injector.get(Q$);this.purpleRef.consent.getConsent=async t=>(await e.init$,e.getConsent(t)),this.purpleRef.consent.grantConsent=async t=>{await e.init$,e.grantConsent(t)},this.purpleRef.consent.showPrivacyManager=async()=>(await e.init$,e.showPrivacyManager())}overrideContentOpenApi(e,t){this.purpleRef.content.open=async n=>{let r=!1;const i={OR:n.issueIds.map((e=>({id:{value:e}})))},o=(await this.getIssues({issueFilter:i})).nodes||[];if(!o.length)throw{code:"NO_ISSUES_FOUND"};const s=new Map;if(n.issueIds.forEach((e=>{const t=o.filter((t=>t.id===e));if(t.length>0){const n=t[0];n.access==FM.Access.FREE||n.purchaseData.purchased||(r=!0),s.set(e,n)}})),0===s.size)throw{code:"PAYMENT_REQUIRED"};const a=[];s.forEach(((e,t)=>{const n={id:t,name:e.name,publication:e.publication};a.push(n)}));const c=Math.max(a.findIndex((e=>e.id===n.initialIssue?.id)),0);this.issuePagerInfo={visibleIndex:c,currentIndex:c,issues:a,displayConfig:n.config},this.setIssuePagerInfo(this.issuePagerInfo);const u=a[c].id,l=n.initialIssue?.initialPage,d={};l&&(l.id?d.actionUrl=`purple://kiosk/issue/current/page/${l.id}/open`:l.index?d.actionUrl=`purple://kiosk/issue/current/page/index/${l.index}/open`:l.alias&&(d.actionUrl=`purple://kiosk/issue/current/page/alias/${l.alias}/open`)),n.config?.titleBar||(d.titleBar="false"),r&&(d.customerPreview=r);let p=[e.brand,"presenter",u];e.useCustomerDomain&&(p=["presenter",u]),t.navigate(p,{queryParams:d,queryParamsHandling:"merge"})}}async openContent(e){return new Promise(((t,n)=>{this.purpleRef.content.open(e).then((e=>t(e)),(e=>n(e)))}))}overrideCloseViewJsApi(){this.purpleRef.closeView=()=>{PP.InternalBrowser.stop()}}closeView(){this.purpleRef.closeView()}async getEntitlementUserData(){return this.purpleRef.entitlement.getUserData()}async login(e,t,n){const r={};if(e&&(r.username=e,r.password=t),this.purpleEnv.isUniversal){let e=n?.redirectUrl||JSON.parse(sessionStorage.getItem(FM.LAST_VISITED_PATH)).lastVisitedPath;e||(e=this.injector.get(i$).getHomeUrl());const t={redirectUrl:e};r.state=t}return this.purpleRef.entitlement.login(r)}async logout(e){const t={};if(this.purpleEnv.isUniversal){let n=e?.redirectUrl;n||(n=this.injector.get(i$).getHomeUrl());const r={redirectUrl:n};t.state=r}return this.purpleRef.entitlement.logout(t)}async checkForOauthEntitlement(){return await this.purpleRef.entitlement.checkForOauthEntitlement()}async loginWithToken(e){await this.purpleRef.entitlement.verifyAccessToken({accessToken:e})}async getMetadata(e){return this.purpleRef.metadata.getMetadata({keys:Object.values(FM.METADATA_KEY)})}share=e=>this.purpleRef.share.share(e);overrideStateApi(){this.purpleRef.state.version={major:2,minor:0}}async getState(e){return(await this.purpleRef.state.getState({key:e})).value}async setState(e,t){await this.purpleRef.state.setState({key:e,value:t})}async purchase(e){return this.purpleRef.store.purchase(e)}async subscribe(e,t,n){let r;if(t){const e=(await this.getSubscriptions({})).nodes.find((e=>e.purchased));r=e&&{oldProductId:e.productId,prorationMode:t}}return this.purpleRef.store.subscribe({productId:e,replaceProductParams:r,offerId:n})}async restorePurchases(){return this.purpleRef.store.restorePurchases()}async getPrice(e){return this.purpleRef.store.getPrices({productIds:[e]}).then((e=>e.priceInfos[0]))}async addSubscriptionCode(e){return this.purpleRef.store.addSubscriptionCode({code:e})}async removeSubscriptionCode(e){return this.purpleRef.store.removeSubscriptionCode({code:e})}async getSubscriptionCodes(){return(await this.purpleRef.store.getSubscriptionCodes()).subscriptionCodes}async getPrices(e){return this.purpleRef.store.getPrices({productIds:e})}async overrideTrackingApis(e){this.overrideLegacyTrackingApis(this.purpleRef,e),this.purpleRef.tracking.setUserAttribute=async t=>{e.setUserAttribute(t)},this.purpleRef.tracking.debug=async t=>{e.toggleLogging(t.logging)}}overrideLegacyTrackingApis(e,t){e.tracking.trackView=async(e,n)=>{"string"==typeof e?e={key:e,optionalParams:n}:n=e.optionalParams,t.sendView(e.key,n)},e.tracking.trackAction=async(e,n)=>{"string"==typeof e?e={key:e,optionalParams:n}:n=e.optionalParams,t.sendEvent(e.key,n)},e.tracking.trackPurchase=async(e,n)=>{"string"==typeof e?e={key:e,optionalParams:n}:n=e.optionalParams,t.sendPurchase(e.key,n)}}async trackAction(e,t){const n={key:ZJ(e),optionalParams:JJ(t||{})};return this.purpleRef.tracking.trackAction(n)}async trackView(e,t){const n={key:ZJ(e),optionalParams:JJ(t||{})};return this.purpleRef.tracking.trackView(n)}async trackPurchase(e){return e.key=ZJ(e.key),e.optionalParams&&(e.optionalParams=JJ(e.optionalParams)),this.purpleRef.tracking.trackPurchase(e)}async setUserAttribute(e){return e.key=ZJ(e.key),this.purpleRef.tracking.setUserAttribute(e)}async initCache(){const[e]=await Promise.all([this.getState(UJ),this.updateBookmarks(),this.updateRepeatablePublicationProducts()]);jJ===e?await this.cacheService.restoreCachesFromStorage():(console.debug(`Cache version: ${e}, Experience version: ${jJ}: ignoring cache`),this.setState(UJ,jJ))}extractIdsFromApiResponse(e,t){if(!e)return[];switch(t){case"lookupPathSegments":return e.map((e=>e.identifier))||[];case"getTaxonomies":return e.nodes?.map((e=>this.cacheService.getTaxonomyCacheKey(e)))||[];default:return e.nodes?.map((e=>e.id))||[]}}removeDownloadedByIdFromFetchOptions(e){const t={...e?.fetchOptions},n=t?.downloadedById;n&&delete t.downloadedById;const r={...e};return Object.keys(t).length>0?r.fetchOptions=t:delete r.fetchOptions,{modifiedParams:r,downloadedById:n}}async withApiCache(e,t,n,r=!1,i){let{modifiedParams:o,downloadedById:s}=this.removeDownloadedByIdFromFetchOptions(n);const a=`${e}:${JSON.stringify(o)}`;let c;if(this.implUsedDirectly&&(c=Zone.current.scheduleMacroTask(a,(()=>{}),{},(()=>{}),(()=>{}))),!r&&this.cacheService.PURPLE_API_CACHE[a]){c&&c.invoke();const t=this.cacheService.getResponseOrFalseFromCache(e,o);return t?Promise.resolve({...this.cacheService.PURPLE_API_CACHE[a],nodes:[t]}):Promise.resolve(this.cacheService.getApiCache(e,o))}return t(o).then((t=>{const n=Date.now(),r=this.extractIdsFromApiResponse(t,e);if(this.cacheService.PURPLE_API_CACHE[a]={..."lookupPathSegments"!==e&&{...t},...s&&{downloadedById:s},timestamp:n,nodes:r},c?.invoke(),i){const n="lookupPathSegments"!==e?t.nodes:t;i(n)}return t})).catch((t=>{throw c?.invoke(),`Error [withApiCache] [${e}]: ${t}`}))}getPublicationsFromCache(e){return this.cacheService.getApiCache("getPublications",e)}getIssuesFromCache(e){const t=wP(e);return this.cacheService.getApiCache("getContents",t)}getCatalogContentsFromCache(e){return this.cacheService.getApiCache("getContents",e)}getCollectionsFromCache(e){return this.cacheService.getApiCache("getCollections",e)}getCategoriesFromCache(e){return this.cacheService.getApiCache("getCategories",e)}getTaxonomiesFromCache(e){return this.cacheService.getApiCache("getTaxonomies",e)}getCatalogMenusFromCache(e){return this.cacheService.getApiCache("getMenus",e)}async getIssue(e,t=!1,n){try{const n={first:1};return e&&(n.issueFilter={id:{value:e}}),(await this.getIssues(n,t)).nodes[0]}catch(t){if(this.cacheService.PURPLE_CONTENT_CACHE[e])return this.cacheService.PURPLE_OPTIONAL_CACHE[e]?{...this.cacheService.PURPLE_CONTENT_CACHE[e],...this.cacheService.PURPLE_OPTIONAL_CACHE[e]}:this.cacheService.PURPLE_CONTENT_CACHE[e];if(n){const t={...qJ,...n};return this.cacheService.PURPLE_CONTENT_CACHE[e]=t,t}throw t}}getIssueFromCache(e){if(this.cacheService.PURPLE_CONTENT_CACHE[e])return this.cacheService.PURPLE_CONTENT_CACHE[e];{const t=this.getIssuesFromCache({first:1,issueFilter:{id:{value:e}}});return{...t.then((e=>e.nodes[0])),timestamp:t.timestamp}}}async getCatalogContent(e,t=!1,n){const r={first:1,fetchOptions:n,contentFilter:{id:{value:e}}};try{const e=(await this.getCatalogContents(r,t)).nodes[0];if(e)return e}catch(e){console.error(e)}throw new Error("CatalogContent not found")}async getCollection(e,t=!1,n){try{if(this.cacheService.PURPLE_COLLECTION_CACHE[e]&&!t)return this.cacheService.PURPLE_COLLECTION_CACHE[e];{const r={first:1};e&&(r.collectionFilter={id:{value:e}}),n&&(r.elementsParams=n);const i=(await this.getCollections(r,t)).nodes[0];if(!i)throw new Error(`Collection ${e} not found`);return i}}catch(t){if(this.cacheService.PURPLE_COLLECTION_CACHE[e])return this.cacheService.PURPLE_COLLECTION_CACHE[e];throw t}}getCollectionFromCache(e){if(this.cacheService.PURPLE_COLLECTION_CACHE[e])return this.cacheService.PURPLE_COLLECTION_CACHE[e];{const t=this.getCollectionsFromCache({first:1,collectionFilter:{id:{value:e}}});return{...t.then((e=>e.nodes[0])),timestamp:t.timestamp}}}async getMenu(e,t=!1,n){try{if(this.cacheService.PURPLE_MENU_CACHE[e]&&!t)return this.cacheService.PURPLE_MENU_CACHE[e];{const r={first:1,...n};e&&(r.contentFilter={id:{value:e}});const i=(await this.getMenus(r,t)).nodes[0];if(!i)throw new Error("CatalogMenu not found");return i}}catch(t){if(this.cacheService.PURPLE_MENU_CACHE[e])return this.cacheService.PURPLE_MENU_CACHE[e];throw t}}getCatalogMenuFromCache(e){if(this.cacheService.PURPLE_MENU_CACHE[e])return this.cacheService.PURPLE_MENU_CACHE[e];{const t=this.getCatalogMenusFromCache({first:1,issueFilter:{id:{value:e}}});return{...t.then((e=>e.nodes[0])),timestamp:t.timestamp}}}async getPublication(e,t=!1){if(this.cacheService.PURPLE_PUBLICATION_CACHE[e]&&!t)return this.cacheService.PURPLE_PUBLICATION_CACHE[e];{const n={first:1};return n.publicationFilter={id:{value:e}},(await this.getPublications(n,t)).nodes[0]}}getPublicationFromCache(e){if(this.cacheService.PURPLE_PUBLICATION_CACHE[e])return this.cacheService.PURPLE_PUBLICATION_CACHE[e];{const t=this.getPublicationsFromCache({first:1,publicationFilter:{id:{value:e}}});return{...t.then((e=>e.nodes[0])),timestamp:t.timestamp}}}async getCategory(e,t=!1){if(this.cacheService.PURPLE_TAXONOMY_CACHE[e])return this.cacheService.PURPLE_TAXONOMY_CACHE[e];{const n={first:1};return e&&(n.categoryFilter={id:{value:e}}),(await this.getCategories(n,t)).nodes[0]}}async getTaxonomy(e,t,n=!1,r){const i={id:{value:e}},o={first:1,fetchOptions:r,taxonomyFilter:t?{AND:[i,{type:{value:t}}]}:i};return(await this.getTaxonomies(o,n)).nodes[0]}initServerPlatform(e,t,n,r,i,o,s){s.loadConfig(),this.initPurpleRef(o,t),this.implUsedDirectly=!0,this.overrideJsApisForServer(e,t,n,r,i),window.purple=this.purpleRef}initPurpleRef(e,t){const n=Object.values(TP);this.purpleRef=new PJ(t,((t,r)=>{this.updateEntitlementStorage(n,"entitlementUserData",r,t),this.updateSubscriptionCodeStorage(r,t),e.updateMetadata()}))}updateEntitlementStorage(e,t,n,r){if(e.includes(n)){const e=JSON.parse(localStorage.getItem(t))||{};e[n]=r[n],localStorage.setItem(t,JSON.stringify(e))}}updateSubscriptionCodeStorage(e,t){if("subscriptionCodes"===e){const e=t.subscriptionCodes||[];localStorage.setItem("subscriptionCodes",JSON.stringify(e))}}overrideJsApisForServer(e,t,n,r,i){this.overrideAppPerformActionUrlApi(r),this.overrideBookmarkApis(t),this.overrideCatalogApis(),this.overrideConsentApis(),this.overrideContentOpenApi(e,n),this.overrideTrackingApis(i),this.overrideCloseViewJsApi(),this.overrideStateApi()}initAppPlatform(){this.purpleRef=window.purple}initPurpleExperience(e,t){this.purpleRef.experience=new g$(this.injector),this.purpleRef.experience.global=t.getGlobalData(),this.purpleRef.experience.appWebConfig=e}subscribeToConfigLoaderService(e){e.getConfig().pipe(YM()).subscribe((e=>{this._downloadOptions=e[ZM.O.DOWNLOAD_OPTIONS]||{},window.isIssueLocked&&(this.isContentLocked=window.isIssueLocked)}))}initListeners(){this.addInvalidationListener((()=>this.invalidate()));let e=!0;this.addLifecycleListener((t=>{e||window.dispatchEvent(new CustomEvent("storefront-lifecycle",{detail:t})),e=!1})),this.addConnectionStateListener((e=>{this.connectionStateSubject.next(e)}))}};VJ=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([wc({providedIn:"root"}),LJ(0,wr(vl)),LJ(3,wr(eX))],VJ);class $J{static injector}var BJ=n(8617);async function HJ(e,t,n=e=>Promise.resolve(!e.purchaseData.purchased),r=null,i=!0,o){let s,a,c;if(o||(o=$J.injector.get(VJ)),Array.isArray(e)?a=e.filter((e=>!!e)):s=e,a?c=a.map((e=>e.issue||e)):s?(r?(c=[s.content],c.length&&function(e,t,n){const r=e.getIssues(!0);return e.issue?.id!==t.id&&!r.find((e=>e.id===t.id))||!!r.find((e=>n[e.id]&&!jM()(e,n[e.id])))}(s,t,r)&&(c=[s.content])):c=[s.content],c=c.filter((e=>e.type!==FM.IssueType.ISSUE))):c=[],c.length){const e=[];for(const t of c)await n(t,o)&&t.previewIssue?e.push(t.previewIssue.id):e.push(t.id);return e}return[await n(t,o)&&t.previewIssue?t.previewIssue.id:t.id]}function GJ(e,t){let n;const r={OR:e.map((e=>({id:{value:e}})))};return n=t?{AND:[r,t]}:r,n}const qJ={contentType:FM.CatalogContentType.ISSUE,id:null,name:null,index:null,description:null,version:null,state:null,type:null,publicationId:null,comingSoon:null,purchasable:void 0,purchased:void 0,access:FM.Access.PURCHASABLE,purchasedBy:null,properties:{},numberOfPages:null,contentLength:null,publicationDate:null,lastModified:null,thumbnails:{default:null},thumbnailsExtended:{},tags:[],categories:[],purchaseData:{purchased:void 0,purchasedBy:[]}};function zJ(e,t,n){const r=e.version;switch(n){case FM.IntOperation.EQUAL:return r.major===t.major&&r.minor===t.minor;case FM.IntOperation.LESS_THAN:return r.major<t.major||r.major===t.major&&r.minor<t.minor;case FM.IntOperation.GREATER_THAN:return r.major>t.major||r.major===t.major&&r.minor>t.minor}}function WJ(e,t,n,r=""){return(0,JM.xl)(e)?function(e,t,n,r=""){let i=e?{[r+"ISSUE_ID"]:e.id,[r+"ISSUE_NAME"]:e.name,[r+"ISSUE_TYPE"]:e.type,[r+"ISSUE_CATEGORIES"]:e.categories&&e.categories.join(","),[r+"ISSUE_TAGS"]:e.tags&&e.tags.join(","),[r+"ISSUE_PRODUCT_ID"]:e.productId,[r+"ISSUE_PURCHASABLE"]:"boolean"==typeof e.purchasable?e.purchasable.toString():e.purchasable,[r+"ISSUE_PURCHASED"]:"boolean"==typeof e.purchased?e.purchased.toString():e.purchased,...e.properties?Object.keys(e.properties).reduce(((t,n)=>({...t,[`${r}ISSUE_PROPERTY_${ZJ(n)}`]:e.properties[n]})),{}):{}}:{};return n&&(i={...i,[r+"ISSUE_PRICE"]:n.formattedPrice,[r+"ISSUE_PRICE_VALUE"]:n.price.toString(),[r+"ISSUE_PRICE_CURRENCY"]:n.currency}),t&&(i={...i,...QJ(t,r),[r+"ISSUE_LATEST"]:t.currentIssueId===e.id?"true":"false"}),i}(e,t,n,r):{}}function KJ(e,t){let n=e?{ISSUE_TYPE:e.type,ISSUE_CATEGORIES:e.categories&&e.categories.join(","),ISSUE_TAGS:e.tags&&e.tags.join(","),ISSUE_PRODUCT_ID:e.productId,ISSUE_PURCHASABLE:"boolean"==typeof e.purchasable?e.purchasable.toString():e.purchasable,ISSUE_PURCHASED:"boolean"==typeof e.purchased?e.purchased.toString():e.purchased}:{};return t&&(n={...n,...YJ(t),ISSUE_LATEST:t.currentIssueId===e.id?"true":"false"}),n}function QJ(e,t=""){return e?{[t+"PUBLICATION_ID"]:e.id,[t+"PUBLICATION_NAME"]:e.name,[t+"PUBLICATION_TYPE"]:e.type,...e.properties?Object.keys(e.properties).reduce(((n,r)=>({...n,[`${t}PUBLICATION_PROPERTY_${ZJ(r)}`]:e.properties[r]})),{}):{}}:{}}function YJ(e){return e?{PUBLICATION_TYPE:e.type}:{}}function ZJ(e){return e.toUpperCase().replace(/-/g,"_")}function JJ(e){return Object.keys(e).reduce(((t,n)=>((e[n]||"boolean"==typeof e[n])&&(t[ZJ(n)]=e[n]),t)),{})}function XJ(e){return Object.values([BJ.r.ISSUE_ARTICLE,BJ.r.READ_MODE_ARTICLE]).includes(e)}FM.Access.PURCHASABLE;const eX=new Ln("PurpleEnvironment"),tX=(new Ln("Location"),new Ln("APP_DATA")),nX=new Ln("PXP_CONFIG");new Ln("PurpleEnvironmentServer"),new Ln("APP_DATA_SERVER"),new Ln("PXP_CONFIG_SERVER"),new Ln("PXP_CONFIG_APP")},4620:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function i(e={},t={}){Object.keys(t).forEach((n=>{void 0===e[n]?e[n]=t[n]:r(t[n])&&r(e[n])&&Object.keys(t[n]).length>0&&i(e[n],t[n])}))}n.d(t,{YE:()=>s,zk:()=>c});const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function s(){const e="undefined"!=typeof document?document:{};return i(e,o),e}const a={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function c(){const e="undefined"!=typeof window?window:{};return i(e,a),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nc=void 0;var __webpack_exports__={};(()=>{"use strict";const e={oval:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(1 1)" stroke-width="2">\n <circle stroke-opacity=".5" cx="18" cy="18" r="18"/>\n <path d="M36 18c0-9.94-8.06-18-18-18">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="1s"\n repeatCount="indefinite"/>\n </path>\n </g>\n </g>\n</svg>\n',puff:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n <g fill="none" fill-rule="evenodd" stroke-width="2">\n <circle cx="22" cy="22" r="1">\n <animate attributeName="r"\n begin="0s" dur="1.8s"\n values="1; 20"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.165, 0.84, 0.44, 1"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="0s" dur="1.8s"\n values="1; 0"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.3, 0.61, 0.355, 1"\n repeatCount="indefinite" />\n </circle>\n <circle cx="22" cy="22" r="1">\n <animate attributeName="r"\n begin="-0.9s" dur="1.8s"\n values="1; 20"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.165, 0.84, 0.44, 1"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="-0.9s" dur="1.8s"\n values="1; 0"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.3, 0.61, 0.355, 1"\n repeatCount="indefinite" />\n </circle>\n </g>\n</svg>\n',rings:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n <g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2">\n <circle cx="22" cy="22" r="6" stroke-opacity="0">\n <animate attributeName="r"\n begin="1.5s" dur="3s"\n values="6;22"\n calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="1.5s" dur="3s"\n values="1;0" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-width"\n begin="1.5s" dur="3s"\n values="2;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="22" cy="22" r="6" stroke-opacity="0">\n <animate attributeName="r"\n begin="3s" dur="3s"\n values="6;22"\n calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="3s" dur="3s"\n values="1;0" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-width"\n begin="3s" dur="3s"\n values="2;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="22" cy="22" r="8">\n <animate attributeName="r"\n begin="0s" dur="1.5s"\n values="6;1;2;3;4;5;6"\n calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n </g>\n</svg>\n',spinningCircles:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 58 58" xmlns="http://www.w3.org/2000/svg">\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(2 1)" stroke="#FFF" stroke-width="1.5">\n <circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="1;0;0;0;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;1;0;0;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;1;0;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;1;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;1;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;0;1;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;0;0;1;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="27" cy="5" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;0;0;0;1" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n </g>\n </g>\n</svg>\n',tail:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg">\n <defs>\n <linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="$id">\n <stop stop-color="#fff" stop-opacity="0" offset="0%"/>\n <stop stop-color="#fff" stop-opacity=".631" offset="63.146%"/>\n <stop stop-color="#fff" offset="100%"/>\n </linearGradient>\n </defs>\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(1 1)">\n <path d="M36 18c0-9.94-8.06-18-18-18" id="Oval-2" stroke="url(#$id)" stroke-width="2">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="0.9s"\n repeatCount="indefinite"/>\n </path>\n <circle fill="#fff" cx="36" cy="18" r="1">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="0.9s"\n repeatCount="indefinite"/>\n </circle>\n </g>\n </g>\n</svg>\n',dots:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="#fff">\n <circle cx="15" cy="15" r="15">\n <animate attributeName="r" from="15" to="15"\n begin="0s" dur="0.8s"\n values="15;9;15" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="fill-opacity" from="1" to="1"\n begin="0s" dur="0.8s"\n values="1;.5;1" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="60" cy="15" r="9" fill-opacity="0.3">\n <animate attributeName="r" from="9" to="9"\n begin="0s" dur="0.8s"\n values="9;15;9" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="fill-opacity" from="0.5" to="0.5"\n begin="0s" dur="0.8s"\n values=".5;1;.5" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="105" cy="15" r="15">\n <animate attributeName="r" from="15" to="15"\n begin="0s" dur="0.8s"\n values="15;9;15" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="fill-opacity" from="1" to="1"\n begin="0s" dur="0.8s"\n values="1;.5;1" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n</svg>\n',segments:'<?xml version="1.0" encoding="utf-8"?>\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 2400 2400" xml:space="preserve" width="24" height="24">\n <g stroke-width="200" stroke-linecap="round" stroke="#000000" fill="none" id="spinner">\n <line x1="1200" y1="600" x2="1200" y2="100"/>\n <line opacity="0.5" x1="1200" y1="2300" x2="1200" y2="1800"/>\n <line opacity="0.917" x1="900" y1="680.4" x2="650" y2="247.4"/>\n <line opacity="0.417" x1="1750" y1="2152.6" x2="1500" y2="1719.6"/>\n <line opacity="0.833" x1="680.4" y1="900" x2="247.4" y2="650"/>\n <line opacity="0.333" x1="2152.6" y1="1750" x2="1719.6" y2="1500"/>\n <line opacity="0.75" x1="600" y1="1200" x2="100" y2="1200"/>\n <line opacity="0.25" x1="2300" y1="1200" x2="1800" y2="1200"/>\n <line opacity="0.667" x1="680.4" y1="1500" x2="247.4" y2="1750"/>\n <line opacity="0.167" x1="2152.6" y1="650" x2="1719.6" y2="900"/>\n <line opacity="0.583" x1="900" y1="1719.6" x2="650" y2="2152.6"/>\n <line opacity="0.083" x1="1750" y1="247.4" x2="1500" y2="680.4"/>\n <animateTransform attributeName="transform"\n attributeType="XML"\n type="rotate"\n keyTimes="0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667"\n values="0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199"\n dur="0.83333s"\n begin="0s"\n repeatCount="indefinite"\n calcMode="discrete" />\n </g>\n</svg>\n\n'};var t,n,r=__webpack_require__(4409);!function(e){e.NONE="none",e.HIDE="hide",e.SHRINK="shrink"}(t||(t={})),function(e){e.BACK="back",e.MENU="menu"}(n||(n={})),t.SHRINK,n.MENU;const i={CONTENT_TITLE:"%s",CONTENT_DESCRIPTION:"%s",CONTENT_PUBLICATION_TITLE:"%s",CONTENT_ACTION_PURCHASE:"Purchase for %s",CONTENT_ACTION_PURCHASE_LOADING:"Loading price...",CONTENT_ACTION_PURCHASE_UNAVAILABLE:"Price not available",CONTENT_ERROR:"Error loading content data",CONTENT_ERROR_BUTTON:"Try again",CONTENT_UPDATE_BADGE_MESSAGE:"Update available",CONTENT_DESCRIPTION_TOGGLE_COLLAPSE:"Show less",CONTENT_DESCRIPTION_TOGGLE_EXPAND:"Show more",CONTENT_ACTION_READ:"Read",CONTENT_ACTION_SUBSCRIBE:"Subscribe",CONTENT_ACTION_COUPON:"Coupon",CONTENT_ACTION_LOGIN:"Login",ISSUE_DESCRIPTION_TOGGLE_EXPAND:"Show more",ISSUE_DESCRIPTION_TOGGLE_COLLAPSE:"Show less",ISSUE_ACTION_READ:"Read",ISSUE_ACTION_PURCHASE:"Purchase for %s",ISSUE_ACTION_PURCHASE_LOADING:"Loading price...",ISSUE_ACTION_PURCHASE_UNAVAILABLE:"Price not available",ISSUE_ACTION_DOWNLOAD:"Download",ISSUE_ACTION_PREVIEW:"Preview",ISSUE_ACTION_SUBSCRIBE:"Subscribe",ISSUE_ACTION_DOWNLOADING:"Downloading...",ISSUE_ACTION_DELETE:"Delete",ISSUE_ACTION_LOGIN:"Login",ISSUE_ACTION_CANCEL:"Cancel",ISSUE_ACTION_COUPON:"Coupon",ISSUE_ERROR:"Error loading issue data",ISSUE_ERROR_BUTTON:"Try again",ISSUE_DOWNLOAD_CONFIRM_TITLE:"Download issue",ISSUE_DOWNLOAD_CONFIRM_MESSAGE:'Do you want to download "%(content.name)s"?',ISSUE_DOWNLOAD_CONFIRM_OK:"OK",ISSUE_DOWNLOAD_CONFIRM_CANCEL:"Cancel",ISSUE_TITLE:"%s",ISSUE_DESCRIPTION:"%s",ISSUE_PUBLICATION_TITLE:"%s",ISSUE_DELETE_TITLE:"Delete issue",ISSUE_DELETE_MESSAGE:'Do you really want to delete the issue %s"?',ISSUE_DELETE_CONFIRM:"Delete",ISSUE_DELETE_CANCEL:"Cancel",ISSUE_UPDATE_BADGE_MESSAGE:"Update available",ISSUE_UPDATE_TITLE:"Update available",ISSUE_UPDATE_MESSAGE:'A new version of this issue "%s" is available. Would you like to read the old version or the new one?',ISSUE_UPDATE_NEW_VERSION:"Read new version",ISSUE_UPDATE_OLD_VERSION:"Read old version",PUBLICATION_TITLE:"%s",PUBLICATION_DESCRIPTION:"%s",PUBLICATION_ISSUES_PER_YEAR:"<strong>%s issues</strong> published per year",PUBLICATION_CONTENTS_PER_YEAR:"<strong>%s contents</strong> published per year",PUBLICATION_SUBSCRIPTIONS_TITLE:"Store Subscriptions",PUBLICATION_SUBSCRIPTIONS_HEADER:"Introduction text regarding subscriptions",PUBLICATION_SUBSCRIPTIONS_FOOTER:"<strong>Terms of use</strong> Terms of use go here",PUBLICATION_SUBSCRIPTIONS_RESTORE_PURCHASES:"Restore Purchases",PUBLICATION_SUBSCRIPTIONS_MANAGE_SUBSCRIPTIONS:"Manage Subscriptions",DROPDOWN_ISSUE_STATE_RESET:"All Issues",DROPDOWN_ISSUE_STATE_PURCHASED:"My Issues",DROPDOWN_ISSUE_STATE_LOCAL:"My Downloads",DROPDOWN_CATEGORY_RESET:"All categories",TOGGLE_PUBLICATION_TYPE_KIOSK:"Issues",TOGGLE_PUBLICATION_TYPE_CHANNEL:"Articles",SEARCH_FIELD_PLACEHOLDER:"Search...",SEARCH_RESULT_TITLE:"Search results",SEARCH_RESULT_EMPTY_TITLE:"Search Results",SEARCH_RESULT_TOGGLE_EXPAND:"Show more",SEARCH_RESULT_TOGGLE_COLLAPSE:"Show less",SEARCH_RESULT_PAGE_HIT_EXCERPT:"%s",SEARCH_RESULT_PAGE_LABEL_MESSAGE:"Page %s",SEARCH_RESULT_NO_SEARCH:"Please enter a search phrase.",SEARCH_RESULT_NO_RESULT:'No content was found for your search phrase "%1$s". Please try again.',LOGIN_TITLE:"Login",LOGIN_TEASER:"Log in for more content.",LOGIN_TEASER_RELOGIN:"You have been logged out. Please log in again.",LOGIN_HELP:'Forgotten your password? <a href="https://sprylab.com" target="_blank">recover</a>',LOGIN_USERNAME_PLACEHOLDER:"Email",LOGIN_PASSWORD_PLACEHOLDER:"Password",LOGIN_SUBMIT_BUTTON:"Log in",LOGIN_LOGOUT_TITLE:"Logout",LOGIN_LOGOUT_TEASER:"You can log out here.",LOGIN_LOGOUT_HELP:"",LOGIN_LOGOUT_BUTTON:"Log out",LOGOUT_TITLE:"Logout",LOGOUT_MESSAGE:"Do you really want to logout?",LOGOUT_BUTTON_CONFIRM:"Logout",LOGOUT_BUTTON_CANCEL:"Cancel",COUPON_TITLE:"Coupon",COUPON_TEASER:"Here you can enter your coupon code.",COUPON_CODE_TITLE:"Please enter your coupon code",COUPON_CODE_PLACEHOLDER:"coupon code",COUPON_SUBMIT_BUTTON:"Activate",COUPON_ACTIVATED_TITLE:"Your activated coupon codes",COUPON_DEACTIVATE_BUTTON:"Delete",COUPON_VALID_TITLE:"Add coupon",COUPON_VALID_MESSAGE:"The code you entered is valid.",COUPON_VALID_BUTTON_OK:"OK",COUPON_VALID_BUTTON_CANCEL:"Cancel",COUPON_DEACTIVATE_TITLE:"Deactivate coupon code",COUPON_DEACTIVATE_MESSAGE:'Do you really want to deactivate the code %s"?',COUPON_DEACTIVATE_BUTTON_CONFIRM:"OK",COUPON_DEACTIVATE_BUTTON_CANCEL:"Cancel",DIALOG_TITLE:"Dialog",DIALOG_ERROR:"Error",ERROR_SUBSCRIPTION:"The subscription could not be purchased. Please try again later.",ERROR_PURCHASE:"The purchase could not be completed. %s",ERROR_PUBLICATION_COMPLETION:"Product data could not be loaded. %s",ERROR_SEARCH:"The search could not be performed. Please try again later",ERROR_LOGIN:"The login could not be performed. %s",ERROR_COUPON_INVALID:"The code you entered is not valid.",ERROR_COUPON_INVALID_BUTTON:"OK",ERROR_COUPON_EXISTS:"This code is already added.",ERROR_COUPON_EXISTS_BUTTON:"OK",ERROR_COUPON_OFFLINE:"No internet connection! This code could not be added.",ERROR_COUPON_OFFLINE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE:"This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE_OFFLINE:"No internet connection! This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_OFFLINE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE_UNKNOWN:"Code is unknown! This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_UNKNOWN_BUTTON:"OK",ERROR_DOWNLOAD:"Download failed for %2$s. %1$s",ERROR_PREVIEW_OPEN:"Error opening preview. %s",ERROR_CONTENT_OPEN:"Error opening content. %s",ACCESS_DENIED:"Access denied.",ALREADY_LOGGED_IN:"You are already logged in.",USER_DEACTIVATED:"Your account is deactivated.",INSTALLATION_LIMIT_EXCEEDED:"The limit of simultaneously logged in devices has been reached.",ALREADY_OWNED:"You already own this product.",CANCELLED:"Process was cancelled by user.",CONFIGURATION_ERROR:"Error in remote system.",ISSUE_NOT_FOUND:"The requested content could not be found.",INSUFFICIENT_SPACE:"The storage on your device is not sufficient.",INVALID_CREDENTIALS:"Please check your username and password.",NETWORK:"Please check your internet connection.",NO_ISSUES_FOUND:"The requested content could not be found.",NOT_FOUND:"The requested content could not be found.",NOT_LOGGED_IN:"You are not logged in.",PAYMENT_REQUIRED:"Access denied.",RESOURCE_NOT_FOUND:"The requested resource could not be found.",UNKNOWN:"An unknown error occurred.",UNKNOWN_OFFER:"The requested offer could not be found.",UNKNOWN_PRODUCT:"The requested product could not be found.",UNKNOWN_VENDOR:"Vendor is unknown.",VALIDATION_FAILED:"The purchase could not be validated.",PULL_TO_REFRESH_PULL:"Pull to refresh",PULL_TO_REFRESH_RELEASE:"Release to refresh",LIST_NO_RESULTS:"There is no content matching the filter criteria.",LIST_ERROR:"Error loading data. %s",LIST_ERROR_BUTTON:"Reload",LIST_ACTION_SELECT_ALL:"Select all",LIST_ACTION_UNSELECT_ALL:"Un-select all",LIST_ACTION_CONFIRM:"Confirm",LIST_ACTION_RESET:"Reset",LIST_ACTION_NEXT:"Next Page Set",LIST_ENTRY_TOGGLE_EXPAND:"Show %u more",LIST_ENTRIES_TOGGLE_EXPAND:"Show %u more",LIST_ENTRY_TOGGLE_COLLAPSE:"Show %u less",LIST_ENTRIES_TOGGLE_COLLAPSE:"Show %u less",LIST_GROUPED_ENTRY_TOGGLE_EXPAND:"Show %u more",LIST_GROUPED_ENTRIES_TOGGLE_EXPAND:"Show %u more",LIST_GROUPED_ENTRY_TOGGLE_COLLAPSE:"Show %u less",LIST_GROUPED_ENTRIES_TOGGLE_COLLAPSE:"Show %u less",BOOKMARK_TITLE:"%s",MENU_ITEM:"%s",BOOKMARK_CREATION_DATE_MESSAGE:"Added on %s",BOOKMARK_PAGE_LABEL_MESSAGE:"Page %s",BOOKMARK_NO_RESULTS:"There are no bookmarks.",BOOKMARK_ERROR:"Error loading bookmarks",BOOKMARK_ERROR_BUTTON:"Reload",BOOKMARK_DELETE_TITLE:"Delete bookmark",BOOKMARK_DELETE_MESSAGE:"Are you sure you want to delete this bookmark?",BOOKMARK_DELETE_MESSAGE_WITH_TITLE:'Are you sure you want to delete the bookmark for "%s"?',BOOKMARK_DELETE_All_TITLE:"Delete bookmarks",BOOKMARK_DELETE_ALL_MESSAGE:"Are you sure you want to delete all bookmarks?",BOOKMARK_DELETE_ALL_OF_ISSUE_MESSAGE:'Are you sure you want to delete all bookmarks for the issue "%s"?',BOOKMARK_DELETE_CONFIRM:"Delete",BOOKMARK_DELETE_CANCEL:"Cancel",ERROR_DELETE_BOOKMARK:"This bookmark could not deleted. %s",ERROR_DELETE_BOOKMARK_WITH_TITLE:'The bookmark for "%2$s" could not deleted. %1$s',ERROR_DELETE_ALL_BOOKMARKS:"Not all bookmarks could be deleted. %s",ERROR_ADD_BOOKMARK:"Bookmark could not be created. %1$s",ERROR_SHARE:"Content could not be shared.",PUBLICATION_COMPLETION_TITLE:"Complete your collection",PUBLICATION_COMPLETION_PROMOTION_TEXT:"Get all %1$s back issues and save over %2$s<br>Was %3$s Now %4$s",PUBLICATION_COMPLETION_ACTION_PURCHASE:"Purchase for %s",SUBSCRIPTION_TITLE:"%s",SUBSCRIPTION_ISSUES_PROMOTION:"%1$s issues for %2$s.",SUBSCRIPTION_ISSUES_ADDITIONAL_PROMOTION:"%1$s issues for the price of %2$s.<br>Was %3$s Now %4$s.",SUBSCRIPTION_ACTION_PURCHASE:"Purchase for %s",SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE:"Price not available",SUBSCRIPTION_PRICE:"%s",SUBSCRIPTION_PRICE_FINAL:"Then %1$s / %2$s %3$s",SUBSCRIPTION_PRICE_INTRODUCTORY:"Try %1$s x %2$s %3$s for %4$s",SUBSCRIPTION_PRICE_TRIAL:"Free for %1$s %2$s",SUBSCRIPTION_PRICE_DISCOUNT:"Try %1$s x %2$s %3$s for %4$s",SUBSCRIPTION_DESCRIPTION:"%s",MONTH:"Month",MONTHS:"Months",YEAR:"Year",YEARS:"Years",WEEK:"Week",WEEKS:"Weeks",DAY:"Day",DAYS:"Days",RESTORE_PURCHASES:"Restore purchases",RESTORE_PURCHASES_CONFIRM:"Do you want to restore your purchases?",RESTORE_PURCHASES_SUCCEEDED:"Purchases restored successfully",RESTORE_PURCHASES_FAILED:"Restoring purchased failed",VIEW_ERROR:"Error loading data. %s",VIEW_ERROR_BUTTON:"Reload",ERROR_PRODUCT:"Product data could not be loaded. %s",ERROR_DEEP_LINK_LANDING:"Shared issue could not be opened. %s",APP_MENU_XML_ERROR_MESSAGE:"An Error occured loading app_menu.xml: %s (message: %s)",APP_MENU_XML_ERROR_TITLE:"Error loading app menu",APP_MENU_XML_ERROR_CONFIRM:"Ok",TOC_TITLE:"TABLE OF CONTENTS",DOWNLOAD_PDF_SINGLE_LEFT:"Download left page",DOWNLOAD_PDF_SINGLE_RIGHT:"Download right page",DOWNLOAD_PDF_SINGLE:"Download single page",DOWNLOAD_PDF_FULL:"Download full PDF"};r.O.URL,r.O.VIEW,r.O.MESSAGE,r.O.APP_BAR,r.O.VIEW,r.O.MESSAGE,r.O.APP_BAR,t.NONE,t.NONE,n.BACK,r.O.NAVIGATION,r.O.DOWNLOAD_OPTIONS;var o=__webpack_require__(1606);const s="tail",a=["DIALOG_ERROR","ERROR_DEEP_LINK_LANDING",...Object.keys(o.ERROR_CODE)].reduce(((e,t)=>({...e,[t]:i[t]})),{});var c=__webpack_require__(4664),u=__webpack_require__(5420),l=__webpack_require__(4620);const d=(0,l.YE)(),p=(0,l.zk)(),h={message:"",actions:[],tag:"div",container:d.body,messages:{DIALOG_MESSAGE_OK:"OK",DIALOG_MESSAGE_CONFIRM:"Confirm",DIALOG_MESSAGE_CANCEL:"Cancel"}};class f{config;element;keydownListener=e=>{if(e.stopPropagation(),e.preventDefault(),13===e.which){const e=this.config.actions[this.config.actions.length-1];e&&(e.callback(),this.destroy())}};constructor(e){this.config={...h,...e,messages:{...h.messages,...(e||{}).messages}},this.element=d.createElement(this.config.tag)}render(){p.addEventListener("keypress",this.keydownListener,{once:!0}),this.element.classList.add("purple-dialog");const e=/apple/i.test(navigator.vendor);this.element.classList.add(e?"ios":"android"),this.element.addEventListener("touchstart",(e=>e.preventDefault()));const t=d.createElement("section");if(this.config.title){const e=d.createElement("h1");e.innerHTML=this.config.title,t.appendChild(e)}const n=d.createElement("p");n.innerHTML=this.config.message,t.appendChild(n);const r=d.createElement("div");this.config.actions.forEach((e=>{const t=d.createElement("button");e.type&&t.classList.add(e.type),t.innerText=this.config.messages[e.message]||e.message,t.addEventListener("touchstart",(e=>e.stopPropagation()),{passive:!0}),t.addEventListener("click",(()=>{e.callback(),this.destroy()})),r.append(t)})),t.appendChild(r),this.element.appendChild(t),this.config.container.appendChild(this.element)}destroy(){this.element.remove()}}const g=(0,l.zk)(),m={show:(e,t,n,r)=>new Promise((i=>{for(const e of t){const t=e.callback;e.callback=()=>{t(),i()}}new f({message:e,actions:t,title:n,...r}).render()})),confirm:(e,t,n)=>new Promise(((r,i)=>{new f({message:e,actions:[{message:"DIALOG_MESSAGE_CANCEL",type:"cancel",callback:i},{message:"DIALOG_MESSAGE_CONFIRM",type:"confirm",callback:r}],title:t,...n}).render()})),alert:(e,t,n)=>new Promise((r=>{new f({message:e,actions:[{message:"DIALOG_MESSAGE_OK",callback:r}],title:t,...n}).render()}))};g.PurpleDialog=m;var v=__webpack_require__(9471),y=__webpack_require__(2591),E=__webpack_require__.n(y),_=__webpack_require__(1740),b=__webpack_require__.n(_),C=__webpack_require__(8128),S=__webpack_require__.n(C),I=__webpack_require__(855),D=__webpack_require__.n(I),w=__webpack_require__(3051),T=__webpack_require__.n(w),O=__webpack_require__(3656),A=__webpack_require__.n(O),N=__webpack_require__(5125),M={};M.styleTagTransform=A(),M.setAttributes=D(),M.insert=S().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=T(),E()(N.A,M),N.A&&N.A.locals&&N.A.locals;var P,R=__webpack_require__(6948),x={};x.styleTagTransform=A(),x.setAttributes=D(),x.insert=S().bind(null,"head"),x.domAPI=b(),x.insertStyleElement=T(),E()(R.A,x),R.A&&R.A.locals&&R.A.locals,function(e){e.SHARING="SHARING",e.PUSH="PUSH"}(P||(P={}));const k={openContent:{mode:o.DisplayMode.MODAL,titleBar:!1},openContentFallback:{type:"navigate",url:"resource://dynamic/storefront/index.html#/home(modal:popup/issueDetails/SLIDE_IN)?issue=%(issue.id)s"},mode:P.SHARING},L=l.window.purple;class F{spinner;htmlAboveSpinner;htmlBelowSpinner;messages;issue;config;addLoadingContents(){this.spinner=l.document.createElement("svg"),this.spinner.innerHTML=e[s],this.spinner.classList.add("storefront-spinner"),this.spinner.setAttribute("type",s),this.htmlAboveSpinner=l.document.createElement("div"),this.htmlAboveSpinner.classList.add("custom-html","above","uninitialized"),this.htmlBelowSpinner=l.document.createElement("div"),this.htmlBelowSpinner.classList.add("custom-html","below","uninitialized"),l.document.body.appendChild(this.htmlAboveSpinner),l.document.body.appendChild(this.spinner),l.document.body.appendChild(this.htmlBelowSpinner)}addCustomHTMLContents(){this.config.customHTML?.aboveSpinner&&(this.htmlAboveSpinner.innerHTML=this.config.customHTML.aboveSpinner,this.htmlAboveSpinner.classList.remove("uninitialized")),this.config.customHTML?.belowSpinner&&(this.htmlBelowSpinner.innerHTML=this.config.customHTML.belowSpinner,this.htmlBelowSpinner.classList.remove("uninitialized"))}async initMessages(){const e=await(0,c.hI)("resource://dynamic/storefront/assets/messages.json").catch((e=>({})));this.messages={...a,...e}}async navigateOrActionUrl(e){return async function(e){if(e.startsWith("purple://")&&window.purple.app.performActionUrl)return window.purple.app.performActionUrl({actionUrl:e});window.location.href=e}(e=(0,v.vsprintf)(e,{issue:this.issue}))}async initConfig(){const e=await(0,c.hI)("resource://dynamic/storefront/deep-link-landing/config.json").catch((e=>({})));this.config={...k,...e}}async initIssue({issueId:e,externalIssueId:t}){let n;e?n={id:{value:e}}:t&&(n={externalIssueId:{value:t}}),this.issue=(await L.catalog.getIssues({issueFilter:n})).nodes[0]}getIssueId(){return new URL(l.window.location.href).searchParams.get("issue")}getExternalIssueId(){return new URL(l.window.location.href).searchParams.get("external-issue-id")}hasAccess(e){return e.access===o.Access.FREE||e.access===o.Access.PURCHASABLE&&e.purchaseData.purchased}async openIssue(){return new u.V({content:this.issue}).openIssue({initialIssueId:this.issue.id,openIssueConfig:this.config.openContent})}async setSharedIssueState(){return L.state.setState({key:"SHARED_ISSUE",value:this.issue.id})}addVisibilityListener(){l.document.addEventListener("visibilitychange",(e=>{"visible"===l.document.visibilityState&&L.app.performActionUrl({actionUrl:"purple://app/home/open"})}))}async handleError(e){return this.spinner.classList.add("hidden"),e?.code||(e={...e,code:o.ERROR_CODE.UNKNOWN}),await m.alert((0,v.vsprintf)(this.messages.ERROR_DEEP_LINK_LANDING,[e.code]),this.messages.DIALOG_ERROR),L.app.performActionUrl({actionUrl:"purple://app/home/open"})}getMode(){let e=new URL(l.window.location.href).searchParams.get("mode");if(e&&![P.PUSH,P.SHARING].includes(e))throw console.error("only allowed mode params: SHARING or PUSH"),{code:o.ERROR_CODE.ERROR_ILLEGAL_ARGUMENTS};return e||(e=this.config.mode),e}async handleOpenContentFallback(){switch(this.config.openContentFallback.type){case"navigate":await this.navigateOrActionUrl(this.config.openContentFallback.url);break;case"preview":this.issue.previewIssue?await this.openIssue():await this.navigateOrActionUrl(this.config.openContentFallback.fallback.url);break;default:console.error("unknown fallback type "+this.config.openContentFallback)}}async run(){this.addLoadingContents();const e=this.getIssueId(),t=this.getExternalIssueId();try{if(!e&&!t)throw{code:o.ERROR_CODE.ISSUE_NOT_FOUND};await Promise.all([this.initMessages(),this.initConfig(),this.initIssue({issueId:e,externalIssueId:t})]),this.addCustomHTMLContents();const n=this.getMode();switch(this.addVisibilityListener(),n){case P.SHARING:this.setSharedIssueState(),await this.openIssue();break;case P.PUSH:this.hasAccess(this.issue)?await this.openIssue():this.handleOpenContentFallback();break;default:console.error("unhandled mode "+n)}}catch(e){this.handleError(e)}}}document.addEventListener("DOMContentLoaded",(()=>(new F).run()))})()})();