@sava-info-systems/api-maker-with-extensions 1.0.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (496) hide show
  1. package/.env +22 -0
  2. package/.nvmrc +1 -0
  3. package/3rdpartylicenses.txt +18 -0
  4. package/README.md +30 -0
  5. package/assets-deployment/.env +41 -0
  6. package/assets-deployment/config/keyfile +16 -0
  7. package/assets-deployment/config/mongodb_api_maker.yml +33 -0
  8. package/assets-deployment/config/redis_api_maker.yml +26 -0
  9. package/assets-deployment/installation_steps.sh +184 -0
  10. package/assets-deployment/mongo_script.js +33 -0
  11. package/dist/1025.js +1 -0
  12. package/dist/1464.js +1 -0
  13. package/dist/148.js +1 -0
  14. package/dist/1558.js +1 -0
  15. package/dist/1617.js +1 -0
  16. package/dist/1678.js +1 -0
  17. package/dist/1754.js +1 -0
  18. package/dist/1840.js +1 -0
  19. package/dist/1928.js +1 -0
  20. package/dist/1957.js +1 -0
  21. package/dist/2140.js +1 -0
  22. package/dist/2295.js +1 -0
  23. package/dist/2443.js +1 -0
  24. package/dist/2473.js +1 -0
  25. package/dist/2714.js +1 -0
  26. package/dist/2908.js +1 -0
  27. package/dist/3139.js +1 -0
  28. package/dist/3450.js +1 -0
  29. package/dist/3rdpartylicenses.txt +395 -0
  30. package/dist/4110.js +1 -0
  31. package/dist/4181.js +1 -0
  32. package/dist/4186.js +1 -0
  33. package/dist/4211.js +1 -0
  34. package/dist/4575.js +1 -0
  35. package/dist/4842.js +1 -0
  36. package/dist/485.js +1 -0
  37. package/dist/4895.js +1 -0
  38. package/dist/5334.js +1 -0
  39. package/dist/5421.js +1 -0
  40. package/dist/5679.js +1 -0
  41. package/dist/5761.js +1 -0
  42. package/dist/6236.js +1 -0
  43. package/dist/6393.js +1 -0
  44. package/dist/6401.js +1 -0
  45. package/dist/6925.js +1 -0
  46. package/dist/7368.js +1 -0
  47. package/dist/7436.js +1 -0
  48. package/dist/7470.js +1 -0
  49. package/dist/7649.js +1 -0
  50. package/dist/7975.js +1 -0
  51. package/dist/7987.js +1 -0
  52. package/dist/8125.js +1 -0
  53. package/dist/8266.js +1 -0
  54. package/dist/8296.js +1 -0
  55. package/dist/8374.js +1 -0
  56. package/dist/8682.js +1 -0
  57. package/dist/8841.js +1 -0
  58. package/dist/885.js +1 -0
  59. package/dist/891.js +1 -0
  60. package/dist/913.js +1 -0
  61. package/dist/9208.js +1 -0
  62. package/dist/9243.js +1 -0
  63. package/dist/9939.js +1 -0
  64. package/dist/assets/images/banner/default_package_banner.jpg +0 -0
  65. package/dist/assets/images/bg/world.svg +3 -0
  66. package/dist/assets/images/cloud/setup-on-server.svg +51 -0
  67. package/dist/assets/images/icons/adminuser.png +0 -0
  68. package/dist/assets/images/icons/api-group.svg +10 -0
  69. package/dist/assets/images/icons/api-user.svg +9 -0
  70. package/dist/assets/images/icons/aws.svg +5 -0
  71. package/dist/assets/images/icons/bug.svg +1 -0
  72. package/dist/assets/images/icons/bulkschema.svg +5 -0
  73. package/dist/assets/images/icons/comparator.svg +5 -0
  74. package/dist/assets/images/icons/custom.svg +9 -0
  75. package/dist/assets/images/icons/database.svg +12 -0
  76. package/dist/assets/images/icons/db-m.svg +28 -0
  77. package/dist/assets/images/icons/default_package_icon.svg +41 -0
  78. package/dist/assets/images/icons/deployset.png +0 -0
  79. package/dist/assets/images/icons/dev.svg +9 -0
  80. package/dist/assets/images/icons/diagram.svg +7 -0
  81. package/dist/assets/images/icons/event.png +0 -0
  82. package/dist/assets/images/icons/film-movies-icon.svg +14 -0
  83. package/dist/assets/images/icons/finder.svg +11 -0
  84. package/dist/assets/images/icons/git.svg +1 -0
  85. package/dist/assets/images/icons/house.svg +50 -0
  86. package/dist/assets/images/icons/i18n.svg +9 -0
  87. package/dist/assets/images/icons/increment.svg +4 -0
  88. package/dist/assets/images/icons/license.png +0 -0
  89. package/dist/assets/images/icons/log-profile.svg +9 -0
  90. package/dist/assets/images/icons/log.svg +9 -0
  91. package/dist/assets/images/icons/masters.png +0 -0
  92. package/dist/assets/images/icons/nodes.svg +3 -0
  93. package/dist/assets/images/icons/notes.svg +23 -0
  94. package/dist/assets/images/icons/npm.svg +1 -0
  95. package/dist/assets/images/icons/process_initializers.svg +13 -0
  96. package/dist/assets/images/icons/redis.png +0 -0
  97. package/dist/assets/images/icons/redis.svg +9 -0
  98. package/dist/assets/images/icons/sandbox.svg +4 -0
  99. package/dist/assets/images/icons/schedulers.svg +12 -0
  100. package/dist/assets/images/icons/secret.svg +9 -0
  101. package/dist/assets/images/icons/systems.svg +9 -0
  102. package/dist/assets/images/icons/testing.svg +4 -0
  103. package/dist/assets/images/icons/third-party.svg +9 -0
  104. package/dist/assets/images/icons/typescript.svg +11 -0
  105. package/dist/assets/images/icons/utility.svg +7 -0
  106. package/dist/assets/images/icons/vulnerability.svg +12 -0
  107. package/dist/assets/images/icons/web.svg +10 -0
  108. package/dist/assets/images/instancesIcon/mariadb.png +0 -0
  109. package/dist/assets/images/instancesIcon/microsoft-sql-server.png +0 -0
  110. package/dist/assets/images/instancesIcon/mongodb.png +0 -0
  111. package/dist/assets/images/instancesIcon/my-sql.svg +159 -0
  112. package/dist/assets/images/instancesIcon/oracle.png +0 -0
  113. package/dist/assets/images/instancesIcon/postgresql.png +0 -0
  114. package/dist/assets/images/logo/API Maker Logo 2021 black.svg +47 -0
  115. package/dist/assets/images/logo/API Maker Logo 2021.svg +49 -0
  116. package/dist/assets/images/logo/discord-icon.svg +8 -0
  117. package/dist/assets/images/logo/dollar.svg +7 -0
  118. package/dist/assets/images/logo/logo.svg +41 -0
  119. package/dist/assets/images/logo/logo_cloud.svg +15 -0
  120. package/dist/assets/images/logo/logo_docs.svg +15 -0
  121. package/dist/assets/images/logo/logo_store.svg +17 -0
  122. package/dist/assets/images/logo/logo_store_new.svg +33 -0
  123. package/dist/assets/images/logo/rupee.svg +7 -0
  124. package/dist/assets/images/logo/sava-logo.png +0 -0
  125. package/dist/assets/images/logo/store_logo.svg +11 -0
  126. package/dist/assets/images/payment/failed.svg +3 -0
  127. package/dist/assets/images/payment/success.svg +3 -0
  128. package/dist/assets/images/svg/MARIA_DB.svg +3 -0
  129. package/dist/assets/images/svg/MONGO_DB.svg +5 -0
  130. package/dist/assets/images/svg/MYSQL_DB.svg +3 -0
  131. package/dist/assets/images/svg/Microsoft_SQL_Server_DB_No_Logo.svg +6 -0
  132. package/dist/assets/images/svg/Oracle_DB_No_Logo.svg +6 -0
  133. package/dist/assets/images/svg/POSTGRE_SQL_DB.svg +9 -0
  134. package/dist/assets/images/svg/Ti_DB.svg +5 -0
  135. package/dist/assets/images/svg/Xtra_DB.svg +19 -0
  136. package/dist/assets/images/svg/placeholder_thumbnail_json.svg +3 -0
  137. package/dist/assets/images/svg/serve_static_website_icon.svg +37 -0
  138. package/dist/assets/images/svg/single_obj.svg +3 -0
  139. package/dist/assets/json/am_docs.json +203 -0
  140. package/dist/assets/lib/svg-pan-zoom.d.ts +261 -0
  141. package/dist/assets/lib/svg-pan-zoom.min.js +3 -0
  142. package/dist/assets/monaco-assets/configurations/cpp.json +34 -0
  143. package/dist/assets/monaco-assets/configurations/csharp.json +32 -0
  144. package/dist/assets/monaco-assets/configurations/dart.json +29 -0
  145. package/dist/assets/monaco-assets/configurations/go.json +37 -0
  146. package/dist/assets/monaco-assets/configurations/java.json +33 -0
  147. package/dist/assets/monaco-assets/configurations/javascript.json +140 -0
  148. package/dist/assets/monaco-assets/configurations/json.json +22 -0
  149. package/dist/assets/monaco-assets/configurations/python.json +56 -0
  150. package/dist/assets/monaco-assets/configurations/ruby.json +31 -0
  151. package/dist/assets/monaco-assets/configurations/rust.json +34 -0
  152. package/dist/assets/monaco-assets/configurations/swift.json +27 -0
  153. package/dist/assets/monaco-assets/configurations/typescript.json +140 -0
  154. package/dist/assets/monaco-assets/configurations/xml.json +39 -0
  155. package/dist/assets/monaco-assets/configurations/yaml.json +35 -0
  156. package/dist/assets/monaco-assets/grammars/cpp.tmLanguage.json +16309 -0
  157. package/dist/assets/monaco-assets/grammars/csharp.tmLanguage.json +4984 -0
  158. package/dist/assets/monaco-assets/grammars/dart.tmLanguage.json +521 -0
  159. package/dist/assets/monaco-assets/grammars/go.tmLanguage.json +1017 -0
  160. package/dist/assets/monaco-assets/grammars/java.tmLanguage.json +1855 -0
  161. package/dist/assets/monaco-assets/grammars/javascript.tmLanguage.json +5914 -0
  162. package/dist/assets/monaco-assets/grammars/json.tmLanguage.json +213 -0
  163. package/dist/assets/monaco-assets/grammars/magicpython.tmLanguage.json +4213 -0
  164. package/dist/assets/monaco-assets/grammars/ruby.tmLanguage.json +2775 -0
  165. package/dist/assets/monaco-assets/grammars/rust.tmLanguage.json +1170 -0
  166. package/dist/assets/monaco-assets/grammars/swift.tmLanguage.json +3303 -0
  167. package/dist/assets/monaco-assets/grammars/typescript.tmLanguage.json +5665 -0
  168. package/dist/assets/monaco-assets/grammars/xml.tmLanguage.json +387 -0
  169. package/dist/assets/monaco-assets/grammars/yaml.tmLanguage.json +621 -0
  170. package/dist/assets/monaco-assets/onig.wasm +0 -0
  171. package/dist/assets/music/notification.mp3 +0 -0
  172. package/dist/assets/primeng-theme/primeng-theme-overrides.scss +130 -0
  173. package/dist/assets/primeng-theme/theme.css +1 -0
  174. package/dist/assets/schema-types/InterfaceProps.ts +509 -0
  175. package/dist/assets/schema-types/store-types.ts +170 -0
  176. package/dist/assets/schema-types/types.ts +1529 -0
  177. package/dist/assets/styles/bootstrap-overrides.scss +94 -0
  178. package/dist/assets/styles/colors-dark.scss +128 -0
  179. package/dist/assets/styles/colors-light.scss +22 -0
  180. package/dist/assets/styles/fonts/JetBrainsMonoRegular.ttf +0 -0
  181. package/dist/assets/styles/fonts/Verdana.ttf +0 -0
  182. package/dist/assets/styles/monaco-editor-overrides.scss +0 -0
  183. package/dist/assets/styles/out/bootstrap-overrides.css +2 -0
  184. package/dist/assets/styles/out/bootstrap-overrides.css.map +1 -0
  185. package/dist/assets/styles/out/colors-dark.css +2 -0
  186. package/dist/assets/styles/out/colors-dark.css.map +1 -0
  187. package/dist/assets/styles/out/colors-light.css +2 -0
  188. package/dist/assets/styles/out/colors-light.css.map +1 -0
  189. package/dist/assets/styles/out/monaco-editor-overrides.css +2 -0
  190. package/dist/assets/styles/out/monaco-editor-overrides.css.map +1 -0
  191. package/dist/assets/styles/out/styles.css +2 -0
  192. package/dist/assets/styles/out/styles.css.map +1 -0
  193. package/dist/assets/styles/out/variables.css +2 -0
  194. package/dist/assets/styles/out/variables.css.map +1 -0
  195. package/dist/assets/styles/root-styles.css +118 -0
  196. package/dist/assets/styles/styles.scss +356 -0
  197. package/dist/assets/styles/variables.scss +18 -0
  198. package/dist/color.png +0 -0
  199. package/dist/common.js +1 -0
  200. package/dist/favicon.ico +0 -0
  201. package/dist/hue.png +0 -0
  202. package/dist/index.html +147 -0
  203. package/dist/main.js +1 -0
  204. package/dist/polyfills.js +1 -0
  205. package/dist/primeicons.eot +0 -0
  206. package/dist/primeicons.svg +292 -0
  207. package/dist/primeicons.ttf +0 -0
  208. package/dist/primeicons.woff +0 -0
  209. package/dist/primeicons.woff2 +0 -0
  210. package/dist/runtime.js +1 -0
  211. package/dist/styles.css +1 -0
  212. package/license.txt +2 -0
  213. package/local.env +23 -0
  214. package/main.js +1 -0
  215. package/package.json +198 -0
  216. package/sandbox/.dockerignore +2 -0
  217. package/sandbox/Dockerfile +32 -0
  218. package/sandbox/assets/schema-types/store-types.js +165 -0
  219. package/sandbox/assets/schema-types/types.js +331 -0
  220. package/sandbox/package.json +28 -0
  221. package/sandbox/sandbox.js +1 -0
  222. package/sandbox/src/utils/VmInit.js +11 -0
  223. package/src/assets/schema-types/store-types.ts +170 -0
  224. package/src/assets/schema-types/types.ts +1529 -0
  225. package/src/json/DefaultUsers.json +18 -0
  226. package/src/public/css/bootstrap-slate.min.css +12 -0
  227. package/src/public/css/styles.css +4 -0
  228. package/src/public/dist-db-masters/3rdpartylicenses.txt +312 -0
  229. package/src/public/dist-db-masters/browser/assets/themes/arya-blue/fonts/Inter-italic.var.woff2 +0 -0
  230. package/src/public/dist-db-masters/browser/assets/themes/arya-blue/fonts/Inter-roman.var.woff2 +0 -0
  231. package/src/public/dist-db-masters/browser/assets/themes/arya-blue/theme.css +6310 -0
  232. package/src/public/dist-db-masters/browser/assets/themes/arya-green/fonts/Inter-italic.var.woff2 +0 -0
  233. package/src/public/dist-db-masters/browser/assets/themes/arya-green/fonts/Inter-roman.var.woff2 +0 -0
  234. package/src/public/dist-db-masters/browser/assets/themes/arya-green/theme.css +6310 -0
  235. package/src/public/dist-db-masters/browser/assets/themes/arya-orange/fonts/Inter-italic.var.woff2 +0 -0
  236. package/src/public/dist-db-masters/browser/assets/themes/arya-orange/fonts/Inter-roman.var.woff2 +0 -0
  237. package/src/public/dist-db-masters/browser/assets/themes/arya-orange/theme.css +6310 -0
  238. package/src/public/dist-db-masters/browser/assets/themes/arya-purple/fonts/Inter-italic.var.woff2 +0 -0
  239. package/src/public/dist-db-masters/browser/assets/themes/arya-purple/fonts/Inter-roman.var.woff2 +0 -0
  240. package/src/public/dist-db-masters/browser/assets/themes/arya-purple/theme.css +6310 -0
  241. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
  242. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
  243. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-amber/theme.css +7722 -0
  244. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
  245. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
  246. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-blue/theme.css +7722 -0
  247. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
  248. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
  249. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-cyan/theme.css +7722 -0
  250. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-green/fonts/Inter-italic.var.woff2 +0 -0
  251. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-green/fonts/Inter-roman.var.woff2 +0 -0
  252. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-green/theme.css +7722 -0
  253. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
  254. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
  255. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-indigo/theme.css +7722 -0
  256. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-lime/fonts/Inter-italic.var.woff2 +0 -0
  257. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-lime/fonts/Inter-roman.var.woff2 +0 -0
  258. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-lime/theme.css +7722 -0
  259. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-noir/fonts/Inter-italic.var.woff2 +0 -0
  260. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-noir/fonts/Inter-roman.var.woff2 +0 -0
  261. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-noir/theme.css +7722 -0
  262. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
  263. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
  264. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-pink/theme.css +7722 -0
  265. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
  266. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
  267. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-purple/theme.css +7722 -0
  268. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
  269. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
  270. package/src/public/dist-db-masters/browser/assets/themes/aura-dark-teal/theme.css +7722 -0
  271. package/src/public/dist-db-masters/browser/assets/themes/aura-light-amber/fonts/Inter-italic.var.woff2 +0 -0
  272. package/src/public/dist-db-masters/browser/assets/themes/aura-light-amber/fonts/Inter-roman.var.woff2 +0 -0
  273. package/src/public/dist-db-masters/browser/assets/themes/aura-light-amber/theme.css +7723 -0
  274. package/src/public/dist-db-masters/browser/assets/themes/aura-light-blue/fonts/Inter-italic.var.woff2 +0 -0
  275. package/src/public/dist-db-masters/browser/assets/themes/aura-light-blue/fonts/Inter-roman.var.woff2 +0 -0
  276. package/src/public/dist-db-masters/browser/assets/themes/aura-light-blue/theme.css +7723 -0
  277. package/src/public/dist-db-masters/browser/assets/themes/aura-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
  278. package/src/public/dist-db-masters/browser/assets/themes/aura-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
  279. package/src/public/dist-db-masters/browser/assets/themes/aura-light-cyan/theme.css +7723 -0
  280. package/src/public/dist-db-masters/browser/assets/themes/aura-light-green/fonts/Inter-italic.var.woff2 +0 -0
  281. package/src/public/dist-db-masters/browser/assets/themes/aura-light-green/fonts/Inter-roman.var.woff2 +0 -0
  282. package/src/public/dist-db-masters/browser/assets/themes/aura-light-green/theme.css +7723 -0
  283. package/src/public/dist-db-masters/browser/assets/themes/aura-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
  284. package/src/public/dist-db-masters/browser/assets/themes/aura-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
  285. package/src/public/dist-db-masters/browser/assets/themes/aura-light-indigo/theme.css +7723 -0
  286. package/src/public/dist-db-masters/browser/assets/themes/aura-light-lime/fonts/Inter-italic.var.woff2 +0 -0
  287. package/src/public/dist-db-masters/browser/assets/themes/aura-light-lime/fonts/Inter-roman.var.woff2 +0 -0
  288. package/src/public/dist-db-masters/browser/assets/themes/aura-light-lime/theme.css +7723 -0
  289. package/src/public/dist-db-masters/browser/assets/themes/aura-light-noir/fonts/Inter-italic.var.woff2 +0 -0
  290. package/src/public/dist-db-masters/browser/assets/themes/aura-light-noir/fonts/Inter-roman.var.woff2 +0 -0
  291. package/src/public/dist-db-masters/browser/assets/themes/aura-light-noir/theme.css +7731 -0
  292. package/src/public/dist-db-masters/browser/assets/themes/aura-light-pink/fonts/Inter-italic.var.woff2 +0 -0
  293. package/src/public/dist-db-masters/browser/assets/themes/aura-light-pink/fonts/Inter-roman.var.woff2 +0 -0
  294. package/src/public/dist-db-masters/browser/assets/themes/aura-light-pink/theme.css +7723 -0
  295. package/src/public/dist-db-masters/browser/assets/themes/aura-light-purple/fonts/Inter-italic.var.woff2 +0 -0
  296. package/src/public/dist-db-masters/browser/assets/themes/aura-light-purple/fonts/Inter-roman.var.woff2 +0 -0
  297. package/src/public/dist-db-masters/browser/assets/themes/aura-light-purple/theme.css +7723 -0
  298. package/src/public/dist-db-masters/browser/assets/themes/aura-light-teal/fonts/Inter-italic.var.woff2 +0 -0
  299. package/src/public/dist-db-masters/browser/assets/themes/aura-light-teal/fonts/Inter-roman.var.woff2 +0 -0
  300. package/src/public/dist-db-masters/browser/assets/themes/aura-light-teal/theme.css +7723 -0
  301. package/src/public/dist-db-masters/browser/assets/themes/bootstrap4-dark-blue/theme.css +6304 -0
  302. package/src/public/dist-db-masters/browser/assets/themes/bootstrap4-dark-purple/theme.css +6304 -0
  303. package/src/public/dist-db-masters/browser/assets/themes/bootstrap4-light-blue/theme.css +6304 -0
  304. package/src/public/dist-db-masters/browser/assets/themes/bootstrap4-light-purple/theme.css +6304 -0
  305. package/src/public/dist-db-masters/browser/assets/themes/fluent-light/theme.css +6439 -0
  306. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
  307. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
  308. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-amber/theme.css +6404 -0
  309. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
  310. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
  311. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-blue/theme.css +6404 -0
  312. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
  313. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
  314. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-cyan/theme.css +6404 -0
  315. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-green/fonts/Inter-italic.var.woff2 +0 -0
  316. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-green/fonts/Inter-roman.var.woff2 +0 -0
  317. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-green/theme.css +6404 -0
  318. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
  319. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
  320. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-indigo/theme.css +6404 -0
  321. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
  322. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
  323. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-pink/theme.css +6404 -0
  324. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
  325. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
  326. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-purple/theme.css +6404 -0
  327. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
  328. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
  329. package/src/public/dist-db-masters/browser/assets/themes/lara-dark-teal/theme.css +6404 -0
  330. package/src/public/dist-db-masters/browser/assets/themes/lara-light-amber/fonts/Inter-italic.var.woff2 +0 -0
  331. package/src/public/dist-db-masters/browser/assets/themes/lara-light-amber/fonts/Inter-roman.var.woff2 +0 -0
  332. package/src/public/dist-db-masters/browser/assets/themes/lara-light-amber/theme.css +6340 -0
  333. package/src/public/dist-db-masters/browser/assets/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
  334. package/src/public/dist-db-masters/browser/assets/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
  335. package/src/public/dist-db-masters/browser/assets/themes/lara-light-blue/theme.css +6340 -0
  336. package/src/public/dist-db-masters/browser/assets/themes/lara-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
  337. package/src/public/dist-db-masters/browser/assets/themes/lara-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
  338. package/src/public/dist-db-masters/browser/assets/themes/lara-light-cyan/theme.css +6340 -0
  339. package/src/public/dist-db-masters/browser/assets/themes/lara-light-green/fonts/Inter-italic.var.woff2 +0 -0
  340. package/src/public/dist-db-masters/browser/assets/themes/lara-light-green/fonts/Inter-roman.var.woff2 +0 -0
  341. package/src/public/dist-db-masters/browser/assets/themes/lara-light-green/theme.css +6340 -0
  342. package/src/public/dist-db-masters/browser/assets/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
  343. package/src/public/dist-db-masters/browser/assets/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
  344. package/src/public/dist-db-masters/browser/assets/themes/lara-light-indigo/theme.css +6340 -0
  345. package/src/public/dist-db-masters/browser/assets/themes/lara-light-pink/fonts/Inter-italic.var.woff2 +0 -0
  346. package/src/public/dist-db-masters/browser/assets/themes/lara-light-pink/fonts/Inter-roman.var.woff2 +0 -0
  347. package/src/public/dist-db-masters/browser/assets/themes/lara-light-pink/theme.css +6340 -0
  348. package/src/public/dist-db-masters/browser/assets/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
  349. package/src/public/dist-db-masters/browser/assets/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
  350. package/src/public/dist-db-masters/browser/assets/themes/lara-light-purple/theme.css +6340 -0
  351. package/src/public/dist-db-masters/browser/assets/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
  352. package/src/public/dist-db-masters/browser/assets/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
  353. package/src/public/dist-db-masters/browser/assets/themes/lara-light-teal/theme.css +6340 -0
  354. package/src/public/dist-db-masters/browser/assets/themes/luna-amber/theme.css +6255 -0
  355. package/src/public/dist-db-masters/browser/assets/themes/luna-blue/theme.css +6255 -0
  356. package/src/public/dist-db-masters/browser/assets/themes/luna-green/theme.css +6255 -0
  357. package/src/public/dist-db-masters/browser/assets/themes/luna-pink/theme.css +6255 -0
  358. package/src/public/dist-db-masters/browser/assets/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  359. package/src/public/dist-db-masters/browser/assets/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  360. package/src/public/dist-db-masters/browser/assets/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  361. package/src/public/dist-db-masters/browser/assets/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  362. package/src/public/dist-db-masters/browser/assets/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  363. package/src/public/dist-db-masters/browser/assets/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  364. package/src/public/dist-db-masters/browser/assets/themes/md-dark-deeppurple/theme.css +7915 -0
  365. package/src/public/dist-db-masters/browser/assets/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  366. package/src/public/dist-db-masters/browser/assets/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  367. package/src/public/dist-db-masters/browser/assets/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  368. package/src/public/dist-db-masters/browser/assets/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  369. package/src/public/dist-db-masters/browser/assets/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  370. package/src/public/dist-db-masters/browser/assets/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  371. package/src/public/dist-db-masters/browser/assets/themes/md-dark-indigo/theme.css +7915 -0
  372. package/src/public/dist-db-masters/browser/assets/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  373. package/src/public/dist-db-masters/browser/assets/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  374. package/src/public/dist-db-masters/browser/assets/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  375. package/src/public/dist-db-masters/browser/assets/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  376. package/src/public/dist-db-masters/browser/assets/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  377. package/src/public/dist-db-masters/browser/assets/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  378. package/src/public/dist-db-masters/browser/assets/themes/md-light-deeppurple/theme.css +7915 -0
  379. package/src/public/dist-db-masters/browser/assets/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  380. package/src/public/dist-db-masters/browser/assets/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  381. package/src/public/dist-db-masters/browser/assets/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  382. package/src/public/dist-db-masters/browser/assets/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  383. package/src/public/dist-db-masters/browser/assets/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  384. package/src/public/dist-db-masters/browser/assets/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  385. package/src/public/dist-db-masters/browser/assets/themes/md-light-indigo/theme.css +7915 -0
  386. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  387. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  388. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  389. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  390. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  391. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  392. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-deeppurple/theme.css +7915 -0
  393. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  394. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  395. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  396. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  397. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  398. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  399. package/src/public/dist-db-masters/browser/assets/themes/mdc-dark-indigo/theme.css +7915 -0
  400. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  401. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  402. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  403. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  404. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  405. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  406. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-deeppurple/theme.css +7915 -0
  407. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
  408. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
  409. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
  410. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
  411. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
  412. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
  413. package/src/public/dist-db-masters/browser/assets/themes/mdc-light-indigo/theme.css +7915 -0
  414. package/src/public/dist-db-masters/browser/assets/themes/mira/fonts/Inter-Bold.woff +0 -0
  415. package/src/public/dist-db-masters/browser/assets/themes/mira/fonts/Inter-Bold.woff2 +0 -0
  416. package/src/public/dist-db-masters/browser/assets/themes/mira/fonts/Inter-Medium.woff +0 -0
  417. package/src/public/dist-db-masters/browser/assets/themes/mira/fonts/Inter-Medium.woff2 +0 -0
  418. package/src/public/dist-db-masters/browser/assets/themes/mira/fonts/Inter-Regular.woff +0 -0
  419. package/src/public/dist-db-masters/browser/assets/themes/mira/fonts/Inter-Regular.woff2 +0 -0
  420. package/src/public/dist-db-masters/browser/assets/themes/mira/fonts/Inter-SemiBold.woff +0 -0
  421. package/src/public/dist-db-masters/browser/assets/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
  422. package/src/public/dist-db-masters/browser/assets/themes/mira/theme.css +6517 -0
  423. package/src/public/dist-db-masters/browser/assets/themes/nano/theme.css +6290 -0
  424. package/src/public/dist-db-masters/browser/assets/themes/nova/theme.css +6270 -0
  425. package/src/public/dist-db-masters/browser/assets/themes/nova-accent/theme.css +6280 -0
  426. package/src/public/dist-db-masters/browser/assets/themes/nova-alt/theme.css +6282 -0
  427. package/src/public/dist-db-masters/browser/assets/themes/rhea/theme.css +6258 -0
  428. package/src/public/dist-db-masters/browser/assets/themes/saga-blue/theme.css +6307 -0
  429. package/src/public/dist-db-masters/browser/assets/themes/saga-green/theme.css +6307 -0
  430. package/src/public/dist-db-masters/browser/assets/themes/saga-orange/theme.css +6307 -0
  431. package/src/public/dist-db-masters/browser/assets/themes/saga-purple/theme.css +6307 -0
  432. package/src/public/dist-db-masters/browser/assets/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  433. package/src/public/dist-db-masters/browser/assets/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  434. package/src/public/dist-db-masters/browser/assets/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  435. package/src/public/dist-db-masters/browser/assets/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  436. package/src/public/dist-db-masters/browser/assets/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  437. package/src/public/dist-db-masters/browser/assets/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  438. package/src/public/dist-db-masters/browser/assets/themes/soho-dark/theme.css +6283 -0
  439. package/src/public/dist-db-masters/browser/assets/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
  440. package/src/public/dist-db-masters/browser/assets/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
  441. package/src/public/dist-db-masters/browser/assets/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
  442. package/src/public/dist-db-masters/browser/assets/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
  443. package/src/public/dist-db-masters/browser/assets/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
  444. package/src/public/dist-db-masters/browser/assets/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
  445. package/src/public/dist-db-masters/browser/assets/themes/soho-light/theme.css +6337 -0
  446. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
  447. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
  448. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
  449. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
  450. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
  451. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
  452. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
  453. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
  454. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
  455. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
  456. package/src/public/dist-db-masters/browser/assets/themes/tailwind-light/theme.css +6403 -0
  457. package/src/public/dist-db-masters/browser/assets/themes/vela-blue/theme.css +6310 -0
  458. package/src/public/dist-db-masters/browser/assets/themes/vela-green/theme.css +6310 -0
  459. package/src/public/dist-db-masters/browser/assets/themes/vela-orange/theme.css +6310 -0
  460. package/src/public/dist-db-masters/browser/assets/themes/vela-purple/theme.css +6310 -0
  461. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  462. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  463. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  464. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  465. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  466. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  467. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  468. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  469. package/src/public/dist-db-masters/browser/assets/themes/viva-dark/theme.css +6444 -0
  470. package/src/public/dist-db-masters/browser/assets/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
  471. package/src/public/dist-db-masters/browser/assets/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
  472. package/src/public/dist-db-masters/browser/assets/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
  473. package/src/public/dist-db-masters/browser/assets/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
  474. package/src/public/dist-db-masters/browser/assets/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
  475. package/src/public/dist-db-masters/browser/assets/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
  476. package/src/public/dist-db-masters/browser/assets/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
  477. package/src/public/dist-db-masters/browser/assets/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
  478. package/src/public/dist-db-masters/browser/assets/themes/viva-light/theme.css +6445 -0
  479. package/src/public/dist-db-masters/browser/favicon.ico +0 -0
  480. package/src/public/dist-db-masters/browser/index.html +23 -0
  481. package/src/public/dist-db-masters/browser/main.js +116 -0
  482. package/src/public/dist-db-masters/browser/media/color.png +0 -0
  483. package/src/public/dist-db-masters/browser/media/hue.png +0 -0
  484. package/src/public/dist-db-masters/browser/media/primeicons.eot +0 -0
  485. package/src/public/dist-db-masters/browser/media/primeicons.svg +345 -0
  486. package/src/public/dist-db-masters/browser/media/primeicons.ttf +0 -0
  487. package/src/public/dist-db-masters/browser/media/primeicons.woff +0 -0
  488. package/src/public/dist-db-masters/browser/media/primeicons.woff2 +0 -0
  489. package/src/public/dist-db-masters/browser/polyfills.js +2 -0
  490. package/src/public/dist-db-masters/browser/styles.css +1 -0
  491. package/src/public/index.hbs +174 -0
  492. package/src/tools/install.js +37 -0
  493. package/src/tools/install_utils/InstallFromWeb.js +1636 -0
  494. package/src/tools/install_utils/SetEnvInFrontend.js +76 -0
  495. package/src/tools/install_utils/TSUtils.js +33 -0
  496. package/src/tools/set-env-in-frontend.js +11 -0
@@ -0,0 +1,116 @@
1
+ var Zb=Object.defineProperty,Yb=Object.defineProperties;var Xb=Object.getOwnPropertyDescriptors;var ka=Object.getOwnPropertySymbols;var ug=Object.prototype.hasOwnProperty,dg=Object.prototype.propertyIsEnumerable;var cg=(t,i,e)=>i in t?Zb(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,$=(t,i)=>{for(var e in i||={})ug.call(i,e)&&cg(t,e,i[e]);if(ka)for(var e of ka(i))dg.call(i,e)&&cg(t,e,i[e]);return t},Le=(t,i)=>Yb(t,Xb(i));var Au=(t,i)=>{var e={};for(var n in t)ug.call(t,n)&&i.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&ka)for(var n of ka(t))i.indexOf(n)<0&&dg.call(t,n)&&(e[n]=t[n]);return e};var Ge=(t,i,e)=>new Promise((n,r)=>{var o=l=>{try{a(e.next(l))}catch(u){r(u)}},s=l=>{try{a(e.throw(l))}catch(u){r(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,s);a((e=e.apply(t,i)).next())});function pg(t,i){return Object.is(t,i)}var qt=null,gs=!1,Fa=1,ui=Symbol("SIGNAL");function et(t){let i=qt;return qt=t,i}function Jb(){return gs}var ys={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,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Vu(t){if(gs)throw new Error("");if(qt===null)return;qt.consumerOnSignalRead(t);let i=qt.nextProducerIndex++;if(lo(qt),i<qt.producerNode.length&&qt.producerNode[i]!==t&&_s(qt)){let e=qt.producerNode[i];Va(e,qt.producerIndexOfThis[i])}qt.producerNode[i]!==t&&(qt.producerNode[i]=t,qt.producerIndexOfThis[i]=_s(qt)?_g(t,qt,i):0),qt.producerLastReadVersion[i]=t.version}function ew(){Fa++}function hg(t){if(!(_s(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Fa)){if(!t.producerMustRecompute(t)&&!Na(t)){t.dirty=!1,t.lastCleanEpoch=Fa;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Fa}}function fg(t){if(t.liveConsumerNode===void 0)return;let i=gs;gs=!0;try{for(let e of t.liveConsumerNode)e.dirty||gg(e)}finally{gs=i}}function mg(){return qt?.consumerAllowSignalWrites!==!1}function gg(t){t.dirty=!0,fg(t),t.consumerMarkedDirty?.(t)}function Ra(t){return t&&(t.nextProducerIndex=0),et(t)}function La(t,i){if(et(i),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(_s(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)Va(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Na(t){lo(t);for(let i=0;i<t.producerNode.length;i++){let e=t.producerNode[i],n=t.producerLastReadVersion[i];if(n!==e.version||(hg(e),n!==e.version))return!0}return!1}function Pu(t){if(lo(t),_s(t))for(let i=0;i<t.producerNode.length;i++)Va(t.producerNode[i],t.producerIndexOfThis[i]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function _g(t,i,e){if(yg(t),lo(t),t.liveConsumerNode.length===0)for(let n=0;n<t.producerNode.length;n++)t.producerIndexOfThis[n]=_g(t.producerNode[n],t,n);return t.liveConsumerIndexOfThis.push(e),t.liveConsumerNode.push(i)-1}function Va(t,i){if(yg(t),lo(t),t.liveConsumerNode.length===1)for(let n=0;n<t.producerNode.length;n++)Va(t.producerNode[n],t.producerIndexOfThis[n]);let e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[i]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[i]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,i<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[i],r=t.liveConsumerNode[i];lo(r),r.producerIndexOfThis[n]=i}}function _s(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function lo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function yg(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function vg(t){let i=Object.create(tw);i.computation=t;let e=()=>{if(hg(i),Vu(i),i.value===Aa)throw i.error;return i.value};return e[ui]=i,e}var Ru=Symbol("UNSET"),Lu=Symbol("COMPUTING"),Aa=Symbol("ERRORED"),tw=Le($({},ys),{value:Ru,dirty:!0,error:null,equal:pg,producerMustRecompute(t){return t.value===Ru||t.value===Lu},producerRecomputeValue(t){if(t.value===Lu)throw new Error("Detected cycle in computations.");let i=t.value;t.value=Lu;let e=Ra(t),n;try{n=t.computation()}catch(r){n=Aa,t.error=r}finally{La(t,e)}if(i!==Ru&&i!==Aa&&n!==Aa&&t.equal(i,n)){t.value=i;return}t.value=n,t.version++}});function nw(){throw new Error}var Cg=nw;function bg(){Cg()}function wg(t){Cg=t}var iw=null;function Ig(t){let i=Object.create(Tg);i.value=t;let e=()=>(Vu(i),i.value);return e[ui]=i,e}function Hu(t,i){mg()||bg(),t.equal(t.value,i)||(t.value=i,rw(t))}function xg(t,i){mg()||bg(),Hu(t,i(t.value))}var Tg=Le($({},ys),{equal:pg,value:void 0});function rw(t){t.version++,ew(),fg(t),iw?.()}function Sg(t,i,e){let n=Object.create(ow);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;let r=l=>{n.cleanupFn=l};function o(l){return l.fn===null&&l.schedule===null}function s(l){o(l)||(Pu(l),l.cleanupFn(),l.fn=null,l.schedule=null,l.cleanupFn=Nu)}let a=()=>{if(n.fn===null)return;if(Jb())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(n.dirty=!1,n.hasRun&&!Na(n))return;n.hasRun=!0;let l=Ra(n);try{n.cleanupFn(),n.cleanupFn=Nu,n.fn(r)}finally{La(n,l)}};return n.ref={notify:()=>gg(n),run:a,cleanup:()=>n.cleanupFn(),destroy:()=>s(n),[ui]:n},n.ref}var Nu=()=>{},ow=Le($({},ys),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule!==null&&t.schedule(t.ref)},hasRun:!1,cleanupFn:Nu});function Fe(t){return typeof t=="function"}function co(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Pa=co(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:
2
+ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=e});function vs(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var zt=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(Fe(n))try{n()}catch(o){i=o instanceof Pa?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{Dg(o)}catch(s){i=i??[],s instanceof Pa?i=[...i,...s.errors]:i.push(s)}}if(i)throw new Pa(i)}}add(i){var e;if(i&&i!==this)if(this.closed)Dg(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&vs(e,i)}remove(i){let{_finalizers:e}=this;e&&vs(e,i),i instanceof t&&i._removeParent(this)}};zt.EMPTY=(()=>{let t=new zt;return t.closed=!0,t})();var Bu=zt.EMPTY;function Ha(t){return t instanceof zt||t&&"closed"in t&&Fe(t.remove)&&Fe(t.add)&&Fe(t.unsubscribe)}function Dg(t){Fe(t)?t():t.unsubscribe()}var Kn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var uo={setTimeout(t,i,...e){let{delegate:n}=uo;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=uo;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ba(t){uo.setTimeout(()=>{let{onUnhandledError:i}=Kn;if(i)i(t);else throw t})}function Cs(){}var Eg=ju("C",void 0,void 0);function Mg(t){return ju("E",void 0,t)}function Og(t){return ju("N",t,void 0)}function ju(t,i,e){return{kind:t,value:i,error:e}}var Dr=null;function po(t){if(Kn.useDeprecatedSynchronousErrorHandling){let i=!Dr;if(i&&(Dr={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=Dr;if(Dr=null,e)throw n}}else t()}function kg(t){Kn.useDeprecatedSynchronousErrorHandling&&Dr&&(Dr.errorThrown=!0,Dr.error=t)}var Er=class extends zt{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,Ha(i)&&i.add(this)):this.destination=lw}static create(i,e,n){return new ho(i,e,n)}next(i){this.isStopped?Uu(Og(i),this):this._next(i)}error(i){this.isStopped?Uu(Mg(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?Uu(Eg,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},sw=Function.prototype.bind;function zu(t,i){return sw.call(t,i)}var $u=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){ja(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){ja(n)}else ja(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){ja(e)}}},ho=class extends Er{constructor(i,e,n){super();let r;if(Fe(i)||!i)r={next:i??void 0,error:e??void 0,complete:n??void 0};else{let o;this&&Kn.useDeprecatedNextContext?(o=Object.create(i),o.unsubscribe=()=>this.unsubscribe(),r={next:i.next&&zu(i.next,o),error:i.error&&zu(i.error,o),complete:i.complete&&zu(i.complete,o)}):r=i}this.destination=new $u(r)}};function ja(t){Kn.useDeprecatedSynchronousErrorHandling?kg(t):Ba(t)}function aw(t){throw t}function Uu(t,i){let{onStoppedNotification:e}=Kn;e&&uo.setTimeout(()=>e(t,i))}var lw={closed:!0,next:Cs,error:aw,complete:Cs};var fo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function In(t){return t}function Gu(...t){return Wu(t)}function Wu(t){return t.length===0?In:t.length===1?t[0]:function(e){return t.reduce((n,r)=>r(n),e)}}var Xe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,r){let o=uw(e)?e:new ho(e,n,r);return po(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=Fg(n),new n((r,o)=>{let s=new ho({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[fo](){return this}pipe(...e){return Wu(e)(this)}toPromise(e){return e=Fg(e),new e((n,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>n(o))})}}return t.create=i=>new t(i),t})();function Fg(t){var i;return(i=t??Kn.Promise)!==null&&i!==void 0?i:Promise}function cw(t){return t&&Fe(t.next)&&Fe(t.error)&&Fe(t.complete)}function uw(t){return t&&t instanceof Er||cw(t)&&Ha(t)}function qu(t){return Fe(t?.lift)}function Ze(t){return i=>{if(qu(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function We(t,i,e,n,r){return new Ku(t,i,e,n,r)}var Ku=class extends Er{constructor(i,e,n,r,o,s){super(i),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){i.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){i.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){i.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function mo(){return Ze((t,i)=>{let e=null;t._refCount++;let n=We(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var go=class extends Xe{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,qu(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new zt;let e=this.getSubject();i.add(this.source.subscribe(We(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=zt.EMPTY)}return i}refCount(){return mo()(this)}};var Ag=co(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var nt=(()=>{class t extends Xe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new za(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new Ag}next(e){po(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){po(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){po(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:r,observers:o}=this;return n||r?Bu:(this.currentObservers=null,o.push(e),new zt(()=>{this.currentObservers=null,vs(o,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:r,isStopped:o}=this;n?e.error(r):o&&e.complete()}asObservable(){let e=new Xe;return e.source=this,e}}return t.create=(i,e)=>new za(i,e),t})(),za=class extends nt{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:Bu}};var Xt=class extends nt{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var xn=new Xe(t=>t.complete());function Rg(t){return t&&Fe(t.schedule)}function Lg(t){return t[t.length-1]}function Ua(t){return Fe(Lg(t))?t.pop():void 0}function Zi(t){return Rg(Lg(t))?t.pop():void 0}function Vg(t,i,e,n){function r(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(h){try{u(n.next(h))}catch(_){s(_)}}function l(h){try{u(n.throw(h))}catch(_){s(_)}}function u(h){h.done?o(h.value):r(h.value).then(a,l)}u((n=n.apply(t,i||[])).next())})}function Ng(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mr(t){return this instanceof Mr?(this.v=t,this):new Mr(t)}function Pg(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),r,o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(I){n[I]&&(r[I]=function(S){return new Promise(function(M,A){o.push([I,S,M,A])>1||a(I,S)})})}function a(I,S){try{l(n[I](S))}catch(M){_(o[0][3],M)}}function l(I){I.value instanceof Mr?Promise.resolve(I.value.v).then(u,h):_(o[0][2],I)}function u(I){a("next",I)}function h(I){a("throw",I)}function _(I,S){I(S),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Hg(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof Ng=="function"?Ng(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}var $a=t=>t&&typeof t.length=="number"&&typeof t!="function";function Ga(t){return Fe(t?.then)}function Wa(t){return Fe(t[fo])}function qa(t){return Symbol.asyncIterator&&Fe(t?.[Symbol.asyncIterator])}function Ka(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function dw(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qa=dw();function Za(t){return Fe(t?.[Qa])}function Ya(t){return Pg(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:r}=yield Mr(e.read());if(r)return yield Mr(void 0);yield yield Mr(n)}}finally{e.releaseLock()}})}function Xa(t){return Fe(t?.getReader)}function Pt(t){if(t instanceof Xe)return t;if(t!=null){if(Wa(t))return pw(t);if($a(t))return hw(t);if(Ga(t))return fw(t);if(qa(t))return Bg(t);if(Za(t))return mw(t);if(Xa(t))return gw(t)}throw Ka(t)}function pw(t){return new Xe(i=>{let e=t[fo]();if(Fe(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hw(t){return new Xe(i=>{for(let e=0;e<t.length&&!i.closed;e++)i.next(t[e]);i.complete()})}function fw(t){return new Xe(i=>{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,Ba)})}function mw(t){return new Xe(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function Bg(t){return new Xe(i=>{_w(t,i).catch(e=>i.error(e))})}function gw(t){return Bg(Ya(t))}function _w(t,i){var e,n,r,o;return Vg(this,void 0,void 0,function*(){try{for(e=Hg(t);n=yield e.next(),!n.done;){let s=n.value;if(i.next(s),i.closed)return}}catch(s){r={error:s}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}i.complete()})}function hn(t,i,e,n=0,r=!1){let o=i.schedule(function(){e(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!r)return o}function Ja(t,i=0){return Ze((e,n)=>{e.subscribe(We(n,r=>hn(n,t,()=>n.next(r),i),()=>hn(n,t,()=>n.complete(),i),r=>hn(n,t,()=>n.error(r),i)))})}function el(t,i=0){return Ze((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function jg(t,i){return Pt(t).pipe(el(i),Ja(i))}function zg(t,i){return Pt(t).pipe(el(i),Ja(i))}function Ug(t,i){return new Xe(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function $g(t,i){return new Xe(e=>{let n;return hn(e,i,()=>{n=t[Qa](),hn(e,i,()=>{let r,o;try{({value:r,done:o}=n.next())}catch(s){e.error(s);return}o?e.complete():e.next(r)},0,!0)}),()=>Fe(n?.return)&&n.return()})}function tl(t,i){if(!t)throw new Error("Iterable cannot be null");return new Xe(e=>{hn(e,i,()=>{let n=t[Symbol.asyncIterator]();hn(e,i,()=>{n.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Gg(t,i){return tl(Ya(t),i)}function Wg(t,i){if(t!=null){if(Wa(t))return jg(t,i);if($a(t))return Ug(t,i);if(Ga(t))return zg(t,i);if(qa(t))return tl(t,i);if(Za(t))return $g(t,i);if(Xa(t))return Gg(t,i)}throw Ka(t)}function gt(t,i){return i?Wg(t,i):Pt(t)}function ve(...t){let i=Zi(t);return gt(t,i)}function _o(t,i){let e=Fe(t)?t:()=>t,n=r=>r.error(e());return new Xe(i?r=>i.schedule(n,0,r):n)}function Qu(t){return!!t&&(t instanceof Xe||Fe(t.lift)&&Fe(t.subscribe))}var Qn=co(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function di(t,i){let e=typeof i=="object";return new Promise((n,r)=>{let o=!1,s;t.subscribe({next:a=>{s=a,o=!0},error:r,complete:()=>{o?n(s):e?n(i.defaultValue):r(new Qn)}})})}function Ne(t,i){return Ze((e,n)=>{let r=0;e.subscribe(We(n,o=>{n.next(t.call(i,o,r++))}))})}var{isArray:yw}=Array;function vw(t,i){return yw(i)?t(...i):t(i)}function nl(t){return Ne(i=>vw(t,i))}var{isArray:Cw}=Array,{getPrototypeOf:bw,prototype:ww,keys:Iw}=Object;function il(t){if(t.length===1){let i=t[0];if(Cw(i))return{args:i,keys:null};if(xw(i)){let e=Iw(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function xw(t){return t&&typeof t=="object"&&bw(t)===ww}function rl(t,i){return t.reduce((e,n,r)=>(e[n]=i[r],e),{})}function bs(...t){let i=Zi(t),e=Ua(t),{args:n,keys:r}=il(t);if(n.length===0)return gt([],i);let o=new Xe(Tw(n,i,r?s=>rl(r,s):In));return e?o.pipe(nl(e)):o}function Tw(t,i,e=In){return n=>{qg(i,()=>{let{length:r}=t,o=new Array(r),s=r,a=r;for(let l=0;l<r;l++)qg(i,()=>{let u=gt(t[l],i),h=!1;u.subscribe(We(n,_=>{o[l]=_,h||(h=!0,a--),a||n.next(e(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function qg(t,i,e){t?hn(e,t,i):i()}function Kg(t,i,e,n,r,o,s,a){let l=[],u=0,h=0,_=!1,I=()=>{_&&!l.length&&!u&&i.complete()},S=A=>u<n?M(A):l.push(A),M=A=>{o&&i.next(A),u++;let V=!1;Pt(e(A,h++)).subscribe(We(i,B=>{r?.(B),o?S(B):i.next(B)},()=>{V=!0},void 0,()=>{if(V)try{for(u--;l.length&&u<n;){let B=l.shift();s?hn(i,s,()=>M(B)):M(B)}I()}catch(B){i.error(B)}}))};return t.subscribe(We(i,S,()=>{_=!0,I()})),()=>{a?.()}}function Ht(t,i,e=1/0){return Fe(i)?Ht((n,r)=>Ne((o,s)=>i(n,o,r,s))(Pt(t(n,r))),e):(typeof i=="number"&&(e=i),Ze((n,r)=>Kg(n,r,t,e)))}function Yi(t=1/0){return Ht(In,t)}function Qg(){return Yi(1)}function yo(...t){return Qg()(gt(t,Zi(t)))}function ol(t){return new Xe(i=>{Pt(t()).subscribe(i)})}function Zu(...t){let i=Ua(t),{args:e,keys:n}=il(t),r=new Xe(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),l=s,u=s;for(let h=0;h<s;h++){let _=!1;Pt(e[h]).subscribe(We(o,I=>{_||(_=!0,u--),a[h]=I},()=>l--,void 0,()=>{(!l||!_)&&(u||o.next(n?rl(n,a):a),o.complete())}))}});return i?r.pipe(nl(i)):r}function fn(t,i){return Ze((e,n)=>{let r=0;e.subscribe(We(n,o=>t.call(i,o,r++)&&n.next(o)))})}function Xi(t){return Ze((i,e)=>{let n=null,r=!1,o;n=i.subscribe(We(e,void 0,void 0,s=>{o=Pt(t(s,Xi(t)(i))),n?(n.unsubscribe(),n=null,o.subscribe(e)):r=!0})),r&&(n.unsubscribe(),n=null,o.subscribe(e))})}function Zg(t,i,e,n,r){return(o,s)=>{let a=e,l=i,u=0;o.subscribe(We(s,h=>{let _=u++;l=a?t(l,h,_):(a=!0,h),n&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function Ei(t,i){return Fe(i)?Ht(t,i,1):Ht(t,1)}function Ji(t){return Ze((i,e)=>{let n=!1;i.subscribe(We(e,r=>{n=!0,e.next(r)},()=>{n||e.next(t),e.complete()}))})}function Mi(t){return t<=0?()=>xn:Ze((i,e)=>{let n=0;i.subscribe(We(e,r=>{++n<=t&&(e.next(r),t<=n&&e.complete())}))})}function Yu(t){return Ne(()=>t)}function sl(t=Sw){return Ze((i,e)=>{let n=!1;i.subscribe(We(e,r=>{n=!0,e.next(r)},()=>n?e.complete():e.error(t())))})}function Sw(){return new Qn}function Or(t){return Ze((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function pi(t,i){let e=arguments.length>=2;return n=>n.pipe(t?fn((r,o)=>t(r,o,n)):In,Mi(1),e?Ji(i):sl(()=>new Qn))}function vo(t){return t<=0?()=>xn:Ze((i,e)=>{let n=[];i.subscribe(We(e,r=>{n.push(r),t<n.length&&n.shift()},()=>{for(let r of n)e.next(r);e.complete()},void 0,()=>{n=null}))})}function Xu(t,i){let e=arguments.length>=2;return n=>n.pipe(t?fn((r,o)=>t(r,o,n)):In,vo(1),e?Ji(i):sl(()=>new Qn))}function Ju(t,i){return Ze(Zg(t,i,arguments.length>=2,!0))}function ed(...t){let i=Zi(t);return Ze((e,n)=>{(i?yo(t,e,i):yo(t,e)).subscribe(n)})}function mn(t,i){return Ze((e,n)=>{let r=null,o=0,s=!1,a=()=>s&&!r&&n.complete();e.subscribe(We(n,l=>{r?.unsubscribe();let u=0,h=o++;Pt(t(l,h)).subscribe(r=We(n,_=>n.next(i?i(l,_,h,u++):_),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function td(t){return Ze((i,e)=>{Pt(t).subscribe(We(e,()=>e.complete(),Cs)),!e.closed&&i.subscribe(e)})}function Kt(t,i,e){let n=Fe(t)||i||e?{next:t,error:i,complete:e}:t;return n?Ze((r,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;r.subscribe(We(o,l=>{var u;(u=n.next)===null||u===void 0||u.call(n,l),o.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),o.complete()},l=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,l),o.error(l)},()=>{var l,u;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):In}var B0="https://g.co/ng/security#xss",G=class extends Error{constructor(i,e){super(Hl(i,e)),this.code=i}};function Hl(t,i){return`${`NG0${Math.abs(t)}`}${i?": "+i:""}`}function As(t){return{toString:t}.toString()}var al="__parameters__";function Dw(t){return function(...e){if(t){let n=t(...e);for(let r in n)this[r]=n[r]}}}function j0(t,i,e){return As(()=>{let n=Dw(i);function r(...o){if(this instanceof r)return n.apply(this,o),this;let s=new r(...o);return a.annotation=s,a;function a(l,u,h){let _=l.hasOwnProperty(al)?l[al]:Object.defineProperty(l,al,{value:[]})[al];for(;_.length<=h;)_.push(null);return(_[h]=_[h]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var on=globalThis;function ut(t){for(let i in t)if(t[i]===ut)return i;throw Error("Could not find renamed property on target object.")}function Ew(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function ln(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(ln).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let i=t.toString();if(i==null)return""+i;let e=i.indexOf(`
4
+ `);return e===-1?i:i.substring(0,e)}function gd(t,i){return t==null||t===""?i===null?"":i:i==null||i===""?t:t+" "+i}var Mw=ut({__forward_ref__:ut});function dt(t){return t.__forward_ref__=dt,t.toString=function(){return ln(this())},t}function an(t){return z0(t)?t():t}function z0(t){return typeof t=="function"&&t.hasOwnProperty(Mw)&&t.__forward_ref__===dt}function q(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ee(t){return{providers:t.providers||[],imports:t.imports||[]}}function Bl(t){return Yg(t,$0)||Yg(t,G0)}function U0(t){return Bl(t)!==null}function Yg(t,i){return t.hasOwnProperty(i)?t[i]:null}function Ow(t){let i=t&&(t[$0]||t[G0]);return i||null}function Xg(t){return t&&(t.hasOwnProperty(Jg)||t.hasOwnProperty(kw))?t[Jg]:null}var $0=ut({\u0275prov:ut}),Jg=ut({\u0275inj:ut}),G0=ut({ngInjectableDef:ut}),kw=ut({ngInjectorDef:ut}),he=class{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=q({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function W0(t){return t&&!!t.\u0275providers}var Fw=ut({\u0275cmp:ut}),Aw=ut({\u0275dir:ut}),Rw=ut({\u0275pipe:ut}),Lw=ut({\u0275mod:ut}),Cl=ut({\u0275fac:ut}),ws=ut({__NG_ELEMENT_ID__:ut}),e0=ut({__NG_ENV_ID__:ut});function Ar(t){return typeof t=="string"?t:t==null?"":String(t)}function Nw(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ar(t)}function Vw(t,i){let e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new G(-200,t)}function Ip(t,i){throw new G(-201,!1)}var Ue=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ue||{}),_d;function q0(){return _d}function gn(t){let i=_d;return _d=t,i}function K0(t,i,e){let n=Bl(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&Ue.Optional)return null;if(i!==void 0)return i;Ip(t,"Injector")}var Pw={},Is=Pw,yd="__NG_DI_FLAG__",bl="ngTempTokenPath",Hw="ngTokenPath",Bw=/\n/gm,jw="\u0275",t0="__source",xo;function zw(){return xo}function er(t){let i=xo;return xo=t,i}function Uw(t,i=Ue.Default){if(xo===void 0)throw new G(-203,!1);return xo===null?K0(t,void 0,i):xo.get(t,i&Ue.Optional?null:void 0,i)}function Y(t,i=Ue.Default){return(q0()||Uw)(an(t),i)}function W(t,i=Ue.Default){return Y(t,jl(i))}function jl(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function vd(t){let i=[];for(let e=0;e<t.length;e++){let n=an(t[e]);if(Array.isArray(n)){if(n.length===0)throw new G(900,!1);let r,o=Ue.Default;for(let s=0;s<n.length;s++){let a=n[s],l=$w(a);typeof l=="number"?l===-1?r=a.token:o|=l:r=a}i.push(Y(r,o))}else i.push(Y(n))}return i}function Q0(t,i){return t[yd]=i,t.prototype[yd]=i,t}function $w(t){return t[yd]}function Gw(t,i,e,n){let r=t[bl];throw i[t0]&&r.unshift(i[t0]),t.message=Ww(`
5
+ `+t.message,r,e,n),t[Hw]=r,t[bl]=null,t}function Ww(t,i,e,n=null){t=t&&t.charAt(0)===`
6
+ `&&t.charAt(1)==jw?t.slice(2):t;let r=ln(i);if(Array.isArray(i))r=i.map(ln).join(" -> ");else if(typeof i=="object"){let o=[];for(let s in i)if(i.hasOwnProperty(s)){let a=i[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):ln(a)))}r=`{${o.join(", ")}}`}return`${e}${n?"("+n+")":""}[${r}]: ${t.replace(Bw,`
7
+ `)}`}var Rs=Q0(j0("Optional"),8);var zl=Q0(j0("SkipSelf"),4);function Rr(t,i){let e=t.hasOwnProperty(Cl);return e?t[Cl]:null}function qw(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],o=i[n];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}function Kw(t){return t.flat(Number.POSITIVE_INFINITY)}function xp(t,i){t.forEach(e=>Array.isArray(e)?xp(e,i):i(e))}function Z0(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function wl(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Qw(t,i){let e=[];for(let n=0;n<t;n++)e.push(i);return e}function Zw(t,i,e,n){let r=t.length;if(r==i)t.push(e,n);else if(r===1)t.push(n,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>i;){let o=r-2;t[r]=t[o],r--}t[i]=e,t[i+1]=n}}function Ls(t,i,e){let n=Ns(t,i);return n>=0?t[n|1]=e:(n=~n,Zw(t,n,i,e)),n}function nd(t,i){let e=Ns(t,i);if(e>=0)return t[e|1]}function Ns(t,i){return Yw(t,i,1)}function Yw(t,i,e){let n=0,r=t.length>>e;for(;r!==n;){let o=n+(r-n>>1),s=t[o<<e];if(i===s)return o<<e;s>i?r=o:n=o+1}return~(r<<e)}var So={},_n=[],Do=new he(""),Y0=new he("",-1),X0=new he(""),Il=class{get(i,e=Is){if(e===Is){let n=new Error(`NullInjectorError: No provider for ${ln(i)}!`);throw n.name="NullInjectorError",n}return e}},Tp=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Tp||{}),mi=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(mi||{}),C=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(C||{});function Xw(t,i,e){let n=t.length;for(;;){let r=t.indexOf(i,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=i.length;if(r+o===n||t.charCodeAt(r+o)<=32)return r}e=r+1}}function Cd(t,i,e){let n=0;for(;n<e.length;){let r=e[n];if(typeof r=="number"){if(r!==0)break;n++;let o=e[n++],s=e[n++],a=e[n++];t.setAttribute(i,s,a,o)}else{let o=r,s=e[++n];Jw(o)?t.setProperty(i,o,s):t.setAttribute(i,o,s),n++}}return n}function J0(t){return t===3||t===4||t===6}function Jw(t){return t.charCodeAt(0)===64}function xs(t,i){if(!(i===null||i.length===0))if(t===null||t.length===0)t=i.slice();else{let e=-1;for(let n=0;n<i.length;n++){let r=i[n];typeof r=="number"?e=r:e===0||(e===-1||e===2?n0(t,e,r,null,i[++n]):n0(t,e,r,null,null))}}return t}function n0(t,i,e,n,r){let o=0,s=t.length;if(i===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===i){s=-1;break}else if(a>i){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===e){if(n===null){r!==null&&(t[o+1]=r);return}else if(n===t[o+1]){t[o+2]=r;return}}o++,n!==null&&o++,r!==null&&o++}s!==-1&&(t.splice(s,0,i),o=s+1),t.splice(o++,0,e),n!==null&&t.splice(o++,0,n),r!==null&&t.splice(o++,0,r)}var e_="ng-template";function eI(t,i,e,n){let r=0;if(n){for(;r<i.length&&typeof i[r]=="string";r+=2)if(i[r]==="class"&&Xw(i[r+1].toLowerCase(),e,0)!==-1)return!0}else if(Sp(t))return!1;if(r=i.indexOf(1,r),r>-1){let o;for(;++r<i.length&&typeof(o=i[r])=="string";)if(o.toLowerCase()===e)return!0}return!1}function Sp(t){return t.type===4&&t.value!==e_}function tI(t,i,e){let n=t.type===4&&!e?e_:t.value;return i===n}function nI(t,i,e){let n=4,r=t.attrs,o=r!==null?oI(r):0,s=!1;for(let a=0;a<i.length;a++){let l=i[a];if(typeof l=="number"){if(!s&&!Zn(n)&&!Zn(l))return!1;if(s&&Zn(l))continue;s=!1,n=l|n&1;continue}if(!s)if(n&4){if(n=2|n&1,l!==""&&!tI(t,l,e)||l===""&&i.length===1){if(Zn(n))return!1;s=!0}}else if(n&8){if(r===null||!eI(t,r,l,e)){if(Zn(n))return!1;s=!0}}else{let u=i[++a],h=iI(l,r,Sp(t),e);if(h===-1){if(Zn(n))return!1;s=!0;continue}if(u!==""){let _;if(h>o?_="":_=r[h+1].toLowerCase(),n&2&&u!==_){if(Zn(n))return!1;s=!0}}}}return Zn(n)||s}function Zn(t){return(t&1)===0}function iI(t,i,e,n){if(i===null)return-1;let r=0;if(n||!e){let o=!1;for(;r<i.length;){let s=i[r];if(s===t)return r;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=i[++r];for(;typeof a=="string";)a=i[++r];continue}else{if(s===4)break;if(s===0){r+=4;continue}}r+=o?1:2}return-1}else return sI(i,t)}function t_(t,i,e=!1){for(let n=0;n<i.length;n++)if(nI(t,i[n],e))return!0;return!1}function rI(t){let i=t.attrs;if(i!=null){let e=i.indexOf(5);if(!(e&1))return i[e+1]}return null}function oI(t){for(let i=0;i<t.length;i++){let e=t[i];if(J0(e))return i}return t.length}function sI(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){let n=t[e];if(typeof n=="number")return-1;if(n===i)return e;e++}return-1}function aI(t,i){e:for(let e=0;e<i.length;e++){let n=i[e];if(t.length===n.length){for(let r=0;r<t.length;r++)if(t[r]!==n[r])continue e;return!0}}return!1}function i0(t,i){return t?":not("+i.trim()+")":i}function lI(t){let i=t[0],e=1,n=2,r="",o=!1;for(;e<t.length;){let s=t[e];if(typeof s=="string")if(n&2){let a=t[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?r+="."+s:n&4&&(r+=" "+s);else r!==""&&!Zn(s)&&(i+=i0(o,r),r=""),n=s,o=o||!Zn(n);e++}return r!==""&&(i+=i0(o,r)),i}function cI(t){return t.map(lI).join(",")}function uI(t){let i=[],e=[],n=1,r=2;for(;n<t.length;){let o=t[n];if(typeof o=="string")r===2?o!==""&&i.push(o,t[++n]):r===8&&e.push(o);else{if(!Zn(r))break;r=o}n++}return{attrs:i,classes:e}}function P(t){return As(()=>{let i=s_(t),e=Le($({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Tp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||mi.Emulated,styles:t.styles||_n,_:null,schemas:t.schemas||null,tView:null,id:""});a_(e);let n=t.dependencies;return e.directiveDefs=o0(n,!1),e.pipeDefs=o0(n,!0),e.id=hI(e),e})}function dI(t){return nr(t)||n_(t)}function pI(t){return t!==null}function te(t){return As(()=>({type:t.type,bootstrap:t.bootstrap||_n,declarations:t.declarations||_n,imports:t.imports||_n,exports:t.exports||_n,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function r0(t,i){if(t==null)return So;let e={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o,s,a=C.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),i?(e[o]=a!==C.None?[n,a]:n,i[o]=s):e[o]=n}return e}function $e(t){return As(()=>{let i=s_(t);return a_(i),i})}function Dp(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function nr(t){return t[Fw]||null}function n_(t){return t[Aw]||null}function i_(t){return t[Rw]||null}function r_(t){let i=nr(t)||n_(t)||i_(t);return i!==null?i.standalone:!1}function o_(t,i){let e=t[Lw]||null;if(!e&&i===!0)throw new Error(`Type ${ln(t)} does not have '\u0275mod' property.`);return e}function s_(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||So,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||_n,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:r0(t.inputs,i),outputs:r0(t.outputs),debugInfo:null}}function a_(t){t.features?.forEach(i=>i(t))}function o0(t,i){if(!t)return null;let e=i?i_:dI;return()=>(typeof t=="function"?t():t).map(n=>e(n)).filter(pI)}function hI(t){let i=0,e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of e)i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function Vo(t){return{\u0275providers:t}}function Ep(...t){return{\u0275providers:l_(!0,t),\u0275fromNgModule:!0}}function l_(t,...i){let e=[],n=new Set,r,o=s=>{e.push(s)};return xp(i,s=>{let a=s;bd(a,o,[],n)&&(r||=[],r.push(a))}),r!==void 0&&c_(r,o),e}function c_(t,i){for(let e=0;e<t.length;e++){let{ngModule:n,providers:r}=t[e];Mp(r,o=>{i(o,n)})}}function bd(t,i,e,n){if(t=an(t),!t)return!1;let r=null,o=Xg(t),s=!o&&nr(t);if(!o&&!s){let l=t.ngModule;if(o=Xg(l),o)r=l;else return!1}else{if(s&&!s.standalone)return!1;r=t}let a=n.has(r);if(s){if(a)return!1;if(n.add(r),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of l)bd(u,i,e,n)}}else if(o){if(o.imports!=null&&!a){n.add(r);let u;try{xp(o.imports,h=>{bd(h,i,e,n)&&(u||=[],u.push(h))})}finally{}u!==void 0&&c_(u,i)}if(!a){let u=Rr(r)||(()=>new r);i({provide:r,useFactory:u,deps:_n},r),i({provide:X0,useValue:r,multi:!0},r),i({provide:Do,useValue:()=>Y(r),multi:!0},r)}let l=o.providers;if(l!=null&&!a){let u=t;Mp(l,h=>{i(h,u)})}}else return!1;return r!==t&&t.providers!==void 0}function Mp(t,i){for(let e of t)W0(e)&&(e=e.\u0275providers),Array.isArray(e)?Mp(e,i):i(e)}var fI=ut({provide:String,useValue:ut});function u_(t){return t!==null&&typeof t=="object"&&fI in t}function mI(t){return!!(t&&t.useExisting)}function gI(t){return!!(t&&t.useFactory)}function Eo(t){return typeof t=="function"}function _I(t){return!!t.useClass}var Ul=new he(""),hl={},yI={},id;function Op(){return id===void 0&&(id=new Il),id}var cn=class{},Ts=class extends cn{get destroyed(){return this._destroyed}constructor(i,e,n,r){super(),this.parent=e,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Id(i,s=>this.processProvider(s)),this.records.set(Y0,Co(void 0,this)),r.has("environment")&&this.records.set(cn,Co(void 0,this));let o=this.records.get(Ul);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(X0,_n,Ue.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let i=et(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),et(i)}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();let e=er(this),n=gn(void 0),r;try{return i()}finally{er(e),gn(n)}}get(i,e=Is,n=Ue.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(e0))return i[e0](this);n=jl(n);let r,o=er(this),s=gn(void 0);try{if(!(n&Ue.SkipSelf)){let l=this.records.get(i);if(l===void 0){let u=II(i)&&Bl(i);u&&this.injectableDefInScope(u)?l=Co(wd(i),hl):l=null,this.records.set(i,l)}if(l!=null)return this.hydrate(i,l)}let a=n&Ue.Self?Op():this.parent;return e=n&Ue.Optional&&e===Is?null:e,a.get(i,e)}catch(a){if(a.name==="NullInjectorError"){if((a[bl]=a[bl]||[]).unshift(ln(i)),o)throw a;return Gw(a,i,"R3InjectorError",this.source)}else throw a}finally{gn(s),er(o)}}resolveInjectorInitializers(){let i=et(null),e=er(this),n=gn(void 0),r;try{let o=this.get(Do,_n,Ue.Self);for(let s of o)s()}finally{er(e),gn(n),et(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(ln(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new G(205,!1)}processProvider(i){i=an(i);let e=Eo(i)?i:an(i&&i.provide),n=CI(i);if(!Eo(i)&&i.multi===!0){let r=this.records.get(e);r||(r=Co(void 0,hl,!0),r.factory=()=>vd(r.multi),this.records.set(e,r)),e=i,r.multi.push(i)}this.records.set(e,n)}hydrate(i,e){let n=et(null);try{return e.value===hl&&(e.value=yI,e.value=e.factory()),typeof e.value=="object"&&e.value&&wI(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{et(n)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=an(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function wd(t){let i=Bl(t),e=i!==null?i.factory:Rr(t);if(e!==null)return e;if(t instanceof he)throw new G(204,!1);if(t instanceof Function)return vI(t);throw new G(204,!1)}function vI(t){if(t.length>0)throw new G(204,!1);let e=Ow(t);return e!==null?()=>e.factory(t):()=>new t}function CI(t){if(u_(t))return Co(void 0,t.useValue);{let i=d_(t);return Co(i,hl)}}function d_(t,i,e){let n;if(Eo(t)){let r=an(t);return Rr(r)||wd(r)}else if(u_(t))n=()=>an(t.useValue);else if(gI(t))n=()=>t.useFactory(...vd(t.deps||[]));else if(mI(t))n=()=>Y(an(t.useExisting));else{let r=an(t&&(t.useClass||t.provide));if(bI(t))n=()=>new r(...vd(t.deps));else return Rr(r)||wd(r)}return n}function Co(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function bI(t){return!!t.deps}function wI(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function II(t){return typeof t=="function"||typeof t=="object"&&t instanceof he}function Id(t,i){for(let e of t)Array.isArray(e)?Id(e,i):e&&W0(e)?Id(e.\u0275providers,i):i(e)}function ni(t,i){t instanceof Ts&&t.assertNotDestroyed();let e,n=er(t),r=gn(void 0);try{return i()}finally{er(n),gn(r)}}function p_(){return q0()!==void 0||zw()!=null}function h_(t){if(!p_())throw new G(-203,!1)}function xI(t){return typeof t=="function"}var Fi=0,He=1,Te=2,Jt=3,Yn=4,Dn=5,Ss=6,Ds=7,Xn=8,Mo=9,Jn=10,It=11,Es=12,s0=13,Po=14,ei=15,Vs=16,bo=17,Oi=18,$l=19,f_=20,tr=21,fl=22,Lr=23,Sn=25,m_=1;var Nr=7,xl=8,Oo=9,Tn=10,kp=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(kp||{});function kr(t){return Array.isArray(t)&&typeof t[m_]=="object"}function Ai(t){return Array.isArray(t)&&t[m_]===!0}function Fp(t){return(t.flags&4)!==0}function Gl(t){return t.componentOffset>-1}function Wl(t){return(t.flags&1)===1}function ir(t){return!!t.template}function TI(t){return(t[Te]&512)!==0}var xd=class{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function g_(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}function $t(){return __}function __(t){return t.type.prototype.ngOnChanges&&(t.setInput=DI),SI}$t.ngInherit=!0;function SI(){let t=v_(this),i=t?.current;if(i){let e=t.previous;if(e===So)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function DI(t,i,e,n,r){let o=this.declaredInputs[n],s=v_(t)||EI(t,{previous:So,current:null}),a=s.current||(s.current={}),l=s.previous,u=l[o];a[o]=new xd(u&&u.currentValue,e,l===So),g_(t,i,r,e)}var y_="__ngSimpleChanges__";function v_(t){return t[y_]||null}function EI(t,i){return t[y_]=i}var a0=null;var hi=function(t,i,e){a0?.(t,i,e)},C_="svg",MI="math",OI=!1;function kI(){return OI}function gi(t){for(;Array.isArray(t);)t=t[Fi];return t}function b_(t,i){return gi(i[t])}function Pn(t,i){return gi(i[t.index])}function w_(t,i){return t.data[i]}function I_(t,i){return t[i]}function sr(t,i){let e=i[t];return kr(e)?e:e[Fi]}function FI(t){return(t[Te]&4)===4}function Ap(t){return(t[Te]&128)===128}function AI(t){return Ai(t[Jt])}function ko(t,i){return i==null?null:t[i]}function x_(t){t[bo]=0}function RI(t){t[Te]&1024||(t[Te]|=1024,Ap(t)&&Ms(t))}function LI(t,i){for(;t>0;)i=i[Po],t--;return i}function Rp(t){return!!(t[Te]&9216||t[Lr]?.dirty)}function Td(t){t[Jn].changeDetectionScheduler?.notify(1),Rp(t)?Ms(t):t[Te]&64&&(kI()?(t[Te]|=1024,Ms(t)):t[Jn].changeDetectionScheduler?.notify())}function Ms(t){t[Jn].changeDetectionScheduler?.notify();let i=Os(t);for(;i!==null&&!(i[Te]&8192||(i[Te]|=8192,!Ap(i)));)i=Os(i)}function T_(t,i){if((t[Te]&256)===256)throw new G(911,!1);t[tr]===null&&(t[tr]=[]),t[tr].push(i)}function NI(t,i){if(t[tr]===null)return;let e=t[tr].indexOf(i);e!==-1&&t[tr].splice(e,1)}function Os(t){let i=t[Jt];return Ai(i)?i[Jt]:i}var Ve={lFrame:F_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function VI(){return Ve.lFrame.elementDepthCount}function PI(){Ve.lFrame.elementDepthCount++}function HI(){Ve.lFrame.elementDepthCount--}function S_(){return Ve.bindingsEnabled}function D_(){return Ve.skipHydrationRootTNode!==null}function BI(t){return Ve.skipHydrationRootTNode===t}function jI(){Ve.skipHydrationRootTNode=null}function De(){return Ve.lFrame.lView}function Et(){return Ve.lFrame.tView}function y(t){return Ve.lFrame.contextLView=t,t[Xn]}function v(t){return Ve.lFrame.contextLView=null,t}function sn(){let t=E_();for(;t!==null&&t.type===64;)t=t.parent;return t}function E_(){return Ve.lFrame.currentTNode}function zI(){let t=Ve.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function Ur(t,i){let e=Ve.lFrame;e.currentTNode=t,e.isParent=i}function Lp(){return Ve.lFrame.isParent}function Np(){Ve.lFrame.isParent=!1}function UI(){return Ve.lFrame.contextLView}function yi(){let t=Ve.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function $I(){return Ve.lFrame.bindingIndex}function GI(t){return Ve.lFrame.bindingIndex=t}function ql(){return Ve.lFrame.bindingIndex++}function Vp(t){let i=Ve.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function WI(){return Ve.lFrame.inI18n}function qI(t,i){let e=Ve.lFrame;e.bindingIndex=e.bindingRootIndex=t,Sd(i)}function KI(){return Ve.lFrame.currentDirectiveIndex}function Sd(t){Ve.lFrame.currentDirectiveIndex=t}function QI(t){let i=Ve.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function M_(){return Ve.lFrame.currentQueryIndex}function Pp(t){Ve.lFrame.currentQueryIndex=t}function ZI(t){let i=t[He];return i.type===2?i.declTNode:i.type===1?t[Dn]:null}function O_(t,i,e){if(e&Ue.SkipSelf){let r=i,o=t;for(;r=r.parent,r===null&&!(e&Ue.Host);)if(r=ZI(o),r===null||(o=o[Po],r.type&10))break;if(r===null)return!1;i=r,t=o}let n=Ve.lFrame=k_();return n.currentTNode=i,n.lView=t,!0}function Hp(t){let i=k_(),e=t[He];Ve.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function k_(){let t=Ve.lFrame,i=t===null?null:t.child;return i===null?F_(t):i}function F_(t){let i={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:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function A_(){let t=Ve.lFrame;return Ve.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var R_=A_;function Bp(){let t=A_();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function YI(t){return(Ve.lFrame.contextLView=LI(t,Ve.lFrame.contextLView))[Xn]}function ar(){return Ve.lFrame.selectedIndex}function Vr(t){Ve.lFrame.selectedIndex=t}function Kl(){let t=Ve.lFrame;return w_(t.tView,t.selectedIndex)}function le(){Ve.lFrame.currentNamespace=C_}function XI(){return Ve.lFrame.currentNamespace}var L_=!0;function Ql(){return L_}function Zl(t){L_=t}function JI(t,i,e){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:o}=i.type.prototype;if(n){let s=__(i);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function Yl(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e<n;e++){let o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:h}=o;s&&(t.contentHooks??=[]).push(-e,s),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),l&&(t.viewHooks??=[]).push(-e,l),u&&((t.viewHooks??=[]).push(e,u),(t.viewCheckHooks??=[]).push(e,u)),h!=null&&(t.destroyHooks??=[]).push(e,h)}}function ml(t,i,e){N_(t,i,3,e)}function gl(t,i,e,n){(t[Te]&3)===e&&N_(t,i,e,n)}function rd(t,i){let e=t[Te];(e&3)===i&&(e&=16383,e+=1,t[Te]=e)}function N_(t,i,e,n){let r=n!==void 0?t[bo]&65535:0,o=n??-1,s=i.length-1,a=0;for(let l=r;l<s;l++)if(typeof i[l+1]=="number"){if(a=i[l],n!=null&&a>=n)break}else i[l]<0&&(t[bo]+=65536),(a<o||o==-1)&&(ex(t,e,i,l),t[bo]=(t[bo]&4294901760)+l+2),l++}function l0(t,i){hi(4,t,i);let e=et(null);try{i.call(t)}finally{et(e),hi(5,t,i)}}function ex(t,i,e,n){let r=e[n]<0,o=e[n+1],s=r?-e[n]:e[n],a=t[s];r?t[Te]>>14<t[bo]>>16&&(t[Te]&3)===i&&(t[Te]+=16384,l0(a,o)):l0(a,o)}var To=-1,Pr=class{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}};function tx(t){return t instanceof Pr}function nx(t){return(t.flags&8)!==0}function ix(t){return(t.flags&16)!==0}function V_(t){return t!==To}function Tl(t){return t&32767}function rx(t){return t>>16}function Sl(t,i){let e=rx(t),n=i;for(;e>0;)n=n[Po],e--;return n}var Dd=!0;function Dl(t){let i=Dd;return Dd=t,i}var ox=256,P_=ox-1,H_=5,sx=0,fi={};function ax(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(ws)&&(n=e[ws]),n==null&&(n=e[ws]=sx++);let r=n&P_,o=1<<r;i.data[t+(r>>H_)]|=o}function El(t,i){let e=B_(t,i);if(e!==-1)return e;let n=i[He];n.firstCreatePass&&(t.injectorIndex=i.length,od(n.data,t),od(i,null),od(n.blueprint,null));let r=jp(t,i),o=t.injectorIndex;if(V_(r)){let s=Tl(r),a=Sl(r,i),l=a[He].data;for(let u=0;u<8;u++)i[o+u]=a[s+u]|l[s+u]}return i[o+8]=r,o}function od(t,i){t.push(0,0,0,0,0,0,0,0,i)}function B_(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function jp(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,r=i;for(;r!==null;){if(n=G_(r),n===null)return To;if(e++,r=r[Po],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return To}function Ed(t,i,e){ax(t,i,e)}function lx(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,r=0;for(;r<n;){let o=e[r];if(J0(o))break;if(o===0)r=r+2;else if(typeof o=="number")for(r++;r<n&&typeof e[r]=="string";)r++;else{if(o===i)return e[r+1];r=r+2}}}return null}function j_(t,i,e){if(e&Ue.Optional||t!==void 0)return t;Ip(i,"NodeInjector")}function z_(t,i,e,n){if(e&Ue.Optional&&n===void 0&&(n=null),!(e&(Ue.Self|Ue.Host))){let r=t[Mo],o=gn(void 0);try{return r?r.get(i,n,e&Ue.Optional):K0(i,n,e&Ue.Optional)}finally{gn(o)}}return j_(n,i,e)}function U_(t,i,e,n=Ue.Default,r){if(t!==null){if(i[Te]&2048&&!(n&Ue.Self)){let s=px(t,i,e,n,fi);if(s!==fi)return s}let o=$_(t,i,e,n,fi);if(o!==fi)return o}return z_(i,e,n,r)}function $_(t,i,e,n,r){let o=ux(e);if(typeof o=="function"){if(!O_(i,t,n))return n&Ue.Host?j_(r,e,n):z_(i,e,n,r);try{let s;if(s=o(n),s==null&&!(n&Ue.Optional))Ip(e);else return s}finally{R_()}}else if(typeof o=="number"){let s=null,a=B_(t,i),l=To,u=n&Ue.Host?i[ei][Dn]:null;for((a===-1||n&Ue.SkipSelf)&&(l=a===-1?jp(t,i):i[a+8],l===To||!u0(n,!1)?a=-1:(s=i[He],a=Tl(l),i=Sl(l,i)));a!==-1;){let h=i[He];if(c0(o,a,h.data)){let _=cx(a,i,e,s,n,u);if(_!==fi)return _}l=i[a+8],l!==To&&u0(n,i[He].data[a+8]===u)&&c0(o,a,i)?(s=h,a=Tl(l),i=Sl(l,i)):a=-1}}return r}function cx(t,i,e,n,r,o){let s=i[He],a=s.data[t+8],l=n==null?Gl(a)&&Dd:n!=s&&(a.type&3)!==0,u=r&Ue.Host&&o===a,h=_l(a,s,e,l,u);return h!==null?Hr(i,s,h,a):fi}function _l(t,i,e,n,r){let o=t.providerIndexes,s=i.data,a=o&1048575,l=t.directiveStart,u=t.directiveEnd,h=o>>20,_=n?a:a+h,I=r?a+h:u;for(let S=_;S<I;S++){let M=s[S];if(S<l&&e===M||S>=l&&M.type===e)return S}if(r){let S=s[l];if(S&&ir(S)&&S.type===e)return l}return null}function Hr(t,i,e,n){let r=t[e],o=i.data;if(tx(r)){let s=r;s.resolving&&Vw(Nw(o[e]));let a=Dl(s.canSeeViewProviders);s.resolving=!0;let l,u=s.injectImpl?gn(s.injectImpl):null,h=O_(t,n,Ue.Default);try{r=t[e]=s.factory(void 0,o,t,n),i.firstCreatePass&&e>=n.directiveStart&&JI(e,o[e],i)}finally{u!==null&&gn(u),Dl(a),s.resolving=!1,R_()}}return r}function ux(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(ws)?t[ws]:void 0;return typeof i=="number"?i>=0?i&P_:dx:i}function c0(t,i,e){let n=1<<t;return!!(e[i+(t>>H_)]&n)}function u0(t,i){return!(t&Ue.Self)&&!(t&Ue.Host&&i)}var Fr=class{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return U_(this._tNode,this._lView,i,jl(n),e)}};function dx(){return new Fr(sn(),De())}function ie(t){return As(()=>{let i=t.prototype.constructor,e=i[Cl]||Md(i),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let o=r[Cl]||Md(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Md(t){return z0(t)?()=>{let i=Md(an(t));return i&&i()}:Rr(t)}function px(t,i,e,n,r){let o=t,s=i;for(;o!==null&&s!==null&&s[Te]&2048&&!(s[Te]&512);){let a=$_(o,s,e,n|Ue.Self,fi);if(a!==fi)return a;let l=o.parent;if(!l){let u=s[f_];if(u){let h=u.get(e,fi,n);if(h!==fi)return h}l=G_(s),s=s[Po]}o=l}return r}function G_(t){let i=t[He],e=i.type;return e===2?i.declTNode:e===1?t[Dn]:null}function zp(t){return lx(sn(),t)}function d0(t,i=null,e=null,n){let r=W_(t,i,e,n);return r.resolveInjectorInitializers(),r}function W_(t,i=null,e=null,n,r=new Set){let o=[e||_n,Ep(t)];return n=n||(typeof t=="object"?void 0:ln(t)),new Ts(o,i||Op(),n||null,r)}var Hn=(()=>{let i=class i{static create(n,r){if(Array.isArray(n))return d0({name:""},r,n,"");{let o=n.name??"";return d0({name:o},n.parent,n.providers,o)}}};i.THROW_IF_NOT_FOUND=Is,i.NULL=new Il,i.\u0275prov=q({token:i,providedIn:"any",factory:()=>Y(Y0)}),i.__NG_ELEMENT_ID__=-1;let t=i;return t})();var hx="ngOriginalError";function sd(t){return t[hx]}var ti=class{constructor(){this._console=console}handleError(i){let e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&sd(i);for(;e&&sd(e);)e=sd(e);return e||null}},q_=new he("",{providedIn:"root",factory:()=>W(ti).handleError.bind(void 0)}),Xl=(()=>{let i=class i{};i.__NG_ELEMENT_ID__=fx,i.__NG_ENV_ID__=n=>n;let t=i;return t})(),Od=class extends Xl{constructor(i){super(),this._lView=i}onDestroy(i){return T_(this._lView,i),()=>NI(this._lView,i)}};function fx(){return new Od(De())}function mx(){return Ho(sn(),De())}function Ho(t,i){return new _e(Pn(t,i))}var _e=(()=>{let i=class i{constructor(n){this.nativeElement=n}};i.__NG_ELEMENT_ID__=mx;let t=i;return t})();function gx(t){return t instanceof _e?t.nativeElement:t}var kd=class extends nt{constructor(i=!1){super(),this.destroyRef=void 0,this.__isAsync=i,p_()&&(this.destroyRef=W(Xl,{optional:!0})??void 0)}emit(i){let e=et(null);try{super.next(i)}finally{et(e)}}subscribe(i,e,n){let r=i,o=e||(()=>null),s=n;if(i&&typeof i=="object"){let l=i;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=ad(o),r&&(r=ad(r)),s&&(s=ad(s)));let a=super.subscribe({next:r,error:o,complete:s});return i instanceof zt&&i.add(a),a}};function ad(t){return i=>{setTimeout(t,void 0,i)}}var O=kd;function _x(){return this._results[Symbol.iterator]()}var Fd=class t{get changes(){return this._changes??=new O}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let e=t.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=_x)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=Kw(i);(this._changesDetected=!qw(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function K_(t){return(t.flags&128)===128}var Ad;function Q_(t){Ad=t}function Z_(){if(Ad!==void 0)return Ad;if(typeof document<"u")return document;throw new G(210,!1)}var Jl=new he("",{providedIn:"root",factory:()=>yx}),yx="ng",Up=new he(""),pt=new he("",{providedIn:"platform",factory:()=>"unknown"});var $p=new he(""),Gp=new he("",{providedIn:"root",factory:()=>Z_().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var vx="h",Cx="b";var bx=()=>null;function Wp(t,i,e=!1){return bx(t,i,e)}var Y_=!1,wx=new he("",{providedIn:"root",factory:()=>Y_});var ll;function Ix(){if(ll===void 0&&(ll=null,on.trustedTypes))try{ll=on.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ll}function ec(t){return Ix()?.createHTML(t)||t}var cl;function X_(){if(cl===void 0&&(cl=null,on.trustedTypes))try{cl=on.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return cl}function p0(t){return X_()?.createHTML(t)||t}function h0(t){return X_()?.createScriptURL(t)||t}var ki=class{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${B0})`}},Rd=class extends ki{getTypeName(){return"HTML"}},Ld=class extends ki{getTypeName(){return"Style"}},Nd=class extends ki{getTypeName(){return"Script"}},Vd=class extends ki{getTypeName(){return"URL"}},Pd=class extends ki{getTypeName(){return"ResourceURL"}};function En(t){return t instanceof ki?t.changingThisBreaksApplicationSecurity:t}function Ri(t,i){let e=xx(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${B0})`)}return e===i}function xx(t){return t instanceof ki&&t.getTypeName()||null}function J_(t){return new Rd(t)}function ey(t){return new Ld(t)}function ty(t){return new Nd(t)}function ny(t){return new Vd(t)}function iy(t){return new Pd(t)}function Tx(t){let i=new Bd(t);return Sx()?new Hd(i):i}var Hd=class{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{let e=new window.DOMParser().parseFromString(ec(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}},Bd=class{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=ec(i),e}};function Sx(){try{return!!new window.DOMParser().parseFromString(ec(""),"text/html")}catch{return!1}}var Dx=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function tc(t){return t=String(t),t.match(Dx)?t:"unsafe:"+t}function Li(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Ps(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var ry=Li("area,br,col,hr,img,wbr"),oy=Li("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),sy=Li("rp,rt"),Ex=Ps(sy,oy),Mx=Ps(oy,Li("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")),Ox=Ps(sy,Li("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")),f0=Ps(ry,Mx,Ox,Ex),ay=Li("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),kx=Li("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"),Fx=Li("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"),Ax=Ps(ay,kx,Fx),Rx=Li("script,style,template"),jd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){r.push(e),e=Vx(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=Nx(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(i){let e=m0(i).toLowerCase();if(!f0.hasOwnProperty(e))return this.sanitizedSomething=!0,!Rx.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let r=0;r<n.length;r++){let o=n.item(r),s=o.name,a=s.toLowerCase();if(!Ax.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;ay[a]&&(l=tc(l)),this.buf.push(" ",s,'="',g0(l),'"')}return this.buf.push(">"),!0}endElement(i){let e=m0(i).toLowerCase();f0.hasOwnProperty(e)&&!ry.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(g0(i))}};function Lx(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Nx(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw ly(i);return i}function Vx(t){let i=t.firstChild;if(i&&Lx(t,i))throw ly(i);return i}function m0(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function ly(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Px=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hx=/([^\#-~ |!])/g;function g0(t){return t.replace(/&/g,"&amp;").replace(Px,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(Hx,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var ul;function qp(t,i){let e=null;try{ul=ul||Tx(t);let n=i?String(i):"";e=ul.getInertBodyElement(n);let r=5,o=n;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,n=o,o=e.innerHTML,e=ul.getInertBodyElement(n)}while(n!==o);let a=new jd().sanitizeChildren(_0(e)||e);return ec(a)}finally{if(e){let n=_0(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function _0(t){return"content"in t&&Bx(t)?t.content:null}function Bx(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var ii=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(ii||{});function ri(t){let i=Qp();return i?p0(i.sanitize(ii.HTML,t)||""):Ri(t,"HTML")?p0(En(t)):qp(Z_(),Ar(t))}function Kp(t){let i=Qp();return i?i.sanitize(ii.URL,t)||"":Ri(t,"URL")?En(t):tc(Ar(t))}function jx(t){let i=Qp();if(i)return h0(i.sanitize(ii.RESOURCE_URL,t)||"");if(Ri(t,"ResourceURL"))return h0(En(t));throw new G(904,!1)}function zx(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?jx:Kp}function cy(t,i,e){return zx(i,e)(t)}function Qp(){let t=De();return t&&t[Jn].sanitizer}var Ux=/^>|^->|<!--|-->|--!>|<!-$/g,$x=/(<|>)/g,Gx="\u200B$1\u200B";function Wx(t){return t.replace(Ux,i=>i.replace($x,Gx))}var uy=new Map,qx=0;function Kx(){return qx++}function Qx(t){uy.set(t[$l],t)}function Zx(t){uy.delete(t[$l])}var y0="__ngContext__";function rr(t,i){kr(i)?(t[y0]=i[$l],Qx(i)):t[y0]=i}function dy(t){return t.ownerDocument}function py(t){return t instanceof Function?t():t}function Yx(t){return(t??W(Hn)).get(pt)==="browser"}var _i=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(_i||{}),Xx;function Zp(t,i){return Xx(t,i)}function wo(t,i,e,n,r){if(n!=null){let o,s=!1;Ai(n)?o=n:kr(n)&&(s=!0,n=n[Fi]);let a=gi(n);t===0&&e!==null?r==null?yy(i,e,a):Ml(i,e,a,r||null,!0):t===1&&e!==null?Ml(i,e,a,r||null,!0):t===2?fT(i,a,s):t===3&&i.destroyNode(a),o!=null&&gT(i,t,o,e,r)}}function Jx(t,i){return t.createText(i)}function eT(t,i,e){t.setValue(i,e)}function tT(t,i){return t.createComment(Wx(i))}function hy(t,i,e){return t.createElement(i,e)}function nT(t,i){fy(t,i),i[Fi]=null,i[Dn]=null}function iT(t,i,e,n,r,o){n[Fi]=r,n[Dn]=i,ic(t,n,e,1,r,o)}function fy(t,i){i[Jn].changeDetectionScheduler?.notify(1),ic(t,i,i[It],2,null,null)}function rT(t){let i=t[Es];if(!i)return ld(t[He],t);for(;i;){let e=null;if(kr(i))e=i[Es];else{let n=i[Tn];n&&(e=n)}if(!e){for(;i&&!i[Yn]&&i!==t;)kr(i)&&ld(i[He],i),i=i[Jt];i===null&&(i=t),kr(i)&&ld(i[He],i),e=i&&i[Yn]}i=e}}function oT(t,i,e,n){let r=Tn+n,o=e.length;n>0&&(e[r-1][Yn]=i),n<o-Tn?(i[Yn]=e[r],Z0(e,Tn+n,i)):(e.push(i),i[Yn]=null),i[Jt]=e;let s=i[Vs];s!==null&&e!==s&&sT(s,i);let a=i[Oi];a!==null&&a.insertView(t),Td(i),i[Te]|=128}function sT(t,i){let e=t[Oo],r=i[Jt][Jt][ei];i[ei]!==r&&(t[Te]|=kp.HasTransplantedViews),e===null?t[Oo]=[i]:e.push(i)}function my(t,i){let e=t[Oo],n=e.indexOf(i);e.splice(n,1)}function zd(t,i){if(t.length<=Tn)return;let e=Tn+i,n=t[e];if(n){let r=n[Vs];r!==null&&r!==t&&my(r,n),i>0&&(t[e-1][Yn]=n[Yn]);let o=wl(t,Tn+i);nT(n[He],n);let s=o[Oi];s!==null&&s.detachView(o[He]),n[Jt]=null,n[Yn]=null,n[Te]&=-129}return n}function gy(t,i){if(!(i[Te]&256)){let e=i[It];e.destroyNode&&ic(t,i,e,3,null,null),rT(i)}}function ld(t,i){if(i[Te]&256)return;let e=et(null);try{i[Te]&=-129,i[Te]|=256,i[Lr]&&Pu(i[Lr]),lT(t,i),aT(t,i),i[He].type===1&&i[It].destroy();let n=i[Vs];if(n!==null&&Ai(i[Jt])){n!==i[Jt]&&my(n,i);let r=i[Oi];r!==null&&r.detachView(t)}Zx(i)}finally{et(e)}}function aT(t,i){let e=t.cleanup,n=i[Ds];if(e!==null)for(let o=0;o<e.length-1;o+=2)if(typeof e[o]=="string"){let s=e[o+3];s>=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[e[o+1]];e[o].call(s)}n!==null&&(i[Ds]=null);let r=i[tr];if(r!==null){i[tr]=null;for(let o=0;o<r.length;o++){let s=r[o];s()}}}function lT(t,i){let e;if(t!=null&&(e=t.destroyHooks)!=null)for(let n=0;n<e.length;n+=2){let r=i[e[n]];if(!(r instanceof Pr)){let o=e[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=r[o[s]],l=o[s+1];hi(4,a,l);try{l.call(a)}finally{hi(5,a,l)}}else{hi(4,r,o);try{o.call(r)}finally{hi(5,r,o)}}}}}function _y(t,i,e){return cT(t,i.parent,e)}function cT(t,i,e){let n=i;for(;n!==null&&n.type&40;)i=n,n=i.parent;if(n===null)return e[Fi];{let{componentOffset:r}=n;if(r>-1){let{encapsulation:o}=t.data[n.directiveStart+r];if(o===mi.None||o===mi.Emulated)return null}return Pn(n,e)}}function Ml(t,i,e,n,r){t.insertBefore(i,e,n,r)}function yy(t,i,e){t.appendChild(i,e)}function v0(t,i,e,n,r){n!==null?Ml(t,i,e,n,r):yy(t,i,e)}function uT(t,i,e,n){t.removeChild(i,e,n)}function Yp(t,i){return t.parentNode(i)}function dT(t,i){return t.nextSibling(i)}function vy(t,i,e){return hT(t,i,e)}function pT(t,i,e){return t.type&40?Pn(t,e):null}var hT=pT,C0;function nc(t,i,e,n){let r=_y(t,n,i),o=i[It],s=n.parent||i[Dn],a=vy(s,n,i);if(r!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)v0(o,r,e[l],a,!1);else v0(o,r,e,a,!1);C0!==void 0&&C0(o,n,i,e,r)}function yl(t,i){if(i!==null){let e=i.type;if(e&3)return Pn(i,t);if(e&4)return Ud(-1,t[i.index]);if(e&8){let n=i.child;if(n!==null)return yl(t,n);{let r=t[i.index];return Ai(r)?Ud(-1,r):gi(r)}}else{if(e&32)return Zp(i,t)()||gi(t[i.index]);{let n=Cy(t,i);if(n!==null){if(Array.isArray(n))return n[0];let r=Os(t[ei]);return yl(r,n)}else return yl(t,i.next)}}}return null}function Cy(t,i){if(i!==null){let n=t[ei][Dn],r=i.projection;return n.projection[r]}return null}function Ud(t,i){let e=Tn+t+1;if(e<i.length){let n=i[e],r=n[He].firstChild;if(r!==null)return yl(n,r)}return i[Nr]}function fT(t,i,e){let n=Yp(t,i);n&&uT(t,n,i,e)}function Xp(t,i,e,n,r,o,s){for(;e!=null;){let a=n[e.index],l=e.type;if(s&&i===0&&(a&&rr(gi(a),n),e.flags|=2),(e.flags&32)!==32)if(l&8)Xp(t,i,e.child,n,r,o,!1),wo(i,t,r,a,o);else if(l&32){let u=Zp(e,n),h;for(;h=u();)wo(i,t,r,h,o);wo(i,t,r,a,o)}else l&16?by(t,i,n,e,r,o):wo(i,t,r,a,o);e=s?e.projectionNext:e.next}}function ic(t,i,e,n,r,o){Xp(e,n,t.firstChild,i,r,o,!1)}function mT(t,i,e){let n=i[It],r=_y(t,e,i),o=e.parent||i[Dn],s=vy(o,e,i);by(n,0,i,e,r,s)}function by(t,i,e,n,r,o){let s=e[ei],l=s[Dn].projection[n.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++){let h=l[u];wo(i,t,r,h,o)}else{let u=l,h=s[Jt];K_(n)&&(u.flags|=128),Xp(t,i,u,h,r,o,!0)}}function gT(t,i,e,n,r){let o=e[Nr],s=gi(e);o!==s&&wo(i,t,n,o,r);for(let a=Tn;a<e.length;a++){let l=e[a];ic(l[He],l,t,i,n,o)}}function _T(t,i,e,n,r){if(i)r?t.addClass(e,n):t.removeClass(e,n);else{let o=n.indexOf("-")===-1?void 0:_i.DashCase;r==null?t.removeStyle(e,n,o):(typeof r=="string"&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=_i.Important),t.setStyle(e,n,r,o))}}function yT(t,i,e){t.setAttribute(i,"style",e)}function wy(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function Iy(t,i,e){let{mergedAttrs:n,classes:r,styles:o}=e;n!==null&&Cd(t,i,n),r!==null&&wy(t,i,r),o!==null&&yT(t,i,o)}var Mn={};function p(t=1){xy(Et(),De(),ar()+t,!1)}function xy(t,i,e,n){if(!n)if((i[Te]&3)===3){let o=t.preOrderCheckHooks;o!==null&&ml(i,o,e)}else{let o=t.preOrderHooks;o!==null&&gl(i,o,0,e)}Vr(e)}function x(t,i=Ue.Default){let e=De();if(e===null)return Y(t,i);let n=sn();return U_(n,e,an(t),i)}function Ty(){let t="invalid";throw new Error(t)}function Sy(t,i,e,n,r,o){let s=et(null);try{let a=null;r&C.SignalBased&&(a=i[n][ui]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),r&C.HasDecoratorInputTransform&&(o=t.inputTransforms[n].call(i,o)),t.setInput!==null?t.setInput(i,a,o,e,n):g_(i,a,n,o)}finally{et(s)}}function vT(t,i){let e=t.hostBindingOpCodes;if(e!==null)try{for(let n=0;n<e.length;n++){let r=e[n];if(r<0)Vr(~r);else{let o=r,s=e[++n],a=e[++n];qI(s,o);let l=i[o];a(2,l)}}}finally{Vr(-1)}}function rc(t,i,e,n,r,o,s,a,l,u,h){let _=i.blueprint.slice();return _[Fi]=r,_[Te]=n|4|128|8|64,(u!==null||t&&t[Te]&2048)&&(_[Te]|=2048),x_(_),_[Jt]=_[Po]=t,_[Xn]=e,_[Jn]=s||t&&t[Jn],_[It]=a||t&&t[It],_[Mo]=l||t&&t[Mo]||null,_[Dn]=o,_[$l]=Kx(),_[Ss]=h,_[f_]=u,_[ei]=i.type==2?t[ei]:_,_}function Bo(t,i,e,n,r){let o=t.data[i];if(o===null)o=CT(t,i,e,n,r),WI()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=n,o.attrs=r;let s=zI();o.injectorIndex=s===null?-1:s.injectorIndex}return Ur(o,!0),o}function CT(t,i,e,n,r){let o=E_(),s=Lp(),a=s?o:o&&o.parent,l=t.data[i]=ST(t,a,e,i,n,r);return t.firstChild===null&&(t.firstChild=l),o!==null&&(s?o.child==null&&l.parent!==null&&(o.child=l):o.next===null&&(o.next=l,l.prev=o)),l}function Dy(t,i,e,n){if(e===0)return-1;let r=i.length;for(let o=0;o<e;o++)i.push(n),t.blueprint.push(n),t.data.push(null);return r}function Ey(t,i,e,n,r){let o=ar(),s=n&2;try{Vr(-1),s&&i.length>Sn&&xy(t,i,Sn,!1),hi(s?2:0,r),e(n,r)}finally{Vr(o),hi(s?3:1,r)}}function Jp(t,i,e){if(Fp(i)){let n=et(null);try{let r=i.directiveStart,o=i.directiveEnd;for(let s=r;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=e[s];a.contentQueries(1,l,s)}}}finally{et(n)}}}function eh(t,i,e){S_()&&(FT(t,i,e,Pn(e,i)),(e.flags&64)===64&&ky(t,i,e))}function th(t,i,e=Pn){let n=i.localNames;if(n!==null){let r=i.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?e(i,t):t[s];t[r++]=a}}}function My(t){let i=t.tView;return i===null||i.incompleteFirstPass?t.tView=nh(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):i}function nh(t,i,e,n,r,o,s,a,l,u,h){let _=Sn+n,I=_+r,S=bT(_,I),M=typeof u=="function"?u():u;return S[He]={type:t,blueprint:S,template:e,queries:null,viewQuery:a,declTNode:i,data:S.slice().fill(null,_),bindingStartIndex:_,expandoStartIndex:I,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:M,incompleteFirstPass:!1,ssrId:h}}function bT(t,i){let e=[];for(let n=0;n<i;n++)e.push(n<t?null:Mn);return e}function wT(t,i,e,n){let o=n.get(wx,Y_)||e===mi.ShadowDom,s=t.selectRootElement(i,o);return IT(s),s}function IT(t){xT(t)}var xT=()=>null;function TT(t,i,e,n){let r=Ry(i);r.push(e),t.firstCreatePass&&Ly(t).push(n,r.length-1)}function ST(t,i,e,n,r,o){let s=i?i.injectorIndex:-1,a=0;return D_()&&(a|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function b0(t,i,e,n,r){for(let o in i){if(!i.hasOwnProperty(o))continue;let s=i[o];if(s===void 0)continue;n??={};let a,l=C.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let u=o;if(r!==null){if(!r.hasOwnProperty(o))continue;u=r[o]}t===0?w0(n,e,u,a,l):w0(n,e,u,a)}return n}function w0(t,i,e,n,r){let o;t.hasOwnProperty(e)?(o=t[e]).push(i,n):o=t[e]=[i,n],r!==void 0&&o.push(r)}function DT(t,i,e){let n=i.directiveStart,r=i.directiveEnd,o=t.data,s=i.attrs,a=[],l=null,u=null;for(let h=n;h<r;h++){let _=o[h],I=e?e.get(_):null,S=I?I.inputs:null,M=I?I.outputs:null;l=b0(0,_.inputs,h,l,S),u=b0(1,_.outputs,h,u,M);let A=l!==null&&s!==null&&!Sp(i)?UT(l,h,s):null;a.push(A)}l!==null&&(l.hasOwnProperty("class")&&(i.flags|=8),l.hasOwnProperty("style")&&(i.flags|=16)),i.initialInputs=a,i.inputs=l,i.outputs=u}function ET(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function ih(t,i,e,n,r,o,s,a){let l=Pn(i,e),u=i.inputs,h;!a&&u!=null&&(h=u[n])?(oh(t,e,h,n,r),Gl(i)&&MT(e,i.index)):i.type&3?(n=ET(n),r=s!=null?s(r,i.value||"",n):r,o.setProperty(l,n,r)):i.type&12}function MT(t,i){let e=sr(i,t);e[Te]&16||(e[Te]|=64)}function rh(t,i,e,n){if(S_()){let r=n===null?null:{"":-1},o=RT(t,e),s,a;o===null?s=a=null:[s,a]=o,s!==null&&Oy(t,i,e,s,r,a),r&&LT(e,n,r)}e.mergedAttrs=xs(e.mergedAttrs,e.attrs)}function Oy(t,i,e,n,r,o){for(let u=0;u<n.length;u++)Ed(El(e,i),t,n[u].type);VT(e,t.data.length,n.length);for(let u=0;u<n.length;u++){let h=n[u];h.providersResolver&&h.providersResolver(h)}let s=!1,a=!1,l=Dy(t,i,n.length,null);for(let u=0;u<n.length;u++){let h=n[u];e.mergedAttrs=xs(e.mergedAttrs,h.hostAttrs),PT(t,e,i,l,h),NT(l,h,r),h.contentQueries!==null&&(e.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(e.flags|=64);let _=h.type.prototype;!s&&(_.ngOnChanges||_.ngOnInit||_.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),s=!0),!a&&(_.ngOnChanges||_.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),a=!0),l++}DT(t,e,o)}function OT(t,i,e,n,r){let o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~i.index;kT(s)!=a&&s.push(a),s.push(e,n,o)}}function kT(t){let i=t.length;for(;i>0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function FT(t,i,e,n){let r=e.directiveStart,o=e.directiveEnd;Gl(e)&&HT(i,e,t.data[r+e.componentOffset]),t.firstCreatePass||El(e,i),rr(n,i);let s=e.initialInputs;for(let a=r;a<o;a++){let l=t.data[a],u=Hr(i,t,a,e);if(rr(u,i),s!==null&&zT(i,a-r,u,l,e,s),ir(l)){let h=sr(e.index,i);h[Xn]=Hr(i,t,a,e)}}}function ky(t,i,e){let n=e.directiveStart,r=e.directiveEnd,o=e.index,s=KI();try{Vr(o);for(let a=n;a<r;a++){let l=t.data[a],u=i[a];Sd(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&AT(l,u)}}finally{Vr(-1),Sd(s)}}function AT(t,i){t.hostBindings!==null&&t.hostBindings(1,i)}function RT(t,i){let e=t.directiveRegistry,n=null,r=null;if(e)for(let o=0;o<e.length;o++){let s=e[o];if(t_(i,s.selectors,!1))if(n||(n=[]),ir(s))if(s.findHostDirectiveDefs!==null){let a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),n.unshift(...a,s);let l=a.length;$d(t,i,l)}else n.unshift(s),$d(t,i,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,n,r),n.push(s)}return n===null?null:[n,r]}function $d(t,i,e){i.componentOffset=e,(t.components??=[]).push(i.index)}function LT(t,i,e){if(i){let n=t.localNames=[];for(let r=0;r<i.length;r+=2){let o=e[i[r+1]];if(o==null)throw new G(-301,!1);n.push(i[r],o)}}}function NT(t,i,e){if(e){if(i.exportAs)for(let n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;ir(i)&&(e[""]=t)}}function VT(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}function PT(t,i,e,n,r){t.data[n]=r;let o=r.factory||(r.factory=Rr(r.type,!0)),s=new Pr(o,ir(r),x);t.blueprint[n]=s,e[n]=s,OT(t,i,n,Dy(t,e,r.hostVars,Mn),r)}function HT(t,i,e){let n=Pn(i,t),r=My(e),o=t[Jn].rendererFactory,s=16;e.signals?s=4096:e.onPush&&(s=64);let a=oc(t,rc(t,r,null,s,n,i,null,o.createRenderer(n,e),null,null,null));t[i.index]=a}function BT(t,i,e,n,r,o){let s=Pn(t,i);jT(i[It],s,o,t.value,e,n,r)}function jT(t,i,e,n,r,o,s){if(o==null)t.removeAttribute(i,r,e);else{let a=s==null?Ar(o):s(o,n||"",r);t.setAttribute(i,r,a,e)}}function zT(t,i,e,n,r,o){let s=o[i];if(s!==null)for(let a=0;a<s.length;){let l=s[a++],u=s[a++],h=s[a++],_=s[a++];Sy(n,e,l,u,h,_)}}function UT(t,i,e){let n=null,r=0;for(;r<e.length;){let o=e[r];if(o===0){r+=4;continue}else if(o===5){r+=2;continue}if(typeof o=="number")break;if(t.hasOwnProperty(o)){n===null&&(n=[]);let s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===i){n.push(o,s[a+1],s[a+2],e[r+1]);break}}r+=2}return n}function Fy(t,i,e,n){return[t,!0,0,i,null,n,null,e,null,null]}function Ay(t,i){let e=t.contentQueries;if(e!==null){let n=et(null);try{for(let r=0;r<e.length;r+=2){let o=e[r],s=e[r+1];if(s!==-1){let a=t.data[s];Pp(o),a.contentQueries(2,i[s],s)}}}finally{et(n)}}}function oc(t,i){return t[Es]?t[s0][Yn]=i:t[Es]=i,t[s0]=i,i}function Gd(t,i,e){Pp(0);let n=et(null);try{i(t,e)}finally{et(n)}}function Ry(t){return t[Ds]||(t[Ds]=[])}function Ly(t){return t.cleanup||(t.cleanup=[])}function Ny(t,i){let e=t[Mo],n=e?e.get(ti,null):null;n&&n.handleError(i)}function oh(t,i,e,n,r){for(let o=0;o<e.length;){let s=e[o++],a=e[o++],l=e[o++],u=i[s],h=t.data[s];Sy(h,u,n,a,l,r)}}function Vy(t,i,e){let n=b_(i,t);eT(t[It],n,e)}function $T(t,i){let e=sr(i,t),n=e[He];GT(n,e);let r=e[Fi];r!==null&&e[Ss]===null&&(e[Ss]=Wp(r,e[Mo])),sh(n,e,e[Xn])}function GT(t,i){for(let e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])}function sh(t,i,e){Hp(i);try{let n=t.viewQuery;n!==null&&Gd(1,n,e);let r=t.template;r!==null&&Ey(t,i,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),i[Oi]?.finishViewCreation(t),t.staticContentQueries&&Ay(t,i),t.staticViewQueries&&Gd(2,t.viewQuery,e);let o=t.components;o!==null&&WT(i,o)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[Te]&=-5,Bp()}}function WT(t,i){for(let e=0;e<i.length;e++)$T(t,i[e])}function qT(t,i,e,n){let r=et(null);try{let o=i.tView,a=t[Te]&4096?4096:16,l=rc(t,o,e,a,null,i,null,null,null,n?.injector??null,n?.dehydratedView??null),u=t[i.index];l[Vs]=u;let h=t[Oi];return h!==null&&(l[Oi]=h.createEmbeddedView(o)),sh(o,l,e),l}finally{et(r)}}function I0(t,i){return!i||i.firstChild===null||K_(t)}function KT(t,i,e,n=!0){let r=i[He];if(oT(r,i,t,e),n){let s=Ud(e,t),a=i[It],l=Yp(a,t[Nr]);l!==null&&iT(r,t[Dn],a,i,l,s)}let o=i[Ss];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Ol(t,i,e,n,r=!1){for(;e!==null;){let o=i[e.index];o!==null&&n.push(gi(o)),Ai(o)&&QT(o,n);let s=e.type;if(s&8)Ol(t,i,e.child,n);else if(s&32){let a=Zp(e,i),l;for(;l=a();)n.push(l)}else if(s&16){let a=Cy(i,e);if(Array.isArray(a))n.push(...a);else{let l=Os(i[ei]);Ol(l[He],l,a,n,!0)}}e=r?e.projectionNext:e.next}return n}function QT(t,i){for(let e=Tn;e<t.length;e++){let n=t[e],r=n[He].firstChild;r!==null&&Ol(n[He],n,r,i)}t[Nr]!==t[Fi]&&i.push(t[Nr])}var Py=[];function ZT(t){return t[Lr]??YT(t)}function YT(t){let i=Py.pop()??Object.create(JT);return i.lView=t,i}function XT(t){t.lView[Lr]!==t&&(t.lView=null,Py.push(t))}var JT=Le($({},ys),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Ms(t.lView)},consumerOnSignalRead(){this.lView[Lr]=this}});function Hy(t){return jy(t[Es])}function By(t){return jy(t[Yn])}function jy(t){for(;t!==null&&!Ai(t);)t=t[Yn];return t}var zy=100;function Uy(t,i=!0,e=0){let n=t[Jn],r=n.rendererFactory,o=!1;o||r.begin?.();try{eS(t,e)}catch(s){throw i&&Ny(t,s),s}finally{o||(r.end?.(),n.inlineEffectRunner?.flush())}}function eS(t,i){Wd(t,i);let e=0;for(;Rp(t);){if(e===zy)throw new G(103,!1);e++,Wd(t,1)}}function tS(t,i,e,n){let r=i[Te];if((r&256)===256)return;let o=!1;!o&&i[Jn].inlineEffectRunner?.flush(),Hp(i);let s=null,a=null;!o&&nS(t)&&(a=ZT(i),s=Ra(a));try{x_(i),GI(t.bindingStartIndex),e!==null&&Ey(t,i,e,2,n);let l=(r&3)===3;if(!o)if(l){let _=t.preOrderCheckHooks;_!==null&&ml(i,_,null)}else{let _=t.preOrderHooks;_!==null&&gl(i,_,0,null),rd(i,0)}if(iS(i),$y(i,0),t.contentQueries!==null&&Ay(t,i),!o)if(l){let _=t.contentCheckHooks;_!==null&&ml(i,_)}else{let _=t.contentHooks;_!==null&&gl(i,_,1),rd(i,1)}vT(t,i);let u=t.components;u!==null&&Wy(i,u,0);let h=t.viewQuery;if(h!==null&&Gd(2,h,n),!o)if(l){let _=t.viewCheckHooks;_!==null&&ml(i,_)}else{let _=t.viewHooks;_!==null&&gl(i,_,2),rd(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[fl]){for(let _ of i[fl])_();i[fl]=null}o||(i[Te]&=-73)}catch(l){throw Ms(i),l}finally{a!==null&&(La(a,s),XT(a)),Bp()}}function nS(t){return t.type!==2}function $y(t,i){for(let e=Hy(t);e!==null;e=By(e))for(let n=Tn;n<e.length;n++){let r=e[n];Gy(r,i)}}function iS(t){for(let i=Hy(t);i!==null;i=By(i)){if(!(i[Te]&kp.HasTransplantedViews))continue;let e=i[Oo];for(let n=0;n<e.length;n++){let r=e[n],o=r[Jt];RI(r)}}}function rS(t,i,e){let n=sr(i,t);Gy(n,e)}function Gy(t,i){Ap(t)&&Wd(t,i)}function Wd(t,i){let n=t[He],r=t[Te],o=t[Lr],s=!!(i===0&&r&16);if(s||=!!(r&64&&i===0),s||=!!(r&1024),s||=!!(o?.dirty&&Na(o)),o&&(o.dirty=!1),t[Te]&=-9217,s)tS(n,t,n.template,t[Xn]);else if(r&8192){$y(t,1);let a=n.components;a!==null&&Wy(t,a,1)}}function Wy(t,i,e){for(let n=0;n<i.length;n++)rS(t,i[n],e)}function ah(t){for(t[Jn].changeDetectionScheduler?.notify();t;){t[Te]|=64;let i=Os(t);if(TI(t)&&!i)return t;t=i}return null}var Br=class{get rootNodes(){let i=this._lView,e=i[He];return Ol(e,i,e.firstChild,[])}constructor(i,e,n=!0){this._lView=i,this._cdRefInjectingView=e,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Xn]}set context(i){this._lView[Xn]=i}get destroyed(){return(this._lView[Te]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let i=this._lView[Jt];if(Ai(i)){let e=i[xl],n=e?e.indexOf(this):-1;n>-1&&(zd(i,n),wl(e,n))}this._attachedToViewContainer=!1}gy(this._lView[He],this._lView)}onDestroy(i){T_(this._lView,i)}markForCheck(){ah(this._cdRefInjectingView||this._lView)}detach(){this._lView[Te]&=-129}reattach(){Td(this._lView),this._lView[Te]|=128}detectChanges(){this._lView[Te]|=1024,Uy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new G(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,fy(this._lView[He],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new G(902,!1);this._appRef=i,Td(this._lView)}},Nn=(()=>{let i=class i{};i.__NG_ELEMENT_ID__=aS;let t=i;return t})(),oS=Nn,sS=class extends oS{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){let r=qT(this._declarationLView,this._declarationTContainer,i,{injector:e,dehydratedView:n});return new Br(r)}};function aS(){return sc(sn(),De())}function sc(t,i){return t.type&4?new sS(i,t,Ho(t,i)):null}var Tq=new RegExp(`^(\\d+)*(${Cx}|${vx})*(.*)`);var lS=()=>null;function x0(t,i){return lS(t,i)}var Fo=class{},qd=class{},kl=class{};function cS(t){let i=Error(`No component factory found for ${ln(t)}.`);return i[uS]=t,i}var uS="ngComponent";var Kd=class{resolveComponentFactory(i){throw cS(i)}},ac=(()=>{let i=class i{};i.NULL=new Kd;let t=i;return t})(),jr=class{},Be=(()=>{let i=class i{constructor(){this.destroyNode=null}};i.__NG_ELEMENT_ID__=()=>dS();let t=i;return t})();function dS(){let t=De(),i=sn(),e=sr(i.index,t);return(kr(e)?e:t)[It]}var pS=(()=>{let i=class i{};i.\u0275prov=q({token:i,providedIn:"root",factory:()=>null});let t=i;return t})(),cd={};var T0=new Set;function lr(t){T0.has(t)||(T0.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function S0(...t){}function hS(){let t=typeof on.requestAnimationFrame=="function",i=on[t?"requestAnimationFrame":"setTimeout"],e=on[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){let n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);let r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}var ge=class t{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new O(!1),this.onMicrotaskEmpty=new O(!1),this.onStable=new O(!1),this.onError=new O(!1),typeof Zone>"u")throw new G(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&e,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=hS().nativeRequestAnimationFrame,gS(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new G(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new G(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,r){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,i,fS,S0,S0);try{return o.runTask(s,e,n)}finally{o.cancelTask(s)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},fS={};function lh(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function mS(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(on,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Qd(t),t.isCheckStableRunning=!0,lh(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Qd(t))}function gS(t){let i=()=>{mS(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,o,s,a)=>{if(_S(a))return e.invokeTask(r,o,s,a);try{return D0(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),E0(t)}},onInvoke:(e,n,r,o,s,a,l)=>{try{return D0(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&i(),E0(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Qd(t),lh(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Qd(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function D0(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function E0(t){t._nesting--,lh(t)}function _S(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var Io=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Io||{}),yS={destroy(){}};function ch(t,i){!i&&h_(ch);let e=i?.injector??W(Hn);if(!Yx(e))return yS;lr("NgAfterNextRender");let n=e.get(uh),r=n.handler??=new Yd,o=i?.phase??Io.MixedReadWrite,s=()=>{r.unregister(l),a()},a=e.get(Xl).onDestroy(s),l=ni(e,()=>new Zd(o,()=>{s(),t()}));return r.register(l),{destroy:s}}var Zd=class{constructor(i,e){this.phase=i,this.callbackFn=e,this.zone=W(ge),this.errorHandler=W(ti,{optional:!0}),W(Fo,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(i){this.errorHandler?.handleError(i)}}},Yd=class{constructor(){this.executingCallbacks=!1,this.buckets={[Io.EarlyRead]:new Set,[Io.Write]:new Set,[Io.MixedReadWrite]:new Set,[Io.Read]:new Set},this.deferredCallbacks=new Set}register(i){(this.executingCallbacks?this.deferredCallbacks:this.buckets[i.phase]).add(i)}unregister(i){this.buckets[i.phase].delete(i),this.deferredCallbacks.delete(i)}execute(){this.executingCallbacks=!0;for(let i of Object.values(this.buckets))for(let e of i)e.invoke();this.executingCallbacks=!1;for(let i of this.deferredCallbacks)this.buckets[i.phase].add(i);this.deferredCallbacks.clear()}destroy(){for(let i of Object.values(this.buckets))i.clear();this.deferredCallbacks.clear()}},uh=(()=>{let i=class i{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};i.\u0275prov=q({token:i,providedIn:"root",factory:()=>new i});let t=i;return t})();function Fl(t,i,e){let n=e?t.styles:null,r=e?t.classes:null,o=0;if(i!==null)for(let s=0;s<i.length;s++){let a=i[s];if(typeof a=="number")o=a;else if(o==1)r=gd(r,a);else if(o==2){let l=a,u=i[++s];n=gd(n,l+": "+u+";")}}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=r:t.classesWithoutHost=r}var Al=class extends ac{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=nr(i);return new Ao(e,this.ngModule)}};function M0(t){let i=[];for(let e in t){if(!t.hasOwnProperty(e))continue;let n=t[e];n!==void 0&&i.push({propName:Array.isArray(n)?n[0]:n,templateName:e})}return i}function vS(t){let i=t.toLowerCase();return i==="svg"?C_:i==="math"?MI:null}var Xd=class{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=jl(n);let r=this.injector.get(i,cd,n);return r!==cd||e===cd?r:this.parentInjector.get(i,e,n)}},Ao=class extends kl{get inputs(){let i=this.componentDef,e=i.inputTransforms,n=M0(i.inputs);if(e!==null)for(let r of n)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return n}get outputs(){return M0(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=cI(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,r){let o=et(null);try{r=r||this.ngModule;let s=r instanceof cn?r:r?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new Xd(i,s):i,l=a.get(jr,null);if(l===null)throw new G(407,!1);let u=a.get(pS,null),h=a.get(uh,null),_=a.get(Fo,null),I={rendererFactory:l,sanitizer:u,inlineEffectRunner:null,afterRenderEventManager:h,changeDetectionScheduler:_},S=l.createRenderer(null,this.componentDef),M=this.componentDef.selectors[0][0]||"div",A=n?wT(S,n,this.componentDef.encapsulation,a):hy(S,M,vS(M)),V=512;this.componentDef.signals?V|=4096:this.componentDef.onPush||(V|=16);let B=null;A!==null&&(B=Wp(A,a,!0));let re=nh(0,null,null,1,0,null,null,null,null,null,null),pe=rc(null,re,null,V,null,null,I,S,a,null,B);Hp(pe);let ae,tt;try{let Ke=this.componentDef,at,ct=null;Ke.findHostDirectiveDefs?(at=[],ct=new Map,Ke.findHostDirectiveDefs(Ke,at,ct),at.push(Ke)):at=[Ke];let Rt=CS(pe,A),pn=bS(Rt,A,Ke,at,pe,I,S);tt=w_(re,Sn),A&&xS(S,Ke,A,n),e!==void 0&&TS(tt,this.ngContentSelectors,e),ae=IS(pn,Ke,at,ct,pe,[SS]),sh(re,pe,null)}finally{Bp()}return new Jd(this.componentType,ae,Ho(tt,pe),pe,tt)}finally{et(o)}}},Jd=class extends qd{constructor(i,e,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new Br(r,void 0,!1),this.componentType=i}setInput(i,e){let n=this._tNode.inputs,r;if(n!==null&&(r=n[i])){if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView;oh(o[He],o,r,i,e),this.previousInputValues.set(i,e);let s=sr(this._tNode.index,o);ah(s)}}get injector(){return new Fr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function CS(t,i){let e=t[He],n=Sn;return t[n]=i,Bo(e,n,2,"#host",null)}function bS(t,i,e,n,r,o,s){let a=r[He];wS(n,t,i,s);let l=null;i!==null&&(l=Wp(i,r[Mo]));let u=o.rendererFactory.createRenderer(i,e),h=16;e.signals?h=4096:e.onPush&&(h=64);let _=rc(r,My(e),null,h,r[t.index],t,o,u,null,null,l);return a.firstCreatePass&&$d(a,t,n.length-1),oc(r,_),r[t.index]=_}function wS(t,i,e,n){for(let r of t)i.mergedAttrs=xs(i.mergedAttrs,r.hostAttrs);i.mergedAttrs!==null&&(Fl(i,i.mergedAttrs,!0),e!==null&&Iy(n,e,i))}function IS(t,i,e,n,r,o){let s=sn(),a=r[He],l=Pn(s,r);Oy(a,r,s,e,null,n);for(let h=0;h<e.length;h++){let _=s.directiveStart+h,I=Hr(r,a,_,s);rr(I,r)}ky(a,r,s),l&&rr(l,r);let u=Hr(r,a,s.directiveStart+s.componentOffset,s);if(t[Xn]=r[Xn]=u,o!==null)for(let h of o)h(u,i);return Jp(a,s,r),u}function xS(t,i,e,n){if(n)Cd(t,e,["ng-version","17.3.0"]);else{let{attrs:r,classes:o}=uI(i.selectors[0]);r&&Cd(t,e,r),o&&o.length>0&&wy(t,e,o.join(" "))}}function TS(t,i,e){let n=t.projection=[];for(let r=0;r<i.length;r++){let o=e[r];n.push(o!=null?Array.from(o):null)}}function SS(){let t=sn();Yl(De()[He],t)}var Bn=(()=>{let i=class i{};i.__NG_ELEMENT_ID__=DS;let t=i;return t})();function DS(){let t=sn();return Ky(t,De())}var ES=Bn,qy=class extends ES{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Ho(this._hostTNode,this._hostLView)}get injector(){return new Fr(this._hostTNode,this._hostLView)}get parentInjector(){let i=jp(this._hostTNode,this._hostLView);if(V_(i)){let e=Sl(i,this._hostLView),n=Tl(i),r=e[He].data[n+8];return new Fr(r,e)}else return new Fr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=O0(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-Tn}createEmbeddedView(i,e,n){let r,o;typeof n=="number"?r=n:n!=null&&(r=n.index,o=n.injector);let s=x0(this._lContainer,i.ssrId),a=i.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,I0(this._hostTNode,s)),a}createComponent(i,e,n,r,o){let s=i&&!xI(i),a;if(s)a=e;else{let M=e||{};a=M.index,n=M.injector,r=M.projectableNodes,o=M.environmentInjector||M.ngModuleRef}let l=s?i:new Ao(nr(i)),u=n||this.parentInjector;if(!o&&l.ngModule==null){let A=(s?u:this.parentInjector).get(cn,null);A&&(o=A)}let h=nr(l.componentType??{}),_=x0(this._lContainer,h?.id??null),I=_?.firstChild??null,S=l.create(u,r,I,o);return this.insertImpl(S.hostView,a,I0(this._hostTNode,_)),S}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let r=i._lView;if(AI(r)){let a=this.indexOf(i);if(a!==-1)this.detach(a);else{let l=r[Jt],u=new qy(l,l[Dn],l[Jt]);u.detach(u.indexOf(i))}}let o=this._adjustIndex(e),s=this._lContainer;return KT(s,r,o,n),i.attachToViewContainerRef(),Z0(ud(s),o,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=O0(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=zd(this._lContainer,e);n&&(wl(ud(this._lContainer),e),gy(n[He],n))}detach(i){let e=this._adjustIndex(i,-1),n=zd(this._lContainer,e);return n&&wl(ud(this._lContainer),e)!=null?new Br(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function O0(t){return t[xl]}function ud(t){return t[xl]||(t[xl]=[])}function Ky(t,i){let e,n=i[t.index];return Ai(n)?e=n:(e=Fy(n,i,null,t),i[t.index]=e,oc(i,e)),OS(e,i,t,n),new qy(e,t,i)}function MS(t,i){let e=t[It],n=e.createComment(""),r=Pn(i,t),o=Yp(e,r);return Ml(e,o,n,dT(e,r),!1),n}var OS=AS,kS=()=>!1;function FS(t,i,e){return kS(t,i,e)}function AS(t,i,e,n){if(t[Nr])return;let r;e.type&8?r=gi(n):r=MS(i,e),t[Nr]=r}var ep=class t{constructor(i){this.queryList=i,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},tp=class t{constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,r=[];for(let o=0;o<n;o++){let s=e.getByIndex(o),a=this.queries[s.indexInDeclarationView];r.push(a.clone())}return new t(r)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}finishViewCreation(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let e=0;e<this.queries.length;e++)dh(i,e).matches!==null&&this.queries[e].setDirty()}},Rl=class{constructor(i,e,n=null){this.flags=e,this.read=n,typeof i=="string"?this.predicate=jS(i):this.predicate=i}},np=class t{constructor(i=[]){this.queries=i}elementStart(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let e=null;for(let n=0;n<this.length;n++){let r=e!==null?e.length:0,o=this.getByIndex(n).embeddedTView(i,r);o&&(o.indexInDeclarationView=n,e!==null?e.push(o):e=[o])}return e!==null?new t(e):null}template(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}},ip=class t{constructor(i,e=-1){this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new t(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,n=i.parent;for(;n!==null&&n.type&8&&n.index!==e;)n=n.parent;return e===(n!==null?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){let n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){let o=n[r];this.matchTNodeWithReadOption(i,e,RS(e,o)),this.matchTNodeWithReadOption(i,e,_l(e,i,o,!1,!1))}else n===Nn?e.type&4&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,_l(e,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(n!==null){let r=this.metadata.read;if(r!==null)if(r===_e||r===Bn||r===Nn&&e.type&4)this.addMatch(e.index,-2);else{let o=_l(e,i,r,!1,!1);o!==null&&this.addMatch(e.index,o)}else this.addMatch(e.index,n)}}addMatch(i,e){this.matches===null?this.matches=[i,e]:this.matches.push(i,e)}};function RS(t,i){let e=t.localNames;if(e!==null){for(let n=0;n<e.length;n+=2)if(e[n]===i)return e[n+1]}return null}function LS(t,i){return t.type&11?Ho(t,i):t.type&4?sc(t,i):null}function NS(t,i,e,n){return e===-1?LS(i,t):e===-2?VS(t,i,n):Hr(t,t[He],e,i)}function VS(t,i,e){if(e===_e)return Ho(i,t);if(e===Nn)return sc(i,t);if(e===Bn)return Ky(i,t)}function Qy(t,i,e,n){let r=i[Oi].queries[n];if(r.matches===null){let o=t.data,s=e.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let u=s[l];if(u<0)a.push(null);else{let h=o[u];a.push(NS(i,h,s[l+1],e.metadata.read))}}r.matches=a}return r.matches}function rp(t,i,e,n){let r=t.queries.getByIndex(e),o=r.matches;if(o!==null){let s=Qy(t,i,r,e);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)n.push(s[a/2]);else{let u=o[a+1],h=i[-l];for(let _=Tn;_<h.length;_++){let I=h[_];I[Vs]===I[Jt]&&rp(I[He],I,u,n)}if(h[Oo]!==null){let _=h[Oo];for(let I=0;I<_.length;I++){let S=_[I];rp(S[He],S,u,n)}}}}}return n}function PS(t,i){return t[Oi].queries[i].queryList}function Zy(t,i,e){let n=new Fd((e&4)===4);return TT(t,i,n,n.destroy),(i[Oi]??=new tp).queries.push(new ep(n))-1}function HS(t,i,e){let n=Et();return n.firstCreatePass&&(Yy(n,new Rl(t,i,e),-1),(i&2)===2&&(n.staticViewQueries=!0)),Zy(n,De(),i)}function BS(t,i,e,n){let r=Et();if(r.firstCreatePass){let o=sn();Yy(r,new Rl(i,e,n),o.index),zS(r,t),(e&2)===2&&(r.staticContentQueries=!0)}return Zy(r,De(),e)}function jS(t){return t.split(",").map(i=>i.trim())}function Yy(t,i,e){t.queries===null&&(t.queries=new np),t.queries.track(new ip(i,e))}function zS(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function dh(t,i){return t.queries.getByIndex(i)}function US(t,i){let e=t[He],n=dh(e,i);return n.crossesNgTemplate?rp(e,t,i,[]):Qy(e,t,n,i)}function $S(t){return typeof t=="function"&&t[ui]!==void 0}function Mt(t,i){lr("NgSignals");let e=Ig(t),n=e[ui];return i?.equal&&(n.equal=i.equal),e.set=r=>Hu(n,r),e.update=r=>xg(n,r),e.asReadonly=GS.bind(e),e}function GS(){let t=this[ui];if(t.readonlyFn===void 0){let i=()=>this();i[ui]=t,t.readonlyFn=i}return t.readonlyFn}function Xy(t){return $S(t)&&typeof t.set=="function"}function WS(t){return Object.getPrototypeOf(t.prototype).constructor}function ne(t){let i=WS(t.type),e=!0,n=[t];for(;i;){let r;if(ir(t))r=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new G(903,!1);r=i.\u0275dir}if(r){if(e){n.push(r);let s=t;s.inputs=dl(t.inputs),s.inputTransforms=dl(t.inputTransforms),s.declaredInputs=dl(t.declaredInputs),s.outputs=dl(t.outputs);let a=r.hostBindings;a&&YS(t,a);let l=r.viewQuery,u=r.contentQueries;if(l&&QS(t,l),u&&ZS(t,u),qS(t,r),Ew(t.outputs,r.outputs),ir(r)&&r.data.animation){let h=t.data;h.animation=(h.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===ne&&(e=!1)}}i=Object.getPrototypeOf(i)}KS(n)}function qS(t,i){for(let e in i.inputs){if(!i.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;let n=i.inputs[e];if(n!==void 0&&(t.inputs[e]=n,t.declaredInputs[e]=i.declaredInputs[e],i.inputTransforms!==null)){let r=Array.isArray(n)?n[0]:n;if(!i.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=i.inputTransforms[r]}}}function KS(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){let r=t[n];r.hostVars=i+=r.hostVars,r.hostAttrs=xs(r.hostAttrs,e=xs(e,r.hostAttrs))}}function dl(t){return t===So?{}:t===_n?[]:t}function QS(t,i){let e=t.viewQuery;e?t.viewQuery=(n,r)=>{i(n,r),e(n,r)}:t.viewQuery=i}function ZS(t,i){let e=t.contentQueries;e?t.contentQueries=(n,r,o)=>{i(n,r,o),e(n,r,o)}:t.contentQueries=i}function YS(t,i){let e=t.hostBindings;e?t.hostBindings=(n,r)=>{i(n,r),e(n,r)}:t.hostBindings=i}function fe(t){let i=t.inputConfig,e={};for(let n in i)if(i.hasOwnProperty(n)){let r=i[n];Array.isArray(r)&&r[3]&&(e[n]=r[3])}t.inputTransforms=e}var or=class{},ks=class{};var op=class extends or{constructor(i,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Al(this);let r=o_(i);this._bootstrapComponents=py(r.bootstrap),this._r3Injector=W_(i,e,[{provide:or,useValue:this},{provide:ac,useValue:this.componentFactoryResolver},...n],ln(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},sp=class extends ks{constructor(i){super(),this.moduleType=i}create(i){return new op(this.moduleType,i,[])}};var Ll=class extends or{constructor(i){super(),this.componentFactoryResolver=new Al(this),this.instance=null;let e=new Ts([...i.providers,{provide:or,useValue:this},{provide:ac,useValue:this.componentFactoryResolver}],i.parent||Op(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function lc(t,i,e=null){return new Ll({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var $r=(()=>{let i=class i{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Xt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function Jy(t){return ph(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function XS(t,i){if(Array.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{let e=t[Symbol.iterator](),n;for(;!(n=e.next()).done;)i(n.value)}}function ph(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function Ni(t,i,e){return t[i]=e}function cc(t,i){return t[i]}function Vn(t,i,e){let n=t[i];return Object.is(n,e)?!1:(t[i]=e,!0)}function Ro(t,i,e,n){let r=Vn(t,i,e);return Vn(t,i+1,n)||r}function ev(t,i,e,n,r){let o=Ro(t,i,e,n);return Vn(t,i+2,r)||o}function uc(t,i,e,n,r,o){let s=Ro(t,i,e,n);return Ro(t,i+2,r,o)||s}function JS(t){return(t.flags&32)===32}function eD(t,i,e,n,r,o,s,a,l){let u=i.consts,h=Bo(i,t,4,s||null,ko(u,a));rh(i,e,h,ko(u,l)),Yl(i,h);let _=h.tView=nh(2,h,n,r,o,i.directiveRegistry,i.pipeRegistry,null,i.schemas,u,null);return i.queries!==null&&(i.queries.template(i,h),_.queries=i.queries.embeddedTView(h)),h}function f(t,i,e,n,r,o,s,a){let l=De(),u=Et(),h=t+Sn,_=u.firstCreatePass?eD(h,u,l,i,e,n,r,o,s):u.data[h];Ur(_,!1);let I=tD(u,l,_,t);Ql()&&nc(u,l,I,_),rr(I,l);let S=Fy(I,l,I,_);return l[h]=S,oc(l,S),FS(S,_,l),Wl(_)&&eh(u,l,_),s!=null&&th(l,_,a),f}var tD=nD;function nD(t,i,e,n){return Zl(!0),i[It].createComment("")}function w(t,i,e,n){let r=De(),o=ql();if(Vn(r,o,i)){let s=Et(),a=Kl();BT(a,r,t,i,e,n)}return w}function hh(t,i,e,n){return Vn(t,ql(),e)?i+Ar(e)+n:Mn}function iD(t,i,e,n,r,o){let s=$I(),a=Ro(t,s,e,r);return Vp(2),a?i+Ar(e)+n+Ar(r)+o:Mn}function pl(t,i){return t<<17|i<<2}function zr(t){return t>>17&32767}function rD(t){return(t&2)==2}function oD(t,i){return t&131071|i<<17}function ap(t){return t|2}function Lo(t){return(t&131068)>>2}function dd(t,i){return t&-131069|i<<2}function sD(t){return(t&1)===1}function lp(t){return t|1}function aD(t,i,e,n,r,o){let s=o?i.classBindings:i.styleBindings,a=zr(s),l=Lo(s);t[n]=e;let u=!1,h;if(Array.isArray(e)){let _=e;h=_[1],(h===null||Ns(_,h)>0)&&(u=!0)}else h=e;if(r)if(l!==0){let I=zr(t[a+1]);t[n+1]=pl(I,a),I!==0&&(t[I+1]=dd(t[I+1],n)),t[a+1]=oD(t[a+1],n)}else t[n+1]=pl(a,0),a!==0&&(t[a+1]=dd(t[a+1],n)),a=n;else t[n+1]=pl(l,0),a===0?a=n:t[l+1]=dd(t[l+1],n),l=n;u&&(t[n+1]=ap(t[n+1])),k0(t,h,n,!0),k0(t,h,n,!1),lD(i,h,t,n,o),s=pl(a,l),o?i.classBindings=s:i.styleBindings=s}function lD(t,i,e,n,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof i=="string"&&Ns(o,i)>=0&&(e[n+1]=lp(e[n+1]))}function k0(t,i,e,n){let r=t[e+1],o=i===null,s=n?zr(r):Lo(r),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],u=t[s+1];cD(l,i)&&(a=!0,t[s+1]=n?lp(u):ap(u)),s=n?zr(u):Lo(u)}a&&(t[e+1]=n?ap(r):lp(r))}function cD(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?Ns(t,i)>=0:!1}var Ut={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tv(t){return t.substring(Ut.key,Ut.keyEnd)}function uD(t){return t.substring(Ut.value,Ut.valueEnd)}function dD(t){return rv(t),nv(t,No(t,0,Ut.textEnd))}function nv(t,i){let e=Ut.textEnd;return e===i?-1:(i=Ut.keyEnd=hD(t,Ut.key=i,e),No(t,i,e))}function pD(t){return rv(t),iv(t,No(t,0,Ut.textEnd))}function iv(t,i){let e=Ut.textEnd,n=Ut.key=No(t,i,e);return e===n?-1:(n=Ut.keyEnd=fD(t,n,e),n=F0(t,n,e,58),n=Ut.value=No(t,n,e),n=Ut.valueEnd=mD(t,n,e),F0(t,n,e,59))}function rv(t){Ut.key=0,Ut.keyEnd=0,Ut.value=0,Ut.valueEnd=0,Ut.textEnd=t.length}function No(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function hD(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return i}function fD(t,i,e){let n;for(;i<e&&((n=t.charCodeAt(i))===45||n===95||(n&-33)>=65&&(n&-33)<=90||n>=48&&n<=57);)i++;return i}function F0(t,i,e,n){return i=No(t,i,e),i<e&&i++,i}function mD(t,i,e){let n=-1,r=-1,o=-1,s=i,a=s;for(;s<e;){let l=t.charCodeAt(s++);if(l===59)return a;l===34||l===39?a=s=A0(t,l,s,e):i===s-4&&o===85&&r===82&&n===76&&l===40?a=s=A0(t,41,s,e):l>32&&(a=s),o=r,r=n,n=l&-33}return a}function A0(t,i,e,n){let r=-1,o=e;for(;o<n;){let s=t.charCodeAt(o++);if(s==i&&r!==92)return o;s==92&&r===92?r=0:r=s}throw new Error}function c(t,i,e){let n=De(),r=ql();if(Vn(n,r,i)){let o=Et(),s=Kl();ih(o,s,n,t,i,n[It],e,!1)}return c}function cp(t,i,e,n,r){let o=i.inputs,s=r?"class":"style";oh(t,e,o[s],s,n)}function On(t,i,e){return sv(t,i,e,!1),On}function Ot(t,i){return sv(t,i,null,!0),Ot}function _t(t){fh(cv,gD,t,!1)}function gD(t,i){for(let e=pD(i);e>=0;e=iv(i,e))cv(t,tv(i),uD(i))}function R(t){fh(wD,ov,t,!0)}function ov(t,i){for(let e=dD(i);e>=0;e=nv(i,e))Ls(t,tv(i),!0)}function sv(t,i,e,n){let r=De(),o=Et(),s=Vp(2);if(o.firstUpdatePass&&lv(o,t,s,n),i!==Mn&&Vn(r,s,i)){let a=o.data[ar()];uv(o,a,r,r[It],t,r[s+1]=xD(i,e),n,s)}}function fh(t,i,e,n){let r=Et(),o=Vp(2);r.firstUpdatePass&&lv(r,null,o,n);let s=De();if(e!==Mn&&Vn(s,o,e)){let a=r.data[ar()];if(dv(a,n)&&!av(r,o)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=gd(l,e||"")),cp(r,a,s,e,n)}else ID(r,a,s,s[It],s[o+1],s[o+1]=bD(t,i,e),n,o)}}function av(t,i){return i>=t.expandoStartIndex}function lv(t,i,e,n){let r=t.data;if(r[e+1]===null){let o=r[ar()],s=av(t,e);dv(o,n)&&i===null&&!s&&(i=!1),i=_D(r,o,i,n),aD(r,o,i,e,s,n)}}function _D(t,i,e,n){let r=QI(t),o=n?i.residualClasses:i.residualStyles;if(r===null)(n?i.classBindings:i.styleBindings)===0&&(e=pd(null,t,i,e,n),e=Fs(e,i.attrs,n),o=null);else{let s=i.directiveStylingLast;if(s===-1||t[s]!==r)if(e=pd(r,t,i,e,n),o===null){let l=yD(t,i,n);l!==void 0&&Array.isArray(l)&&(l=pd(null,t,i,l[1],n),l=Fs(l,i.attrs,n),vD(t,i,n,l))}else o=CD(t,i,n)}return o!==void 0&&(n?i.residualClasses=o:i.residualStyles=o),e}function yD(t,i,e){let n=e?i.classBindings:i.styleBindings;if(Lo(n)!==0)return t[zr(n)]}function vD(t,i,e,n){let r=e?i.classBindings:i.styleBindings;t[zr(r)]=n}function CD(t,i,e){let n,r=i.directiveEnd;for(let o=1+i.directiveStylingLast;o<r;o++){let s=t[o].hostAttrs;n=Fs(n,s,e)}return Fs(n,i.attrs,e)}function pd(t,i,e,n,r){let o=null,s=e.directiveEnd,a=e.directiveStylingLast;for(a===-1?a=e.directiveStart:a++;a<s&&(o=i[a],n=Fs(n,o.hostAttrs,r),o!==t);)a++;return t!==null&&(e.directiveStylingLast=a),n}function Fs(t,i,e){let n=e?1:2,r=-1;if(i!==null)for(let o=0;o<i.length;o++){let s=i[o];typeof s=="number"?r=s:r===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),Ls(t,s,e?!0:i[++o]))}return t===void 0?null:t}function bD(t,i,e){if(e==null||e==="")return _n;let n=[],r=En(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(n,r[o],!0);else if(typeof r=="object")for(let o in r)r.hasOwnProperty(o)&&t(n,o,r[o]);else typeof r=="string"&&i(n,r);return n}function cv(t,i,e){Ls(t,i,En(e))}function wD(t,i,e){let n=String(i);n!==""&&!n.includes(" ")&&Ls(t,n,e)}function ID(t,i,e,n,r,o,s,a){r===Mn&&(r=_n);let l=0,u=0,h=0<r.length?r[0]:null,_=0<o.length?o[0]:null;for(;h!==null||_!==null;){let I=l<r.length?r[l+1]:void 0,S=u<o.length?o[u+1]:void 0,M=null,A;h===_?(l+=2,u+=2,I!==S&&(M=_,A=S)):_===null||h!==null&&h<_?(l+=2,M=h):(u+=2,M=_,A=S),M!==null&&uv(t,i,e,n,M,A,s,a),h=l<r.length?r[l]:null,_=u<o.length?o[u]:null}}function uv(t,i,e,n,r,o,s,a){if(!(i.type&3))return;let l=t.data,u=l[a+1],h=sD(u)?R0(l,i,e,r,Lo(u),s):void 0;if(!Nl(h)){Nl(o)||rD(u)&&(o=R0(l,null,e,r,a,s));let _=b_(ar(),e);_T(n,s,_,r,o)}}function R0(t,i,e,n,r,o){let s=i===null,a;for(;r>0;){let l=t[r],u=Array.isArray(l),h=u?l[1]:l,_=h===null,I=e[r+1];I===Mn&&(I=_?_n:void 0);let S=_?nd(I,n):h===n?I:void 0;if(u&&!Nl(S)&&(S=nd(l,n)),Nl(S)&&(a=S,s))return a;let M=t[r+1];r=s?zr(M):Lo(M)}if(i!==null){let l=o?i.residualClasses:i.residualStyles;l!=null&&(a=nd(l,n))}return a}function Nl(t){return t!==void 0}function xD(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=ln(En(t)))),t}function dv(t,i){return(t.flags&(i?8:16))!==0}function pv(t,i,e){let n=De(),r=hh(n,t,i,e);fh(Ls,ov,r,!0)}function TD(t,i,e,n,r,o){let s=i.consts,a=ko(s,r),l=Bo(i,t,2,n,a);return rh(i,e,l,ko(s,o)),l.attrs!==null&&Fl(l,l.attrs,!1),l.mergedAttrs!==null&&Fl(l,l.mergedAttrs,!0),i.queries!==null&&i.queries.elementStart(i,l),l}function m(t,i,e,n){let r=De(),o=Et(),s=Sn+t,a=r[It],l=o.firstCreatePass?TD(s,o,r,i,e,n):o.data[s],u=SD(o,r,l,a,i,t);r[s]=u;let h=Wl(l);return Ur(l,!0),Iy(a,u,l),!JS(l)&&Ql()&&nc(o,r,u,l),VI()===0&&rr(u,r),PI(),h&&(eh(o,r,l),Jp(o,l,r)),n!==null&&th(r,l),m}function g(){let t=sn();Lp()?Np():(t=t.parent,Ur(t,!1));let i=t;BI(i)&&jI(),HI();let e=Et();return e.firstCreatePass&&(Yl(e,t),Fp(t)&&e.queries.elementEnd(t)),i.classesWithoutHost!=null&&nx(i)&&cp(e,i,De(),i.classesWithoutHost,!0),i.stylesWithoutHost!=null&&ix(i)&&cp(e,i,De(),i.stylesWithoutHost,!1),g}function D(t,i,e,n){return m(t,i,e,n),g(),D}var SD=(t,i,e,n,r,o)=>(Zl(!0),hy(n,r,XI()));function DD(t,i,e,n,r){let o=i.consts,s=ko(o,n),a=Bo(i,t,8,"ng-container",s);s!==null&&Fl(a,s,!0);let l=ko(o,r);return rh(i,e,a,l),i.queries!==null&&i.queries.elementStart(i,a),a}function L(t,i,e){let n=De(),r=Et(),o=t+Sn,s=r.firstCreatePass?DD(o,r,n,i,e):r.data[o];Ur(s,!0);let a=ED(r,n,s,t);return n[o]=a,Ql()&&nc(r,n,a,s),rr(a,n),Wl(s)&&(eh(r,n,s),Jp(r,s,n)),e!=null&&th(n,s),L}function N(){let t=sn(),i=Et();return Lp()?Np():(t=t.parent,Ur(t,!1)),i.firstCreatePass&&(Yl(i,t),Fp(t)&&i.queries.elementEnd(t)),N}function H(t,i,e){return L(t,i,e),N(),H}var ED=(t,i,e,n)=>(Zl(!0),tT(i[It],""));function F(){return De()}var Vl="en-US";var MD=Vl;function OD(t){typeof t=="string"&&(MD=t.toLowerCase().replace(/_/g,"-"))}function E(t,i,e,n){let r=De(),o=Et(),s=sn();return hv(o,r,r[It],s,t,i,n),E}function kD(t,i,e,n){let r=t.cleanup;if(r!=null)for(let o=0;o<r.length-1;o+=2){let s=r[o];if(s===e&&r[o+1]===n){let a=i[Ds],l=r[o+2];return a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function hv(t,i,e,n,r,o,s){let a=Wl(n),u=t.firstCreatePass&&Ly(t),h=i[Xn],_=Ry(i),I=!0;if(n.type&3||s){let A=Pn(n,i),V=s?s(A):A,B=_.length,re=s?ae=>s(gi(ae[n.index])):n.index,pe=null;if(!s&&a&&(pe=kD(t,i,r,n.index)),pe!==null){let ae=pe.__ngLastListenerFn__||pe;ae.__ngNextListenerFn__=o,pe.__ngLastListenerFn__=o,I=!1}else{o=N0(n,i,h,o,!1);let ae=e.listen(V,r,o);_.push(o,ae),u&&u.push(r,re,B,B+1)}}else o=N0(n,i,h,o,!1);let S=n.outputs,M;if(I&&S!==null&&(M=S[r])){let A=M.length;if(A)for(let V=0;V<A;V+=2){let B=M[V],re=M[V+1],tt=i[B][re].subscribe(o),Ke=_.length;_.push(o,tt),u&&u.push(r,n.index,Ke,-(Ke+1))}}}function L0(t,i,e,n){let r=et(null);try{return hi(6,i,e),e(n)!==!1}catch(o){return Ny(t,o),!1}finally{hi(7,i,e),et(r)}}function N0(t,i,e,n,r){return function o(s){if(s===Function)return n;let a=t.componentOffset>-1?sr(t.index,i):i;ah(a);let l=L0(i,e,n,s),u=o.__ngNextListenerFn__;for(;u;)l=L0(i,e,u,s)&&l,u=u.__ngNextListenerFn__;return r&&l===!1&&s.preventDefault(),l}}function d(t=1){return YI(t)}function FD(t,i){let e=null,n=rI(t);for(let r=0;r<i.length;r++){let o=i[r];if(o==="*"){e=r;continue}if(n===null?t_(t,o,!0):aI(n,o))return r}return e}function Gt(t){let i=De()[ei][Dn];if(!i.projection){let e=t?t.length:1,n=i.projection=Qw(e,null),r=n.slice(),o=i.child;for(;o!==null;){let s=t?FD(o,t):0;s!==null&&(r[s]?r[s].projectionNext=o:n[s]=o,r[s]=o),o=o.next}}}function xt(t,i=0,e){let n=De(),r=Et(),o=Bo(r,Sn+t,16,null,e||null);o.projection===null&&(o.projection=i),Np(),(!n[Ss]||D_())&&(o.flags&32)!==32&&mT(r,n,o)}function Vi(t,i,e,n,r){let o=De(),s=hh(o,i,e,n);if(s!==Mn){let a=Et(),l=Kl();ih(a,l,o,t,s,o[It],r,!1)}return Vi}function Re(t,i,e,n){BS(t,i,e,n)}function Z(t,i,e){HS(t,i,e)}function j(t){let i=De(),e=Et(),n=M_();Pp(n+1);let r=dh(e,n);if(t.dirty&&FI(i)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let o=US(i,n);t.reset(o,gx),t.notifyOnChanges()}return!0}return!1}function z(){return PS(De(),M_())}function AD(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Ee(t){let i=UI();return I_(i,Sn+t)}function K(t,i=""){let e=De(),n=Et(),r=t+Sn,o=n.firstCreatePass?Bo(n,r,1,i,null):n.data[r],s=RD(n,e,o,i,t);e[r]=s,Ql()&&nc(n,e,s,o),Ur(o,!1)}var RD=(t,i,e,n,r)=>(Zl(!0),Jx(i[It],n));function se(t){return yt("",t,""),se}function yt(t,i,e){let n=De(),r=hh(n,t,i,e);return r!==Mn&&Vy(n,ar(),r),yt}function mh(t,i,e,n,r){let o=De(),s=iD(o,t,i,e,n,r);return s!==Mn&&Vy(o,ar(),s),mh}function Lt(t,i,e){Xy(i)&&(i=i());let n=De(),r=ql();if(Vn(n,r,i)){let o=Et(),s=Kl();ih(o,s,n,t,i,n[It],e,!1)}return Lt}function Bt(t,i){let e=Xy(t);return e&&t.set(i),e}function Nt(t,i){let e=De(),n=Et(),r=sn();return hv(n,e,e[It],r,t,i),Nt}function LD(t,i,e){let n=Et();if(n.firstCreatePass){let r=ir(t);up(e,n.data,n.blueprint,r,!0),up(i,n.data,n.blueprint,r,!1)}}function up(t,i,e,n,r){if(t=an(t),Array.isArray(t))for(let o=0;o<t.length;o++)up(t[o],i,e,n,r);else{let o=Et(),s=De(),a=sn(),l=Eo(t)?t:an(t.provide),u=d_(t),h=a.providerIndexes&1048575,_=a.directiveStart,I=a.providerIndexes>>20;if(Eo(t)||!t.multi){let S=new Pr(u,r,x),M=fd(l,i,r?h:h+I,_);M===-1?(Ed(El(a,s),o,l),hd(o,t,i.length),i.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(S),s.push(S)):(e[M]=S,s[M]=S)}else{let S=fd(l,i,h+I,_),M=fd(l,i,h,h+I),A=S>=0&&e[S],V=M>=0&&e[M];if(r&&!V||!r&&!A){Ed(El(a,s),o,l);let B=PD(r?VD:ND,e.length,r,n,u);!r&&V&&(e[M].providerFactory=B),hd(o,t,i.length,0),i.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(B),s.push(B)}else{let B=fv(e[r?M:S],u,!r&&n);hd(o,t,S>-1?S:M,B)}!r&&n&&V&&e[M].componentProviders++}}}function hd(t,i,e,n){let r=Eo(i),o=_I(i);if(r||o){let l=(o?an(i.useClass):i).prototype.ngOnDestroy;if(l){let u=t.destroyHooks||(t.destroyHooks=[]);if(!r&&i.multi){let h=u.indexOf(e);h===-1?u.push(e,[n,l]):u[h+1].push(n,l)}else u.push(e,l)}}}function fv(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function fd(t,i,e,n){for(let r=e;r<n;r++)if(i[r]===t)return r;return-1}function ND(t,i,e,n){return dp(this.multi,[])}function VD(t,i,e,n){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Hr(e,e[He],this.providerFactory.index,n);o=a.slice(0,s),dp(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],dp(r,o);return o}function dp(t,i){for(let e=0;e<t.length;e++){let n=t[e];i.push(n())}return i}function PD(t,i,e,n,r){let o=new Pr(t,e,x);return o.multi=[],o.index=i,o.componentProviders=0,fv(o,r,n&&!e),o}function ht(t,i=[]){return e=>{e.providersResolver=(n,r)=>LD(n,r?r(t):t,i)}}var HD=(()=>{let i=class i{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=l_(!1,n.type),o=r.length>0?lc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};i.\u0275prov=q({token:i,providedIn:"environment",factory:()=>new i(Y(cn))});let t=i;return t})();function J(t){lr("NgStandalone"),t.getStandaloneInjector=i=>i.get(HD).getOrCreateStandaloneInjector(t)}function Qe(t,i,e){let n=yi()+t,r=De();return r[n]===Mn?Ni(r,n,e?i.call(e):i()):cc(r,n)}function U(t,i,e,n){return gv(De(),yi(),t,i,e,n)}function we(t,i,e,n,r){return BD(De(),yi(),t,i,e,n,r)}function lt(t,i,e,n,r,o){return jD(De(),yi(),t,i,e,n,r,o)}function Gr(t,i,e,n,r,o,s){return zD(De(),yi(),t,i,e,n,r,o,s)}function jo(t,i,e,n,r,o,s,a){let l=yi()+t,u=De(),h=uc(u,l,e,n,r,o);return Vn(u,l+4,s)||h?Ni(u,l+5,a?i.call(a,e,n,r,o,s):i(e,n,r,o,s)):cc(u,l+5)}function Wr(t,i,e,n,r,o,s,a,l){let u=yi()+t,h=De(),_=uc(h,u,e,n,r,o);return Ro(h,u+4,s,a)||_?Ni(h,u+6,l?i.call(l,e,n,r,o,s,a):i(e,n,r,o,s,a)):cc(h,u+6)}function mv(t,i,e,n,r,o,s,a,l,u){let h=yi()+t,_=De(),I=uc(_,h,e,n,r,o);return ev(_,h+4,s,a,l)||I?Ni(_,h+7,u?i.call(u,e,n,r,o,s,a,l):i(e,n,r,o,s,a,l)):cc(_,h+7)}function zo(t,i,e,n){return UD(De(),yi(),t,i,e,n)}function Hs(t,i){let e=t[i];return e===Mn?void 0:e}function gv(t,i,e,n,r,o){let s=i+e;return Vn(t,s,r)?Ni(t,s+1,o?n.call(o,r):n(r)):Hs(t,s+1)}function BD(t,i,e,n,r,o,s){let a=i+e;return Ro(t,a,r,o)?Ni(t,a+2,s?n.call(s,r,o):n(r,o)):Hs(t,a+2)}function jD(t,i,e,n,r,o,s,a){let l=i+e;return ev(t,l,r,o,s)?Ni(t,l+3,a?n.call(a,r,o,s):n(r,o,s)):Hs(t,l+3)}function zD(t,i,e,n,r,o,s,a,l){let u=i+e;return uc(t,u,r,o,s,a)?Ni(t,u+4,l?n.call(l,r,o,s,a):n(r,o,s,a)):Hs(t,u+4)}function UD(t,i,e,n,r,o){let s=i+e,a=!1;for(let l=0;l<r.length;l++)Vn(t,s++,r[l])&&(a=!0);return a?Ni(t,s,n.apply(o,r)):Hs(t,s)}function gh(t,i){let e=Et(),n,r=t+Sn;e.firstCreatePass?(n=$D(i,e.pipeRegistry),e.data[r]=n,n.onDestroy&&(e.destroyHooks??=[]).push(r,n.onDestroy)):n=e.data[r];let o=n.factory||(n.factory=Rr(n.type,!0)),s,a=gn(x);try{let l=Dl(!1),u=o();return Dl(l),AD(e,De(),r,u),u}finally{gn(a)}}function $D(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function _h(t,i,e){let n=t+Sn,r=De(),o=I_(r,n);return GD(r,n)?gv(r,yi(),i,o.transform,e,o):o.transform(e)}function GD(t,i){return t[He].data[i].pure}function it(t,i){return sc(t,i)}var dc=(()=>{let i=class i{log(n){console.log(n)}warn(n){console.warn(n)}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"platform"});let t=i;return t})();var yh=new he(""),Bs=new he(""),pc=(()=>{let i=class i{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,vh||(WD(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n()},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}};i.\u0275fac=function(r){return new(r||i)(Y(ge),Y(hc),Y(Bs))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})(),hc=(()=>{let i=class i{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return vh?.findTestabilityInTree(this,n,r)??null}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"platform"});let t=i;return t})();function WD(t){vh=t}var vh;function qr(t){return!!t&&typeof t.then=="function"}function _v(t){return!!t&&typeof t.subscribe=="function"}var fc=new he(""),yv=(()=>{let i=class i{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=W(fc,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(qr(s))n.push(s);else if(_v(s)){let a=new Promise((l,u)=>{s.subscribe({complete:l,error:u})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})(),js=new he("");function qD(){wg(()=>{throw new G(600,!1)})}function KD(t){return t.isBoundToModule}function QD(t,i,e){try{let n=e();return qr(n)?n.catch(r=>{throw i.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}var Kr=(()=>{let i=class i{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=W(q_),this.afterRenderEffectManager=W(uh),this.externalTestViews=new Set,this.beforeRender=new nt,this.afterTick=new nt,this.componentTypes=[],this.components=[],this.isStable=W($r).hasPendingTasks.pipe(Ne(n=>!n)),this._injector=W(cn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof kl;if(!this._injector.get(yv).done){let S=!o&&r_(n),M=!1;throw new G(405,M)}let a;o?a=n:a=this._injector.get(ac).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=KD(a)?void 0:this._injector.get(or),u=r||a.selector,h=a.create(Hn.NULL,[],u,l),_=h.location.nativeElement,I=h.injector.get(yh,null);return I?.registerApplication(_),h.onDestroy(()=>{this.detachView(h.hostView),md(this.components,h),I?.unregisterApplication(_)}),this._loadComponent(h),h}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new G(101,!1);let r=et(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,et(r)}}detectChangesInAttachedViews(n){let r=0,o=this.afterRenderEffectManager;for(;;){if(r===zy)throw new G(103,!1);if(n){let s=r===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)ZD(a,s,l)}if(r++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>pp(s))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>pp(s))))break}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;md(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(js,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>md(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new G(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function md(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function ZD(t,i,e){!i&&!pp(t)||YD(t,e,i)}function pp(t){return Rp(t)}function YD(t,i,e){let n;e?(n=0,t[Te]|=1024):t[Te]&64?n=0:n=1,Uy(t,i,n)}var hp=class{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},mc=(()=>{let i=class i{compileModuleSync(n){return new sp(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=o_(n),s=py(o.declarations).reduce((a,l)=>{let u=nr(l);return u&&a.push(new Ao(u)),a},[]);return new hp(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var XD=(()=>{let i=class i{constructor(){this.zone=W(ge),this.applicationRef=W(Kr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function JD(t){return[{provide:ge,useFactory:t},{provide:Do,multi:!0,useFactory:()=>{let i=W(XD,{optional:!0});return()=>i.initialize()}},{provide:Do,multi:!0,useFactory:()=>{let i=W(i2);return()=>{i.initialize()}}},{provide:q_,useFactory:e2}]}function e2(){let t=W(ge),i=W(ti);return e=>t.runOutsideAngular(()=>i.handleError(e))}function t2(t){let i=JD(()=>new ge(n2(t)));return Vo([[],i])}function n2(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var i2=(()=>{let i=class i{constructor(){this.subscription=new zt,this.initialized=!1,this.zone=W(ge),this.pendingTasks=W($r)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function r2(){return typeof $localize<"u"&&$localize.locale||Vl}var Ch=new he("",{providedIn:"root",factory:()=>W(Ch,Ue.Optional|Ue.SkipSelf)||r2()});var vv=new he("");var vl=null;function o2(t=[],i){return Hn.create({name:i,providers:[{provide:Ul,useValue:"platform"},{provide:vv,useValue:new Set([()=>vl=null])},...t]})}function s2(t=[]){if(vl)return vl;let i=o2(t);return vl=i,qD(),a2(i),i}function a2(t){t.get(Up,null)?.forEach(e=>e())}var ce=(()=>{let i=class i{};i.__NG_ELEMENT_ID__=l2;let t=i;return t})();function l2(t){return c2(sn(),De(),(t&16)===16)}function c2(t,i,e){if(Gl(t)&&!e){let n=sr(t.index,i);return new Br(n,n)}else if(t.type&47){let n=i[ei];return new Br(n,i)}return null}var fp=class{constructor(){}supports(i){return Jy(i)}create(i){return new mp(i)}},u2=(t,i)=>i,mp=class{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||u2}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){let s=!n||e&&e.currentIndex<V0(n,r,o)?e:n,a=V0(s,r,o),l=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(e=e._next,s.previousIndex==null)r++;else{o||(o=[]);let u=a-r,h=l-r;if(u!=h){for(let I=0;I<u;I++){let S=I<o.length?o[I]:o[I]=0,M=S+I;h<=M&&M<u&&(o[I]=S+1)}let _=s.previousIndex;o[_]=h-u}}a!==l&&i(s,a,l)}}forEachPreviousItem(i){let e;for(e=this._previousItHead;e!==null;e=e._nextPrevious)i(e)}forEachAddedItem(i){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)i(e)}forEachMovedItem(i){let e;for(e=this._movesHead;e!==null;e=e._nextMoved)i(e)}forEachRemovedItem(i){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let e;for(e=this._identityChangesHead;e!==null;e=e._nextIdentityChange)i(e)}diff(i){if(i==null&&(i=[]),!Jy(i))throw new G(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let e=this._itHead,n=!1,r,o,s;if(Array.isArray(i)){this.length=i.length;for(let a=0;a<this.length;a++)o=i[a],s=this._trackByFn(a,o),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,o,s,a),n=!0):(n&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)),e=e._next}else r=0,XS(i,a=>{s=this._trackByFn(r,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,r),n=!0):(n&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,r){let o;return i===null?o=this._itTail:(o=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,o,r)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,r),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,o,r)):i=this._addAfter(new gp(e,n),o,r)),i}_verifyReinsertion(i,e,n,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?i=this._reinsertAfter(o,i._prev,r):i.currentIndex!=r&&(i.currentIndex=r,this._addToMoves(i,r)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let r=i._prevRemoved,o=i._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let r=e===null?this._itHead:e._next;return i._next=r,i._prev=e,r===null?this._itTail=i:r._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new Pl),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Pl),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},gp=class{constructor(i,e){this.item=i,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},_p=class{constructor(){this._head=null,this._tail=null}add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},Pl=class{constructor(){this.map=new Map}put(i){let e=i.trackById,n=this.map.get(e);n||(n=new _p,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,r=this.map.get(n);return r?r.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function V0(t,i,e){let n=t.previousIndex;if(n===null)return n;let r=0;return e&&n<e.length&&(r=e[n]),n+i+r}var yp=class{constructor(){}supports(i){return i instanceof Map||ph(i)}create(){return new vp}},vp=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(i){let e;for(e=this._mapHead;e!==null;e=e._next)i(e)}forEachPreviousItem(i){let e;for(e=this._previousMapHead;e!==null;e=e._nextPrevious)i(e)}forEachChangedItem(i){let e;for(e=this._changesHead;e!==null;e=e._nextChanged)i(e)}forEachAddedItem(i){let e;for(e=this._additionsHead;e!==null;e=e._nextAdded)i(e)}forEachRemovedItem(i){let e;for(e=this._removalsHead;e!==null;e=e._nextRemoved)i(e)}diff(i){if(!i)i=new Map;else if(!(i instanceof Map||ph(i)))throw new G(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(r,n);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let r=this._records.get(i);this._maybeAddToChanges(r,e);let o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}let n=new Cp(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},Cp=class{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function P0(){return new bh([new fp])}var bh=(()=>{let i=class i{constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new i(n)}static extend(n){return{provide:i,useFactory:r=>i.create(n,r||P0()),deps:[[i,new zl,new Rs]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new G(901,!1)}};i.\u0275prov=q({token:i,providedIn:"root",factory:P0});let t=i;return t})();function H0(){return new wh([new yp])}var wh=(()=>{let i=class i{constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new i(n)}static extend(n){return{provide:i,useFactory:r=>i.create(n,r||H0()),deps:[[i,new zl,new Rs]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new G(901,!1)}};i.\u0275prov=q({token:i,providedIn:"root",factory:H0});let t=i;return t})();var Cv=(()=>{let i=class i{constructor(n){}};i.\u0275fac=function(r){return new(r||i)(Y(Kr))},i.\u0275mod=te({type:i}),i.\u0275inj=ee({});let t=i;return t})();function bv(t){try{let{rootComponent:i,appProviders:e,platformProviders:n}=t,r=s2(n),o=[t2(),...e||[]],a=new Ll({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(ge);return l.run(()=>{a.resolveInjectorInitializers();let u=a.get(ti,null),h;l.runOutsideAngular(()=>{h=l.onError.subscribe({next:S=>{u.handleError(S)}})});let _=()=>a.destroy(),I=r.get(vv);return I.add(_),a.onDestroy(()=>{h.unsubscribe(),I.delete(_)}),QD(u,l,()=>{let S=a.get(yv);return S.runInitializers(),S.donePromise.then(()=>{let M=a.get(Ch,Vl);OD(M||Vl);let A=a.get(Kr);return i!==void 0&&A.bootstrap(i),A})})})}catch(i){return Promise.reject(i)}}function T(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Q(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}function yn(t,i){lr("NgSignals");let e=vg(t);return i?.equal&&(e[ui].equal=i.equal),e}var d2=new he("",{providedIn:"root",factory:()=>W(p2)}),p2=(()=>{let i=class i{};i.\u0275prov=q({token:i,providedIn:"root",factory:()=>new bp});let t=i;return t})(),bp=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=W($r),this.taskId=null}scheduleEffect(i){if(this.enqueue(i),this.taskId===null){let e=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null})}}enqueue(i){let e=i.creationZone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||(this.queuedEffectCount++,n.add(i))}flush(){for(;this.queuedEffectCount>0;)for(let[i,e]of this.queues)i===null?this.flushQueue(e):i.run(()=>this.flushQueue(e))}flushQueue(i){for(let e of i)i.delete(e),this.queuedEffectCount--,e.run()}},wp=class{constructor(i,e,n,r,o,s){this.scheduler=i,this.effectFn=e,this.creationZone=n,this.injector=o,this.watcher=Sg(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}runEffect(i){try{this.effectFn(i)}catch(e){this.injector.get(ti,null,{optional:!0})?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function Qr(t,i){lr("NgSignals"),!i?.injector&&h_(Qr);let e=i?.injector??W(Hn),n=i?.manualCleanup!==!0?e.get(Xl):null,r=new wp(e.get(d2),t,typeof Zone>"u"?null:Zone.current,n,e,i?.allowSignalWrites??!1),o=e.get(ce,null,{optional:!0});return!o||!(o._lView[Te]&8)?r.watcher.notify():(o._lView[fl]??=[]).push(r.watcher.notify),r}function wv(t){let i=nr(t);if(!i)return null;let e=new Ao(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var Ev=null;function vi(){return Ev}function Mv(t){Ev??=t}var gc=class{};var Se=new he(""),Oh=(()=>{let i=class i{historyGo(n){throw new Error("")}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:()=>W(h2),providedIn:"platform"});let t=i;return t})(),Ov=new he(""),h2=(()=>{let i=class i extends Oh{constructor(){super(),this._doc=W(Se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vi().getBaseHref(this._doc)}onPopState(n){let r=vi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=vi().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:()=>new i,providedIn:"platform"});let t=i;return t})();function kh(t,i){if(t.length==0)return i;if(i.length==0)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,e==2?t+i.substring(1):e==1?t+i:t+"/"+i}function Iv(t){let i=t.match(/#|\?|$/),e=i&&i.index||t.length,n=e-(t[e-1]==="/"?1:0);return t.slice(0,n)+t.slice(e)}function Pi(t){return t&&t[0]!=="?"?"?"+t:t}var Hi=(()=>{let i=class i{historyGo(n){throw new Error("")}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:()=>W(Fh),providedIn:"root"});let t=i;return t})(),kv=new he(""),Fh=(()=>{let i=class i extends Hi{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??W(Se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return kh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Pi(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+Pi(s));this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+Pi(s));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};i.\u0275fac=function(r){return new(r||i)(Y(Oh),Y(kv,8))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})(),Fv=(()=>{let i=class i extends Hi{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=kh(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,s){let a=this.prepareExternalUrl(o+Pi(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,r,a)}replaceState(n,r,o,s){let a=this.prepareExternalUrl(o+Pi(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};i.\u0275fac=function(r){return new(r||i)(Y(Oh),Y(kv,8))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})(),$o=(()=>{let i=class i{constructor(n){this._subject=new O,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=g2(Iv(xv(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Pi(r))}normalize(n){return i.stripTrailingSlash(m2(this._basePath,xv(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pi(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pi(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}};i.normalizeQueryParams=Pi,i.joinWithSlash=kh,i.stripTrailingSlash=Iv,i.\u0275fac=function(r){return new(r||i)(Y(Hi))},i.\u0275prov=q({token:i,factory:()=>f2(),providedIn:"root"});let t=i;return t})();function f2(){return new $o(Y(Hi))}function m2(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function xv(t){return t.replace(/\/index.html$/,"")}function g2(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function _c(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[r,o]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(r.trim()===i)return decodeURIComponent(o)}return null}var Ih=/\s+/,Tv=[],Oe=(()=>{let i=class i{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=Tv,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Ih):Tv}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Ih):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Ih).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}};i.\u0275fac=function(r){return new(r||i)(x(_e),x(Be))},i.\u0275dir=$e({type:i,selectors:[["","ngClass",""]],inputs:{klass:[C.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=i;return t})();var xh=class{constructor(i,e,n,r){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ct=(()=>{let i=class i{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new xh(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(s===null?void 0:s);else if(s!==null){let l=r.get(s);r.move(l,a),Sv(l,o)}});for(let o=0,s=r.length;o<s;o++){let l=r.get(o).context;l.index=o,l.count=s,l.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let s=r.get(o.currentIndex);Sv(s,o)})}static ngTemplateContextGuard(n,r){return!0}};i.\u0275fac=function(r){return new(r||i)(x(Bn),x(Nn),x(bh))},i.\u0275dir=$e({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=i;return t})();function Sv(t,i){t.context.$implicit=i.item}var Ce=(()=>{let i=class i{constructor(n,r){this._viewContainer=n,this._context=new Th,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Dv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Dv("ngIfElse",n),this._elseTemplateRef=n,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 ngTemplateContextGuard(n,r){return!0}};i.\u0275fac=function(r){return new(r||i)(x(Bn),x(Nn))},i.\u0275dir=$e({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=i;return t})(),Th=class{constructor(){this.$implicit=null,this.ngIf=null}};function Dv(t,i){if(!!!(!i||i.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${ln(i)}'.`)}var _2=!0,Sh=class{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}},Ah=(()=>{let i=class i{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let r=_2?n===this._ngSwitch:n==this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let r of this._defaultViews)r.enforceState(n)}}};i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=$e({type:i,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=i;return t})(),Av=(()=>{let i=class i{constructor(n,r,o){this.ngSwitch=o,o._addCase(),this._view=new Sh(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};i.\u0275fac=function(r){return new(r||i)(x(Bn),x(Nn),x(Ah,9))},i.\u0275dir=$e({type:i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=i;return t})();var je=(()=>{let i=class i{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[o,s]=n.split("."),a=o.indexOf("-")===-1?void 0:_i.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${r}${s}`:r,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}};i.\u0275fac=function(r){return new(r||i)(x(_e),x(wh),x(Be))},i.\u0275dir=$e({type:i,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=i;return t})(),Ae=(()=>{let i=class i{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}};i.\u0275fac=function(r){return new(r||i)(x(Bn))},i.\u0275dir=$e({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[$t]});let t=i;return t})();var ue=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=te({type:i}),i.\u0275inj=ee({});let t=i;return t})(),Rh="browser",y2="server";function bt(t){return t===Rh}function Lh(t){return t===y2}var Rv=(()=>{let i=class i{};i.\u0275prov=q({token:i,providedIn:"root",factory:()=>bt(W(pt))?new Dh(W(Se),window):new Eh});let t=i;return t})(),Dh=class{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let e=v2(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}};function v2(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let o=r.shadowRoot;if(o){let s=o.getElementById(i)||o.querySelector(`[name="${i}"]`);if(s)return s}r=n.nextNode()}}return null}var Eh=class{setOffset(i){}getScrollPosition(){return[0,0]}scrollToPosition(i){}scrollToAnchor(i){}setHistoryScrollRestoration(i){}},Uo=class{};var Us=class{},vc=class{},Zr=class t{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(`
8
+ `).forEach(e=>{let n=e.indexOf(":");if(n>0){let r=e.slice(0,n),o=r.toLowerCase(),s=e.slice(n+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let r=(i.op==="a"?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":let o=i.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=i.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(i,r)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Vh=class{encodeKey(i){return Lv(i)}encodeValue(i){return Lv(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function w2(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[s,a]=o==-1?[i.decodeKey(r),""]:[i.decodeKey(r.slice(0,o)),i.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}var I2=/%(\d[a-f0-9])/gi,x2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Lv(t){return encodeURIComponent(t).replace(I2,(i,e)=>x2[e]??i)}function yc(t){return`${t}`}var cr=class t{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new Vh,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=w2(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],r=Array.isArray(n)?n.map(yc):[yc(n)];this.map.set(e,r)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let r=i[n];Array.isArray(r)?r.forEach(o=>{e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:r,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(yc(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],r=n.indexOf(yc(i.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var Ph=class{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function T2(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Nv(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Vv(t){return typeof Blob<"u"&&t instanceof Blob}function Pv(t){return typeof FormData<"u"&&t instanceof FormData}function S2(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var zs=class t{constructor(i,e,n,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase();let o;if(T2(this.method)||r?(this.body=n!==void 0?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Zr,this.context??=new Ph,!this.params)this.params=new cr,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":a<e.length-1?"&":"";this.urlWithParams=e+l+s}}}serializeBody(){return this.body===null?null:Nv(this.body)||Vv(this.body)||Pv(this.body)||S2(this.body)||typeof this.body=="string"?this.body:this.body instanceof cr?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Pv(this.body)?null:Vv(this.body)?this.body.type||null:Nv(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof cr?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(i={}){let e=i.method||this.method,n=i.url||this.url,r=i.responseType||this.responseType,o=i.body!==void 0?i.body:this.body,s=i.withCredentials!==void 0?i.withCredentials:this.withCredentials,a=i.reportProgress!==void 0?i.reportProgress:this.reportProgress,l=i.headers||this.headers,u=i.params||this.params,h=i.context??this.context;return i.setHeaders!==void 0&&(l=Object.keys(i.setHeaders).reduce((_,I)=>_.set(I,i.setHeaders[I]),l)),i.setParams&&(u=Object.keys(i.setParams).reduce((_,I)=>_.set(I,i.setParams[I]),u)),new t(e,n,o,{params:u,headers:l,context:h,reportProgress:a,responseType:r,withCredentials:s})}},Go=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Go||{}),$s=class{constructor(i,e=wc.Ok,n="OK"){this.headers=i.headers||new Zr,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}},Hh=class t extends $s{constructor(i={}){super(i),this.type=Go.ResponseHeader}clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},Cc=class t extends $s{constructor(i={}){super(i),this.type=Go.Response,this.body=i.body!==void 0?i.body:null}clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},bc=class extends $s{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},wc=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(wc||{});function Nh(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Bh=(()=>{let i=class i{constructor(n){this.handler=n}request(n,r,o={}){let s;if(n instanceof zs)s=n;else{let u;o.headers instanceof Zr?u=o.headers:u=new Zr(o.headers);let h;o.params&&(o.params instanceof cr?h=o.params:h=new cr({fromObject:o.params})),s=new zs(n,r,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:h,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=ve(s).pipe(Ei(u=>this.handler.handle(u)));if(n instanceof zs||o.observe==="events")return a;let l=a.pipe(fn(u=>u instanceof Cc));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(Ne(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return l.pipe(Ne(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return l.pipe(Ne(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return l.pipe(Ne(u=>u.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new cr().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Nh(o,r))}post(n,r,o={}){return this.request("POST",n,Nh(o,r))}put(n,r,o={}){return this.request("PUT",n,Nh(o,r))}};i.\u0275fac=function(r){return new(r||i)(Y(Us))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})();function D2(t,i){return i(t)}function E2(t,i,e){return(n,r)=>ni(e,()=>i(n,o=>t(o,r)))}var jv=new he(""),M2=new he(""),O2=new he("");var Hv=(()=>{let i=class i extends Us{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=W($r);let o=W(O2,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(jv),...this.injector.get(M2,[])]));this.chain=o.reduceRight((s,a)=>E2(s,a,this.injector),D2)}let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Or(()=>this.pendingTasks.remove(r)))}};i.\u0275fac=function(r){return new(r||i)(Y(vc),Y(cn))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})();var k2=/^\)\]\}',?\n/;function F2(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Bv=(()=>{let i=class i{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new G(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?gt(r.\u0275loadImpl()):ve(null)).pipe(mn(()=>new Xe(s=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((V,B)=>a.setRequestHeader(V,B.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let V=n.detectContentTypeHeader();V!==null&&a.setRequestHeader("Content-Type",V)}if(n.responseType){let V=n.responseType.toLowerCase();a.responseType=V!=="json"?V:"text"}let l=n.serializeBody(),u=null,h=()=>{if(u!==null)return u;let V=a.statusText||"OK",B=new Zr(a.getAllResponseHeaders()),re=F2(a)||n.url;return u=new Hh({headers:B,status:a.status,statusText:V,url:re}),u},_=()=>{let{headers:V,status:B,statusText:re,url:pe}=h(),ae=null;B!==wc.NoContent&&(ae=typeof a.response>"u"?a.responseText:a.response),B===0&&(B=ae?wc.Ok:0);let tt=B>=200&&B<300;if(n.responseType==="json"&&typeof ae=="string"){let Ke=ae;ae=ae.replace(k2,"");try{ae=ae!==""?JSON.parse(ae):null}catch(at){ae=Ke,tt&&(tt=!1,ae={error:at,text:ae})}}tt?(s.next(new Cc({body:ae,headers:V,status:B,statusText:re,url:pe||void 0})),s.complete()):s.error(new bc({error:ae,headers:V,status:B,statusText:re,url:pe||void 0}))},I=V=>{let{url:B}=h(),re=new bc({error:V,status:a.status||0,statusText:a.statusText||"Unknown Error",url:B||void 0});s.error(re)},S=!1,M=V=>{S||(s.next(h()),S=!0);let B={type:Go.DownloadProgress,loaded:V.loaded};V.lengthComputable&&(B.total=V.total),n.responseType==="text"&&a.responseText&&(B.partialText=a.responseText),s.next(B)},A=V=>{let B={type:Go.UploadProgress,loaded:V.loaded};V.lengthComputable&&(B.total=V.total),s.next(B)};return a.addEventListener("load",_),a.addEventListener("error",I),a.addEventListener("timeout",I),a.addEventListener("abort",I),n.reportProgress&&(a.addEventListener("progress",M),l!==null&&a.upload&&a.upload.addEventListener("progress",A)),a.send(l),s.next({type:Go.Sent}),()=>{a.removeEventListener("error",I),a.removeEventListener("abort",I),a.removeEventListener("load",_),a.removeEventListener("timeout",I),n.reportProgress&&(a.removeEventListener("progress",M),l!==null&&a.upload&&a.upload.removeEventListener("progress",A)),a.readyState!==a.DONE&&a.abort()}})))}};i.\u0275fac=function(r){return new(r||i)(Y(Uo))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})(),zv=new he(""),A2="XSRF-TOKEN",R2=new he("",{providedIn:"root",factory:()=>A2}),L2="X-XSRF-TOKEN",N2=new he("",{providedIn:"root",factory:()=>L2}),Ic=class{},V2=(()=>{let i=class i{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=_c(n,this.cookieName),this.lastCookieString=n),this.lastToken}};i.\u0275fac=function(r){return new(r||i)(Y(Se),Y(pt),Y(R2))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})();function P2(t,i){let e=t.url.toLowerCase();if(!W(zv)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return i(t);let n=W(Ic).getToken(),r=W(N2);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),i(t)}function Uv(...t){let i=[Bh,Bv,Hv,{provide:Us,useExisting:Hv},{provide:vc,useExisting:Bv},{provide:jv,useValue:P2,multi:!0},{provide:zv,useValue:!0},{provide:Ic,useClass:V2}];for(let e of t)i.push(...e.\u0275providers);return Vo(i)}var Uh=class extends gc{constructor(){super(...arguments),this.supportsDOMEvents=!0}},$h=class t extends Uh{static makeCurrent(){Mv(new t)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=B2();return e==null?null:j2(e)}resetBaseElement(){Gs=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return _c(document.cookie,i)}},Gs=null;function B2(){return Gs=Gs||document.querySelector("base"),Gs?Gs.getAttribute("href"):null}function j2(t){return new URL(t,document.baseURI).pathname}var Gh=class{addToWindow(i){on.getAngularTestability=(n,r=!0)=>{let o=i.findTestabilityInTree(n,r);if(o==null)throw new G(5103,!1);return o},on.getAllAngularTestabilities=()=>i.getAllTestabilities(),on.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let r=on.getAllAngularTestabilities(),o=r.length,s=function(){o--,o==0&&n()};r.forEach(a=>{a.whenStable(s)})};on.frameworkStabilizers||(on.frameworkStabilizers=[]),on.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let r=i.getTestability(e);return r??(n?vi().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},z2=(()=>{let i=class i{build(){return new XMLHttpRequest}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})(),Wh=new he(""),Wv=(()=>{let i=class i{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(s=>s.supports(n)),!r)throw new G(5101,!1);return this._eventNameToPlugin.set(n,r),r}};i.\u0275fac=function(r){return new(r||i)(Y(Wh),Y(ge))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})(),xc=class{constructor(i){this._doc=i}},jh="ng-app-id",qv=(()=>{let i=class i{constructor(n,r,o,s={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Lh(s),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${jh}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=r,s.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,s=o?.get(r);if(s?.parentNode===n)return o.delete(r),s.removeAttribute(jh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(jh,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),s=this.styleRef,a=s.get(r)?.elements;a?a.push(o):s.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};i.\u0275fac=function(r){return new(r||i)(Y(Se),Y(Jl),Y(Gp,8),Y(pt))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})(),zh={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/MathML/"},Kh=/%COMP%/g,Kv="%COMP%",U2=`_nghost-${Kv}`,$2=`_ngcontent-${Kv}`,G2=!0,W2=new he("",{providedIn:"root",factory:()=>G2});function q2(t){return $2.replace(Kh,t)}function K2(t){return U2.replace(Kh,t)}function Qv(t,i){return i.map(e=>e.replace(Kh,t))}var Tc=(()=>{let i=class i{constructor(n,r,o,s,a,l,u,h=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=u,this.nonce=h,this.rendererByCompId=new Map,this.platformIsServer=Lh(l),this.defaultRenderer=new Ws(n,a,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===mi.ShadowDom&&(r=Le($({},r),{encapsulation:mi.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Sc?o.applyToHost(n):o instanceof qs&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,s=o.get(r.id);if(!s){let a=this.doc,l=this.ngZone,u=this.eventManager,h=this.sharedStylesHost,_=this.removeStylesOnCompDestroy,I=this.platformIsServer;switch(r.encapsulation){case mi.Emulated:s=new Sc(u,h,r,this.appId,_,a,l,I);break;case mi.ShadowDom:return new qh(u,h,n,r,a,l,this.nonce,I);default:s=new qs(u,h,r,_,a,l,I);break}o.set(r.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};i.\u0275fac=function(r){return new(r||i)(Y(Wv),Y(qv),Y(Jl),Y(W2),Y(Se),Y(pt),Y(ge),Y(Gp))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})(),Ws=class{constructor(i,e,n,r){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(zh[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){($v(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&($v(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new G(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,r){if(r){e=r+":"+e;let o=zh[r];o?i.setAttributeNS(o,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let r=zh[n];r?i.removeAttributeNS(r,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,r){r&(_i.DashCase|_i.Important)?i.style.setProperty(e,n,r&_i.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&_i.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n){if(typeof i=="string"&&(i=vi().getGlobalEventTarget(this.doc,i),!i))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))===!1&&e.preventDefault()}}};function $v(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var qh=class extends Ws{constructor(i,e,n,r,o,s,a,l){super(i,o,s,l),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=Qv(r.id,r.styles);for(let h of u){let _=document.createElement("style");a&&_.setAttribute("nonce",a),_.textContent=h,this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},qs=class extends Ws{constructor(i,e,n,r,o,s,a,l){super(i,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=l?Qv(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Sc=class extends qs{constructor(i,e,n,r,o,s,a,l){let u=r+"-"+n.id;super(i,e,n,o,s,a,l,u),this.contentAttr=q2(u),this.hostAttr=K2(u)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}},Q2=(()=>{let i=class i extends xc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}};i.\u0275fac=function(r){return new(r||i)(Y(Se))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})(),Gv=["alt","control","meta","shift"],Z2={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Y2={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},X2=(()=>{let i=class i extends xc{constructor(n){super(n)}supports(n){return i.parseEventName(n)!=null}addEventListener(n,r,o){let s=i.parseEventName(r),a=i.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vi().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let s=i._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),Gv.forEach(h=>{let _=r.indexOf(h);_>-1&&(r.splice(_,1),a+=h+".")}),a+=s,r.length!=0||s.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(n,r){let o=Z2[n.key]||n.key,s="";return r.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Gv.forEach(a=>{if(a!==o){let l=Y2[a];l(n)&&(s+=a+".")}}),s+=o,s===r)}static eventCallback(n,r,o){return s=>{i.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>r(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};i.\u0275fac=function(r){return new(r||i)(Y(Se))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})();function Zv(t,i){return bv($({rootComponent:t},J2(i)))}function J2(t){return{appProviders:[...Yv,...t?.providers??[]],platformProviders:iE}}function eE(){$h.makeCurrent()}function tE(){return new ti}function nE(){return Q_(document),document}var iE=[{provide:pt,useValue:Rh},{provide:Up,useValue:eE,multi:!0},{provide:Se,useFactory:nE,deps:[]}];var rE=new he(""),oE=[{provide:Bs,useClass:Gh,deps:[]},{provide:yh,useClass:pc,deps:[ge,hc,Bs]},{provide:pc,useClass:pc,deps:[ge,hc,Bs]}],Yv=[{provide:Ul,useValue:"root"},{provide:ti,useFactory:tE,deps:[]},{provide:Wh,useClass:Q2,multi:!0,deps:[Se,ge,pt]},{provide:Wh,useClass:X2,multi:!0,deps:[Se]},Tc,qv,Wv,{provide:jr,useExisting:Tc},{provide:Uo,useClass:z2,deps:[]},[]],Xv=(()=>{let i=class i{constructor(n){}static withServerTransition(n){return{ngModule:i,providers:[{provide:Jl,useValue:n.appId}]}}};i.\u0275fac=function(r){return new(r||i)(Y(rE,12))},i.\u0275mod=te({type:i}),i.\u0275inj=ee({providers:[...Yv,...oE],imports:[ue,Cv]});let t=i;return t})();var Jv=(()=>{let i=class i{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};i.\u0275fac=function(r){return new(r||i)(Y(Se))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Qh=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:function(r){let o=null;return r?o=new(r||i):o=Y(sE),o},providedIn:"root"});let t=i;return t})(),sE=(()=>{let i=class i extends Qh{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case ii.NONE:return r;case ii.HTML:return Ri(r,"HTML")?En(r):qp(this._doc,String(r)).toString();case ii.STYLE:return Ri(r,"Style")?En(r):r;case ii.SCRIPT:if(Ri(r,"Script"))return En(r);throw new G(5200,!1);case ii.URL:return Ri(r,"URL")?En(r):tc(String(r));case ii.RESOURCE_URL:if(Ri(r,"ResourceURL"))return En(r);throw new G(5201,!1);default:throw new G(5202,!1)}}bypassSecurityTrustHtml(n){return J_(n)}bypassSecurityTrustStyle(n){return ey(n)}bypassSecurityTrustScript(n){return ty(n)}bypassSecurityTrustUrl(n){return ny(n)}bypassSecurityTrustResourceUrl(n){return iy(n)}};i.\u0275fac=function(r){return new(r||i)(Y(Se))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Me=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Me||{}),Ci="*";function en(t,i){return{type:Me.Trigger,name:t,definitions:i,options:{}}}function vt(t,i=null){return{type:Me.Animate,styles:i,timings:t}}function t1(t,i=null){return{type:Me.Sequence,steps:t,options:i}}function Je(t){return{type:Me.Style,styles:t,offset:null}}function Dc(t,i,e){return{type:Me.State,name:t,styles:i,options:e}}function ft(t,i,e=null){return{type:Me.Transition,expr:t,animation:i,options:e}}function Bi(t,i=null){return{type:Me.Reference,animation:t,options:i}}function n1(t=null){return{type:Me.AnimateChild,options:t}}function ji(t,i=null){return{type:Me.AnimateRef,animation:t,options:i}}function i1(t,i,e=null){return{type:Me.Query,selector:t,animation:i,options:e}}var ur=class{constructor(i=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Ks=class{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++n==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(r)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Ec="!";function r1(t){return new G(3e3,!1)}function aE(){return new G(3100,!1)}function lE(){return new G(3101,!1)}function cE(t){return new G(3001,!1)}function uE(t){return new G(3003,!1)}function dE(t){return new G(3004,!1)}function pE(t,i){return new G(3005,!1)}function hE(){return new G(3006,!1)}function fE(){return new G(3007,!1)}function mE(t,i){return new G(3008,!1)}function gE(t){return new G(3002,!1)}function _E(t,i,e,n,r){return new G(3010,!1)}function yE(){return new G(3011,!1)}function vE(){return new G(3012,!1)}function CE(){return new G(3200,!1)}function bE(){return new G(3202,!1)}function wE(){return new G(3013,!1)}function IE(t){return new G(3014,!1)}function xE(t){return new G(3015,!1)}function TE(t){return new G(3016,!1)}function SE(t,i){return new G(3404,!1)}function DE(t){return new G(3502,!1)}function EE(t){return new G(3503,!1)}function ME(){return new G(3300,!1)}function OE(t){return new G(3504,!1)}function kE(t){return new G(3301,!1)}function FE(t,i){return new G(3302,!1)}function AE(t){return new G(3303,!1)}function RE(t,i){return new G(3400,!1)}function LE(t){return new G(3401,!1)}function NE(t){return new G(3402,!1)}function VE(t,i){return new G(3505,!1)}function dr(t){switch(t.length){case 0:return new ur;case 1:return t[0];default:return new Ks(t)}}function y1(t,i,e=new Map,n=new Map){let r=[],o=[],s=-1,a=null;if(i.forEach(l=>{let u=l.get("offset"),h=u==s,_=h&&a||new Map;l.forEach((I,S)=>{let M=S,A=I;if(S!=="offset")switch(M=t.normalizePropertyName(M,r),A){case Ec:A=e.get(S);break;case Ci:A=n.get(S);break;default:A=t.normalizeStyleValue(S,M,A,r);break}_.set(M,A)}),h||o.push(_),a=_,s=u}),r.length)throw DE(r);return o}function vf(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&Zh(e,"start",t)));break;case"done":t.onDone(()=>n(e&&Zh(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&Zh(e,"destroy",t)));break}}function Zh(t,i,e){let n=e.totalTime,r=!!e.disabled,o=Cf(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,n??t.totalTime,r),s=t._data;return s!=null&&(o._data=s),o}function Cf(t,i,e,n,r="",o=0,s){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:r,totalTime:o,disabled:!!s}}function Fn(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function o1(t){let i=t.indexOf(":"),e=t.substring(1,i),n=t.slice(i+1);return[e,n]}var PE=typeof document>"u"?null:document.documentElement;function bf(t){let i=t.parentNode||t.host||null;return i===PE?null:i}function HE(t){return t.substring(1,6)=="ebkit"}var Yr=null,s1=!1;function BE(t){Yr||(Yr=jE()||{},s1=Yr.style?"WebkitAppearance"in Yr.style:!1);let i=!0;return Yr.style&&!HE(t)&&(i=t in Yr.style,!i&&s1&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Yr.style)),i}function jE(){return typeof document<"u"?document.body:null}function v1(t,i){for(;i;){if(i===t)return!0;i=bf(i)}return!1}function C1(t,i,e){if(e)return Array.from(t.querySelectorAll(i));let n=t.querySelector(i);return n?[n]:[]}var wf=(()=>{let i=class i{validateStyleProperty(n){return BE(n)}matchesElement(n,r){return!1}containsElement(n,r){return v1(n,r)}getParentElement(n){return bf(n)}query(n,r,o){return C1(n,r,o)}computeStyle(n,r,o){return o||""}animate(n,r,o,s,a,l=[],u){return new ur(o,s)}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})(),Sf=class Sf{};Sf.NOOP=new wf;var eo=Sf,to=class{};var zE=1e3,b1="{{",UE="}}",w1="ng-enter",nf="ng-leave",Mc="ng-trigger",Rc=".ng-trigger",a1="ng-animating",rf=".ng-animating";function zi(t){if(typeof t=="number")return t;let i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:of(parseFloat(i[1]),i[2])}function of(t,i){switch(i){case"s":return t*zE;default:return t}}function Lc(t,i,e){return t.hasOwnProperty("duration")?t:$E(t,i,e)}function $E(t,i,e){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,o=0,s="";if(typeof t=="string"){let a=t.match(n);if(a===null)return i.push(r1(t)),{duration:0,delay:0,easing:""};r=of(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(o=of(parseFloat(l),a[4]));let u=a[5];u&&(s=u)}else r=t;if(!e){let a=!1,l=i.length;r<0&&(i.push(aE()),a=!0),o<0&&(i.push(lE()),a=!0),a&&i.splice(l,0,r1(t))}return{duration:r,delay:o,easing:s}}function GE(t){return t.length?t[0]instanceof Map?t:t.map(i=>new Map(Object.entries(i))):[]}function bi(t,i,e){i.forEach((n,r)=>{let o=If(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=n})}function Jr(t,i){i.forEach((e,n)=>{let r=If(n);t.style[r]=""})}function Qs(t){return Array.isArray(t)?t.length==1?t[0]:t1(t):t}function WE(t,i,e){let n=i.params||{},r=I1(t);r.length&&r.forEach(o=>{n.hasOwnProperty(o)||e.push(cE(o))})}var sf=new RegExp(`${b1}\\s*(.+?)\\s*${UE}`,"g");function I1(t){let i=[];if(typeof t=="string"){let e;for(;e=sf.exec(t);)i.push(e[1]);sf.lastIndex=0}return i}function Ys(t,i,e){let n=`${t}`,r=n.replace(sf,(o,s)=>{let a=i[s];return a==null&&(e.push(uE(s)),a=""),a.toString()});return r==n?t:r}var qE=/-+([a-z0-9])/g;function If(t){return t.replace(qE,(...i)=>i[1].toUpperCase())}function KE(t,i){return t===0||i===0}function QE(t,i,e){if(e.size&&i.length){let n=i[0],r=[];if(e.forEach((o,s)=>{n.has(s)||r.push(s),n.set(s,o)}),r.length)for(let o=1;o<i.length;o++){let s=i[o];r.forEach(a=>s.set(a,xf(t,a)))}}return i}function kn(t,i,e){switch(i.type){case Me.Trigger:return t.visitTrigger(i,e);case Me.State:return t.visitState(i,e);case Me.Transition:return t.visitTransition(i,e);case Me.Sequence:return t.visitSequence(i,e);case Me.Group:return t.visitGroup(i,e);case Me.Animate:return t.visitAnimate(i,e);case Me.Keyframes:return t.visitKeyframes(i,e);case Me.Style:return t.visitStyle(i,e);case Me.Reference:return t.visitReference(i,e);case Me.AnimateChild:return t.visitAnimateChild(i,e);case Me.AnimateRef:return t.visitAnimateRef(i,e);case Me.Query:return t.visitQuery(i,e);case Me.Stagger:return t.visitStagger(i,e);default:throw dE(i.type)}}function xf(t,i){return window.getComputedStyle(t)[i]}var ZE=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Nc=class extends to{normalizePropertyName(i,e){return If(i)}normalizeStyleValue(i,e,n,r){let o="",s=n.toString().trim();if(ZE.has(e)&&n!==0&&n!=="0")if(typeof n=="number")o="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(pE(i,n))}return s+o}};var Vc="*";function YE(t,i){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>XE(n,e,i)):e.push(t),e}function XE(t,i,e){if(t[0]==":"){let l=JE(t,e);if(typeof l=="function"){i.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return e.push(xE(t)),i;let r=n[1],o=n[2],s=n[3];i.push(l1(r,s));let a=r==Vc&&s==Vc;o[0]=="<"&&!a&&i.push(l1(s,r))}function JE(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return i.push(TE(t)),"* => *"}}var Oc=new Set(["true","1"]),kc=new Set(["false","0"]);function l1(t,i){let e=Oc.has(t)||kc.has(t),n=Oc.has(i)||kc.has(i);return(r,o)=>{let s=t==Vc||t==r,a=i==Vc||i==o;return!s&&e&&typeof r=="boolean"&&(s=r?Oc.has(t):kc.has(t)),!a&&n&&typeof o=="boolean"&&(a=o?Oc.has(i):kc.has(i)),s&&a}}var x1=":self",eM=new RegExp(`s*${x1}s*,?`,"g");function T1(t,i,e,n){return new af(t).build(i,e,n)}var c1="",af=class{constructor(i){this._driver=i}build(i,e,n){let r=new lf(e);return this._resetContextStyleTimingState(r),kn(this,Qs(i),r)}_resetContextStyleTimingState(i){i.currentQuerySelector=c1,i.collectedStyles=new Map,i.collectedStyles.set(c1,new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,r=e.depCount=0,o=[],s=[];return i.name.charAt(0)=="@"&&e.errors.push(hE()),i.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Me.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,o.push(this.visitState(l,e))}),l.name=u}else if(a.type==Me.Transition){let l=this.visitTransition(a,e);n+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(fE())}),{type:Me.Trigger,name:i.name,states:o,transitions:s,queryCount:n,depCount:r,options:null}}visitState(i,e){let n=this.visitStyle(i.styles,e),r=i.options&&i.options.params||null;if(n.containsDynamicStyles){let o=new Set,s=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{I1(l).forEach(u=>{s.hasOwnProperty(u)||o.add(u)})})}),o.size&&e.errors.push(mE(i.name,[...o.values()]))}return{type:Me.State,name:i.name,style:n,options:r?{params:r}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;let n=kn(this,Qs(i.animation),e),r=YE(i.expr,e.errors);return{type:Me.Transition,matchers:r,animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Xr(i.options)}}visitSequence(i,e){return{type:Me.Sequence,steps:i.steps.map(n=>kn(this,n,e)),options:Xr(i.options)}}visitGroup(i,e){let n=e.currentTime,r=0,o=i.steps.map(s=>{e.currentTime=n;let a=kn(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:Me.Group,steps:o,options:Xr(i.options)}}visitAnimate(i,e){let n=rM(i.timings,e.errors);e.currentAnimateTimings=n;let r,o=i.styles?i.styles:Je({});if(o.type==Me.Keyframes)r=this.visitKeyframes(o,e);else{let s=i.styles,a=!1;if(!s){a=!0;let u={};n.easing&&(u.easing=n.easing),s=Je(u)}e.currentTime+=n.duration+n.delay;let l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:Me.Animate,timings:n,style:r,options:null}}visitStyle(i,e){let n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){let n=[],r=Array.isArray(i.styles)?i.styles:[i.styles];for(let a of r)typeof a=="string"?a===Ci?n.push(a):e.errors.push(gE(a)):n.push(new Map(Object.entries(a)));let o=!1,s=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o)){for(let l of a.values())if(l.toString().indexOf(b1)>=0){o=!0;break}}}),{type:Me.Style,styles:n,easing:s,offset:i.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(i,e){let n=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;n&&o>0&&(o-=n.duration+n.delay),i.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let u=e.collectedStyles.get(e.currentQuerySelector),h=u.get(l),_=!0;h&&(o!=r&&o>=h.startTime&&r<=h.endTime&&(e.errors.push(_E(l,h.startTime,h.endTime,o,r)),_=!1),o=h.startTime),_&&u.set(l,{startTime:o,endTime:r}),e.options&&WE(a,e.options,e.errors)})})}visitKeyframes(i,e){let n={type:Me.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(yE()),n;let r=1,o=0,s=[],a=!1,l=!1,u=0,h=i.steps.map(B=>{let re=this._makeStyleAst(B,e),pe=re.offset!=null?re.offset:iM(re.styles),ae=0;return pe!=null&&(o++,ae=re.offset=pe),l=l||ae<0||ae>1,a=a||ae<u,u=ae,s.push(ae),re});l&&e.errors.push(vE()),a&&e.errors.push(CE());let _=i.steps.length,I=0;o>0&&o<_?e.errors.push(bE()):o==0&&(I=r/(_-1));let S=_-1,M=e.currentTime,A=e.currentAnimateTimings,V=A.duration;return h.forEach((B,re)=>{let pe=I>0?re==S?1:I*re:s[re],ae=pe*V;e.currentTime=M+A.delay+ae,A.duration=ae,this._validateStyleAst(B,e),B.offset=pe,n.styles.push(B)}),n}visitReference(i,e){return{type:Me.Reference,animation:kn(this,Qs(i.animation),e),options:Xr(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:Me.AnimateChild,options:Xr(i.options)}}visitAnimateRef(i,e){return{type:Me.AnimateRef,animation:this.visitReference(i.animation,e),options:Xr(i.options)}}visitQuery(i,e){let n=e.currentQuerySelector,r=i.options||{};e.queryCount++,e.currentQuery=i;let[o,s]=tM(i.selector);e.currentQuerySelector=n.length?n+" "+o:o,Fn(e.collectedStyles,e.currentQuerySelector,new Map);let a=kn(this,Qs(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:Me.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:i.selector,options:Xr(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(wE());let n=i.timings==="full"?{duration:0,delay:0,easing:"full"}:Lc(i.timings,e.errors,!0);return{type:Me.Stagger,animation:kn(this,Qs(i.animation),e),timings:n,options:null}}};function tM(t){let i=!!t.split(/\s*,\s*/).find(e=>e==x1);return i&&(t=t.replace(eM,"")),t=t.replace(/@\*/g,Rc).replace(/@\w+/g,e=>Rc+"-"+e.slice(1)).replace(/:animating/g,rf),[t,i]}function nM(t){return t?$({},t):null}var lf=class{constructor(i){this.errors=i,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function iM(t){if(typeof t=="string")return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}function rM(t,i){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=Lc(t,i).duration;return Yh(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Yh(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=Lc(e,i);return Yh(r.duration,r.delay,r.easing)}function Xr(t){return t?(t=$({},t),t.params&&(t.params=nM(t.params))):t={},t}function Yh(t,i,e){return{duration:t,delay:i,easing:e}}function Tf(t,i,e,n,r,o,s=null,a=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}var Xs=class{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}},oM=1,sM=":enter",aM=new RegExp(sM,"g"),lM=":leave",cM=new RegExp(lM,"g");function S1(t,i,e,n,r,o=new Map,s=new Map,a,l,u=[]){return new cf().buildKeyframes(t,i,e,n,r,o,s,a,l,u)}var cf=class{buildKeyframes(i,e,n,r,o,s,a,l,u,h=[]){u=u||new Xs;let _=new uf(i,e,u,r,o,h,[]);_.options=l;let I=l.delay?zi(l.delay):0;_.currentTimeline.delayNextStep(I),_.currentTimeline.setStyles([s],null,_.errors,l),kn(this,n,_);let S=_.timelines.filter(M=>M.containsAnimation());if(S.length&&a.size){let M;for(let A=S.length-1;A>=0;A--){let V=S[A];if(V.element===e){M=V;break}}M&&!M.allowOnlyTimelineStyles()&&M.setStyles([a],null,_.errors,l)}return S.length?S.map(M=>M.buildKeyframes()):[Tf(e,[],[],[],0,I,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){let n=e.subInstructions.get(e.element);if(n){let r=e.createSubContext(i.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=i}visitAnimateRef(i,e){let n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(let r of i){let o=r?.delay;if(o){let s=typeof o=="number"?o:zi(Ys(o,r?.params??{},e.errors));n.delayNextStep(s)}}}_visitSubInstructions(i,e,n){let o=e.currentTimeline.currentTime,s=n.duration!=null?zi(n.duration):null,a=n.delay!=null?zi(n.delay):null;return s!==0&&i.forEach(l=>{let u=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,u.duration+u.delay)}),o}visitReference(i,e){e.updateOptions(i.options,!0),kn(this,i.animation,e),e.previousNode=i}visitSequence(i,e){let n=e.subContextCount,r=e,o=i.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==Me.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Pc);let s=zi(o.delay);r.delayNextStep(s)}i.steps.length&&(i.steps.forEach(s=>kn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){let n=[],r=e.currentTimeline.currentTime,o=i.options&&i.options.delay?zi(i.options.delay):0;i.steps.forEach(s=>{let a=e.createSubContext(i.options);o&&a.delayNextStep(o),kn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){let n=i.strValue,r=e.params?Ys(n,e.params,e.errors):n;return Lc(r,e.errors)}else return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){let n=e.currentAnimateTimings=this._visitTiming(i.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());let o=i.style;o.type==Me.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){let n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let o=r&&r.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(o):n.setStyles(i.styles,o,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){let n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,a=e.createSubContext().currentTimeline;a.easing=n.easing,i.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=i}visitQuery(i,e){let n=e.currentTimeline.currentTime,r=i.options||{},o=r.delay?zi(r.delay):0;o&&(e.previousNode.type===Me.Style||n==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Pc);let s=n,a=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((u,h)=>{e.currentQueryIndex=h;let _=e.createSubContext(i.options,u);o&&_.delayNextStep(o),u===e.element&&(l=_.currentTimeline),kn(this,i.animation,_),_.currentTimeline.applyStylesToKeyframe();let I=_.currentTimeline.currentTime;s=Math.max(s,I)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){let n=e.parentContext,r=e.currentTimeline,o=i.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let h=e.currentTimeline;l&&h.delayNextStep(l);let _=h.currentTime;kn(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=r.currentTime-_+(r.startTime-n.currentTimeline.startTime)}},Pc={},uf=class t{constructor(i,e,n,r,o,s,a,l){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Pc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Hc(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;let n=i,r=this.options;n.duration!=null&&(r.duration=zi(n.duration)),n.delay!=null&&(r.delay=zi(n.delay));let o=n.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Ys(o[a],s,this.errors))})}}_copyOptions(){let i={};if(this.options){let e=this.options.params;if(e){let n=i.params={};Object.keys(e).forEach(r=>{n[r]=e[r]})}}return i}createSubContext(i=null,e,n){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(i),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(i){return this.previousNode=Pc,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){let r={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},o=new df(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,r,i.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,r,o,s){let a=[];if(r&&a.push(this.element),i.length>0){i=i.replace(aM,"."+this._enterClassName),i=i.replace(cM,"."+this._leaveClassName);let l=n!=1,u=this._driver.query(this.element,i,l);n!==0&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),a.push(...u)}return!o&&a.length==0&&s.push(IE(e)),a}},Hc=class t{constructor(i,e,n,r){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(i){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new t(this._driver,i,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=oM,this._loadKeyframe()}forwardTime(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Ci),this._currentKeyframe.set(e,Ci);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},s=uM(i,this._globalTimelineStyles);for(let[a,l]of s){let u=Ys(l,o,n);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ci),this._updateStyle(a,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{let r=this._styleSummary.get(n);(!r||e.time>r.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let i=new Set,e=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((h,_)=>{h===Ec?i.add(_):h===Ci&&e.add(_)}),n||u.set("offset",l/this.duration),r.push(u)});let o=[...i.values()],s=[...e.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Tf(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}},df=class extends Hc{constructor(i,e,n,r,o,s,a=!1){super(i,e,s.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],s=n+e,a=e/s,l=new Map(i[0]);l.set("offset",0),o.push(l);let u=new Map(i[0]);u.set("offset",u1(a)),o.push(u);let h=i.length-1;for(let _=1;_<=h;_++){let I=new Map(i[_]),S=I.get("offset"),M=e+S*n;I.set("offset",u1(M/s)),o.push(I)}n=s,e=0,r="",i=o}return Tf(this.element,i,this.preStyleProps,this.postStyleProps,n,e,r,!0)}};function u1(t,i=3){let e=Math.pow(10,i-1);return Math.round(t*e)/e}function uM(t,i){let e=new Map,n;return t.forEach(r=>{if(r==="*"){n??=i.keys();for(let o of n)e.set(o,Ci)}else for(let[o,s]of r)e.set(o,s)}),e}function d1(t,i,e,n,r,o,s,a,l,u,h,_,I){return{type:0,element:t,triggerName:i,isRemovalTransition:r,fromState:e,fromStyles:o,toState:n,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:_,errors:I}}var Xh={},Bc=class{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,r){return dM(this.ast.matchers,i,e,n,r)}buildStyles(i,e,n){let r=this._stateStyles.get("*");return i!==void 0&&(r=this._stateStyles.get(i?.toString())||r),r?r.buildStyles(e,n):new Map}build(i,e,n,r,o,s,a,l,u,h){let _=[],I=this.ast.options&&this.ast.options.params||Xh,S=a&&a.params||Xh,M=this.buildStyles(n,S,_),A=l&&l.params||Xh,V=this.buildStyles(r,A,_),B=new Set,re=new Map,pe=new Map,ae=r==="void",tt={params:D1(A,I),delay:this.ast.options?.delay},Ke=h?[]:S1(i,e,this.ast.animation,o,s,M,V,tt,u,_),at=0;return Ke.forEach(ct=>{at=Math.max(ct.duration+ct.delay,at)}),_.length?d1(e,this._triggerName,n,r,ae,M,V,[],[],re,pe,at,_):(Ke.forEach(ct=>{let Rt=ct.element,pn=Fn(re,Rt,new Set);ct.preStyleProps.forEach(Tr=>pn.add(Tr));let og=Fn(pe,Rt,new Set);ct.postStyleProps.forEach(Tr=>og.add(Tr)),Rt!==e&&B.add(Rt)}),d1(e,this._triggerName,n,r,ae,M,V,Ke,[...B.values()],re,pe,at))}};function dM(t,i,e,n,r){return t.some(o=>o(i,e,n,r))}function D1(t,i){let e=$({},i);return Object.entries(t).forEach(([n,r])=>{r!=null&&(e[n]=r)}),e}var pf=class{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){let n=new Map,r=D1(i,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((s,a)=>{s&&(s=Ys(s,r,e));let l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),n.set(a,s)})}),n}};function pM(t,i,e){return new hf(t,i,e)}var hf=class{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new pf(r.style,o,n))}),p1(this.states,"true","1"),p1(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Bc(i,r,this.states))}),this.fallbackTransition=hM(i,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,r){return this.transitionFactories.find(s=>s.match(i,e,n,r))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}};function hM(t,i,e){let n=[(s,a)=>!0],r={type:Me.Sequence,steps:[],options:null},o={type:Me.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new Bc(t,o,i)}function p1(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}var fM=new Xs,ff=class{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){let n=[],r=[],o=T1(this._driver,e,n,r);if(n.length)throw EE(n);r.length&&void 0,this._animations.set(i,o)}_buildPlayer(i,e,n){let r=i.element,o=y1(this._normalizer,i.keyframes,e,n);return this._driver.animate(r,o,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){let r=[],o=this._animations.get(i),s,a=new Map;if(o?(s=S1(this._driver,e,o,w1,nf,new Map,new Map,n,fM,r),s.forEach(h=>{let _=Fn(a,h.element,new Map);h.postStyleProps.forEach(I=>_.set(I,null))})):(r.push(ME()),s=[]),r.length)throw OE(r);a.forEach((h,_)=>{h.forEach((I,S)=>{h.set(S,this._driver.computeStyle(_,S,Ci))})});let l=s.map(h=>{let _=a.get(h.element);return this._buildPlayer(h,new Map,_)}),u=dr(l);return this._playersById.set(i,u),u.onDestroy(()=>this.destroy(i)),this.players.push(u),u}destroy(i){let e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);let n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){let e=this._playersById.get(i);if(!e)throw kE(i);return e}listen(i,e,n,r){let o=Cf(e,"","","");return vf(this._getPlayer(i),n,o,r),()=>{}}command(i,e,n,r){if(n=="register"){this.register(i,r[0]);return}if(n=="create"){let s=r[0]||{};this.create(i,e,s);return}let o=this._getPlayer(i);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(i);break}}},h1="ng-animate-queued",mM=".ng-animate-queued",Jh="ng-animate-disabled",gM=".ng-animate-disabled",_M="ng-star-inserted",yM=".ng-star-inserted",vM=[],E1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},CM={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},oi="__ng_removed",Js=class{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;let n=i&&i.hasOwnProperty("value"),r=n?i.value:i;if(this.value=wM(r),n){let o=i,{value:s}=o,a=Au(o,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){let e=i.params;if(e){let n=this.options.params;Object.keys(e).forEach(r=>{n[r]==null&&(n[r]=e[r])})}}},Zs="void",ef=new Js(Zs),mf=class{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,jn(e,this._hostClassName)}listen(i,e,n,r){if(!this._triggers.has(e))throw FE(n,e);if(n==null||n.length==0)throw AE(e);if(!IM(n))throw RE(n,e);let o=Fn(this._elementListeners,i,[]),s={name:e,phase:n,callback:r};o.push(s);let a=Fn(this._engine.statesByElement,i,new Map);return a.has(e)||(jn(i,Mc),jn(i,Mc+"-"+e),a.set(e,ef)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(i,e){return this._triggers.has(i)?!1:(this._triggers.set(i,e),!0)}_getTrigger(i){let e=this._triggers.get(i);if(!e)throw LE(i);return e}trigger(i,e,n,r=!0){let o=this._getTrigger(e),s=new ea(this.id,e,i),a=this._engine.statesByElement.get(i);a||(jn(i,Mc),jn(i,Mc+"-"+e),this._engine.statesByElement.set(i,a=new Map));let l=a.get(e),u=new Js(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(e,u),l||(l=ef),!(u.value===Zs)&&l.value===u.value){if(!SM(l.params,u.params)){let A=[],V=o.matchStyles(l.value,l.params,A),B=o.matchStyles(u.value,u.params,A);A.length?this._engine.reportError(A):this._engine.afterFlush(()=>{Jr(i,V),bi(i,B)})}return}let I=Fn(this._engine.playersByElement,i,[]);I.forEach(A=>{A.namespaceId==this.id&&A.triggerName==e&&A.queued&&A.destroy()});let S=o.matchTransition(l.value,u.value,i,u.params),M=!1;if(!S){if(!r)return;S=o.fallbackTransition,M=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:S,fromState:l,toState:u,player:s,isFallbackTransition:M}),M||(jn(i,h1),s.onStart(()=>{Wo(i,h1)})),s.onDone(()=>{let A=this.players.indexOf(s);A>=0&&this.players.splice(A,1);let V=this._engine.playersByElement.get(i);if(V){let B=V.indexOf(s);B>=0&&V.splice(B,1)}}),this.players.push(s),I.push(s),s}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(r=>r.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);let e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){let n=this._engine.driver.query(i,Rc,!0);n.forEach(r=>{if(r[oi])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(i,e,n,r){let o=this._engine.statesByElement.get(i),s=new Map;if(o){let a=[];if(o.forEach((l,u)=>{if(s.set(u,l.value),this._triggers.has(u)){let h=this.trigger(i,u,Zs,r);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,s),n&&dr(a).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){let e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){let r=new Set;e.forEach(o=>{let s=o.name;if(r.has(s))return;r.add(s);let l=this._triggers.get(s).fallbackTransition,u=n.get(s)||ef,h=new Js(Zs),_=new ea(this.id,s,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:s,transition:l,fromState:u,toState:h,player:_,isFallbackTransition:!0})})}}removeNode(i,e){let n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let r=!1;if(n.totalAnimations){let o=n.players.length?n.playersByQueriedElement.get(i):[];if(o&&o.length)r=!0;else{let s=i;for(;s=s.parentNode;)if(n.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(i),r)n.markElementAsRemoved(this.id,i,!1,e);else{let o=i[oi];(!o||o===E1)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){jn(i,this._hostClassName)}drainQueuedTransitions(i){let e=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let o=n.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==n.triggerName){let l=Cf(o,n.triggerName,n.fromState.value,n.toState.value);l._data=i,vf(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((n,r)=>{let o=n.transition.ast.depCount,s=r.transition.ast.depCount;return o==0||s==0?o-s:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}},gf=class{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n,r){this.bodyNode=i,this.driver=e,this._normalizer=n,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){let i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){let n=new mf(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let l=r.get(a);if(l){let u=n.indexOf(l);n.splice(u+1,0,i),s=!0;break}a=this.driver.getParentElement(a)}s||n.unshift(i)}else n.push(i);return r.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let r=this._namespaceLookup[i];r&&r.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){let e=new Set,n=this.statesByElement.get(i);if(n){for(let r of n.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(i,e,n,r){if(Fc(e)){let o=this._fetchNamespace(i);if(o)return o.trigger(e,n,r),!0}return!1}insertNode(i,e,n,r){if(!Fc(e))return;let o=e[oi];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(i){let s=this._fetchNamespace(i);s&&s.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),jn(i,Jh)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Wo(i,Jh))}removeNode(i,e,n){if(Fc(e)){this.scheduler?.notify();let r=i?this._fetchNamespace(i):null;r?r.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);let o=this.namespacesByHostElement.get(e);o&&o.id!==i&&o.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,r,o){this.collectedLeaveElements.push(e),e[oi]={namespaceId:i,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}listen(i,e,n,r,o){return Fc(e)?this._fetchNamespace(i).listen(e,n,r,o):()=>{}}_buildInstruction(i,e,n,r,o){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,r,i.fromState.options,i.toState.options,e,o)}destroyInnerAnimations(i){let e=this.driver.query(i,Rc,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(i,rf,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){let e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){let e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return dr(this.players).onDone(()=>i());i()})}processLeaveNode(i){let e=i[oi];if(e&&e.setForRemoval){if(i[oi]=E1,e.namespaceId){this.destroyInnerAnimations(i);let n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(Jh)&&this.markElementAsDisabled(i,!1),this.driver.query(i,gM,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let r=this.collectedEnterElements[n];jn(r,_M)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{e=this._flushAnimations(n,i)}finally{for(let r=0;r<n.length;r++)n[r]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let r=this.collectedLeaveElements[n];this.processLeaveNode(r)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],e.length?dr(e).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(i){throw NE(i)}_flushAnimations(i,e){let n=new Xs,r=[],o=new Map,s=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(oe=>{h.add(oe);let ye=this.driver.query(oe,mM,!0);for(let Ie=0;Ie<ye.length;Ie++)h.add(ye[Ie])});let _=this.bodyNode,I=Array.from(this.statesByElement.keys()),S=g1(I,this.collectedEnterElements),M=new Map,A=0;S.forEach((oe,ye)=>{let Ie=w1+A++;M.set(ye,Ie),oe.forEach(Ye=>jn(Ye,Ie))});let V=[],B=new Set,re=new Set;for(let oe=0;oe<this.collectedLeaveElements.length;oe++){let ye=this.collectedLeaveElements[oe],Ie=ye[oi];Ie&&Ie.setForRemoval&&(V.push(ye),B.add(ye),Ie.hasAnimation?this.driver.query(ye,yM,!0).forEach(Ye=>B.add(Ye)):re.add(ye))}let pe=new Map,ae=g1(I,Array.from(B));ae.forEach((oe,ye)=>{let Ie=nf+A++;pe.set(ye,Ie),oe.forEach(Ye=>jn(Ye,Ie))}),i.push(()=>{S.forEach((oe,ye)=>{let Ie=M.get(ye);oe.forEach(Ye=>Wo(Ye,Ie))}),ae.forEach((oe,ye)=>{let Ie=pe.get(ye);oe.forEach(Ye=>Wo(Ye,Ie))}),V.forEach(oe=>{this.processLeaveNode(oe)})});let tt=[],Ke=[];for(let oe=this._namespaceList.length-1;oe>=0;oe--)this._namespaceList[oe].drainQueuedTransitions(e).forEach(Ie=>{let Ye=Ie.player,Wt=Ie.element;if(tt.push(Ye),this.collectedEnterElements.length){let rn=Wt[oi];if(rn&&rn.setForMove){if(rn.previousTriggersValues&&rn.previousTriggersValues.has(Ie.triggerName)){let Sr=rn.previousTriggersValues.get(Ie.triggerName),Ln=this.statesByElement.get(Ie.element);if(Ln&&Ln.has(Ie.triggerName)){let Oa=Ln.get(Ie.triggerName);Oa.value=Sr,Ln.set(Ie.triggerName,Oa)}}Ye.destroy();return}}let ci=!_||!this.driver.containsElement(_,Wt),wn=pe.get(Wt),Qi=M.get(Wt),wt=this._buildInstruction(Ie,n,Qi,wn,ci);if(wt.errors&&wt.errors.length){Ke.push(wt);return}if(ci){Ye.onStart(()=>Jr(Wt,wt.fromStyles)),Ye.onDestroy(()=>bi(Wt,wt.toStyles)),r.push(Ye);return}if(Ie.isFallbackTransition){Ye.onStart(()=>Jr(Wt,wt.fromStyles)),Ye.onDestroy(()=>bi(Wt,wt.toStyles)),r.push(Ye);return}let lg=[];wt.timelines.forEach(rn=>{rn.stretchStartingKeyframe=!0,this.disabledNodes.has(rn.element)||lg.push(rn)}),wt.timelines=lg,n.append(Wt,wt.timelines);let Qb={instruction:wt,player:Ye,element:Wt};s.push(Qb),wt.queriedElements.forEach(rn=>Fn(a,rn,[]).push(Ye)),wt.preStyleProps.forEach((rn,Sr)=>{if(rn.size){let Ln=l.get(Sr);Ln||l.set(Sr,Ln=new Set),rn.forEach((Oa,Fu)=>Ln.add(Fu))}}),wt.postStyleProps.forEach((rn,Sr)=>{let Ln=u.get(Sr);Ln||u.set(Sr,Ln=new Set),rn.forEach((Oa,Fu)=>Ln.add(Fu))})});if(Ke.length){let oe=[];Ke.forEach(ye=>{oe.push(VE(ye.triggerName,ye.errors))}),tt.forEach(ye=>ye.destroy()),this.reportError(oe)}let at=new Map,ct=new Map;s.forEach(oe=>{let ye=oe.element;n.has(ye)&&(ct.set(ye,ye),this._beforeAnimationBuild(oe.player.namespaceId,oe.instruction,at))}),r.forEach(oe=>{let ye=oe.element;this._getPreviousPlayers(ye,!1,oe.namespaceId,oe.triggerName,null).forEach(Ye=>{Fn(at,ye,[]).push(Ye),Ye.destroy()})});let Rt=V.filter(oe=>_1(oe,l,u)),pn=new Map;m1(pn,this.driver,re,u,Ci).forEach(oe=>{_1(oe,l,u)&&Rt.push(oe)});let Tr=new Map;S.forEach((oe,ye)=>{m1(Tr,this.driver,new Set(oe),l,Ec)}),Rt.forEach(oe=>{let ye=pn.get(oe),Ie=Tr.get(oe);pn.set(oe,new Map([...ye?.entries()??[],...Ie?.entries()??[]]))});let ku=[],sg=[],ag={};s.forEach(oe=>{let{element:ye,player:Ie,instruction:Ye}=oe;if(n.has(ye)){if(h.has(ye)){Ie.onDestroy(()=>bi(ye,Ye.toStyles)),Ie.disabled=!0,Ie.overrideTotalTime(Ye.totalTime),r.push(Ie);return}let Wt=ag;if(ct.size>1){let wn=ye,Qi=[];for(;wn=wn.parentNode;){let wt=ct.get(wn);if(wt){Wt=wt;break}Qi.push(wn)}Qi.forEach(wt=>ct.set(wt,Wt))}let ci=this._buildAnimation(Ie.namespaceId,Ye,at,o,Tr,pn);if(Ie.setRealPlayer(ci),Wt===ag)ku.push(Ie);else{let wn=this.playersByElement.get(Wt);wn&&wn.length&&(Ie.parentPlayer=dr(wn)),r.push(Ie)}}else Jr(ye,Ye.fromStyles),Ie.onDestroy(()=>bi(ye,Ye.toStyles)),sg.push(Ie),h.has(ye)&&r.push(Ie)}),sg.forEach(oe=>{let ye=o.get(oe.element);if(ye&&ye.length){let Ie=dr(ye);oe.setRealPlayer(Ie)}}),r.forEach(oe=>{oe.parentPlayer?oe.syncPlayerEvents(oe.parentPlayer):oe.destroy()});for(let oe=0;oe<V.length;oe++){let ye=V[oe],Ie=ye[oi];if(Wo(ye,nf),Ie&&Ie.hasAnimation)continue;let Ye=[];if(a.size){let ci=a.get(ye);ci&&ci.length&&Ye.push(...ci);let wn=this.driver.query(ye,rf,!0);for(let Qi=0;Qi<wn.length;Qi++){let wt=a.get(wn[Qi]);wt&&wt.length&&Ye.push(...wt)}}let Wt=Ye.filter(ci=>!ci.destroyed);Wt.length?xM(this,ye,Wt):this.processLeaveNode(ye)}return V.length=0,ku.forEach(oe=>{this.players.push(oe),oe.onDone(()=>{oe.destroy();let ye=this.players.indexOf(oe);this.players.splice(ye,1)}),oe.play()}),ku}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,r,o){let s=[];if(e){let a=this.playersByQueriedElement.get(i);a&&(s=a)}else{let a=this.playersByElement.get(i);if(a){let l=!o||o==Zs;a.forEach(u=>{u.queued||!l&&u.triggerName!=r||s.push(u)})}}return(n||r)&&(s=s.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(i,e,n){let r=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:i,a=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let u=l.element,h=u!==o,_=Fn(n,u,[]);this._getPreviousPlayers(u,h,s,a,e.toState).forEach(S=>{let M=S.getRealPlayer();M.beforeDestroy&&M.beforeDestroy(),S.destroy(),_.push(S)})}Jr(o,e.fromStyles)}_buildAnimation(i,e,n,r,o,s){let a=e.triggerName,l=e.element,u=[],h=new Set,_=new Set,I=e.timelines.map(M=>{let A=M.element;h.add(A);let V=A[oi];if(V&&V.removedBeforeQueried)return new ur(M.duration,M.delay);let B=A!==l,re=TM((n.get(A)||vM).map(at=>at.getRealPlayer())).filter(at=>{let ct=at;return ct.element?ct.element===A:!1}),pe=o.get(A),ae=s.get(A),tt=y1(this._normalizer,M.keyframes,pe,ae),Ke=this._buildPlayer(M,tt,re);if(M.subTimeline&&r&&_.add(A),B){let at=new ea(i,a,A);at.setRealPlayer(Ke),u.push(at)}return Ke});u.forEach(M=>{Fn(this.playersByQueriedElement,M.element,[]).push(M),M.onDone(()=>bM(this.playersByQueriedElement,M.element,M))}),h.forEach(M=>jn(M,a1));let S=dr(I);return S.onDestroy(()=>{h.forEach(M=>Wo(M,a1)),bi(l,e.toStyles)}),_.forEach(M=>{Fn(r,M,[]).push(S)}),S}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new ur(i.duration,i.delay)}},ea=class{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new ur,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(r=>vf(i,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){let e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){Fn(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){let e=this._player;e.triggerCallback&&e.triggerCallback(i)}};function bM(t,i,e){let n=t.get(i);if(n){if(n.length){let r=n.indexOf(e);n.splice(r,1)}n.length==0&&t.delete(i)}return n}function wM(t){return t??null}function Fc(t){return t&&t.nodeType===1}function IM(t){return t=="start"||t=="done"}function f1(t,i){let e=t.style.display;return t.style.display=i??"none",e}function m1(t,i,e,n,r){let o=[];e.forEach(l=>o.push(f1(l)));let s=[];n.forEach((l,u)=>{let h=new Map;l.forEach(_=>{let I=i.computeStyle(u,_,r);h.set(_,I),(!I||I.length==0)&&(u[oi]=CM,s.push(u))}),t.set(u,h)});let a=0;return e.forEach(l=>f1(l,o[a++])),s}function g1(t,i){let e=new Map;if(t.forEach(a=>e.set(a,[])),i.length==0)return e;let n=1,r=new Set(i),o=new Map;function s(a){if(!a)return n;let l=o.get(a);if(l)return l;let u=a.parentNode;return e.has(u)?l=u:r.has(u)?l=n:l=s(u),o.set(a,l),l}return i.forEach(a=>{let l=s(a);l!==n&&e.get(l).push(a)}),e}function jn(t,i){t.classList?.add(i)}function Wo(t,i){t.classList?.remove(i)}function xM(t,i,e){dr(e).onDone(()=>t.processLeaveNode(i))}function TM(t){let i=[];return M1(t,i),i}function M1(t,i){for(let e=0;e<t.length;e++){let n=t[e];n instanceof Ks?M1(n.players,i):i.push(n)}}function SM(t,i){let e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let o=e[r];if(!i.hasOwnProperty(o)||t[o]!==i[o])return!1}return!0}function _1(t,i,e){let n=e.get(t);if(!n)return!1;let r=i.get(t);return r?n.forEach(o=>r.add(o)):i.set(t,n),e.delete(t),!0}var Ko=class{constructor(i,e,n,r){this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new gf(i.body,e,n,r),this._timelineEngine=new ff(i.body,e,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(i,e,n,r,o){let s=i+"-"+r,a=this._triggerCache[s];if(!a){let l=[],u=[],h=T1(this._driver,o,l,u);if(l.length)throw SE(r,l);u.length&&void 0,a=pM(r,h,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,r){this._transitionEngine.insertNode(i,e,n,r)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,r){if(n.charAt(0)=="@"){let[o,s]=o1(n),a=r;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(i,e,n,r)}listen(i,e,n,r,o){if(n.charAt(0)=="@"){let[s,a]=o1(n);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(i,e,n,r,o)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}};function DM(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=tf(i[0]),i.length>1&&(n=tf(i[i.length-1]))):i instanceof Map&&(e=tf(i)),e||n?new _f(t,e,n):null}var qo=class qo{constructor(i,e,n){this._element=i,this._startStyles=e,this._endStyles=n,this._state=0;let r=qo.initialStylesByElement.get(i);r||qo.initialStylesByElement.set(i,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&bi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(bi(this._element,this._initialStyles),this._endStyles&&(bi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(qo.initialStylesByElement.delete(this._element),this._startStyles&&(Jr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jr(this._element,this._endStyles),this._endStyles=null),bi(this._element,this._initialStyles),this._state=3)}};qo.initialStylesByElement=new WeakMap;var _f=qo;function tf(t){let i=null;return t.forEach((e,n)=>{EM(n)&&(i=i||new Map,i.set(n,e))}),i}function EM(t){return t==="display"||t==="position"}var jc=class{constructor(i,e,n,r){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(i){let e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}setPosition(i){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&i.set(r,this._finished?n:xf(this.element,r))}),this.currentSnapshot=i}triggerCallback(i){let e=i==="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},zc=class{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return v1(i,e)}getParentElement(i){return bf(i)}query(i,e,n){return C1(i,e,n)}computeStyle(i,e,n){return xf(i,e)}animate(i,e,n,r,o,s=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};o&&(l.easing=o);let u=new Map,h=s.filter(S=>S instanceof jc);KE(n,r)&&h.forEach(S=>{S.currentSnapshot.forEach((M,A)=>u.set(A,M))});let _=GE(e).map(S=>new Map(S));_=QE(i,_,u);let I=DM(i,_);return new jc(i,_,l,I)}};var Ac="@",O1="@.disabled",Uc=class{constructor(i,e,n,r){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,r=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,r)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,r){this.delegate.setAttribute(i,e,n,r)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,r){this.delegate.setStyle(i,e,n,r)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){e.charAt(0)==Ac&&e==O1?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}},yf=class extends Uc{constructor(i,e,n,r,o){super(e,n,r,o),this.factory=i,this.namespaceId=e}setProperty(i,e,n){e.charAt(0)==Ac?e.charAt(1)=="."&&e==O1?(n=n===void 0?!0:!!n,this.disableAnimations(i,n)):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if(e.charAt(0)==Ac){let r=MM(i),o=e.slice(1),s="";return o.charAt(0)!=Ac&&([o,s]=OM(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(i,e,n)}};function MM(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function OM(t){let i=t.indexOf("."),e=t.substring(0,i),n=t.slice(i+1);return[e,n]}var $c=class{constructor(i,e,n){this.delegate=i,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{let s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(i,e){let n="",r=this.delegate.createRenderer(i,e);if(!i||!e?.data?.animation){let u=this._rendererCache,h=u.get(r);if(!h){let _=()=>u.delete(r);h=new Uc(n,r,this.engine,_),u.set(r,h)}return h}let o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,i);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(o,s,i,u.name,u)};return e.data.animation.forEach(a),new yf(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(i,e,n){if(i>=0&&i<this._microtaskId){this._zone.run(()=>e(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var FM=(()=>{let i=class i extends Ko{constructor(n,r,o){super(n,r,o,W(Fo,{optional:!0}))}ngOnDestroy(){this.flush()}};i.\u0275fac=function(r){return new(r||i)(Y(Se),Y(eo),Y(to))},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})();function AM(){return new Nc}function RM(t,i,e){return new $c(t,i,e)}var F1=[{provide:to,useFactory:AM},{provide:Ko,useClass:FM},{provide:jr,useFactory:RM,deps:[Tc,Ko,ge]}],k1=[{provide:eo,useFactory:()=>new zc},{provide:$p,useValue:"BrowserAnimations"},...F1],LM=[{provide:eo,useClass:wf},{provide:$p,useValue:"NoopAnimations"},...F1],A1=(()=>{let i=class i{static withConfig(n){return{ngModule:i,providers:n.disableAnimations?LM:k1}}};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=te({type:i}),i.\u0275inj=ee({providers:k1,imports:[Xv]});let t=i;return t})();var Pe="primary",ga=Symbol("RouteTitle"),kf=class{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Jo(t){return new kf(t)}function NM(t,i,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(i.hasChildren()||n.length<t.length))return null;let r={};for(let o=0;o<n.length;o++){let s=n[o],a=t[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:r}}function VM(t,i){if(t.length!==i.length)return!1;for(let e=0;e<t.length;++e)if(!wi(t[e],i[e]))return!1;return!0}function wi(t,i){let e=t?Ff(t):void 0,n=i?Ff(i):void 0;if(!e||!n||e.length!=n.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!z1(t[r],i[r]))return!1;return!0}function Ff(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function z1(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;let e=[...t].sort(),n=[...i].sort();return e.every((r,o)=>n[o]===r)}else return t===i}function U1(t){return t.length>0?t[t.length-1]:null}function mr(t){return Qu(t)?t:qr(t)?gt(Promise.resolve(t)):ve(t)}var PM={exact:G1,subset:W1},$1={exact:HM,subset:BM,ignored:()=>!0};function R1(t,i,e){return PM[e.paths](t.root,i.root,e.matrixParams)&&$1[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function HM(t,i){return wi(t,i)}function G1(t,i,e){if(!io(t.segments,i.segments)||!qc(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!G1(t.children[n],i.children[n],e))return!1;return!0}function BM(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>z1(t[e],i[e]))}function W1(t,i,e){return q1(t,i,i.segments,e)}function q1(t,i,e,n){if(t.segments.length>e.length){let r=t.segments.slice(0,e.length);return!(!io(r,e)||i.hasChildren()||!qc(r,e,n))}else if(t.segments.length===e.length){if(!io(t.segments,e)||!qc(t.segments,e,n))return!1;for(let r in i.children)if(!t.children[r]||!W1(t.children[r],i.children[r],n))return!1;return!0}else{let r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!io(t.segments,r)||!qc(t.segments,r,n)||!t.children[Pe]?!1:q1(t.children[Pe],i,o,n)}}function qc(t,i,e){return i.every((n,r)=>$1[e](t[r].parameters,n.parameters))}var pr=class{constructor(i=new rt([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Jo(this.queryParams),this._queryParamMap}toString(){return UM.serialize(this)}},rt=class{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Kc(this)}},no=class{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=Jo(this.parameters),this._parameterMap}toString(){return Q1(this)}};function jM(t,i){return io(t,i)&&t.every((e,n)=>wi(e.parameters,i[n].parameters))}function io(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function zM(t,i){let e=[];return Object.entries(t.children).forEach(([n,r])=>{n===Pe&&(e=e.concat(i(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==Pe&&(e=e.concat(i(r,n)))}),e}var _a=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:()=>new aa,providedIn:"root"});let t=i;return t})(),aa=class{parse(i){let e=new Rf(i);return new pr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${ta(i.root,!0)}`,n=WM(i.queryParams),r=typeof i.fragment=="string"?`#${$M(i.fragment)}`:"";return`${e}${n}${r}`}},UM=new aa;function Kc(t){return t.segments.map(i=>Q1(i)).join("/")}function ta(t,i){if(!t.hasChildren())return Kc(t);if(i){let e=t.children[Pe]?ta(t.children[Pe],!1):"",n=[];return Object.entries(t.children).forEach(([r,o])=>{r!==Pe&&n.push(`${r}:${ta(o,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=zM(t,(n,r)=>r===Pe?[ta(t.children[Pe],!1)]:[`${r}:${ta(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[Pe]!=null?`${Kc(t)}/${e[0]}`:`${Kc(t)}/(${e.join("//")})`}}function K1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gc(t){return K1(t).replace(/%3B/gi,";")}function $M(t){return encodeURI(t)}function Af(t){return K1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qc(t){return decodeURIComponent(t)}function L1(t){return Qc(t.replace(/\+/g,"%20"))}function Q1(t){return`${Af(t.path)}${GM(t.parameters)}`}function GM(t){return Object.entries(t).map(([i,e])=>`;${Af(i)}=${Af(e)}`).join("")}function WM(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(r=>`${Gc(e)}=${Gc(r)}`).join("&"):`${Gc(e)}=${Gc(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var qM=/^[^\/()?;#]+/;function Df(t){let i=t.match(qM);return i?i[0]:""}var KM=/^[^\/()?;=#]+/;function QM(t){let i=t.match(KM);return i?i[0]:""}var ZM=/^[^=?&#]+/;function YM(t){let i=t.match(ZM);return i?i[0]:""}var XM=/^[^&#]+/;function JM(t){let i=t.match(XM);return i?i[0]:""}var Rf=class{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new rt([],{}):new rt([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[Pe]=new rt(i,e)),n}parseSegment(){let i=Df(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new G(4009,!1);return this.capture(i),new no(Qc(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=QM(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let r=Df(this.remaining);r&&(n=r,this.capture(n))}i[Qc(e)]=Qc(n)}parseQueryParam(i){let e=YM(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let s=JM(this.remaining);s&&(n=s,this.capture(n))}let r=L1(e),o=L1(n);if(i.hasOwnProperty(r)){let s=i[r];Array.isArray(s)||(s=[s],i[r]=s),s.push(o)}else i[r]=o}parseParens(i){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Df(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new G(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):i&&(o=Pe);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[Pe]:new rt([],s),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new G(4011,!1)}};function Z1(t){return t.segments.length>0?new rt([],{[Pe]:t}):t}function Y1(t){let i={};for(let[n,r]of Object.entries(t.children)){let o=Y1(r);if(n===Pe&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))i[s]=a;else(o.segments.length>0||o.hasChildren())&&(i[n]=o)}let e=new rt(t.segments,i);return eO(e)}function eO(t){if(t.numberOfChildren===1&&t.children[Pe]){let i=t.children[Pe];return new rt(t.segments.concat(i.segments),i.children)}return t}function es(t){return t instanceof pr}function tO(t,i,e=null,n=null){let r=X1(t);return J1(r,i,e,n)}function X1(t){let i;function e(o){let s={};for(let l of o.children){let u=e(l);s[l.outlet]=u}let a=new rt(o.url,s);return o===t&&(i=a),a}let n=e(t.root),r=Z1(n);return i??r}function J1(t,i,e,n){let r=t;for(;r.parent;)r=r.parent;if(i.length===0)return Ef(r,r,r,e,n);let o=nO(i);if(o.toRoot())return Ef(r,r,new rt([],{}),e,n);let s=iO(o,r,t),a=s.processChildren?ra(s.segmentGroup,s.index,o.commands):tC(s.segmentGroup,s.index,o.commands);return Ef(r,s.segmentGroup,a,e,n)}function Zc(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function la(t){return typeof t=="object"&&t!=null&&t.outlets}function Ef(t,i,e,n,r){let o={};n&&Object.entries(n).forEach(([l,u])=>{o[l]=Array.isArray(u)?u.map(h=>`${h}`):`${u}`});let s;t===i?s=e:s=eC(t,i,e);let a=Z1(Y1(s));return new pr(a,o,r)}function eC(t,i,e){let n={};return Object.entries(t.children).forEach(([r,o])=>{o===i?n[r]=e:n[r]=eC(o,i,e)}),new rt(t.segments,n)}var Yc=class{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Zc(n[0]))throw new G(4003,!1);let r=n.find(la);if(r&&r!==U1(n))throw new G(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function nO(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Yc(!0,0,t);let i=0,e=!1,n=t.reduce((r,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,u])=>{a[l]=typeof u=="string"?u.split("/"):u}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return typeof o!="string"?[...r,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?i++:a!=""&&r.push(a))}),r):[...r,o]},[]);return new Yc(e,i,n)}var Yo=class{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function iO(t,i,e){if(t.isAbsolute)return new Yo(i,!0,0);if(!e)return new Yo(i,!1,NaN);if(e.parent===null)return new Yo(e,!0,0);let n=Zc(t.commands[0])?0:1,r=e.segments.length-1+n;return rO(e,r,t.numberOfDoubleDots)}function rO(t,i,e){let n=t,r=i,o=e;for(;o>r;){if(o-=r,n=n.parent,!n)throw new G(4005,!1);r=n.segments.length}return new Yo(n,!1,r-o)}function oO(t){return la(t[0])?t[0].outlets:{[Pe]:t}}function tC(t,i,e){if(t??=new rt([],{}),t.segments.length===0&&t.hasChildren())return ra(t,i,e);let n=sO(t,i,e),r=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let o=new rt(t.segments.slice(0,n.pathIndex),{});return o.children[Pe]=new rt(t.segments.slice(n.pathIndex),t.children),ra(o,0,r)}else return n.match&&r.length===0?new rt(t.segments,{}):n.match&&!t.hasChildren()?Lf(t,i,e):n.match?ra(t,0,r):Lf(t,i,e)}function ra(t,i,e){if(e.length===0)return new rt(t.segments,{});{let n=oO(e),r={};if(Object.keys(n).some(o=>o!==Pe)&&t.children[Pe]&&t.numberOfChildren===1&&t.children[Pe].segments.length===0){let o=ra(t.children[Pe],i,e);return new rt(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(r[o]=tC(t.children[o],i,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(r[o]=s)}),new rt(t.segments,r)}}function sO(t,i,e){let n=0,r=i,o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(n>=e.length)return o;let s=t.segments[r],a=e[n];if(la(a))break;let l=`${a}`,u=n<e.length-1?e[n+1]:null;if(r>0&&l===void 0)break;if(l&&u&&typeof u=="object"&&u.outlets===void 0){if(!V1(l,u,s))return o;n+=2}else{if(!V1(l,{},s))return o;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function Lf(t,i,e){let n=t.segments.slice(0,i),r=0;for(;r<e.length;){let o=e[r];if(la(o)){let l=aO(o.outlets);return new rt(n,l)}if(r===0&&Zc(e[0])){let l=t.segments[i];n.push(new no(l.path,N1(e[0]))),r++;continue}let s=la(o)?o.outlets[Pe]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&Zc(a)?(n.push(new no(s,N1(a))),r+=2):(n.push(new no(s,{})),r++)}return new rt(n,{})}function aO(t){let i={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=Lf(new rt([],{}),0,n))}),i}function N1(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function V1(t,i,e){return t==e.path&&wi(i,e.parameters)}var oa="imperative",Qt=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Qt||{}),zn=class{constructor(i,e){this.id=i,this.url=e}},ts=class extends zn{constructor(i,e,n="imperative",r=null){super(i,e),this.type=Qt.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},si=class extends zn{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=Qt.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Rn=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Rn||{}),Xc=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Xc||{}),hr=class extends zn{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=Qt.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},fr=class extends zn{constructor(i,e,n,r){super(i,e),this.reason=n,this.code=r,this.type=Qt.NavigationSkipped}},ca=class extends zn{constructor(i,e,n,r){super(i,e),this.error=n,this.target=r,this.type=Qt.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Jc=class extends zn{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=Qt.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Nf=class extends zn{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=Qt.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vf=class extends zn{constructor(i,e,n,r,o){super(i,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o,this.type=Qt.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Pf=class extends zn{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=Qt.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hf=class extends zn{constructor(i,e,n,r){super(i,e),this.urlAfterRedirects=n,this.state=r,this.type=Qt.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bf=class{constructor(i){this.route=i,this.type=Qt.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},jf=class{constructor(i){this.route=i,this.type=Qt.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},zf=class{constructor(i){this.snapshot=i,this.type=Qt.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uf=class{constructor(i){this.snapshot=i,this.type=Qt.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$f=class{constructor(i){this.snapshot=i,this.type=Qt.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gf=class{constructor(i){this.snapshot=i,this.type=Qt.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},eu=class{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=Qt.Scroll}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},ua=class{},da=class{constructor(i){this.url=i}};var Wf=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ya,this.attachRef=null}},ya=(()=>{let i=class i{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Wf,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})(),tu=class{constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=qf(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=qf(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=Kf(i,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==i)}pathFromRoot(i){return Kf(i,this._root).map(e=>e.value)}};function qf(t,i){if(t===i.value)return i;for(let e of i.children){let n=qf(t,e);if(n)return n}return null}function Kf(t,i){if(t===i.value)return[i];for(let e of i.children){let n=Kf(t,e);if(n.length)return n.unshift(i),n}return[]}var An=class{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function Zo(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var nu=class extends tu{constructor(i,e){super(i),this.snapshot=e,rm(this,i)}toString(){return this.snapshot.toString()}};function nC(t){let i=lO(t),e=new Xt([new no("",{})]),n=new Xt({}),r=new Xt({}),o=new Xt({}),s=new Xt(""),a=new Ii(e,n,o,s,r,Pe,t,i.root);return a.snapshot=i.root,new nu(new An(a,[]),i)}function lO(t){let i={},e={},n={},r="",o=new pa([],i,n,r,e,Pe,t,null,{});return new iu("",new An(o,[]))}var Ii=class{constructor(i,e,n,r,o,s,a,l){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Ne(u=>u[ga]))??ve(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o}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(Ne(i=>Jo(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Ne(i=>Jo(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function im(t,i,e="emptyOnly"){let n,{routeConfig:r}=t;return i!==null&&(e==="always"||r?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:$($({},i.params),t.params),data:$($({},i.data),t.data),resolve:$($($($({},t.data),i.data),r?.data),t._resolvedData)}:n={params:$({},t.params),data:$({},t.data),resolve:$($({},t.data),t._resolvedData??{})},r&&rC(r)&&(n.resolve[ga]=r.title),n}var pa=class{get title(){return this.data?.[ga]}constructor(i,e,n,r,o,s,a,l,u){this.url=i,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Jo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Jo(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},iu=class extends tu{constructor(i,e){super(e),this.url=i,rm(this,e)}toString(){return iC(this._root)}};function rm(t,i){i.value._routerState=t,i.children.forEach(e=>rm(t,e))}function iC(t){let i=t.children.length>0?` { ${t.children.map(iC).join(", ")} } `:"";return`${t.value}${i}`}function Mf(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,wi(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),wi(i.params,e.params)||t.paramsSubject.next(e.params),VM(i.url,e.url)||t.urlSubject.next(e.url),wi(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Qf(t,i){let e=wi(t.params,i.params)&&jM(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||Qf(t.parent,i.parent))}function rC(t){return typeof t.title=="string"||t.title===null}var cO=(()=>{let i=class i{constructor(){this.activated=null,this._activatedRoute=null,this.name=Pe,this.activateEvents=new O,this.deactivateEvents=new O,this.attachEvents=new O,this.detachEvents=new O,this.parentContexts=W(ya),this.location=W(Bn),this.changeDetector=W(ce),this.environmentInjector=W(cn),this.inputBinder=W(lu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new G(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new G(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new G(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new G(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,u=new Zf(n,l,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=$e({type:i,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[$t]});let t=i;return t})(),Zf=class{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===Ii?this.route:i===ya?this.childContexts:this.parent.get(i,e)}},lu=new he(""),P1=(()=>{let i=class i{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,o=bs([r.queryParams,r.params,r.data]).pipe(mn(([s,a,l],u)=>(l=$($($({},s),a),l),u===0?ve(l):Promise.resolve(l)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let a=wv(r.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:l}of a.inputs)n.activatedComponentRef.setInput(l,s[l])});this.outletDataSubscriptions.set(n,o)}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})();function uO(t,i,e){let n=ha(t,i._root,e?e._root:void 0);return new nu(n,i)}function ha(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let r=dO(t,i,e);return new An(n,r)}else{if(t.shouldAttach(i.value)){let o=t.retrieve(i.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=i.value,s.children=i.children.map(a=>ha(t,a)),s}}let n=pO(i.value),r=i.children.map(o=>ha(t,o));return new An(n,r)}}function dO(t,i,e){return i.children.map(n=>{for(let r of e.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return ha(t,n,r);return ha(t,n)})}function pO(t){return new Ii(new Xt(t.url),new Xt(t.params),new Xt(t.queryParams),new Xt(t.fragment),new Xt(t.data),t.outlet,t.component,t)}var oC="ngNavigationCancelingError";function sC(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=es(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,r=aC(!1,Rn.Redirect);return r.url=e,r.navigationBehaviorOptions=n,r}function aC(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[oC]=!0,e.cancellationCode=i,e}function hO(t){return lC(t)&&es(t.url)}function lC(t){return!!t&&t[oC]}var fO=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=P({type:i,selectors:[["ng-component"]],standalone:!0,features:[J],decls:1,vars:0,template:function(r,o){r&1&&D(0,"router-outlet")},dependencies:[cO],encapsulation:2});let t=i;return t})();function mO(t,i){return t.providers&&!t._injector&&(t._injector=lc(t.providers,i,`Route: ${t.path}`)),t._injector??i}function om(t){let i=t.children&&t.children.map(om),e=i?Le($({},t),{children:i}):$({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==Pe&&(e.component=fO),e}function xi(t){return t.outlet||Pe}function gO(t,i){let e=t.filter(n=>xi(n)===i);return e.push(...t.filter(n=>xi(n)!==i)),e}function va(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){let e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var _O=(t,i,e,n)=>Ne(r=>(new Yf(i,r.targetRouterState,r.currentRouterState,e,n).activate(t),r)),Yf=class{constructor(i,e,n,r,o){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=o}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),Mf(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let r=Zo(e);i.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,r[s],n),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(i,e,n){let r=i.value,o=e?e.value:null;if(r===o)if(r.component){let s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(i,e,s.children)}else this.deactivateChildRoutes(i,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=Zo(i);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:s,route:i,contexts:a})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),r=n&&i.value.component?n.children:e,o=Zo(i);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let r=Zo(e);i.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],n),this.forwardEvent(new Gf(o.value.snapshot))}),i.children.length&&this.forwardEvent(new Uf(i.value.snapshot))}activateRoutes(i,e,n){let r=i.value,o=e?e.value:null;if(Mf(r),r===o)if(r.component){let s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(i,e,s.children)}else this.activateChildRoutes(i,e,n);else if(r.component){let s=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Mf(a.route.value),this.activateChildRoutes(i,null,s.children)}else{let a=va(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(i,null,s.children)}}else this.activateChildRoutes(i,null,n)}},ru=class{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},Xo=class{constructor(i,e){this.component=i,this.route=e}};function yO(t,i,e){let n=t._root,r=i?i._root:null;return na(n,r,e,[n.value])}function vO(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function is(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!U0(t)?t:i.get(t):n}function na(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=Zo(i);return t.children.forEach(s=>{CO(s,o[s.value.outlet],e,n.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>sa(a,e.getContext(s),r)),r}function CO(t,i,e,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=i?i.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=bO(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new ru(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?na(t,i,a?a.children:null,n,r):na(t,i,e,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Xo(a.outlet.component,s))}else s&&sa(i,a,r),r.canActivateChecks.push(new ru(n)),o.component?na(t,null,a?a.children:null,n,r):na(t,null,e,n,r);return r}function bO(t,i,e){if(typeof e=="function")return e(t,i);switch(e){case"pathParamsChange":return!io(t.url,i.url);case"pathParamsOrQueryParamsChange":return!io(t.url,i.url)||!wi(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qf(t,i)||!wi(t.queryParams,i.queryParams);case"paramsChange":default:return!Qf(t,i)}}function sa(t,i,e){let n=Zo(t),r=t.value;Object.entries(n).forEach(([o,s])=>{r.component?i?sa(s,i.children.getContext(o),e):sa(s,null,e):sa(s,i,e)}),r.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new Xo(i.outlet.component,r)):e.canDeactivateChecks.push(new Xo(null,r)):e.canDeactivateChecks.push(new Xo(null,r))}function Ca(t){return typeof t=="function"}function wO(t){return typeof t=="boolean"}function IO(t){return t&&Ca(t.canLoad)}function xO(t){return t&&Ca(t.canActivate)}function TO(t){return t&&Ca(t.canActivateChild)}function SO(t){return t&&Ca(t.canDeactivate)}function DO(t){return t&&Ca(t.canMatch)}function cC(t){return t instanceof Qn||t?.name==="EmptyError"}var Wc=Symbol("INITIAL_VALUE");function ns(){return mn(t=>bs(t.map(i=>i.pipe(Mi(1),ed(Wc)))).pipe(Ne(i=>{for(let e of i)if(e!==!0){if(e===Wc)return Wc;if(e===!1||e instanceof pr)return e}return!0}),fn(i=>i!==Wc),Mi(1)))}function EO(t,i){return Ht(e=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?ve(Le($({},e),{guardsResult:!0})):MO(s,n,r,t).pipe(Ht(a=>a&&wO(a)?OO(n,o,t,i):ve(a)),Ne(a=>Le($({},e),{guardsResult:a})))})}function MO(t,i,e,n){return gt(t).pipe(Ht(r=>LO(r.component,r.route,e,i,n)),pi(r=>r!==!0,!0))}function OO(t,i,e,n){return gt(i).pipe(Ei(r=>yo(FO(r.route.parent,n),kO(r.route,n),RO(t,r.path,e),AO(t,r.route,e))),pi(r=>r!==!0,!0))}function kO(t,i){return t!==null&&i&&i(new $f(t)),ve(!0)}function FO(t,i){return t!==null&&i&&i(new zf(t)),ve(!0)}function AO(t,i,e){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return ve(!0);let r=n.map(o=>ol(()=>{let s=va(i)??e,a=is(o,s),l=xO(a)?a.canActivate(i,t):ni(s,()=>a(i,t));return mr(l).pipe(pi())}));return ve(r).pipe(ns())}function RO(t,i,e){let n=i[i.length-1],o=i.slice(0,i.length-1).reverse().map(s=>vO(s)).filter(s=>s!==null).map(s=>ol(()=>{let a=s.guards.map(l=>{let u=va(s.node)??e,h=is(l,u),_=TO(h)?h.canActivateChild(n,t):ni(u,()=>h(n,t));return mr(_).pipe(pi())});return ve(a).pipe(ns())}));return ve(o).pipe(ns())}function LO(t,i,e,n,r){let o=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!o||o.length===0)return ve(!0);let s=o.map(a=>{let l=va(i)??r,u=is(a,l),h=SO(u)?u.canDeactivate(t,i,e,n):ni(l,()=>u(t,i,e,n));return mr(h).pipe(pi())});return ve(s).pipe(ns())}function NO(t,i,e,n){let r=i.canLoad;if(r===void 0||r.length===0)return ve(!0);let o=r.map(s=>{let a=is(s,t),l=IO(a)?a.canLoad(i,e):ni(t,()=>a(i,e));return mr(l)});return ve(o).pipe(ns(),uC(n))}function uC(t){return Gu(Kt(i=>{if(es(i))throw sC(t,i)}),Ne(i=>i===!0))}function VO(t,i,e,n){let r=i.canMatch;if(!r||r.length===0)return ve(!0);let o=r.map(s=>{let a=is(s,t),l=DO(a)?a.canMatch(i,e):ni(t,()=>a(i,e));return mr(l)});return ve(o).pipe(ns(),uC(n))}var fa=class{constructor(i){this.segmentGroup=i||null}},ou=class extends Error{constructor(i){super(),this.urlTree=i}};function Qo(t){return _o(new fa(t))}function PO(t){return _o(new G(4e3,!1))}function HO(t){return _o(aC(!1,Rn.GuardRejected))}var Xf=class{constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return ve(n);if(r.numberOfChildren>1||!r.children[Pe])return PO(i.redirectTo);r=r.children[Pe]}}applyRedirectCommands(i,e,n){let r=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n);if(e.startsWith("/"))throw new ou(r);return r}applyRedirectCreateUrlTree(i,e,n,r){let o=this.createSegmentGroup(i,e.root,n,r);return new pr(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([r,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[r]=e[a]}else n[r]=o}),n}createSegmentGroup(i,e,n,r){let o=this.createSegments(i,e.segments,n,r),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(i,l,n,r)}),new rt(o,s)}createSegments(i,e,n,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(i,o,r):this.findOrReturn(o,n))}findPosParam(i,e,n){let r=n[e.path.substring(1)];if(!r)throw new G(4001,!1);return r}findOrReturn(i,e){let n=0;for(let r of e){if(r.path===i.path)return e.splice(n),r;n++}return i}},Jf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function BO(t,i,e,n,r){let o=sm(t,i,e);return o.matched?(n=mO(i,n),VO(n,i,e,r).pipe(Ne(s=>s===!0?o:$({},Jf)))):ve(o)}function sm(t,i,e){if(i.path==="**")return jO(e);if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?$({},Jf):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(i.matcher||NM)(e,t,i);if(!r)return $({},Jf);let o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=r.consumed.length>0?$($({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function jO(t){return{matched:!0,parameters:t.length>0?U1(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function H1(t,i,e,n){return e.length>0&&$O(t,e,n)?{segmentGroup:new rt(i,UO(n,new rt(e,t.children))),slicedSegments:[]}:e.length===0&&GO(t,e,n)?{segmentGroup:new rt(t.segments,zO(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new rt(t.segments,t.children),slicedSegments:e}}function zO(t,i,e,n){let r={};for(let o of e)if(cu(t,i,o)&&!n[xi(o)]){let s=new rt([],{});r[xi(o)]=s}return $($({},n),r)}function UO(t,i){let e={};e[Pe]=i;for(let n of t)if(n.path===""&&xi(n)!==Pe){let r=new rt([],{});e[xi(n)]=r}return e}function $O(t,i,e){return e.some(n=>cu(t,i,n)&&xi(n)!==Pe)}function GO(t,i,e){return e.some(n=>cu(t,i,n))}function cu(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function WO(t,i,e,n){return xi(t)!==n&&(n===Pe||!cu(i,e,t))?!1:sm(i,t,e).matched}function qO(t,i,e){return i.length===0&&!t.children[e]}var em=class{};function KO(t,i,e,n,r,o,s="emptyOnly"){return new tm(t,i,e,n,r,s,o).recognize()}var QO=31,tm=class{constructor(i,e,n,r,o,s,a){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Xf(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(i){return new G(4002,`'${i.segmentGroup}'`)}recognize(){let i=H1(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(Ne(e=>{let n=new pa([],Object.freeze({}),Object.freeze($({},this.urlTree.queryParams)),this.urlTree.fragment,{},Pe,this.rootComponentType,null,{}),r=new An(n,e),o=new iu("",r),s=tO(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i,Pe).pipe(Xi(n=>{if(n instanceof ou)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof fa?this.noMatchError(n):n}))}inheritParamsAndData(i,e){let n=i.value,r=im(n,e,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),i.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(i,e,n,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,r,!0).pipe(Ne(o=>o instanceof An?[o]:[]))}processChildren(i,e,n){let r=[];for(let o of Object.keys(n.children))o==="primary"?r.unshift(o):r.push(o);return gt(r).pipe(Ei(o=>{let s=n.children[o],a=gO(e,o);return this.processSegmentGroup(i,a,s,o)}),Ju((o,s)=>(o.push(...s),o)),Ji(null),Xu(),Ht(o=>{if(o===null)return Qo(n);let s=dC(o);return ZO(s),ve(s)}))}processSegment(i,e,n,r,o,s){return gt(e).pipe(Ei(a=>this.processSegmentAgainstRoute(a._injector??i,e,a,n,r,o,s).pipe(Xi(l=>{if(l instanceof fa)return ve(null);throw l}))),pi(a=>!!a),Xi(a=>{if(cC(a))return qO(n,r,o)?ve(new em):Qo(n);throw a}))}processSegmentAgainstRoute(i,e,n,r,o,s,a){return WO(n,r,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(i,r,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(i,r,e,n,o,s):Qo(r):Qo(r)}expandSegmentAgainstRouteUsingRedirect(i,e,n,r,o,s){let{matched:a,consumedSegments:l,positionalParamSegments:u,remainingSegments:h}=sm(e,r,o);if(!a)return Qo(e);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>QO&&(this.allowRedirects=!1));let _=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,u);return this.applyRedirects.lineralizeSegments(r,_).pipe(Ht(I=>this.processSegment(i,n,e,I.concat(h),s,!1)))}matchSegmentAgainstRoute(i,e,n,r,o){let s=BO(e,n,r,i,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(mn(a=>a.matched?(i=n._injector??i,this.getChildConfig(i,n,r).pipe(mn(({routes:l})=>{let u=n._loadedInjector??i,{consumedSegments:h,remainingSegments:_,parameters:I}=a,S=new pa(h,I,Object.freeze($({},this.urlTree.queryParams)),this.urlTree.fragment,XO(n),xi(n),n.component??n._loadedComponent??null,n,JO(n)),{segmentGroup:M,slicedSegments:A}=H1(e,h,_,l);if(A.length===0&&M.hasChildren())return this.processChildren(u,l,M).pipe(Ne(B=>B===null?null:new An(S,B)));if(l.length===0&&A.length===0)return ve(new An(S,[]));let V=xi(n)===o;return this.processSegment(u,l,M,A,V?Pe:o,!0).pipe(Ne(B=>new An(S,B instanceof An?[B]:[])))}))):Qo(e)))}getChildConfig(i,e,n){return e.children?ve({routes:e.children,injector:i}):e.loadChildren?e._loadedRoutes!==void 0?ve({routes:e._loadedRoutes,injector:e._loadedInjector}):NO(i,e,n,this.urlSerializer).pipe(Ht(r=>r?this.configLoader.loadChildren(i,e).pipe(Kt(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):HO(e))):ve({routes:[],injector:i})}};function ZO(t){t.sort((i,e)=>i.value.outlet===Pe?-1:e.value.outlet===Pe?1:i.value.outlet.localeCompare(e.value.outlet))}function YO(t){let i=t.value.routeConfig;return i&&i.path===""}function dC(t){let i=[],e=new Set;for(let n of t){if(!YO(n)){i.push(n);continue}let r=i.find(o=>n.value.routeConfig===o.value.routeConfig);r!==void 0?(r.children.push(...n.children),e.add(r)):i.push(n)}for(let n of e){let r=dC(n.children);i.push(new An(n.value,r))}return i.filter(n=>!e.has(n))}function XO(t){return t.data||{}}function JO(t){return t.resolve||{}}function e3(t,i,e,n,r,o){return Ht(s=>KO(t,i,e,n,s.extractedUrl,r,o).pipe(Ne(({state:a,tree:l})=>Le($({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function t3(t,i){return Ht(e=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return ve(e);let o=new Set(r.map(l=>l.route)),s=new Set;for(let l of o)if(!s.has(l))for(let u of pC(l))s.add(u);let a=0;return gt(s).pipe(Ei(l=>o.has(l)?n3(l,n,t,i):(l.data=im(l,l.parent,t).resolve,ve(void 0))),Kt(()=>a++),vo(1),Ht(l=>a===s.size?ve(e):xn))})}function pC(t){let i=t.children.map(e=>pC(e)).flat();return[t,...i]}function n3(t,i,e,n){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!rC(r)&&(o[ga]=r.title),i3(o,t,i,n).pipe(Ne(s=>(t._resolvedData=s,t.data=im(t,t.parent,e).resolve,null)))}function i3(t,i,e,n){let r=Ff(t);if(r.length===0)return ve({});let o={};return gt(r).pipe(Ht(s=>r3(t[s],i,e,n).pipe(pi(),Kt(a=>{o[s]=a}))),vo(1),Yu(o),Xi(s=>cC(s)?xn:_o(s)))}function r3(t,i,e,n){let r=va(i)??n,o=is(t,r),s=o.resolve?o.resolve(i,e):ni(r,()=>o(i,e));return mr(s)}function Of(t){return mn(i=>{let e=t(i);return e?gt(e).pipe(Ne(()=>i)):ve(i)})}var hC=(()=>{let i=class i{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(s=>s.outlet===Pe);return r}getResolvedTitleForRoute(n){return n.data[ga]}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:()=>W(o3),providedIn:"root"});let t=i;return t})(),o3=(()=>{let i=class i extends hC{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};i.\u0275fac=function(r){return new(r||i)(Y(Jv))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})(),ba=new he("",{providedIn:"root",factory:()=>({})}),ma=new he(""),am=(()=>{let i=class i{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=W(mc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return ve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=mr(n.loadComponent()).pipe(Ne(fC),Kt(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Or(()=>{this.componentLoaders.delete(n)})),o=new go(r,()=>new nt).pipe(mo());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let s=s3(r,this.compiler,n,this.onLoadEndListener).pipe(Or(()=>{this.childrenLoaders.delete(r)})),a=new go(s,()=>new nt).pipe(mo());return this.childrenLoaders.set(r,a),a}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function s3(t,i,e,n){return mr(t.loadChildren()).pipe(Ne(fC),Ht(r=>r instanceof ks||Array.isArray(r)?ve(r):gt(i.compileModuleAsync(r))),Ne(r=>{n&&n(t);let o,s,a=!1;return Array.isArray(r)?(s=r,a=!0):(o=r.create(e).injector,s=o.get(ma,[],{optional:!0,self:!0}).flat()),{routes:s.map(om),injector:o}}))}function a3(t){return t&&typeof t=="object"&&"default"in t}function fC(t){return a3(t)?t.default:t}var lm=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:()=>W(l3),providedIn:"root"});let t=i;return t})(),l3=(()=>{let i=class i{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})(),mC=new he(""),gC=new he("");function c3(t,i,e){let n=t.get(gC),r=t.get(Se);return t.get(ge).runOutsideAngular(()=>{if(!r.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,s=new Promise(u=>{o=u}),a=r.startViewTransition(()=>(o(),u3(t))),{onViewTransitionCreated:l}=n;return l&&ni(t,()=>l({transition:a,from:i,to:e})),s})}function u3(t){return new Promise(i=>{ch(i,{injector:t})})}var cm=(()=>{let i=class i{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new nt,this.transitionAbortSubject=new nt,this.configLoader=W(am),this.environmentInjector=W(cn),this.urlSerializer=W(_a),this.rootContexts=W(ya),this.location=W($o),this.inputBindingEnabled=W(lu,{optional:!0})!==null,this.titleStrategy=W(hC),this.options=W(ba,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=W(lm),this.createViewTransition=W(mC,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ve(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Bf(o)),r=o=>this.events.next(new jf(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(Le($($({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new Xt({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:oa,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(fn(s=>s.id!==0),Ne(s=>Le($({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),mn(s=>{let a=!1,l=!1;return ve(s).pipe(mn(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Rn.SupersededByNewNavigation),xn;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?Le($({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let h=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),_=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!h&&_!=="reload"){let I="";return this.events.next(new fr(u.id,this.urlSerializer.serialize(u.rawUrl),I,Xc.IgnoredSameUrlNavigation)),u.resolve(null),xn}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return ve(u).pipe(mn(I=>{let S=this.transitions?.getValue();return this.events.next(new ts(I.id,this.urlSerializer.serialize(I.extractedUrl),I.source,I.restoredState)),S!==this.transitions?.getValue()?xn:Promise.resolve(I)}),e3(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Kt(I=>{s.targetSnapshot=I.targetSnapshot,s.urlAfterRedirects=I.urlAfterRedirects,this.currentNavigation=Le($({},this.currentNavigation),{finalUrl:I.urlAfterRedirects});let S=new Jc(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(S)}));if(h&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:I,extractedUrl:S,source:M,restoredState:A,extras:V}=u,B=new ts(I,this.urlSerializer.serialize(S),M,A);this.events.next(B);let re=nC(this.rootComponentType).snapshot;return this.currentTransition=s=Le($({},u),{targetSnapshot:re,urlAfterRedirects:S,extras:Le($({},V),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,ve(s)}else{let I="";return this.events.next(new fr(u.id,this.urlSerializer.serialize(u.extractedUrl),I,Xc.IgnoredByUrlHandlingStrategy)),u.resolve(null),xn}}),Kt(u=>{let h=new Nf(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}),Ne(u=>(this.currentTransition=s=Le($({},u),{guards:yO(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),EO(this.environmentInjector,u=>this.events.next(u)),Kt(u=>{if(s.guardsResult=u.guardsResult,es(u.guardsResult))throw sC(this.urlSerializer,u.guardsResult);let h=new Vf(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(h)}),fn(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Rn.GuardRejected),!1)),Of(u=>{if(u.guards.canActivateChecks.length)return ve(u).pipe(Kt(h=>{let _=new Pf(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(_)}),mn(h=>{let _=!1;return ve(h).pipe(t3(this.paramsInheritanceStrategy,this.environmentInjector),Kt({next:()=>_=!0,complete:()=>{_||this.cancelNavigationTransition(h,"",Rn.NoDataFromResolver)}}))}),Kt(h=>{let _=new Hf(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(_)}))}),Of(u=>{let h=_=>{let I=[];_.routeConfig?.loadComponent&&!_.routeConfig._loadedComponent&&I.push(this.configLoader.loadComponent(_.routeConfig).pipe(Kt(S=>{_.component=S}),Ne(()=>{})));for(let S of _.children)I.push(...h(S));return I};return bs(h(u.targetSnapshot.root)).pipe(Ji(null),Mi(1))}),Of(()=>this.afterPreactivation()),mn(()=>{let{currentSnapshot:u,targetSnapshot:h}=s,_=this.createViewTransition?.(this.environmentInjector,u.root,h.root);return _?gt(_).pipe(Ne(()=>s)):ve(s)}),Ne(u=>{let h=uO(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=Le($({},u),{targetRouterState:h}),this.currentNavigation.targetRouterState=h,s}),Kt(()=>{this.events.next(new ua)}),_O(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Mi(1),Kt({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new si(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),td(this.transitionAbortSubject.pipe(Kt(u=>{throw u}))),Or(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",Rn.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Xi(u=>{if(l=!0,lC(u))this.events.next(new hr(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),hO(u)?this.events.next(new da(u.url)):s.resolve(!1);else{this.events.next(new ca(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(u))}catch(h){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(h)}}return xn}))}))}cancelNavigationTransition(n,r,o){let s=new hr(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function d3(t){return t!==oa}var p3=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:()=>W(h3),providedIn:"root"});let t=i;return t})(),nm=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},h3=(()=>{let i=class i extends nm{};i.\u0275fac=(()=>{let n;return function(o){return(n||(n=ie(i)))(o||i)}})(),i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})(),_C=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:()=>W(f3),providedIn:"root"});let t=i;return t})(),f3=(()=>{let i=class i extends _C{constructor(){super(...arguments),this.location=W($o),this.urlSerializer=W(_a),this.options=W(ba,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=W(lm),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new pr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=nC(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof ts)this.stateMemento=this.createStateMemento();else if(n instanceof fr)this.rawUrlTree=r.initialUrl;else if(n instanceof Jc){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else n instanceof ua?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):n instanceof hr&&(n.code===Rn.GuardRejected||n.code===Rn.NoDataFromResolver)?this.restoreHistory(r):n instanceof ca?this.restoreHistory(r,!0):n instanceof si&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let s=this.browserPageId,a=$($({},r.extras.state),this.generateNgRouterState(r.id,s));this.location.replaceState(o,"",a)}else{let s=$($({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};i.\u0275fac=(()=>{let n;return function(o){return(n||(n=ie(i)))(o||i)}})(),i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})(),ia=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(ia||{});function yC(t,i){t.events.pipe(fn(e=>e instanceof si||e instanceof hr||e instanceof ca||e instanceof fr),Ne(e=>e instanceof si||e instanceof fr?ia.COMPLETE:(e instanceof hr?e.code===Rn.Redirect||e.code===Rn.SupersededByNewNavigation:!1)?ia.REDIRECTING:ia.FAILED),fn(e=>e!==ia.REDIRECTING),Mi(1)).subscribe(()=>{i()})}function m3(t){throw t}var g3={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_3={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ti=(()=>{let i=class i{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=W(dc),this.stateManager=W(_C),this.options=W(ba,{optional:!0})||{},this.pendingTasks=W($r),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=W(cm),this.urlSerializer=W(_a),this.location=W($o),this.urlHandlingStrategy=W(lm),this._events=new nt,this.errorHandler=this.options.errorHandler||m3,this.navigated=!1,this.routeReuseStrategy=W(p3),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=W(ma,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!W(lu,{optional:!0}),this.eventsSubscription=new zt,this.isNgZoneEnabled=W(ge)instanceof ge&&ge.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(r,s),r instanceof hr&&r.code!==Rn.Redirect&&r.code!==Rn.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof si)this.navigated=!0;else if(r instanceof da){let a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),l={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||d3(o.source)};this.scheduleNavigation(a,oa,null,l,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}v3(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),oa,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=$({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(om),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:u}=r,h=u?this.currentUrlTree.fragment:a,_=null;switch(l){case"merge":_=$($({},this.currentUrlTree.queryParams),s);break;case"preserve":_=this.currentUrlTree.queryParams;break;default:_=s||null}_!==null&&(_=this.removeEmptyProps(_));let I;try{let S=o?o.snapshot:this.routerState.snapshot.root;I=X1(S)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),I=this.currentUrlTree.root}return J1(I,n,_,h??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=es(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,oa,null,r)}navigate(n,r={skipLocationChange:!1}){return y3(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=$({},g3):r===!1?o=$({},_3):o=r,es(n))return R1(this.currentUrlTree,n,o);let s=this.parseUrl(n);return R1(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,s])=>(s!=null&&(r[o]=s),r),{})}scheduleNavigation(n,r,o,s,a){if(this.disposed)return Promise.resolve(!1);let l,u,h;a?(l=a.resolve,u=a.reject,h=a.promise):h=new Promise((I,S)=>{l=I,u=S});let _=this.pendingTasks.add();return yC(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(_))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:l,reject:u,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(I=>Promise.reject(I))}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();function y3(t){for(let i=0;i<t.length;i++)if(t[i]==null)throw new G(4008,!1)}function v3(t){return!(t instanceof ua)&&!(t instanceof da)}var su=(()=>{let i=class i{constructor(n,r,o,s,a,l){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=l,this.href=null,this.commands=null,this.onChanges=new nt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(h=>{h instanceof si&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,s,a){let l=this.urlTree;if(l===null||this.isAnchorElement&&(n!==0||r||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(l,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:cy(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,s=this.el.nativeElement;r!==null?o.setAttribute(s,n,r):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};i.\u0275fac=function(r){return new(r||i)(x(Ti),x(Ii),zp("tabindex"),x(Be),x(_e),x(Hi))},i.\u0275dir=$e({type:i,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&E("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&w("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[C.HasDecoratorInputTransform,"preserveFragment","preserveFragment",T],skipLocationChange:[C.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",T],replaceUrl:[C.HasDecoratorInputTransform,"replaceUrl","replaceUrl",T],routerLink:"routerLink"},standalone:!0,features:[fe,$t]});let t=i;return t})(),vC=(()=>{let i=class i{get isActive(){return this._isActive}constructor(n,r,o,s,a){this.router=n,this.element=r,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new O,this.routerEventsSubscription=n.events.subscribe(l=>{l instanceof si&&this.update()})}ngAfterContentInit(){ve(this.links.changes,ve(null)).pipe(Yi()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=gt(n).pipe(Yi()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){let r=C3(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let s=o.urlTree;return s?n.isActive(s,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};i.\u0275fac=function(r){return new(r||i)(x(Ti),x(_e),x(Be),x(ce),x(su,8))},i.\u0275dir=$e({type:i,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,s){if(r&1&&Re(s,su,5),r&2){let a;j(a=z())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[$t]});let t=i;return t})();function C3(t){return!!t.paths}var au=class{};var b3=(()=>{let i=class i{constructor(n,r,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(fn(n=>n instanceof si),Ei(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let o=[];for(let s of r){s.providers&&!s._injector&&(s._injector=lc(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(l,s.children??s._loadedRoutes))}return gt(o).pipe(Yi())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;r.loadChildren&&r.canLoad===void 0?o=this.loader.loadChildren(n,r):o=ve(null);let s=o.pipe(Ht(a=>a===null?ve(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(r);return gt([s,a]).pipe(Yi())}else return s})}};i.\u0275fac=function(r){return new(r||i)(Y(Ti),Y(mc),Y(cn),Y(au),Y(am))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})(),CC=new he(""),w3=(()=>{let i=class i{constructor(n,r,o,s,a={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof ts?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof si?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof fr&&n.code===Xc.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof eu&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new eu(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};i.\u0275fac=function(r){Ty()},i.\u0275prov=q({token:i,factory:i.\u0275fac});let t=i;return t})();function bC(t,...i){return Vo([{provide:ma,multi:!0,useValue:t},[],{provide:Ii,useFactory:wC,deps:[Ti]},{provide:js,multi:!0,useFactory:IC},i.map(e=>e.\u0275providers)])}function wC(t){return t.routerState.root}function wa(t,i){return{\u0275kind:t,\u0275providers:i}}function IC(){let t=W(Hn);return i=>{let e=t.get(Kr);if(i!==e.components[0])return;let n=t.get(Ti),r=t.get(xC);t.get(um)===1&&n.initialNavigation(),t.get(TC,null,Ue.Optional)?.setUpPreloading(),t.get(CC,null,Ue.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var xC=new he("",{factory:()=>new nt}),um=new he("",{providedIn:"root",factory:()=>1});function I3(){return wa(2,[{provide:um,useValue:0},{provide:fc,multi:!0,deps:[Hn],useFactory:i=>{let e=i.get(Ov,Promise.resolve());return()=>e.then(()=>new Promise(n=>{let r=i.get(Ti),o=i.get(xC);yC(r,()=>{n(!0)}),i.get(cm).afterPreactivation=()=>(n(!0),o.closed?ve(void 0):o),r.initialNavigation()}))}}])}function x3(){return wa(3,[{provide:fc,multi:!0,useFactory:()=>{let i=W(Ti);return()=>{i.setUpLocationChangeListener()}}},{provide:um,useValue:2}])}var TC=new he("");function T3(t){return wa(0,[{provide:TC,useExisting:b3},{provide:au,useExisting:t}])}function S3(){return wa(8,[P1,{provide:lu,useExisting:P1}])}function D3(t){let i=[{provide:mC,useValue:c3},{provide:gC,useValue:$({skipNextTransition:!!t?.skipInitialTransition},t)}];return wa(9,i)}var B1=new he("ROUTER_FORROOT_GUARD"),E3=[$o,{provide:_a,useClass:aa},Ti,ya,{provide:Ii,useFactory:wC,deps:[Ti]},am,[]],dm=(()=>{let i=class i{constructor(n){}static forRoot(n,r){return{ngModule:i,providers:[E3,[],{provide:ma,multi:!0,useValue:n},{provide:B1,useFactory:F3,deps:[[Ti,new Rs,new zl]]},{provide:ba,useValue:r||{}},r?.useHash?O3():k3(),M3(),r?.preloadingStrategy?T3(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?A3(r):[],r?.bindToComponentInputs?S3().\u0275providers:[],r?.enableViewTransitions?D3().\u0275providers:[],R3()]}}static forChild(n){return{ngModule:i,providers:[{provide:ma,multi:!0,useValue:n}]}}};i.\u0275fac=function(r){return new(r||i)(Y(B1,8))},i.\u0275mod=te({type:i}),i.\u0275inj=ee({});let t=i;return t})();function M3(){return{provide:CC,useFactory:()=>{let t=W(Rv),i=W(ge),e=W(ba),n=W(cm),r=W(_a);return e.scrollOffset&&t.setOffset(e.scrollOffset),new w3(r,n,t,i,e)}}}function O3(){return{provide:Hi,useClass:Fv}}function k3(){return{provide:Hi,useClass:Fh}}function F3(t){return"guarded"}function A3(t){return[t.initialNavigation==="disabled"?x3().\u0275providers:[],t.initialNavigation==="enabledBlocking"?I3().\u0275providers:[]]}var j1=new he("");function R3(){return[{provide:j1,useFactory:IC},{provide:js,multi:!0,useExisting:j1}]}var k=class t{static isArray(i,e=!0){return Array.isArray(i)&&(e||i.length!==0)}static isObject(i,e=!0){return typeof i=="object"&&!Array.isArray(i)&&i!=null&&(e||Object.keys(i).length!==0)}static equals(i,e,n){return n?this.resolveFieldData(i,n)===this.resolveFieldData(e,n):this.equalsByValue(i,e)}static equalsByValue(i,e){if(i===e)return!0;if(i&&e&&typeof i=="object"&&typeof e=="object"){var n=Array.isArray(i),r=Array.isArray(e),o,s,a;if(n&&r){if(s=i.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.equalsByValue(i[o],e[o]))return!1;return!0}if(n!=r)return!1;var l=this.isDate(i),u=this.isDate(e);if(l!=u)return!1;if(l&&u)return i.getTime()==e.getTime();var h=i instanceof RegExp,_=e instanceof RegExp;if(h!=_)return!1;if(h&&_)return i.toString()==e.toString();var I=Object.keys(i);if(s=I.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,I[o]))return!1;for(o=s;o--!==0;)if(a=I[o],!this.equalsByValue(i[a],e[a]))return!1;return!0}return i!==i&&e!==e}static resolveFieldData(i,e){if(i&&e){if(this.isFunction(e))return e(i);if(e.indexOf(".")==-1)return i[e];{let n=e.split("."),r=i;for(let o=0,s=n.length;o<s;++o){if(r==null)return null;r=r[n[o]]}return r}}else return null}static isFunction(i){return!!(i&&i.constructor&&i.call&&i.apply)}static reorderArray(i,e,n){let r;i&&e!==n&&(n>=i.length&&(n%=i.length,e%=i.length),i.splice(n,0,i.splice(e,1)[0]))}static insertIntoOrderedArray(i,e,n,r){if(n.length>0){let o=!1;for(let s=0;s<n.length;s++)if(this.findIndexInList(n[s],r)>e){n.splice(s,0,i),o=!0;break}o||n.push(i)}else n.push(i)}static findIndexInList(i,e){let n=-1;if(e){for(let r=0;r<e.length;r++)if(e[r]==i){n=r;break}}return n}static contains(i,e){if(i!=null&&e&&e.length){for(let n of e)if(this.equals(i,n))return!0}return!1}static removeAccents(i){return i&&(i=i.normalize("NFKD").replace(new RegExp("\\p{Diacritic}","gu"),"")),i}static isDate(i){return Object.prototype.toString.call(i)==="[object Date]"}static isEmpty(i){return i==null||i===""||Array.isArray(i)&&i.length===0||!this.isDate(i)&&typeof i=="object"&&Object.keys(i).length===0}static isNotEmpty(i){return!this.isEmpty(i)}static compare(i,e,n,r=1){let o=-1,s=this.isEmpty(i),a=this.isEmpty(e);return s&&a?o=0:s?o=r:a?o=-r:typeof i=="string"&&typeof e=="string"?o=i.localeCompare(e,n,{numeric:!0}):o=i<e?-1:i>e?1:0,o}static sort(i,e,n=1,r,o=1){let s=t.compare(i,e,r,n),a=n;return(t.isEmpty(i)||t.isEmpty(e))&&(a=o===1?n:o),a*s}static merge(i,e){if(!(i==null&&e==null)){{if((i==null||typeof i=="object")&&(e==null||typeof e=="object"))return $($({},i||{}),e||{});if((i==null||typeof i=="string")&&(e==null||typeof e=="string"))return[i||"",e||""].join(" ")}return e||i}}static isPrintableCharacter(i=""){return this.isNotEmpty(i)&&i.length===1&&i.match(/\S| /)}static getItemValue(i,...e){return this.isFunction(i)?i(...e):i}static findLastIndex(i,e){let n=-1;if(this.isNotEmpty(i))try{n=i.findLastIndex(e)}catch{n=i.lastIndexOf([...i].reverse().find(e))}return n}static findLast(i,e){let n;if(this.isNotEmpty(i))try{n=i.findLast(e)}catch{n=[...i].reverse().find(e)}return n}static deepEquals(i,e){if(i===e)return!0;if(i&&e&&typeof i=="object"&&typeof e=="object"){var n=Array.isArray(i),r=Array.isArray(e),o,s,a;if(n&&r){if(s=i.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!this.deepEquals(i[o],e[o]))return!1;return!0}if(n!=r)return!1;var l=i instanceof Date,u=e instanceof Date;if(l!=u)return!1;if(l&&u)return i.getTime()==e.getTime();var h=i instanceof RegExp,_=e instanceof RegExp;if(h!=_)return!1;if(h&&_)return i.toString()==e.toString();var I=Object.keys(i);if(s=I.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,I[o]))return!1;for(o=s;o--!==0;)if(a=I[o],!this.deepEquals(i[a],e[a]))return!1;return!0}return i!==i&&e!==e}},DC=0;function me(t="pn_id_"){return DC++,`${t}${DC}`}function L3(){let t=[],i=(o,s)=>{let a=t.length>0?t[t.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+2;return t.push({key:o,value:l}),l},e=o=>{t=t.filter(s=>s.value!==o)},n=()=>t.length>0?t[t.length-1].value:0,r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(i(o,a)))},clear:o=>{o&&(e(r(o)),o.style.zIndex="")},getCurrent:()=>n()}}var qe=L3();var EC=["*"],ro=function(t){return t[t.ACCEPT=0]="ACCEPT",t[t.REJECT=1]="REJECT",t[t.CANCEL=2]="CANCEL",t}(ro||{}),gr=(()=>{class t{requireConfirmationSource=new nt;acceptConfirmationSource=new nt;requireConfirmation$=this.requireConfirmationSource.asObservable();accept=this.acceptConfirmationSource.asObservable();confirm(e){return this.requireConfirmationSource.next(e),this}close(){return this.requireConfirmationSource.next(null),this}onAccept(){this.acceptConfirmationSource.next(null)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=q({token:t,factory:t.\u0275fac})}return t})();var kt=(()=>{class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static IN="in";static LESS_THAN="lt";static LESS_THAN_OR_EQUAL_TO="lte";static GREATER_THAN="gt";static GREATER_THAN_OR_EQUAL_TO="gte";static BETWEEN="between";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static DATE_IS="dateIs";static DATE_IS_NOT="dateIsNot";static DATE_BEFORE="dateBefore";static DATE_AFTER="dateAfter"}return t})(),rs=(()=>{class t{static AND="and";static OR="or"}return t})(),os=(()=>{class t{filter(e,n,r,o,s){let a=[];if(e)for(let l of e)for(let u of n){let h=k.resolveFieldData(l,u);if(this.filters[o](h,r,s)){a.push(l);break}}return a}filters={startsWith:(e,n,r)=>{if(n==null||n.trim()==="")return!0;if(e==null)return!1;let o=k.removeAccents(n.toString()).toLocaleLowerCase(r);return k.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,o.length)===o},contains:(e,n,r)=>{if(n==null||typeof n=="string"&&n.trim()==="")return!0;if(e==null)return!1;let o=k.removeAccents(n.toString()).toLocaleLowerCase(r);return k.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)!==-1},notContains:(e,n,r)=>{if(n==null||typeof n=="string"&&n.trim()==="")return!0;if(e==null)return!1;let o=k.removeAccents(n.toString()).toLocaleLowerCase(r);return k.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)===-1},endsWith:(e,n,r)=>{if(n==null||n.trim()==="")return!0;if(e==null)return!1;let o=k.removeAccents(n.toString()).toLocaleLowerCase(r),s=k.removeAccents(e.toString()).toLocaleLowerCase(r);return s.indexOf(o,s.length-o.length)!==-1},equals:(e,n,r)=>n==null||typeof n=="string"&&n.trim()===""?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()===n.getTime():k.removeAccents(e.toString()).toLocaleLowerCase(r)==k.removeAccents(n.toString()).toLocaleLowerCase(r),notEquals:(e,n,r)=>n==null||typeof n=="string"&&n.trim()===""?!1:e==null?!0:e.getTime&&n.getTime?e.getTime()!==n.getTime():k.removeAccents(e.toString()).toLocaleLowerCase(r)!=k.removeAccents(n.toString()).toLocaleLowerCase(r),in:(e,n)=>{if(n==null||n.length===0)return!0;for(let r=0;r<n.length;r++)if(k.equals(e,n[r]))return!0;return!1},between:(e,n)=>n==null||n[0]==null||n[1]==null?!0:e==null?!1:e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1],lt:(e,n,r)=>n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<n.getTime():e<n,lte:(e,n,r)=>n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n,gt:(e,n,r)=>n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>n.getTime():e>n,gte:(e,n,r)=>n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n,is:(e,n,r)=>this.filters.equals(e,n,r),isNot:(e,n,r)=>this.filters.notEquals(e,n,r),before:(e,n,r)=>this.filters.lt(e,n,r),after:(e,n,r)=>this.filters.gt(e,n,r),dateIs:(e,n)=>n==null?!0:e==null?!1:e.toDateString()===n.toDateString(),dateIsNot:(e,n)=>n==null?!0:e==null?!1:e.toDateString()!==n.toDateString(),dateBefore:(e,n)=>n==null?!0:e==null?!1:e.getTime()<n.getTime(),dateAfter:(e,n)=>n==null?!0:e==null?!1:e.getTime()>n.getTime()};register(e,n){this.filters[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_r=(()=>{class t{messageSource=new nt;clearSource=new nt;messageObserver=this.messageSource.asObservable();clearObserver=this.clearSource.asObservable();add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=q({token:t,factory:t.\u0275fac})}return t})(),un=(()=>{class t{clickSource=new nt;clickObservable=this.clickSource.asObservable();add(e){e&&this.clickSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ot=(()=>{class t{ripple=!1;inputStyle="outlined";overlayOptions={};filterMatchModeOptions={text:[kt.STARTS_WITH,kt.CONTAINS,kt.NOT_CONTAINS,kt.ENDS_WITH,kt.EQUALS,kt.NOT_EQUALS],numeric:[kt.EQUALS,kt.NOT_EQUALS,kt.LESS_THAN,kt.LESS_THAN_OR_EQUAL_TO,kt.GREATER_THAN,kt.GREATER_THAN_OR_EQUAL_TO],date:[kt.DATE_IS,kt.DATE_IS_NOT,kt.DATE_BEFORE,kt.DATE_AFTER]};translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",emptyFilterMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"{page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",previousPageLabel:"Previous Page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List",selectColor:"Select a color",removeLabel:"Remove",browseFiles:"Browse Files",maximizeLabel:"Maximize"}};zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100};translationSource=new nt;translationObserver=this.translationSource.asObservable();getTranslation(e){return this.translation[e]}setTranslation(e){this.translation=$($({},this.translation),e),this.translationSource.next(this.translation)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["p-header"]],ngContentSelectors:EC,decls:1,vars:0,template:function(n,r){n&1&&(Gt(),xt(0))},encapsulation:2})}return t})(),ss=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["p-footer"]],ngContentSelectors:EC,decls:1,vars:0,template:function(n,r){n&1&&(Gt(),xt(0))},encapsulation:2})}return t})(),xe=(()=>{class t{template;type;name;constructor(e){this.template=e}getType(){return this.name}static \u0275fac=function(n){return new(n||t)(x(Nn))};static \u0275dir=$e({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:[C.None,"pTemplate","name"]}})}return t})(),ke=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue]})}return t})(),ze=(()=>{class t{static STARTS_WITH="startsWith";static CONTAINS="contains";static NOT_CONTAINS="notContains";static ENDS_WITH="endsWith";static EQUALS="equals";static NOT_EQUALS="notEquals";static NO_FILTER="noFilter";static LT="lt";static LTE="lte";static GT="gt";static GTE="gte";static IS="is";static IS_NOT="isNot";static BEFORE="before";static AFTER="after";static CLEAR="clear";static APPLY="apply";static MATCH_ALL="matchAll";static MATCH_ANY="matchAny";static ADD_RULE="addRule";static REMOVE_RULE="removeRule";static ACCEPT="accept";static REJECT="reject";static CHOOSE="choose";static UPLOAD="upload";static CANCEL="cancel";static PENDING="pending";static FILE_SIZE_TYPES="fileSizeTypes";static DAY_NAMES="dayNames";static DAY_NAMES_SHORT="dayNamesShort";static DAY_NAMES_MIN="dayNamesMin";static MONTH_NAMES="monthNames";static MONTH_NAMES_SHORT="monthNamesShort";static FIRST_DAY_OF_WEEK="firstDayOfWeek";static TODAY="today";static WEEK_HEADER="weekHeader";static WEAK="weak";static MEDIUM="medium";static STRONG="strong";static PASSWORD_PROMPT="passwordPrompt";static EMPTY_MESSAGE="emptyMessage";static EMPTY_FILTER_MESSAGE="emptyFilterMessage";static SHOW_FILTER_MENU="showFilterMenu";static HIDE_FILTER_MENU="hideFilterMenu";static SELECTION_MESSAGE="selectionMessage";static ARIA="aria";static SELECT_COLOR="selectColor";static BROWSE_FILES="browseFiles"}return t})();var MC=[];var pm={production:!0,ENV_BE_HOST_PORT:location.origin};var st=function(t){return t.AUTHORIZATION_AM="x-am-authorization",t.AUTHORIZATION_AM_USER="x-am-user-authorization",t.AUTHORIZATION_AWS="x-aws-authorization",t.AUTHORIZATION_GOOGLE="x-google-authorization",t.AUTHORIZATION_AZURE="x-azure-authorization",t.DB_MASTER_NAME="db-master-name",t.ADMIN_PATH="admin-path",t.THEME="theme",t}(st||{});var Si=(()=>{let i=class i{constructor(n,r){this.http=n,this.messageService=r}getPKFiled(n){return n.calculated?.primaryKey||"_id"}getSettings(n,r,o){return Ge(this,null,function*(){let s=[pm.ENV_BE_HOST_PORT,"/api/sites/db-masters/master",`/${r}`,`?${st.DB_MASTER_NAME}=${o}`].join(""),a=this.http.get(s,{headers:n});return(yield di(a)).data})}getBaseInstanceApiUrl(n,r){return[pm.ENV_BE_HOST_PORT,"/api","/schema",`/${n}`,`/${r.instanceName}`,`/${r.databaseName}`,`/${r.collectionName}`].join("")}queryStream(n,r,o,s,a){return Ge(this,null,function*(){let l=[this.getBaseInstanceApiUrl(n,r),"/query-stream"].join(""),u=this.http.post(l,a,{headers:s});return yield di(u)})}getDataForDropdown(n,r,o,s,a,l){return Ge(this,null,function*(){let u=[this.getBaseInstanceApiUrl(n,{instanceName:r,databaseName:o,collectionName:s}),"/query-stream"].join(""),h=this.http.post(u,l,{headers:a});return yield di(h)})}getById(n,r,o,s,a){return Ge(this,null,function*(){let l=[this.getBaseInstanceApiUrl(n,r),"/get-by-id",`/${a}`].join(""),u=this.http.get(l,{headers:s});return yield di(u)})}deleteById(n,r,o,s,a){return Ge(this,null,function*(){let l=[this.getBaseInstanceApiUrl(n,r),`/${a}`].join(""),u=this.http.delete(l,{headers:s});return yield di(u)})}deleteByQuery(n,r,o,s){return Ge(this,null,function*(){let a=[this.getBaseInstanceApiUrl(n,r),"/query","/delete"].join(""),l=this.http.post(a,s,{headers:o});return yield di(l)})}updateById(n,r,o,s,a,l){return Ge(this,null,function*(){let u=[this.getBaseInstanceApiUrl(n,r),"/update-by-id",`/${a}`].join(""),h=this.http.put(u,l,{headers:s});return yield di(h)})}saveSingleOrMultiple(n,r,o,s,a,l){return Ge(this,null,function*(){let u=[this.getBaseInstanceApiUrl(n,r),"/save-single-or-multiple"].join(""),h=this.http.post(u,l,{headers:s});return yield di(h)})}showErrorFromResponse(n,r){let o;if(typeof n=="string")try{n=JSON.parse(n)}catch{}if(n&&n?.errors?.length)typeof n.errors[0]=="string"?o=n.errors[0]:o=n.errors[0].reason||n.errors[0].message;else{let s=n;console.error(s),o=s.message}o||(o=n?.error?.message),this.showError(o||r)}showError(n){this.messageService.add({severity:"error",summary:"Error",detail:n})}};i.\u0275fac=function(r){return new(r||i)(Y(Bh),Y(_r))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var tn=function(t){return t.string="string",t.number="number",t.boolean="boolean",t.date="date",t.objectId="objectId",t.file="file",t.files="files",t}(tn||{});var be=function(t){return t.BOOTSTRAP4_LIGHT_BLUE="bootstrap4-light-blue",t.BOOTSTRAP4_LIGHT_PURPLE="bootstrap4-light-purple",t.BOOTSTRAP4_DARK_BLUE="bootstrap4-dark-blue",t.BOOTSTRAP4_DARK_PURPLE="bootstrap4-dark-purple",t.MD_LIGHT_INDIGO="md-light-indigo",t.MD_LIGHT_DEEPPURPLE="md-light-deeppurple",t.MD_DARK_INDIGO="md-dark-indigo",t.MD_DARK_DEEPPURPLE="md-dark-deeppurple",t.MDC_LIGHT_INDIGO="mdc-light-indigo",t.MDC_LIGHT_DEEPPURPLE="mdc-light-deeppurple",t.MDC_DARK_INDIGO="mdc-dark-indigo",t.MDC_DARK_DEEPPURPLE="mdc-dark-deeppurple",t.FLUENT_LIGHT="fluent-light",t.LARA_LIGHT_BLUE="lara-light-blue",t.LARA_LIGHT_INDIGO="lara-light-indigo",t.LARA_LIGHT_PURPLE="lara-light-purple",t.LARA_LIGHT_TEAL="lara-light-teal",t.LARA_DARK_BLUE="lara-dark-blue",t.LARA_DARK_INDIGO="lara-dark-indigo",t.LARA_DARK_PURPLE="lara-dark-purple",t.LARA_DARK_TEAL="lara-dark-teal",t.SOHO_LIGHT="soho-light",t.SOHO_DARK="soho-dark",t.VIVA_LIGHT="viva-light",t.VIVA_DARK="viva-dark",t.MIRA="mira",t.NANO="nano",t.SAGA_BLUE="saga-blue",t.SAGA_GREEN="saga-green",t.SAGA_ORANGE="saga-orange",t.SAGA_PURPLE="saga-purple",t.VELA_BLUE="vela-blue",t.VELA_GREEN="vela-green",t.VELA_ORANGE="vela-orange",t.VELA_PURPLE="vela-purple",t.ARYA_BLUE="arya-blue",t.ARYA_GREEN="arya-green",t.ARYA_ORANGE="arya-orange",t.ARYA_PURPLE="arya-purple",t.NOVA="nova",t.NOVA_ALT="nova-alt",t.NOVA_ACCENT="nova-accent",t.LUNA_AMBER="luna-amber",t.LUNA_BLUE="luna-blue",t.LUNA_GREEN="luna-green",t.LUNA_PINK="luna-pink",t.RHEA="rhea",t}(be||{}),as=function(t){return t.CSV="CSV",t.CSV_SELECTED="CSV Selected",t}(as||{}),nn=function(t){return t.contains="contains",t.notContains="notContains",t.startsWith="startsWith",t.endsWith="endsWith",t.equals="equals",t.notEquals="notEquals",t.lt="lt",t.lte="lte",t.gt="gt",t.gte="gte",t.dateIs="dateIs",t.dateIsNot="dateIsNot",t.dateBefore="dateBefore",t.dateAfter="dateAfter",t}(nn||{}),yr=function(t){return t.text="text",t.numeric="numeric",t.boolean="boolean",t.date="date",t}(yr||{}),ls=function(t){return t.input="input",t.date_picker="date_picker",t.textarea="textarea",t.checkbox="checkbox",t.color_picker="color_picker",t.dropdown="dropdown",t}(ls||{});var cs=(()=>{let i=class i{constructor(n){this.document=n,this.lastSetTheme=void 0}setTheme(n){if(this.lastSetTheme===n)return;this.lastSetTheme=n,console.log(`\u{1F3AD} Theme : ${n}`);let r=this.document.getElementById("idPrimeNgThemeLinkTag");r.href=this.getPathFromThemeName(n)}getPathFromThemeName(n){return n===be.BOOTSTRAP4_LIGHT_BLUE?"assets/themes/bootstrap4-light-blue/theme.css":n===be.BOOTSTRAP4_LIGHT_PURPLE?"assets/themes/bootstrap4-light-purple/theme.css":n===be.BOOTSTRAP4_DARK_BLUE?"assets/themes/bootstrap4-dark-blue/theme.css":n===be.BOOTSTRAP4_DARK_PURPLE?"assets/themes/bootstrap4-dark-purple/theme.css":n===be.MD_LIGHT_INDIGO?"assets/themes/md-light-indigo/theme.css":n===be.MD_LIGHT_DEEPPURPLE?"assets/themes/md-light-deeppurple/theme.css":n===be.MD_DARK_INDIGO?"assets/themes/md-dark-indigo/theme.css":n===be.MD_DARK_DEEPPURPLE?"assets/themes/md-dark-deeppurple/theme.css":n===be.MDC_LIGHT_INDIGO?"assets/themes/mdc-light-indigo/theme.css":n===be.MDC_LIGHT_DEEPPURPLE?"assets/themes/mdc-light-deeppurple/theme.css":n===be.MDC_DARK_INDIGO?"assets/themes/mdc-dark-indigo/theme.css":n===be.MDC_DARK_DEEPPURPLE?"assets/themes/mdc-dark-deeppurple/theme.css":n===be.FLUENT_LIGHT?"assets/themes/fluent-light/theme.css":n===be.LARA_LIGHT_BLUE?"assets/themes/lara-light-blue/theme.css":n===be.LARA_LIGHT_INDIGO?"assets/themes/lara-light-indigo/theme.css":n===be.LARA_LIGHT_PURPLE?"assets/themes/lara-light-purple/theme.css":n===be.LARA_LIGHT_TEAL?"assets/themes/lara-light-teal/theme.css":n===be.LARA_DARK_BLUE?"assets/themes/lara-dark-blue/theme.css":n===be.LARA_DARK_INDIGO?"assets/themes/lara-dark-indigo/theme.css":n===be.LARA_DARK_PURPLE?"assets/themes/lara-dark-purple/theme.css":n===be.LARA_DARK_TEAL?"assets/themes/lara-dark-teal/theme.css":n===be.SOHO_LIGHT?"assets/themes/soho-light/theme.css":n===be.SOHO_DARK?"assets/themes/soho-dark/theme.css":n===be.VIVA_LIGHT?"assets/themes/viva-light/theme.css":n===be.VIVA_DARK?"assets/themes/viva-dark/theme.css":n===be.MIRA?"assets/themes/mira/theme.css":n===be.NANO?"assets/themes/nano/theme.css":n===be.SAGA_BLUE?"assets/themes/saga-blue/theme.css":n===be.SAGA_GREEN?"assets/themes/saga-green/theme.css":n===be.SAGA_ORANGE?"assets/themes/saga-orange/theme.css":n===be.SAGA_PURPLE?"assets/themes/saga-purple/theme.css":n===be.VELA_BLUE?"assets/themes/vela-blue/theme.css":n===be.VELA_GREEN?"assets/themes/vela-green/theme.css":n===be.VELA_ORANGE?"assets/themes/vela-orange/theme.css":n===be.VELA_PURPLE?"assets/themes/vela-purple/theme.css":n===be.ARYA_BLUE?"assets/themes/arya-blue/theme.css":n===be.ARYA_GREEN?"assets/themes/arya-green/theme.css":n===be.ARYA_ORANGE?"assets/themes/arya-orange/theme.css":n===be.ARYA_PURPLE?"assets/themes/arya-purple/theme.css":n===be.NOVA?"assets/themes/nova/theme.css":n===be.NOVA_ALT?"assets/themes/nova-alt/theme.css":n===be.NOVA_ACCENT?"assets/themes/nova-accent/theme.css":n===be.LUNA_AMBER?"assets/themes/luna-amber/theme.css":n===be.LUNA_BLUE?"assets/themes/luna-blue/theme.css":n===be.LUNA_GREEN?"assets/themes/luna-green/theme.css":n===be.LUNA_PINK?"assets/themes/luna-pink/theme.css":n===be.RHEA?"assets/themes/rhea/theme.css":(console.error(`Theme not found with name : '${n}'. Using default theme 'lara-light-blue'.`),console.log("You can provide any theme from below list."),this.printAllThemes(),"assets/themes/lara-light-blue/theme.css")}printAllThemes(){console.log("==== Theme List Start ====");for(let n of Object.values(be))console.log(n);console.log("==== Theme List End ====")}getListOfAllThemes(){let n=[];for(let r of Object.values(be))n.push({name:r});return n}};i.\u0275fac=function(r){return new(r||i)(Y(Se))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var kC={providers:[bC(MC),Uv(),Ep([A1]),_r,gr,cs,Si]};var HC=(()=>{let i=class i{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};i.\u0275fac=function(r){return new(r||i)(x(Be),x(_e))},i.\u0275dir=$e({type:i});let t=i;return t})(),N3=(()=>{let i=class i extends HC{};i.\u0275fac=(()=>{let n;return function(o){return(n||(n=ie(i)))(o||i)}})(),i.\u0275dir=$e({type:i,features:[ne]});let t=i;return t})(),Ft=new he("");var V3={provide:Ft,useExisting:dt(()=>mu),multi:!0};function P3(){let t=vi()?vi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var H3=new he(""),mu=(()=>{let i=class i extends HC{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!P3())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};i.\u0275fac=function(r){return new(r||i)(x(Be),x(_e),x(H3,8))},i.\u0275dir=$e({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&E("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[ht([V3]),ne]});let t=i;return t})();var B3=new he(""),j3=new he("");function BC(t){return t!=null}function jC(t){return qr(t)?gt(t):t}function zC(t){let i={};return t.forEach(e=>{i=e!=null?$($({},i),e):i}),Object.keys(i).length===0?null:i}function UC(t,i){return i.map(e=>e(t))}function z3(t){return!t.validate}function $C(t){return t.map(i=>z3(i)?i:e=>i.validate(e))}function U3(t){if(!t)return null;let i=t.filter(BC);return i.length==0?null:function(e){return zC(UC(e,i))}}function GC(t){return t!=null?U3($C(t)):null}function $3(t){if(!t)return null;let i=t.filter(BC);return i.length==0?null:function(e){let n=UC(e,i).map(jC);return Zu(n).pipe(Ne(zC))}}function WC(t){return t!=null?$3($C(t)):null}function FC(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function G3(t){return t._rawValidators}function W3(t){return t._rawAsyncValidators}function hm(t){return t?Array.isArray(t)?t:[t]:[]}function hu(t,i){return Array.isArray(t)?t.includes(i):t===i}function AC(t,i){let e=hm(i);return hm(t).forEach(r=>{hu(e,r)||e.push(r)}),e}function RC(t,i){return hm(i).filter(e=>!hu(t,e))}var fu=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=GC(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=WC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},fm=class extends fu{get formDirective(){return null}get path(){return null}},Ui=class extends fu{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},mm=class{constructor(i){this._cd=i}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},q3={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},LQ=Le($({},q3),{"[class.ng-submitted]":"isSubmitted"}),$i=(()=>{let i=class i extends mm{constructor(n){super(n)}};i.\u0275fac=function(r){return new(r||i)(x(Ui,2))},i.\u0275dir=$e({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Ot("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ne]});let t=i;return t})();var Ia="VALID",pu="INVALID",us="PENDING",xa="DISABLED";function K3(t){return(gu(t)?t.validators:t)||null}function Q3(t){return Array.isArray(t)?GC(t):t||null}function Z3(t,i){return(gu(i)?i.asyncValidators:t)||null}function Y3(t){return Array.isArray(t)?WC(t):t||null}function gu(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var gm=class{constructor(i,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===Ia}get invalid(){return this.status===pu}get pending(){return this.status==us}get disabled(){return this.status===xa}get enabled(){return this.status!==xa}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(AC(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(AC(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(RC(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(RC(i,this._rawAsyncValidators))}hasValidator(i){return hu(this._rawValidators,i)}hasAsyncValidator(i){return hu(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=us,i.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=xa,this.errors=null,this._forEachChild(n=>{n.disable(Le($({},i),{onlySelf:!0}))}),this._updateValue(),i.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Le($({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=Ia,this._forEachChild(n=>{n.enable(Le($({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Le($({},i),{skipPristineCheck:e})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ia||this.status===us)&&this._runAsyncValidator(i.emitEvent)),i.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?xa:Ia}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=us,this._hasOwnPendingAsyncValidator=!0;let e=jC(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new O,this.statusChanges=new O}_calculateStatus(){return this._allControlsDisabled()?xa:this.errors?pu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(us)?us:this._anyControlsHaveStatus(pu)?pu:Ia}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){gu(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=Q3(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=Y3(this._rawAsyncValidators)}};var _m=new he("CallSetDisabledState",{providedIn:"root",factory:()=>_u}),_u="always";function X3(t,i){return[...i.path,t]}function J3(t,i,e=_u){tk(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),nk(t,i),rk(t,i),ik(t,i),ek(t,i)}function LC(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function ek(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function tk(t,i){let e=G3(t);i.validator!==null?t.setValidators(FC(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=W3(t);i.asyncValidator!==null?t.setAsyncValidators(FC(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();LC(i._rawValidators,r),LC(i._rawAsyncValidators,r)}function nk(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&qC(t,i)})}function ik(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&qC(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function qC(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function rk(t,i){let e=(n,r)=>{i.valueAccessor.writeValue(n),r&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function ok(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function sk(t){return Object.getPrototypeOf(t.constructor)===N3}function ak(t,i){if(!i)return null;Array.isArray(i);let e,n,r;return i.forEach(o=>{o.constructor===mu?e=o:sk(o)?n=o:r=o}),r||n||e||null}function NC(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function VC(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var lk=class extends gm{constructor(i=null,e,n){super(K3(e),Z3(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),gu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(VC(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){NC(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){NC(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){VC(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};var ck={provide:Ui,useExisting:dt(()=>vn)},PC=Promise.resolve(),vn=(()=>{let i=class i extends Ui{constructor(n,r,o,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new lk,this._registered=!1,this.name="",this.update=new O,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=ak(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),ok(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){J3(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){PC.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&T(r);PC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?X3(n,this._parent):[n]}};i.\u0275fac=function(r){return new(r||i)(x(fm,9),x(B3,10),x(j3,10),x(Ft,10),x(ce,8),x(_m,8))},i.\u0275dir=$e({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[C.None,"disabled","isDisabled"],model:[C.None,"ngModel","model"],options:[C.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ht([ck]),ne,$t]});let t=i;return t})();var uk=new he("");var KC=(()=>{let i=class i{};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=te({type:i}),i.\u0275inj=ee({});let t=i;return t})();var ai=(()=>{let i=class i{static withConfig(n){return{ngModule:i,providers:[{provide:_m,useValue:n.callSetDisabledState??_u}]}}};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=te({type:i}),i.\u0275inj=ee({imports:[KC]});let t=i;return t})(),QC=(()=>{let i=class i{static withConfig(n){return{ngModule:i,providers:[{provide:uk,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:_m,useValue:n.callSetDisabledState??_u}]}}};i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=te({type:i}),i.\u0275inj=ee({imports:[KC]});let t=i;return t})();var b=(()=>{class t{static zindex=1e3;static calculatedScrollbarWidth=null;static calculatedScrollbarHeight=null;static browser;static addClass(e,n){e&&n&&(e.classList?e.classList.add(n):e.className+=" "+n)}static addMultipleClasses(e,n){if(e&&n)if(e.classList){let r=n.trim().split(" ");for(let o=0;o<r.length;o++)e.classList.add(r[o])}else{let r=n.split(" ");for(let o=0;o<r.length;o++)e.className+=" "+r[o]}}static removeClass(e,n){e&&n&&(e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," "))}static removeMultipleClasses(e,n){e&&n&&[n].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(o=>this.removeClass(e,o)))}static hasClass(e,n){return e&&n?e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className):!1}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(n){return n!==e})}static find(e,n){return Array.from(e.querySelectorAll(n))}static findSingle(e,n){return this.isElement(e)?e.querySelector(n):null}static index(e){let n=e.parentNode.childNodes,r=0;for(var o=0;o<n.length;o++){if(n[o]==e)return r;n[o].nodeType==1&&r++}return-1}static indexWithinGroup(e,n){let r=e.parentNode?e.parentNode.childNodes:[],o=0;for(var s=0;s<r.length;s++){if(r[s]==e)return o;r[s].attributes&&r[s].attributes[n]&&r[s].nodeType==1&&o++}return-1}static appendOverlay(e,n,r="self"){r!=="self"&&e&&n&&this.appendChild(e,n)}static alignOverlay(e,n,r="self",o=!0){e&&n&&(o&&(e.style.minWidth=`${t.getOuterWidth(n)}px`),r==="self"?this.relativePosition(e,n):this.absolutePosition(e,n))}static relativePosition(e,n){let r=B=>{if(B)return getComputedStyle(B).getPropertyValue("position")==="relative"?B:r(B.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=n.offsetHeight,a=n.getBoundingClientRect(),l=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),h=this.getViewport(),I=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*u},S,M;a.top+s+o.height>h.height?(S=a.top-I.top-o.height,e.style.transformOrigin="bottom",a.top+S<0&&(S=-1*a.top)):(S=s+a.top-I.top,e.style.transformOrigin="top");let A=a.left+o.width-h.width,V=a.left-I.left;o.width>h.width?M=(a.left-I.left)*-1:A>0?M=V-A:M=a.left-I.left,e.style.top=S+"px",e.style.left=M+"px"}static absolutePosition(e,n){let r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=n.offsetHeight,l=n.offsetWidth,u=n.getBoundingClientRect(),h=this.getWindowScrollTop(),_=this.getWindowScrollLeft(),I=this.getViewport(),S,M;u.top+a+o>I.height?(S=u.top+h-o,e.style.transformOrigin="bottom",S<0&&(S=h)):(S=a+u.top+h,e.style.transformOrigin="top"),u.left+s>I.width?M=Math.max(0,u.left+_+l-s):M=u.left+_,e.style.top=S+"px",e.style.left=M+"px"}static getParents(e,n=[]){return e.parentNode===null?n:this.getParents(e.parentNode,n.concat([e.parentNode]))}static getScrollableParents(e){let n=[];if(e){let r=this.getParents(e),o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=a.nodeType===1&&a.dataset.scrollselectors;if(l){let u=l.split(",");for(let h of u){let _=this.findSingle(a,h);_&&s(_)&&n.push(_)}}a.nodeType!==9&&s(a)&&n.push(a)}}return n}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}static getHiddenElementDimensions(e){let n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}static scrollInView(e,n){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),h=n.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,_=e.scrollTop,I=e.clientHeight,S=this.getOuterHeight(n);h<0?e.scrollTop=_+h:h+S>I&&(e.scrollTop=_+h-I+S)}static fadeIn(e,n){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+(new Date().getTime()-r)/n,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,n){var r=1,o=50,s=n,a=o/s;let l=setInterval(()=>{r=r-a,r<=0&&(r=0,clearInterval(l)),e.style.opacity=r},o)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,n){var r=Element.prototype,o=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return[].indexOf.call(document.querySelectorAll(s),this)!==-1};return o.call(e,n)}static getOuterWidth(e,n){let r=e.offsetWidth;if(n){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let n=getComputedStyle(e);return parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)}static getHorizontalMargin(e){let n=getComputedStyle(e);return parseFloat(n.marginLeft)+parseFloat(n.marginRight)}static innerWidth(e){let n=e.offsetWidth,r=getComputedStyle(e);return n+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}static width(e){let n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}static getInnerHeight(e){let n=e.offsetHeight,r=getComputedStyle(e);return n+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),n}static getOuterHeight(e,n){let r=e.offsetHeight;if(n){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let n=e.offsetHeight,r=getComputedStyle(e);return n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),n}static getWidth(e){let n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),n}static getViewport(){let e=window,n=document,r=n.documentElement,o=n.getElementsByTagName("body")[0],s=e.innerWidth||r.clientWidth||o.clientWidth,a=e.innerHeight||r.clientHeight||o.clientHeight;return{width:s,height:a}}static getOffset(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,n){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(n,e)}static getUserAgent(){if(navigator&&this.isClient())return navigator.userAgent}static isIE(){var e=window.navigator.userAgent,n=e.indexOf("MSIE ");if(n>0)return!0;var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return!0}var s=e.indexOf("Edge/");return s>0}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,n){if(this.isElement(n))n.appendChild(e);else if(n&&n.el&&n.el.nativeElement)n.el.nativeElement.appendChild(e);else throw"Cannot append "+n+" to "+e}static removeChild(e,n){if(this.isElement(n))n.removeChild(e);else if(n.el&&n.el.nativeElement)n.el.nativeElement.removeChild(e);else throw"Cannot remove "+e+" from "+n}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return typeof HTMLElement=="object"?e instanceof HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"}static calculateScrollbarWidth(e){if(e){let n=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}else{if(this.calculatedScrollbarWidth!==null)return this.calculatedScrollbarWidth;let n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);let r=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(this.calculatedScrollbarHeight!==null)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n}static invokeElementMethod(e,n,r){e[n].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||e.offsetParent===null}static isVisible(e){return e&&e.offsetParent!=null}static isExist(e){return e!==null&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,n){e&&document.activeElement!==e&&e.focus(n)}static getFocusableSelectorString(e=""){return`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
9
+ [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
10
+ input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
11
+ select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
12
+ textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
13
+ [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
14
+ [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
15
+ .p-inputtext:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
16
+ .p-button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`}static getFocusableElements(e,n=""){let r=this.find(e,this.getFocusableSelectorString(n)),o=[];for(let s of r){let a=getComputedStyle(s);this.isVisible(s)&&a.display!="none"&&a.visibility!="hidden"&&o.push(s)}return o}static getFocusableElement(e,n=""){let r=this.findSingle(e,this.getFocusableSelectorString(n));if(r){let o=getComputedStyle(r);if(this.isVisible(r)&&o.display!="none"&&o.visibility!="hidden")return r}return null}static getFirstFocusableElement(e,n){let r=this.getFocusableElements(e,n);return r.length>0?r[0]:null}static getLastFocusableElement(e,n){let r=this.getFocusableElements(e,n);return r.length>0?r[r.length-1]:null}static getNextFocusableElement(e,n=!1){let r=t.getFocusableElements(e),o=0;if(r&&r.length>0){let s=r.indexOf(r[0].ownerDocument.activeElement);n?s==-1||s===0?o=r.length-1:o=s-1:s!=-1&&s!==r.length-1&&(o=s+1)}return r[o]}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,n){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return n?.nextElementSibling;case"@prev":return n?.previousElementSibling;case"@parent":return n?.parentElement;case"@grandparent":return n?.parentElement.parentElement;default:let r=typeof e;if(r==="string")return document.querySelector(e);if(r==="object"&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;let s=(a=>!!(a&&a.constructor&&a.call&&a.apply))(e)?e():e;return s&&s.nodeType===9||this.isExist(s)?s:null}}static isClient(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}static getAttribute(e,n){if(e){let r=e.getAttribute(n);return isNaN(r)?r==="true"||r==="false"?r==="true":r:+r}}static calculateBodyScrollbarWidth(){return window.innerWidth-document.documentElement.offsetWidth}static blockBodyScroll(e="p-overflow-hidden"){document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)}static unblockBodyScroll(e="p-overflow-hidden"){document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}}return t})(),Cn=class{element;listener;scrollableParents;constructor(i,e=()=>{}){this.element=i,this.listener=e}bindScrollListener(){this.scrollableParents=b.getScrollableParents(this.element);for(let i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let i=0;i<this.scrollableParents.length;i++)this.scrollableParents[i].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}};var jt=(()=>{class t{host;constructor(e){this.host=e}autofocus=!1;focused=!1;ngAfterContentChecked(){this.autofocus===!1?this.host.nativeElement.removeAttribute("autofocus"):this.host.nativeElement.setAttribute("autofocus",!0),this.focused||this.autofocus&&setTimeout(()=>{let e=b.getFocusableElements(this.host.nativeElement);e.length===0&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0})}static \u0275fac=function(n){return new(n||t)(x(_e))};static \u0275dir=$e({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T]},features:[fe]})}return t})(),St=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue]})}return t})();var dk=["*"],de=(()=>{class t{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){this.getAttributes()}getAttributes(){let e=k.isEmpty(this.label);this.role=e?void 0:"img",this.ariaLabel=e?void 0:this.label,this.ariaHidden=e}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],hostAttrs:[1,"p-element","p-icon-wrapper"],inputs:{label:"label",spin:[C.HasDecoratorInputTransform,"spin","spin",T],styleClass:"styleClass"},standalone:!0,features:[fe,J],ngContentSelectors:dk,decls:1,vars:0,template:function(n,r){n&1&&(Gt(),xt(0))},encapsulation:2,changeDetection:0})}return t})();var Un=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["SpinnerIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Dt=(()=>{class t{document;platformId;renderer;el;zone;config;constructor(e,n,r,o,s,a){this.document=e,this.platformId=n,this.renderer=r,this.el=o,this.zone=s,this.config=a}animationListener;mouseDownListener;timeout;ngAfterViewInit(){bt(this.platformId)&&this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.renderer.listen(this.el.nativeElement,"mousedown",this.onMouseDown.bind(this))})}onMouseDown(e){let n=this.getInk();if(!n||this.document.defaultView?.getComputedStyle(n,null).display==="none")return;if(b.removeClass(n,"p-ink-active"),!b.getHeight(n)&&!b.getWidth(n)){let a=Math.max(b.getOuterWidth(this.el.nativeElement),b.getOuterHeight(this.el.nativeElement));n.style.height=a+"px",n.style.width=a+"px"}let r=b.getOffset(this.el.nativeElement),o=e.pageX-r.left+this.document.body.scrollTop-b.getWidth(n)/2,s=e.pageY-r.top+this.document.body.scrollLeft-b.getHeight(n)/2;this.renderer.setStyle(n,"top",s+"px"),this.renderer.setStyle(n,"left",o+"px"),b.addClass(n,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&b.removeClass(a,"p-ink-active")},401)}getInk(){let e=this.el.nativeElement.children;for(let n=0;n<e.length;n++)if(typeof e[n].className=="string"&&e[n].className.indexOf("p-ink")!==-1)return e[n];return null}resetInk(){let e=this.getInk();e&&b.removeClass(e,"p-ink-active")}onAnimationEnd(e){this.timeout&&clearTimeout(this.timeout),b.removeClass(e.currentTarget,"p-ink-active")}create(){let e=this.renderer.createElement("span");this.renderer.addClass(e,"p-ink"),this.renderer.appendChild(this.el.nativeElement,e),this.renderer.setAttribute(e,"aria-hidden","true"),this.renderer.setAttribute(e,"role","presentation"),this.animationListener||(this.animationListener=this.renderer.listen(e,"animationend",this.onAnimationEnd.bind(this)))}remove(){let e=this.getInk();e&&(this.mouseDownListener&&this.mouseDownListener(),this.animationListener&&this.animationListener(),this.mouseDownListener=null,this.animationListener=null,b.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}static \u0275fac=function(n){return new(n||t)(x(Se),x(pt),x(Be),x(_e),x(ge),x(ot,8))};static \u0275dir=$e({type:t,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]})}return t})(),At=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue]})}return t})();var pk=["*"];function hk(t,i){t&1&&H(0)}function fk(t,i){if(t&1&&D(0,"span",8),t&2){let e=d(3);R("p-button-loading-icon pi-spin "+e.loadingIcon),c("ngClass",e.iconClass()),w("aria-hidden",!0)("data-pc-section","loadingicon")}}function mk(t,i){if(t&1&&D(0,"SpinnerIcon",9),t&2){let e=d(3);c("styleClass",e.spinnerIconClass())("spin",!0),w("aria-hidden",!0)("data-pc-section","loadingicon")}}function gk(t,i){if(t&1&&(L(0),f(1,fk,1,5,"span",6)(2,mk,1,4,"SpinnerIcon",7),N()),t&2){let e=d(2);p(),c("ngIf",e.loadingIcon),p(),c("ngIf",!e.loadingIcon)}}function _k(t,i){}function yk(t,i){t&1&&f(0,_k,0,0,"ng-template")}function vk(t,i){if(t&1&&(m(0,"span",10),f(1,yk,1,0,null,1),g()),t&2){let e=d(2);c("ngClass",e.iconClass()),w("aria-hidden",!0)("data-pc-section","loadingicon"),p(),c("ngTemplateOutlet",e.loadingIconTemplate)}}function Ck(t,i){if(t&1&&(L(0),f(1,gk,3,2,"ng-container",2)(2,vk,2,4,"span",5),N()),t&2){let e=d();p(),c("ngIf",!e.loadingIconTemplate),p(),c("ngIf",e.loadingIconTemplate)}}function bk(t,i){if(t&1&&D(0,"span",8),t&2){let e=d(2);R(e.icon),c("ngClass",e.iconClass()),w("data-pc-section","icon")}}function wk(t,i){}function Ik(t,i){if(t&1&&f(0,wk,0,0,"ng-template",12),t&2){let e=d(3);c("ngIf",!e.icon)}}function xk(t,i){if(t&1&&(m(0,"span",8),f(1,Ik,1,1,null,1),g()),t&2){let e=d(2);c("ngClass",e.iconClass()),w("data-pc-section","icon"),p(),c("ngTemplateOutlet",e.iconTemplate)}}function Tk(t,i){if(t&1&&(L(0),f(1,bk,1,4,"span",6)(2,xk,2,3,"span",11),N()),t&2){let e=d();p(),c("ngIf",e.icon&&!e.iconTemplate),p(),c("ngIf",!e.icon&&e.iconTemplate)}}function Sk(t,i){if(t&1&&(m(0,"span",13),K(1),g()),t&2){let e=d();w("aria-hidden",e.icon&&!e.label)("data-pc-section","label"),p(),se(e.label)}}function Dk(t,i){if(t&1&&(m(0,"span",8),K(1),g()),t&2){let e=d();R(e.badgeClass),c("ngClass",e.badgeStyleClass()),w("data-pc-section","badge"),p(),se(e.badge)}}var vr={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"},bn=(()=>{class t{el;document;iconPos="left";loadingIcon;get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}severity;raised=!1;rounded=!1;text=!1;outlined=!1;size=null;plain=!1;_label;_icon;_loading=!1;initialized;get htmlElement(){return this.el.nativeElement}_internalClasses=Object.values(vr);spinnerIcon=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" class="p-icon-spin">
17
+ <g clip-path="url(#clip0_417_21408)">
18
+ <path
19
+ d="M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z"
20
+ fill="currentColor"
21
+ />
22
+ </g>
23
+ <defs>
24
+ <clipPath id="clip0_417_21408">
25
+ <rect width="14" height="14" fill="white" />
26
+ </clipPath>
27
+ </defs>
28
+ </svg>`;constructor(e,n){this.el=e,this.document=n}ngAfterViewInit(){b.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let e=[vr.button,vr.component];return this.icon&&!this.label&&k.isEmpty(this.htmlElement.textContent)&&e.push(vr.iconOnly),this.loading&&(e.push(vr.disabled,vr.loading),!this.icon&&this.label&&e.push(vr.labelOnly),this.icon&&!this.label&&!k.isEmpty(this.htmlElement.textContent)&&e.push(vr.iconOnly)),this.text&&e.push("p-button-text"),this.severity&&e.push(`p-button-${this.severity}`),this.plain&&e.push("p-button-plain"),this.raised&&e.push("p-button-raised"),this.size&&e.push(`p-button-${this.size}`),this.outlined&&e.push("p-button-outlined"),this.rounded&&e.push("p-button-rounded"),this.size==="small"&&e.push("p-button-sm"),this.size==="large"&&e.push("p-button-lg"),e}setStyleClass(){let e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}createLabel(){if(!b.findSingle(this.htmlElement,".p-button-label")&&this.label){let n=this.document.createElement("span");this.icon&&!this.label&&n.setAttribute("aria-hidden","true"),n.className="p-button-label",n.appendChild(this.document.createTextNode(this.label)),this.htmlElement.appendChild(n)}}createIcon(){if(!b.findSingle(this.htmlElement,".p-button-icon")&&(this.icon||this.loading)){let n=this.document.createElement("span");n.className="p-button-icon",n.setAttribute("aria-hidden","true");let r=this.label?"p-button-icon-"+this.iconPos:null;r&&b.addClass(n,r);let o=this.getIconClass();o&&b.addMultipleClasses(n,o),!this.loadingIcon&&this.loading&&(n.innerHTML=this.spinnerIcon),this.htmlElement.insertBefore(n,this.htmlElement.firstChild)}}updateLabel(){let e=b.findSingle(this.htmlElement,".p-button-label");if(!this.label){e&&this.htmlElement.removeChild(e);return}e?e.textContent=this.label:this.createLabel()}updateIcon(){let e=b.findSingle(this.htmlElement,".p-button-icon"),n=b.findSingle(this.htmlElement,".p-button-label");this.loading&&!this.loadingIcon&&e?e.innerHTML=this.spinnerIcon:e?.innerHTML&&(e.innerHTML=""),e?this.iconPos?e.className="p-button-icon "+(n?"p-button-icon-"+this.iconPos:"")+" "+this.getIconClass():e.className="p-button-icon "+this.getIconClass():this.createIcon()}getIconClass(){return this.loading?"p-button-loading-icon "+(this.loadingIcon?this.loadingIcon:"p-icon"):this.icon||"p-hidden"}ngOnDestroy(){this.initialized=!1}static \u0275fac=function(n){return new(n||t)(x(_e),x(Se))};static \u0275dir=$e({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading",severity:"severity",raised:[C.HasDecoratorInputTransform,"raised","raised",T],rounded:[C.HasDecoratorInputTransform,"rounded","rounded",T],text:[C.HasDecoratorInputTransform,"text","text",T],outlined:[C.HasDecoratorInputTransform,"outlined","outlined",T],size:"size",plain:[C.HasDecoratorInputTransform,"plain","plain",T]},features:[fe]})}return t})(),yu=(()=>{class t{el;type="button";iconPos="left";icon;badge;label;disabled;loading=!1;loadingIcon;raised=!1;rounded=!1;text=!1;plain=!1;severity;outlined=!1;link=!1;tabindex;size;style;styleClass;badgeClass;ariaLabel;autofocus;onClick=new O;onFocus=new O;onBlur=new O;contentTemplate;loadingIconTemplate;iconTemplate;templates;constructor(e){this.el=e}spinnerIconClass(){return Object.entries(this.iconClass()).filter(([,e])=>!!e).reduce((e,[n])=>e+` ${n}`,"p-button-loading-icon")}iconClass(){return{"p-button-icon":!0,"p-button-icon-left":this.iconPos==="left"&&this.label,"p-button-icon-right":this.iconPos==="right"&&this.label,"p-button-icon-top":this.iconPos==="top"&&this.label,"p-button-icon-bottom":this.iconPos==="bottom"&&this.label}}get buttonClass(){return{"p-button p-component":!0,"p-button-icon-only":(this.icon||this.iconTemplate||this.loadingIcon||this.loadingIconTemplate)&&!this.label,"p-button-vertical":(this.iconPos==="top"||this.iconPos==="bottom")&&this.label,"p-disabled":this.disabled||this.loading,"p-button-loading":this.loading,"p-button-loading-label-only":this.loading&&!this.icon&&this.label&&!this.loadingIcon&&this.iconPos==="left","p-button-link":this.link,[`p-button-${this.severity}`]:this.severity,"p-button-raised":this.raised,"p-button-rounded":this.rounded,"p-button-text":this.text,"p-button-outlined":this.outlined,"p-button-sm":this.size==="small","p-button-lg":this.size==="large","p-button-plain":this.plain,[`${this.styleClass}`]:this.styleClass}}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"icon":this.iconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&String(this.badge).length===1}}static \u0275fac=function(n){return new(n||t)(x(_e))};static \u0275cmp=P({type:t,selectors:[["p-button"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},hostAttrs:[1,"p-element"],hostVars:2,hostBindings:function(n,r){n&2&&Ot("p-disabled",r.disabled)},inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],loading:[C.HasDecoratorInputTransform,"loading","loading",T],loadingIcon:"loadingIcon",raised:[C.HasDecoratorInputTransform,"raised","raised",T],rounded:[C.HasDecoratorInputTransform,"rounded","rounded",T],text:[C.HasDecoratorInputTransform,"text","text",T],plain:[C.HasDecoratorInputTransform,"plain","plain",T],severity:"severity",outlined:[C.HasDecoratorInputTransform,"outlined","outlined",T],link:[C.HasDecoratorInputTransform,"link","link",T],tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q],size:"size",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel",autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T]},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[fe],ngContentSelectors:pk,decls:7,vars:14,consts:[["pRipple","","pAutoFocus","",3,"click","focus","blur","ngStyle","disabled","ngClass","autofocus"],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],["class","p-button-loading-icon",3,"ngClass",4,"ngIf"],[3,"class","ngClass",4,"ngIf"],[3,"styleClass","spin",4,"ngIf"],[3,"ngClass"],[3,"styleClass","spin"],[1,"p-button-loading-icon",3,"ngClass"],[3,"ngClass",4,"ngIf"],[3,"ngIf"],[1,"p-button-label"]],template:function(n,r){n&1&&(Gt(),m(0,"button",0),E("click",function(s){return r.onClick.emit(s)})("focus",function(s){return r.onFocus.emit(s)})("blur",function(s){return r.onBlur.emit(s)}),xt(1),f(2,hk,1,0,"ng-container",1)(3,Ck,3,2,"ng-container",2)(4,Tk,3,2,"ng-container",2)(5,Sk,2,3,"span",3)(6,Dk,2,5,"span",4),g()),n&2&&(c("ngStyle",r.style)("disabled",r.disabled||r.loading)("ngClass",r.buttonClass)("autofocus",r.autofocus),w("type",r.type)("aria-label",r.ariaLabel)("data-pc-name","button")("data-pc-section","root")("tabindex",r.tabindex),p(2),c("ngTemplateOutlet",r.contentTemplate),p(),c("ngIf",r.loading),p(),c("ngIf",!r.loading),p(),c("ngIf",!r.contentTemplate&&r.label),p(),c("ngIf",!r.contentTemplate&&r.badge))},dependencies:()=>[Oe,Ce,Ae,je,Dt,jt,Un],encapsulation:2,changeDetection:0})}return t})(),Yt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,At,ke,St,Un,ke]})}return t})();var ym=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["ChevronLeftIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var vm=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["ChevronRightIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var Cm=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["ChevronUpIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var $n=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["ChevronDownIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var mt=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["TimesIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var bm=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["CalendarIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var Ek=["container"],Mk=["inputfield"],Ok=["contentWrapper"],kk=[[["p-header"]],[["p-footer"]]],Fk=["p-header","p-footer"],Ak=(t,i,e,n,r)=>({"p-calendar":!0,"p-input-icon-right":t,"p-calendar-w-btn":i,"p-calendar-timeonly":e,"p-calendar-disabled":n,"p-focus":r}),Rk=t=>({clickCallBack:t}),Lk=t=>({"p-datepicker-icon":t}),Nk=(t,i,e,n,r,o)=>({"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":i,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":n,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":o}),ZC=(t,i)=>({showTransitionParams:t,hideTransitionParams:i}),Vk=t=>({value:"visibleTouchUI",params:t}),Pk=t=>({value:"visible",params:t}),wm=t=>({$implicit:t}),Hk=(t,i)=>({"p-datepicker-other-month":t,"p-datepicker-today":i}),Im=(t,i)=>({"p-highlight":t,"p-disabled":i}),YC=t=>[t];function Bk(t,i){if(t&1){let e=F();m(0,"TimesIcon",11),E("click",function(){y(e);let r=d(3);return v(r.clear())}),g()}t&2&&c("styleClass","p-calendar-clear-icon")}function jk(t,i){}function zk(t,i){t&1&&f(0,jk,0,0,"ng-template")}function Uk(t,i){if(t&1){let e=F();m(0,"span",12),E("click",function(){y(e);let r=d(3);return v(r.clear())}),f(1,zk,1,0,null,13),g()}if(t&2){let e=d(3);p(),c("ngTemplateOutlet",e.clearIconTemplate)}}function $k(t,i){if(t&1&&(L(0),f(1,Bk,1,1,"TimesIcon",9)(2,Uk,2,1,"span",10),N()),t&2){let e=d(2);p(),c("ngIf",!e.clearIconTemplate),p(),c("ngIf",e.clearIconTemplate)}}function Gk(t,i){if(t&1&&D(0,"span",16),t&2){let e=d(3);c("ngClass",e.icon)}}function Wk(t,i){t&1&&D(0,"CalendarIcon")}function qk(t,i){}function Kk(t,i){t&1&&f(0,qk,0,0,"ng-template")}function Qk(t,i){if(t&1&&(L(0),f(1,Wk,1,0,"CalendarIcon",7)(2,Kk,1,0,null,13),N()),t&2){let e=d(3);p(),c("ngIf",!e.triggerIconTemplate),p(),c("ngTemplateOutlet",e.triggerIconTemplate)}}function Zk(t,i){if(t&1){let e=F();m(0,"button",14),E("click",function(r){y(e),d();let o=Ee(1),s=d();return v(s.onButtonClick(r,o))}),f(1,Gk,1,1,"span",15)(2,Qk,3,2,"ng-container",7),g()}if(t&2){let e,n=d(2);c("disabled",n.disabled),w("aria-label",n.iconButtonAriaLabel)("aria-expanded",(e=n.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",n.overlayVisible?n.panelId:null),p(),c("ngIf",n.icon),p(),c("ngIf",!n.icon)}}function Yk(t,i){if(t&1){let e=F();m(0,"CalendarIcon",19),E("click",function(r){y(e);let o=d(3);return v(o.onButtonClick(r))}),g()}if(t&2){let e=d(3);c("ngClass",U(1,Lk,e.showOnFocus))}}function Xk(t,i){t&1&&H(0)}function Jk(t,i){if(t&1&&(L(0),f(1,Yk,1,3,"CalendarIcon",17)(2,Xk,1,0,"ng-container",18),N()),t&2){let e=d(2);p(),c("ngIf",!e.inputIconTemplate),p(),c("ngTemplateOutlet",e.inputIconTemplate)("ngTemplateOutletContext",U(3,Rk,e.onButtonClick.bind(e)))}}function eF(t,i){if(t&1){let e=F();m(0,"input",6,1),E("focus",function(r){y(e);let o=d();return v(o.onInputFocus(r))})("keydown",function(r){y(e);let o=d();return v(o.onInputKeydown(r))})("click",function(){y(e);let r=d();return v(r.onInputClick())})("blur",function(r){y(e);let o=d();return v(o.onInputBlur(r))})("input",function(r){y(e);let o=d();return v(o.onUserInput(r))}),g(),f(2,$k,3,2,"ng-container",7)(3,Zk,3,6,"button",8)(4,Jk,3,5,"ng-container",7)}if(t&2){let e,n=d();R(n.inputStyleClass),c("value",n.inputFieldValue)("readonly",n.readonlyInput)("ngStyle",n.inputStyle)("placeholder",n.placeholder||"")("disabled",n.disabled)("ngClass","p-inputtext p-component")("autofocus",n.autofocus),w("id",n.inputId)("name",n.name)("required",n.required)("aria-required",n.required)("aria-expanded",(e=n.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",n.overlayVisible?n.panelId:null)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("tabindex",n.tabindex)("inputmode",n.touchUI?"off":null),p(2),c("ngIf",n.showClear&&!n.disabled&&n.value!=null),p(),c("ngIf",n.showIcon&&n.iconDisplay==="button"),p(),c("ngIf",n.iconDisplay==="input"&&n.showIcon)}}function tF(t,i){t&1&&H(0)}function nF(t,i){t&1&&D(0,"ChevronLeftIcon",40),t&2&&c("styleClass","p-datepicker-prev-icon")}function iF(t,i){}function rF(t,i){t&1&&f(0,iF,0,0,"ng-template")}function oF(t,i){if(t&1&&(m(0,"span",41),f(1,rF,1,0,null,13),g()),t&2){let e=d(5);p(),c("ngTemplateOutlet",e.previousIconTemplate)}}function sF(t,i){if(t&1){let e=F();m(0,"button",38),E("keydown",function(r){y(e);let o=d(4);return v(o.onContainerButtonKeydown(r))})("click",function(r){y(e);let o=d(4);return v(o.onPrevButtonClick(r))}),f(1,nF,1,1,"ChevronLeftIcon",35)(2,oF,2,1,"span",39),g()}if(t&2){let e=d(4);w("aria-label",e.prevIconAriaLabel),p(),c("ngIf",!e.previousIconTemplate),p(),c("ngIf",e.previousIconTemplate)}}function aF(t,i){if(t&1){let e=F();m(0,"button",42),E("click",function(r){y(e);let o=d(4);return v(o.switchToMonthView(r))})("keydown",function(r){y(e);let o=d(4);return v(o.onContainerButtonKeydown(r))}),K(1),g()}if(t&2){let e=d().$implicit,n=d(3);c("disabled",n.switchViewButtonDisabled()),w("aria-label",n.getTranslation("chooseMonth")),p(),yt(" ",n.getMonthName(e.month)," ")}}function lF(t,i){if(t&1){let e=F();m(0,"button",43),E("click",function(r){y(e);let o=d(4);return v(o.switchToYearView(r))})("keydown",function(r){y(e);let o=d(4);return v(o.onContainerButtonKeydown(r))}),K(1),g()}if(t&2){let e=d().$implicit,n=d(3);c("disabled",n.switchViewButtonDisabled()),w("aria-label",n.getTranslation("chooseYear")),p(),yt(" ",n.getYear(e)," ")}}function cF(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(5);p(),mh("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function uF(t,i){t&1&&H(0)}function dF(t,i){if(t&1&&(m(0,"span",44),f(1,cF,2,2,"ng-container",7)(2,uF,1,0,"ng-container",18),g()),t&2){let e=d(4);p(),c("ngIf",!e.decadeTemplate),p(),c("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",U(3,wm,e.yearPickerValues))}}function pF(t,i){t&1&&D(0,"ChevronRightIcon",40),t&2&&c("styleClass","p-datepicker-next-icon")}function hF(t,i){}function fF(t,i){t&1&&f(0,hF,0,0,"ng-template")}function mF(t,i){if(t&1&&(m(0,"span",45),f(1,fF,1,0,null,13),g()),t&2){let e=d(4);p(),c("ngTemplateOutlet",e.nextIconTemplate)}}function gF(t,i){if(t&1&&(m(0,"th",51)(1,"span"),K(2),g()()),t&2){let e=d(5);p(2),se(e.getTranslation("weekHeader"))}}function _F(t,i){if(t&1&&(m(0,"th",52)(1,"span"),K(2),g()()),t&2){let e=i.$implicit;p(2),se(e)}}function yF(t,i){if(t&1&&(m(0,"td",55)(1,"span",56),K(2),g()()),t&2){let e=d().index,n=d(2).$implicit;p(2),yt(" ",n.weekNumbers[e]," ")}}function vF(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(2).$implicit;p(),se(e.day)}}function CF(t,i){t&1&&H(0)}function bF(t,i){if(t&1&&(L(0),f(1,CF,1,0,"ng-container",18),N()),t&2){let e=d(2).$implicit,n=d(6);p(),c("ngTemplateOutlet",n.dateTemplate)("ngTemplateOutletContext",U(2,wm,e))}}function wF(t,i){t&1&&H(0)}function IF(t,i){if(t&1&&(L(0),f(1,wF,1,0,"ng-container",18),N()),t&2){let e=d(2).$implicit,n=d(6);p(),c("ngTemplateOutlet",n.disabledDateTemplate)("ngTemplateOutletContext",U(2,wm,e))}}function xF(t,i){if(t&1&&(m(0,"div",59),K(1),g()),t&2){let e=d(2).$implicit;p(),yt(" ",e.day," ")}}function TF(t,i){if(t&1){let e=F();L(0),m(1,"span",57),E("click",function(r){y(e);let o=d().$implicit,s=d(6);return v(s.onDateSelect(r,o))})("keydown",function(r){y(e);let o=d().$implicit,s=d(3).index,a=d(3);return v(a.onDateCellKeydown(r,o,s))}),f(2,vF,2,1,"ng-container",7)(3,bF,2,4,"ng-container",7)(4,IF,2,4,"ng-container",7),g(),f(5,xF,2,1,"div",58),N()}if(t&2){let e=d().$implicit,n=d(6);p(),c("ngClass",we(5,Im,n.isSelected(e)&&e.selectable,!e.selectable)),p(),c("ngIf",!n.dateTemplate&&(e.selectable||!n.disabledDateTemplate)),p(),c("ngIf",e.selectable||!n.disabledDateTemplate),p(),c("ngIf",!e.selectable),p(),c("ngIf",n.isSelected(e))}}function SF(t,i){if(t&1&&(m(0,"td",16),f(1,TF,6,8,"ng-container",7),g()),t&2){let e=i.$implicit,n=d(6);c("ngClass",we(3,Hk,e.otherMonth,e.today)),w("aria-label",e.day),p(),c("ngIf",e.otherMonth?n.showOtherMonths:!0)}}function DF(t,i){if(t&1&&(m(0,"tr"),f(1,yF,3,1,"td",53)(2,SF,2,6,"td",54),g()),t&2){let e=i.$implicit,n=d(5);p(),c("ngIf",n.showWeek),p(),c("ngForOf",e)}}function EF(t,i){if(t&1&&(m(0,"div",46)(1,"table",47)(2,"thead")(3,"tr"),f(4,gF,3,1,"th",48)(5,_F,3,1,"th",49),g()(),m(6,"tbody"),f(7,DF,3,2,"tr",50),g()()()),t&2){let e=d().$implicit,n=d(3);p(4),c("ngIf",n.showWeek),p(),c("ngForOf",n.weekDays),p(2),c("ngForOf",e.dates)}}function MF(t,i){if(t&1){let e=F();m(0,"div",27)(1,"div",28),f(2,sF,3,3,"button",29),m(3,"div",30),f(4,aF,2,3,"button",31)(5,lF,2,3,"button",32)(6,dF,3,5,"span",33),g(),m(7,"button",34),E("keydown",function(r){y(e);let o=d(3);return v(o.onContainerButtonKeydown(r))})("click",function(r){y(e);let o=d(3);return v(o.onNextButtonClick(r))}),f(8,pF,1,1,"ChevronRightIcon",35)(9,mF,2,1,"span",36),g()(),f(10,EF,8,3,"div",37),g()}if(t&2){let e=i.index,n=d(3);p(2),c("ngIf",e===0),p(2),c("ngIf",n.currentView==="date"),p(),c("ngIf",n.currentView!=="year"),p(),c("ngIf",n.currentView==="year"),p(),On("display",n.numberOfMonths===1||e===n.numberOfMonths-1?"inline-flex":"none"),w("aria-label",n.nextIconAriaLabel),p(),c("ngIf",!n.nextIconTemplate),p(),c("ngIf",n.nextIconTemplate),p(),c("ngIf",n.currentView==="date")}}function OF(t,i){if(t&1&&(m(0,"div",59),K(1),g()),t&2){let e=d().$implicit;p(),yt(" ",e," ")}}function kF(t,i){if(t&1){let e=F();m(0,"span",62),E("click",function(r){let o=y(e).index,s=d(4);return v(s.onMonthSelect(r,o))})("keydown",function(r){let o=y(e).index,s=d(4);return v(s.onMonthCellKeydown(r,o))}),K(1),f(2,OF,2,1,"div",58),g()}if(t&2){let e=i.$implicit,n=i.index,r=d(4);c("ngClass",we(3,Im,r.isMonthSelected(n),r.isMonthDisabled(n))),p(),yt(" ",e," "),p(),c("ngIf",r.isMonthSelected(n))}}function FF(t,i){if(t&1&&(m(0,"div",60),f(1,kF,3,6,"span",61),g()),t&2){let e=d(3);p(),c("ngForOf",e.monthPickerValues())}}function AF(t,i){if(t&1&&(m(0,"div",59),K(1),g()),t&2){let e=d().$implicit;p(),yt(" ",e," ")}}function RF(t,i){if(t&1){let e=F();m(0,"span",65),E("click",function(r){let o=y(e).$implicit,s=d(4);return v(s.onYearSelect(r,o))})("keydown",function(r){let o=y(e).$implicit,s=d(4);return v(s.onYearCellKeydown(r,o))}),K(1),f(2,AF,2,1,"div",58),g()}if(t&2){let e=i.$implicit,n=d(4);c("ngClass",we(3,Im,n.isYearSelected(e),n.isYearDisabled(e))),p(),yt(" ",e," "),p(),c("ngIf",n.isYearSelected(e))}}function LF(t,i){if(t&1&&(m(0,"div",63),f(1,RF,3,6,"span",64),g()),t&2){let e=d(3);p(),c("ngForOf",e.yearPickerValues())}}function NF(t,i){if(t&1&&(L(0),m(1,"div",23),f(2,MF,11,10,"div",24),g(),f(3,FF,2,1,"div",25)(4,LF,2,1,"div",26),N()),t&2){let e=d(2);p(2),c("ngForOf",e.months),p(),c("ngIf",e.currentView==="month"),p(),c("ngIf",e.currentView==="year")}}function VF(t,i){t&1&&D(0,"ChevronUpIcon")}function PF(t,i){}function HF(t,i){t&1&&f(0,PF,0,0,"ng-template")}function BF(t,i){t&1&&(L(0),K(1,"0"),N())}function jF(t,i){t&1&&D(0,"ChevronDownIcon")}function zF(t,i){}function UF(t,i){t&1&&f(0,zF,0,0,"ng-template")}function $F(t,i){t&1&&D(0,"ChevronUpIcon")}function GF(t,i){}function WF(t,i){t&1&&f(0,GF,0,0,"ng-template")}function qF(t,i){t&1&&(L(0),K(1,"0"),N())}function KF(t,i){t&1&&D(0,"ChevronDownIcon")}function QF(t,i){}function ZF(t,i){t&1&&f(0,QF,0,0,"ng-template")}function YF(t,i){if(t&1&&(m(0,"div",69)(1,"span"),K(2),g()()),t&2){let e=d(3);p(2),se(e.timeSeparator)}}function XF(t,i){t&1&&D(0,"ChevronUpIcon")}function JF(t,i){}function eA(t,i){t&1&&f(0,JF,0,0,"ng-template")}function tA(t,i){t&1&&(L(0),K(1,"0"),N())}function nA(t,i){t&1&&D(0,"ChevronDownIcon")}function iA(t,i){}function rA(t,i){t&1&&f(0,iA,0,0,"ng-template")}function oA(t,i){if(t&1){let e=F();m(0,"div",74)(1,"button",68),E("keydown",function(r){y(e);let o=d(3);return v(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){y(e);let o=d(3);return v(o.incrementSecond(r))})("keydown.space",function(r){y(e);let o=d(3);return v(o.incrementSecond(r))})("mousedown",function(r){y(e);let o=d(3);return v(o.onTimePickerElementMouseDown(r,2,1))})("mouseup",function(r){y(e);let o=d(3);return v(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){y(e);let o=d(3);return v(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){y(e);let o=d(3);return v(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){y(e);let r=d(3);return v(r.onTimePickerElementMouseLeave())}),f(2,XF,1,0,"ChevronUpIcon",7)(3,eA,1,0,null,13),g(),m(4,"span"),f(5,tA,2,0,"ng-container",7),K(6),g(),m(7,"button",68),E("keydown",function(r){y(e);let o=d(3);return v(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){y(e);let o=d(3);return v(o.decrementSecond(r))})("keydown.space",function(r){y(e);let o=d(3);return v(o.decrementSecond(r))})("mousedown",function(r){y(e);let o=d(3);return v(o.onTimePickerElementMouseDown(r,2,-1))})("mouseup",function(r){y(e);let o=d(3);return v(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){y(e);let o=d(3);return v(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){y(e);let o=d(3);return v(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){y(e);let r=d(3);return v(r.onTimePickerElementMouseLeave())}),f(8,nA,1,0,"ChevronDownIcon",7)(9,rA,1,0,null,13),g()()}if(t&2){let e=d(3);p(),w("aria-label",e.getTranslation("nextSecond")),p(),c("ngIf",!e.incrementIconTemplate),p(),c("ngTemplateOutlet",e.incrementIconTemplate),p(2),c("ngIf",e.currentSecond<10),p(),se(e.currentSecond),p(),w("aria-label",e.getTranslation("prevSecond")),p(),c("ngIf",!e.decrementIconTemplate),p(),c("ngTemplateOutlet",e.decrementIconTemplate)}}function sA(t,i){t&1&&D(0,"ChevronUpIcon")}function aA(t,i){}function lA(t,i){t&1&&f(0,aA,0,0,"ng-template")}function cA(t,i){t&1&&D(0,"ChevronDownIcon")}function uA(t,i){}function dA(t,i){t&1&&f(0,uA,0,0,"ng-template")}function pA(t,i){if(t&1){let e=F();m(0,"div",75)(1,"button",76),E("keydown",function(r){y(e);let o=d(3);return v(o.onContainerButtonKeydown(r))})("click",function(r){y(e);let o=d(3);return v(o.toggleAMPM(r))})("keydown.enter",function(r){y(e);let o=d(3);return v(o.toggleAMPM(r))}),f(2,sA,1,0,"ChevronUpIcon",7)(3,lA,1,0,null,13),g(),m(4,"span"),K(5),g(),m(6,"button",76),E("keydown",function(r){y(e);let o=d(3);return v(o.onContainerButtonKeydown(r))})("click",function(r){y(e);let o=d(3);return v(o.toggleAMPM(r))})("keydown.enter",function(r){y(e);let o=d(3);return v(o.toggleAMPM(r))}),f(7,cA,1,0,"ChevronDownIcon",7)(8,dA,1,0,null,13),g()()}if(t&2){let e=d(3);p(),w("aria-label",e.getTranslation("am")),p(),c("ngIf",!e.incrementIconTemplate),p(),c("ngTemplateOutlet",e.incrementIconTemplate),p(2),se(e.pm?"PM":"AM"),p(),w("aria-label",e.getTranslation("pm")),p(),c("ngIf",!e.decrementIconTemplate),p(),c("ngTemplateOutlet",e.decrementIconTemplate)}}function hA(t,i){if(t&1){let e=F();m(0,"div",66)(1,"div",67)(2,"button",68),E("keydown",function(r){y(e);let o=d(2);return v(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){y(e);let o=d(2);return v(o.incrementHour(r))})("keydown.space",function(r){y(e);let o=d(2);return v(o.incrementHour(r))})("mousedown",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseDown(r,0,1))})("mouseup",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){y(e);let r=d(2);return v(r.onTimePickerElementMouseLeave())}),f(3,VF,1,0,"ChevronUpIcon",7)(4,HF,1,0,null,13),g(),m(5,"span"),f(6,BF,2,0,"ng-container",7),K(7),g(),m(8,"button",68),E("keydown",function(r){y(e);let o=d(2);return v(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){y(e);let o=d(2);return v(o.decrementHour(r))})("keydown.space",function(r){y(e);let o=d(2);return v(o.decrementHour(r))})("mousedown",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseDown(r,0,-1))})("mouseup",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){y(e);let r=d(2);return v(r.onTimePickerElementMouseLeave())}),f(9,jF,1,0,"ChevronDownIcon",7)(10,UF,1,0,null,13),g()(),m(11,"div",69)(12,"span"),K(13),g()(),m(14,"div",70)(15,"button",68),E("keydown",function(r){y(e);let o=d(2);return v(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){y(e);let o=d(2);return v(o.incrementMinute(r))})("keydown.space",function(r){y(e);let o=d(2);return v(o.incrementMinute(r))})("mousedown",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseDown(r,1,1))})("mouseup",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){y(e);let r=d(2);return v(r.onTimePickerElementMouseLeave())}),f(16,$F,1,0,"ChevronUpIcon",7)(17,WF,1,0,null,13),g(),m(18,"span"),f(19,qF,2,0,"ng-container",7),K(20),g(),m(21,"button",68),E("keydown",function(r){y(e);let o=d(2);return v(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){y(e);let o=d(2);return v(o.decrementMinute(r))})("keydown.space",function(r){y(e);let o=d(2);return v(o.decrementMinute(r))})("mousedown",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseDown(r,1,-1))})("mouseup",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){y(e);let o=d(2);return v(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){y(e);let r=d(2);return v(r.onTimePickerElementMouseLeave())}),f(22,KF,1,0,"ChevronDownIcon",7)(23,ZF,1,0,null,13),g()(),f(24,YF,3,1,"div",71)(25,oA,10,8,"div",72)(26,pA,9,7,"div",73),g()}if(t&2){let e=d(2);p(2),w("aria-label",e.getTranslation("nextHour")),p(),c("ngIf",!e.incrementIconTemplate),p(),c("ngTemplateOutlet",e.incrementIconTemplate),p(2),c("ngIf",e.currentHour<10),p(),se(e.currentHour),p(),w("aria-label",e.getTranslation("prevHour")),p(),c("ngIf",!e.decrementIconTemplate),p(),c("ngTemplateOutlet",e.decrementIconTemplate),p(3),se(e.timeSeparator),p(2),w("aria-label",e.getTranslation("nextMinute")),p(),c("ngIf",!e.incrementIconTemplate),p(),c("ngTemplateOutlet",e.incrementIconTemplate),p(2),c("ngIf",e.currentMinute<10),p(),se(e.currentMinute),p(),w("aria-label",e.getTranslation("prevMinute")),p(),c("ngIf",!e.decrementIconTemplate),p(),c("ngTemplateOutlet",e.decrementIconTemplate),p(),c("ngIf",e.showSeconds),p(),c("ngIf",e.showSeconds),p(),c("ngIf",e.hourFormat=="12")}}function fA(t,i){if(t&1){let e=F();m(0,"div",77)(1,"button",78),E("keydown",function(r){y(e);let o=d(2);return v(o.onContainerButtonKeydown(r))})("click",function(r){y(e);let o=d(2);return v(o.onTodayButtonClick(r))}),g(),m(2,"button",78),E("keydown",function(r){y(e);let o=d(2);return v(o.onContainerButtonKeydown(r))})("click",function(r){y(e);let o=d(2);return v(o.onClearButtonClick(r))}),g()()}if(t&2){let e=d(2);p(),c("label",e.getTranslation("today"))("ngClass",U(4,YC,e.todayButtonStyleClass)),p(),c("label",e.getTranslation("clear"))("ngClass",U(6,YC,e.clearButtonStyleClass))}}function mA(t,i){t&1&&H(0)}function gA(t,i){if(t&1){let e=F();m(0,"div",20,2),E("@overlayAnimation.start",function(r){y(e);let o=d();return v(o.onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){y(e);let o=d();return v(o.onOverlayAnimationDone(r))})("click",function(r){y(e);let o=d();return v(o.onOverlayClick(r))}),xt(2),f(3,tF,1,0,"ng-container",13)(4,NF,5,3,"ng-container",7)(5,hA,27,20,"div",21)(6,fA,3,8,"div",22),xt(7,1),f(8,mA,1,0,"ng-container",13),g()}if(t&2){let e=d();R(e.panelStyleClass),c("ngStyle",e.panelStyle)("ngClass",Wr(15,Nk,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,e.view==="month",e.touchUI))("@overlayAnimation",e.touchUI?U(25,Vk,we(22,ZC,e.showTransitionOptions,e.hideTransitionOptions)):U(30,Pk,we(27,ZC,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0),w("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),p(3),c("ngTemplateOutlet",e.headerTemplate),p(),c("ngIf",!e.timeOnly),p(),c("ngIf",(e.showTime||e.timeOnly)&&e.currentView==="date"),p(),c("ngIf",e.showButtonBar),p(2),c("ngTemplateOutlet",e.footerTemplate)}}var _A={provide:Ft,useExisting:dt(()=>oo),multi:!0},oo=(()=>{class t{document;el;renderer;cd;zone;config;overlayService;iconDisplay="button";style;styleClass;inputStyle;inputId;name;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;disabled;dateFormat;multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;appendTo;readonlyInput;shortYearCutoff="+10";monthNavigator;yearNavigator;hourFormat="24";timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;required;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass="p-button-text";clearButtonStyleClass="p-button-text";autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){let n=e.split(":"),r=parseInt(n[0]),o=parseInt(n[1]);this.populateYearOptions(r,o)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){let n=e||new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.initTime(n),this.createMonths(this.currentMonth,this.currentYear)}}onFocus=new O;onBlur=new O;onClose=new O;onSelect=new O;onClear=new O;onInput=new O;onTodayClick=new O;onClearClick=new O;onMonthChange=new O;onYearChange=new O;onClickOutside=new O;onShow=new O;templates;containerViewChild;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;onModelChange=()=>{};onModelTouched=()=>{};calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;filled;inputFieldValue=null;_minDate;_maxDate;_showTime;_yearRange;preventDocumentListener;dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(e,n,r,o,s,a,l){this.document=e,this.el=n,this.renderer=r,this.cd=o,this.zone=s,this.config=a,this.overlayService=l,this.window=this.document.defaultView}ngOnInit(){this.attributeSelector=me(),this.panelId=this.attributeSelector+"_panel";let e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"inputicon":this.inputIconTemplate=e.template;break;case"previousicon":this.previousIconTemplate=e.template;break;case"nexticon":this.nextIconTemplate=e.template;break;case"triggericon":this.triggerIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"decrementicon":this.decrementIconTemplate=e.template;break;case"incrementicon":this.incrementIconTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;default:this.dateTemplate=e.template;break}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.disabled&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=b.getOuterWidth(this.containerViewChild?.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,n){this.yearOptions=[];for(let r=e;r<=n;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),n=this.getTranslation(ze.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(n[e]),e=e==6?0:++e}monthPickerValues(){let e=[];for(let n=0;n<=11;n++)e.push(this.config.getTranslation("monthNamesShort")[n]);return e}yearPickerValues(){let e=[],n=this.currentYear-this.currentYear%10;for(let r=0;r<10;r++)e.push(n+r);return e}createMonths(e,n){this.months=this.months=[];for(let r=0;r<this.numberOfMonths;r++){let o=e+r,s=n;o>11&&(o=o%11-1,s=n+1),this.months.push(this.createMonth(o,s))}}getWeekNumber(e){let n=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let o=+this.getFirstDateOfWeek();n.setDate(n.getDate()+6+o-n.getDay())}else n.setDate(n.getDate()+4-(n.getDay()||7));let r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1}createMonth(e,n){let r=[],o=this.getFirstDayOfMonthIndex(e,n),s=this.getDaysCountInMonth(e,n),a=this.getDaysCountInPrevMonth(e,n),l=1,u=new Date,h=[],_=Math.ceil((s+o)/7);for(let I=0;I<_;I++){let S=[];if(I==0){for(let A=a-o+1;A<=a;A++){let V=this.getPreviousMonthAndYear(e,n);S.push({day:A,month:V.month,year:V.year,otherMonth:!0,today:this.isToday(u,A,V.month,V.year),selectable:this.isSelectable(A,V.month,V.year,!0)})}let M=7-S.length;for(let A=0;A<M;A++)S.push({day:l,month:e,year:n,today:this.isToday(u,l,e,n),selectable:this.isSelectable(l,e,n,!1)}),l++}else for(let M=0;M<7;M++){if(l>s){let A=this.getNextMonthAndYear(e,n);S.push({day:l-s,month:A.month,year:A.year,otherMonth:!0,today:this.isToday(u,l-s,A.month,A.year),selectable:this.isSelectable(l-s,A.month,A.year,!0)})}else S.push({day:l,month:e,year:n,today:this.isToday(u,l,e,n),selectable:this.isSelectable(l,e,n,!1)});l++}this.showWeek&&h.push(this.getWeekNumber(new Date(S[0].year,S[0].month,S[0].day))),r.push(S)}return{month:e,year:n,dates:r,weekNumbers:h}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){if(this.disabled){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(e){if(this.disabled){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear<e[0]){let n=e[e.length-1]-e[0];this.populateYearOptions(e[0]-n,e[e.length-1]-n)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){this.currentYear++;let e=this.yearOptions;if(this.yearNavigator&&this.currentYear>e[e.length-1]){let n=e[e.length-1]-e[0];this.populateYearOptions(e[0]+n,e[e.length-1]+n)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,n){if(this.disabled||!n.selectable){e.preventDefault();return}this.isMultipleSelection()&&this.isSelected(n)?(this.value=this.value.filter((r,o)=>!this.isDateEquals(r,n)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(n)&&this.selectDate(n),(this.isSingleSelection()&&this.hideOnDateTimeSelect||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()}shouldSelectDate(e){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(e,n){this.view==="month"?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,n){this.view==="year"?this.onDateSelect(e,{year:n,month:0,day:1,selectable:!0}):(this.currentYear=n,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value){if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let n=0;n<this.value.length;n++){let r=this.formatDateTime(this.value[n]);e+=r,n!==this.value.length-1&&(e+=this.multipleSeparator+" ")}else if(this.isRangeSelection()&&this.value&&this.value.length){let n=this.value[0],r=this.value[1];e=this.formatDateTime(n),r&&(e+=" "+this.rangeSeparator+" "+this.formatDateTime(r))}}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let n=this.keepInvalid?e:null;return this.isValidDate(e)?this.timeOnly?n=this.formatTime(e):(n=this.formatDate(e,this.getDateFormat()),this.showTime&&(n+=" "+this.formatTime(e))):this.dataType==="string"&&(n=e),n}setCurrentHourPM(e){this.hourFormat=="12"?(this.pm=e>11,e>=12?this.currentHour=e==12?12:e-12:this.currentHour=e==0?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let n=new Date(e.year,e.month,e.day);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?n.setHours(this.pm?12:0):n.setHours(this.pm?this.currentHour+12:this.currentHour):n.setHours(this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.currentSecond)),this.minDate&&this.minDate>n&&(n=this.minDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.isSingleSelection())this.updateModel(n);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,n]:[n]);else if(this.isRangeSelection())if(this.value&&this.value.length){let r=this.value[0],o=this.value[1];!o&&n.getTime()>=r.getTime()?o=n:(r=n,o=null),this.updateModel([r,o])}else this.updateModel([n,null]);this.onSelect.emit(n)}updateModel(e){if(this.value=e,this.dataType=="date")this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let n=null;Array.isArray(this.value)&&(n=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(n)}}getFirstDayOfMonthIndex(e,n){let r=new Date;r.setDate(1),r.setMonth(e),r.setFullYear(n);let o=r.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,n){return 32-this.daylightSavingAdjust(new Date(n,e,32)).getDate()}getDaysCountInPrevMonth(e,n){let r=this.getPreviousMonthAndYear(e,n);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(e,n){let r,o;return e===0?(r=11,o=n-1):(r=e-1,o=n),{month:r,year:o}}getNextMonthAndYear(e,n){let r,o;return e===11?(r=0,o=n+1):(r=e+1,o=n),{month:r,year:o}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let n=!1;for(let r of this.value)if(n=this.isDateEquals(r,e),n)break;return n}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){let[n,r]=this.isRangeSelection()?this.value:[this.value,this.value],o=new Date(this.currentYear,e,1);return o>=n&&o<=(r??n)}return!1}isMonthDisabled(e,n){let r=n??this.currentYear;for(let o=1;o<this.getDaysCountInMonth(e,r)+1;o++)if(this.isSelectable(o,e,r,!1))return!1;return!0}isYearDisabled(e){return Array(12).fill(0).every((n,r)=>this.isMonthDisabled(r,e))}isYearSelected(e){if(this.isComparable()){let n=this.isRangeSelection()?this.value[0]:this.value;return this.isMultipleSelection()?!1:n.getFullYear()===e}return!1}isDateEquals(e,n){return e&&k.isDate(e)?e.getDate()===n.day&&e.getMonth()===n.month&&e.getFullYear()===n.year:!1}isDateBetween(e,n,r){let o=!1;if(k.isDate(e)&&k.isDate(n)){let s=new Date(r.year,r.month,r.day);return e.getTime()<=s.getTime()&&n.getTime()>=s.getTime()}return o}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(e,n,r,o){return e.getDate()===n&&e.getMonth()===r&&e.getFullYear()===o}isSelectable(e,n,r,o){let s=!0,a=!0,l=!0,u=!0;return o&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&this.currentView!="year"&&(this.minDate.getMonth()>n||this.minDate.getMonth()===n&&this.minDate.getDate()>e))&&(s=!1),this.maxDate&&(this.maxDate.getFullYear()<r||this.maxDate.getFullYear()===r&&(this.maxDate.getMonth()<n||this.maxDate.getMonth()===n&&this.maxDate.getDate()<e))&&(a=!1),this.disabledDates&&(l=!this.isDateDisabled(e,n,r)),this.disabledDays&&(u=!this.isDayDisabled(e,n,r)),s&&a&&l&&u)}isDateDisabled(e,n,r){if(this.disabledDates){for(let o of this.disabledDates)if(o.getFullYear()===r&&o.getMonth()===n&&o.getDate()===e)return!0}return!1}isDayDisabled(e,n,r){if(this.disabledDays){let s=new Date(r,n,e).getDay();return this.disabledDays.indexOf(s)!==-1}return!1}onInputFocus(e){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(e)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(e){this.focus=!1,this.onBlur.emit(e),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(e,n=this.inputfieldViewChild?.nativeElement){this.overlayVisible?this.hideOverlay():(n.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return this.config.getTranslation("monthNames")[e]}getYear(e){return this.currentView==="month"?this.currentYear:e.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:if(this.inline||this.trapFocus(e),this.inline){let n=b.findSingle(this.containerViewChild?.nativeElement,".p-datepicker-header"),r=e.target;if(this.timeOnly)return;r==n.children[n?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;default:break}}onInputKeydown(e){this.isKeydown=!0,e.keyCode===40&&this.contentViewChild?this.trapFocus(e):e.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):e.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):e.keyCode===9&&this.contentViewChild&&(b.getFocusableElements(this.contentViewChild.nativeElement).forEach(n=>n.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,n,r){let o=e.currentTarget,s=o.parentElement;switch(e.which){case 40:{o.tabIndex="-1";let a=b.index(s),l=s.parentElement.nextElementSibling;if(l){let u=l.children[a].children[0];b.hasClass(u,"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus())}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break}case 38:{o.tabIndex="-1";let a=b.index(s),l=s.parentElement.previousElementSibling;if(l){let u=l.children[a].children[0];b.hasClass(u,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(u.tabIndex="0",u.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let a=s.previousElementSibling;if(a){let l=a.children[0];b.hasClass(l,"p-disabled")||b.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,r);e.preventDefault();break}case 39:{o.tabIndex="-1";let a=s.nextElementSibling;if(a){let l=a.children[0];b.hasClass(l,"p-disabled")?this.navigateToMonth(!1,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,r);e.preventDefault();break}case 13:case 32:{this.onDateSelect(e,n),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}default:break}}onMonthCellKeydown(e,n){let r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=b.index(r);let a=o[e.which===40?s+3:s-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onMonthSelect(e,n),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}default:break}}onYearCellKeydown(e,n){let r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=b.index(r);let a=o[e.which===40?s+2:s-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onYearSelect(e,n),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.trapFocus(e);break}default:break}}navigateToMonth(e,n){if(e)if(this.numberOfMonths===1||n===0)this.navigationState={backward:!0},this.navBackward(event);else{let r=this.contentViewChild.nativeElement.children[n-1],o=b.find(r,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),s=o[o.length-1];s.tabIndex="0",s.focus()}else if(this.numberOfMonths===1||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let r=this.contentViewChild.nativeElement.children[n+1],o=b.findSingle(r,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");o.tabIndex="0",o.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?b.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():b.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let n;this.currentView==="month"?n=b.find(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):this.currentView==="year"?n=b.find(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):n=b.find(this.contentViewChild.nativeElement,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),n&&n.length>0&&(e=n[n.length-1])}else this.currentView==="month"?e=b.findSingle(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"):this.currentView==="year"?e=b.findSingle(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"):e=b.findSingle(this.contentViewChild.nativeElement,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){let e=this.contentViewChild?.nativeElement,n;if(this.currentView==="month"){let r=b.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),o=b.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");r.forEach(s=>s.tabIndex=-1),n=o||r[0],r.length===0&&b.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(this.currentView==="year"){let r=b.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),o=b.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");r.forEach(s=>s.tabIndex=-1),n=o||r[0],r.length===0&&b.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(n=b.findSingle(e,"span.p-highlight"),!n){let r=b.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");r?n=r:n=b.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}n&&(n.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.disabled||n.focus()},1),this.preventFocus=!1)}trapFocus(e){let n=b.getFocusableElements(this.contentViewChild.nativeElement);if(n&&n.length>0)if(!n[0].ownerDocument.activeElement)n[0].focus();else{let r=n.indexOf(n[0].ownerDocument.activeElement);if(e.shiftKey)if(r==-1||r===0)if(this.focusTrap)n[n.length-1].focus();else{if(r===-1)return this.hideOverlay();if(r===0)return}else n[r-1].focus();else if(r==-1)if(this.timeOnly)n[0].focus();else{let o=0;for(let s=0;s<n.length;s++)n[s].tagName==="SPAN"&&(o=s);n[o].focus()}else if(r===n.length-1){if(!this.focusTrap&&r!=-1)return this.hideOverlay();n[0].focus()}else n[r+1].focus()}e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}convertTo24Hour=function(e,n){return this.hourFormat=="12"?e===12?n?12:0:n?e+12:e:e};constrainTime(e,n,r,o){let s=[e,n,r],a=this.value,l=this.convertTo24Hour(e,o),u=this.isRangeSelection(),h=this.isMultipleSelection();(u||h)&&(this.value||(this.value=[new Date,new Date]),u&&(a=this.value[1]||this.value[0]),h&&(a=this.value[this.value.length-1]));let I=a?a.toDateString():null,S=this.minDate&&I&&this.minDate.toDateString()===I,M=this.maxDate&&I&&this.maxDate.toDateString()===I;switch(!0){case(S&&this.minDate.getHours()>l):s[0]=this.minDate.getHours();case(S&&this.minDate.getHours()===l&&this.minDate.getMinutes()>n):s[1]=this.minDate.getMinutes();case(S&&this.minDate.getHours()===l&&this.minDate.getMinutes()===n&&this.minDate.getSeconds()>r):s[2]=this.minDate.getSeconds();break;case(M&&this.maxDate.getHours()<l):s[0]=this.maxDate.getHours();case(M&&this.maxDate.getHours()===l&&this.maxDate.getMinutes()<n):s[1]=this.maxDate.getMinutes();case(M&&this.maxDate.getHours()===l&&this.maxDate.getMinutes()===n&&this.maxDate.getSeconds()<r):s[2]=this.maxDate.getSeconds();break}return s}incrementHour(e){let n=this.currentHour??0,r=(this.currentHour??0)+this.stepHour,o=this.pm;this.hourFormat=="24"?r=r>=24?r-24:r:this.hourFormat=="12"&&(n<12&&r>11&&(o=!this.pm),r=r>=13?r-12:r),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(r,this.currentMinute,this.currentSecond,o),this.pm=o,e.preventDefault()}onTimePickerElementMouseDown(e,n,r){this.disabled||(this.repeat(e,null,n,r),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,n,r,o){let s=n||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,r,o),this.cd.markForCheck()},s),r){case 0:o===1?this.incrementHour(e):this.decrementHour(e);break;case 1:o===1?this.incrementMinute(e):this.decrementMinute(e);break;case 2:o===1?this.incrementSecond(e):this.decrementSecond(e);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let n=(this.currentHour??0)-this.stepHour,r=this.pm;this.hourFormat=="24"?n=n<0?24+n:n:this.hourFormat=="12"&&(this.currentHour===12&&(r=!this.pm),n=n<=0?12+n:n),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(n,this.currentMinute,this.currentSecond,r),this.pm=r,e.preventDefault()}incrementMinute(e){let n=(this.currentMinute??0)+this.stepMinute;n=n>59?n-60:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,n,this.currentSecond,this.pm),e.preventDefault()}decrementMinute(e){let n=(this.currentMinute??0)-this.stepMinute;n=n<0?60+n:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,n,this.currentSecond,this.pm),e.preventDefault()}incrementSecond(e){let n=this.currentSecond+this.stepSecond;n=n>59?n-60:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,n,this.pm),e.preventDefault()}decrementSecond(e){let n=this.currentSecond-this.stepSecond;n=n<0?60+n:n,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,n,this.pm),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?e.setHours(this.pm?12:0):e.setHours(this.pm?this.currentHour+12:this.currentHour):e.setHours(this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?e=[this.value[0],e]:e=[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){let n=!this.pm;[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour,this.currentMinute,this.currentSecond,n),this.pm=n,this.updateTime(),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let n=e.target.value;try{let r=this.parseValueFromString(n);this.isValidSelection(r)?(this.updateModel(r),this.updateUI()):this.keepInvalid&&this.updateModel(r)}catch{let o=this.keepInvalid?n:null;this.updateModel(o)}this.filled=n!=null&&n.length,this.onInput.emit(e)}isValidSelection(e){if(this.isSingleSelection())return this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1);let n=e.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1));return n&&this.isRangeSelection()&&(n=e.length===1||e.length>1&&e[1]>=e[0]),n}parseValueFromString(e){if(!e||e.trim().length===0)return null;let n;if(this.isSingleSelection())n=this.parseDateTime(e);else if(this.isMultipleSelection()){let r=e.split(this.multipleSeparator);n=[];for(let o of r)n.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let r=e.split(" "+this.rangeSeparator+" ");n=[];for(let o=0;o<r.length;o++)n[o]=this.parseDateTime(r[o].trim())}return n}parseDateTime(e){let n,r=e.split(" ");if(this.timeOnly)n=new Date,this.populateTime(n,r[0],r[1]);else{let o=this.getDateFormat();if(this.showTime){let s=this.hourFormat=="12"?r.pop():null,a=r.pop();n=this.parseDate(r.join(" "),o),this.populateTime(n,a,s)}else n=this.parseDate(e,o)}return n}populateTime(e,n,r){if(this.hourFormat=="12"&&!r)throw"Invalid Time";this.pm=r==="PM"||r==="pm";let o=this.parseTime(n);e.setHours(o.hour),e.setMinutes(o.minute),e.setSeconds(o.second)}isValidDate(e){return k.isDate(e)&&k.isNotEmpty(e)}updateUI(){let e=this.value;Array.isArray(e)&&(e=e.length===2?e[1]:e[0]);let n=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new Date;this.currentMonth=n.getMonth(),this.currentYear=n.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(n.getHours()),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild?.nativeElement.focus()))}onOverlayAnimationStart(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=e.element,this.overlay?.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?qe.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):qe.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(e));break;case"void":this.onOverlayHide(),this.onClose.emit(e);break}}onOverlayAnimationDone(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&qe.clear(e.element);break}}appendOverlay(){this.appendTo&&(this.appendTo==="body"?this.document.body.appendChild(this.overlay):b.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?(this.view==="date"?(this.overlay.style.width=b.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=b.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px"):this.overlay.style.width=b.getOuterWidth(this.inputfieldViewChild?.nativeElement)+"px",b.absolutePosition(this.overlay,this.inputfieldViewChild?.nativeElement)):b.relativePosition(this.overlay,this.inputfieldViewChild?.nativeElement))}enableModality(e){!this.mask&&this.touchUI&&(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",String(parseInt(e.style.zIndex)-1)),b.addMultipleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),b.blockBodyScroll())}disableModality(){this.mask&&(b.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let e=this.document.body.children,n;for(let r=0;r<e.length;r++){let o=e[r];if(b.hasClass(o,"p-datepicker-mask-scrollblocker")){n=!0;break}}n||b.unblockBodyScroll(),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}writeValue(e){if(this.value=e,this.value&&typeof this.value=="string")try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=e)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(ze.FIRST_DAY_OF_WEEK)}formatDate(e,n){if(!e)return"";let r,o=h=>{let _=r+1<n.length&&n.charAt(r+1)===h;return _&&r++,_},s=(h,_,I)=>{let S=""+_;if(o(h))for(;S.length<I;)S="0"+S;return S},a=(h,_,I,S)=>o(h)?S[_]:I[_],l="",u=!1;if(e)for(r=0;r<n.length;r++)if(u)n.charAt(r)==="'"&&!o("'")?u=!1:l+=n.charAt(r);else switch(n.charAt(r)){case"d":l+=s("d",e.getDate(),2);break;case"D":l+=a("D",e.getDay(),this.getTranslation(ze.DAY_NAMES_SHORT),this.getTranslation(ze.DAY_NAMES));break;case"o":l+=s("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=s("m",e.getMonth()+1,2);break;case"M":l+=a("M",e.getMonth(),this.getTranslation(ze.MONTH_NAMES_SHORT),this.getTranslation(ze.MONTH_NAMES));break;case"y":l+=o("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":l+=e.getTime();break;case"!":l+=e.getTime()*1e4+this.ticksTo1970;break;case"'":o("'")?l+="'":u=!0;break;default:l+=n.charAt(r)}return l}formatTime(e){if(!e)return"";let n="",r=e.getHours(),o=e.getMinutes(),s=e.getSeconds();return this.hourFormat=="12"&&r>11&&r!=12&&(r-=12),this.hourFormat=="12"?n+=r===0?12:r<10?"0"+r:r:n+=r<10?"0"+r:r,n+=":",n+=o<10?"0"+o:o,this.showSeconds&&(n+=":",n+=s<10?"0"+s:s),this.hourFormat=="12"&&(n+=e.getHours()>11?" PM":" AM"),n}parseTime(e){let n=e.split(":"),r=this.showSeconds?3:2;if(n.length!==r)throw"Invalid time";let o=parseInt(n[0]),s=parseInt(n[1]),a=this.showSeconds?parseInt(n[2]):null;if(isNaN(o)||isNaN(s)||o>23||s>59||this.hourFormat=="12"&&o>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return this.hourFormat=="12"&&(o!==12&&this.pm?o+=12:!this.pm&&o===12&&(o-=12)),{hour:o,minute:s,second:a}}parseDate(e,n){if(n==null||e==null)throw"Invalid arguments";if(e=typeof e=="object"?e.toString():e+"",e==="")return null;let r,o,s,a=0,l=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),u=-1,h=-1,_=-1,I=-1,S=!1,M,A=pe=>{let ae=r+1<n.length&&n.charAt(r+1)===pe;return ae&&r++,ae},V=pe=>{let ae=A(pe),tt=pe==="@"?14:pe==="!"?20:pe==="y"&&ae?4:pe==="o"?3:2,Ke=pe==="y"?tt:1,at=new RegExp("^\\d{"+Ke+","+tt+"}"),ct=e.substring(a).match(at);if(!ct)throw"Missing number at position "+a;return a+=ct[0].length,parseInt(ct[0],10)},B=(pe,ae,tt)=>{let Ke=-1,at=A(pe)?tt:ae,ct=[];for(let Rt=0;Rt<at.length;Rt++)ct.push([Rt,at[Rt]]);ct.sort((Rt,pn)=>-(Rt[1].length-pn[1].length));for(let Rt=0;Rt<ct.length;Rt++){let pn=ct[Rt][1];if(e.substr(a,pn.length).toLowerCase()===pn.toLowerCase()){Ke=ct[Rt][0],a+=pn.length;break}}if(Ke!==-1)return Ke+1;throw"Unknown name at position "+a},re=()=>{if(e.charAt(a)!==n.charAt(r))throw"Unexpected literal at position "+a;a++};for(this.view==="month"&&(_=1),r=0;r<n.length;r++)if(S)n.charAt(r)==="'"&&!A("'")?S=!1:re();else switch(n.charAt(r)){case"d":_=V("d");break;case"D":B("D",this.getTranslation(ze.DAY_NAMES_SHORT),this.getTranslation(ze.DAY_NAMES));break;case"o":I=V("o");break;case"m":h=V("m");break;case"M":h=B("M",this.getTranslation(ze.MONTH_NAMES_SHORT),this.getTranslation(ze.MONTH_NAMES));break;case"y":u=V("y");break;case"@":M=new Date(V("@")),u=M.getFullYear(),h=M.getMonth()+1,_=M.getDate();break;case"!":M=new Date((V("!")-this.ticksTo1970)/1e4),u=M.getFullYear(),h=M.getMonth()+1,_=M.getDate();break;case"'":A("'")?re():S=!0;break;default:re()}if(a<e.length&&(s=e.substr(a),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(u===-1?u=new Date().getFullYear():u<100&&(u+=new Date().getFullYear()-new Date().getFullYear()%100+(u<=l?0:-100)),I>-1){h=1,_=I;do{if(o=this.getDaysCountInMonth(u,h-1),_<=o)break;h++,_-=o}while(!0)}if(this.view==="year"&&(h=h===-1?1:h,_=_===-1?1:_),M=this.daylightSavingAdjust(new Date(u,h-1,_)),M.getFullYear()!==u||M.getMonth()+1!==h||M.getDate()!==_)throw"Invalid date";return M}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&this.inputFieldValue!=""}onTodayButtonClick(e){let n=new Date,r={day:n.getDate(),month:n.getMonth(),year:n.getFullYear(),otherMonth:n.getMonth()!==this.currentMonth||n.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(n.getMonth(),n.getFullYear()),this.onDateSelect(e,r),this.onTodayClick.emit(n)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let n=[...this.responsiveOptions].filter(r=>!!(r.breakpoint&&r.numMonths)).sort((r,o)=>-1*r.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let r=0;r<n.length;r++){let{breakpoint:o,numMonths:s}=n[r],a=`
29
+ .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${s}) .p-datepicker-next {
30
+ display: inline-flex !important;
31
+ }
32
+ `;for(let l=s;l<this.numberOfMonths;l++)a+=`
33
+ .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${l+1}) {
34
+ display: none !important;
35
+ }
36
+ `;e+=`
37
+ @media screen and (max-width: ${o}) {
38
+ ${a}
39
+ }
40
+ `}}this.responsiveStyleElement.innerHTML=e}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(e,"mousedown",n=>{this.isOutsideClicked(n)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(n),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Cn(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return b.hasClass(e.target,"p-datepicker-prev")||b.hasClass(e.target,"p-datepicker-prev-icon")||b.hasClass(e.target,"p-datepicker-next")||b.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!b.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&qe.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(x(Se),x(_e),x(Be),x(ce),x(ge),x(ot),x(un))};static \u0275cmp=P({type:t,selectors:[["p-calendar"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(Ek,5),Z(Mk,5),Z(Ok,5)),n&2){let o;j(o=z())&&(r.containerViewChild=o.first),j(o=z())&&(r.inputfieldViewChild=o.first),j(o=z())&&(r.content=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,r){n&2&&Ot("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focus)("p-calendar-clearable",r.showClear&&!r.disabled)},inputs:{iconDisplay:"iconDisplay",style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[C.HasDecoratorInputTransform,"inline","inline",T],showOtherMonths:[C.HasDecoratorInputTransform,"showOtherMonths","showOtherMonths",T],selectOtherMonths:[C.HasDecoratorInputTransform,"selectOtherMonths","selectOtherMonths",T],showIcon:[C.HasDecoratorInputTransform,"showIcon","showIcon",T],icon:"icon",appendTo:"appendTo",readonlyInput:[C.HasDecoratorInputTransform,"readonlyInput","readonlyInput",T],shortYearCutoff:"shortYearCutoff",monthNavigator:[C.HasDecoratorInputTransform,"monthNavigator","monthNavigator",T],yearNavigator:[C.HasDecoratorInputTransform,"yearNavigator","yearNavigator",T],hourFormat:"hourFormat",timeOnly:[C.HasDecoratorInputTransform,"timeOnly","timeOnly",T],stepHour:[C.HasDecoratorInputTransform,"stepHour","stepHour",Q],stepMinute:[C.HasDecoratorInputTransform,"stepMinute","stepMinute",Q],stepSecond:[C.HasDecoratorInputTransform,"stepSecond","stepSecond",Q],showSeconds:[C.HasDecoratorInputTransform,"showSeconds","showSeconds",T],required:[C.HasDecoratorInputTransform,"required","required",T],showOnFocus:[C.HasDecoratorInputTransform,"showOnFocus","showOnFocus",T],showWeek:[C.HasDecoratorInputTransform,"showWeek","showWeek",T],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[C.HasDecoratorInputTransform,"showClear","showClear",T],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[C.HasDecoratorInputTransform,"maxDateCount","maxDateCount",Q],showButtonBar:[C.HasDecoratorInputTransform,"showButtonBar","showButtonBar",T],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T],autoZIndex:[C.HasDecoratorInputTransform,"autoZIndex","autoZIndex",T],baseZIndex:[C.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Q],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[C.HasDecoratorInputTransform,"keepInvalid","keepInvalid",T],hideOnDateTimeSelect:[C.HasDecoratorInputTransform,"hideOnDateTimeSelect","hideOnDateTimeSelect",T],touchUI:[C.HasDecoratorInputTransform,"touchUI","touchUI",T],timeSeparator:"timeSeparator",focusTrap:[C.HasDecoratorInputTransform,"focusTrap","focusTrap",T],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q],minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[ht([_A]),fe],ngContentSelectors:Fk,decls:4,vars:12,consts:[["container",""],["inputfield",""],["contentWrapper",""],[3,"ngClass","ngStyle"],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off","pAutoFocus","",3,"focus","keydown","click","blur","input","value","readonly","ngStyle","placeholder","disabled","ngClass","autofocus"],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngClass"],[3,"click","ngStyle","ngClass"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"click","keydown","disabled"],["type","button",1,"p-datepicker-year","p-link",3,"click","keydown","disabled"],[1,"p-datepicker-decade"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"click","keydown","ngClass"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"click","keydown","ngClass"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"click","keydown","ngClass"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"keydown","click","label","ngClass"]],template:function(n,r){n&1&&(Gt(kk),m(0,"span",3,0),f(2,eF,5,22,"ng-template",4)(3,gA,9,32,"div",5),g()),n&2&&(R(r.styleClass),c("ngClass",jo(6,Ak,r.showIcon&&r.iconDisplay==="input",r.showIcon&&r.iconDisplay==="button",r.timeOnly,r.disabled,r.focus||r.overlayVisible))("ngStyle",r.style),p(2),c("ngIf",!r.inline),p(),c("ngIf",r.inline||r.overlayVisible))},dependencies:()=>[Oe,Ct,Ce,Ae,je,bn,Dt,ym,vm,Cm,$n,mt,bm,jt],styles:[`@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%;text-overflow:ellipsis}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-datepicker-icon{pointer-events:none}.p-calendar-clearable{position:relative}}
41
+ `],encapsulation:2,data:{animation:[en("overlayAnimation",[Dc("visibleTouchUI",Je({transform:"translate(-50%,-50%)",opacity:1})),ft("void => visible",[Je({opacity:0,transform:"scaleY(0.8)"}),vt("{{showTransitionParams}}",Je({opacity:1,transform:"*"}))]),ft("visible => void",[vt("{{hideTransitionParams}}",Je({opacity:0}))]),ft("void => visibleTouchUI",[Je({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),vt("{{showTransitionParams}}")]),ft("visibleTouchUI => void",[vt("{{hideTransitionParams}}",Je({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return t})(),vu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,Yt,ke,At,ym,vm,Cm,$n,mt,bm,St,Yt,ke]})}return t})();var Vt=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["CheckIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var yA=["content"],vA=[[["p-footer"]]],CA=["p-footer"],bA=t=>({"p-dialog p-confirm-dialog p-component":!0,"p-dialog-rtl":t}),wA=(t,i)=>({transform:t,transition:i}),IA=t=>({value:"visible",params:t}),JC=t=>({$implicit:t}),xA=()=>({"p-dialog-header-icon p-dialog-header-close p-link":!0});function TA(t,i){t&1&&H(0)}function SA(t,i){if(t&1&&(L(0),f(1,TA,1,0,"ng-container",7),N()),t&2){let e=d(3);p(),c("ngTemplateOutlet",e.headlessTemplate)("ngTemplateOutletContext",U(2,JC,e.confirmation))}}function DA(t,i){t&1&&H(0)}function EA(t,i){if(t&1&&(m(0,"div",14),f(1,DA,1,0,"ng-container",15),g()),t&2){let e=d(4);p(),c("ngTemplateOutlet",e.headerTemplate)}}function MA(t,i){if(t&1&&(m(0,"span",19),K(1),g()),t&2){let e=d(5);c("id",e.ariaLabelledBy),p(),se(e.option("header"))}}function OA(t,i){if(t&1){let e=F();m(0,"button",20),E("click",function(r){y(e);let o=d(5);return v(o.close(r))})("keydown.enter",function(r){y(e);let o=d(5);return v(o.close(r))}),D(1,"TimesIcon"),g()}if(t&2){let e=d(5);c("ngClass",Qe(2,xA)),w("aria-label",e.closeAriaLabel)}}function kA(t,i){if(t&1&&(m(0,"div",14),f(1,MA,2,2,"span",16),m(2,"div",17),f(3,OA,2,3,"button",18),g()()),t&2){let e=d(4);p(),c("ngIf",e.option("header")),p(2),c("ngIf",e.closable)}}function FA(t,i){if(t&1&&D(0,"i",3),t&2){let e=d(4);R(e.option("icon")),c("ngClass","p-confirm-dialog-icon")}}function AA(t,i){}function RA(t,i){t&1&&f(0,AA,0,0,"ng-template")}function LA(t,i){if(t&1&&(L(0),f(1,RA,1,0,null,15),N()),t&2){let e=d(4);p(),c("ngTemplateOutlet",e.iconTemplate)}}function NA(t,i){if(t&1&&D(0,"span",21),t&2){let e=d(4);c("innerHTML",e.option("message"),ri)}}function VA(t,i){}function PA(t,i){t&1&&f(0,VA,0,0,"ng-template")}function HA(t,i){if(t&1&&(L(0),f(1,PA,1,0,null,7),N()),t&2){let e=d(4);p(),c("ngTemplateOutlet",e.messageTemplate)("ngTemplateOutletContext",U(2,JC,e.confirmation))}}function BA(t,i){t&1&&H(0)}function jA(t,i){if(t&1&&(m(0,"div",22),xt(1),f(2,BA,1,0,"ng-container",15),g()),t&2){let e=d(4);p(2),c("ngTemplateOutlet",e.footerTemplate)}}function zA(t,i){if(t&1&&D(0,"i"),t&2){let e=d(7);R(e.option("rejectIcon"))}}function UA(t,i){t&1&&D(0,"TimesIcon",28),t&2&&c("styleClass","p-button-icon-left")}function $A(t,i){if(t&1&&(L(0),f(1,zA,1,2,"i",26)(2,UA,1,1,"TimesIcon",27),N()),t&2){let e=d(6);p(),c("ngIf",e.option("rejectIcon")),p(),c("ngIf",!e.option("rejectIcon"))}}function GA(t,i){}function WA(t,i){t&1&&f(0,GA,0,0,"ng-template")}function qA(t,i){if(t&1&&(m(0,"span",29),f(1,WA,1,0,null,15),g()),t&2){let e=d(6);p(),c("ngTemplateOutlet",e.rejectIconTemplate)}}function KA(t,i){if(t&1){let e=F();m(0,"button",24),E("click",function(){y(e);let r=d(5);return v(r.reject())}),f(1,$A,3,2,"ng-container",11)(2,qA,2,1,"span",25),g()}if(t&2){let e=d(5);R(e.option("rejectButtonStyleClass")),c("label",e.rejectButtonLabel)("ngClass","p-confirm-dialog-reject"),w("aria-label",e.rejectAriaLabel),p(),c("ngIf",!e.rejectIconTemplate),p(),c("ngIf",e.rejectIconTemplate)}}function QA(t,i){if(t&1&&D(0,"i"),t&2){let e=d(7);R(e.option("acceptIcon"))}}function ZA(t,i){t&1&&D(0,"CheckIcon",28),t&2&&c("styleClass","p-button-icon-left")}function YA(t,i){if(t&1&&(L(0),f(1,QA,1,2,"i",26)(2,ZA,1,1,"CheckIcon",27),N()),t&2){let e=d(6);p(),c("ngIf",e.option("acceptIcon")),p(),c("ngIf",!e.option("acceptIcon"))}}function XA(t,i){}function JA(t,i){t&1&&f(0,XA,0,0,"ng-template")}function e4(t,i){if(t&1&&(m(0,"span",29),f(1,JA,1,0,null,15),g()),t&2){let e=d(6);p(),c("ngTemplateOutlet",e.acceptIconTemplate)}}function t4(t,i){if(t&1){let e=F();m(0,"button",24),E("click",function(){y(e);let r=d(5);return v(r.accept())}),f(1,YA,3,2,"ng-container",11)(2,e4,2,1,"span",25),g()}if(t&2){let e=d(5);R(e.option("acceptButtonStyleClass")),c("label",e.acceptButtonLabel)("ngClass","p-confirm-dialog-accept"),w("aria-label",e.acceptAriaLabel),p(),c("ngIf",!e.acceptIconTemplate),p(),c("ngIf",e.acceptIconTemplate)}}function n4(t,i){if(t&1&&(m(0,"div",22),f(1,KA,3,7,"button",23)(2,t4,3,7,"button",23),g()),t&2){let e=d(4);p(),c("ngIf",e.option("rejectVisible")),p(),c("ngIf",e.option("acceptVisible"))}}function i4(t,i){if(t&1&&(f(0,EA,2,1,"div",8)(1,kA,4,2,"div",8),m(2,"div",9,1),f(4,FA,1,3,"i",10)(5,LA,2,1,"ng-container",11)(6,NA,1,1,"span",12)(7,HA,2,4,"ng-container",11),g(),f(8,jA,3,1,"div",13)(9,n4,3,2,"div",13)),t&2){let e=d(3);c("ngIf",e.headerTemplate),p(),c("ngIf",!e.headerTemplate),p(3),c("ngIf",!e.iconTemplate&&e.option("icon")),p(),c("ngIf",e.iconTemplate),p(),c("ngIf",!e.messageTemplate),p(),c("ngIf",e.messageTemplate),p(),c("ngIf",e.footer||e.footerTemplate),p(),c("ngIf",!e.footer&&!e.footerTemplate)}}function r4(t,i){if(t&1){let e=F();m(0,"div",5),E("@animation.start",function(r){y(e);let o=d(2);return v(o.onAnimationStart(r))})("@animation.done",function(r){y(e);let o=d(2);return v(o.onAnimationEnd(r))}),f(1,SA,2,4,"ng-container",6)(2,i4,10,8,"ng-template",null,0,it),g()}if(t&2){let e=Ee(3),n=d(2);R(n.styleClass),c("ngClass",U(9,bA,n.rtl))("ngStyle",n.style)("@animation",U(14,IA,we(11,wA,n.transformOptions,n.transitionOptions))),w("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),p(),c("ngIf",n.headlessTemplate)("ngIfElse",e)}}function o4(t,i){if(t&1&&(m(0,"div",3),f(1,r4,4,16,"div",4),g()),t&2){let e=d();R(e.maskStyleClass),c("ngClass",e.getMaskClass()),p(),c("ngIf",e.visible)}}var s4=Bi([Je({transform:"{{transform}}",opacity:0}),vt("{{transition}}",Je({transform:"none",opacity:1}))]),a4=Bi([vt("{{transition}}",Je({transform:"{{transform}}",opacity:0}))]),eb=(()=>{class t{el;renderer;confirmationService;zone;cd;config;document;header;icon;message;get style(){return this._style}set style(e){this._style=e,this.cd.markForCheck()}styleClass;maskStyleClass;acceptIcon;acceptLabel;closeAriaLabel;acceptAriaLabel;acceptVisible=!0;rejectIcon;rejectLabel;rejectAriaLabel;rejectVisible=!0;acceptButtonStyleClass;rejectButtonStyleClass;closeOnEscape=!0;dismissableMask;blockScroll=!0;rtl=!1;closable=!0;appendTo;key;autoZIndex=!0;baseZIndex=0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";focusTrap=!0;defaultFocus="accept";breakpoints;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0),this.cd.markForCheck()}get position(){return this._position}set position(e){switch(this._position=e,e){case"top-left":case"bottom-left":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"top-right":case"bottom-right":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)";break}}onHide=new O;footer;contentViewChild;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"message":this.messageTemplate=e.template;break;case"icon":this.iconTemplate=e.template;break;case"rejecticon":this.rejectIconTemplate=e.template;break;case"accepticon":this.acceptIconTemplate=e.template;break;case"headless":this.headlessTemplate=e.template;break}})}headerTemplate;footerTemplate;rejectIconTemplate;acceptIconTemplate;messageTemplate;iconTemplate;headlessTemplate;confirmation;_visible;_style;maskVisible;documentEscapeListener;container;wrapper;contentContainer;subscription;maskClickListener;preWidth;_position="center";transformOptions="scale(0.7)";styleElement;id=me();ariaLabelledBy=this.getAriaLabelledBy();confirmationOptions;translationSubscription;constructor(e,n,r,o,s,a,l){this.el=e,this.renderer=n,this.confirmationService=r,this.zone=o,this.cd=s,this.config=a,this.document=l,this.subscription=this.confirmationService.requireConfirmation$.subscribe(u=>{if(!u){this.hide();return}u.key===this.key&&(this.confirmation=u,this.confirmationOptions={message:this.confirmation.message||this.message,icon:this.confirmation.icon||this.icon,header:this.confirmation.header||this.header,rejectVisible:this.confirmation.rejectVisible==null?this.rejectVisible:this.confirmation.rejectVisible,acceptVisible:this.confirmation.acceptVisible==null?this.acceptVisible:this.confirmation.acceptVisible,acceptLabel:this.confirmation.acceptLabel||this.acceptLabel,rejectLabel:this.confirmation.rejectLabel||this.rejectLabel,acceptIcon:this.confirmation.acceptIcon||this.acceptIcon,rejectIcon:this.confirmation.rejectIcon||this.rejectIcon,acceptButtonStyleClass:this.confirmation.acceptButtonStyleClass||this.acceptButtonStyleClass,rejectButtonStyleClass:this.confirmation.rejectButtonStyleClass||this.rejectButtonStyleClass,defaultFocus:this.confirmation.defaultFocus||this.defaultFocus,blockScroll:this.confirmation.blockScroll===!1||this.confirmation.blockScroll===!0?this.confirmation.blockScroll:this.blockScroll,closeOnEscape:this.confirmation.closeOnEscape===!1||this.confirmation.closeOnEscape===!0?this.confirmation.closeOnEscape:this.closeOnEscape,dismissableMask:this.confirmation.dismissableMask===!1||this.confirmation.dismissableMask===!0?this.confirmation.dismissableMask:this.dismissableMask},this.confirmation.accept&&(this.confirmation.acceptEvent=new O,this.confirmation.acceptEvent.subscribe(this.confirmation.accept)),this.confirmation.reject&&(this.confirmation.rejectEvent=new O,this.confirmation.rejectEvent.subscribe(this.confirmation.reject)),this.visible=!0)})}ngOnInit(){this.breakpoints&&this.createStyle(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.visible&&this.cd.markForCheck()})}getAriaLabelledBy(){return this.header!==null?me()+"_header":null}option(e){let n=this.confirmationOptions||this;if(n.hasOwnProperty(e))return n[e]}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.contentContainer=b.findSingle(this.container,".p-dialog-content"),this.container?.setAttribute(this.id,""),this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.enableModality();let n=this.getElementToFocus();n&&n.focus();break}}onAnimationEnd(e){switch(e.toState){case"void":this.onOverlayHide();break}}getElementToFocus(){switch(this.option("defaultFocus")){case"accept":return b.findSingle(this.container,".p-confirm-dialog-accept");case"reject":return b.findSingle(this.container,".p-confirm-dialog-reject");case"close":return b.findSingle(this.container,".p-dialog-header-close");case"none":return null;default:return b.findSingle(this.container,".p-confirm-dialog-accept")}}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.document.body.appendChild(this.wrapper):b.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.wrapper&&this.appendTo&&this.el.nativeElement.appendChild(this.wrapper)}enableModality(){this.option("blockScroll")&&b.addClass(this.document.body,"p-overflow-hidden"),this.option("dismissableMask")&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)}))}disableModality(){this.maskVisible=!1,this.option("blockScroll")&&b.removeClass(this.document.body,"p-overflow-hidden"),this.dismissableMask&&this.unbindMaskClickListener(),this.container&&!this.cd.destroyed&&this.cd.detectChanges()}createStyle(){if(!this.styleElement){this.styleElement=this.document.createElement("style"),this.styleElement.type="text/css",this.document.head.appendChild(this.styleElement);let e="";for(let n in this.breakpoints)e+=`
42
+ @media screen and (max-width: ${n}) {
43
+ .p-dialog[${this.id}] {
44
+ width: ${this.breakpoints[n]} !important;
45
+ }
46
+ }
47
+ `;this.styleElement.innerHTML=e}}close(e){this.confirmation?.rejectEvent&&this.confirmation.rejectEvent.emit(ro.CANCEL),this.hide(ro.CANCEL),e.preventDefault()}hide(e){this.onHide.emit(e),this.visible=!1,this.confirmation=null,this.confirmationOptions=null}moveOnTop(){this.autoZIndex&&(qe.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}getMaskClass(){let e={"p-dialog-mask p-component-overlay":!0,"p-dialog-mask-scrollblocker":this.blockScroll};return e[this.getPositionClass().toString()]=!0,e}getPositionClass(){let n=["left","right","top","top-left","top-right","bottom","bottom-left","bottom-right"].find(r=>r===this.position);return n?`p-dialog-${n}`:""}bindGlobalListeners(){if(this.option("closeOnEscape")&&this.closable||this.focusTrap&&!this.documentEscapeListener){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{if(n.which==27&&this.option("closeOnEscape")&&this.closable&&parseInt(this.container.style.zIndex)===qe.get(this.container)&&this.visible&&this.close(n),n.which===9&&this.focusTrap){n.preventDefault();let r=b.getFocusableElements(this.container);if(r&&r.length>0)if(!r[0].ownerDocument.activeElement)r[0].focus();else{let o=r.indexOf(r[0].ownerDocument.activeElement);n.shiftKey?o==-1||o===0?r[r.length-1].focus():r[o-1].focus():o==-1||o===r.length-1?r[0].focus():r[o+1].focus()}}})}}unbindGlobalListeners(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}onOverlayHide(){this.container&&this.autoZIndex&&qe.clear(this.container),this.disableModality(),this.unbindGlobalListeners(),this.container=null}destroyStyle(){this.styleElement&&(this.document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.restoreAppend(),this.onOverlayHide(),this.subscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.destroyStyle()}accept(){this.confirmation&&this.confirmation.acceptEvent&&this.confirmation.acceptEvent.emit(),this.hide(ro.ACCEPT)}reject(){this.confirmation&&this.confirmation.rejectEvent&&this.confirmation.rejectEvent.emit(ro.REJECT),this.hide(ro.REJECT)}get acceptButtonLabel(){return this.option("acceptLabel")||this.config.getTranslation(ze.ACCEPT)}get rejectButtonLabel(){return this.option("rejectLabel")||this.config.getTranslation(ze.REJECT)}static \u0275fac=function(n){return new(n||t)(x(_e),x(Be),x(gr),x(ge),x(ce),x(ot),x(Se))};static \u0275cmp=P({type:t,selectors:[["p-confirmDialog"]],contentQueries:function(n,r,o){if(n&1&&(Re(o,ss,5),Re(o,xe,4)),n&2){let s;j(s=z())&&(r.footer=s.first),j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&Z(yA,5),n&2){let o;j(o=z())&&(r.contentViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",icon:"icon",message:"message",style:"style",styleClass:"styleClass",maskStyleClass:"maskStyleClass",acceptIcon:"acceptIcon",acceptLabel:"acceptLabel",closeAriaLabel:"closeAriaLabel",acceptAriaLabel:"acceptAriaLabel",acceptVisible:[C.HasDecoratorInputTransform,"acceptVisible","acceptVisible",T],rejectIcon:"rejectIcon",rejectLabel:"rejectLabel",rejectAriaLabel:"rejectAriaLabel",rejectVisible:[C.HasDecoratorInputTransform,"rejectVisible","rejectVisible",T],acceptButtonStyleClass:"acceptButtonStyleClass",rejectButtonStyleClass:"rejectButtonStyleClass",closeOnEscape:[C.HasDecoratorInputTransform,"closeOnEscape","closeOnEscape",T],dismissableMask:[C.HasDecoratorInputTransform,"dismissableMask","dismissableMask",T],blockScroll:[C.HasDecoratorInputTransform,"blockScroll","blockScroll",T],rtl:[C.HasDecoratorInputTransform,"rtl","rtl",T],closable:[C.HasDecoratorInputTransform,"closable","closable",T],appendTo:"appendTo",key:"key",autoZIndex:[C.HasDecoratorInputTransform,"autoZIndex","autoZIndex",T],baseZIndex:[C.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Q],transitionOptions:"transitionOptions",focusTrap:[C.HasDecoratorInputTransform,"focusTrap","focusTrap",T],defaultFocus:"defaultFocus",breakpoints:"breakpoints",visible:"visible",position:"position"},outputs:{onHide:"onHide"},features:[fe],ngContentSelectors:CA,decls:1,vars:1,consts:[["notHeadless",""],["content",""],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],["role","alertdialog",3,"ngClass","ngStyle","class",4,"ngIf"],["role","alertdialog",3,"ngClass","ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-dialog-header",4,"ngIf"],[1,"p-dialog-content"],[3,"ngClass","class",4,"ngIf"],[4,"ngIf"],["class","p-confirm-dialog-message",3,"innerHTML",4,"ngIf"],["class","p-dialog-footer",4,"ngIf"],[1,"p-dialog-header"],[4,"ngTemplateOutlet"],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["type","button","role","button",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["type","button","role","button",3,"click","keydown.enter","ngClass"],[1,"p-confirm-dialog-message",3,"innerHTML"],[1,"p-dialog-footer"],["type","button","pRipple","","pButton","",3,"label","ngClass","class","click",4,"ngIf"],["type","button","pRipple","","pButton","",3,"click","label","ngClass"],["class","p-button-icon-left",4,"ngIf"],[3,"class",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon-left"]],template:function(n,r){n&1&&(Gt(vA),f(0,o4,2,4,"div",2)),n&2&&c("ngIf",r.maskVisible)},dependencies:()=>[Oe,Ce,Ae,je,bn,Dt,mt,Vt],styles:[`@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}
48
+ `],encapsulation:2,data:{animation:[en("animation",[ft("void => visible",[ji(s4)]),ft("visible => void",[ji(a4)])])]},changeDetection:0})}return t})(),tb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,Yt,At,mt,Vt,Yt,ke]})}return t})();var nb=(()=>{class t{pFocusTrapDisabled=!1;host=W(_e);onkeydown(e){if(this.pFocusTrapDisabled!==!0){e.preventDefault();let n=b.getNextFocusableElement(this.host.nativeElement,e.shiftKey);n&&(n.focus(),n.select?.())}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=$e({type:t,selectors:[["","pFocusTrap",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,r){n&1&&E("keydown.tab",function(s){return r.onkeydown(s)})("keydown.shift.tab",function(s){return r.onkeydown(s)})},inputs:{pFocusTrapDisabled:[C.HasDecoratorInputTransform,"pFocusTrapDisabled","pFocusTrapDisabled",T]},features:[fe]})}return t})(),ib=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue]})}return t})();var xm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["WindowMaximizeIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Tm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["WindowMinimizeIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var u4=["titlebar"],d4=["content"],p4=["footer"],h4=["*",[["p-header"]],[["p-footer"]]],f4=["*","p-header","p-footer"],m4=(t,i,e,n,r,o,s,a,l,u)=>({"p-dialog-mask":!0,"p-component-overlay p-component-overlay-enter":t,"p-dialog-mask-scrollblocker":i,"p-dialog-left":e,"p-dialog-right":n,"p-dialog-top":r,"p-dialog-top-left":o,"p-dialog-top-right":s,"p-dialog-bottom":a,"p-dialog-bottom-left":l,"p-dialog-bottom-right":u}),g4=(t,i,e,n)=>({"p-dialog p-component":!0,"p-dialog-rtl":t,"p-dialog-draggable":i,"p-dialog-resizable":e,"p-dialog-maximized":n}),_4=(t,i)=>({transform:t,transition:i}),y4=t=>({value:"visible",params:t}),v4=()=>({"p-dialog-header-icon p-dialog-header-maximize p-link":!0}),C4=()=>({"p-dialog-header-icon p-dialog-header-close p-link":!0});function b4(t,i){t&1&&H(0)}function w4(t,i){if(t&1&&(L(0),f(1,b4,1,0,"ng-container",10),N()),t&2){let e=d(3);p(),c("ngTemplateOutlet",e.headlessTemplate)}}function I4(t,i){if(t&1){let e=F();m(0,"div",15),E("mousedown",function(r){y(e);let o=d(4);return v(o.initResize(r))}),g()}}function x4(t,i){if(t&1&&(m(0,"span",21),K(1),g()),t&2){let e=d(5);c("id",e.ariaLabelledBy),p(),se(e.header)}}function T4(t,i){if(t&1&&(m(0,"span",21),xt(1,1),g()),t&2){let e=d(5);c("id",e.ariaLabelledBy)}}function S4(t,i){t&1&&H(0)}function D4(t,i){if(t&1&&D(0,"span",25),t&2){let e=d(6);c("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function E4(t,i){t&1&&D(0,"WindowMaximizeIcon",27),t&2&&c("styleClass","p-dialog-header-maximize-icon")}function M4(t,i){t&1&&D(0,"WindowMinimizeIcon",27),t&2&&c("styleClass","p-dialog-header-maximize-icon")}function O4(t,i){if(t&1&&(L(0),f(1,E4,1,1,"WindowMaximizeIcon",26)(2,M4,1,1,"WindowMinimizeIcon",26),N()),t&2){let e=d(6);p(),c("ngIf",!e.maximized&&!e.maximizeIconTemplate),p(),c("ngIf",e.maximized&&!e.minimizeIconTemplate)}}function k4(t,i){}function F4(t,i){t&1&&f(0,k4,0,0,"ng-template")}function A4(t,i){if(t&1&&(L(0),f(1,F4,1,0,null,10),N()),t&2){let e=d(6);p(),c("ngTemplateOutlet",e.maximizeIconTemplate)}}function R4(t,i){}function L4(t,i){t&1&&f(0,R4,0,0,"ng-template")}function N4(t,i){if(t&1&&(L(0),f(1,L4,1,0,null,10),N()),t&2){let e=d(6);p(),c("ngTemplateOutlet",e.minimizeIconTemplate)}}function V4(t,i){if(t&1){let e=F();m(0,"button",22),E("click",function(){y(e);let r=d(5);return v(r.maximize())})("keydown.enter",function(){y(e);let r=d(5);return v(r.maximize())}),f(1,D4,1,1,"span",23)(2,O4,3,2,"ng-container",24)(3,A4,2,1,"ng-container",24)(4,N4,2,1,"ng-container",24),g()}if(t&2){let e=d(5);c("ngClass",Qe(7,v4)),w("tabindex",e.maximizable?"0":"-1")("aria-label",e.maximizeLabel),p(),c("ngIf",e.maximizeIcon&&!e.maximizeIconTemplate&&!e.minimizeIconTemplate),p(),c("ngIf",!e.maximizeIcon),p(),c("ngIf",!e.maximized),p(),c("ngIf",e.maximized)}}function P4(t,i){if(t&1&&D(0,"span",30),t&2){let e=d(7);c("ngClass",e.closeIcon)}}function H4(t,i){t&1&&D(0,"TimesIcon",27),t&2&&c("styleClass","p-dialog-header-close-icon")}function B4(t,i){if(t&1&&(L(0),f(1,P4,1,1,"span",29)(2,H4,1,1,"TimesIcon",26),N()),t&2){let e=d(6);p(),c("ngIf",e.closeIcon),p(),c("ngIf",!e.closeIcon)}}function j4(t,i){}function z4(t,i){t&1&&f(0,j4,0,0,"ng-template")}function U4(t,i){if(t&1&&(m(0,"span"),f(1,z4,1,0,null,10),g()),t&2){let e=d(6);p(),c("ngTemplateOutlet",e.closeIconTemplate)}}function $4(t,i){if(t&1){let e=F();m(0,"button",28),E("click",function(r){y(e);let o=d(5);return v(o.close(r))})("keydown.enter",function(r){y(e);let o=d(5);return v(o.close(r))}),f(1,B4,3,2,"ng-container",24)(2,U4,2,1,"span",24),g()}if(t&2){let e=d(5);c("ngClass",Qe(5,C4)),w("aria-label",e.closeAriaLabel)("tabindex",e.closeTabindex),p(),c("ngIf",!e.closeIconTemplate),p(),c("ngIf",e.closeIconTemplate)}}function G4(t,i){if(t&1){let e=F();m(0,"div",16,3),E("mousedown",function(r){y(e);let o=d(4);return v(o.initDrag(r))}),f(2,x4,2,2,"span",17)(3,T4,2,1,"span",17)(4,S4,1,0,"ng-container",10),m(5,"div",18),f(6,V4,5,8,"button",19)(7,$4,3,6,"button",20),g()()}if(t&2){let e=d(4);p(2),c("ngIf",!e.headerFacet&&!e.headerTemplate),p(),c("ngIf",e.headerFacet),p(),c("ngTemplateOutlet",e.headerTemplate),p(2),c("ngIf",e.maximizable),p(),c("ngIf",e.closable)}}function W4(t,i){t&1&&H(0)}function q4(t,i){t&1&&H(0)}function K4(t,i){if(t&1&&(m(0,"div",31,4),xt(2,2),f(3,q4,1,0,"ng-container",10),g()),t&2){let e=d(4);p(3),c("ngTemplateOutlet",e.footerTemplate)}}function Q4(t,i){if(t&1&&(f(0,I4,1,0,"div",11)(1,G4,8,5,"div",12),m(2,"div",13,2),xt(4),f(5,W4,1,0,"ng-container",10),g(),f(6,K4,4,1,"div",14)),t&2){let e=d(3);c("ngIf",e.resizable),p(),c("ngIf",e.showHeader),p(),R(e.contentStyleClass),c("ngClass","p-dialog-content")("ngStyle",e.contentStyle),p(3),c("ngTemplateOutlet",e.contentTemplate),p(),c("ngIf",e.footerFacet||e.footerTemplate)}}function Z4(t,i){if(t&1){let e=F();m(0,"div",8,0),E("@animation.start",function(r){y(e);let o=d(2);return v(o.onAnimationStart(r))})("@animation.done",function(r){y(e);let o=d(2);return v(o.onAnimationEnd(r))}),f(2,w4,2,1,"ng-container",9)(3,Q4,7,8,"ng-template",null,1,it),g()}if(t&2){let e=Ee(4),n=d(2);R(n.styleClass),c("ngClass",Gr(10,g4,n.rtl,n.draggable,n.resizable,n.maximized))("ngStyle",n.style)("pFocusTrapDisabled",n.focusTrap===!1)("@animation",U(18,y4,we(15,_4,n.transformOptions,n.transitionOptions))),w("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),p(2),c("ngIf",n.headlessTemplate)("ngIfElse",e)}}function Y4(t,i){if(t&1&&(m(0,"div",6),f(1,Z4,5,20,"div",7),g()),t&2){let e=d();_t(e.maskStyle),R(e.maskStyleClass),c("ngClass",zo(6,m4,[e.modal,e.modal||e.blockScroll,e.position==="left",e.position==="right",e.position==="top",e.position==="topleft"||e.position==="top-left",e.position==="topright"||e.position==="top-right",e.position==="bottom",e.position==="bottomleft"||e.position==="bottom-left",e.position==="bottomright"||e.position==="bottom-right"])),p(),c("ngIf",e.visible)}}var X4=Bi([Je({transform:"{{transform}}",opacity:0}),vt("{{transition}}")]),J4=Bi([vt("{{transition}}",Je({transform:"{{transform}}",opacity:0}))]),rb=(()=>{class t{document;platformId;el;renderer;zone;cd;config;header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style=$({},e),this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)";break}}onShow=new O;onHide=new O;visibleChange=new O;onResizeInit=new O;onResizeEnd=new O;onDragEnd=new O;onMaximize=new O;headerFacet;footerFacet;templates;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;maximizeIconTemplate;closeIconTemplate;minimizeIconTemplate;headlessTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=me();_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;get maximizeLabel(){return this.config.getTranslation(ze.ARIA).maximizeLabel}constructor(e,n,r,o,s,a,l){this.document=e,this.platformId=n,this.el=r,this.renderer=o,this.zone=s,this.cd=a,this.config=l,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"maximizeicon":this.maximizeIconTemplate=e.template;break;case"minimizeicon":this.minimizeIconTemplate=e.template;break;case"headless":this.headlessTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}ngOnInit(){this.breakpoints&&this.createStyle()}getAriaLabelledBy(){return this.header!==null?me()+"_header":null}focus(e=this.contentViewChild.nativeElement){let n=b.getFocusableElement(e,"[autofocus]");if(n){this.zone.runOutsideAngular(()=>{setTimeout(()=>n.focus(),5)});return}let r=b.getFocusableElement(e);r?this.zone.runOutsideAngular(()=>{setTimeout(()=>r.focus(),5)}):this.footerViewChild&&this.focus(this.footerViewChild.nativeElement)}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&b.blockBodyScroll()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll(".p-dialog-mask-scrollblocker");this.modal&&e&&e.length==1&&b.unblockBodyScroll(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?b.blockBodyScroll():b.unblockBodyScroll()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(qe.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(bt(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`
49
+ @media screen and (max-width: ${n}) {
50
+ .p-dialog[${this.id}]:not(.p-dialog-maximized) {
51
+ width: ${this.breakpoints[n]} !important;
52
+ }
53
+ }
54
+ `;this.renderer.setProperty(this.styleElement,"innerHTML",e)}}initDrag(e){b.hasClass(e.target,"p-dialog-header-icon")||b.hasClass(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",b.addClass(this.document.body,"p-unselectable-text"))}onDrag(e){if(this.dragging){let n=b.getOuterWidth(this.container),r=b.getOuterHeight(this.container),o=e.pageX-this.lastPageX,s=e.pageY-this.lastPageY,a=this.container.getBoundingClientRect(),l=getComputedStyle(this.container),u=parseFloat(l.marginLeft),h=parseFloat(l.marginTop),_=a.left+o-u,I=a.top+s-h,S=b.getViewport();this.container.style.position="fixed",this.keepInViewport?(_>=this.minX&&_+n<S.width&&(this._style.left=`${_}px`,this.lastPageX=e.pageX,this.container.style.left=`${_}px`),I>=this.minY&&I+r<S.height&&(this._style.top=`${I}px`,this.lastPageY=e.pageY,this.container.style.top=`${I}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${_}px`,this.lastPageY=e.pageY,this.container.style.top=`${I}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,b.removeClass(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,b.addClass(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,r=e.pageY-this.lastPageY,o=b.getOuterWidth(this.container),s=b.getOuterHeight(this.container),a=b.getOuterHeight(this.contentViewChild?.nativeElement),l=o+n,u=s+r,h=this.container.style.minWidth,_=this.container.style.minHeight,I=this.container.getBoundingClientRect(),S=b.getViewport();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(l+=n,u+=r),(!h||l>parseInt(h))&&I.left+l<S.width&&(this._style.width=l+"px",this.container.style.width=this._style.width),(!_||u>parseInt(_))&&I.top+u<S.height&&(this.contentViewChild.nativeElement.style.height=a+u-s+"px",this._style.height&&(this._style.height=u+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,b.removeClass(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.window,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.window,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.window,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.window,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.key=="Escape"&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.wrapper):b.appendChild(this.wrapper,this.appendTo))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),!this.modal&&this.blockScroll&&b.addClass(this.document.body,"p-overflow-hidden"),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&b.addClass(this.wrapper,"p-component-overlay-leave");break}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck();break;case"visible":this.onShow.emit({});break}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(b.removeClass(this.document.body,"p-overflow-hidden"),this.document.body.style.removeProperty("--scrollbar-width"),this.maximized=!1),this.modal&&this.disableModality(),this.blockScroll&&b.removeClass(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&qe.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?$({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(x(Se),x(pt),x(_e),x(Be),x(ge),x(ce),x(ot))};static \u0275cmp=P({type:t,selectors:[["p-dialog"]],contentQueries:function(n,r,o){if(n&1&&(Re(o,uu,5),Re(o,ss,5),Re(o,xe,4)),n&2){let s;j(s=z())&&(r.headerFacet=s.first),j(s=z())&&(r.footerFacet=s.first),j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(u4,5),Z(d4,5),Z(p4,5)),n&2){let o;j(o=z())&&(r.headerViewChild=o.first),j(o=z())&&(r.contentViewChild=o.first),j(o=z())&&(r.footerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{header:"header",draggable:[C.HasDecoratorInputTransform,"draggable","draggable",T],resizable:[C.HasDecoratorInputTransform,"resizable","resizable",T],positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[C.HasDecoratorInputTransform,"modal","modal",T],closeOnEscape:[C.HasDecoratorInputTransform,"closeOnEscape","closeOnEscape",T],dismissableMask:[C.HasDecoratorInputTransform,"dismissableMask","dismissableMask",T],rtl:[C.HasDecoratorInputTransform,"rtl","rtl",T],closable:[C.HasDecoratorInputTransform,"closable","closable",T],responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[C.HasDecoratorInputTransform,"showHeader","showHeader",T],breakpoint:"breakpoint",blockScroll:[C.HasDecoratorInputTransform,"blockScroll","blockScroll",T],autoZIndex:[C.HasDecoratorInputTransform,"autoZIndex","autoZIndex",T],baseZIndex:[C.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Q],minX:[C.HasDecoratorInputTransform,"minX","minX",Q],minY:[C.HasDecoratorInputTransform,"minY","minY",Q],focusOnShow:[C.HasDecoratorInputTransform,"focusOnShow","focusOnShow",T],maximizable:[C.HasDecoratorInputTransform,"maximizable","maximizable",T],keepInViewport:[C.HasDecoratorInputTransform,"keepInViewport","keepInViewport",T],focusTrap:[C.HasDecoratorInputTransform,"focusTrap","focusTrap",T],transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",visible:"visible",style:"style",position:"position"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[fe],ngContentSelectors:f4,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["footer",""],[3,"class","style","ngClass",4,"ngIf"],[3,"ngClass"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","class","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","","role","dialog",3,"ngClass","ngStyle","pFocusTrapDisabled"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["class","p-resizable-handle","style","z-index: 90;",3,"mousedown",4,"ngIf"],["class","p-dialog-header",3,"mousedown",4,"ngIf"],[3,"ngClass","ngStyle"],["class","p-dialog-footer",4,"ngIf"],[1,"p-resizable-handle",2,"z-index","90",3,"mousedown"],[1,"p-dialog-header",3,"mousedown"],["class","p-dialog-title",3,"id",4,"ngIf"],[1,"p-dialog-header-icons"],["role","button","type","button","pRipple","","pButton","",3,"ngClass","click","keydown.enter",4,"ngIf"],["type","button","pRipple","","pButton","",3,"ngClass","click","keydown.enter",4,"ngIf"],[1,"p-dialog-title",3,"id"],["role","button","type","button","pRipple","","pButton","",3,"click","keydown.enter","ngClass"],["class","p-dialog-header-maximize-icon",3,"ngClass",4,"ngIf"],[4,"ngIf"],[1,"p-dialog-header-maximize-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],["type","button","pRipple","","pButton","",3,"click","keydown.enter","ngClass"],["class","p-dialog-header-close-icon",3,"ngClass",4,"ngIf"],[1,"p-dialog-header-close-icon",3,"ngClass"],[1,"p-dialog-footer"]],template:function(n,r){n&1&&(Gt(h4),f(0,Y4,2,17,"div",5)),n&2&&c("ngIf",r.maskVisible)},dependencies:()=>[Oe,Ce,Ae,je,nb,bn,Dt,mt,xm,Tm],styles:[`@layer primeng{.p-dialog-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;pointer-events:none}.p-dialog-mask.p-component-overlay{pointer-events:auto}.p-dialog{display:flex;flex-direction:column;pointer-events:auto;max-height:90%;transform:scale(1);position:relative}.p-dialog-content{overflow-y:auto;flex-grow:1}.p-dialog-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.p-dialog-draggable .p-dialog-header{cursor:move}.p-dialog-footer{flex-shrink:0}.p-dialog .p-dialog-header-icons{display:flex;align-items:center}.p-dialog .p-dialog-header-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-fluid .p-dialog-footer .p-button{width:auto}.p-dialog-top .p-dialog,.p-dialog-bottom .p-dialog,.p-dialog-left .p-dialog,.p-dialog-right .p-dialog,.p-dialog-top-left .p-dialog,.p-dialog-top-right .p-dialog,.p-dialog-bottom-left .p-dialog,.p-dialog-bottom-right .p-dialog{margin:.75rem;transform:translateZ(0)}.p-dialog-maximized{-webkit-transition:none;transition:none;transform:none;width:100vw!important;height:100vh!important;top:0!important;left:0!important;max-height:100%;height:100%}.p-dialog-maximized .p-dialog-content{flex-grow:1}.p-dialog-left{justify-content:flex-start}.p-dialog-right{justify-content:flex-end}.p-dialog-top{align-items:flex-start}.p-dialog-top-left{justify-content:flex-start;align-items:flex-start}.p-dialog-top-right{justify-content:flex-end;align-items:flex-start}.p-dialog-bottom{align-items:flex-end}.p-dialog-bottom-left{justify-content:flex-start;align-items:flex-end}.p-dialog-bottom-right{justify-content:flex-end;align-items:flex-end}.p-dialog .p-resizable-handle{position:absolute;font-size:.1px;display:block;cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.p-confirm-dialog .p-dialog-content{display:flex;align-items:center}}
55
+ `],encapsulation:2,data:{animation:[en("animation",[ft("void => visible",[ji(X4)]),ft("visible => void",[ji(J4)])])]},changeDetection:0})}return t})(),Cu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,ib,Yt,At,mt,xm,Tm,ke]})}return t})();var br=(()=>{class t{el;ngModel;cd;filled;constructor(e,n,r){this.el=e,this.ngModel=n,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}static \u0275fac=function(n){return new(n||t)(x(_e),x(vn,8),x(ce))};static \u0275dir=$e({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(n,r){n&1&&E("input",function(s){return r.onInput(s)}),n&2&&Ot("p-filled",r.filled)}})}return t})(),Gn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue]})}return t})();var Sm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["ExclamationTriangleIcon"]],standalone:!0,features:[ne,J],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1)(3,"path",2)(4,"path",3),g(),m(5,"defs")(6,"clipPath",4),D(7,"rect",5),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(5),c("id",r.pathId))},encapsulation:2})}return t})();var Dm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["InfoCircleIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Gi=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["TimesCircleIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var ob=["container"],tR=t=>[t,"p-toast-message"],nR=(t,i,e,n)=>({showTransformParams:t,hideTransformParams:i,showTransitionParams:e,hideTransitionParams:n}),iR=t=>({value:"visible",params:t}),rR=(t,i)=>({$implicit:t,closeFn:i}),oR=t=>({$implicit:t});function sR(t,i){t&1&&H(0)}function aR(t,i){if(t&1&&(L(0),f(1,sR,1,0,"ng-container",4),N()),t&2){let e=d();p(),c("ngTemplateOutlet",e.headlessTemplate)("ngTemplateOutletContext",we(2,rR,e.message,e.onCloseIconClick))}}function lR(t,i){if(t&1&&D(0,"span"),t&2){let e=d(3);R("p-toast-message-icon pi "+e.message.icon)}}function cR(t,i){t&1&&D(0,"CheckIcon"),t&2&&w("aria-hidden",!0)("data-pc-section","icon")}function uR(t,i){t&1&&D(0,"InfoCircleIcon"),t&2&&w("aria-hidden",!0)("data-pc-section","icon")}function dR(t,i){t&1&&D(0,"TimesCircleIcon"),t&2&&w("aria-hidden",!0)("data-pc-section","icon")}function pR(t,i){t&1&&D(0,"ExclamationTriangleIcon"),t&2&&w("aria-hidden",!0)("data-pc-section","icon")}function hR(t,i){if(t&1&&(m(0,"span",13),L(1),f(2,cR,1,2,"CheckIcon",6)(3,uR,1,2,"InfoCircleIcon",6)(4,dR,1,2,"TimesCircleIcon",6)(5,pR,1,2,"ExclamationTriangleIcon",6),N(),g()),t&2){let e=d(3);w("aria-hidden",!0)("data-pc-section","icon"),p(2),c("ngIf",e.message.severity==="success"),p(),c("ngIf",e.message.severity==="info"),p(),c("ngIf",e.message.severity==="error"),p(),c("ngIf",e.message.severity==="warn")}}function fR(t,i){if(t&1&&(L(0),f(1,lR,1,2,"span",8)(2,hR,6,6,"span",9),m(3,"div",10)(4,"div",11),K(5),g(),m(6,"div",12),K(7),g()(),N()),t&2){let e=d(2);p(),c("ngIf",e.message.icon),p(),c("ngIf",!e.message.icon),p(),w("data-pc-section","text"),p(),w("data-pc-section","summary"),p(),se(e.message.summary),p(),w("data-pc-section","detail"),p(),se(e.message.detail)}}function mR(t,i){t&1&&H(0)}function gR(t,i){if(t&1&&D(0,"span"),t&2){let e=d(3);R("pt-1 text-base p-toast-message-icon pi "+e.message.closeIcon)}}function _R(t,i){t&1&&D(0,"TimesIcon",16),t&2&&(c("styleClass","p-toast-icon-close-icon"),w("aria-hidden",!0)("data-pc-section","closeicon"))}function yR(t,i){if(t&1){let e=F();m(0,"button",14),E("click",function(r){y(e);let o=d(2);return v(o.onCloseIconClick(r))})("keydown.enter",function(r){y(e);let o=d(2);return v(o.onCloseIconClick(r))}),f(1,gR,1,2,"span",8)(2,_R,1,3,"TimesIcon",15),g()}if(t&2){let e=d(2);w("aria-label",e.closeAriaLabel)("data-pc-section","closebutton"),p(),c("ngIf",e.message.closeIcon),p(),c("ngIf",!e.message.closeIcon)}}function vR(t,i){if(t&1&&(m(0,"div",5),f(1,fR,8,7,"ng-container",6)(2,mR,1,0,"ng-container",4)(3,yR,3,4,"button",7),g()),t&2){let e=d();c("ngClass",e.message==null?null:e.message.contentStyleClass),w("data-pc-section","content"),p(),c("ngIf",!e.template),p(),c("ngTemplateOutlet",e.template)("ngTemplateOutletContext",U(6,oR,e.message)),p(),c("ngIf",(e.message==null?null:e.message.closable)!==!1)}}function CR(t,i){if(t&1){let e=F();m(0,"p-toastItem",3),E("onClose",function(r){y(e);let o=d();return v(o.onMessageClose(r))})("@toastAnimation.start",function(r){y(e);let o=d();return v(o.onAnimationStart(r))})("@toastAnimation.done",function(r){y(e);let o=d();return v(o.onAnimationEnd(r))}),g()}if(t&2){let e=i.$implicit,n=i.index,r=d();c("message",e)("index",n)("life",r.life)("template",r.template)("headlessTemplate",r.headlessTemplate)("@toastAnimation",void 0)("showTransformOptions",r.showTransformOptions)("hideTransformOptions",r.hideTransformOptions)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}}var bR=(()=>{class t{zone;config;message;index;life;template;headlessTemplate;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new O;containerViewChild;timeout;constructor(e,n){this.zone=e,this.config=n}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message?.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message?.life||this.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick=e=>{this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),e.preventDefault()};get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}ngOnDestroy(){this.clearTimeout()}static \u0275fac=function(n){return new(n||t)(x(ge),x(ot))};static \u0275cmp=P({type:t,selectors:[["p-toastItem"]],viewQuery:function(n,r){if(n&1&&Z(ob,5),n&2){let o;j(o=z())&&(r.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:[C.HasDecoratorInputTransform,"index","index",Q],life:[C.HasDecoratorInputTransform,"life","life",Q],template:"template",headlessTemplate:"headlessTemplate",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},features:[fe],decls:5,vars:18,consts:[["container",""],["notHeadless",""],["role","alert","aria-live","assertive","aria-atomic","true",3,"mouseenter","mouseleave","ngClass"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"class",4,"ngIf"],["class","p-toast-message-icon",4,"ngIf"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],[1,"p-toast-message-icon"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[3,"styleClass",4,"ngIf"],[3,"styleClass"]],template:function(n,r){if(n&1){let o=F();m(0,"div",2,0),E("mouseenter",function(){return y(o),v(r.onMouseEnter())})("mouseleave",function(){return y(o),v(r.onMouseLeave())}),f(2,aR,2,5,"ng-container",3)(3,vR,4,8,"ng-template",null,1,it),g()}if(n&2){let o=Ee(4);R(r.message==null?null:r.message.styleClass),c("ngClass",U(9,tR,"p-toast-message-"+(r.message==null?null:r.message.severity)))("@messageState",U(16,iR,Gr(11,nR,r.showTransformOptions,r.hideTransformOptions,r.showTransitionOptions,r.hideTransitionOptions))),w("id",r.message==null?null:r.message.id)("data-pc-name","toast")("data-pc-section","root"),p(2),c("ngIf",r.headlessTemplate)("ngIfElse",o)}},dependencies:()=>[Oe,Ce,Ae,Dt,Vt,Dm,Gi,Sm,mt],encapsulation:2,data:{animation:[en("messageState",[Dc("visible",Je({transform:"translateY(0)",opacity:1})),ft("void => *",[Je({transform:"{{showTransformParams}}",opacity:0}),vt("{{showTransitionParams}}")]),ft("* => void",[vt("{{hideTransitionParams}}",Je({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return t})(),sb=(()=>{class t{document;renderer;messageService;cd;config;key;autoZIndex=!0;baseZIndex=0;life=3e3;style;styleClass;get position(){return this._position}set position(e){this._position=e,this.cd.markForCheck()}preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";hideTransitionOptions="250ms ease-in";breakpoints;onClose=new O;containerViewChild;templates;messageSubscription;clearSubscription;messages;messagesArchieve;template;headlessTemplate;_position="top-right";constructor(e,n,r,o,s){this.document=e,this.renderer=n,this.messageService=r,this.cd=o,this.config=s}styleElement;id=me();ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(Array.isArray(e)){let n=e.filter(r=>this.canAdd(r));this.add(n)}else this.canAdd(e)&&this.add([e])}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(e){this.messages=this.messages?[...this.messages,...e]:[...e],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...e]:[...e]),this.cd.markForCheck()}canAdd(e){let n=this.key===e.key;return n&&this.preventOpenDuplicates&&(n=!this.containsMessage(this.messages,e)),n&&this.preventDuplicates&&(n=!this.containsMessage(this.messagesArchieve,e)),n}containsMessage(e,n){return e?e.find(r=>r.summary===n.summary&&r.detail==n.detail&&r.severity===n.severity)!=null:!1}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"message":this.template=e.template;break;case"headless":this.headlessTemplate=e.template;break;default:this.template=e.template;break}})}onMessageClose(e){this.messages?.splice(e.index,1),this.onClose.emit({message:e.message}),this.cd.detectChanges()}onAnimationStart(e){e.fromState==="void"&&(this.renderer.setAttribute(this.containerViewChild?.nativeElement,this.id,""),this.autoZIndex&&this.containerViewChild?.nativeElement.style.zIndex===""&&qe.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){e.toState==="void"&&this.autoZIndex&&k.isEmpty(this.messages)&&qe.clear(this.containerViewChild?.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints){let r="";for(let o in this.breakpoints[n])r+=o+":"+this.breakpoints[n][o]+" !important;";e+=`
56
+ @media screen and (max-width: ${n}) {
57
+ .p-toast[${this.id}] {
58
+ ${r}
59
+ }
60
+ }
61
+ `}this.renderer.setProperty(this.styleElement,"innerHTML",e)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&qe.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}static \u0275fac=function(n){return new(n||t)(x(Se),x(Be),x(_r),x(ce),x(ot))};static \u0275cmp=P({type:t,selectors:[["p-toast"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&Z(ob,5),n&2){let o;j(o=z())&&(r.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:[C.HasDecoratorInputTransform,"autoZIndex","autoZIndex",T],baseZIndex:[C.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Q],life:[C.HasDecoratorInputTransform,"life","life",Q],style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:[C.HasDecoratorInputTransform,"preventOpenDuplicates","preventOpenDuplicates",T],preventDuplicates:[C.HasDecoratorInputTransform,"preventDuplicates","preventDuplicates",T],showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},features:[fe],decls:3,vars:5,consts:[["container",""],[1,"p-toast","p-component",3,"ngClass","ngStyle"],[3,"message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"onClose","message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions"]],template:function(n,r){n&1&&(m(0,"div",1,0),f(2,CR,1,10,"p-toastItem",2),g()),n&2&&(R(r.styleClass),c("ngClass","p-toast-"+r._position)("ngStyle",r.style),p(2),c("ngForOf",r.messages))},dependencies:[Oe,Ct,je,bR],styles:[`@layer primeng{.p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;flex:none}.p-toast-icon-close.p-link{cursor:pointer}}
62
+ `],encapsulation:2,data:{animation:[en("toastAnimation",[ft(":enter, :leave",[i1("@*",n1())])])]},changeDetection:0})}return t})(),ab=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,At,Vt,Dm,Gi,Sm,mt,ke]})}return t})();var IR=["overlay"],xR=["content"],TR=["*"],SR=(t,i,e,n,r,o,s,a,l,u,h,_,I,S)=>({"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":i,"p-overlay-top":e,"p-overlay-top-start":n,"p-overlay-top-end":r,"p-overlay-bottom":o,"p-overlay-bottom-start":s,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":u,"p-overlay-left-end":h,"p-overlay-right":_,"p-overlay-right-start":I,"p-overlay-right-end":S}),DR=(t,i,e)=>({showTransitionParams:t,hideTransitionParams:i,transform:e}),ER=t=>({value:"visible",params:t}),MR=t=>({mode:t}),OR=t=>({$implicit:t});function kR(t,i){t&1&&H(0)}function FR(t,i){if(t&1){let e=F();m(0,"div",3,1),E("click",function(r){y(e);let o=d(2);return v(o.onOverlayContentClick(r))})("@overlayContentAnimation.start",function(r){y(e);let o=d(2);return v(o.onOverlayContentAnimationStart(r))})("@overlayContentAnimation.done",function(r){y(e);let o=d(2);return v(o.onOverlayContentAnimationDone(r))}),xt(2),f(3,kR,1,0,"ng-container",4),g()}if(t&2){let e=d(2);R(e.contentStyleClass),c("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",U(11,ER,lt(7,DR,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),p(3),c("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",U(15,OR,U(13,MR,e.overlayMode)))}}function AR(t,i){if(t&1){let e=F();m(0,"div",3,0),E("click",function(){y(e);let r=d();return v(r.onOverlayClick())}),f(2,FR,4,17,"div",2),g()}if(t&2){let e=d();R(e.styleClass),c("ngStyle",e.style)("ngClass",zo(5,SR,[e.modal,e.modal&&e.overlayResponsiveDirection==="center",e.modal&&e.overlayResponsiveDirection==="top",e.modal&&e.overlayResponsiveDirection==="top-start",e.modal&&e.overlayResponsiveDirection==="top-end",e.modal&&e.overlayResponsiveDirection==="bottom",e.modal&&e.overlayResponsiveDirection==="bottom-start",e.modal&&e.overlayResponsiveDirection==="bottom-end",e.modal&&e.overlayResponsiveDirection==="left",e.modal&&e.overlayResponsiveDirection==="left-start",e.modal&&e.overlayResponsiveDirection==="left-end",e.modal&&e.overlayResponsiveDirection==="right",e.modal&&e.overlayResponsiveDirection==="right-start",e.modal&&e.overlayResponsiveDirection==="right-end"])),p(2),c("ngIf",e.visible)}}var RR={provide:Ft,useExisting:dt(()=>so),multi:!0},LR=Bi([Je({transform:"{{transform}}",opacity:0}),vt("{{showTransitionParams}}")]),NR=Bi([vt("{{hideTransitionParams}}",Je({transform:"{{transform}}",opacity:0}))]),so=(()=>{class t{document;platformId;el;renderer;config;overlayService;cd;zone;get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return k.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return k.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return k.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return k.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}visibleChange=new O;onBeforeShow=new O;onShow=new O;onBeforeHide=new O;onHide=new O;onAnimationStart=new O;onAnimationDone=new O;templates;overlayViewChild;contentViewChild;contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_appendTo;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(bt(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return $($({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return $($({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return b.getTargetElement(this.target,this.el?.nativeElement)}constructor(e,n,r,o,s,a,l,u){this.document=e,this.platformId=n,this.el=r,this.renderer=o,this.config=s,this.overlayService=a,this.cd=l,this.zone=u,this.window=this.document.defaultView}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;default:this.contentTemplate=e.template;break}})}show(e,n=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&b.focus(this.targetEl),this.modal&&b.addClass(this.document?.body,"p-overflow-hidden")}hide(e,n=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),n&&b.focus(this.targetEl),this.modal&&b.removeClass(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&b.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&qe.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),b.appendOverlay(this.overlayEl,this.appendTo==="body"?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&b.addClass(this.overlayEl,"p-component-overlay-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let n=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(n,!0),this.bindListeners();break;case"void":this.hide(n,!0),this.unbindListeners(),b.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),qe.clear(n),this.modalVisible=!1,this.cd.markForCheck();break}this.handleEvents("onAnimationDone",e)}handleEvents(e,n){this[e].emit(n),this.options&&this.options[e]&&this.options[e](n),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](n)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Cn(this.targetEl,e=>{(this.listener?this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}):!0)&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let r=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&r}):r)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!b.isTouchDevice()}):!b.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!b.isTouchDevice()}):!b.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(b.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),qe.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(n){return new(n||t)(x(Se),x(pt),x(_e),x(Be),x(ot),x(un),x(ce),x(ge))};static \u0275cmp=P({type:t,selectors:[["p-overlay"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(IR,5),Z(xR,5)),n&2){let o;j(o=z())&&(r.overlayViewChild=o.first),j(o=z())&&(r.contentViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[ht([RR])],ngContentSelectors:TR,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"click","ngStyle","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&(Gt(),f(0,AR,3,20,"div",2)),n&2&&c("ngIf",r.modalVisible)},dependencies:[Oe,Ce,Ae,je],styles:[`@layer primeng{.p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}}
63
+ `],encapsulation:2,data:{animation:[en("overlayContentAnimation",[ft(":enter",[ji(LR)]),ft(":leave",[ji(NR)])])]},changeDetection:0})}return t})(),Wi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,ke,ke]})}return t})();var VR=["element"],PR=["content"],HR=["*"],BR=(t,i,e)=>({"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":i,"p-horizontal-scroll":e}),Mm=(t,i)=>({$implicit:t,options:i}),jR=t=>({"p-scroller-loading":t}),zR=t=>({"p-component-overlay":t}),UR=t=>({numCols:t}),lb=t=>({options:t}),$R=()=>({styleClass:"p-scroller-loading-icon"}),GR=(t,i)=>({rows:t,columns:i});function WR(t,i){t&1&&H(0)}function qR(t,i){if(t&1&&(L(0),f(1,WR,1,0,"ng-container",10),N()),t&2){let e=d(2);p(),c("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",we(2,Mm,e.loadedItems,e.getContentOptions()))}}function KR(t,i){t&1&&H(0)}function QR(t,i){if(t&1&&(L(0),f(1,KR,1,0,"ng-container",10),N()),t&2){let e=i.$implicit,n=i.index,r=d(3);p(),c("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",we(2,Mm,e,r.getOptions(n)))}}function ZR(t,i){if(t&1&&(m(0,"div",11,3),f(2,QR,2,5,"ng-container",12),g()),t&2){let e=d(2);c("ngClass",U(5,jR,e.d_loading))("ngStyle",e.contentStyle),w("data-pc-section","content"),p(2),c("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function YR(t,i){if(t&1&&D(0,"div",13),t&2){let e=d(2);c("ngStyle",e.spacerStyle),w("data-pc-section","spacer")}}function XR(t,i){t&1&&H(0)}function JR(t,i){if(t&1&&(L(0),f(1,XR,1,0,"ng-container",10),N()),t&2){let e=i.index,n=d(4);p(),c("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",U(4,lb,n.getLoaderOptions(e,n.both&&U(2,UR,n._numItemsInViewport.cols))))}}function eL(t,i){if(t&1&&(L(0),f(1,JR,2,6,"ng-container",15),N()),t&2){let e=d(3);p(),c("ngForOf",e.loaderArr)}}function tL(t,i){t&1&&H(0)}function nL(t,i){if(t&1&&(L(0),f(1,tL,1,0,"ng-container",10),N()),t&2){let e=d(4);p(),c("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",U(3,lb,Qe(2,$R)))}}function iL(t,i){t&1&&D(0,"SpinnerIcon",16),t&2&&(c("styleClass","p-scroller-loading-icon pi-spin"),w("data-pc-section","loadingIcon"))}function rL(t,i){if(t&1&&f(0,nL,2,5,"ng-container",6)(1,iL,1,2,"ng-template",null,5,it),t&2){let e=Ee(2),n=d(3);c("ngIf",n.loaderIconTemplate)("ngIfElse",e)}}function oL(t,i){if(t&1&&(m(0,"div",14),f(1,eL,2,1,"ng-container",6)(2,rL,3,2,"ng-template",null,4,it),g()),t&2){let e=Ee(3),n=d(2);c("ngClass",U(4,zR,!n.loaderTemplate)),w("data-pc-section","loader"),p(),c("ngIf",n.loaderTemplate)("ngIfElse",e)}}function sL(t,i){if(t&1){let e=F();L(0),m(1,"div",7,1),E("scroll",function(r){y(e);let o=d();return v(o.onContainerScroll(r))}),f(3,qR,2,5,"ng-container",6)(4,ZR,3,7,"ng-template",null,2,it)(6,YR,1,2,"div",8)(7,oL,4,6,"div",9),g(),N()}if(t&2){let e=Ee(5),n=d();p(),R(n._styleClass),c("ngStyle",n._style)("ngClass",lt(12,BR,n.inline,n.both,n.horizontal)),w("id",n._id)("tabindex",n.tabindex)("data-pc-name","scroller")("data-pc-section","root"),p(2),c("ngIf",n.contentTemplate)("ngIfElse",e),p(3),c("ngIf",n._showSpacer),p(),c("ngIf",!n.loaderDisabled&&n._showLoader&&n.d_loading)}}function aL(t,i){t&1&&H(0)}function lL(t,i){if(t&1&&(L(0),f(1,aL,1,0,"ng-container",10),N()),t&2){let e=d(2);p(),c("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",we(5,Mm,e.items,we(2,GR,e._items,e.loadedColumns)))}}function cL(t,i){if(t&1&&(xt(0),f(1,lL,2,8,"ng-container",17)),t&2){let e=d();p(),c("ngIf",e.contentTemplate)}}var wr=(()=>{class t{document;platformId;renderer;cd;zone;get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&Object.entries(e).forEach(([n,r])=>this[`_${n}`]!==r&&(this[`_${n}`]=r))}onLazyLoad=new O;onScroll=new O;onScrollIndexChange=new O;elementViewChild;contentViewChild;templates;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}constructor(e,n,r,o,s){this.document=e,this.platformId=n,this.renderer=r,this.cd=o,this.zone=s}ngOnInit(){this.setInitialState()}ngOnChanges(e){let n=!1;if(e.loading){let{previousValue:r,currentValue:o}=e.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,n=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:r,currentValue:o}=e.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){let{previousValue:r,currentValue:o}=e.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,n=!0),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!n&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}ngAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){bt(this.platformId)&&!this.initialized&&b.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=b.getWidth(this.elementViewChild?.nativeElement),this.defaultHeight=b.getHeight(this.elementViewChild?.nativeElement),this.defaultContentWidth=b.getWidth(this.contentEl),this.defaultContentHeight=b.getHeight(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||b.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,n="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:s=0,scrollLeft:a=0}=this.elementViewChild?.nativeElement,{numToleratedItems:l}=this.calculateNumItems(),u=this.getContentPosition(),h=this.itemSize,_=(B=0,re)=>B<=re?0:B,I=(B,re,pe)=>B*re+pe,S=(B=0,re=0)=>this.scrollTo({left:B,top:re,behavior:n}),M=this.both?{rows:0,cols:0}:0,A=!1,V=!1;this.both?(M={rows:_(e[0],l[0]),cols:_(e[1],l[1])},S(I(M.cols,h[1],u.left),I(M.rows,h[0],u.top)),V=this.lastScrollPos.top!==s||this.lastScrollPos.left!==a,A=M.rows!==o.rows||M.cols!==o.cols):(M=_(e,l),this.horizontal?S(I(M,h,u.left),s):S(a,I(M,h,u.top)),V=this.lastScrollPos!==(this.horizontal?a:s),A=M!==o),this.isRangeChanged=A,V&&(this.first=M)}}scrollInView(e,n,r="auto"){if(n){let{first:o,viewport:s}=this.getRenderedRange(),a=(h=0,_=0)=>this.scrollTo({left:h,top:_,behavior:r}),l=n==="to-start",u=n==="to-end";if(l){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){let h=(s.first-1)*this._itemSize;this.horizontal?a(h,0):a(0,h)}}else if(u){if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){let h=(s.first+1)*this._itemSize;this.horizontal?a(h,0):a(0,h)}}}else this.scrollToIndex(e,r)}getRenderedRange(){let e=(o,s)=>Math.floor(o/(s||o)),n=this.first,r=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)n={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},r={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols};else{let a=this.horizontal?s:o;n=e(a,this._itemSize),r=n+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:n,last:r}}}calculateNumItems(){let e=this.getContentPosition(),n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,r=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(u,h)=>Math.ceil(u/(h||u)),s=u=>Math.ceil(u/2),a=this.both?{rows:o(r,this._itemSize[0]),cols:o(n,this._itemSize[1])}:o(this.horizontal?n:r,this._itemSize),l=this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a));return{numItemsInViewport:a,numToleratedItems:l}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:n}=this.calculateNumItems(),r=(a,l,u,h=!1)=>this.getLast(a+l+(a<u?2:3)*u,h),o=this.first,s=this.both?{rows:r(this.first.rows,e.rows,n[0]),cols:r(this.first.cols,e.cols,n[1],!0)}:r(this.first,e,n);this.last=s,this.numItemsInViewport=e,this.d_numToleratedItems=n,this.showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,n]=[b.getWidth(this.contentEl),b.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),n!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[r,o]=[b.getWidth(this.elementViewChild.nativeElement),b.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=r<this.defaultWidth?r+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=o<this.defaultHeight?o+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(e=0,n=!1){return this._items?Math.min(n?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){let e=getComputedStyle(this.contentEl),n=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),r=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),o=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),s=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:n,right:r,top:o,bottom:s,x:n+r,y:o+s}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let e=this.elementViewChild.nativeElement.parentElement.parentElement,n=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||e.offsetWidth}px`,r=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||e.offsetHeight}px`,o=(s,a)=>this.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(o("height",r),o("width",n)):o("height",r)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),n=(r,o,s,a=0)=>this.spacerStyle=Le($({},this.spacerStyle),{[`${r}`]:(o||[]).length*s+a+"px"});this.both?(n("height",this._items,this._itemSize[0],e.y),n("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?n("width",this._columns||this._items,this._itemSize,e.x):n("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let n=e?e.first:this.first,r=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle=Le($({},this.contentStyle),{transform:`translate3d(${s}px, ${a}px, 0)`});if(this.both)o(r(n.cols,this._itemSize[1]),r(n.rows,this._itemSize[0]));else{let s=r(n,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){let n=e.target,r=this.getContentPosition(),o=(V,B)=>V?V>B?V-B:V:0,s=(V,B)=>Math.floor(V/(B||V)),a=(V,B,re,pe,ae,tt)=>V<=ae?ae:tt?re-pe-ae:B+ae-1,l=(V,B,re,pe,ae,tt,Ke)=>V<=tt?0:Math.max(0,Ke?V<B?re:V-tt:V>B?re:V-2*tt),u=(V,B,re,pe,ae,tt=!1)=>{let Ke=B+pe+2*ae;return V>=ae&&(Ke+=ae+1),this.getLast(Ke,tt)},h=o(n.scrollTop,r.top),_=o(n.scrollLeft,r.left),I=this.both?{rows:0,cols:0}:0,S=this.last,M=!1,A=this.lastScrollPos;if(this.both){let V=this.lastScrollPos.top<=h,B=this.lastScrollPos.left<=_;if(!this._appendOnly||this._appendOnly&&(V||B)){let re={rows:s(h,this._itemSize[0]),cols:s(_,this._itemSize[1])},pe={rows:a(re.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],V),cols:a(re.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],B)};I={rows:l(re.rows,pe.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],V),cols:l(re.cols,pe.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],B)},S={rows:u(re.rows,I.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:u(re.cols,I.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},M=I.rows!==this.first.rows||S.rows!==this.last.rows||I.cols!==this.first.cols||S.cols!==this.last.cols||this.isRangeChanged,A={top:h,left:_}}}else{let V=this.horizontal?_:h,B=this.lastScrollPos<=V;if(!this._appendOnly||this._appendOnly&&B){let re=s(V,this._itemSize),pe=a(re,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,B);I=l(re,pe,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,B),S=u(re,I,this.last,this.numItemsInViewport,this.d_numToleratedItems),M=I!==this.first||S!==this.last||this.isRangeChanged,A=V}}return{first:I,last:S,isRangeChanged:M,scrollPos:A}}onScrollChange(e){let{first:n,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){let a={first:n,last:r};if(this.setContentPosition(a),this.first=n,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged(n)){let l={first:this._step?Math.min(this.getPageByFirst(n)*this._step,this.items.length-this._step):n,last:Math.min(this._step?(this.getPageByFirst(n)+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){let{isRangeChanged:n}=this.onScrollPositionChange(e);(n||(this._step?this.isPageChanged():!1))&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){bt(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,n=b.isTouchDevice()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,n,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(b.isVisible(this.elementViewChild?.nativeElement)){let[e,n]=[b.getWidth(this.elementViewChild?.nativeElement),b.getHeight(this.elementViewChild?.nativeElement)],[r,o]=[e!==this.defaultWidth,n!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical?o:!1)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=n,this.defaultContentWidth=b.getWidth(this.contentEl),this.defaultContentHeight=b.getHeight(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,n){return this.options&&this.options[e]?this.options[e](n):this[e].emit(n)}getContentOptions(){return{contentStyleClass:`p-scroller-content ${this.d_loading?"p-scroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,n)=>this.getLoaderOptions(e,n),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){let n=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:n,first:r===0,last:r===n-1,even:r%2===0,odd:r%2!==0}}getLoaderOptions(e,n){let r=this.loaderArr.length;return $({index:e,count:r,first:e===0,last:e===r-1,even:e%2===0,odd:e%2!==0},n)}static \u0275fac=function(n){return new(n||t)(x(Se),x(pt),x(Be),x(ce),x(ge))};static \u0275cmp=P({type:t,selectors:[["p-scroller"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(VR,5),Z(PR,5)),n&2){let o;j(o=z())&&(r.elementViewChild=o.first),j(o=z())&&(r.contentViewChild=o.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[$t],ngContentSelectors:HR,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(n,r){if(n&1&&(Gt(),f(0,sL,8,16,"ng-container",6)(1,cL,2,1,"ng-template",null,0,it)),n&2){let o=Ee(2);c("ngIf",!r._disabled)("ngIfElse",o)}},dependencies:()=>[Oe,Ct,Ce,Ae,je,Un],styles:[`@layer primeng{p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{scale:2}.p-scroller-inline .p-scroller-content{position:static}}
64
+ `],encapsulation:2})}return t})(),Wn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,ke,Un,ke]})}return t})();var uL=["container"],dL=["focusInput"],pL=["multiIn"],hL=["multiContainer"],fL=["ddBtn"],mL=["items"],gL=["scroller"],_L=["overlay"],yL=t=>({"p-autocomplete-token":!0,"p-focus":t}),cb=t=>({$implicit:t}),Iu=t=>({height:t}),ub=(t,i)=>({$implicit:t,options:i}),vL=t=>({options:t}),CL=()=>({}),bL=(t,i,e)=>({"p-highlight":t,"p-focus":i,"p-disabled":e}),wL=(t,i)=>({$implicit:t,index:i});function IL(t,i){if(t&1){let e=F();m(0,"input",20,3),E("input",function(r){y(e);let o=d();return v(o.onInput(r))})("keydown",function(r){y(e);let o=d();return v(o.onKeyDown(r))})("change",function(r){y(e);let o=d();return v(o.onInputChange(r))})("focus",function(r){y(e);let o=d();return v(o.onInputFocus(r))})("blur",function(r){y(e);let o=d();return v(o.onInputBlur(r))})("paste",function(r){y(e);let o=d();return v(o.onInputPaste(r))})("keyup",function(r){y(e);let o=d();return v(o.onInputKeyUp(r))}),g()}if(t&2){let e,n=d();R(n.inputStyleClass),c("autofocus",n.autofocus)("ngClass",n.inputClass)("ngStyle",n.inputStyle)("type",n.type)("autocomplete",n.autocomplete)("required",n.required)("name",n.name)("maxlength",n.maxlength)("tabindex",n.disabled?-1:n.tabindex)("readonly",n.readonly)("disabled",n.disabled),w("value",n.inputValue())("id",n.inputId)("placeholder",n.placeholder)("size",n.size)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("aria-required",n.required)("aria-expanded",(e=n.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",n.overlayVisible?n.id+"_list":null)("aria-activedescendant",n.focused?n.focusedOptionId:void 0)}}function xL(t,i){if(t&1){let e=F();m(0,"TimesIcon",23),E("click",function(){y(e);let r=d(2);return v(r.clear())}),g()}t&2&&(c("styleClass","p-autocomplete-clear-icon"),w("aria-hidden",!0))}function TL(t,i){}function SL(t,i){t&1&&f(0,TL,0,0,"ng-template")}function DL(t,i){if(t&1){let e=F();m(0,"span",24),E("click",function(){y(e);let r=d(2);return v(r.clear())}),f(1,SL,1,0,null,17),g()}if(t&2){let e=d(2);w("aria-hidden",!0),p(),c("ngTemplateOutlet",e.clearIconTemplate)}}function EL(t,i){if(t&1&&(L(0),f(1,xL,1,2,"TimesIcon",21)(2,DL,2,2,"span",22),N()),t&2){let e=d();p(),c("ngIf",!e.clearIconTemplate),p(),c("ngIf",e.clearIconTemplate)}}function ML(t,i){t&1&&H(0)}function OL(t,i){if(t&1&&(m(0,"span",35),K(1),g()),t&2){let e=d().$implicit,n=d(2);p(),se(n.getOptionLabel(e))}}function kL(t,i){t&1&&D(0,"TimesCircleIcon",36),t&2&&(c("styleClass","p-autocomplete-token-icon"),w("aria-hidden",!0))}function FL(t,i){}function AL(t,i){t&1&&f(0,FL,0,0,"ng-template")}function RL(t,i){if(t&1&&(m(0,"span",37),f(1,AL,1,0,null,17),g()),t&2){let e=d(3);w("aria-hidden",!0),p(),c("ngTemplateOutlet",e.removeIconTemplate)}}function LL(t,i){if(t&1){let e=F();m(0,"li",29,5),f(2,ML,1,0,"ng-container",30)(3,OL,2,1,"span",31),m(4,"span",32),E("click",function(r){let o=y(e).index,s=d(2);return v(s.readonly?"":s.removeOption(r,o))}),f(5,kL,1,2,"TimesCircleIcon",33)(6,RL,2,2,"span",34),g()()}if(t&2){let e=i.$implicit,n=i.index,r=d(2);c("ngClass",U(11,yL,r.focusedMultipleOptionIndex()===n)),w("id",r.id+"_multiple_option_"+n)("aria-label",r.getOptionLabel(e))("aria-setsize",r.modelValue().length)("aria-posinset",n+1)("aria-selected",!0),p(2),c("ngTemplateOutlet",r.selectedItemTemplate)("ngTemplateOutletContext",U(13,cb,e)),p(),c("ngIf",!r.selectedItemTemplate),p(2),c("ngIf",!r.removeIconTemplate),p(),c("ngIf",r.removeIconTemplate)}}function NL(t,i){if(t&1){let e=F();m(0,"ul",25,4),E("focus",function(r){y(e);let o=d();return v(o.onMultipleContainerFocus(r))})("blur",function(r){y(e);let o=d();return v(o.onMultipleContainerBlur(r))})("keydown",function(r){y(e);let o=d();return v(o.onMultipleContainerKeyDown(r))}),f(2,LL,7,15,"li",26),m(3,"li",27)(4,"input",28,3),E("input",function(r){y(e);let o=d();return v(o.onInput(r))})("keydown",function(r){y(e);let o=d();return v(o.onKeyDown(r))})("change",function(r){y(e);let o=d();return v(o.onInputChange(r))})("focus",function(r){y(e);let o=d();return v(o.onInputFocus(r))})("blur",function(r){y(e);let o=d();return v(o.onInputBlur(r))})("paste",function(r){y(e);let o=d();return v(o.onInputPaste(r))})("keyup",function(r){y(e);let o=d();return v(o.onInputKeyUp(r))}),g()()()}if(t&2){let e,n=d();R(n.multiContainerClass),c("tabindex",-1),w("aria-orientation","horizontal")("aria-activedescendant",n.focused?n.focusedMultipleOptionId:void 0),p(2),c("ngForOf",n.modelValue()),p(2),R(n.inputStyleClass),c("autofocus",n.autofocus)("ngClass",n.inputClass)("ngStyle",n.inputStyle)("autocomplete",n.autocomplete)("required",n.required)("maxlength",n.maxlength)("tabindex",n.disabled?-1:n.tabindex)("readonly",n.readonly)("disabled",n.disabled),w("type",n.type)("id",n.inputId)("name",n.name)("placeholder",n.filled?null:n.placeholder)("size",n.size)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("aria-required",n.required)("aria-expanded",(e=n.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",n.overlayVisible?n.id+"_list":null)("aria-activedescendant",n.focused?n.focusedOptionId:void 0)}}function VL(t,i){t&1&&D(0,"SpinnerIcon",40),t&2&&(c("styleClass","p-autocomplete-loader")("spin",!0),w("aria-hidden",!0))}function PL(t,i){}function HL(t,i){t&1&&f(0,PL,0,0,"ng-template")}function BL(t,i){if(t&1&&(m(0,"span",41),f(1,HL,1,0,null,17),g()),t&2){let e=d(2);w("aria-hidden",!0),p(),c("ngTemplateOutlet",e.loadingIconTemplate)}}function jL(t,i){if(t&1&&(L(0),f(1,VL,1,3,"SpinnerIcon",38)(2,BL,2,2,"span",39),N()),t&2){let e=d();p(),c("ngIf",!e.loadingIconTemplate),p(),c("ngIf",e.loadingIconTemplate)}}function zL(t,i){if(t&1&&D(0,"span",44),t&2){let e=d(2);c("ngClass",e.dropdownIcon),w("aria-hidden",!0)}}function UL(t,i){t&1&&D(0,"ChevronDownIcon")}function $L(t,i){}function GL(t,i){t&1&&f(0,$L,0,0,"ng-template")}function WL(t,i){if(t&1&&(L(0),f(1,UL,1,0,"ChevronDownIcon",12)(2,GL,1,0,null,17),N()),t&2){let e=d(2);p(),c("ngIf",!e.dropdownIconTemplate),p(),c("ngTemplateOutlet",e.dropdownIconTemplate)}}function qL(t,i){if(t&1){let e=F();m(0,"button",42,6),E("click",function(r){y(e);let o=d();return v(o.handleDropdownClick(r))}),f(2,zL,1,2,"span",43)(3,WL,3,2,"ng-container",12),g()}if(t&2){let e=d();c("disabled",e.disabled),w("aria-label",e.dropdownAriaLabel)("tabindex",e.tabindex),p(2),c("ngIf",e.dropdownIcon),p(),c("ngIf",!e.dropdownIcon)}}function KL(t,i){t&1&&H(0)}function QL(t,i){t&1&&H(0)}function ZL(t,i){if(t&1&&f(0,QL,1,0,"ng-container",30),t&2){let e=i.$implicit,n=i.options;d(2);let r=Ee(14);c("ngTemplateOutlet",r)("ngTemplateOutletContext",we(2,ub,e,n))}}function YL(t,i){t&1&&H(0)}function XL(t,i){if(t&1&&f(0,YL,1,0,"ng-container",30),t&2){let e=i.options,n=d(3);c("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",U(2,vL,e))}}function JL(t,i){t&1&&(L(0),f(1,XL,1,4,"ng-template",47),N())}function eN(t,i){if(t&1){let e=F();m(0,"p-scroller",45,7),E("onLazyLoad",function(r){y(e);let o=d();return v(o.onLazyLoad.emit(r))}),f(2,ZL,1,5,"ng-template",46)(3,JL,2,0,"ng-container",12),g()}if(t&2){let e=d();_t(U(8,Iu,e.scrollHeight)),c("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),p(3),c("ngIf",e.loaderTemplate)}}function tN(t,i){t&1&&H(0)}function nN(t,i){if(t&1&&(L(0),f(1,tN,1,0,"ng-container",30),N()),t&2){let e=d(),n=Ee(14);p(),c("ngTemplateOutlet",n)("ngTemplateOutletContext",we(3,ub,e.visibleOptions(),Qe(2,CL)))}}function iN(t,i){if(t&1&&(m(0,"span"),K(1),g()),t&2){let e=d(2).$implicit,n=d(2);p(),se(n.getOptionGroupLabel(e.optionGroup))}}function rN(t,i){t&1&&H(0)}function oN(t,i){if(t&1&&(L(0),m(1,"li",51),f(2,iN,2,1,"span",12)(3,rN,1,0,"ng-container",30),g(),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d().options,s=d();p(),c("ngStyle",U(5,Iu,o.itemSize+"px")),w("id",s.id+"_"+s.getOptionIndex(r,o)),p(),c("ngIf",!s.groupTemplate),p(),c("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(7,cb,n.optionGroup))}}function sN(t,i){if(t&1&&(m(0,"span"),K(1),g()),t&2){let e=d(2).$implicit,n=d(2);p(),se(n.getOptionLabel(e))}}function aN(t,i){t&1&&H(0)}function lN(t,i){if(t&1){let e=F();L(0),m(1,"li",52),E("click",function(r){y(e);let o=d().$implicit,s=d(2);return v(s.onOptionSelect(r,o))})("mouseenter",function(r){y(e);let o=d().index,s=d().options,a=d();return v(a.onOptionMouseEnter(r,a.getOptionIndex(o,s)))}),f(2,sN,2,1,"span",12)(3,aN,1,0,"ng-container",30),g(),N()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d().options,s=d();p(),c("ngStyle",U(12,Iu,o.itemSize+"px"))("ngClass",lt(14,bL,s.isSelected(n),s.focusedOptionIndex()===s.getOptionIndex(r,o),s.isOptionDisabled(n))),w("id",s.id+"_"+s.getOptionIndex(r,o))("aria-label",s.getOptionLabel(n))("aria-selected",s.isSelected(n))("aria-disabled",s.isOptionDisabled(n))("data-p-focused",s.focusedOptionIndex()===s.getOptionIndex(r,o))("aria-setsize",s.ariaSetSize)("aria-posinset",s.getAriaPosInset(s.getOptionIndex(r,o))),p(),c("ngIf",!s.itemTemplate),p(),c("ngTemplateOutlet",s.itemTemplate)("ngTemplateOutletContext",we(18,wL,n,o.getOptions?o.getOptions(r):r))}}function cN(t,i){if(t&1&&f(0,oN,4,9,"ng-container",12)(1,lN,4,21,"ng-container",12),t&2){let e=i.$implicit,n=d(2);c("ngIf",n.isOptionGroup(e)),p(),c("ngIf",!n.isOptionGroup(e))}}function uN(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(3);p(),yt(" ",e.searchResultMessageText," ")}}function dN(t,i){t&1&&H(0,null,9)}function pN(t,i){if(t&1&&(m(0,"li",53),f(1,uN,2,1,"ng-container",54)(2,dN,2,0,"ng-container",17),g()),t&2){let e=d().options,n=d();c("ngStyle",U(4,Iu,e.itemSize+"px")),p(),c("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),p(),c("ngTemplateOutlet",n.emptyTemplate)}}function hN(t,i){if(t&1&&(m(0,"ul",48,8),f(2,cN,2,2,"ng-template",49)(3,pN,3,6,"li",50),g()),t&2){let e=i.$implicit,n=i.options,r=d();_t(n.contentStyle),c("ngClass",n.contentStyleClass),w("id",r.id+"_list")("aria-label",r.listLabel),p(2),c("ngForOf",e),p(),c("ngIf",!e||e&&e.length===0&&r.showEmptyMessage)}}function fN(t,i){t&1&&H(0)}var mN={provide:Ft,useExisting:dt(()=>gN),multi:!0},gN=(()=>{class t{document;el;renderer;cd;config;overlayService;zone;minLength=1;delay=300;style;panelStyle;styleClass;panelStyleClass;inputStyle;inputId;inputStyleClass;placeholder;readonly;disabled;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;maxlength;name;required;size;appendTo;autoHighlight;forceSelection;type="text";autoZIndex=!0;baseZIndex=0;ariaLabel;dropdownAriaLabel;ariaLabelledBy;dropdownIcon;unique=!0;group;completeOnFocus=!1;showClear=!1;field;dropdown;showEmptyMessage=!0;dropdownMode="blank";multiple;tabindex;dataKey;emptyMessage;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;autocomplete="off";optionGroupChildren="items";optionGroupLabel="label";overlayOptions;get suggestions(){return this._suggestions()}set suggestions(e){this._suggestions.set(e),this.handleSuggestionsChange()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}optionLabel;id;searchMessage;emptySelectionMessage;selectionMessage;autoOptionFocus=!1;selectOnFocus;searchLocale;optionDisabled;focusOnHover;completeMethod=new O;onSelect=new O;onUnselect=new O;onFocus=new O;onBlur=new O;onDropdownClick=new O;onClear=new O;onKeyUp=new O;onShow=new O;onHide=new O;onLazyLoad=new O;containerEL;inputEL;multiInputEl;multiContainerEL;dropdownButton;itemsViewChild;scroller;overlayViewChild;templates;_itemSize;itemsWrapper;itemTemplate;emptyTemplate;headerTemplate;footerTemplate;selectedItemTemplate;groupTemplate;loaderTemplate;removeIconTemplate;loadingIconTemplate;clearIconTemplate;dropdownIconTemplate;value;_suggestions=Mt(null);onModelChange=()=>{};onModelTouched=()=>{};timeout;overlayVisible;suggestionsUpdated;highlightOption;highlightOptionChanged;focused=!1;_filled;get filled(){return this._filled}set filled(e){this._filled=e}loading;scrollHandler;listId;searchTimeout;dirty=!1;modelValue=Mt(null);focusedMultipleOptionIndex=Mt(-1);focusedOptionIndex=Mt(-1);visibleOptions=yn(()=>this.group?this.flatOptions(this._suggestions()):this._suggestions()||[]);inputValue=yn(()=>{let e=this.modelValue();if(e)if(typeof e=="object"){let n=this.getOptionLabel(e);return n??e}else return e;else return""});get focusedMultipleOptionId(){return this.focusedMultipleOptionIndex()!==-1?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex()}`:null}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}get containerClass(){return{"p-autocomplete p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}}get multiContainerClass(){return"p-autocomplete-multiple-container p-component p-inputtext"}get panelClass(){return{"p-autocomplete-panel p-component":!0,"p-input-filled":this.config.inputStyle==="filled","p-ripple-disabled":this.config.ripple===!1}}get inputClass(){return{"p-autocomplete-input p-inputtext p-component":!this.multiple,"p-autocomplete-dd-input":this.dropdown}}get searchResultMessageText(){return k.isNotEmpty(this.visibleOptions())&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions().length):this.emptySearchMessageText}get searchMessageText(){return this.searchMessage||this.config.translation.searchMessage||""}get emptySearchMessageText(){return this.emptyMessage||this.config.translation.emptySearchMessage||""}get selectionMessageText(){return this.selectionMessage||this.config.translation.selectionMessage||""}get emptySelectionMessageText(){return this.emptySelectionMessage||this.config.translation.emptySelectionMessage||""}get selectedMessageText(){return this.hasSelectedOption()?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue().length:"1"):this.emptySelectionMessageText}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}get listLabel(){return this.config.getTranslation(ze.ARIA).listLabel}get virtualScrollerDisabled(){return!this.virtualScroll}constructor(e,n,r,o,s,a,l){this.document=e,this.el=n,this.renderer=r,this.cd=o,this.config=s,this.overlayService=a,this.zone=l,Qr(()=>{this.filled=k.isNotEmpty(this.modelValue())})}ngOnInit(){this.id=this.id||me(),this.cd.detectChanges()}ngAfterViewChecked(){this.suggestionsUpdated&&this.overlayViewChild&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1),this.suggestionsUpdated=!1})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"removetokenicon":this.removeIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}handleSuggestionsChange(){if(this.loading){this._suggestions()?this.show():this.emptyTemplate?this.show():this.hide();let e=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(e),this.suggestionsUpdated=!0,this.loading=!1,this.cd.markForCheck()}}flatOptions(e){return(e||[]).reduce((n,r,o)=>{n.push({optionGroup:r,group:!0,index:o});let s=this.getOptionGroupChildren(r);return s&&s.forEach(a=>n.push(a)),n},[])}isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findLastOptionIndex(){return k.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(r=>this.isValidOption(r)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?k.findLastIndex(this.visibleOptions().slice(0,e),r=>this.isValidOption(r)):-1;return n>-1?n:e}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.optionDisabled?k.resolveFieldData(e,this.optionDisabled):!1}isSelected(e){return this.multiple?this.unique?this.modelValue()?.find(n=>k.equals(n,this.getOptionValue(e),this.equalityKey())):!1:k.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}isOptionMatched(e,n){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===n.toLocaleLowerCase(this.searchLocale)}isInputClicked(e){return e.target===this.inputEL.nativeElement}isDropdownClicked(e){return this.dropdownButton?.nativeElement?e.target===this.dropdownButton.nativeElement||this.dropdownButton.nativeElement.contains(e.target):!1}equalityKey(){return this.dataKey}onContainerClick(e){this.disabled||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||(!this.overlayViewChild||!this.overlayViewChild.overlayViewChild?.nativeElement.contains(e.target))&&b.focus(this.inputEL.nativeElement)}handleDropdownClick(e){let n;this.overlayVisible?this.hide(!0):(b.focus(this.inputEL.nativeElement),n=this.inputEL.nativeElement.value,this.dropdownMode==="blank"?this.search(e,"","dropdown"):this.dropdownMode==="current"&&this.search(e,n,"dropdown")),this.onDropdownClick.emit({originalEvent:e,query:n})}onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let n=e.target.value.split("").slice(0,this.maxlength).join("");!this.multiple&&!this.forceSelection&&this.updateModel(n),n.length===0&&!this.multiple?(this.onClear.emit(),setTimeout(()=>{this.hide()},this.delay/2)):n.length>=this.minLength?(this.focusedOptionIndex.set(-1),this.searchTimeout=setTimeout(()=>{this.search(e,n,"input")},this.delay)):this.hide()}onInputChange(e){if(this.forceSelection){let n=!1;if(this.visibleOptions()){let r=this.visibleOptions().find(o=>this.isOptionMatched(o,this.inputEL.nativeElement.value||""));r!==void 0&&(n=!0,!this.isSelected(r)&&this.onOptionSelect(e,r))}n||(this.inputEL.nativeElement.value="",!this.multiple&&this.updateModel(null))}}onInputFocus(e){if(this.disabled)return;!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onMultipleContainerFocus(e){this.disabled||(this.focused=!0)}onMultipleContainerBlur(e){this.focusedMultipleOptionIndex.set(-1),this.focused=!1}onMultipleContainerKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e);break;default:break}}onInputBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex.set(-1),this.onModelTouched(),this.onBlur.emit(e)}onInputPaste(e){this.onKeyDown(e)}onInputKeyUp(e){this.onKeyUp.emit(e)}onKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e);break;case"ShiftLeft":case"ShiftRight":break;default:break}}onArrowDownKey(e){if(!this.overlayVisible)return;let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),e.preventDefault(),e.stopPropagation()}}onArrowLeftKey(e){let n=e.currentTarget;this.focusedOptionIndex.set(-1),this.multiple&&(k.isEmpty(n.value)&&this.hasSelectedOption()?(b.focus(this.multiContainerEL.nativeElement),this.focusedMultipleOptionIndex.set(this.modelValue().length)):e.stopPropagation())}onArrowRightKey(e){this.focusedOptionIndex.set(-1),this.multiple&&e.stopPropagation()}onHomeKey(e){let{currentTarget:n}=e,r=n.value.length;n.setSelectionRange(0,e.shiftKey?r:0),this.focusedOptionIndex.set(-1),e.preventDefault()}onEndKey(e){let{currentTarget:n}=e,r=n.value.length;n.setSelectionRange(e.shiftKey?0:r,r),this.focusedOptionIndex.set(-1),e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?(this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.hide()):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e){this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide()}onBackspaceKey(e){if(this.multiple){if(k.isNotEmpty(this.modelValue())&&!this.inputEL.nativeElement.value){let n=this.modelValue()[this.modelValue().length-1],r=this.modelValue().slice(0,-1);this.updateModel(r),this.onUnselect.emit({originalEvent:e,value:n})}e.stopPropagation()}!this.multiple&&this.showClear&&this.findSelectedOptionIndex()!=-1&&this.clear()}onArrowLeftKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex()<1?0:this.focusedMultipleOptionIndex()-1;this.focusedMultipleOptionIndex.set(n)}onArrowRightKeyOnMultiple(e){let n=this.focusedMultipleOptionIndex();n++,this.focusedMultipleOptionIndex.set(n),n>this.modelValue().length-1&&(this.focusedMultipleOptionIndex.set(-1),b.focus(this.inputEL.nativeElement))}onBackspaceKeyOnMultiple(e){this.focusedMultipleOptionIndex()!==-1&&this.removeOption(e,this.focusedMultipleOptionIndex())}onOptionSelect(e,n,r=!0){let o=this.getOptionValue(n);this.multiple?(this.inputEL.nativeElement.value="",this.isSelected(n)||this.updateModel([...this.modelValue()||[],o])):this.updateModel(o),this.onSelect.emit({originalEvent:e,value:n}),r&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}search(e,n,r){n!=null&&(r==="input"&&n.trim().length===0||(this.loading=!0,this.completeMethod.emit({originalEvent:e,query:n})))}removeOption(e,n){e.stopPropagation();let r=this.modelValue()[n],o=this.modelValue().filter((s,a)=>a!==n).map(s=>this.getOptionValue(s));this.updateModel(o),this.onUnselect.emit({originalEvent:e,value:r}),b.focus(this.inputEL.nativeElement)}updateModel(e){this.value=e,this.modelValue.set(e),this.onModelChange(e),this.updateInputValue(),this.cd.markForCheck()}updateInputValue(){this.inputEL&&this.inputEL.nativeElement&&(this.multiple?this.inputEL.nativeElement.value="":this.inputEL.nativeElement.value=this.inputValue())}autoUpdateModel(){if((this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption()){let e=this.findFirstFocusedOptionIndex();this.focusedOptionIndex.set(e),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)}}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let r=b.findSingle(this.itemsViewChild.nativeElement,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions()[n],!1))}show(e=!1){this.dirty=!0,this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&b.focus(this.inputEL.nativeElement),e&&b.focus(this.inputEL.nativeElement),this.onShow.emit(),this.cd.markForCheck()}hide(e=!1){let n=()=>{this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex.set(-1),e&&b.focus(this.inputEL.nativeElement),this.onHide.emit(),this.cd.markForCheck()};setTimeout(()=>{n()},0)}clear(){this.updateModel(null),this.inputEL.nativeElement.value="",this.onClear.emit()}writeValue(e){this.value=e,this.modelValue.set(e),this.updateInputValue(),this.cd.markForCheck()}hasSelectedOption(){return k.isNotEmpty(this.modelValue())}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}getOptionLabel(e){return this.field||this.optionLabel?k.resolveFieldData(e,this.field||this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return e}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionGroupLabel(e){return this.optionGroupLabel?k.resolveFieldData(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?k.resolveFieldData(e,this.optionGroupChildren):e.items}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"&&(this.itemsWrapper=b.findSingle(this.overlayViewChild.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-autocomplete-panel"),this.virtualScroll&&(this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.scroller.viewInit()),this.visibleOptions()&&this.visibleOptions().length))if(this.virtualScroll){let n=this.modelValue()?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=b.findSingle(this.itemsWrapper,".p-autocomplete-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"center"})}}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(x(Se),x(_e),x(Be),x(ce),x(ot),x(un),x(ge))};static \u0275cmp=P({type:t,selectors:[["p-autoComplete"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(uL,5),Z(dL,5),Z(pL,5),Z(hL,5),Z(fL,5),Z(mL,5),Z(gL,5),Z(_L,5)),n&2){let o;j(o=z())&&(r.containerEL=o.first),j(o=z())&&(r.inputEL=o.first),j(o=z())&&(r.multiInputEl=o.first),j(o=z())&&(r.multiContainerEL=o.first),j(o=z())&&(r.dropdownButton=o.first),j(o=z())&&(r.itemsViewChild=o.first),j(o=z())&&(r.scroller=o.first),j(o=z())&&(r.overlayViewChild=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,r){n&2&&Ot("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focused&&!r.disabled||r.autofocus||r.overlayVisible)("p-autocomplete-clearable",r.showClear&&!r.disabled)},inputs:{minLength:[C.HasDecoratorInputTransform,"minLength","minLength",Q],delay:[C.HasDecoratorInputTransform,"delay","delay",Q],style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",inputStyle:"inputStyle",inputId:"inputId",inputStyleClass:"inputStyleClass",placeholder:"placeholder",readonly:[C.HasDecoratorInputTransform,"readonly","readonly",T],disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],scrollHeight:"scrollHeight",lazy:[C.HasDecoratorInputTransform,"lazy","lazy",T],virtualScroll:[C.HasDecoratorInputTransform,"virtualScroll","virtualScroll",T],virtualScrollItemSize:[C.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",Q],virtualScrollOptions:"virtualScrollOptions",maxlength:[C.HasDecoratorInputTransform,"maxlength","maxlength",Q],name:"name",required:[C.HasDecoratorInputTransform,"required","required",T],size:[C.HasDecoratorInputTransform,"size","size",Q],appendTo:"appendTo",autoHighlight:[C.HasDecoratorInputTransform,"autoHighlight","autoHighlight",T],forceSelection:[C.HasDecoratorInputTransform,"forceSelection","forceSelection",T],type:"type",autoZIndex:[C.HasDecoratorInputTransform,"autoZIndex","autoZIndex",T],baseZIndex:[C.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Q],ariaLabel:"ariaLabel",dropdownAriaLabel:"dropdownAriaLabel",ariaLabelledBy:"ariaLabelledBy",dropdownIcon:"dropdownIcon",unique:[C.HasDecoratorInputTransform,"unique","unique",T],group:[C.HasDecoratorInputTransform,"group","group",T],completeOnFocus:[C.HasDecoratorInputTransform,"completeOnFocus","completeOnFocus",T],showClear:[C.HasDecoratorInputTransform,"showClear","showClear",T],field:"field",dropdown:[C.HasDecoratorInputTransform,"dropdown","dropdown",T],showEmptyMessage:[C.HasDecoratorInputTransform,"showEmptyMessage","showEmptyMessage",T],dropdownMode:"dropdownMode",multiple:[C.HasDecoratorInputTransform,"multiple","multiple",T],tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q],dataKey:"dataKey",emptyMessage:"emptyMessage",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T],autocomplete:"autocomplete",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",overlayOptions:"overlayOptions",suggestions:"suggestions",itemSize:"itemSize",optionLabel:"optionLabel",id:"id",searchMessage:"searchMessage",emptySelectionMessage:"emptySelectionMessage",selectionMessage:"selectionMessage",autoOptionFocus:[C.HasDecoratorInputTransform,"autoOptionFocus","autoOptionFocus",T],selectOnFocus:[C.HasDecoratorInputTransform,"selectOnFocus","selectOnFocus",T],searchLocale:[C.HasDecoratorInputTransform,"searchLocale","searchLocale",T],optionDisabled:"optionDisabled",focusOnHover:[C.HasDecoratorInputTransform,"focusOnHover","focusOnHover",T]},outputs:{completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect",onFocus:"onFocus",onBlur:"onBlur",onDropdownClick:"onDropdownClick",onClear:"onClear",onKeyUp:"onKeyUp",onShow:"onShow",onHide:"onHide",onLazyLoad:"onLazyLoad"},features:[ht([mN]),fe],decls:18,vars:26,consts:[["container",""],["overlay",""],["buildInItems",""],["focusInput",""],["multiContainer",""],["token",""],["ddBtn",""],["scroller",""],["items",""],["empty",""],[3,"click","ngClass","ngStyle"],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"autofocus","ngClass","ngStyle","class","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled","input","keydown","change","focus","blur","paste","keyup",4,"ngIf"],[4,"ngIf"],["role","listbox",3,"class","tabindex","focus","blur","keydown",4,"ngIf"],["type","button","pButton","","class","p-autocomplete-dropdown p-button-icon-only","pRipple","",3,"disabled","click",4,"ngIf"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","showTransitionOptions","hideTransitionOptions"],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["role","status","aria-live","polite",1,"p-hidden-accessible"],["pAutoFocus","","aria-autocomplete","list","role","combobox",3,"input","keydown","change","focus","blur","paste","keyup","autofocus","ngClass","ngStyle","type","autocomplete","required","name","maxlength","tabindex","readonly","disabled"],[3,"styleClass","click",4,"ngIf"],["class","p-autocomplete-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-autocomplete-clear-icon",3,"click"],["role","listbox",3,"focus","blur","keydown","tabindex"],["role","option",3,"ngClass",4,"ngFor","ngForOf"],["role","option",1,"p-autocomplete-input-token"],["pAutoFocus","","role","combobox","aria-autocomplete","list",3,"input","keydown","change","focus","blur","paste","keyup","autofocus","ngClass","ngStyle","autocomplete","required","maxlength","tabindex","readonly","disabled"],["role","option",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-autocomplete-token-label",4,"ngIf"],[1,"p-autocomplete-token-icon",3,"click"],[3,"styleClass",4,"ngIf"],["class","p-autocomplete-token-icon",4,"ngIf"],[1,"p-autocomplete-token-label"],[3,"styleClass"],[1,"p-autocomplete-token-icon"],[3,"styleClass","spin",4,"ngIf"],["class","p-autocomplete-loader pi-spin ",4,"ngIf"],[3,"styleClass","spin"],[1,"p-autocomplete-loader","pi-spin"],["type","button","pButton","","pRipple","",1,"p-autocomplete-dropdown","p-button-icon-only",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-autocomplete-items",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-autocomplete-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-autocomplete-item-group",3,"ngStyle"],["pRipple","","role","option",1,"p-autocomplete-item",3,"click","mouseenter","ngStyle","ngClass"],["role","option",1,"p-autocomplete-empty-message",3,"ngStyle"],[4,"ngIf","ngIfElse"]],template:function(n,r){if(n&1){let o=F();m(0,"div",10,0),E("click",function(a){return y(o),v(r.onContainerClick(a))}),f(2,IL,2,23,"input",11)(3,EL,3,2,"ng-container",12)(4,NL,6,28,"ul",13)(5,jL,3,2,"ng-container",12)(6,qL,4,5,"button",14),m(7,"p-overlay",15,1),Nt("visibleChange",function(a){return y(o),Bt(r.overlayVisible,a)||(r.overlayVisible=a),v(a)}),E("onAnimationStart",function(a){return y(o),v(r.onOverlayAnimationStart(a))})("onHide",function(){return y(o),v(r.hide())}),m(9,"div",16),f(10,KL,1,0,"ng-container",17)(11,eN,4,10,"p-scroller",18)(12,nN,2,6,"ng-container",12)(13,hN,4,7,"ng-template",null,2,it)(15,fN,1,0,"ng-container",17),g(),m(16,"span",19),K(17),g()()()}n&2&&(R(r.styleClass),c("ngClass",r.containerClass)("ngStyle",r.style),p(2),c("ngIf",!r.multiple),p(),c("ngIf",r.filled&&!r.disabled&&r.showClear&&!r.loading),p(),c("ngIf",r.multiple),p(),c("ngIf",r.loading),p(),c("ngIf",r.dropdown),p(),Lt("visible",r.overlayVisible),c("options",r.overlayOptions)("target","@parent")("appendTo",r.appendTo)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions),p(2),R(r.panelStyleClass),On("max-height",r.virtualScroll?"auto":r.scrollHeight),c("ngClass",r.panelClass)("ngStyle",r.panelStyle),p(),c("ngTemplateOutlet",r.headerTemplate),p(),c("ngIf",r.virtualScroll),p(),c("ngIf",!r.virtualScroll),p(3),c("ngTemplateOutlet",r.footerTemplate),p(2),yt(" ",r.selectedMessageText," "))},dependencies:()=>[Oe,Ct,Ce,Ae,je,so,xe,bn,Dt,wr,jt,Gi,Un,mt,$n],styles:[`@layer primeng{.p-autocomplete{display:inline-flex;position:relative}.p-autocomplete-loader{position:absolute;top:50%;margin-top:-.5rem}.p-autocomplete-dd .p-autocomplete-input{flex:1 1 auto;width:1%}.p-autocomplete-dd .p-autocomplete-input,.p-autocomplete-dd .p-autocomplete-multiple-container{border-top-right-radius:0;border-bottom-right-radius:0}.p-autocomplete-dd .p-autocomplete-dropdown{border-top-left-radius:0;border-bottom-left-radius:0}.p-autocomplete-panel{overflow:auto}.p-autocomplete-items{margin:0;padding:0;list-style-type:none}.p-autocomplete-item{cursor:pointer;white-space:nowrap;position:relative;overflow:hidden}.p-autocomplete-multiple-container{margin:0;padding:0;list-style-type:none;cursor:text;overflow:hidden;display:flex;align-items:center;flex-wrap:wrap}.p-autocomplete-token{width:fit-content;cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-autocomplete-token-icon{display:flex;cursor:pointer}.p-autocomplete-input-token{flex:1 1 auto;display:inline-flex}.p-autocomplete-input-token input{border:0 none;outline:0 none;background-color:transparent;margin:0;padding:0;box-shadow:none;border-radius:0;width:100%}.p-fluid .p-autocomplete{display:flex}.p-fluid .p-autocomplete-dd .p-autocomplete-input{width:1%}.p-autocomplete-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-autocomplete-clearable{position:relative}}
65
+ `],encapsulation:2,changeDetection:0})}return t})(),db=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,Wi,Gn,Yt,ke,At,Wn,St,Gi,Un,mt,$n,Wi,ke,Wn,St]})}return t})();var _N=["input"],yN=(t,i,e)=>({"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":i,"p-checkbox-focused":e}),vN=(t,i,e)=>({"p-highlight":t,"p-disabled":i,"p-focus":e}),CN=(t,i,e)=>({"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e});function bN(t,i){if(t&1&&D(0,"span",10),t&2){let e=d(3);c("ngClass",e.checkboxIcon),w("data-pc-section","icon")}}function wN(t,i){t&1&&D(0,"CheckIcon",11),t&2&&(c("styleClass","p-checkbox-icon"),w("data-pc-section","icon"))}function IN(t,i){if(t&1&&(L(0),f(1,bN,1,2,"span",8)(2,wN,1,2,"CheckIcon",9),N()),t&2){let e=d(2);p(),c("ngIf",e.checkboxIcon),p(),c("ngIf",!e.checkboxIcon)}}function xN(t,i){}function TN(t,i){t&1&&f(0,xN,0,0,"ng-template")}function SN(t,i){if(t&1&&(m(0,"span",12),f(1,TN,1,0,null,13),g()),t&2){let e=d(2);w("data-pc-section","icon"),p(),c("ngTemplateOutlet",e.checkboxIconTemplate)}}function DN(t,i){if(t&1&&(L(0),f(1,IN,3,2,"ng-container",5)(2,SN,2,2,"span",7),N()),t&2){let e=d();p(),c("ngIf",!e.checkboxIconTemplate),p(),c("ngIf",e.checkboxIconTemplate)}}function EN(t,i){if(t&1){let e=F();m(0,"label",14),E("click",function(r){y(e);let o=d(),s=Ee(3);return v(o.onClick(r,s,!0))}),K(1),g()}if(t&2){let e=d();R(e.labelStyleClass),c("ngClass",lt(6,CN,e.checked(),e.disabled,e.focused)),w("for",e.inputId)("data-pc-section","label"),p(),yt(" ",e.label,"")}}var MN={provide:Ft,useExisting:dt(()=>Om),multi:!0},Om=(()=>{class t{cd;value;name;disabled;binary;label;ariaLabelledBy;ariaLabel;tabindex;inputId;style;styleClass;labelStyleClass;formControl;checkboxIcon;readonly;required;autofocus;trueValue=!0;falseValue=!1;onChange=new O;onFocus=new O;onBlur=new O;inputViewChild;templates;checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;constructor(e){this.cd=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this.checkboxIconTemplate=e.template;break}})}onClick(e,n,r){e.preventDefault(),!(this.disabled||this.readonly)&&(this.updateModel(e),r&&n.focus())}updateModel(e){let n;this.binary?(n=this.checked()?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(this.checked()?n=this.model.filter(r=>!k.equals(r,this.value)):n=this.model?[...this.model,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this.onChange.emit({checked:n,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){setTimeout(()=>{this.disabled=e,this.cd.markForCheck()})}checked(){return this.binary?this.model===this.trueValue:k.contains(this.value,this.model)}static \u0275fac=function(n){return new(n||t)(x(ce))};static \u0275cmp=P({type:t,selectors:[["p-checkbox"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&Z(_N,5),n&2){let o;j(o=z())&&(r.inputViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],binary:[C.HasDecoratorInputTransform,"binary","binary",T],label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q],inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[C.HasDecoratorInputTransform,"readonly","readonly",T],required:[C.HasDecoratorInputTransform,"required","required",T],autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T],trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[ht([MN]),fe],decls:7,vars:36,consts:[["input",""],[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox","pAutoFocus","",3,"change","focus","blur","value","checked","disabled","readonly","autofocus"],[1,"p-checkbox-box",3,"click","ngClass"],[4,"ngIf"],[3,"class","ngClass","click",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[3,"click","ngClass"]],template:function(n,r){if(n&1){let o=F();m(0,"div",1)(1,"div",2)(2,"input",3,0),E("change",function(a){return y(o),v(r.handleChange(a))})("focus",function(a){return y(o),v(r.onInputFocus(a))})("blur",function(a){return y(o),v(r.onInputBlur(a))}),g()(),m(4,"div",4),E("click",function(a){y(o);let l=Ee(3);return v(r.onClick(a,l,!0))}),f(5,DN,3,2,"ng-container",5),g()(),f(6,EN,2,10,"label",6)}n&2&&(R(r.styleClass),c("ngStyle",r.style)("ngClass",lt(28,yN,r.checked(),r.disabled,r.focused)),w("data-pc-name","checkbox")("data-pc-section","root"),p(),w("data-pc-section","hiddenInputWrapper")("data-p-hidden-accessible",!0),p(),c("value",r.value)("checked",r.checked())("disabled",r.disabled)("readonly",r.readonly)("autofocus",r.autofocus),w("id",r.inputId)("name",r.name)("tabindex",r.tabindex)("required",r.required)("aria-labelledby",r.ariaLabelledBy)("aria-label",r.ariaLabel)("aria-checked",r.checked())("data-pc-section","hiddenInput"),p(2),c("ngClass",lt(32,vN,r.checked(),r.disabled,r.focused)),w("data-p-highlight",r.checked())("data-p-disabled",r.disabled)("data-p-focused",r.focused)("data-pc-section","input"),p(),c("ngIf",r.checked()),p(),c("ngIf",r.label))},dependencies:()=>[Oe,Ce,Ae,je,jt,Vt],styles:[`@layer primeng{.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}}
66
+ `],encapsulation:2,changeDetection:0})}return t})(),pb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,St,Vt,ke]})}return t})();var kN=["container"],FN=["input"],AN=["colorSelector"],RN=["colorHandle"],LN=["hue"],NN=["hueHandle"],VN=(t,i)=>({"p-colorpicker p-component":!0,"p-colorpicker-overlay":t,"p-colorpicker-dragging":i}),PN=t=>({"p-disabled":t}),HN=(t,i)=>({"p-colorpicker-panel":!0,"p-colorpicker-overlay-panel":t,"p-disabled":i}),BN=(t,i)=>({showTransitionParams:t,hideTransitionParams:i}),jN=t=>({value:"visible",params:t});function zN(t,i){if(t&1){let e=F();m(0,"input",9,1),E("click",function(){y(e);let r=d();return v(r.onInputClick())})("keydown",function(r){y(e);let o=d();return v(o.onInputKeydown(r))})("focus",function(){y(e);let r=d();return v(r.onInputFocus())}),g()}if(t&2){let e=d();On("background-color",e.inputBgColor),c("ngClass",U(9,PN,e.disabled))("disabled",e.disabled)("autofocus",e.autofocus),w("tabindex",e.tabindex)("id",e.inputId)("data-pc-section","input")("aria-label",e.ariaLabel)}}function UN(t,i){if(t&1){let e=F();m(0,"div",10),E("click",function(r){y(e);let o=d();return v(o.onOverlayClick(r))})("@overlayAnimation.start",function(r){y(e);let o=d();return v(o.onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){y(e);let o=d();return v(o.onOverlayAnimationEnd(r))}),m(1,"div",11)(2,"div",12,2),E("touchstart",function(r){y(e);let o=d();return v(o.onColorDragStart(r))})("touchmove",function(r){y(e);let o=d();return v(o.onDrag(r))})("touchend",function(){y(e);let r=d();return v(r.onDragEnd())})("mousedown",function(r){y(e);let o=d();return v(o.onColorMousedown(r))}),m(4,"div",13),D(5,"div",14,3),g()(),m(7,"div",15,4),E("mousedown",function(r){y(e);let o=d();return v(o.onHueMousedown(r))})("touchstart",function(r){y(e);let o=d();return v(o.onHueDragStart(r))})("touchmove",function(r){y(e);let o=d();return v(o.onDrag(r))})("touchend",function(){y(e);let r=d();return v(r.onDragEnd())}),D(9,"div",16,5),g()()()}if(t&2){let e=d();c("ngClass",we(10,HN,!e.inline,e.disabled))("@overlayAnimation",U(16,jN,we(13,BN,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0),w("data-pc-section","panel"),p(),w("data-pc-section","content"),p(),w("data-pc-section","selector"),p(2),w("data-pc-section","color"),p(),w("data-pc-section","colorHandle"),p(2),w("data-pc-section","hue"),p(2),w("data-pc-section","hueHandle")}}var $N={provide:Ft,useExisting:dt(()=>km),multi:!0},km=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;style;styleClass;inline;format="hex";appendTo;disabled;tabindex;inputId;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";autofocus;onChange=new O;onShow=new O;onHide=new O;containerViewChild;inputViewChild;value={h:0,s:100,b:100};inputBgColor;shown;overlayVisible;defaultColor="ff0000";onModelChange=()=>{};onModelTouched=()=>{};documentClickListener;documentResizeListener;documentMousemoveListener;documentMouseupListener;documentHueMoveListener;scrollHandler;selfClick;colorDragging;hueDragging;overlay;colorSelectorViewChild;colorHandleViewChild;hueViewChild;hueHandleViewChild;window;constructor(e,n,r,o,s,a,l){this.document=e,this.platformId=n,this.el=r,this.renderer=o,this.cd=s,this.config=a,this.overlayService=l,this.window=this.document.defaultView}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}get ariaLabel(){return this.config?.getTranslation(ze.ARIA)[ze.SELECT_COLOR]}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueDragStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e,e.changedTouches[0]))}onColorDragStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e,e.changedTouches[0]))}pickHue(e,n){let r=n?n.pageY:e.pageY,o=this.hueViewChild?.nativeElement.getBoundingClientRect().top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,r-o)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onDrag(e){this.colorDragging&&(this.pickColor(e,e.changedTouches[0]),e.preventDefault()),this.hueDragging&&(this.pickHue(e,e.changedTouches[0]),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e,n){let r=n?n.pageX:e.pageX,o=n?n.pageY:e.pageY,s=this.colorSelectorViewChild?.nativeElement.getBoundingClientRect(),a=s.top+(this.document.defaultView.pageYOffset||this.document.documentElement.scrollTop||this.document.body.scrollTop||0),l=s.left+this.document.body.scrollLeft,u=Math.floor(100*Math.max(0,Math.min(150,r-l))/150),h=Math.floor(100*(150-Math.max(0,Math.min(150,o-a)))/150);this.value=this.validateHSB({h:this.value.h,s:u,b:h}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value;break}return e}updateModel(){this.onModelChange(this.getValueToUpdate())}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e;break}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){let e={};e.s=100,e.b=100,e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild?.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inline||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&qe.set("overlay",this.overlay,this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide();break}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.autoZIndex&&qe.clear(e.element),this.onHide.emit({});break}}appendOverlay(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.overlay):b.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.overlay)}alignOverlay(){this.appendTo?b.absolutePosition(this.overlay,this.inputViewChild?.nativeElement):b.relativePosition(this.overlay,this.inputViewChild?.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.code){case"Space":this.togglePanel(),e.preventDefault();break;case"Escape":case"Tab":this.hide();break;default:break}}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){if(!this.documentClickListener){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){if(!this.documentMousemoveListener){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentMousemoveListener=this.renderer.listen(e,"mousemove",n=>{this.colorDragging&&this.pickColor(n),this.hueDragging&&this.pickHue(n)})}}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){if(!this.documentMouseupListener){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentMouseupListener=this.renderer.listen(e,"mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()})}}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){bt(this.platformId)&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!b.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Cn(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var n=6-e.length;if(n>0){for(var r=[],o=0;o<n;o++)r.push("0");r.push(e),e=r.join("")}return e}HEXtoRGB(e){let n=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:n>>16,g:(n&65280)>>8,b:n&255}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var n={h:0,s:0,b:0},r=Math.min(e.r,e.g,e.b),o=Math.max(e.r,e.g,e.b),s=o-r;return n.b=o,n.s=o!=0?255*s/o:0,n.s!=0?e.r==o?n.h=(e.g-e.b)/s:e.g==o?n.h=2+(e.b-e.r)/s:n.h=4+(e.r-e.g)/s:n.h=-1,n.h*=60,n.h<0&&(n.h+=360),n.s*=100/255,n.b*=100/255,n}HSBtoRGB(e){var n={r:0,g:0,b:0};let r=e.h,o=e.s*255/100,s=e.b*255/100;if(o==0)n={r:s,g:s,b:s};else{let a=s,l=(255-o)*s/255,u=(a-l)*(r%60)/60;r==360&&(r=0),r<60?(n.r=a,n.b=l,n.g=l+u):r<120?(n.g=a,n.b=l,n.r=a-u):r<180?(n.g=a,n.r=l,n.b=l+u):r<240?(n.b=a,n.r=l,n.g=a-u):r<300?(n.b=a,n.g=l,n.r=l+u):r<360?(n.r=a,n.g=l,n.b=a-u):(n.r=0,n.g=0,n.b=0)}return{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}}RGBtoHEX(e){var n=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var r in n)n[r].length==1&&(n[r]="0"+n[r]);return n.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&qe.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(n){return new(n||t)(x(Se),x(pt),x(_e),x(Be),x(ce),x(ot),x(un))};static \u0275cmp=P({type:t,selectors:[["p-colorPicker"]],viewQuery:function(n,r){if(n&1&&(Z(kN,5),Z(FN,5),Z(AN,5),Z(RN,5),Z(LN,5),Z(NN,5)),n&2){let o;j(o=z())&&(r.containerViewChild=o.first),j(o=z())&&(r.inputViewChild=o.first),j(o=z())&&(r.colorSelector=o.first),j(o=z())&&(r.colorHandle=o.first),j(o=z())&&(r.hue=o.first),j(o=z())&&(r.hueHandle=o.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",inline:[C.HasDecoratorInputTransform,"inline","inline",T],format:"format",appendTo:"appendTo",disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],tabindex:"tabindex",inputId:"inputId",autoZIndex:[C.HasDecoratorInputTransform,"autoZIndex","autoZIndex",T],baseZIndex:[C.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Q],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T]},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[ht([$N]),fe],decls:4,vars:11,consts:[["container",""],["input",""],["colorSelector",""],["colorHandle",""],["hue",""],["hueHandle",""],[3,"ngStyle","ngClass"],["type","text","class","p-colorpicker-preview p-inputtext","readonly","readonly","pAutoFocus","",3,"ngClass","disabled","backgroundColor","autofocus","click","keydown","focus",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly","pAutoFocus","",1,"p-colorpicker-preview","p-inputtext",3,"click","keydown","focus","ngClass","disabled","autofocus"],[3,"click","ngClass"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],[1,"p-colorpicker-color"],[1,"p-colorpicker-color-handle"],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],[1,"p-colorpicker-hue-handle"]],template:function(n,r){n&1&&(m(0,"div",6,0),f(2,zN,2,11,"input",7)(3,UN,11,18,"div",8),g()),n&2&&(R(r.styleClass),c("ngStyle",r.style)("ngClass",we(8,VN,!r.inline,r.colorDragging||r.hueDragging)),w("data-pc-name","colorpicker")("data-pc-section","root"),p(2),c("ngIf",!r.inline),p(),c("ngIf",r.inline||r.overlayVisible))},dependencies:[Oe,Ce,je,jt],styles:[`@layer primeng{.p-colorpicker{display:inline-block}.p-colorpicker-dragging{cursor:pointer}.p-colorpicker-overlay{position:relative}.p-colorpicker-panel{position:relative;width:193px;height:166px}.p-colorpicker-overlay-panel{position:absolute;top:0;left:0}.p-colorpicker-preview{cursor:pointer}.p-colorpicker-panel .p-colorpicker-content{position:relative}.p-colorpicker-panel .p-colorpicker-color-selector{width:150px;height:150px;top:8px;left:8px;position:absolute}.p-colorpicker-panel .p-colorpicker-color{width:150px;height:150px}.p-colorpicker-panel .p-colorpicker-color-handle{position:absolute;top:0;left:150px;border-radius:100%;width:10px;height:10px;border-width:1px;border-style:solid;margin:-5px 0 0 -5px;cursor:pointer;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue{width:17px;height:150px;top:8px;left:167px;position:absolute;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue-handle{position:absolute;top:150px;left:0;width:21px;margin-left:-2px;margin-top:-5px;height:10px;border-width:2px;border-style:solid;opacity:.85;cursor:pointer}}
67
+ `],encapsulation:2,data:{animation:[en("overlayAnimation",[ft(":enter",[Je({opacity:0,transform:"scaleY(0.8)"}),vt("{{showTransitionParams}}")]),ft(":leave",[vt("{{hideTransitionParams}}",Je({opacity:0}))])])]},changeDetection:0})}return t})(),hb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,St]})}return t})();var ps=(()=>{class t{platformId;el;zone;config;renderer;viewContainer;tooltipPosition;tooltipEvent="hover";appendTo;positionStyle;tooltipStyleClass;tooltipZIndex;escape=!0;showDelay;hideDelay;life;positionTop;positionLeft;autoHide=!0;fitContent=!0;hideOnEscape=!0;content;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}tooltipOptions;_tooltipOptions={tooltipLabel:null,tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",positionStyle:null,tooltipStyleClass:null,tooltipZIndex:"auto",escape:!0,disabled:null,showDelay:null,hideDelay:null,positionTop:null,positionLeft:null,life:null,autoHide:!0,hideOnEscape:!0,id:me()+"_tooltip"};_disabled;container;styleClass;tooltipText;showTimeout;hideTimeout;active;mouseEnterListener;mouseLeaveListener;containerMouseleaveListener;clickListener;focusListener;blurListener;scrollHandler;resizeListener;constructor(e,n,r,o,s,a){this.platformId=e,this.el=n,this.zone=r,this.config=o,this.renderer=s,this.viewContainer=a}ngAfterViewInit(){bt(this.platformId)&&this.zone.runOutsideAngular(()=>{if(this.getOption("tooltipEvent")==="hover")this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);else if(this.getOption("tooltipEvent")==="focus"){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.content&&(this.setOption({tooltipLabel:e.content.currentValue}),this.active&&(e.content.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),e.id&&this.setOption({id:e.id.currentValue}),e.tooltipOptions&&(this._tooltipOptions=$($({},this._tooltipOptions),e.tooltipOptions.currentValue),this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.isAutoHide()?this.deactivate():!(b.hasClass(e.relatedTarget,"p-tooltip")||b.hasClass(e.relatedTarget,"p-tooltip-text")||b.hasClass(e.relatedTarget,"p-tooltip-arrow"))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(e){this.deactivate()}onPressEscape(){this.hideOnEscape&&this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div"),this.container.setAttribute("id",this.getOption("id")),this.container.setAttribute("role","tooltip");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),this.getOption("appendTo")==="body"?document.body.appendChild(this.container):this.getOption("appendTo")==="target"?b.appendChild(this.container,this.el.nativeElement):b.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content"),this.isAutoHide()?this.container.style.pointerEvents="none":(this.container.style.pointerEvents="unset",this.bindContainerMouseleaveListener())}bindContainerMouseleaveListener(){if(!this.containerMouseleaveListener){let e=this.container??this.container.nativeElement;this.containerMouseleaveListener=this.renderer.listen(e,"mouseleave",n=>{this.deactivate()})}}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),b.fadeIn(this.container,250),this.getOption("tooltipZIndex")==="auto"?qe.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){this.getOption("tooltipZIndex")==="auto"&&qe.clear(this.container),this.remove()}updateText(){let e=this.getOption("tooltipLabel");if(e instanceof Nn){let n=this.viewContainer.createEmbeddedView(e);n.detectChanges(),n.rootNodes.forEach(r=>this.tooltipText.appendChild(r))}else this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(e))):this.tooltipText.innerHTML=e}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break}}getHostOffset(){if(this.getOption("appendTo")==="body"||this.getOption("appendTo")==="target"){let e=this.el.nativeElement.getBoundingClientRect(),n=e.left+b.getWindowScrollLeft(),r=e.top+b.getWindowScrollTop();return{left:n,top:r}}else return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),n=e.left+b.getOuterWidth(this.el.nativeElement),r=e.top+(b.getOuterHeight(this.el.nativeElement)-b.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),n=e.left-b.getOuterWidth(this.container),r=e.top+(b.getOuterHeight(this.el.nativeElement)-b.getOuterHeight(this.container))/2;this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),n=e.left+(b.getOuterWidth(this.el.nativeElement)-b.getOuterWidth(this.container))/2,r=e.top-b.getOuterHeight(this.container);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),n=e.left+(b.getOuterWidth(this.el.nativeElement)-b.getOuterWidth(this.container))/2,r=e.top+b.getOuterHeight(this.el.nativeElement);this.container.style.left=n+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions=$($({},this._tooltipOptions),e)}getOption(e){return this._tooltipOptions[e]}getTarget(e){return b.hasClass(e,"p-inputwrapper")?b.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let n="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?n+" "+this.getOption("tooltipStyleClass"):n}isOutOfBounds(){let e=this.container.getBoundingClientRect(),n=e.top,r=e.left,o=b.getOuterWidth(this.container),s=b.getOuterHeight(this.container),a=b.getViewport();return r+o>a.width||r<0||n<0||n+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Cn(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if(this.getOption("tooltipEvent")==="hover")this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if(this.getOption("tooltipEvent")==="focus"){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&(this.getOption("appendTo")==="body"?document.body.removeChild(this.container):this.getOption("appendTo")==="target"?this.el.nativeElement.removeChild(this.container):b.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.unbindContainerMouseleaveListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&qe.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}static \u0275fac=function(n){return new(n||t)(x(pt),x(_e),x(ge),x(ot),x(Be),x(Bn))};static \u0275dir=$e({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],hostBindings:function(n,r){n&1&&E("keydown.escape",function(s){return r.onPressEscape(s)},!1,dy)},inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:[C.HasDecoratorInputTransform,"escape","escape",T],showDelay:[C.HasDecoratorInputTransform,"showDelay","showDelay",Q],hideDelay:[C.HasDecoratorInputTransform,"hideDelay","hideDelay",Q],life:[C.HasDecoratorInputTransform,"life","life",Q],positionTop:[C.HasDecoratorInputTransform,"positionTop","positionTop",Q],positionLeft:[C.HasDecoratorInputTransform,"positionLeft","positionLeft",Q],autoHide:[C.HasDecoratorInputTransform,"autoHide","autoHide",T],fitContent:[C.HasDecoratorInputTransform,"fitContent","fitContent",T],hideOnEscape:[C.HasDecoratorInputTransform,"hideOnEscape","hideOnEscape",T],content:[C.None,"pTooltip","content"],disabled:[C.None,"tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[fe,$t]})}return t})(),ao=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue]})}return t})();var hs=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["SearchIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Ta=t=>({height:t}),WN=(t,i,e)=>({"p-dropdown-item":!0,"p-highlight":t,"p-disabled":i,"p-focus":e}),Am=t=>({$implicit:t});function qN(t,i){if(t&1&&(m(0,"span"),K(1),g()),t&2){let e,n=d();p(),se((e=n.label)!==null&&e!==void 0?e:"empty")}}function KN(t,i){t&1&&H(0)}var QN=["container"],ZN=["filter"],YN=["focusInput"],XN=["editableInput"],JN=["items"],eV=["scroller"],tV=["overlay"],nV=["firstHiddenFocusableEl"],iV=["lastHiddenFocusableEl"],fb=t=>({options:t}),mb=(t,i)=>({$implicit:t,options:i}),rV=()=>({});function oV(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(2);p(),se(e.label()==="p-emptylabel"?"\xA0":e.label())}}function sV(t,i){if(t&1&&H(0,25),t&2){let e=d(2);c("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",U(2,Am,e.selectedOption))}}function aV(t,i){if(t&1&&(m(0,"span"),K(1),g()),t&2){let e=d(3);p(),se(e.label()==="p-emptylabel"?"\xA0":e.placeholder())}}function lV(t,i){if(t&1&&f(0,aV,2,1,"span",17),t&2){let e=d(2);c("ngIf",e.displayPlaceholder())}}function cV(t,i){if(t&1){let e=F();m(0,"span",22,2),E("focus",function(r){y(e);let o=d();return v(o.onInputFocus(r))})("blur",function(r){y(e);let o=d();return v(o.onInputBlur(r))})("keydown",function(r){y(e);let o=d();return v(o.onKeyDown(r))}),f(2,oV,2,1,"ng-container",23)(3,sV,1,4,"ng-container",24)(4,lV,1,1,"ng-template",null,3,it),g()}if(t&2){let e,n=Ee(5),r=d();c("ngClass",r.inputClass)("pTooltip",r.tooltip)("tooltipPosition",r.tooltipPosition)("positionStyle",r.tooltipPositionStyle)("tooltipStyleClass",r.tooltipStyleClass)("autofocus",r.autofocus),w("aria-disabled",r.disabled)("id",r.inputId)("aria-label",r.ariaLabel||(r.label()==="p-emptylabel"?void 0:r.label()))("aria-labelledby",r.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",(e=r.overlayVisible)!==null&&e!==void 0?e:!1)("aria-controls",r.overlayVisible?r.id+"_list":null)("tabindex",r.disabled?-1:r.tabindex)("aria-activedescendant",r.focused?r.focusedOptionId:void 0)("aria-required",r.required)("required",r.required),p(2),c("ngIf",!r.selectedItemTemplate)("ngIfElse",n),p(),c("ngIf",r.selectedItemTemplate&&r.selectedOption)}}function uV(t,i){if(t&1){let e=F();m(0,"input",26,4),E("input",function(r){y(e);let o=d();return v(o.onEditableInput(r))})("keydown",function(r){y(e);let o=d();return v(o.onKeyDown(r))})("focus",function(r){y(e);let o=d();return v(o.onInputFocus(r))})("blur",function(r){y(e);let o=d();return v(o.onInputBlur(r))}),g()}if(t&2){let e=d();c("ngClass",e.inputClass)("disabled",e.disabled)("autofocus",e.autofocus),w("maxlength",e.maxlength)("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)}}function dV(t,i){if(t&1){let e=F();m(0,"TimesIcon",29),E("click",function(r){y(e);let o=d(2);return v(o.clear(r))}),g()}t&2&&(c("styleClass","p-dropdown-clear-icon"),w("data-pc-section","clearicon"))}function pV(t,i){}function hV(t,i){t&1&&f(0,pV,0,0,"ng-template")}function fV(t,i){if(t&1){let e=F();m(0,"span",30),E("click",function(r){y(e);let o=d(2);return v(o.clear(r))}),f(1,hV,1,0,null,31),g()}if(t&2){let e=d(2);w("data-pc-section","clearicon"),p(),c("ngTemplateOutlet",e.clearIconTemplate)}}function mV(t,i){if(t&1&&(L(0),f(1,dV,1,2,"TimesIcon",27)(2,fV,2,2,"span",28),N()),t&2){let e=d();p(),c("ngIf",!e.clearIconTemplate),p(),c("ngIf",e.clearIconTemplate)}}function gV(t,i){if(t&1&&D(0,"span",34),t&2){let e=d(2);c("ngClass",e.dropdownIcon)}}function _V(t,i){t&1&&D(0,"ChevronDownIcon",35),t&2&&c("styleClass","p-dropdown-trigger-icon")}function yV(t,i){if(t&1&&(L(0),f(1,gV,1,1,"span",32)(2,_V,1,1,"ChevronDownIcon",33),N()),t&2){let e=d();p(),c("ngIf",e.dropdownIcon),p(),c("ngIf",!e.dropdownIcon)}}function vV(t,i){}function CV(t,i){t&1&&f(0,vV,0,0,"ng-template")}function bV(t,i){if(t&1&&(m(0,"span",36),f(1,CV,1,0,null,31),g()),t&2){let e=d();p(),c("ngTemplateOutlet",e.dropdownIconTemplate)}}function wV(t,i){t&1&&H(0)}function IV(t,i){t&1&&H(0)}function xV(t,i){if(t&1&&(L(0),f(1,IV,1,0,"ng-container",43),N()),t&2){let e=d(3);p(),c("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",U(2,fb,e.filterOptions))}}function TV(t,i){t&1&&D(0,"SearchIcon",35),t&2&&c("styleClass","p-dropdown-filter-icon")}function SV(t,i){}function DV(t,i){t&1&&f(0,SV,0,0,"ng-template")}function EV(t,i){if(t&1&&(m(0,"span",47),f(1,DV,1,0,null,31),g()),t&2){let e=d(4);p(),c("ngTemplateOutlet",e.filterIconTemplate)}}function MV(t,i){if(t&1){let e=F();m(0,"div",44)(1,"input",45,9),E("input",function(r){y(e);let o=d(3);return v(o.onFilterInputChange(r))})("keydown",function(r){y(e);let o=d(3);return v(o.onFilterKeyDown(r))})("blur",function(r){y(e);let o=d(3);return v(o.onFilterBlur(r))}),g(),f(3,TV,1,1,"SearchIcon",33)(4,EV,2,1,"span",46),g()}if(t&2){let e=d(3);p(),c("value",e._filterValue()||""),w("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),p(2),c("ngIf",!e.filterIconTemplate),p(),c("ngIf",e.filterIconTemplate)}}function OV(t,i){if(t&1){let e=F();m(0,"div",42),E("click",function(r){return y(e),v(r.stopPropagation())}),f(1,xV,2,4,"ng-container",23)(2,MV,5,7,"ng-template",null,8,it),g()}if(t&2){let e=Ee(3),n=d(2);p(),c("ngIf",n.filterTemplate)("ngIfElse",e)}}function kV(t,i){t&1&&H(0)}function FV(t,i){if(t&1&&f(0,kV,1,0,"ng-container",43),t&2){let e=i.$implicit,n=i.options;d(2);let r=Ee(9);c("ngTemplateOutlet",r)("ngTemplateOutletContext",we(2,mb,e,n))}}function AV(t,i){t&1&&H(0)}function RV(t,i){if(t&1&&f(0,AV,1,0,"ng-container",43),t&2){let e=i.options,n=d(4);c("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",U(2,fb,e))}}function LV(t,i){t&1&&(L(0),f(1,RV,1,4,"ng-template",49),N())}function NV(t,i){if(t&1){let e=F();m(0,"p-scroller",48,10),E("onLazyLoad",function(r){y(e);let o=d(2);return v(o.onLazyLoad.emit(r))}),f(2,FV,1,5,"ng-template",21)(3,LV,2,0,"ng-container",17),g()}if(t&2){let e=d(2);_t(U(8,Ta,e.scrollHeight)),c("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),p(3),c("ngIf",e.loaderTemplate)}}function VV(t,i){t&1&&H(0)}function PV(t,i){if(t&1&&(L(0),f(1,VV,1,0,"ng-container",43),N()),t&2){d();let e=Ee(9),n=d();p(),c("ngTemplateOutlet",e)("ngTemplateOutletContext",we(3,mb,n.visibleOptions(),Qe(2,rV)))}}function HV(t,i){if(t&1&&(m(0,"span"),K(1),g()),t&2){let e=d(2).$implicit,n=d(3);p(),se(n.getOptionGroupLabel(e.optionGroup))}}function BV(t,i){t&1&&H(0)}function jV(t,i){if(t&1&&(L(0),m(1,"li",53),f(2,HV,2,1,"span",17)(3,BV,1,0,"ng-container",43),g(),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d().options,s=d(2);p(),c("ngStyle",U(5,Ta,o.itemSize+"px")),w("id",s.id+"_"+s.getOptionIndex(r,o)),p(),c("ngIf",!s.groupTemplate),p(),c("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(7,Am,n.optionGroup))}}function zV(t,i){if(t&1){let e=F();L(0),m(1,"p-dropdownItem",54),E("onClick",function(r){y(e);let o=d().$implicit,s=d(3);return v(s.onOptionSelect(r,o))})("onMouseEnter",function(r){y(e);let o=d().index,s=d().options,a=d(2);return v(a.onOptionMouseEnter(r,a.getOptionIndex(o,s)))}),g(),N()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d().options,s=d(2);p(),c("id",s.id+"_"+s.getOptionIndex(r,o))("option",n)("selected",s.isSelected(n))("label",s.getOptionLabel(n))("disabled",s.isOptionDisabled(n))("template",s.itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(r,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(r,o)))("ariaSetSize",s.ariaSetSize)}}function UV(t,i){if(t&1&&f(0,jV,4,9,"ng-container",17)(1,zV,2,9,"ng-container",17),t&2){let e=i.$implicit,n=d(3);c("ngIf",n.isOptionGroup(e)),p(),c("ngIf",!n.isOptionGroup(e))}}function $V(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(4);p(),yt(" ",e.emptyFilterMessageLabel," ")}}function GV(t,i){t&1&&H(0,null,12)}function WV(t,i){if(t&1&&(m(0,"li",55),f(1,$V,2,1,"ng-container",23)(2,GV,2,0,"ng-container",31),g()),t&2){let e=d().options,n=d(2);c("ngStyle",U(4,Ta,e.itemSize+"px")),p(),c("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),p(),c("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function qV(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(4);p(),yt(" ",e.emptyMessageLabel," ")}}function KV(t,i){t&1&&H(0,null,13)}function QV(t,i){if(t&1&&(m(0,"li",55),f(1,qV,2,1,"ng-container",23)(2,KV,2,0,"ng-container",31),g()),t&2){let e=d().options,n=d(2);c("ngStyle",U(4,Ta,e.itemSize+"px")),p(),c("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),p(),c("ngTemplateOutlet",n.emptyTemplate)}}function ZV(t,i){if(t&1&&(m(0,"ul",50,11),f(2,UV,2,2,"ng-template",51)(3,WV,3,6,"li",52)(4,QV,3,6,"li",52),g()),t&2){let e=i.$implicit,n=i.options,r=d(2);_t(n.contentStyle),c("ngClass",n.contentStyleClass),w("id",r.id+"_list")("aria-label",r.listLabel),p(2),c("ngForOf",e),p(),c("ngIf",r.filterValue&&r.isEmpty()),p(),c("ngIf",!r.filterValue&&r.isEmpty())}}function YV(t,i){t&1&&H(0)}function XV(t,i){if(t&1){let e=F();m(0,"div",37)(1,"span",38,5),E("focus",function(r){y(e);let o=d();return v(o.onFirstHiddenFocus(r))}),g(),f(3,wV,1,0,"ng-container",31)(4,OV,4,2,"div",39),m(5,"div",40),f(6,NV,4,10,"p-scroller",41)(7,PV,2,6,"ng-container",17)(8,ZV,5,8,"ng-template",null,6,it),g(),f(10,YV,1,0,"ng-container",31),m(11,"span",38,7),E("focus",function(r){y(e);let o=d();return v(o.onLastHiddenFocus(r))}),g()()}if(t&2){let e=d();R(e.panelStyleClass),c("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),p(),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),p(2),c("ngTemplateOutlet",e.headerTemplate),p(),c("ngIf",e.filter),p(),On("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),p(),c("ngIf",e.virtualScroll),p(),c("ngIf",!e.virtualScroll),p(3),c("ngTemplateOutlet",e.footerTemplate),p(),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var JV={provide:Ft,useExisting:dt(()=>qi),multi:!0},e6=(()=>{class t{id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;onClick=new O;onMouseEnter=new O;ngOnInit(){}onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:[C.HasDecoratorInputTransform,"selected","selected",T],focused:[C.HasDecoratorInputTransform,"focused","focused",T],label:"label",disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],visible:[C.HasDecoratorInputTransform,"visible","visible",T],itemSize:[C.HasDecoratorInputTransform,"itemSize","itemSize",Q],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[fe],decls:3,vars:21,consts:[["role","option","pRipple","",3,"click","mouseenter","id","ngStyle","ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&(m(0,"li",0),E("click",function(s){return r.onOptionClick(s)})("mouseenter",function(s){return r.onOptionMouseEnter(s)}),f(1,qN,2,1,"span",1)(2,KN,1,0,"ng-container",2),g()),n&2&&(c("id",r.id)("ngStyle",U(13,Ta,r.itemSize+"px"))("ngClass",lt(15,WN,r.selected,r.disabled,r.focused)),w("aria-label",r.label)("aria-setsize",r.ariaSetSize)("aria-posinset",r.ariaPosInset)("aria-selected",r.selected)("data-p-focused",r.focused)("data-p-highlight",r.selected)("data-p-disabled",r.disabled),p(),c("ngIf",!r.template),p(),c("ngTemplateOutlet",r.template)("ngTemplateOutletContext",U(19,Am,r.option)))},dependencies:[Oe,Ce,Ae,je,Dt],encapsulation:2})}return t})(),qi=(()=>{class t{el;renderer;cd;zone;filterService;config;id;scrollHeight="200px";filter;name;style;panelStyle;styleClass;panelStyleClass;readonly;required;editable;appendTo;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";autoDisplayFirst=!0;group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";maxlength;tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!1;selectOnFocus=!1;autoOptionFocus=!0;autofocusFilter=!0;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}_itemSize;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_autoZIndex;get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}_baseZIndex;get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_showTransitionOptions;get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}_hideTransitionOptions;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){k.deepEquals(e,this._options())||this._options.set(e)}onChange=new O;onFilter=new O;onFocus=new O;onBlur=new O;onClick=new O;onShow=new O;onHide=new O;onClear=new O;onLazyLoad=new O;containerViewChild;filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;templates;_disabled;itemsWrapper;itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;clearIconTemplate;filterIconTemplate;filterOptions;_options=Mt(null);_placeholder=Mt(void 0);modelValue=Mt(null);value;onModelChange=()=>{};onModelTouched=()=>{};hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=Mt(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=Mt(-1);labelId;listId;clicked=Mt(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(ze.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(ze.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.disabled}get listLabel(){return this.config.getTranslation(ze.ARIA).listLabel}get containerClass(){return{"p-dropdown p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-dropdown-clearable":this.showClear&&!this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue()!==void 0&&this.modelValue()!==null&&!this.modelValue().length,"p-inputwrapper-focus":this.focused||this.overlayVisible}}get inputClass(){let e=this.label();return{"p-dropdown-label p-inputtext":!0,"p-placeholder":this.placeholder()&&e===this.placeholder(),"p-dropdown-label-empty":!this.editable&&!this.selectedItemTemplate&&(e==null||e==="p-emptylabel"||e.length===0)}}get panelClass(){return{"p-dropdown-panel p-component":!0,"p-input-filled":this.config.inputStyle==="filled","p-ripple-disabled":this.config.ripple===!1}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=yn(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let r=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],s=[];return o.forEach(a=>{let u=this.getOptionGroupChildren(a).filter(h=>r.includes(h));u.length>0&&s.push(Le($({},a),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...u]}))}),this.flatOptions(s)}return r}return e});label=yn(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=e.findIndex(r=>this.isOptionValueEqualsModelValue(r));return n!==-1?this.getOptionLabel(e[n]):this.placeholder()||"p-emptylabel"});filled=yn(()=>typeof this.modelValue()=="string"?!!this.modelValue():this.label()!=="p-emptylabel"&&this.modelValue()!==void 0&&this.modelValue()!==null);selectedOption;editableInputValue=yn(()=>this.getOptionLabel(this.selectedOption)||this.modelValue()||"");constructor(e,n,r,o,s,a){this.el=e,this.renderer=n,this.cd=r,this.zone=o,this.filterService=s,this.config=a,Qr(()=>{let l=this.modelValue(),u=this.visibleOptions();if(u&&k.isNotEmpty(u)){let h=this.findSelectedOptionIndex();(h!==-1||l===void 0||typeof l=="string"&&l.length===0||this.isModelValueNotSet()||this.editable)&&(this.selectedOption=u[h])}k.isEmpty(u)&&(l===void 0||this.isModelValueNotSet())&&k.isNotEmpty(this.selectedOption)&&(this.selectedOption=null),l!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}displayPlaceholder(){return k.isEmpty(this.selectedOption)&&this.label()===this.placeholder()}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}ngOnInit(){this.id=this.id||me(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}ngAfterViewChecked(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=b.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-highlight");e&&b.scrollInView(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}flatOptions(e){return(e||[]).reduce((n,r,o)=>{n.push({optionGroup:r,group:!0,index:o});let s=this.getOptionGroupChildren(r);return s&&s.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1)),this.autoDisplayFirst&&(this.modelValue()===null||this.modelValue()===void 0)&&!this.placeholder()){let e=this.findFirstOptionIndex();this.onOptionSelect(null,this.visibleOptions()[e],!1,!0)}}onOptionSelect(e,n,r=!0,o=!1){if(!this.isSelected(n)){let s=this.getOptionValue(n);this.updateModel(s,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:s})}r&&this.hide(!0)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e),this.selectedOptionUpdated=!0}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),this.modelValue.set(this.value),this.updateEditableLabel(),this.cd.markForCheck()}allowModelChange(){return this.autoDisplayFirst&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isValidOption(e)&&this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return k.equals(this.modelValue(),this.getOptionValue(e),this.equalityKey())}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?k.resolveFieldData(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?k.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}isOptionDisabled(e){return this.getOptionValue(this.modelValue())===this.getOptionValue(e)||this.getOptionLabel(this.modelValue()===this.getOptionLabel(e))&&e.disabled===!1?!1:this.optionDisabled?k.resolveFieldData(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?k.resolveFieldData(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?k.resolveFieldData(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onContainerClick(e){this.disabled||this.readonly||(this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),!(e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]'))&&((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges()))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let n=e.target.value;this.searchValue="",!this.searchOptions(e,n)&&this.focusedOptionIndex.set(-1),this.onModelChange(n),this.updateModel(n,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:n})},1),!this.overlayVisible&&k.isNotEmpty(n)&&this.show()}show(e){this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex();this.focusedOptionIndex.set(n),e&&b.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=b.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let n=this.modelValue()?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=b.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&b.unblockBodyScroll(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&b.focus(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&b.focus(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.disabled)return;this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,n){if(!(this.disabled||this.readonly)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,n);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&k.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n)}e.preventDefault()}changeFocusedOptionIndex(e,n){if(this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView(),this.selectOnFocus)){let r=this.visibleOptions()[n];this.onOptionSelect(e,r,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let r=b.findSingle(this.itemsViewChild.nativeElement,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?null:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(r=>this.isValidOption(r)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?k.findLastIndex(this.visibleOptions().slice(0,e),r=>this.isValidOption(r)):-1;return n>-1?n:e}findLastOptionIndex(){return k.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,n=!1){if(e.altKey&&!n){if(this.focusedOptionIndex()!==-1){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,r)}this.overlayVisible&&this.hide(),e.preventDefault()}else{let r=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show(),e.preventDefault()}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,n=!1){if(n){let r=e.currentTarget;e.shiftKey?r.setSelectionRange(0,r.value.length):(r.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,n=!1){if(n){let r=e.currentTarget;if(e.shiftKey)r.setSelectionRange(0,r.value.length);else{let o=r.value.length;r.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,n=!1){!this.editable&&!n&&this.onEnterKey(e)}onEnterKey(e,n=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,r)}!n&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onTabKey(e,n=!1){if(!n)if(this.overlayVisible&&this.hasFocusableElements())b.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,r)}this.overlayVisible&&this.hide(this.filter)}}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?b.getFirstFocusableElement(this.overlayViewChild.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;b.focus(n)}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?b.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;b.focus(n)}hasFocusableElements(){return b.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,n=!1){n&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let r=-1,o=!1;return this.focusedOptionIndex()!==-1?(r=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)),r=r===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)):r+this.focusedOptionIndex()):r=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),r!==-1&&(o=!0),r===-1&&this.focusedOptionIndex()===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let n=e.target.value;this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?b.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():b.focus(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}static \u0275fac=function(n){return new(n||t)(x(_e),x(Be),x(ce),x(ge),x(os),x(ot))};static \u0275cmp=P({type:t,selectors:[["p-dropdown"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(QN,5),Z(ZN,5),Z(YN,5),Z(XN,5),Z(JN,5),Z(eV,5),Z(tV,5),Z(nV,5),Z(iV,5)),n&2){let o;j(o=z())&&(r.containerViewChild=o.first),j(o=z())&&(r.filterViewChild=o.first),j(o=z())&&(r.focusInputViewChild=o.first),j(o=z())&&(r.editableInputViewChild=o.first),j(o=z())&&(r.itemsViewChild=o.first),j(o=z())&&(r.scroller=o.first),j(o=z())&&(r.overlayViewChild=o.first),j(o=z())&&(r.firstHiddenFocusableElementOnOverlay=o.first),j(o=z())&&(r.lastHiddenFocusableElementOnOverlay=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,r){n&2&&Ot("p-inputwrapper-filled",r.filled())("p-inputwrapper-focus",r.focused||r.overlayVisible)},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[C.HasDecoratorInputTransform,"filter","filter",T],name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[C.HasDecoratorInputTransform,"readonly","readonly",T],required:[C.HasDecoratorInputTransform,"required","required",T],editable:[C.HasDecoratorInputTransform,"editable","editable",T],appendTo:"appendTo",tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q],placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T],resetFilterOnHide:[C.HasDecoratorInputTransform,"resetFilterOnHide","resetFilterOnHide",T],dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:[C.HasDecoratorInputTransform,"autoDisplayFirst","autoDisplayFirst",T],group:[C.HasDecoratorInputTransform,"group","group",T],showClear:[C.HasDecoratorInputTransform,"showClear","showClear",T],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[C.HasDecoratorInputTransform,"lazy","lazy",T],virtualScroll:[C.HasDecoratorInputTransform,"virtualScroll","virtualScroll",T],virtualScrollItemSize:[C.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",Q],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:[C.HasDecoratorInputTransform,"maxlength","maxlength",Q],tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[C.HasDecoratorInputTransform,"focusOnHover","focusOnHover",T],selectOnFocus:[C.HasDecoratorInputTransform,"selectOnFocus","selectOnFocus",T],autoOptionFocus:[C.HasDecoratorInputTransform,"autoOptionFocus","autoOptionFocus",T],autofocusFilter:[C.HasDecoratorInputTransform,"autofocusFilter","autofocusFilter",T],disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",filterValue:"filterValue",options:"options"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[ht([JV]),fe],decls:11,vars:20,consts:[["container",""],["overlay",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["items",""],["emptyFilter",""],["empty",""],[3,"click","ngClass","ngStyle"],["role","combobox","pAutoFocus","",3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus","focus","blur","keydown",4,"ngIf"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"ngClass","disabled","autofocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],["class","p-dropdown-trigger-icon",4,"ngIf"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["pTemplate","content"],["role","combobox","pAutoFocus","",3,"focus","blur","keydown","ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text","aria-haspopup","listbox","pAutoFocus","",3,"input","keydown","focus","blur","ngClass","disabled","autofocus"],[3,"styleClass","click",4,"ngIf"],["class","p-dropdown-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-dropdown-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-dropdown-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-dropdown-header",3,"click",4,"ngIf"],["role","section",1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-dropdown-header",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-dropdown-filter-container"],["type","text","role","searchbox","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"input","keydown","blur","value"],["class","p-dropdown-filter-icon",4,"ngIf"],[1,"p-dropdown-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","lazy","options"],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-dropdown-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-dropdown-item-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-dropdown-empty-message",3,"ngStyle"]],template:function(n,r){if(n&1){let o=F();m(0,"div",14,0),E("click",function(a){return y(o),v(r.onContainerClick(a))}),f(2,cV,6,20,"span",15)(3,uV,2,7,"input",16)(4,mV,3,2,"ng-container",17),m(5,"div",18),f(6,yV,3,2,"ng-container",17)(7,bV,2,1,"span",19),g(),m(8,"p-overlay",20,1),Nt("visibleChange",function(a){return y(o),Bt(r.overlayVisible,a)||(r.overlayVisible=a),v(a)}),E("onAnimationStart",function(a){return y(o),v(r.onOverlayAnimationStart(a))})("onHide",function(){return y(o),v(r.hide())}),f(10,XV,13,17,"ng-template",21),g()()}if(n&2){let o;R(r.styleClass),c("ngClass",r.containerClass)("ngStyle",r.style),w("id",r.id),p(2),c("ngIf",!r.editable),p(),c("ngIf",r.editable),p(),c("ngIf",r.isVisibleClearIcon),p(),w("aria-expanded",(o=r.overlayVisible)!==null&&o!==void 0?o:!1)("data-pc-section","trigger"),p(),c("ngIf",!r.dropdownIconTemplate),p(),c("ngIf",r.dropdownIconTemplate),p(),Lt("visible",r.overlayVisible),c("options",r.overlayOptions)("target","@parent")("appendTo",r.appendTo)("autoZIndex",r.autoZIndex)("baseZIndex",r.baseZIndex)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}},dependencies:()=>[Oe,Ct,Ce,Ae,je,so,xe,ps,wr,jt,mt,$n,hs,e6],styles:[`@layer primeng{.p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;opacity:0}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-item-group{cursor:auto}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}}
68
+ `],encapsulation:2,changeDetection:0})}return t})(),Ki=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,Wi,ke,ao,At,Wn,St,mt,$n,hs,Wi,ke,Wn]})}return t})();var gb=(()=>{class t{el;ngModel;control;cd;autoResize;onResize=new O;filled;cachedScrollHeight;ngModelSubscription;ngControlSubscription;constructor(e,n,r,o){this.el=e,this.ngModel=n,this.control=r,this.cd=o}ngOnInit(){this.ngModel&&(this.ngModelSubscription=this.ngModel.valueChanges.subscribe(()=>{this.updateState()})),this.control&&(this.ngControlSubscription=this.control.valueChanges.subscribe(()=>{this.updateState()}))}ngAfterViewInit(){this.autoResize&&this.resize(),this.updateFilledState(),this.cd.detectChanges()}onInput(e){this.updateState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length}resize(e){this.el.nativeElement.style.height="auto",this.el.nativeElement.style.height=this.el.nativeElement.scrollHeight+"px",parseFloat(this.el.nativeElement.style.height)>=parseFloat(this.el.nativeElement.style.maxHeight)?(this.el.nativeElement.style.overflowY="scroll",this.el.nativeElement.style.height=this.el.nativeElement.style.maxHeight):this.el.nativeElement.style.overflow="hidden",this.onResize.emit(e||{})}updateState(){this.updateFilledState(),this.autoResize&&this.resize()}ngOnDestroy(){this.ngModelSubscription&&this.ngModelSubscription.unsubscribe(),this.ngControlSubscription&&this.ngControlSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(x(_e),x(vn,8),x(Ui,8),x(ce))};static \u0275dir=$e({type:t,selectors:[["","pInputTextarea",""]],hostAttrs:[1,"p-inputtextarea","p-inputtext","p-component","p-element"],hostVars:4,hostBindings:function(n,r){n&1&&E("input",function(s){return r.onInput(s)}),n&2&&Ot("p-filled",r.filled)("p-inputtextarea-resizable",r.autoResize)},inputs:{autoResize:[C.HasDecoratorInputTransform,"autoResize","autoResize",T]},outputs:{onResize:"onResize"},features:[fe]})}return t})(),_b=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue]})}return t})();var Rm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["ArrowDownIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Lm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["ArrowUpIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Nm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["FilterIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Vm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["FilterSlashIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M13.4994 0.0920138C13.5967 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7827 0.780968 13.7403 0.889466 13.6707 0.98L11.406 4.06823C11.3099 4.19928 11.1656 4.28679 11.005 4.3115C10.8444 4.33621 10.6805 4.2961 10.5495 4.2C10.4184 4.1039 10.3309 3.95967 10.3062 3.79905C10.2815 3.63843 10.3216 3.47458 10.4177 3.34353L11.9412 1.23529H7.41184C7.24803 1.23529 7.09093 1.17022 6.97509 1.05439C6.85926 0.938558 6.79419 0.781457 6.79419 0.617647C6.79419 0.453837 6.85926 0.296736 6.97509 0.180905C7.09093 0.0650733 7.24803 0 7.41184 0H13.1765C13.2905 0.000692754 13.4022 0.0325088 13.4994 0.0920138ZM4.20008 0.181168H4.24126L13.2013 9.03411C13.3169 9.14992 13.3819 9.3069 13.3819 9.47058C13.3819 9.63426 13.3169 9.79124 13.2013 9.90705C13.1445 9.96517 13.0766 10.0112 13.0016 10.0423C12.9266 10.0735 12.846 10.0891 12.7648 10.0882C12.6836 10.0886 12.6032 10.0728 12.5283 10.0417C12.4533 10.0106 12.3853 9.96479 12.3283 9.90705L9.3142 6.92587L9.26479 6.99999V13.3823C9.26265 13.5455 9.19689 13.7014 9.08152 13.8167C8.96615 13.9321 8.81029 13.9979 8.64714 14H5.35302C5.18987 13.9979 5.03401 13.9321 4.91864 13.8167C4.80327 13.7014 4.73751 13.5455 4.73537 13.3823V6.99999L0.329492 1.02117C0.259855 0.930634 0.21745 0.822137 0.207241 0.708376C0.197031 0.594616 0.21944 0.480301 0.271844 0.378815C0.324343 0.277621 0.403484 0.192687 0.500724 0.133182C0.597964 0.073677 0.709609 0.041861 0.823609 0.0411682H3.86243C3.92448 0.0461551 3.9855 0.060022 4.04361 0.0823446C4.10037 0.10735 4.15311 0.140655 4.20008 0.181168ZM8.02949 6.79411C8.02884 6.66289 8.07235 6.53526 8.15302 6.43176L8.42478 6.05293L3.55773 1.23529H2.0589L5.84714 6.43176C5.92781 6.53526 5.97132 6.66289 5.97067 6.79411V12.7647H8.02949V6.79411Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Pm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["PlusIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Hm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["SortAltIcon"]],standalone:!0,features:[ne,J],decls:9,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.64515 3.61291C5.47353 3.61291 5.30192 3.54968 5.16644 3.4142L3.38708 1.63484L1.60773 3.4142C1.34579 3.67613 0.912244 3.67613 0.650309 3.4142C0.388374 3.15226 0.388374 2.71871 0.650309 2.45678L2.90837 0.198712C3.17031 -0.0632236 3.60386 -0.0632236 3.86579 0.198712L6.12386 2.45678C6.38579 2.71871 6.38579 3.15226 6.12386 3.4142C5.98837 3.54968 5.81676 3.61291 5.64515 3.61291Z","fill","currentColor"],["d","M3.38714 14C3.01681 14 2.70972 13.6929 2.70972 13.3226V0.677419C2.70972 0.307097 3.01681 0 3.38714 0C3.75746 0 4.06456 0.307097 4.06456 0.677419V13.3226C4.06456 13.6929 3.75746 14 3.38714 14Z","fill","currentColor"],["d","M10.6129 14C10.4413 14 10.2697 13.9368 10.1342 13.8013L7.87611 11.5432C7.61418 11.2813 7.61418 10.8477 7.87611 10.5858C8.13805 10.3239 8.5716 10.3239 8.83353 10.5858L10.6129 12.3652L12.3922 10.5858C12.6542 10.3239 13.0877 10.3239 13.3497 10.5858C13.6116 10.8477 13.6116 11.2813 13.3497 11.5432L11.0916 13.8013C10.9561 13.9368 10.7845 14 10.6129 14Z","fill","currentColor"],["d","M10.6129 14C10.2426 14 9.93552 13.6929 9.93552 13.3226V0.677419C9.93552 0.307097 10.2426 0 10.6129 0C10.9833 0 11.2904 0.307097 11.2904 0.677419V13.3226C11.2904 13.6929 10.9832 14 10.6129 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1)(3,"path",2)(4,"path",3)(5,"path",4),g(),m(6,"defs")(7,"clipPath",5),D(8,"rect",6),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(6),c("id",r.pathId))},encapsulation:2})}return t})();var Bm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["SortAmountDownIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.93953 10.5858L3.83759 11.6877V0.677419C3.83759 0.307097 3.53049 0 3.16017 0C2.78985 0 2.48275 0.307097 2.48275 0.677419V11.6877L1.38082 10.5858C1.11888 10.3239 0.685331 10.3239 0.423396 10.5858C0.16146 10.8477 0.16146 11.2813 0.423396 11.5432L2.68146 13.8013C2.74469 13.8645 2.81694 13.9097 2.89823 13.9458C2.97952 13.9819 3.06985 14 3.16017 14C3.25049 14 3.33178 13.9819 3.42211 13.9458C3.5034 13.9097 3.57565 13.8645 3.63888 13.8013L5.89694 11.5432C6.15888 11.2813 6.15888 10.8477 5.89694 10.5858C5.63501 10.3239 5.20146 10.3239 4.93953 10.5858ZM13.0957 0H7.22468C6.85436 0 6.54726 0.307097 6.54726 0.677419C6.54726 1.04774 6.85436 1.35484 7.22468 1.35484H13.0957C13.466 1.35484 13.7731 1.04774 13.7731 0.677419C13.7731 0.307097 13.466 0 13.0957 0ZM7.22468 5.41935H9.48275C9.85307 5.41935 10.1602 5.72645 10.1602 6.09677C10.1602 6.4671 9.85307 6.77419 9.48275 6.77419H7.22468C6.85436 6.77419 6.54726 6.4671 6.54726 6.09677C6.54726 5.72645 6.85436 5.41935 7.22468 5.41935ZM7.6763 8.12903H7.22468C6.85436 8.12903 6.54726 8.43613 6.54726 8.80645C6.54726 9.17677 6.85436 9.48387 7.22468 9.48387H7.6763C8.04662 9.48387 8.35372 9.17677 8.35372 8.80645C8.35372 8.43613 8.04662 8.12903 7.6763 8.12903ZM7.22468 2.70968H11.2892C11.6595 2.70968 11.9666 3.01677 11.9666 3.3871C11.9666 3.75742 11.6595 4.06452 11.2892 4.06452H7.22468C6.85436 4.06452 6.54726 3.75742 6.54726 3.3871C6.54726 3.01677 6.85436 2.70968 7.22468 2.70968Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var jm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["SortAmountUpAltIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.63435 0.19871C3.57113 0.135484 3.49887 0.0903226 3.41758 0.0541935C3.255 -0.0180645 3.06532 -0.0180645 2.90274 0.0541935C2.82145 0.0903226 2.74919 0.135484 2.68597 0.19871L0.427901 2.45677C0.165965 2.71871 0.165965 3.15226 0.427901 3.41419C0.689836 3.67613 1.12338 3.67613 1.38532 3.41419L2.48726 2.31226V13.3226C2.48726 13.6929 2.79435 14 3.16467 14C3.535 14 3.84209 13.6929 3.84209 13.3226V2.31226L4.94403 3.41419C5.07951 3.54968 5.25113 3.6129 5.42274 3.6129C5.59435 3.6129 5.76597 3.54968 5.90145 3.41419C6.16338 3.15226 6.16338 2.71871 5.90145 2.45677L3.64338 0.19871H3.63435ZM13.7685 13.3226C13.7685 12.9523 13.4615 12.6452 13.0911 12.6452H7.22016C6.84984 12.6452 6.54274 12.9523 6.54274 13.3226C6.54274 13.6929 6.84984 14 7.22016 14H13.0911C13.4615 14 13.7685 13.6929 13.7685 13.3226ZM7.22016 8.58064C6.84984 8.58064 6.54274 8.27355 6.54274 7.90323C6.54274 7.5329 6.84984 7.22581 7.22016 7.22581H9.47823C9.84855 7.22581 10.1556 7.5329 10.1556 7.90323C10.1556 8.27355 9.84855 8.58064 9.47823 8.58064H7.22016ZM7.22016 5.87097H7.67177C8.0421 5.87097 8.34919 5.56387 8.34919 5.19355C8.34919 4.82323 8.0421 4.51613 7.67177 4.51613H7.22016C6.84984 4.51613 6.54274 4.82323 6.54274 5.19355C6.54274 5.56387 6.84984 5.87097 7.22016 5.87097ZM11.2847 11.2903H7.22016C6.84984 11.2903 6.54274 10.9832 6.54274 10.6129C6.54274 10.2426 6.84984 9.93548 7.22016 9.93548H11.2847C11.655 9.93548 11.9621 10.2426 11.9621 10.6129C11.9621 10.9832 11.655 11.2903 11.2847 11.2903Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var zm=(()=>{class t extends de{pathId;ngOnInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["TrashIcon"]],standalone:!0,features:[ne,J],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M3.44802 13.9955H10.552C10.8056 14.0129 11.06 13.9797 11.3006 13.898C11.5412 13.8163 11.7632 13.6877 11.9537 13.5196C12.1442 13.3515 12.2995 13.1473 12.4104 12.9188C12.5213 12.6903 12.5858 12.442 12.6 12.1884V4.36041H13.4C13.5591 4.36041 13.7117 4.29722 13.8243 4.18476C13.9368 4.07229 14 3.91976 14 3.76071C14 3.60166 13.9368 3.44912 13.8243 3.33666C13.7117 3.22419 13.5591 3.16101 13.4 3.16101H12.0537C12.0203 3.1557 11.9863 3.15299 11.952 3.15299C11.9178 3.15299 11.8838 3.1557 11.8503 3.16101H11.2285C11.2421 3.10893 11.2487 3.05513 11.248 3.00106V1.80966C11.2171 1.30262 10.9871 0.828306 10.608 0.48989C10.229 0.151475 9.73159 -0.0236625 9.22402 0.00257442H4.77602C4.27251 -0.0171866 3.78126 0.160868 3.40746 0.498617C3.03365 0.836366 2.807 1.30697 2.77602 1.80966V3.00106C2.77602 3.0556 2.78346 3.10936 2.79776 3.16101H0.6C0.521207 3.16101 0.443185 3.17652 0.37039 3.20666C0.297595 3.2368 0.231451 3.28097 0.175736 3.33666C0.120021 3.39235 0.0758251 3.45846 0.0456722 3.53121C0.0155194 3.60397 0 3.68196 0 3.76071C0 3.83946 0.0155194 3.91744 0.0456722 3.9902C0.0758251 4.06296 0.120021 4.12907 0.175736 4.18476C0.231451 4.24045 0.297595 4.28462 0.37039 4.31476C0.443185 4.3449 0.521207 4.36041 0.6 4.36041H1.40002V12.1884C1.41426 12.442 1.47871 12.6903 1.58965 12.9188C1.7006 13.1473 1.85582 13.3515 2.04633 13.5196C2.23683 13.6877 2.45882 13.8163 2.69944 13.898C2.94005 13.9797 3.1945 14.0129 3.44802 13.9955ZM2.60002 4.36041H11.304V12.1884C11.304 12.5163 10.952 12.7961 10.504 12.7961H3.40002C2.97602 12.7961 2.60002 12.5163 2.60002 12.1884V4.36041ZM3.95429 3.16101C3.96859 3.10936 3.97602 3.0556 3.97602 3.00106V1.80966C3.97602 1.48183 4.33602 1.20197 4.77602 1.20197H9.24802C9.66403 1.20197 10.048 1.48183 10.048 1.80966V3.00106C10.0473 3.05515 10.054 3.10896 10.0678 3.16101H3.95429ZM5.57571 10.997C5.41731 10.995 5.26597 10.9311 5.15395 10.8191C5.04193 10.7071 4.97808 10.5558 4.97601 10.3973V6.77517C4.97601 6.61612 5.0392 6.46359 5.15166 6.35112C5.26413 6.23866 5.41666 6.17548 5.57571 6.17548C5.73476 6.17548 5.8873 6.23866 5.99976 6.35112C6.11223 6.46359 6.17541 6.61612 6.17541 6.77517V10.3894C6.17647 10.4688 6.16174 10.5476 6.13208 10.6213C6.10241 10.695 6.05841 10.762 6.00261 10.8186C5.94682 10.8751 5.88035 10.92 5.80707 10.9506C5.73378 10.9813 5.65514 10.9971 5.57571 10.997ZM7.99968 10.8214C8.11215 10.9339 8.26468 10.997 8.42373 10.997C8.58351 10.9949 8.73604 10.93 8.84828 10.8163C8.96052 10.7025 9.02345 10.5491 9.02343 10.3894V6.77517C9.02343 6.61612 8.96025 6.46359 8.84778 6.35112C8.73532 6.23866 8.58278 6.17548 8.42373 6.17548C8.26468 6.17548 8.11215 6.23866 7.99968 6.35112C7.88722 6.46359 7.82404 6.61612 7.82404 6.77517V10.3973C7.82404 10.5564 7.88722 10.7089 7.99968 10.8214Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,r){n&1&&(le(),m(0,"svg",0)(1,"g"),D(2,"path",1),g(),m(3,"defs")(4,"clipPath",2),D(5,"rect",3),g()()()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role),p(),w("clip-path",r.pathId),p(3),c("id",r.pathId))},encapsulation:2})}return t})();var Um=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["AngleDownIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var $m=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["AngleUpIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var n6=["input"],i6=(t,i,e)=>({"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":i,"p-inputnumber-buttons-vertical":e}),yb=()=>({"p-inputnumber-button p-inputnumber-button-up":!0}),vb=()=>({"p-inputnumber-button p-inputnumber-button-down":!0});function r6(t,i){if(t&1){let e=F();m(0,"TimesIcon",8),E("click",function(){y(e);let r=d(2);return v(r.clear())}),g()}t&2&&(c("ngClass","p-inputnumber-clear-icon"),w("data-pc-section","clearIcon"))}function o6(t,i){}function s6(t,i){t&1&&f(0,o6,0,0,"ng-template")}function a6(t,i){if(t&1){let e=F();m(0,"span",9),E("click",function(){y(e);let r=d(2);return v(r.clear())}),f(1,s6,1,0,null,10),g()}if(t&2){let e=d(2);w("data-pc-section","clearIcon"),p(),c("ngTemplateOutlet",e.clearIconTemplate)}}function l6(t,i){if(t&1&&(L(0),f(1,r6,1,2,"TimesIcon",6)(2,a6,2,2,"span",7),N()),t&2){let e=d();p(),c("ngIf",!e.clearIconTemplate),p(),c("ngIf",e.clearIconTemplate)}}function c6(t,i){if(t&1&&D(0,"span",14),t&2){let e=d(2);c("ngClass",e.incrementButtonIcon),w("data-pc-section","incrementbuttonicon")}}function u6(t,i){t&1&&D(0,"AngleUpIcon"),t&2&&w("data-pc-section","incrementbuttonicon")}function d6(t,i){}function p6(t,i){t&1&&f(0,d6,0,0,"ng-template")}function h6(t,i){if(t&1&&(L(0),f(1,u6,1,1,"AngleUpIcon",3)(2,p6,1,0,null,10),N()),t&2){let e=d(2);p(),c("ngIf",!e.incrementButtonIconTemplate),p(),c("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function f6(t,i){if(t&1&&D(0,"span",14),t&2){let e=d(2);c("ngClass",e.decrementButtonIcon),w("data-pc-section","decrementbuttonicon")}}function m6(t,i){t&1&&D(0,"AngleDownIcon"),t&2&&w("data-pc-section","decrementbuttonicon")}function g6(t,i){}function _6(t,i){t&1&&f(0,g6,0,0,"ng-template")}function y6(t,i){if(t&1&&(L(0),f(1,m6,1,1,"AngleDownIcon",3)(2,_6,1,0,null,10),N()),t&2){let e=d(2);p(),c("ngIf",!e.decrementButtonIconTemplate),p(),c("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function v6(t,i){if(t&1){let e=F();m(0,"span",11)(1,"button",12),E("mousedown",function(r){y(e);let o=d();return v(o.onUpButtonMouseDown(r))})("mouseup",function(){y(e);let r=d();return v(r.onUpButtonMouseUp())})("mouseleave",function(){y(e);let r=d();return v(r.onUpButtonMouseLeave())})("keydown",function(r){y(e);let o=d();return v(o.onUpButtonKeyDown(r))})("keyup",function(){y(e);let r=d();return v(r.onUpButtonKeyUp())}),f(2,c6,1,2,"span",13)(3,h6,3,2,"ng-container",3),g(),m(4,"button",12),E("mousedown",function(r){y(e);let o=d();return v(o.onDownButtonMouseDown(r))})("mouseup",function(){y(e);let r=d();return v(r.onDownButtonMouseUp())})("mouseleave",function(){y(e);let r=d();return v(r.onDownButtonMouseLeave())})("keydown",function(r){y(e);let o=d();return v(o.onDownButtonKeyDown(r))})("keyup",function(){y(e);let r=d();return v(r.onDownButtonKeyUp())}),f(5,f6,1,2,"span",13)(6,y6,3,2,"ng-container",3),g()()}if(t&2){let e=d();w("data-pc-section","buttonGroup"),p(),R(e.incrementButtonClass),c("ngClass",Qe(17,yb))("disabled",e.disabled),w("aria-hidden",!0)("data-pc-section","incrementbutton"),p(),c("ngIf",e.incrementButtonIcon),p(),c("ngIf",!e.incrementButtonIcon),p(),R(e.decrementButtonClass),c("ngClass",Qe(18,vb))("disabled",e.disabled),w("aria-hidden",!0)("data-pc-section",e.decrementbutton),p(),c("ngIf",e.decrementButtonIcon),p(),c("ngIf",!e.decrementButtonIcon)}}function C6(t,i){if(t&1&&D(0,"span",14),t&2){let e=d(2);c("ngClass",e.incrementButtonIcon),w("data-pc-section","incrementbuttonicon")}}function b6(t,i){t&1&&D(0,"AngleUpIcon"),t&2&&w("data-pc-section","incrementbuttonicon")}function w6(t,i){}function I6(t,i){t&1&&f(0,w6,0,0,"ng-template")}function x6(t,i){if(t&1&&(L(0),f(1,b6,1,1,"AngleUpIcon",3)(2,I6,1,0,null,10),N()),t&2){let e=d(2);p(),c("ngIf",!e.incrementButtonIconTemplate),p(),c("ngTemplateOutlet",e.incrementButtonIconTemplate)}}function T6(t,i){if(t&1){let e=F();m(0,"button",12),E("mousedown",function(r){y(e);let o=d();return v(o.onUpButtonMouseDown(r))})("mouseup",function(){y(e);let r=d();return v(r.onUpButtonMouseUp())})("mouseleave",function(){y(e);let r=d();return v(r.onUpButtonMouseLeave())})("keydown",function(r){y(e);let o=d();return v(o.onUpButtonKeyDown(r))})("keyup",function(){y(e);let r=d();return v(r.onUpButtonKeyUp())}),f(1,C6,1,2,"span",13)(2,x6,3,2,"ng-container",3),g()}if(t&2){let e=d();R(e.incrementButtonClass),c("ngClass",Qe(8,yb))("disabled",e.disabled),w("aria-hidden",!0)("data-pc-section","incrementbutton"),p(),c("ngIf",e.incrementButtonIcon),p(),c("ngIf",!e.incrementButtonIcon)}}function S6(t,i){if(t&1&&D(0,"span",14),t&2){let e=d(2);c("ngClass",e.decrementButtonIcon),w("data-pc-section","decrementbuttonicon")}}function D6(t,i){t&1&&D(0,"AngleDownIcon"),t&2&&w("data-pc-section","decrementbuttonicon")}function E6(t,i){}function M6(t,i){t&1&&f(0,E6,0,0,"ng-template")}function O6(t,i){if(t&1&&(L(0),f(1,D6,1,1,"AngleDownIcon",3)(2,M6,1,0,null,10),N()),t&2){let e=d(2);p(),c("ngIf",!e.decrementButtonIconTemplate),p(),c("ngTemplateOutlet",e.decrementButtonIconTemplate)}}function k6(t,i){if(t&1){let e=F();m(0,"button",12),E("mousedown",function(r){y(e);let o=d();return v(o.onDownButtonMouseDown(r))})("mouseup",function(){y(e);let r=d();return v(r.onDownButtonMouseUp())})("mouseleave",function(){y(e);let r=d();return v(r.onDownButtonMouseLeave())})("keydown",function(r){y(e);let o=d();return v(o.onDownButtonKeyDown(r))})("keyup",function(){y(e);let r=d();return v(r.onDownButtonKeyUp())}),f(1,S6,1,2,"span",13)(2,O6,3,2,"ng-container",3),g()}if(t&2){let e=d();R(e.decrementButtonClass),c("ngClass",Qe(8,vb))("disabled",e.disabled),w("aria-hidden",!0)("data-pc-section","decrementbutton"),p(),c("ngIf",e.decrementButtonIcon),p(),c("ngIf",!e.decrementButtonIcon)}}var F6={provide:Ft,useExisting:dt(()=>Sa),multi:!0},Sa=(()=>{class t{document;el;cd;injector;showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;style;placeholder;size;maxlength;tabindex;title;ariaLabelledBy;ariaLabel;ariaRequired;name;required;autocomplete;min;max;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly=!1;step=1;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}onInput=new O;onFocus=new O;onBlur=new O;onKeyDown=new O;onClear=new O;input;templates;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;value;onModelChange=()=>{};onModelTouched=()=>{};focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar;_group;_minusSign;_currency;_prefix;_suffix;_index;_disabled;ngControl=null;constructor(e,n,r,o){this.document=e,this.el=n,this.cd=r,this.injector=o}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(r=>!!e[r])&&this.updateConstructParser()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this.clearIconTemplate=e.template;break;case"incrementbuttonicon":this.incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this.decrementButtonIconTemplate=e.template;break}})}ngOnInit(){this.ngControl=this.injector.get(Ui,null,{optional:!0}),this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());let e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(e.map((r,o)=>[r,o]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=r=>n.get(r)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){let e=this.getDecimalChar();return new RegExp(`[${e}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,Le($({},this.getOptions()),{useGrouping:!1})).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){let e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(e!=null){if(e==="-")return e;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(r=this.prefix+r),this.suffix&&(r=r+this.suffix),r}return e.toString()}return""}parseValue(e){let n=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(n){if(n==="-")return n;let r=+n;return isNaN(r)?null:r}return null}repeat(e,n,r){if(this.readonly)return;let o=n||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,r)},o),this.spin(e,r)}spin(e,n){let r=this.step*n,o=this.parseValue(this.input?.nativeElement.value)||0,s=this.validateValue(o+r);this.maxlength&&this.maxlength<this.formatValue(s).length||(this.updateInput(s,null,"spin",null),this.updateModel(e,s),this.handleOnInput(e,o,s))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(e){if(e.button===2){this.clearTimer();return}this.disabled||(this.input?.nativeElement.focus(),this.repeat(e,null,1),e.preventDefault())}onUpButtonMouseUp(){this.disabled||this.clearTimer()}onUpButtonMouseLeave(){this.disabled||this.clearTimer()}onUpButtonKeyDown(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,1)}onUpButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonMouseDown(e){if(e.button===2){this.clearTimer();return}this.disabled||(this.input?.nativeElement.focus(),this.repeat(e,null,-1),e.preventDefault())}onDownButtonMouseUp(){this.disabled||this.clearTimer()}onDownButtonMouseLeave(){this.disabled||this.clearTimer()}onDownButtonKeyUp(){this.disabled||this.clearTimer()}onDownButtonKeyDown(e){(e.keyCode===32||e.keyCode===13)&&this.repeat(e,null,-1)}onUserInput(e){this.readonly||(this.isSpecialChar&&(e.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(e){if(this.readonly)return;if(this.lastValue=e.target.value,e.shiftKey||e.altKey){this.isSpecialChar=!0;return}let n=e.target.selectionStart,r=e.target.selectionEnd,o=e.target.value,s=null;switch(e.altKey&&e.preventDefault(),e.code){case"ArrowUp":this.spin(e,1),e.preventDefault();break;case"ArrowDown":this.spin(e,-1),e.preventDefault();break;case"ArrowLeft":for(let a=n;a<=o.length;a++){let l=a===0?0:a-1;if(this.isNumeralChar(o.charAt(l))){this.input.nativeElement.setSelectionRange(a,a);break}}break;case"ArrowRight":for(let a=r;a>=0;a--)if(this.isNumeralChar(o.charAt(a))){this.input.nativeElement.setSelectionRange(a,a);break}break;case"Tab":case"Enter":s=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(s),this.input.nativeElement.setAttribute("aria-valuenow",s),this.updateModel(e,s);break;case"Backspace":{if(e.preventDefault(),n===r){let a=o.charAt(n-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:u}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let h=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,n-2)+o.slice(n-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,h?this.input?.nativeElement.setSelectionRange(n-1,n-1):s=o.slice(0,n-1)+o.slice(n);else if(l>0&&n>l){let _=this.isDecimalMode()&&(this.minFractionDigits||0)<h?"":"0";s=o.slice(0,n-1)+_+o.slice(n)}else u===1?(s=o.slice(0,n-1)+"0"+o.slice(n),s=this.parseValue(s)>0?s:""):s=o.slice(0,n-1)+o.slice(n)}else this.mode==="currency"&&a.search(this._currency)!=-1&&(s=o.slice(1));this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(o,n,r),this.updateValue(e,s,null,"delete-range");break}case"Delete":if(e.preventDefault(),n===r){let a=o.charAt(n),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:u}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let h=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,n)+o.slice(n+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,h?this.input?.nativeElement.setSelectionRange(n+1,n+1):s=o.slice(0,n)+o.slice(n+1);else if(l>0&&n>l){let _=this.isDecimalMode()&&(this.minFractionDigits||0)<h?"":"0";s=o.slice(0,n)+_+o.slice(n+1)}else u===1?(s=o.slice(0,n)+"0"+o.slice(n+1),s=this.parseValue(s)>0?s:""):s=o.slice(0,n)+o.slice(n+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(o,n,r),this.updateValue(e,s,null,"delete-range");break;case"Home":this.min&&(this.updateModel(e,this.min),e.preventDefault());break;case"End":this.max&&(this.updateModel(e,this.max),e.preventDefault());break;default:break}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let n=e.which||e.keyCode,r=String.fromCharCode(n),o=this.isDecimalSign(r),s=this.isMinusSign(r);n!=13&&e.preventDefault(),!o&&e.code==="NumpadDecimal"&&(o=!0,r=this._decimalChar,n=r.charCodeAt(0));let a=this.parseValue(this.input.nativeElement.value+r),l=a!=null?a.toString():"";if(this.maxlength&&this.getSelectedText()?.length==this.maxlength){this.insert(e,r,{isDecimalSign:o,isMinusSign:s});return}this.maxlength&&l.length>this.maxlength||(48<=n&&n<=57||s||o)&&this.insert(e,r,{isDecimalSign:o,isMinusSign:s})}getSelectedText(){return window?.getSelection()?.toString().replaceAll(/[^0-9']/g,"")||""}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let n=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(n){this.maxlength&&(n=n.toString().substring(0,this.maxlength));let r=this.parseValue(n);r!=null&&this.insert(e,r.toString())}}}allowMinusSign(){return this.min==null||this.min<0}isMinusSign(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1}isDecimalSign(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1}isDecimalMode(){return this.mode==="decimal"}getDecimalCharIndexes(e){let n=e.search(this._decimal);this._decimal.lastIndex=0;let o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:n,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){let n=e.search(this._decimal);this._decimal.lastIndex=0;let r=e.search(this._minusSign);this._minusSign.lastIndex=0;let o=e.search(this._suffix);this._suffix.lastIndex=0;let s=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:n,minusCharIndex:r,suffixCharIndex:o,currencyCharIndex:s}}insert(e,n,r={isDecimalSign:!1,isMinusSign:!1}){let o=n.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&o!==-1)return;let s=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim(),{decimalCharIndex:u,minusCharIndex:h,suffixCharIndex:_,currencyCharIndex:I}=this.getCharIndexes(l),S;if(r.isMinusSign)s===0&&(S=l,(h===-1||a!==0)&&(S=this.insertText(l,n,0,a)),this.updateValue(e,S,n,"insert"));else if(r.isDecimalSign)u>0&&s===u?this.updateValue(e,l,n,"insert"):u>s&&u<a?(S=this.insertText(l,n,s,a),this.updateValue(e,S,n,"insert")):u===-1&&this.maxFractionDigits&&(S=this.insertText(l,n,s,a),this.updateValue(e,S,n,"insert"));else{let M=this.numberFormat.resolvedOptions().maximumFractionDigits,A=s!==a?"range-insert":"insert";if(u>0&&s>u){if(s+n.length-(u+1)<=M){let V=I>=s?I-1:_>=s?_:l.length;S=l.slice(0,s)+n+l.slice(s+n.length,V)+l.slice(V),this.updateValue(e,S,n,A)}}else S=this.insertText(l,n,s,a),this.updateValue(e,S,n,A)}}insertText(e,n,r,o){if((n==="."?n:n.split(".")).length===2){let a=e.slice(r,o).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,r)+this.formatValue(n)+e.slice(o):e||this.formatValue(n)}else return o-r===e.length?this.formatValue(n):r===0?n+e.slice(o):o===e.length?e.slice(0,r)+n:e.slice(0,r)+n+e.slice(o)}deleteRange(e,n,r){let o;return r-n===e.length?o="":n===0?o=e.slice(r):r===e.length?o=e.slice(0,n):o=e.slice(0,n)+e.slice(r),o}initCursor(){let e=this.input?.nativeElement.selectionStart,n=this.input?.nativeElement.value,r=n.length,o=null,s=(this.prefixChar||"").length;n=n.replace(this._prefix,""),e=e-s;let a=n.charAt(e);if(this.isNumeralChar(a))return e+s;let l=e-1;for(;l>=0;)if(a=n.charAt(l),this.isNumeralChar(a)){o=l+s;break}else l--;if(o!==null)this.input?.nativeElement.setSelectionRange(o+1,o+1);else{for(l=e;l<r;)if(a=n.charAt(l),this.isNumeralChar(a)){o=l+s;break}else l++;o!==null&&this.input?.nativeElement.setSelectionRange(o,o)}return o||0}onInputClick(){let e=this.input?.nativeElement.value;!this.readonly&&e!==b.getSelection()&&this.initCursor()}isNumeralChar(e){return e.length===1&&(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))?(this.resetRegex(),!0):!1}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,n,r,o){let s=this.input?.nativeElement.value,a=null;n!=null&&(a=this.parseValue(n),a=!a&&!this.allowEmpty?0:a,this.updateInput(a,r,o,n),this.handleOnInput(e,s,a))}handleOnInput(e,n,r){this.isValueChanged(n,r)&&(this.input.nativeElement.value=this.formatValue(r),this.input?.nativeElement.setAttribute("aria-valuenow",r),this.updateModel(e,r),this.onInput.emit({originalEvent:e,value:r,formattedValue:n}))}isValueChanged(e,n){if(n===null&&e!==null)return!0;if(n!=null){let r=typeof e=="string"?this.parseValue(e):e;return n!==r}return!1}validateValue(e){return e==="-"||e==null?null:this.min!=null&&e<this.min?this.min:this.max!=null&&e>this.max?this.max:e}updateInput(e,n,r,o){n=n||"";let s=this.input?.nativeElement.value,a=this.formatValue(e),l=s.length;if(a!==o&&(a=this.concatValues(a,o)),l===0){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);let h=this.initCursor()+n.length;this.input.nativeElement.setSelectionRange(h,h)}else{let u=this.input.nativeElement.selectionStart,h=this.input.nativeElement.selectionEnd;if(this.maxlength&&a.length>this.maxlength&&(a=a.slice(0,this.maxlength),u=Math.min(u,this.maxlength),h=Math.min(h,this.maxlength)),this.maxlength&&this.maxlength<a.length)return;this.input.nativeElement.value=a;let _=a.length;if(r==="range-insert"){let I=this.parseValue((s||"").slice(0,u)),M=(I!==null?I.toString():"").split("").join(`(${this.groupChar})?`),A=new RegExp(M,"g");A.test(a);let V=n.split("").join(`(${this.groupChar})?`),B=new RegExp(V,"g");B.test(a.slice(A.lastIndex)),h=A.lastIndex+B.lastIndex,this.input.nativeElement.setSelectionRange(h,h)}else if(_===l)r==="insert"||r==="delete-back-single"?this.input.nativeElement.setSelectionRange(h+1,h+1):r==="delete-single"?this.input.nativeElement.setSelectionRange(h-1,h-1):(r==="delete-range"||r==="spin")&&this.input.nativeElement.setSelectionRange(h,h);else if(r==="delete-back-single"){let I=s.charAt(h-1),S=s.charAt(h),M=l-_,A=this._group.test(S);A&&M===1?h+=1:!A&&this.isNumeralChar(I)&&(h+=-1*M+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(h,h)}else if(s==="-"&&r==="insert"){this.input.nativeElement.setSelectionRange(0,0);let S=this.initCursor()+n.length+1;this.input.nativeElement.setSelectionRange(S,S)}else h=h+(_-l),this.input.nativeElement.setSelectionRange(h,h)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,n){if(e&&n){let r=n.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?r!==-1?e:e.replace(this.suffixChar,"").split(this._decimal)[0]+n.replace(this.suffixChar,"").slice(r)+this.suffixChar:r!==-1?e.split(this._decimal)[0]+n.slice(r):e}return e}getDecimalLength(e){if(e){let n=e.split(this._decimal);if(n.length===2)return n[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1;let n=this.validateValue(this.parseValue(this.input.nativeElement.value)),r=n?.toString();this.input.nativeElement.value=this.formatValue(r),this.input.nativeElement.setAttribute("aria-valuenow",r),this.updateModel(e,n),this.onBlur.emit(e)}formattedValue(){let e=!this.value&&!this.allowEmpty?0:this.value;return this.formatValue(e)}updateModel(e,n){let r=this.ngControl?.control?.updateOn==="blur";this.value!==n?(this.value=n,r&&this.focused||this.onModelChange(n)):r&&this.onModelChange(n),this.onModelTouched()}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get filled(){return this.value!=null&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}static \u0275fac=function(n){return new(n||t)(x(Se),x(_e),x(ce),x(Hn))};static \u0275cmp=P({type:t,selectors:[["p-inputNumber"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&Z(n6,5),n&2){let o;j(o=z())&&(r.input=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(n,r){n&2&&Ot("p-inputwrapper-filled",r.filled)("p-inputwrapper-focus",r.focused)("p-inputnumber-clearable",r.showClear&&r.buttonLayout!="vertical")},inputs:{showButtons:[C.HasDecoratorInputTransform,"showButtons","showButtons",T],format:[C.HasDecoratorInputTransform,"format","format",T],buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:[C.HasDecoratorInputTransform,"size","size",Q],maxlength:[C.HasDecoratorInputTransform,"maxlength","maxlength",Q],tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q],title:"title",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",ariaRequired:[C.HasDecoratorInputTransform,"ariaRequired","ariaRequired",T],name:"name",required:[C.HasDecoratorInputTransform,"required","required",T],autocomplete:"autocomplete",min:[C.HasDecoratorInputTransform,"min","min",Q],max:[C.HasDecoratorInputTransform,"max","max",Q],incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:[C.HasDecoratorInputTransform,"readonly","readonly",T],step:[C.HasDecoratorInputTransform,"step","step",Q],allowEmpty:[C.HasDecoratorInputTransform,"allowEmpty","allowEmpty",T],locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:[C.HasDecoratorInputTransform,"useGrouping","useGrouping",T],minFractionDigits:[C.HasDecoratorInputTransform,"minFractionDigits","minFractionDigits",e=>Q(e,null)],maxFractionDigits:[C.HasDecoratorInputTransform,"maxFractionDigits","maxFractionDigits",e=>Q(e,null)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[C.HasDecoratorInputTransform,"showClear","showClear",T],autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T],disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[ht([F6]),fe,$t],decls:7,vars:40,consts:[["input",""],[3,"ngClass","ngStyle"],["pInputText","","role","spinbutton","inputmode","decimal","pAutoFocus","",3,"input","keydown","keypress","paste","click","focus","blur","ngClass","ngStyle","value","disabled","readonly","autofocus"],[4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","","class","p-button-icon-only","tabindex","-1",3,"ngClass","class","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","p-inputnumber-clear-icon",3,"click",4,"ngIf"],[3,"click","ngClass"],[1,"p-inputnumber-clear-icon",3,"click"],[4,"ngTemplateOutlet"],[1,"p-inputnumber-button-group"],["type","button","pButton","","tabindex","-1",1,"p-button-icon-only",3,"mousedown","mouseup","mouseleave","keydown","keyup","ngClass","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"]],template:function(n,r){if(n&1){let o=F();m(0,"span",1)(1,"input",2,0),E("input",function(a){return y(o),v(r.onUserInput(a))})("keydown",function(a){return y(o),v(r.onInputKeyDown(a))})("keypress",function(a){return y(o),v(r.onInputKeyPress(a))})("paste",function(a){return y(o),v(r.onPaste(a))})("click",function(){return y(o),v(r.onInputClick())})("focus",function(a){return y(o),v(r.onInputFocus(a))})("blur",function(a){return y(o),v(r.onInputBlur(a))}),g(),f(3,l6,3,2,"ng-container",3)(4,v6,7,19,"span",4)(5,T6,3,9,"button",5)(6,k6,3,9,"button",5),g()}n&2&&(R(r.styleClass),c("ngClass",lt(36,i6,r.showButtons&&r.buttonLayout==="stacked",r.showButtons&&r.buttonLayout==="horizontal",r.showButtons&&r.buttonLayout==="vertical"))("ngStyle",r.style),w("data-pc-name","inputnumber")("data-pc-section","root"),p(),R(r.inputStyleClass),c("ngClass","p-inputnumber-input")("ngStyle",r.inputStyle)("value",r.formattedValue())("disabled",r.disabled)("readonly",r.readonly)("autofocus",r.autofocus),w("id",r.inputId)("aria-valuemin",r.min)("aria-valuemax",r.max)("aria-valuenow",r.value)("placeholder",r.placeholder)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledBy)("title",r.title)("size",r.size)("name",r.name)("autocomplete",r.autocomplete)("maxlength",r.maxlength)("tabindex",r.tabindex)("aria-required",r.ariaRequired)("required",r.required)("min",r.min)("max",r.max)("data-pc-section","input"),p(2),c("ngIf",r.buttonLayout!="vertical"&&r.showClear&&r.value),p(),c("ngIf",r.showButtons&&r.buttonLayout==="stacked"),p(),c("ngIf",r.showButtons&&r.buttonLayout!=="stacked"),p(),c("ngIf",r.showButtons&&r.buttonLayout!=="stacked"))},dependencies:()=>[Oe,Ce,Ae,je,br,bn,jt,mt,$m,Um],styles:[`@layer primeng{p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}}
69
+ `],encapsulation:2,changeDetection:0})}return t})(),Da=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,Gn,Yt,St,mt,$m,Um,ke]})}return t})();var Gm=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["AngleDoubleLeftIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var Wm=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["AngleDoubleRightIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7.68757 11.1451C7.7791 11.1831 7.8773 11.2024 7.9764 11.2019C8.07769 11.1985 8.17721 11.1745 8.26886 11.1312C8.36052 11.088 8.44238 11.0265 8.50943 10.9505L12.0294 7.49085C12.1707 7.34942 12.25 7.15771 12.25 6.95782C12.25 6.75794 12.1707 6.56622 12.0294 6.42479L8.50943 2.90479C8.37014 2.82159 8.20774 2.78551 8.04633 2.80192C7.88491 2.81833 7.73309 2.88635 7.6134 2.99588C7.4937 3.10541 7.41252 3.25061 7.38189 3.40994C7.35126 3.56927 7.37282 3.73423 7.44337 3.88033L10.4605 6.89748L7.44337 9.91463C7.30212 10.0561 7.22278 10.2478 7.22278 10.4477C7.22278 10.6475 7.30212 10.8393 7.44337 10.9807C7.51301 11.0512 7.59603 11.1071 7.68757 11.1451ZM1.94207 10.9505C2.07037 11.0968 2.25089 11.1871 2.44493 11.2019C2.63898 11.1871 2.81949 11.0968 2.94779 10.9505L6.46779 7.49085C6.60905 7.34942 6.68839 7.15771 6.68839 6.95782C6.68839 6.75793 6.60905 6.56622 6.46779 6.42479L2.94779 2.90479C2.80704 2.83757 2.6489 2.81563 2.49517 2.84201C2.34143 2.86839 2.19965 2.94178 2.08936 3.05207C1.97906 3.16237 1.90567 3.30415 1.8793 3.45788C1.85292 3.61162 1.87485 3.76975 1.94207 3.9105L4.95922 6.92765L1.94207 9.9448C1.81838 10.0831 1.75 10.2621 1.75 10.4477C1.75 10.6332 1.81838 10.8122 1.94207 10.9505Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var qm=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["AngleLeftIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.75 11.185C8.65146 11.1854 8.55381 11.1662 8.4628 11.1284C8.37179 11.0906 8.28924 11.0351 8.22 10.965L4.72 7.46496C4.57955 7.32433 4.50066 7.13371 4.50066 6.93496C4.50066 6.73621 4.57955 6.54558 4.72 6.40496L8.22 2.93496C8.36095 2.84357 8.52851 2.80215 8.69582 2.81733C8.86312 2.83252 9.02048 2.90344 9.14268 3.01872C9.26487 3.134 9.34483 3.28696 9.36973 3.4531C9.39463 3.61924 9.36303 3.78892 9.28 3.93496L6.28 6.93496L9.28 9.93496C9.42045 10.0756 9.49934 10.2662 9.49934 10.465C9.49934 10.6637 9.42045 10.8543 9.28 10.995C9.13526 11.1257 8.9448 11.1939 8.75 11.185Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var Km=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(r){return(e||(e=ie(t)))(r||t)}})();static \u0275cmp=P({type:t,selectors:[["AngleRightIcon"]],standalone:!0,features:[ne,J],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z","fill","currentColor"]],template:function(n,r){n&1&&(le(),m(0,"svg",0),D(1,"path",1),g()),n&2&&(R(r.getClassNames()),w("aria-label",r.ariaLabel)("aria-hidden",r.ariaHidden)("role",r.role))},encapsulation:2})}return t})();var Tu=t=>({"p-disabled":t}),Su=t=>({$implicit:t}),A6=t=>({"p-highlight":t});function R6(t,i){t&1&&H(0)}function L6(t,i){if(t&1&&(m(0,"div",15),f(1,R6,1,0,"ng-container",16),g()),t&2){let e=d(2);w("data-pc-section","start"),p(),c("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",U(3,Su,e.paginatorState))}}function N6(t,i){if(t&1&&(m(0,"span",17),K(1),g()),t&2){let e=d(2);p(),se(e.currentPageReport)}}function V6(t,i){t&1&&D(0,"AngleDoubleLeftIcon",19),t&2&&c("styleClass","p-paginator-icon")}function P6(t,i){}function H6(t,i){t&1&&f(0,P6,0,0,"ng-template")}function B6(t,i){if(t&1&&(m(0,"span",20),f(1,H6,1,0,null,21),g()),t&2){let e=d(3);p(),c("ngTemplateOutlet",e.firstPageLinkIconTemplate)}}function j6(t,i){if(t&1){let e=F();m(0,"button",18),E("click",function(r){y(e);let o=d(2);return v(o.changePageToFirst(r))}),f(1,V6,1,1,"AngleDoubleLeftIcon",6)(2,B6,2,1,"span",7),g()}if(t&2){let e=d(2);c("disabled",e.isFirstPage()||e.empty())("ngClass",U(5,Tu,e.isFirstPage()||e.empty())),w("aria-label",e.getAriaLabel("firstPageLabel")),p(),c("ngIf",!e.firstPageLinkIconTemplate),p(),c("ngIf",e.firstPageLinkIconTemplate)}}function z6(t,i){t&1&&D(0,"AngleLeftIcon",19),t&2&&c("styleClass","p-paginator-icon")}function U6(t,i){}function $6(t,i){t&1&&f(0,U6,0,0,"ng-template")}function G6(t,i){if(t&1&&(m(0,"span",20),f(1,$6,1,0,null,21),g()),t&2){let e=d(2);p(),c("ngTemplateOutlet",e.previousPageLinkIconTemplate)}}function W6(t,i){if(t&1){let e=F();m(0,"button",24),E("click",function(r){let o=y(e).$implicit,s=d(3);return v(s.onPageLinkClick(r,o-1))}),K(1),g()}if(t&2){let e=i.$implicit,n=d(3);c("ngClass",U(4,A6,e-1==n.getPage())),w("aria-label",n.getPageAriaLabel(e))("aria-current",e-1==n.getPage()?"page":void 0),p(),yt(" ",n.getLocalization(e)," ")}}function q6(t,i){if(t&1&&(m(0,"span",22),f(1,W6,2,6,"button",23),g()),t&2){let e=d(2);p(),c("ngForOf",e.pageLinks)}}function K6(t,i){if(t&1&&K(0),t&2){let e=d(3);se(e.currentPageReport)}}function Q6(t,i){t&1&&H(0)}function Z6(t,i){if(t&1&&f(0,Q6,1,0,"ng-container",16),t&2){let e=i.$implicit,n=d(4);c("ngTemplateOutlet",n.jumpToPageItemTemplate)("ngTemplateOutletContext",U(2,Su,e))}}function Y6(t,i){t&1&&(L(0),f(1,Z6,1,4,"ng-template",28),N())}function X6(t,i){t&1&&H(0)}function J6(t,i){if(t&1&&f(0,X6,1,0,"ng-container",21),t&2){let e=d(4);c("ngTemplateOutlet",e.dropdownIconTemplate)}}function e5(t,i){t&1&&f(0,J6,1,1,"ng-template",29)}function t5(t,i){if(t&1){let e=F();m(0,"p-dropdown",25),E("onChange",function(r){y(e);let o=d(2);return v(o.onPageDropdownChange(r))}),f(1,K6,1,1,"ng-template",26)(2,Y6,2,0,"ng-container",27)(3,e5,1,0,null,27),g()}if(t&2){let e=d(2);c("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),w("aria-label",e.getAriaLabel("jumpToPageDropdownLabel")),p(2),c("ngIf",e.jumpToPageItemTemplate),p(),c("ngIf",e.dropdownIconTemplate)}}function n5(t,i){t&1&&D(0,"AngleRightIcon",19),t&2&&c("styleClass","p-paginator-icon")}function i5(t,i){}function r5(t,i){t&1&&f(0,i5,0,0,"ng-template")}function o5(t,i){if(t&1&&(m(0,"span",20),f(1,r5,1,0,null,21),g()),t&2){let e=d(2);p(),c("ngTemplateOutlet",e.nextPageLinkIconTemplate)}}function s5(t,i){t&1&&D(0,"AngleDoubleRightIcon",19),t&2&&c("styleClass","p-paginator-icon")}function a5(t,i){}function l5(t,i){t&1&&f(0,a5,0,0,"ng-template")}function c5(t,i){if(t&1&&(m(0,"span",20),f(1,l5,1,0,null,21),g()),t&2){let e=d(3);p(),c("ngTemplateOutlet",e.lastPageLinkIconTemplate)}}function u5(t,i){if(t&1){let e=F();m(0,"button",30),E("click",function(r){y(e);let o=d(2);return v(o.changePageToLast(r))}),f(1,s5,1,1,"AngleDoubleRightIcon",6)(2,c5,2,1,"span",7),g()}if(t&2){let e=d(2);c("disabled",e.isLastPage()||e.empty())("ngClass",U(5,Tu,e.isLastPage()||e.empty())),w("aria-label",e.getAriaLabel("lastPageLabel")),p(),c("ngIf",!e.lastPageLinkIconTemplate),p(),c("ngIf",e.lastPageLinkIconTemplate)}}function d5(t,i){if(t&1){let e=F();m(0,"p-inputNumber",31),E("ngModelChange",function(r){y(e);let o=d(2);return v(o.changePage(r-1))}),g()}if(t&2){let e=d(2);c("ngModel",e.currentPage())("disabled",e.empty())}}function p5(t,i){t&1&&H(0)}function h5(t,i){if(t&1&&f(0,p5,1,0,"ng-container",16),t&2){let e=i.$implicit,n=d(4);c("ngTemplateOutlet",n.dropdownItemTemplate)("ngTemplateOutletContext",U(2,Su,e))}}function f5(t,i){t&1&&(L(0),f(1,h5,1,4,"ng-template",28),N())}function m5(t,i){t&1&&H(0)}function g5(t,i){if(t&1&&f(0,m5,1,0,"ng-container",21),t&2){let e=d(4);c("ngTemplateOutlet",e.dropdownIconTemplate)}}function _5(t,i){t&1&&f(0,g5,1,1,"ng-template",29)}function y5(t,i){if(t&1){let e=F();m(0,"p-dropdown",32),Nt("ngModelChange",function(r){y(e);let o=d(2);return Bt(o.rows,r)||(o.rows=r),v(r)}),E("onChange",function(r){y(e);let o=d(2);return v(o.onRppChange(r))}),f(1,f5,2,0,"ng-container",27)(2,_5,1,0,null,27),g()}if(t&2){let e=d(2);c("options",e.rowsPerPageItems),Lt("ngModel",e.rows),c("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)("ariaLabel",e.getAriaLabel("rowsPerPageLabel")),p(),c("ngIf",e.dropdownItemTemplate),p(),c("ngIf",e.dropdownIconTemplate)}}function v5(t,i){t&1&&H(0)}function C5(t,i){if(t&1&&(m(0,"div",33),f(1,v5,1,0,"ng-container",16),g()),t&2){let e=d(2);w("data-pc-section","end"),p(),c("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",U(3,Su,e.paginatorState))}}function b5(t,i){if(t&1){let e=F();m(0,"div",1),f(1,L6,2,5,"div",2)(2,N6,2,1,"span",3)(3,j6,3,7,"button",4),m(4,"button",5),E("click",function(r){y(e);let o=d();return v(o.changePageToPrev(r))}),f(5,z6,1,1,"AngleLeftIcon",6)(6,G6,2,1,"span",7),g(),f(7,q6,2,1,"span",8)(8,t5,4,8,"p-dropdown",9),m(9,"button",10),E("click",function(r){y(e);let o=d();return v(o.changePageToNext(r))}),f(10,n5,1,1,"AngleRightIcon",6)(11,o5,2,1,"span",7),g(),f(12,u5,3,7,"button",11)(13,d5,1,2,"p-inputNumber",12)(14,y5,3,8,"p-dropdown",13)(15,C5,2,5,"div",14),g()}if(t&2){let e=d();R(e.styleClass),c("ngStyle",e.style)("ngClass","p-paginator p-component"),w("data-pc-section","paginator")("data-pc-section","root"),p(),c("ngIf",e.templateLeft),p(),c("ngIf",e.showCurrentPageReport),p(),c("ngIf",e.showFirstLastIcon),p(),c("disabled",e.isFirstPage()||e.empty())("ngClass",U(25,Tu,e.isFirstPage()||e.empty())),w("aria-label",e.getAriaLabel("prevPageLabel")),p(),c("ngIf",!e.previousPageLinkIconTemplate),p(),c("ngIf",e.previousPageLinkIconTemplate),p(),c("ngIf",e.showPageLinks),p(),c("ngIf",e.showJumpToPageDropdown),p(),c("disabled",e.isLastPage()||e.empty())("ngClass",U(27,Tu,e.isLastPage()||e.empty())),w("aria-label",e.getAriaLabel("nextPageLabel")),p(),c("ngIf",!e.nextPageLinkIconTemplate),p(),c("ngIf",e.nextPageLinkIconTemplate),p(),c("ngIf",e.showFirstLastIcon),p(),c("ngIf",e.showJumpToPageInput),p(),c("ngIf",e.rowsPerPageOptions),p(),c("ngIf",e.templateRight)}}var bb=(()=>{class t{cd;config;pageLinkSize=5;style;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;appendTo;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}onPageChange=new O;templates;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;constructor(e,n){this.cd=e,this.config=n}ngOnInit(){this.updatePaginatorState()}getAriaLabel(e){return this.config.translation.aria?this.config.translation.aria[e]:void 0}getPageAriaLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel.replace(/{page}/g,`Page ${e}`):void 0}getLocalization(e){let n=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),r=new Map(n.map((o,s)=>[s,o]));return e>9?String(e).split("").map(s=>r.get(Number(s))).join(""):r.get(e)}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"dropdownicon":this.dropdownIconTemplate=e.template;break;case"firstpagelinkicon":this.firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this.previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this.lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this.nextPageLinkIconTemplate=e.template;break}})}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions(),e.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)typeof e=="object"&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(this.getLocalization(e)),value:e})}}isFirstPage(){return this.getPage()===0}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),n=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.getPage()-n/2)),o=Math.min(e-1,r+n-1);var s=this.pageLinkSize-(o-r+1);return r=Math.max(0,r-s),[r,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),n=e[0],r=e[1];for(let o=n;o<=r;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o<this.getPageCount();o++)this.pageItems.push({label:String(o+1),value:o})}}changePage(e){var n=this.getPageCount();if(e>=0&&e<n){this._first=this.rows*e;var r={page:e,first:this.first,rows:this.rows,pageCount:n};this.updatePageLinks(),this.onPageChange.emit(r),this.updatePaginatorState()}}updateFirst(){let e=this.getPage();e>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,n){this.changePage(n),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return this.getPageCount()===0}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(n){return new(n||t)(x(ce),x(ot))};static \u0275cmp=P({type:t,selectors:[["p-paginator"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{pageLinkSize:[C.HasDecoratorInputTransform,"pageLinkSize","pageLinkSize",Q],style:"style",styleClass:"styleClass",alwaysShow:[C.HasDecoratorInputTransform,"alwaysShow","alwaysShow",T],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",appendTo:"appendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[C.HasDecoratorInputTransform,"showCurrentPageReport","showCurrentPageReport",T],showFirstLastIcon:[C.HasDecoratorInputTransform,"showFirstLastIcon","showFirstLastIcon",T],totalRecords:[C.HasDecoratorInputTransform,"totalRecords","totalRecords",Q],rows:[C.HasDecoratorInputTransform,"rows","rows",Q],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[C.HasDecoratorInputTransform,"showJumpToPageDropdown","showJumpToPageDropdown",T],showJumpToPageInput:[C.HasDecoratorInputTransform,"showJumpToPageInput","showJumpToPageInput",T],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[C.HasDecoratorInputTransform,"showPageLinks","showPageLinks",T],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[fe,$t],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"click","disabled","ngClass"],[3,"styleClass",4,"ngIf"],["class","p-paginator-icon",4,"ngIf"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"click","disabled","ngClass"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ariaLabel","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"click","disabled","ngClass"],[3,"styleClass"],[1,"p-paginator-icon"],[4,"ngTemplateOutlet"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"click","ngClass"],["styleClass","p-paginator-page-options",3,"onChange","options","ngModel","disabled","appendTo","scrollHeight"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"click","disabled","ngClass"],[1,"p-paginator-page-input",3,"ngModelChange","ngModel","disabled"],["styleClass","p-paginator-rpp-options",3,"ngModelChange","onChange","options","ngModel","disabled","appendTo","scrollHeight","ariaLabel"],[1,"p-paginator-right-content"]],template:function(n,r){n&1&&f(0,b5,16,29,"div",0),n&2&&c("ngIf",r.alwaysShow?!0:r.pageLinks&&r.pageLinks.length>1)},dependencies:()=>[Oe,Ct,Ce,Ae,je,qi,xe,Sa,$i,vn,Dt,Gm,Wm,qm,Km],styles:[`@layer primeng{.p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}}
70
+ `],encapsulation:2,changeDetection:0})}return t})(),wb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,Ki,Da,ai,ke,At,Gm,Wm,qm,Km,Ki,Da,ai,ke]})}return t})();var I5=["container"],x5=(t,i,e)=>({"p-highlight":t,"p-disabled":i,"p-button-icon-only":e}),T5=(t,i)=>({$implicit:t,index:i});function S5(t,i){if(t&1&&D(0,"span",8),t&2){let e=d(2).$implicit;R(e.icon),c("ngClass","p-button-icon p-button-icon-left"),w("data-pc-section","icon")}}function D5(t,i){if(t&1&&(L(0),f(1,S5,1,4,"span",6),m(2,"span",7),K(3),g(),N()),t&2){let e=d().$implicit,n=d();p(),c("ngIf",e.icon),p(),w("data-pc-section","label"),p(),se(n.getOptionLabel(e))}}function E5(t,i){t&1&&H(0)}function M5(t,i){if(t&1&&f(0,E5,1,0,"ng-container",9),t&2){let e=d(),n=e.$implicit,r=e.index,o=d();c("ngTemplateOutlet",o.selectButtonTemplate)("ngTemplateOutletContext",we(2,T5,n,r))}}function O5(t,i){if(t&1){let e=F();m(0,"div",4),E("click",function(r){let o=y(e),s=o.$implicit,a=o.index,l=d();return v(l.onOptionSelect(r,s,a))})("keydown",function(r){let o=y(e),s=o.$implicit,a=o.index,l=d();return v(l.onKeyDown(r,s,a))})("focus",function(r){let o=y(e).index,s=d();return v(s.onFocus(r,o))})("blur",function(){y(e);let r=d();return v(r.onBlur())}),f(1,D5,4,3,"ng-container",5)(2,M5,1,5,"ng-template",null,1,it),g()}if(t&2){let e=i.$implicit,n=i.index,r=Ee(3),o=d();R(e.styleClass),c("role",o.multiple?"checkbox":"radio")("ngClass",lt(15,x5,o.isSelected(e),o.disabled||o.isOptionDisabled(e),e.icon&&!o.getOptionLabel(e)))("autofocus",o.autofocus),w("tabindex",n===o.focusedIndex?"0":"-1")("aria-label",e.label)("aria-checked",o.isSelected(e))("aria-disabled",o.optionDisabled)("aria-pressed",o.isSelected(e))("title",e.title)("aria-labelledby",o.getOptionLabel(e))("data-pc-section","button"),p(),c("ngIf",!o.itemTemplate)("ngIfElse",r)}}var k5={provide:Ft,useExisting:dt(()=>F5),multi:!0},F5=(()=>{class t{cd;options;optionLabel;optionValue;optionDisabled;unselectable=!1;tabindex=0;multiple;allowEmpty=!0;style;styleClass;ariaLabelledBy;disabled;dataKey;autofocus;onOptionClick=new O;onChange=new O;container;itemTemplate;get selectButtonTemplate(){return this.itemTemplate?.template}get equalityKey(){return this.optionValue?null:this.dataKey}value;onModelChange=()=>{};onModelTouched=()=>{};focusedIndex=0;constructor(e){this.cd=e}getOptionLabel(e){return this.optionLabel?k.resolveFieldData(e,this.optionLabel):e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?k.resolveFieldData(e,this.optionValue):this.optionLabel||e.value===void 0?e:e.value}isOptionDisabled(e){return this.optionDisabled?k.resolveFieldData(e,this.optionDisabled):e.disabled!==void 0?e.disabled:!1}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionSelect(e,n,r){if(this.disabled||this.isOptionDisabled(n))return;let o=this.isSelected(n);if(o&&this.unselectable)return;let s=this.getOptionValue(n),a;if(this.multiple)o?a=this.value.filter(l=>!k.equals(l,s,this.equalityKey)):a=this.value?[...this.value,s]:[s];else{if(o&&!this.allowEmpty)return;a=o?null:s}this.focusedIndex=r,this.value=a,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:n,index:r})}onKeyDown(e,n,r){switch(e.code){case"Space":{this.onOptionSelect(e,n,r),e.preventDefault();break}case"ArrowDown":case"ArrowRight":{this.changeTabIndexes(e,"next"),e.preventDefault();break}case"ArrowUp":case"ArrowLeft":{this.changeTabIndexes(e,"prev"),e.preventDefault();break}default:break}}changeTabIndexes(e,n){let r,o;for(let s=0;s<=this.container.nativeElement.children.length-1;s++)this.container.nativeElement.children[s].getAttribute("tabindex")==="0"&&(r={elem:this.container.nativeElement.children[s],index:s});n==="prev"?r.index===0?o=this.container.nativeElement.children.length-1:o=r.index-1:r.index===this.container.nativeElement.children.length-1?o=0:o=r.index+1,this.focusedIndex=o,this.container.nativeElement.children[o].focus()}onFocus(e,n){this.focusedIndex=n}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(n=>!k.equals(n,this.getOptionValue(e),this.dataKey))}isSelected(e){let n=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let o of this.value)if(k.equals(o,r,this.dataKey)){n=!0;break}}}else n=k.equals(this.getOptionValue(e),this.value,this.equalityKey);return n}static \u0275fac=function(n){return new(n||t)(x(ce))};static \u0275cmp=P({type:t,selectors:[["p-selectButton"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,5),n&2){let s;j(s=z())&&(r.itemTemplate=s.first)}},viewQuery:function(n,r){if(n&1&&Z(I5,5),n&2){let o;j(o=z())&&(r.container=o.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[C.HasDecoratorInputTransform,"unselectable","unselectable",T],tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q],multiple:[C.HasDecoratorInputTransform,"multiple","multiple",T],allowEmpty:[C.HasDecoratorInputTransform,"allowEmpty","allowEmpty",T],style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],dataKey:"dataKey",autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[ht([k5]),fe],decls:3,vars:8,consts:[["container",""],["customcontent",""],["role","group",3,"ngClass","ngStyle"],["pRipple","","class","p-button p-component","pAutoFocus","",3,"role","class","ngClass","autofocus","click","keydown","focus","blur",4,"ngFor","ngForOf"],["pRipple","","pAutoFocus","",1,"p-button","p-component",3,"click","keydown","focus","blur","role","ngClass","autofocus"],[4,"ngIf","ngIfElse"],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&(m(0,"div",2,0),f(2,O5,4,19,"div",3),g()),n&2&&(R(r.styleClass),c("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",r.style),w("aria-labelledby",r.ariaLabelledBy)("data-pc-name","selectbutton")("data-pc-section","root"),p(2),c("ngForOf",r.options))},dependencies:[Oe,Ct,Ce,Ae,je,Dt,jt],styles:[`@layer primeng{.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default;pointer-events:none}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-button-group .p-button{margin:0}.p-button-group .p-button:focus,.p-button-group p-button:focus .p-button,.p-buttonset .p-button:focus,.p-buttonset p-button:focus .p-button{position:relative;z-index:1}.p-button-group .p-button:not(:last-child),.p-button-group .p-button:not(:last-child):hover,.p-button-group p-button:not(:last-child) .p-button,.p-button-group p-button:not(:last-child) .p-button:hover,.p-buttonset .p-button:not(:last-child),.p-buttonset .p-button:not(:last-child):hover,.p-buttonset p-button:not(:last-child) .p-button,.p-buttonset p-button:not(:last-child) .p-button:hover{border-right:0 none}.p-button-group .p-button:not(:first-of-type):not(:last-of-type),.p-button-group p-button:not(:first-of-type):not(:last-of-type) .p-button,.p-buttonset .p-button:not(:first-of-type):not(:last-of-type),.p-buttonset p-button:not(:first-of-type):not(:last-of-type) .p-button{border-radius:0}.p-button-group .p-button:first-of-type:not(:only-of-type),.p-button-group p-button:first-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:first-of-type:not(:only-of-type),.p-buttonset p-button:first-of-type:not(:only-of-type) .p-button{border-top-right-radius:0;border-bottom-right-radius:0}.p-button-group .p-button:last-of-type:not(:only-of-type),.p-button-group p-button:last-of-type:not(:only-of-type) .p-button,.p-buttonset .p-button:last-of-type:not(:only-of-type),.p-buttonset p-button:last-of-type:not(:only-of-type) .p-button{border-top-left-radius:0;border-bottom-left-radius:0}p-button[iconpos=right] spinnericon{order:1}}
71
+ `],encapsulation:2,changeDetection:0})}return t})(),Ib=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,At,ke,St,ke]})}return t})();var A5=(t,i)=>({"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":i}),R5=(t,i,e)=>({"p-highlight":t,"p-disabled":i,"p-focus":e}),L5=(t,i,e)=>({"p-checkbox-label-active":t,"p-disabled":i,"p-checkbox-label-focus":e});function N5(t,i){if(t&1&&D(0,"span",8),t&2){let e=d(2);c("ngClass",e.checkboxTrueIcon),w("data-pc-section","checkIcon")}}function V5(t,i){t&1&&D(0,"CheckIcon",11),t&2&&(c("styleClass","p-checkbox-icon"),w("data-pc-section","checkIcon"))}function P5(t,i){}function H5(t,i){t&1&&f(0,P5,0,0,"ng-template")}function B5(t,i){if(t&1&&(m(0,"span",12),f(1,H5,1,0,null,13),g()),t&2){let e=d(3);w("data-pc-section","checkIcon"),p(),c("ngTemplateOutlet",e.checkIconTemplate)}}function j5(t,i){if(t&1&&(L(0),f(1,V5,1,2,"CheckIcon",9)(2,B5,2,2,"span",10),N()),t&2){let e=d(2);p(),c("ngIf",!e.checkIconTemplate),p(),c("ngIf",e.checkIconTemplate)}}function z5(t,i){if(t&1&&(L(0),f(1,N5,1,2,"span",7)(2,j5,3,2,"ng-container",5),N()),t&2){let e=d();p(),c("ngIf",e.checkboxTrueIcon),p(),c("ngIf",!e.checkboxTrueIcon)}}function U5(t,i){if(t&1&&D(0,"span",8),t&2){let e=d(2);c("ngClass",e.checkboxFalseIcon),w("data-pc-section","uncheckIcon")}}function $5(t,i){t&1&&D(0,"TimesIcon",11),t&2&&(c("styleClass","p-checkbox-icon"),w("data-pc-section","uncheckIcon"))}function G5(t,i){}function W5(t,i){t&1&&f(0,G5,0,0,"ng-template")}function q5(t,i){if(t&1&&(m(0,"span",12),f(1,W5,1,0,null,13),g()),t&2){let e=d(3);w("data-pc-section","uncheckIcon"),p(),c("ngTemplateOutlet",e.uncheckIconTemplate)}}function K5(t,i){if(t&1&&(L(0),f(1,$5,1,2,"TimesIcon",9)(2,q5,2,2,"span",10),N()),t&2){let e=d(2);p(),c("ngIf",!e.uncheckIconTemplate),p(),c("ngIf",e.uncheckIconTemplate)}}function Q5(t,i){if(t&1&&(L(0),f(1,U5,1,2,"span",7)(2,K5,3,2,"ng-container",5),N()),t&2){let e=d();p(),c("ngIf",e.checkboxFalseIcon),p(),c("ngIf",!e.checkboxFalseIcon)}}function Z5(t,i){if(t&1){let e=F();m(0,"label",14),E("click",function(r){y(e);let o=d(),s=Ee(3);return v(o.onClick(r,s))}),K(1),g()}if(t&2){let e=d();c("ngClass",lt(3,L5,e.value!=null,e.disabled,e.focused)),w("for",e.inputId),p(),se(e.label)}}var Y5={provide:Ft,useExisting:dt(()=>Qm),multi:!0},Qm=(()=>{class t{cd;constructor(e){this.cd=e}disabled;name;ariaLabel;ariaLabelledBy;tabindex;inputId;style;styleClass;label;readonly;checkboxTrueIcon;checkboxFalseIcon;autofocus;onChange=new O;templates;checkIconTemplate;uncheckIconTemplate;focused;value;onModelChange=()=>{};onModelTouched=()=>{};onClick(e,n){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,n.focus())}onKeyDown(e){e.key==="Enter"&&(this.toggle(e),e.preventDefault())}toggle(e){this.value==null||this.value==null?this.value=!0:this.value==!0?this.value=!1:this.value==!1&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"checkicon":this.checkIconTemplate=e.template;break;case"uncheckicon":this.uncheckIconTemplate=e.template;break}})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static \u0275fac=function(n){return new(n||t)(x(ce))};static \u0275cmp=P({type:t,selectors:[["p-triStateCheckbox"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},hostAttrs:[1,"p-element"],inputs:{disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],name:"name",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q],inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:[C.HasDecoratorInputTransform,"readonly","readonly",T],checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon",autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T]},outputs:{onChange:"onChange"},features:[ht([Y5]),fe],decls:8,vars:27,consts:[["input",""],[3,"click","ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox","inputmode","none","pAutoFocus","",3,"keydown","focus","blur","name","readonly","disabled","autofocus"],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"],[1,"p-checkbox-label",3,"click","ngClass"]],template:function(n,r){if(n&1){let o=F();m(0,"div",1),E("click",function(a){y(o);let l=Ee(3);return v(r.onClick(a,l))}),m(1,"div",2)(2,"input",3,0),E("keydown",function(a){return y(o),v(r.onKeyDown(a))})("focus",function(){return y(o),v(r.onFocus())})("blur",function(){return y(o),v(r.onBlur())}),g()(),m(4,"div",4),f(5,z5,3,2,"ng-container",5)(6,Q5,3,2,"ng-container",5),g()(),f(7,Z5,2,7,"label",6)}n&2&&(R(r.styleClass),c("ngStyle",r.style)("ngClass",we(20,A5,r.disabled,r.focused)),w("data-pc-name","tristatecheckbox")("data-pc-section","root"),p(2),c("name",r.name)("readonly",r.readonly)("disabled",r.disabled)("autofocus",r.autofocus),w("id",r.inputId)("tabindex",r.tabindex)("aria-labelledby",r.ariaLabelledBy)("aria-label",r.ariaLabel)("data-pc-section","hiddenInput"),p(2),c("ngClass",lt(23,R5,r.value!=null,r.disabled,r.focused)),w("aria-checked",r.value===!0),p(),c("ngIf",r.value===!0),p(),c("ngIf",r.value===!1),p(),c("ngIf",r.label))},dependencies:()=>[Oe,Ce,Ae,je,jt,Vt,mt],encapsulation:2,changeDetection:0})}return t})(),xb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,ke,St,Vt,mt,ke]})}return t})();var J5=["container"],eP=["resizeHelper"],tP=["reorderIndicatorUp"],nP=["reorderIndicatorDown"],iP=["wrapper"],rP=["table"],oP=["thead"],sP=["tfoot"],aP=["scroller"],lP=(t,i,e)=>({"p-datatable p-component":!0,"p-datatable-hoverable-rows":t,"p-datatable-scrollable":i,"p-datatable-flex-scrollable":e}),cP=t=>({maxHeight:t}),uP=t=>({height:t}),Tb=(t,i)=>({$implicit:t,options:i}),dP=t=>({columns:t}),pP=(t,i,e)=>({"p-datatable-table":!0,"p-datatable-scrollable-table":t,"p-datatable-resizable-table":i,"p-datatable-resizable-table-fit":e}),Ir=t=>({$implicit:t});function hP(t,i){if(t&1&&D(0,"i"),t&2){let e=d(2);R("p-datatable-loading-icon "+e.loadingIcon)}}function fP(t,i){t&1&&D(0,"SpinnerIcon",25),t&2&&c("spin",!0)("styleClass","p-datatable-loading-icon")}function mP(t,i){}function gP(t,i){t&1&&f(0,mP,0,0,"ng-template")}function _P(t,i){if(t&1&&(m(0,"span",26),f(1,gP,1,0,null,27),g()),t&2){let e=d(3);p(),c("ngTemplateOutlet",e.loadingIconTemplate)}}function yP(t,i){if(t&1&&(L(0),f(1,fP,1,2,"SpinnerIcon",23)(2,_P,2,1,"span",24),N()),t&2){let e=d(2);p(),c("ngIf",!e.loadingIconTemplate),p(),c("ngIf",e.loadingIconTemplate)}}function vP(t,i){if(t&1&&(m(0,"div",21),f(1,hP,1,2,"i",22)(2,yP,3,2,"ng-container",16),g()),t&2){let e=d();p(),c("ngIf",e.loadingIcon),p(),c("ngIf",!e.loadingIcon)}}function CP(t,i){t&1&&H(0)}function bP(t,i){if(t&1&&(m(0,"div",28),f(1,CP,1,0,"ng-container",27),g()),t&2){let e=d();p(),c("ngTemplateOutlet",e.captionTemplate)}}function wP(t,i){t&1&&H(0)}function IP(t,i){if(t&1&&f(0,wP,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorDropdownIconTemplate)}}function xP(t,i){t&1&&f(0,IP,1,1,"ng-template",30)}function TP(t,i){t&1&&H(0)}function SP(t,i){if(t&1&&f(0,TP,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate)}}function DP(t,i){t&1&&f(0,SP,1,1,"ng-template",31)}function EP(t,i){t&1&&H(0)}function MP(t,i){if(t&1&&f(0,EP,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate)}}function OP(t,i){t&1&&f(0,MP,1,1,"ng-template",32)}function kP(t,i){t&1&&H(0)}function FP(t,i){if(t&1&&f(0,kP,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate)}}function AP(t,i){t&1&&f(0,FP,1,1,"ng-template",33)}function RP(t,i){t&1&&H(0)}function LP(t,i){if(t&1&&f(0,RP,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate)}}function NP(t,i){t&1&&f(0,LP,1,1,"ng-template",34)}function VP(t,i){if(t&1){let e=F();m(0,"p-paginator",29),E("onPageChange",function(r){y(e);let o=d();return v(o.onPageChange(r))}),f(1,xP,1,0,null,16)(2,DP,1,0,null,16)(3,OP,1,0,null,16)(4,AP,1,0,null,16)(5,NP,1,0,null,16),g()}if(t&2){let e=d();c("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.getPaginatorStyleClasses("p-paginator-top"))("locale",e.paginatorLocale),p(),c("ngIf",e.paginatorDropdownIconTemplate),p(),c("ngIf",e.paginatorFirstPageLinkIconTemplate),p(),c("ngIf",e.paginatorPreviousPageLinkIconTemplate),p(),c("ngIf",e.paginatorLastPageLinkIconTemplate),p(),c("ngIf",e.paginatorNextPageLinkIconTemplate)}}function PP(t,i){t&1&&H(0)}function HP(t,i){if(t&1&&f(0,PP,1,0,"ng-container",37),t&2){let e=i.$implicit,n=i.options;d(2);let r=Ee(10);c("ngTemplateOutlet",r)("ngTemplateOutletContext",we(2,Tb,e,n))}}function BP(t,i){if(t&1){let e=F();m(0,"p-scroller",35,3),E("onLazyLoad",function(r){y(e);let o=d();return v(o.onLazyItemLoad(r))}),f(2,HP,1,5,"ng-template",36),g()}if(t&2){let e=d();_t(U(15,uP,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),c("items",e.processedData)("columns",e.columns)("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)("autoSize",!0)}}function jP(t,i){t&1&&H(0)}function zP(t,i){if(t&1&&(L(0),f(1,jP,1,0,"ng-container",37),N()),t&2){let e=d(),n=Ee(10);p(),c("ngTemplateOutlet",n)("ngTemplateOutletContext",we(4,Tb,e.processedData,U(2,dP,e.columns)))}}function UP(t,i){t&1&&H(0)}function $P(t,i){t&1&&H(0)}function GP(t,i){if(t&1&&D(0,"tbody",44),t&2){let e=d().options,n=d();c("value",n.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",n.frozenBodyTemplate)("frozen",!0)}}function WP(t,i){if(t&1&&D(0,"tbody",45),t&2){let e=d().options;_t("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function qP(t,i){t&1&&H(0)}function KP(t,i){if(t&1&&(m(0,"tfoot",46,6),f(2,qP,1,0,"ng-container",37),g()),t&2){let e=d().options,n=d();p(2),c("ngTemplateOutlet",n.footerGroupedTemplate||n.footerTemplate)("ngTemplateOutletContext",U(2,Ir,e.columns))}}function QP(t,i){if(t&1&&(m(0,"table",38,4),f(2,UP,1,0,"ng-container",37),m(3,"thead",39,5),f(5,$P,1,0,"ng-container",37),g(),f(6,GP,1,5,"tbody",40),D(7,"tbody",41),f(8,WP,1,2,"tbody",42)(9,KP,3,4,"tfoot",43),g()),t&2){let e=i.options,n=d();_t(n.tableStyle),R(n.tableStyleClass),c("ngClass",lt(20,pP,n.scrollable,n.resizableColumns,n.resizableColumns&&n.columnResizeMode==="fit")),w("id",n.id+"-table"),p(2),c("ngTemplateOutlet",n.colGroupTemplate)("ngTemplateOutletContext",U(24,Ir,e.columns)),p(3),c("ngTemplateOutlet",n.headerGroupedTemplate||n.headerTemplate)("ngTemplateOutletContext",U(26,Ir,e.columns)),p(),c("ngIf",n.frozenValue||n.frozenBodyTemplate),p(),_t(e.contentStyle),c("ngClass",e.contentStyleClass)("value",n.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",n.bodyTemplate)("scrollerOptions",e),p(),c("ngIf",e.spacerStyle),p(),c("ngIf",n.footerGroupedTemplate||n.footerTemplate)}}function ZP(t,i){t&1&&H(0)}function YP(t,i){if(t&1&&f(0,ZP,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorDropdownIconTemplate)}}function XP(t,i){t&1&&f(0,YP,1,1,"ng-template",30)}function JP(t,i){t&1&&H(0)}function e7(t,i){if(t&1&&f(0,JP,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate)}}function t7(t,i){t&1&&f(0,e7,1,1,"ng-template",31)}function n7(t,i){t&1&&H(0)}function i7(t,i){if(t&1&&f(0,n7,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate)}}function r7(t,i){t&1&&f(0,i7,1,1,"ng-template",32)}function o7(t,i){t&1&&H(0)}function s7(t,i){if(t&1&&f(0,o7,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate)}}function a7(t,i){t&1&&f(0,s7,1,1,"ng-template",33)}function l7(t,i){t&1&&H(0)}function c7(t,i){if(t&1&&f(0,l7,1,0,"ng-container",27),t&2){let e=d(3);c("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate)}}function u7(t,i){t&1&&f(0,c7,1,1,"ng-template",34)}function d7(t,i){if(t&1){let e=F();m(0,"p-paginator",29),E("onPageChange",function(r){y(e);let o=d();return v(o.onPageChange(r))}),f(1,XP,1,0,null,16)(2,t7,1,0,null,16)(3,r7,1,0,null,16)(4,a7,1,0,null,16)(5,u7,1,0,null,16),g()}if(t&2){let e=d();c("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)("styleClass",e.getPaginatorStyleClasses("p-paginator-bottom"))("locale",e.paginatorLocale),p(),c("ngIf",e.paginatorDropdownIconTemplate),p(),c("ngIf",e.paginatorFirstPageLinkIconTemplate),p(),c("ngIf",e.paginatorPreviousPageLinkIconTemplate),p(),c("ngIf",e.paginatorLastPageLinkIconTemplate),p(),c("ngIf",e.paginatorNextPageLinkIconTemplate)}}function p7(t,i){t&1&&H(0)}function h7(t,i){if(t&1&&(m(0,"div",47),f(1,p7,1,0,"ng-container",27),g()),t&2){let e=d();p(),c("ngTemplateOutlet",e.summaryTemplate)}}function f7(t,i){t&1&&D(0,"div",48,7)}function m7(t,i){t&1&&D(0,"ArrowDownIcon")}function g7(t,i){}function _7(t,i){t&1&&f(0,g7,0,0,"ng-template")}function y7(t,i){if(t&1&&(m(0,"span",49,8),f(2,m7,1,0,"ArrowDownIcon",16)(3,_7,1,0,null,27),g()),t&2){let e=d();p(2),c("ngIf",!e.reorderIndicatorUpIconTemplate),p(),c("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate)}}function v7(t,i){t&1&&D(0,"ArrowUpIcon")}function C7(t,i){}function b7(t,i){t&1&&f(0,C7,0,0,"ng-template")}function w7(t,i){if(t&1&&(m(0,"span",50,9),f(2,v7,1,0,"ArrowUpIcon",16)(3,b7,1,0,null,27),g()),t&2){let e=d();p(2),c("ngIf",!e.reorderIndicatorDownIconTemplate),p(),c("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate)}}var I7=["pTableBody",""],Zm=(t,i,e,n,r)=>({$implicit:t,rowIndex:i,columns:e,editing:n,frozen:r}),x7=(t,i,e,n,r,o,s)=>({$implicit:t,rowIndex:i,columns:e,editing:n,frozen:r,rowgroup:o,rowspan:s}),Du=(t,i,e,n,r,o)=>({$implicit:t,rowIndex:i,columns:e,expanded:n,editing:r,frozen:o}),Sb=(t,i,e,n)=>({$implicit:t,rowIndex:i,columns:e,frozen:n}),Db=(t,i)=>({$implicit:t,frozen:i});function T7(t,i){t&1&&H(0)}function S7(t,i){if(t&1&&(L(0,3),f(1,T7,1,0,"ng-container",4),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d(2);p(),c("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",jo(2,Zm,n,o.getRowIndex(r),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(n),o.frozen))}}function D7(t,i){t&1&&H(0)}function E7(t,i){if(t&1&&(L(0),f(1,D7,1,0,"ng-container",4),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d(2);p(),c("ngTemplateOutlet",n?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",jo(2,Zm,n,o.getRowIndex(r),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(n),o.frozen))}}function M7(t,i){t&1&&H(0)}function O7(t,i){if(t&1&&(L(0),f(1,M7,1,0,"ng-container",4),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d(2);p(),c("ngTemplateOutlet",n?o.template:o.dt.loadingBodyTemplate)("ngTemplateOutletContext",mv(2,x7,n,o.getRowIndex(r),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(n),o.frozen,o.shouldRenderRowspan(o.value,n,r),o.calculateRowGroupSize(o.value,n,r)))}}function k7(t,i){t&1&&H(0)}function F7(t,i){if(t&1&&(L(0,3),f(1,k7,1,0,"ng-container",4),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d(2);p(),c("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",jo(2,Zm,n,o.getRowIndex(r),o.columns,o.dt.editMode==="row"&&o.dt.isRowEditing(n),o.frozen))}}function A7(t,i){if(t&1&&f(0,S7,2,8,"ng-container",2)(1,E7,2,8,"ng-container",0)(2,O7,2,10,"ng-container",0)(3,F7,2,8,"ng-container",2),t&2){let e=i.$implicit,n=i.index,r=d(2);c("ngIf",r.dt.groupHeaderTemplate&&!r.dt.virtualScroll&&r.dt.rowGroupMode==="subheader"&&r.shouldRenderRowGroupHeader(r.value,e,n)),p(),c("ngIf",r.dt.rowGroupMode!=="rowspan"),p(),c("ngIf",r.dt.rowGroupMode==="rowspan"),p(),c("ngIf",r.dt.groupFooterTemplate&&!r.dt.virtualScroll&&r.dt.rowGroupMode==="subheader"&&r.shouldRenderRowGroupFooter(r.value,e,n))}}function R7(t,i){if(t&1&&(L(0),f(1,A7,4,4,"ng-template",1),N()),t&2){let e=d();p(),c("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function L7(t,i){t&1&&H(0)}function N7(t,i){if(t&1&&(L(0),f(1,L7,1,0,"ng-container",4),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d(2);p(),c("ngTemplateOutlet",o.template)("ngTemplateOutletContext",Wr(2,Du,n,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(n),o.dt.editMode==="row"&&o.dt.isRowEditing(n),o.frozen))}}function V7(t,i){t&1&&H(0)}function P7(t,i){if(t&1&&(L(0,3),f(1,V7,1,0,"ng-container",4),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d(2);p(),c("ngTemplateOutlet",o.dt.groupHeaderTemplate)("ngTemplateOutletContext",Wr(2,Du,n,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(n),o.dt.editMode==="row"&&o.dt.isRowEditing(n),o.frozen))}}function H7(t,i){t&1&&H(0)}function B7(t,i){t&1&&H(0)}function j7(t,i){if(t&1&&(L(0,3),f(1,B7,1,0,"ng-container",4),N()),t&2){let e=d(2),n=e.$implicit,r=e.index,o=d(2);p(),c("ngTemplateOutlet",o.dt.groupFooterTemplate)("ngTemplateOutletContext",Wr(2,Du,n,o.getRowIndex(r),o.columns,o.dt.isRowExpanded(n),o.dt.editMode==="row"&&o.dt.isRowEditing(n),o.frozen))}}function z7(t,i){if(t&1&&(L(0),f(1,H7,1,0,"ng-container",4)(2,j7,2,9,"ng-container",2),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d(2);p(),c("ngTemplateOutlet",o.dt.expandedRowTemplate)("ngTemplateOutletContext",Gr(3,Sb,n,o.getRowIndex(r),o.columns,o.frozen)),p(),c("ngIf",o.dt.groupFooterTemplate&&o.dt.rowGroupMode==="subheader"&&o.shouldRenderRowGroupFooter(o.value,n,o.getRowIndex(r)))}}function U7(t,i){if(t&1&&f(0,N7,2,9,"ng-container",0)(1,P7,2,9,"ng-container",2)(2,z7,3,8,"ng-container",0),t&2){let e=i.$implicit,n=i.index,r=d(2);c("ngIf",!r.dt.groupHeaderTemplate),p(),c("ngIf",r.dt.groupHeaderTemplate&&r.dt.rowGroupMode==="subheader"&&r.shouldRenderRowGroupHeader(r.value,e,r.getRowIndex(n))),p(),c("ngIf",r.dt.isRowExpanded(e))}}function $7(t,i){if(t&1&&(L(0),f(1,U7,3,3,"ng-template",1),N()),t&2){let e=d();p(),c("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function G7(t,i){t&1&&H(0)}function W7(t,i){t&1&&H(0)}function q7(t,i){if(t&1&&(L(0),f(1,W7,1,0,"ng-container",4),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d(2);p(),c("ngTemplateOutlet",o.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",Gr(2,Sb,n,o.getRowIndex(r),o.columns,o.frozen))}}function K7(t,i){if(t&1&&f(0,G7,1,0,"ng-container",4)(1,q7,2,7,"ng-container",0),t&2){let e=i.$implicit,n=i.index,r=d(2);c("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Wr(3,Du,e,r.getRowIndex(n),r.columns,r.dt.isRowExpanded(e),r.dt.editMode==="row"&&r.dt.isRowEditing(e),r.frozen)),p(),c("ngIf",r.dt.isRowExpanded(e))}}function Q7(t,i){if(t&1&&(L(0),f(1,K7,2,10,"ng-template",1),N()),t&2){let e=d();p(),c("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function Z7(t,i){t&1&&H(0)}function Y7(t,i){if(t&1&&(L(0),f(1,Z7,1,0,"ng-container",4),N()),t&2){let e=d();p(),c("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",we(2,Db,e.columns,e.frozen))}}function X7(t,i){t&1&&H(0)}function J7(t,i){if(t&1&&(L(0),f(1,X7,1,0,"ng-container",4),N()),t&2){let e=d();p(),c("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",we(2,Db,e.columns,e.frozen))}}function e9(t,i){t&1&&D(0,"SortAltIcon",4),t&2&&c("styleClass","p-sortable-column-icon")}function t9(t,i){t&1&&D(0,"SortAmountUpAltIcon",4),t&2&&c("styleClass","p-sortable-column-icon")}function n9(t,i){t&1&&D(0,"SortAmountDownIcon",4),t&2&&c("styleClass","p-sortable-column-icon")}function i9(t,i){if(t&1&&(L(0),f(1,e9,1,1,"SortAltIcon",3)(2,t9,1,1,"SortAmountUpAltIcon",3)(3,n9,1,1,"SortAmountDownIcon",3),N()),t&2){let e=d();p(),c("ngIf",e.sortOrder===0),p(),c("ngIf",e.sortOrder===1),p(),c("ngIf",e.sortOrder===-1)}}function r9(t,i){}function o9(t,i){t&1&&f(0,r9,0,0,"ng-template")}function s9(t,i){if(t&1&&(m(0,"span",5),f(1,o9,1,0,null,6),g()),t&2){let e=d();p(),c("ngTemplateOutlet",e.dt.sortIconTemplate)("ngTemplateOutletContext",U(2,Ir,e.sortOrder))}}function a9(t,i){if(t&1&&(m(0,"span",7),K(1),g()),t&2){let e=d();p(),se(e.getBadgeValue())}}var Eb=(t,i)=>({"p-checkbox-focused":t,"p-checkbox-disabled":i}),l9=(t,i,e)=>({"p-checkbox-box p-component":!0,"p-highlight":t,"p-focus":i,"p-disabled":e});function c9(t,i){t&1&&D(0,"CheckIcon",7),t&2&&c("styleClass","p-checkbox-icon")}function u9(t,i){if(t&1&&(L(0),f(1,c9,1,1,"CheckIcon",6),N()),t&2){let e=d();p(),c("ngIf",e.checked)}}function d9(t,i){}function p9(t,i){t&1&&f(0,d9,0,0,"ng-template")}function h9(t,i){if(t&1&&(m(0,"span"),f(1,p9,1,0,null,8),g()),t&2){let e=d();p(),c("ngTemplateOutlet",e.dt.checkboxIconTemplate)("ngTemplateOutletContext",U(2,Ir,e.checked))}}var f9=(t,i,e)=>({"p-checkbox-box":!0,"p-highlight":t,"p-focus":i,"p-disabled":e});function m9(t,i){t&1&&D(0,"CheckIcon",9),t&2&&c("styleClass","p-checkbox-icon")}function g9(t,i){if(t&1&&(L(0),f(1,m9,1,1,"CheckIcon",8),N()),t&2){let e=d();p(),c("ngIf",e.checked)}}function _9(t,i){}function y9(t,i){t&1&&f(0,_9,0,0,"ng-template")}function v9(t,i){if(t&1&&(m(0,"span",10),f(1,y9,1,0,null,11),g()),t&2){let e=d();p(),c("ngTemplateOutlet",e.dt.headerCheckboxIconTemplate)("ngTemplateOutletContext",U(2,Ir,e.checked))}}var C9=["icon"],b9=["clearBtn"],w9=(t,i)=>({"p-column-filter-row":t,"p-column-filter-menu":i}),I9=(t,i)=>({"p-column-filter-menu-button-open":t,"p-column-filter-menu-button-active":i}),x9=t=>({"p-hidden-space":t}),T9=t=>({"p-column-filter-overlay p-component p-fluid":!0,"p-column-filter-overlay-menu":t}),S9=t=>({"p-highlight":t});function D9(t,i){if(t&1&&D(0,"p-columnFilterFormElement",8),t&2){let e=d();c("type",e.type)("field",e.field)("ariaLabel",e.ariaLabel)("filterConstraint",e.dt.filters[e.field])("filterTemplate",e.filterTemplate)("placeholder",e.placeholder)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("prefix",e.prefix)("suffix",e.suffix)("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)("showButtons",e.showButtons)}}function E9(t,i){t&1&&D(0,"FilterIcon",12),t&2&&c("styleClass","pi-filter-icon")}function M9(t,i){}function O9(t,i){t&1&&f(0,M9,0,0,"ng-template")}function k9(t,i){if(t&1&&(m(0,"span",13),f(1,O9,1,0,null,14),g()),t&2){let e=d(2);p(),c("ngTemplateOutlet",e.filterIconTemplate)}}function F9(t,i){if(t&1){let e=F();m(0,"button",9,0),E("click",function(){y(e);let r=d();return v(r.toggleMenu())})("keydown",function(r){y(e);let o=d();return v(o.onToggleButtonKeyDown(r))}),f(2,E9,1,1,"FilterIcon",10)(3,k9,2,1,"span",11),g()}if(t&2){let e,n=d();c("ngClass",we(6,I9,n.overlayVisible,n.hasFilter())),w("aria-label",n.filterMenuButtonAriaLabel)("aria-controls",n.overlayVisible?n.overlayId:null)("aria-expanded",(e=n.overlayVisible)!==null&&e!==void 0?e:!1),p(2),c("ngIf",!n.filterIconTemplate),p(),c("ngIf",n.filterIconTemplate)}}function A9(t,i){t&1&&D(0,"FilterSlashIcon")}function R9(t,i){}function L9(t,i){t&1&&f(0,R9,0,0,"ng-template")}function N9(t,i){if(t&1){let e=F();m(0,"button",15,0),E("click",function(){y(e);let r=d();return v(r.clearFilter())}),f(2,A9,1,0,"FilterSlashIcon",16)(3,L9,1,0,null,14),g()}if(t&2){let e=d();c("ngClass",U(4,x9,!e.hasRowFilter())),w("aria-label",e.clearButtonLabel),p(2),c("ngIf",!e.clearFilterIconTemplate),p(),c("ngTemplateOutlet",e.clearFilterIconTemplate)}}function V9(t,i){t&1&&H(0)}function P9(t,i){if(t&1){let e=F();m(0,"li",24),E("click",function(){let r=y(e).$implicit,o=d(3);return v(o.onRowMatchModeChange(r.value))})("keydown",function(r){y(e);let o=d(3);return v(o.onRowMatchModeKeyDown(r))})("keydown.enter",function(){let r=y(e).$implicit,o=d(3);return v(o.onRowMatchModeChange(r.value))}),K(1),g()}if(t&2){let e=i.$implicit,n=i.index,r=d(3);c("ngClass",U(3,S9,r.isRowMatchModeSelected(e.value))),w("tabindex",n===0?"0":null),p(),yt(" ",e.label," ")}}function H9(t,i){if(t&1){let e=F();m(0,"ul",20),f(1,P9,2,5,"li",21),D(2,"li",22),m(3,"li",23),E("click",function(){y(e);let r=d(2);return v(r.onRowClearItemClick())})("keydown",function(r){y(e);let o=d(2);return v(o.onRowMatchModeKeyDown(r))})("keydown.enter",function(){y(e);let r=d(2);return v(r.onRowClearItemClick())}),K(4),g()()}if(t&2){let e=d(2);p(),c("ngForOf",e.matchModes),p(3),se(e.noFilterLabel)}}function B9(t,i){if(t&1){let e=F();m(0,"div",32)(1,"p-dropdown",33),E("ngModelChange",function(r){y(e);let o=d(3);return v(o.onOperatorChange(r))}),g()()}if(t&2){let e=d(3);p(),c("options",e.operatorOptions)("ngModel",e.operator)}}function j9(t,i){if(t&1){let e=F();m(0,"p-dropdown",38),E("ngModelChange",function(r){y(e);let o=d().$implicit,s=d(3);return v(s.onMenuMatchModeChange(r,o))}),g()}if(t&2){let e=d().$implicit,n=d(3);c("options",n.matchModes)("ngModel",e.matchMode)}}function z9(t,i){t&1&&D(0,"TrashIcon",12),t&2&&c("styleClass","p-button-icon-left")}function U9(t,i){}function $9(t,i){t&1&&f(0,U9,0,0,"ng-template")}function G9(t,i){if(t&1){let e=F();m(0,"button",39),E("click",function(){y(e);let r=d().$implicit,o=d(3);return v(o.removeConstraint(r))}),f(1,z9,1,1,"TrashIcon",10)(2,$9,1,0,null,14),g()}if(t&2){let e=d(4);c("label",e.removeRuleButtonLabel),w("aria-label",e.removeRuleButtonLabel),p(),c("ngIf",!e.removeRuleIconTemplate),p(),c("ngTemplateOutlet",e.removeRuleIconTemplate)}}function W9(t,i){if(t&1&&(m(0,"div",34),f(1,j9,1,2,"p-dropdown",35),D(2,"p-columnFilterFormElement",36),m(3,"div"),f(4,G9,3,4,"button",37),g()()),t&2){let e=i.$implicit,n=d(3);p(),c("ngIf",n.showMatchModes&&n.matchModes),p(),c("type",n.type)("field",n.field)("filterConstraint",e)("filterTemplate",n.filterTemplate)("placeholder",n.placeholder)("minFractionDigits",n.minFractionDigits)("maxFractionDigits",n.maxFractionDigits)("prefix",n.prefix)("suffix",n.suffix)("locale",n.locale)("localeMatcher",n.localeMatcher)("currency",n.currency)("currencyDisplay",n.currencyDisplay)("useGrouping",n.useGrouping),p(2),c("ngIf",n.showRemoveIcon)}}function q9(t,i){t&1&&D(0,"PlusIcon",12),t&2&&c("styleClass","p-button-icon-left")}function K9(t,i){}function Q9(t,i){t&1&&f(0,K9,0,0,"ng-template")}function Z9(t,i){if(t&1){let e=F();m(0,"div",40)(1,"button",41),E("click",function(){y(e);let r=d(3);return v(r.addConstraint())}),f(2,q9,1,1,"PlusIcon",10)(3,Q9,1,0,null,14),g()()}if(t&2){let e=d(3);p(),c("label",e.addRuleButtonLabel),w("aria-label",e.addRuleButtonLabel),p(),c("ngIf",!e.addRuleIconTemplate),p(),c("ngTemplateOutlet",e.addRuleIconTemplate)}}function Y9(t,i){if(t&1){let e=F();m(0,"button",42,2),E("click",function(){y(e);let r=d(3);return v(r.clearFilter())}),g()}if(t&2){let e=d(3);c("label",e.clearButtonLabel),w("aria-label",e.clearButtonLabel)}}function X9(t,i){if(t&1){let e=F();m(0,"button",43),E("click",function(){y(e);let r=d(3);return v(r.applyFilter())}),g()}if(t&2){let e=d(3);c("label",e.applyButtonLabel),w("aria-label",e.applyButtonLabel)}}function J9(t,i){if(t&1&&(f(0,B9,2,2,"div",25),m(1,"div",26),f(2,W9,5,16,"div",27),g(),f(3,Z9,4,4,"div",28),m(4,"div",29),f(5,Y9,2,2,"button",30)(6,X9,1,2,"button",31),g()),t&2){let e=d(2);c("ngIf",e.isShowOperator),p(2),c("ngForOf",e.fieldConstraints),p(),c("ngIf",e.isShowAddConstraint),p(2),c("ngIf",e.showClearButton),p(),c("ngIf",e.showApplyButton)}}function e8(t,i){t&1&&H(0)}function t8(t,i){if(t&1){let e=F();m(0,"div",17),E("click",function(){y(e);let r=d();return v(r.onContentClick())})("@overlayAnimation.start",function(r){y(e);let o=d();return v(o.onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){y(e);let o=d();return v(o.onOverlayAnimationEnd(r))})("keydown.escape",function(){y(e);let r=d();return v(r.onEscape())}),f(1,V9,1,0,"ng-container",18)(2,H9,5,2,"ul",19)(3,J9,7,5,"ng-template",null,1,it)(5,e8,1,0,"ng-container",18),g()}if(t&2){let e=Ee(4),n=d();c("ngClass",U(10,T9,n.display==="menu"))("id",n.overlayId)("@overlayAnimation","visible"),w("aria-modal",!0),p(),c("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",U(12,Ir,n.field)),p(),c("ngIf",n.display==="row")("ngIfElse",e),p(3),c("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",U(14,Ir,n.field))}}var n8=(t,i,e,n,r,o,s,a,l,u,h,_,I,S,M,A)=>({$implicit:t,filterCallback:i,type:e,field:n,filterConstraint:r,placeholder:o,minFractionDigits:s,maxFractionDigits:a,prefix:l,suffix:u,locale:h,localeMatcher:_,currency:I,currencyDisplay:S,useGrouping:M,showButtons:A});function i8(t,i){t&1&&H(0)}function r8(t,i){if(t&1&&(L(0),f(1,i8,1,0,"ng-container",2),N()),t&2){let e=d();p(),c("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",zo(2,n8,[e.filterConstraint.value,e.filterCallback,e.type,e.field,e.filterConstraint,e.placeholder,e.minFractionDigits,e.maxFractionDigits,e.prefix,e.suffix,e.locale,e.localeMatcher,e.currency,e.currencyDisplay,e.useGrouping,e.showButtons]))}}function o8(t,i){if(t&1){let e=F();m(0,"input",8),E("input",function(r){y(e);let o=d(2);return v(o.onModelChange(r.target.value))})("keydown.enter",function(r){y(e);let o=d(2);return v(o.onTextInputEnterKeyDown(r))}),g()}if(t&2){let e=d(2);c("ariaLabel",e.ariaLabel)("value",e.filterConstraint==null?null:e.filterConstraint.value),w("placeholder",e.placeholder)}}function s8(t,i){if(t&1){let e=F();m(0,"p-inputNumber",9),E("ngModelChange",function(r){y(e);let o=d(2);return v(o.onModelChange(r))})("onKeyDown",function(r){y(e);let o=d(2);return v(o.onNumericInputKeyDown(r))}),g()}if(t&2){let e=d(2);c("ngModel",e.filterConstraint==null?null:e.filterConstraint.value)("showButtons",e.showButtons)("minFractionDigits",e.minFractionDigits)("maxFractionDigits",e.maxFractionDigits)("ariaLabel",e.ariaLabel)("prefix",e.prefix)("suffix",e.suffix)("placeholder",e.placeholder)("mode",e.currency?"currency":"decimal")("locale",e.locale)("localeMatcher",e.localeMatcher)("currency",e.currency)("currencyDisplay",e.currencyDisplay)("useGrouping",e.useGrouping)}}function a8(t,i){if(t&1){let e=F();m(0,"p-triStateCheckbox",10),E("ngModelChange",function(r){y(e);let o=d(2);return v(o.onModelChange(r))}),g()}if(t&2){let e=d(2);c("ariaLabel",e.ariaLabel)("ngModel",e.filterConstraint==null?null:e.filterConstraint.value)}}function l8(t,i){if(t&1){let e=F();m(0,"p-calendar",11),E("ngModelChange",function(r){y(e);let o=d(2);return v(o.onModelChange(r))}),g()}if(t&2){let e=d(2);c("ariaLabel",e.ariaLabel)("placeholder",e.placeholder)("ngModel",e.filterConstraint==null?null:e.filterConstraint.value)}}function c8(t,i){if(t&1&&(L(0,3),f(1,o8,1,3,"input",4)(2,s8,1,14,"p-inputNumber",5)(3,a8,1,2,"p-triStateCheckbox",6)(4,l8,1,3,"p-calendar",7),N()),t&2){let e=d();c("ngSwitch",e.type),p(),c("ngSwitchCase","text"),p(),c("ngSwitchCase","numeric"),p(),c("ngSwitchCase","boolean"),p(),c("ngSwitchCase","date")}}var fs=(()=>{class t{sortSource=new nt;selectionSource=new nt;contextMenuSource=new nt;valueSource=new nt;totalRecordsSource=new nt;columnsSource=new nt;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();valueSource$=this.valueSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();columnsSource$=this.columnsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=q({token:t,factory:t.\u0275fac})}return t})(),qn=(()=>{class t{document;platformId;renderer;el;zone;tableService;cd;filterService;overlayService;config;frozenColumns;frozenValue;style;styleClass;tableStyle;tableStyleClass;paginator;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showJumpToPageInput;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;selectionMode;selectionPageOnly;contextMenuSelection;contextMenuSelectionChange=new O;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;rowSelectable;rowTrackBy=(e,n)=>n;lazy=!1;lazyLoadOnInit=!0;compareSelectionBy="deepEquals";csvSeparator=",";exportFilename="download";filters={};globalFilterFields;filterDelay=300;filterLocale;expandedRowKeys={};editingRowKeys={};rowExpandMode="multiple";scrollable;scrollDirection="vertical";rowGroupMode;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=250;frozenWidth;get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive property is deprecated as table is always responsive with scrollable behavior.")}_responsive;contextMenu;resizableColumns;columnResizeMode="fit";reorderableColumns;loading;loadingIcon;showLoader=!0;rowHover;customSort;showInitialSortBadge=!0;autoLayout;exportFunction;exportHeader;stateKey;stateStorage="session";editMode="cell";groupRowsBy;groupRowsByOrder=1;responsiveLayout="scroll";breakpoint="640px";paginatorLocale;get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}selectAllChange=new O;selectionChange=new O;onRowSelect=new O;onRowUnselect=new O;onPage=new O;onSort=new O;onFilter=new O;onLazyLoad=new O;onRowExpand=new O;onRowCollapse=new O;onContextMenuSelect=new O;onColResize=new O;onColReorder=new O;onRowReorder=new O;onEditInit=new O;onEditComplete=new O;onEditCancel=new O;onHeaderCheckboxToggle=new O;sortFunction=new O;firstChange=new O;rowsChange=new O;onStateSave=new O;onStateRestore=new O;containerViewChild;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;wrapperViewChild;tableViewChild;tableHeaderViewChild;tableFooterViewChild;scroller;templates;get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated.")}_virtualRowHeight=28;_value=[];_columns;_totalRecords=0;_first=0;_rows;filteredValue;headerTemplate;headerGroupedTemplate;bodyTemplate;loadingBodyTemplate;captionTemplate;footerTemplate;footerGroupedTemplate;summaryTemplate;colGroupTemplate;expandedRowTemplate;groupHeaderTemplate;groupFooterTemplate;frozenExpandedRowTemplate;frozenHeaderTemplate;frozenBodyTemplate;frozenFooterTemplate;frozenColGroupTemplate;emptyMessageTemplate;paginatorLeftTemplate;paginatorRightTemplate;paginatorDropdownItemTemplate;loadingIconTemplate;reorderIndicatorUpIconTemplate;reorderIndicatorDownIconTemplate;sortIconTemplate;checkboxIconTemplate;headerCheckboxIconTemplate;paginatorDropdownIconTemplate;paginatorFirstPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;selectionKeys={};lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;draggedRowIndex;droppedRowIndex;rowDragging;dropPosition;editingCell;editingCellData;editingCellField;editingCellRowIndex;selfClick;documentEditListener;_multiSortMeta;_sortField;_sortOrder=1;preventSelectionSetterPropagation;_selection;_selectAll=null;anchorRowIndex;rangeRowIndex;filterTimeout;initialized;rowTouched;restoringSort;restoringFilter;stateRestored;columnOrderStateRestored;columnWidthsState;tableWidthState;overlaySubscription;resizeColumnElement;columnResizing=!1;rowGroupHeaderStyleObject={};id=me();styleElement;responsiveStyleElement;window;constructor(e,n,r,o,s,a,l,u,h,_){this.document=e,this.platformId=n,this.renderer=r,this.el=o,this.zone=s,this.tableService=a,this.cd=l,this.filterService=u,this.overlayService=h,this.config=_,this.window=this.document.defaultView}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),this.responsiveLayout==="stack"&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownicon":this.paginatorDropdownIconTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template;break}})}ngAfterViewInit(){bt(this.platformId)&&this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&bt(this.platformId)&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,this.sortMode=="single"&&(this.sortField||this.groupRowsBy)?this.sortSingle():this.sortMode=="multiple"&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this.isStateful()||(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue)),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&(this.restoreColumnOrder(),this.tableService.onColumnsChange(this._columns))),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get processedData(){return this.filteredValue||this.value||[]}_initialColWidths;dataToRender(e){let n=e||this.processedData;if(n&&this.paginator){let r=this.lazy?0:this.first;return n.slice(r,r+this.rows)}return n}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(k.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(k.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let n=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),this.sortMode==="multiple"){let r=n.metaKey||n.ctrlKey,o=this.getSortMeta(e.field);o?r?o.order=o.order*-1:(this._multiSortMeta=[{field:e.field,order:o.order*-1}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!r||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,n=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField){this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],this.sortMultiple();return}if(e&&n){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:n}):(this.value.sort((o,s)=>{let a=k.resolveFieldData(o,e),l=k.resolveFieldData(s,e),u=null;return a==null&&l!=null?u=-1:a!=null&&l==null?u=1:a==null&&l==null?u=0:typeof a=="string"&&typeof l=="string"?u=a.localeCompare(l):u=a<l?-1:a>l?1:0,n*u}),this._value=[...this.value]),this.hasFilter()&&this._filter());let r={field:e,order:n};this.onSort.emit(r),this.tableService.onSort(r)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,n)=>this.multisortField(e,n,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,n,r,o){let s=k.resolveFieldData(e,r[o].field),a=k.resolveFieldData(n,r[o].field);return k.compare(s,a,this.filterLocale)===0?r.length-1>o?this.multisortField(e,n,r,o+1):0:this.compareValuesOnSort(s,a,r[o].order)}compareValuesOnSort(e,n,r){return k.sort(e,n,r,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let n=0;n<this.multiSortMeta.length;n++)if(this.multiSortMeta[n].field===e)return this.multiSortMeta[n]}return null}isSorted(e){if(this.sortMode==="single")return this.sortField&&this.sortField===e;if(this.sortMode==="multiple"){let n=!1;if(this.multiSortMeta){for(let r=0;r<this.multiSortMeta.length;r++)if(this.multiSortMeta[r].field==e){n=!0;break}}return n}}handleRowClick(e){let n=e.originalEvent.target,r=n.nodeName,o=n.parentElement&&n.parentElement.nodeName;if(!(r=="INPUT"||r=="BUTTON"||r=="A"||o=="INPUT"||o=="BUTTON"||o=="A"||b.hasClass(e.originalEvent.target,"p-clickable"))){if(this.selectionMode){let s=e.rowData,a=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&this.anchorRowIndex!=null)b.clearSelection(),this.rangeRowIndex!=null&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=a,this.selectRange(e.originalEvent,a);else{let l=this.isSelected(s);if(!l&&!this.isRowSelectable(s,a))return;let u=this.rowTouched?!1:this.metaKeySelection,h=this.dataKey?String(k.resolveFieldData(s,this.dataKey)):null;if(this.anchorRowIndex=a,this.rangeRowIndex=a,u){let _=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(l&&_){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let I=this.findIndexInSelection(s);this._selection=this.selection.filter((S,M)=>M!=I),this.selectionChange.emit(this.selection),h&&delete this.selectionKeys[h]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row"})}else this.isSingleSelectionMode()?(this._selection=s,this.selectionChange.emit(s),h&&(this.selectionKeys={},this.selectionKeys[h]=1)):this.isMultipleSelectionMode()&&(_?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,s],this.selectionChange.emit(this.selection),h&&(this.selectionKeys[h]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})}else if(this.selectionMode==="single")l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a})):(this._selection=s,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),h&&(this.selectionKeys={},this.selectionKeys[h]=1));else if(this.selectionMode==="multiple")if(l){let _=this.findIndexInSelection(s);this._selection=this.selection.filter((I,S)=>S!=_),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),h&&delete this.selectionKeys[h]}else this._selection=this.selection?[...this.selection,s]:[s],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:s,type:"row",index:a}),h&&(this.selectionKeys[h]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let n=e.rowData,r=e.rowIndex;if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=n,this.contextMenuSelectionChange.emit(n),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:n,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(n);else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let o=this.isSelected(n),s=this.dataKey?String(k.resolveFieldData(n,this.dataKey)):null;if(!o){if(!this.isRowSelectable(n,r))return;this.isSingleSelectionMode()?(this.selection=n,this.selectionChange.emit(n),s&&(this.selectionKeys={},this.selectionKeys[s]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),s&&(this.selectionKeys[s]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:n,index:e.rowIndex})}}}selectRange(e,n){let r,o;this.anchorRowIndex>n?(r=n,o=this.anchorRowIndex):this.anchorRowIndex<n?(r=this.anchorRowIndex,o=n):(r=n,o=n),this.lazy&&this.paginator&&(r-=this.first,o-=this.first);let s=[];for(let a=r;a<=o;a++){let l=this.filteredValue?this.filteredValue[a]:this.value[a];if(!this.isSelected(l)){if(!this.isRowSelectable(l,n))continue;s.push(l),this._selection=[...this.selection,l];let u=this.dataKey?String(k.resolveFieldData(l,this.dataKey)):null;u&&(this.selectionKeys[u]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:s,type:"row"})}clearSelectionRange(e){let n,r,o=this.rangeRowIndex,s=this.anchorRowIndex;o>s?(n=this.anchorRowIndex,r=this.rangeRowIndex):o<s?(n=this.rangeRowIndex,r=this.anchorRowIndex):(n=this.rangeRowIndex,r=this.rangeRowIndex);for(let a=n;a<=r;a++){let l=this.value[a],u=this.findIndexInSelection(l);this._selection=this.selection.filter((_,I)=>I!=u);let h=this.dataKey?String(k.resolveFieldData(l,this.dataKey)):null;h&&delete this.selectionKeys[h],this.onRowUnselect.emit({originalEvent:e,data:l,type:"row"})}}isSelected(e){return e&&this.selection?this.dataKey?this.selectionKeys[k.resolveFieldData(e,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}findIndexInSelection(e){let n=-1;if(this.selection&&this.selection.length){for(let r=0;r<this.selection.length;r++)if(this.equals(e,this.selection[r])){n=r;break}}return n}isRowSelectable(e,n){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:n}))}toggleRowWithRadio(e,n){if(this.preventSelectionSetterPropagation=!0,this.selection!=n){if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=n,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(k.resolveFieldData(n,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,n){this.selection=this.selection||[];let r=this.isSelected(n),o=this.dataKey?String(k.resolveFieldData(n,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,r){let s=this.findIndexInSelection(n);this._selection=this.selection.filter((a,l)=>l!=s),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),o&&delete this.selectionKeys[o]}else{if(!this.isRowSelectable(n,e.rowIndex))return;this._selection=this.selection?[...this.selection,n]:[n],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:n,type:"checkbox"}),o&&(this.selectionKeys[o]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,n){if(this._selectAll!==null)this.selectAllChange.emit({originalEvent:e,checked:n});else{let r=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData,o=this.selectionPageOnly&&this._selection?this._selection.filter(s=>!r.some(a=>this.equals(s,a))):[];n&&(o=this.frozenValue?[...o,...this.frozenValue,...r]:[...o,...r],o=this.rowSelectable?o.filter((s,a)=>this.rowSelectable({data:s,index:a})):o),this._selection=o,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:n}),this.isStateful()&&this.saveState()}}equals(e,n){return this.compareSelectionBy==="equals"?e===n:k.equals(e,n,this.dataKey)}filter(e,n,r){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[n]&&delete this.filters[n]:this.filters[n]={value:e,matchMode:r},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,n){this.filter(e,"global",n)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);else{let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let n=0;n<this.value.length;n++){let r=!0,o=!1,s=!1;for(let l in this.filters)if(this.filters.hasOwnProperty(l)&&l!=="global"){s=!0;let u=l,h=this.filters[u];if(Array.isArray(h)){for(let _ of h)if(r=this.executeLocalFilter(u,this.value[n],_),_.operator===rs.OR&&r||_.operator===rs.AND&&!r)break}else r=this.executeLocalFilter(u,this.value[n],h);if(!r)break}if(this.filters.global&&!o&&e)for(let l=0;l<e.length;l++){let u=e[l].field||e[l];if(o=this.filterService.filters[this.filters.global.matchMode](k.resolveFieldData(this.value[n],u),this.filters.global.value,this.filterLocale),o)break}let a;this.filters.global?a=s?s&&r&&o:o:a=s&&r,a&&this.filteredValue.push(this.value[n])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(e,n,r){let o=r.value,s=r.matchMode||kt.STARTS_WITH,a=k.resolveFieldData(n,e),l=this.filterService.filters[s];return l(a,o,this.filterLocale)}hasFilter(){let e=!0;for(let n in this.filters)if(this.filters.hasOwnProperty(n)){e=!1;break}return!e}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.clearFilterValues(),this.filteredValue=null,this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}clearFilterValues(){for(let[,e]of Object.entries(this.filters))if(Array.isArray(e))for(let n of e)n.value=null;else e&&(e.value=null)}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let n,r="",o=this.columns;e&&e.selectionOnly?n=this.selection||[]:e&&e.allValues?n=this.value||[]:(n=this.filteredValue||this.value,this.frozenValue&&(n=n?[...this.frozenValue,...n]:this.frozenValue));let s=o.filter(h=>h.exportable!==!1&&h.field);r+=s.map(h=>'"'+this.getExportHeader(h)+'"').join(this.csvSeparator);let a=n.map(h=>s.map(_=>{let I=k.resolveFieldData(h,_.field);return I!=null?this.exportFunction?I=this.exportFunction({data:I,field:_.field}):I=String(I).replace(/"/g,'""'):I="",'"'+I+'"'}).join(this.csvSeparator)).join(`
72
+ `);a.length&&(r+=`
73
+ `+a);let l=new Blob([new Uint8Array([239,187,191]),r],{type:"text/csv;charset=utf-8;"}),u=this.renderer.createElement("a");u.style.display="none",this.renderer.appendChild(this.document.body,u),u.download!==void 0?(u.setAttribute("href",URL.createObjectURL(l)),u.setAttribute("download",this.exportFilename+".csv"),u.click()):(r="data:text/csv;charset=utf-8,"+r,this.window.open(encodeURI(r))),this.renderer.removeChild(this.document.body,u)}onLazyItemLoad(e){this.onLazyLoad.emit(Le($($({},this.createLazyLoadMetadata()),e),{rows:e.last-e.first}))}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,n,r,o){this.editingCell=e,this.editingCellData=n,this.editingCellField=r,this.editingCellRowIndex=o,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&b.find(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(b.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}initRowEdit(e){let n=String(k.resolveFieldData(e,this.dataKey));this.editingRowKeys[n]=!0}saveRowEdit(e,n){if(b.find(n,".ng-invalid.ng-dirty").length===0){let r=String(k.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[r]}}cancelRowEdit(e){let n=String(k.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[n]}toggleRow(e,n){if(!this.dataKey&&!this.groupRowsBy)throw new Error("dataKey or groupRowsBy must be defined to use row expansion");let r=this.groupRowsBy?String(k.resolveFieldData(e,this.groupRowsBy)):String(k.resolveFieldData(e,this.dataKey));this.expandedRowKeys[r]!=null?(delete this.expandedRowKeys[r],this.onRowCollapse.emit({originalEvent:n,data:e})):(this.rowExpandMode==="single"&&(this.expandedRowKeys={}),this.expandedRowKeys[r]=!0,this.onRowExpand.emit({originalEvent:n,data:e})),n&&n.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return this.groupRowsBy?this.expandedRowKeys[String(k.resolveFieldData(e,this.groupRowsBy))]===!0:this.expandedRowKeys[String(k.resolveFieldData(e,this.dataKey))]===!0}isRowEditing(e){return this.editingRowKeys[String(k.resolveFieldData(e,this.dataKey))]===!0}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}onColumnResizeBegin(e){let n=b.getOffset(this.containerViewChild?.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let n=b.getOffset(this.containerViewChild?.nativeElement).left;b.addClass(this.containerViewChild?.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-n+this.containerViewChild?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild?.nativeElement.offsetLeft-this.lastResizerHelperX,r=this.resizeColumnElement.offsetWidth+e,o=this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15;if(r>=o){if(this.columnResizeMode==="fit"){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;r>15&&a>15&&this.resizeTableCells(r,a)}else if(this.columnResizeMode==="expand"){this._initialColWidths=this._totalTableWidth();let s=this.tableViewChild?.nativeElement.offsetWidth+e;this.setResizeTableWidth(s+"px"),this.resizeTableCells(r,null)}this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",b.removeClass(this.containerViewChild?.nativeElement,"p-unselectable-text")}_totalTableWidth(){let e=[],n=b.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");return b.find(n,"tr > th").forEach(o=>e.push(b.getOuterWidth(o))),e}onColumnDragStart(e,n){this.reorderIconWidth=b.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=b.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=n,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,n){if(this.reorderableColumns&&this.draggedColumn&&n){e.preventDefault();let r=b.getOffset(this.containerViewChild?.nativeElement),o=b.getOffset(n);if(this.draggedColumn!=n){let s=b.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),a=b.indexWithinGroup(n,"preorderablecolumn"),l=o.left-r.left,u=r.top-o.top,h=o.left+n.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-r.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-r.top+n.offsetHeight+"px",e.pageX>h?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+n.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&e.preventDefault()}onColumnDrop(e,n){if(e.preventDefault(),this.draggedColumn){let r=b.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),o=b.indexWithinGroup(n,"preorderablecolumn"),s=r!=o;if(s&&(o-r==1&&this.dropPosition===-1||r-o==1&&this.dropPosition===1)&&(s=!1),s&&o<r&&this.dropPosition===1&&(o=o+1),s&&o>r&&this.dropPosition===-1&&(o=o-1),s&&(k.reorderArray(this.columns,r,o),this.onColReorder.emit({dragIndex:r,dropIndex:o,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.resizableColumns&&this.resizeColumnElement){let a=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();k.reorderArray(a,r+1,o+1),this.updateStyleElement(a,r,null,null)}this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}resizeTableCells(e,n){let r=b.index(this.resizeColumnElement),o=this.columnResizeMode==="expand"?this._initialColWidths:this._totalTableWidth();this.updateStyleElement(o,r,e,n)}updateStyleElement(e,n,r,o){this.destroyStyleElement(),this.createStyleElement();let s="";e.forEach((a,l)=>{let u=l===n?r:o&&l===n+1?o:a,h=`width: ${u}px !important; max-width: ${u}px !important;`;s+=`
74
+ #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${l+1}),
75
+ #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${l+1}),
76
+ #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${l+1}) {
77
+ ${h}
78
+ }
79
+ `}),this.renderer.setProperty(this.styleElement,"innerHTML",s)}onRowDragStart(e,n){this.rowDragging=!0,this.draggedRowIndex=n,e.dataTransfer.setData("text","b")}onRowDragOver(e,n,r){if(this.rowDragging&&this.draggedRowIndex!==n){let o=b.getOffset(r).top,s=e.pageY,a=o+b.getOuterHeight(r)/2,l=r.previousElementSibling;s<a?(b.removeClass(r,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=n,l?b.addClass(l,"p-datatable-dragpoint-bottom"):b.addClass(r,"p-datatable-dragpoint-top")):(l?b.removeClass(l,"p-datatable-dragpoint-bottom"):b.addClass(r,"p-datatable-dragpoint-top"),this.droppedRowIndex=n+1,b.addClass(r,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,n){let r=n.previousElementSibling;r&&b.removeClass(r,"p-datatable-dragpoint-bottom"),b.removeClass(n,"p-datatable-dragpoint-bottom"),b.removeClass(n,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,n){if(this.droppedRowIndex!=null){let r=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:this.droppedRowIndex===0?0:this.droppedRowIndex-1;k.reorderArray(this.value,this.draggedRowIndex,r),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:r})}this.onRowDragLeave(e,n),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){if(bt(this.platformId))switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}else throw new Error("Browser storage is not available in the server side.")}isStateful(){return this.stateKey!=null}saveState(){let e=this.getStorage(),n={};this.paginator&&(n.first=this.first,n.rows=this.rows),this.sortField&&(n.sortField=this.sortField,n.sortOrder=this.sortOrder),this.multiSortMeta&&(n.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(n.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(n),this.reorderableColumns&&this.saveColumnOrder(n),this.selection&&(n.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(n.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(n)),this.onStateSave.emit(n)}clearState(){let e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){let n=this.getStorage().getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,o=function(s,a){return typeof a=="string"&&r.test(a)?new Date(a):a};if(n){let s=JSON.parse(n,o);this.paginator&&(this.first!==void 0&&(this.first=s.first,this.firstChange.emit(this.first)),this.rows!==void 0&&(this.rows=s.rows,this.rowsChange.emit(this.rows))),s.sortField&&(this.restoringSort=!0,this._sortField=s.sortField,this._sortOrder=s.sortOrder),s.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=s.multiSortMeta),s.filters&&(this.restoringFilter=!0,this.filters=s.filters),this.resizableColumns&&(this.columnWidthsState=s.columnWidths,this.tableWidthState=s.tableWidth),s.expandedRowKeys&&(this.expandedRowKeys=s.expandedRowKeys),s.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(s.selection)),this.stateRestored=!0,this.onStateRestore.emit(s)}}saveColumnWidths(e){let n=[];b.find(this.containerViewChild?.nativeElement,".p-datatable-thead > tr > th").forEach(o=>n.push(b.getOuterWidth(o))),e.columnWidths=n.join(","),this.columnResizeMode==="expand"&&(e.tableWidth=b.getOuterWidth(this.tableViewChild?.nativeElement))}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if(this.columnResizeMode==="expand"&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),k.isNotEmpty(e)){this.createStyleElement();let n="";e.forEach((r,o)=>{let s=`width: ${r}px !important; max-width: ${r}px !important`;n+=`
80
+ #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${o+1}),
81
+ #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${o+1}),
82
+ #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${o+1}) {
83
+ ${s}
84
+ }
85
+ `}),this.styleElement.innerHTML=n}}}saveColumnOrder(e){if(this.columns){let n=[];this.columns.map(r=>{n.push(r.field||r.key)}),e.columnOrder=n}}restoreColumnOrder(){let n=this.getStorage().getItem(this.stateKey);if(n){let o=JSON.parse(n).columnOrder;if(o){let s=[];o.map(a=>{let l=this.findColumnByKey(a);l&&s.push(l)}),this.columnOrderStateRestored=!0,this.columns=s}}}findColumnByKey(e){if(this.columns){for(let n of this.columns)if(n.key===e||n.field===e)return n}else return null}createStyleElement(){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){if(bt(this.platformId)&&!this.responsiveStyleElement){this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",this.renderer.appendChild(this.document.head,this.responsiveStyleElement);let e=`
86
+ @media screen and (max-width: ${this.breakpoint}) {
87
+ #${this.id}-table > .p-datatable-thead > tr > th,
88
+ #${this.id}-table > .p-datatable-tfoot > tr > td {
89
+ display: none !important;
90
+ }
91
+
92
+ #${this.id}-table > .p-datatable-tbody > tr > td {
93
+ display: flex;
94
+ width: 100% !important;
95
+ align-items: center;
96
+ justify-content: space-between;
97
+ }
98
+
99
+ #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {
100
+ border: 0 none;
101
+ }
102
+
103
+ #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {
104
+ border-top: 0;
105
+ border-right: 0;
106
+ border-left: 0;
107
+ }
108
+
109
+ #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {
110
+ display: block;
111
+ }
112
+ }
113
+ `;this.renderer.setProperty(this.responsiveStyleElement,"innerHTML",e)}}destroyResponsiveStyle(){this.responsiveStyleElement&&(this.renderer.removeChild(this.document.head,this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}getPaginatorStyleClasses(e){return[this.paginatorStyleClass,e].filter(n=>!!n).join(" ").trim()}static \u0275fac=function(n){return new(n||t)(x(Se),x(pt),x(Be),x(_e),x(ge),x(fs),x(ce),x(os),x(un),x(ot))};static \u0275cmp=P({type:t,selectors:[["p-table"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(J5,5),Z(eP,5),Z(tP,5),Z(nP,5),Z(iP,5),Z(rP,5),Z(oP,5),Z(sP,5),Z(aP,5)),n&2){let o;j(o=z())&&(r.containerViewChild=o.first),j(o=z())&&(r.resizeHelperViewChild=o.first),j(o=z())&&(r.reorderIndicatorUpViewChild=o.first),j(o=z())&&(r.reorderIndicatorDownViewChild=o.first),j(o=z())&&(r.wrapperViewChild=o.first),j(o=z())&&(r.tableViewChild=o.first),j(o=z())&&(r.tableHeaderViewChild=o.first),j(o=z())&&(r.tableFooterViewChild=o.first),j(o=z())&&(r.scroller=o.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:[C.HasDecoratorInputTransform,"paginator","paginator",T],pageLinks:[C.HasDecoratorInputTransform,"pageLinks","pageLinks",Q],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[C.HasDecoratorInputTransform,"alwaysShowPaginator","alwaysShowPaginator",T],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[C.HasDecoratorInputTransform,"showCurrentPageReport","showCurrentPageReport",T],showJumpToPageDropdown:[C.HasDecoratorInputTransform,"showJumpToPageDropdown","showJumpToPageDropdown",T],showJumpToPageInput:[C.HasDecoratorInputTransform,"showJumpToPageInput","showJumpToPageInput",T],showFirstLastIcon:[C.HasDecoratorInputTransform,"showFirstLastIcon","showFirstLastIcon",T],showPageLinks:[C.HasDecoratorInputTransform,"showPageLinks","showPageLinks",T],defaultSortOrder:[C.HasDecoratorInputTransform,"defaultSortOrder","defaultSortOrder",Q],sortMode:"sortMode",resetPageOnSort:[C.HasDecoratorInputTransform,"resetPageOnSort","resetPageOnSort",T],selectionMode:"selectionMode",selectionPageOnly:[C.HasDecoratorInputTransform,"selectionPageOnly","selectionPageOnly",T],contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[C.HasDecoratorInputTransform,"metaKeySelection","metaKeySelection",T],rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:[C.HasDecoratorInputTransform,"lazy","lazy",T],lazyLoadOnInit:[C.HasDecoratorInputTransform,"lazyLoadOnInit","lazyLoadOnInit",T],compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[C.HasDecoratorInputTransform,"filterDelay","filterDelay",Q],filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:[C.HasDecoratorInputTransform,"scrollable","scrollable",T],scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:[C.HasDecoratorInputTransform,"virtualScroll","virtualScroll",T],virtualScrollItemSize:[C.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",Q],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[C.HasDecoratorInputTransform,"virtualScrollDelay","virtualScrollDelay",Q],frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:[C.HasDecoratorInputTransform,"resizableColumns","resizableColumns",T],columnResizeMode:"columnResizeMode",reorderableColumns:[C.HasDecoratorInputTransform,"reorderableColumns","reorderableColumns",T],loading:[C.HasDecoratorInputTransform,"loading","loading",T],loadingIcon:"loadingIcon",showLoader:[C.HasDecoratorInputTransform,"showLoader","showLoader",T],rowHover:[C.HasDecoratorInputTransform,"rowHover","rowHover",T],customSort:[C.HasDecoratorInputTransform,"customSort","customSort",T],showInitialSortBadge:[C.HasDecoratorInputTransform,"showInitialSortBadge","showInitialSortBadge",T],autoLayout:[C.HasDecoratorInputTransform,"autoLayout","autoLayout",T],exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:[C.HasDecoratorInputTransform,"groupRowsByOrder","groupRowsByOrder",Q],responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",paginatorLocale:"paginatorLocale",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll",virtualRowHeight:"virtualRowHeight"},outputs:{contextMenuSelectionChange:"contextMenuSelectionChange",selectAllChange:"selectAllChange",selectionChange:"selectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[ht([fs]),fe,$t],decls:16,vars:22,consts:[["container",""],["wrapper",""],["buildInTable",""],["scroller",""],["table",""],["thead",""],["tfoot",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"ngStyle","ngClass"],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize","onLazyLoad",4,"ngIf"],[4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","p-datatable-reorder-indicator-up","style","display: none;",4,"ngIf"],["class","p-datatable-reorder-indicator-down","style","display: none;",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[3,"class",4,"ngIf"],[3,"spin","styleClass",4,"ngIf"],["class","p-datatable-loading-icon",4,"ngIf"],[3,"spin","styleClass"],[1,"p-datatable-loading-icon"],[4,"ngTemplateOutlet"],[1,"p-datatable-header"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","styleClass","locale"],["pTemplate","dropdownicon"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],[3,"onLazyLoad","items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","autoSize"],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["role","rowgroup",1,"p-datatable-thead"],["role","rowgroup","class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["role","rowgroup","class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["role","rowgroup","class","p-datatable-tfoot",4,"ngIf"],["role","rowgroup",1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],["role","rowgroup",1,"p-datatable-scroller-spacer"],["role","rowgroup",1,"p-datatable-tfoot"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],[1,"p-datatable-reorder-indicator-up",2,"display","none"],[1,"p-datatable-reorder-indicator-down",2,"display","none"]],template:function(n,r){n&1&&(m(0,"div",10,0),f(2,vP,3,2,"div",11)(3,bP,2,1,"div",12)(4,VP,6,24,"p-paginator",13),m(5,"div",14,1),f(7,BP,3,17,"p-scroller",15)(8,zP,2,7,"ng-container",16)(9,QP,10,28,"ng-template",null,2,it),g(),f(11,d7,6,24,"p-paginator",13)(12,h7,2,1,"div",17)(13,f7,2,0,"div",18)(14,y7,4,2,"span",19)(15,w7,4,2,"span",20),g()),n&2&&(R(r.styleClass),c("ngStyle",r.style)("ngClass",lt(16,lP,r.rowHover||r.selectionMode,r.scrollable,r.scrollable&&r.scrollHeight==="flex")),w("id",r.id),p(2),c("ngIf",r.loading&&r.showLoader),p(),c("ngIf",r.captionTemplate),p(),c("ngIf",r.paginator&&(r.paginatorPosition==="top"||r.paginatorPosition=="both")),p(),c("ngStyle",U(20,cP,r.virtualScroll?"":r.scrollHeight)),p(2),c("ngIf",r.virtualScroll),p(),c("ngIf",!r.virtualScroll),p(3),c("ngIf",r.paginator&&(r.paginatorPosition==="bottom"||r.paginatorPosition=="both")),p(),c("ngIf",r.summaryTemplate),p(),c("ngIf",r.resizableColumns),p(),c("ngIf",r.reorderableColumns),p(),c("ngIf",r.reorderableColumns))},dependencies:()=>[Oe,Ce,Ae,je,bb,xe,wr,Rm,Lm,Un,u8],styles:[`@layer primeng{.p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-icon-wrapper{display:inline}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:2}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit;z-index:1}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:2}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:3}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}}
114
+ `],encapsulation:2})}return t})(),u8=(()=>{class t{dt;tableService;cd;el;columns;template;get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&this.dt.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}frozen;frozenRows;scrollerOptions;subscription;_value;ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&this.dt.rowGroupMode==="subheader"&&this.updateFrozenRowGroupHeaderStickyPosition()}constructor(e,n,r,o){this.dt=e,this.tableService=n,this.cd=r,this.el=o,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}shouldRenderRowGroupHeader(e,n,r){let o=k.resolveFieldData(n,this.dt.groupRowsBy),s=e[r-(1+this.dt._first)];if(s){let a=k.resolveFieldData(s,this.dt.groupRowsBy);return o!==a}else return!0}shouldRenderRowGroupFooter(e,n,r){let o=k.resolveFieldData(n,this.dt.groupRowsBy),s=e[r+(1+this.dt._first)];if(s){let a=k.resolveFieldData(s,this.dt.groupRowsBy);return o!==a}else return!0}shouldRenderRowspan(e,n,r){let o=k.resolveFieldData(n,this.dt.groupRowsBy),s=e[r-1];if(s){let a=k.resolveFieldData(s,this.dt.groupRowsBy);return o!==a}else return!0}calculateRowGroupSize(e,n,r){let o=k.resolveFieldData(n,this.dt.groupRowsBy),s=o,a=0;for(;o===s;){a++;let l=e[++r];if(l)s=k.resolveFieldData(l,this.dt.groupRowsBy);else break}return a===1?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=b.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=b.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,n){return this.dt.virtualScroll?(n=n||this.scrollerOptions,n?n[e]:null):null}getRowIndex(e){let n=this.dt.paginator?this.dt.first+e:e,r=this.getScrollerOption("getItemOptions");return r?r(n).index:n}static \u0275fac=function(n){return new(n||t)(x(qn),x(fs),x(ce),x(_e))};static \u0275cmp=P({type:t,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:[C.None,"pTableBody","columns"],template:[C.None,"pTableBodyTemplate","template"],value:"value",frozen:[C.HasDecoratorInputTransform,"frozen","frozen",T],frozenRows:[C.HasDecoratorInputTransform,"frozenRows","frozenRows",T],scrollerOptions:"scrollerOptions"},features:[fe],attrs:I7,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&f(0,R7,2,2,"ng-container",0)(1,$7,2,2,"ng-container",0)(2,Q7,2,2,"ng-container",0)(3,Y7,2,5,"ng-container",0)(4,J7,2,5,"ng-container",0),n&2&&(c("ngIf",!r.dt.expandedRowTemplate),p(),c("ngIf",r.dt.expandedRowTemplate&&!(r.frozen&&r.dt.frozenExpandedRowTemplate)),p(),c("ngIf",r.dt.frozenExpandedRowTemplate&&r.frozen),p(),c("ngIf",r.dt.loading),p(),c("ngIf",r.dt.isEmpty()&&!r.dt.loading))},dependencies:[Ct,Ce,Ae],encapsulation:2})}return t})();var Mb=(()=>{class t{dt;field;pSortableColumnDisabled;sorted;sortOrder;subscription;constructor(e){this.dt=e,this.isEnabled()&&(this.subscription=this.dt.tableService.sortSource$.subscribe(n=>{this.updateSortState()}))}ngOnInit(){this.isEnabled()&&this.updateSortState()}updateSortState(){this.sorted=this.dt.isSorted(this.field),this.sortOrder=this.sorted?this.dt.sortOrder===1?"ascending":"descending":"none"}onClick(e){this.isEnabled()&&!this.isFilterElement(e.target)&&(this.updateSortState(),this.dt.sort({originalEvent:e,field:this.field}),b.clearSelection())}onEnterKey(e){this.onClick(e),e.preventDefault()}isEnabled(){return this.pSortableColumnDisabled!==!0}isFilterElement(e){return this.isFilterElementIconOrButton(e)||this.isFilterElementIconOrButton(e?.parentElement?.parentElement)}isFilterElementIconOrButton(e){return b.hasClass(e,"pi-filter-icon")||b.hasClass(e,"p-column-filter-menu-button")}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(x(qn))};static \u0275dir=$e({type:t,selectors:[["","pSortableColumn",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(n,r){n&1&&E("click",function(s){return r.onClick(s)})("keydown.space",function(s){return r.onEnterKey(s)})("keydown.enter",function(s){return r.onEnterKey(s)}),n&2&&(w("tabindex",r.isEnabled()?"0":null)("role","columnheader")("aria-sort",r.sortOrder),Ot("p-sortable-column",r.isEnabled())("p-highlight",r.sorted))},inputs:{field:[C.None,"pSortableColumn","field"],pSortableColumnDisabled:[C.HasDecoratorInputTransform,"pSortableColumnDisabled","pSortableColumnDisabled",T]},features:[fe]})}return t})(),Ob=(()=>{class t{dt;cd;field;subscription;sortOrder;constructor(e,n){this.dt=e,this.cd=n,this.subscription=this.dt.tableService.sortSource$.subscribe(r=>{this.updateSortState()})}ngOnInit(){this.updateSortState()}onClick(e){e.preventDefault()}updateSortState(){if(this.dt.sortMode==="single")this.sortOrder=this.dt.isSorted(this.field)?this.dt.sortOrder:0;else if(this.dt.sortMode==="multiple"){let e=this.dt.getSortMeta(this.field);this.sortOrder=e?e.order:0}this.cd.markForCheck()}getMultiSortMetaIndex(){let e=this.dt._multiSortMeta,n=-1;if(e&&this.dt.sortMode==="multiple"&&this.dt.showInitialSortBadge&&e.length>1)for(let r=0;r<e.length;r++){let o=e[r];if(o.field===this.field||o.field===this.field){n=r;break}}return n}getBadgeValue(){let e=this.getMultiSortMetaIndex();return this.dt.groupRowsBy&&e>-1?e:e+1}isMultiSorted(){return this.dt.sortMode==="multiple"&&this.getMultiSortMetaIndex()>-1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(x(qn),x(ce))};static \u0275cmp=P({type:t,selectors:[["p-sortIcon"]],hostAttrs:[1,"p-element"],inputs:{field:"field"},decls:3,vars:3,consts:[[4,"ngIf"],["class","p-sortable-column-icon",4,"ngIf"],["class","p-sortable-column-badge",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-sortable-column-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-sortable-column-badge"]],template:function(n,r){n&1&&f(0,i9,4,3,"ng-container",0)(1,s9,2,4,"span",1)(2,a9,2,1,"span",2),n&2&&(c("ngIf",!r.dt.sortIconTemplate),p(),c("ngIf",r.dt.sortIconTemplate),p(),c("ngIf",r.isMultiSorted()))},dependencies:()=>[Ce,Ae,Hm,jm,Bm],encapsulation:2,changeDetection:0})}return t})(),kb=(()=>{class t{dt;tableService;el;data;index;pSelectableRowDisabled;selected;subscription;constructor(e,n,r){this.dt=e,this.tableService=n,this.el=r,this.isEnabled()&&(this.subscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.selected=this.dt.isSelected(this.data)}))}setRowTabIndex(){if(this.dt.selectionMode==="single"||this.dt.selectionMode==="multiple")return this.dt.selection?this.dt.anchorRowIndex===this.index?0:-1:0}ngOnInit(){this.isEnabled()&&(this.selected=this.dt.isSelected(this.data))}onClick(e){this.isEnabled()&&this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onTouchEnd(e){this.isEnabled()&&this.dt.handleRowTouchEnd(e)}onKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;default:if(e.code==="KeyA"&&(e.metaKey||e.ctrlKey)&&this.dt.selectionMode==="multiple"){let n=this.dt.dataToRender(this.dt.processedData);this.dt.selection=[...n],this.dt.selectRange(e,n.length-1),e.preventDefault()}break}}onArrowDownKey(e){if(!this.isEnabled())return;let n=e.currentTarget,r=this.findNextSelectableRow(n);r&&r.focus(),e.preventDefault()}onArrowUpKey(e){if(!this.isEnabled())return;let n=e.currentTarget,r=this.findPrevSelectableRow(n);r&&r.focus(),e.preventDefault()}onEnterKey(e){this.isEnabled()&&this.dt.handleRowClick({originalEvent:e,rowData:this.data,rowIndex:this.index})}onEndKey(e){let n=this.findLastSelectableRow();if(n&&this.focusRowChange(this.el.nativeElement,n),e.ctrlKey&&e.shiftKey){let r=this.dt.dataToRender(this.dt.rows),o=b.getAttribute(n,"index");this.dt.anchorRowIndex=o,this.dt.selection=r.slice(this.index,r.length),this.dt.selectRange(e,this.index)}e.preventDefault()}onHomeKey(e){let n=this.findFirstSelectableRow();if(n&&this.focusRowChange(this.el.nativeElement,n),e.ctrlKey&&e.shiftKey){let r=this.dt.dataToRender(this.dt.rows),o=b.getAttribute(n,"index");this.dt.anchorRowIndex=this.dt.anchorRowIndex||o,this.dt.selection=r.slice(0,this.index+1),this.dt.selectRange(e,this.index)}e.preventDefault()}onSpaceKey(e){if(!(e.target instanceof HTMLInputElement||e.target instanceof HTMLSelectElement||e.target instanceof HTMLTextAreaElement)){if(this.onEnterKey(e),e.shiftKey&&this.dt.selection!==null){let r=this.dt.dataToRender(this.dt.rows),o;if(k.isNotEmpty(this.dt.selection)&&this.dt.selection.length>0){let s,a;s=k.findIndexInList(this.dt.selection[0],r),a=k.findIndexInList(this.dt.selection[this.dt.selection.length-1],r),o=this.index<=s?a:s}else o=k.findIndexInList(this.dt.selection,r);this.dt.anchorRowIndex=o,this.dt.selection=o!==this.index?r.slice(Math.min(o,this.index),Math.max(o,this.index)+1):[this.data],this.dt.selectRange(e,this.index)}e.preventDefault()}}focusRowChange(e,n){e.tabIndex="-1",n.tabIndex="0",b.focus(n)}findLastSelectableRow(){let e=b.find(this.dt.el.nativeElement,".p-selectable-row");return e?e[e.length-1]:null}findFirstSelectableRow(){return b.findSingle(this.dt.el.nativeElement,".p-selectable-row")}findNextSelectableRow(e){let n=e.nextElementSibling;return n?b.hasClass(n,"p-selectable-row")?n:this.findNextSelectableRow(n):null}findPrevSelectableRow(e){let n=e.previousElementSibling;return n?b.hasClass(n,"p-selectable-row")?n:this.findPrevSelectableRow(n):null}isEnabled(){return this.pSelectableRowDisabled!==!0}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(x(qn),x(fs),x(_e))};static \u0275dir=$e({type:t,selectors:[["","pSelectableRow",""]],hostAttrs:[1,"p-element"],hostVars:7,hostBindings:function(n,r){n&1&&E("click",function(s){return r.onClick(s)})("touchend",function(s){return r.onTouchEnd(s)})("keydown",function(s){return r.onKeyDown(s)}),n&2&&(w("tabindex",r.setRowTabIndex())("data-p-highlight",r.selected)("data-p-selectable-row",!0),Ot("p-selectable-row",r.isEnabled())("p-highlight",r.selected))},inputs:{data:[C.None,"pSelectableRow","data"],index:[C.None,"pSelectableRowIndex","index"],pSelectableRowDisabled:[C.HasDecoratorInputTransform,"pSelectableRowDisabled","pSelectableRowDisabled",T]},features:[fe]})}return t})();var Fb=(()=>{class t{dt;tableService;cd;disabled;value;index;inputId;name;required;ariaLabel;checked;focused;subscription;constructor(e,n,r){this.dt=e,this.tableService=n,this.cd=r,this.subscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.checked=this.dt.isSelected(this.value),this.ariaLabel=this.ariaLabel||this.dt.config.translation.aria?this.checked?this.dt.config.translation.aria.selectRow:this.dt.config.translation.aria.unselectRow:void 0,this.cd.markForCheck()})}ngOnInit(){this.checked=this.dt.isSelected(this.value)}onClick(e){this.disabled||this.dt.toggleRowWithCheckbox({originalEvent:e,rowIndex:this.index},this.value),b.clearSelection()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(x(qn),x(fs),x(ce))};static \u0275cmp=P({type:t,selectors:[["p-tableCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],value:"value",index:[C.HasDecoratorInputTransform,"index","index",Q],inputId:"inputId",name:"name",required:[C.HasDecoratorInputTransform,"required","required",T],ariaLabel:"ariaLabel"},features:[fe],decls:7,vars:18,consts:[["box",""],[1,"p-checkbox","p-component",3,"click","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"focus","blur","checked","disabled","tabindex"],[3,"ngClass"],[4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){if(n&1){let o=F();m(0,"div",1),E("click",function(a){return y(o),v(r.onClick(a))}),m(1,"div",2)(2,"input",3),E("focus",function(){return y(o),v(r.onFocus())})("blur",function(){return y(o),v(r.onBlur())}),g()(),m(3,"div",4,0),f(5,u9,2,1,"ng-container",5)(6,h9,2,4,"span",5),g()()}n&2&&(c("ngClass",we(11,Eb,r.focused,r.disabled)),p(2),c("checked",r.checked)("disabled",r.disabled)("tabindex",r.disabled?null:"0"),w("id",r.inputId)("name",r.name)("required",r.required)("aria-label",r.ariaLabel),p(),c("ngClass",lt(14,l9,r.checked,r.focused,r.disabled)),p(2),c("ngIf",!r.dt.checkboxIconTemplate),p(),c("ngIf",r.dt.checkboxIconTemplate))},dependencies:()=>[Oe,Ce,Ae,Vt],encapsulation:2,changeDetection:0})}return t})(),Ab=(()=>{class t{dt;tableService;cd;disabled;inputId;name;ariaLabel;checked;focused;selectionChangeSubscription;valueChangeSubscription;constructor(e,n,r){this.dt=e,this.tableService=n,this.cd=r,this.valueChangeSubscription=this.dt.tableService.valueSource$.subscribe(()=>{this.checked=this.updateCheckedState(),this.ariaLabel=this.ariaLabel||this.dt.config.translation.aria?this.checked?this.dt.config.translation.aria.selectAll:this.dt.config.translation.aria.unselectAll:void 0}),this.selectionChangeSubscription=this.dt.tableService.selectionSource$.subscribe(()=>{this.checked=this.updateCheckedState()})}ngOnInit(){this.checked=this.updateCheckedState()}onClick(e){this.disabled||this.dt.value&&this.dt.value.length>0&&this.dt.toggleRowsWithCheckbox(e,!this.checked),b.clearSelection()}onFocus(){this.focused=!0}onBlur(){this.focused=!1}isDisabled(){return this.disabled||!this.dt.value||!this.dt.value.length}ngOnDestroy(){this.selectionChangeSubscription&&this.selectionChangeSubscription.unsubscribe(),this.valueChangeSubscription&&this.valueChangeSubscription.unsubscribe()}updateCheckedState(){if(this.cd.markForCheck(),this.dt._selectAll!==null)return this.dt._selectAll;{let e=this.dt.selectionPageOnly?this.dt.dataToRender(this.dt.processedData):this.dt.processedData,n=this.dt.frozenValue?[...this.dt.frozenValue,...e]:e,r=this.dt.rowSelectable?n.filter((o,s)=>this.dt.rowSelectable({data:o,index:s})):n;return k.isNotEmpty(r)&&k.isNotEmpty(this.dt.selection)&&r.every(o=>this.dt.selection.some(s=>this.dt.equals(o,s)))}}static \u0275fac=function(n){return new(n||t)(x(qn),x(fs),x(ce))};static \u0275cmp=P({type:t,selectors:[["p-tableHeaderCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],inputId:"inputId",name:"name",ariaLabel:"ariaLabel"},features:[fe],decls:8,vars:17,consts:[["cb",""],["box",""],[1,"p-checkbox","p-component",3,"click","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"focus","blur","tabindex","checked","disabled"],[3,"ngClass"],[4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){if(n&1){let o=F();m(0,"div",2),E("click",function(a){return y(o),v(r.onClick(a))}),m(1,"div",3)(2,"input",4,0),E("focus",function(){return y(o),v(r.onFocus())})("blur",function(){return y(o),v(r.onBlur())}),g()(),m(4,"div",5,1),f(6,g9,2,1,"ng-container",6)(7,v9,2,4,"span",7),g()()}n&2&&(c("ngClass",we(10,Eb,r.focused,r.isDisabled())),p(2),c("tabindex",r.disabled?null:"0")("checked",r.checked)("disabled",r.isDisabled()),w("id",r.inputId)("name",r.name)("aria-label",r.ariaLabel),p(2),c("ngClass",lt(13,f9,r.checked,r.focused,r.isDisabled())),p(2),c("ngIf",!r.dt.headerCheckboxIconTemplate),p(),c("ngIf",r.dt.headerCheckboxIconTemplate))},dependencies:()=>[Oe,Ce,Ae,Vt],encapsulation:2,changeDetection:0})}return t})();var Ym=(()=>{class t{document;el;dt;renderer;config;overlayService;cd;field;type="text";display="row";showMenu=!0;matchMode;operator=rs.AND;showOperator=!0;showClearButton=!0;showApplyButton=!0;showMatchModes=!0;showAddButton=!0;hideOnClear=!1;placeholder;matchModeOptions;maxConstraints=2;minFractionDigits;maxFractionDigits;prefix;suffix;locale;localeMatcher;currency;currencyDisplay;useGrouping=!0;showButtons=!0;ariaLabel;icon;clearButtonViewChild;templates;overlaySubscription;headerTemplate;filterTemplate;footerTemplate;filterIconTemplate;removeRuleIconTemplate;addRuleIconTemplate;clearFilterIconTemplate;operatorOptions;overlayVisible;overlay;scrollHandler;documentClickListener;documentResizeListener;matchModes;translationSubscription;resetSubscription;selfClick;overlayEventListener;window;overlayId;get fieldConstraints(){return this.dt.filters?this.dt.filters[this.field]:null}get showRemoveIcon(){return this.fieldConstraints?this.fieldConstraints.length>1:!1}get showMenuButton(){return this.showMenu&&(this.display==="row"?this.type!=="boolean":!0)}get isShowOperator(){return this.showOperator&&this.type!=="boolean"}get isShowAddConstraint(){return this.showAddButton&&this.type!=="boolean"&&this.fieldConstraints&&this.fieldConstraints.length<this.maxConstraints}get showMenuButtonLabel(){return this.config.getTranslation(ze.SHOW_FILTER_MENU)}get applyButtonLabel(){return this.config.getTranslation(ze.APPLY)}get clearButtonLabel(){return this.config.getTranslation(ze.CLEAR)}get addRuleButtonLabel(){return this.config.getTranslation(ze.ADD_RULE)}get removeRuleButtonLabel(){return this.config.getTranslation(ze.REMOVE_RULE)}get noFilterLabel(){return this.config.getTranslation(ze.NO_FILTER)}get filterMenuButtonAriaLabel(){return this.config.translation?this.overlayVisible?this.config.translation.aria.hideFilterMenu:this.config.translation.aria.showFilterMenu:void 0}get removeRuleButtonAriaLabel(){return this.config.translation?this.config.translation.removeRule:void 0}get filterOperatorAriaLabel(){return this.config.translation?this.config.translation.aria.filterOperator:void 0}get filterConstraintAriaLabel(){return this.config.translation?this.config.translation.aria.filterConstraint:void 0}constructor(e,n,r,o,s,a,l){this.document=e,this.el=n,this.dt=r,this.renderer=o,this.config=s,this.overlayService=a,this.cd=l,this.window=this.document.defaultView}ngOnInit(){this.overlayId=me(),this.dt.filters[this.field]||this.initFieldFilterConstraint(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.generateMatchModeOptions(),this.generateOperatorOptions()}),this.generateMatchModeOptions(),this.generateOperatorOptions()}generateMatchModeOptions(){this.matchModes=this.matchModeOptions||this.config.filterMatchModeOptions[this.type]?.map(e=>({label:this.config.getTranslation(e),value:e}))}generateOperatorOptions(){this.operatorOptions=[{label:this.config.getTranslation(ze.MATCH_ALL),value:rs.AND},{label:this.config.getTranslation(ze.MATCH_ANY),value:rs.OR}]}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"clearfiltericon":this.clearFilterIconTemplate=e.template;break;case"removeruleicon":this.removeRuleIconTemplate=e.template;break;case"addruleicon":this.addRuleIconTemplate=e.template;break;default:this.filterTemplate=e.template;break}})}initFieldFilterConstraint(){let e=this.getDefaultMatchMode();this.dt.filters[this.field]=this.display=="row"?{value:null,matchMode:e}:[{value:null,matchMode:e,operator:this.operator}]}onMenuMatchModeChange(e,n){n.matchMode=e,this.showApplyButton||this.dt._filter()}onRowMatchModeChange(e){this.dt.filters[this.field].matchMode=e,this.dt._filter(),this.hide()}onRowMatchModeKeyDown(e){let n=e.target;switch(e.key){case"ArrowDown":var r=this.findNextItem(n);r&&(n.removeAttribute("tabindex"),r.tabIndex="0",r.focus()),e.preventDefault();break;case"ArrowUp":var o=this.findPrevItem(n);o&&(n.removeAttribute("tabindex"),o.tabIndex="0",o.focus()),e.preventDefault();break}}onRowClearItemClick(){this.clearFilter(),this.hide()}isRowMatchModeSelected(e){return this.dt.filters[this.field].matchMode===e}addConstraint(){this.dt.filters[this.field].push({value:null,matchMode:this.getDefaultMatchMode(),operator:this.getDefaultOperator()}),b.focus(this.clearButtonViewChild.nativeElement)}removeConstraint(e){this.dt.filters[this.field]=this.dt.filters[this.field].filter(n=>n!==e),this.showApplyButton||this.dt._filter(),b.focus(this.clearButtonViewChild.nativeElement)}onOperatorChange(e){this.dt.filters[this.field].forEach(n=>{n.operator=e,this.operator=e}),this.showApplyButton||this.dt._filter()}toggleMenu(){this.overlayVisible=!this.overlayVisible}onToggleButtonKeyDown(e){switch(e.key){case"Escape":case"Tab":this.overlayVisible=!1;break;case"ArrowDown":if(this.overlayVisible){let n=b.getFocusableElements(this.overlay);n&&n[0].focus(),e.preventDefault()}else e.altKey&&(this.overlayVisible=!0,e.preventDefault());break;case"Enter":this.toggleMenu(),e.preventDefault();break}}onEscape(){this.overlayVisible=!1,this.icon?.nativeElement.focus()}findNextItem(e){let n=e.nextElementSibling;return n?b.hasClass(n,"p-column-filter-separator")?this.findNextItem(n):n:e.parentElement?.firstElementChild}findPrevItem(e){let n=e.previousElementSibling;return n?b.hasClass(n,"p-column-filter-separator")?this.findPrevItem(n):n:e.parentElement?.lastElementChild}onContentClick(){this.selfClick=!0}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.overlay=e.element,this.renderer.appendChild(this.document.body,this.overlay),qe.set("overlay",this.overlay,this.config.zIndex.overlay),b.absolutePosition(this.overlay,this.icon?.nativeElement),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.overlayEventListener=n=>{this.overlay&&this.overlay.contains(n.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener);break;case"void":this.onOverlayHide(),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.focusOnFirstElement();break;case"void":qe.clear(e.element);break}}focusOnFirstElement(){this.overlay&&b.focus(b.getFirstFocusableElement(this.overlay,""))}getDefaultMatchMode(){return this.matchMode?this.matchMode:this.type==="text"?kt.STARTS_WITH:this.type==="numeric"?kt.EQUALS:this.type==="date"?kt.DATE_IS:kt.CONTAINS}getDefaultOperator(){return this.dt.filters?this.dt.filters[this.field][0].operator:this.operator}hasRowFilter(){return this.dt.filters[this.field]&&!this.dt.isFilterBlank(this.dt.filters[this.field].value)}hasFilter(){let e=this.dt.filters[this.field];return e?Array.isArray(e)?!this.dt.isFilterBlank(e[0].value):!this.dt.isFilterBlank(e.value):!1}isOutsideClicked(e){return!(b.hasClass(this.overlay?.nextElementSibling,"p-overlay")||this.overlay?.isSameNode(e.target)||this.overlay?.contains(e.target)||this.icon?.nativeElement.isSameNode(e.target)||this.icon?.nativeElement.contains(e.target)||b.hasClass(e.target,"p-column-filter-add-button")||b.hasClass(e.target.parentElement,"p-column-filter-add-button")||b.hasClass(e.target,"p-column-filter-remove-button")||b.hasClass(e.target.parentElement,"p-column-filter-remove-button"))}bindDocumentClickListener(){if(!this.documentClickListener){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"mousedown",n=>{let r=document.querySelectorAll('[role="dialog"]'),o=n.target.closest(".p-column-filter-menu-button");this.overlayVisible&&this.isOutsideClicked(n)&&(o||r?.length<=1)&&this.hide(),this.selfClick=!1})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.window,"resize",e=>{this.overlayVisible&&!b.isTouchDevice()&&this.hide()}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Cn(this.icon?.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}clearFilter(){this.initFieldFilterConstraint(),this.dt._filter(),this.hideOnClear&&this.hide()}applyFilter(){this.dt._filter(),this.hide()}ngOnDestroy(){this.overlay&&(this.renderer.appendChild(this.el.nativeElement,this.overlay),qe.clear(this.overlay),this.onOverlayHide()),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.resetSubscription&&this.resetSubscription.unsubscribe(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(x(Se),x(_e),x(qn),x(Be),x(ot),x(un),x(ce))};static \u0275cmp=P({type:t,selectors:[["p-columnFilter"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(C9,5),Z(b9,5)),n&2){let o;j(o=z())&&(r.icon=o.first),j(o=z())&&(r.clearButtonViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",display:"display",showMenu:[C.HasDecoratorInputTransform,"showMenu","showMenu",T],matchMode:"matchMode",operator:"operator",showOperator:[C.HasDecoratorInputTransform,"showOperator","showOperator",T],showClearButton:[C.HasDecoratorInputTransform,"showClearButton","showClearButton",T],showApplyButton:[C.HasDecoratorInputTransform,"showApplyButton","showApplyButton",T],showMatchModes:[C.HasDecoratorInputTransform,"showMatchModes","showMatchModes",T],showAddButton:[C.HasDecoratorInputTransform,"showAddButton","showAddButton",T],hideOnClear:[C.HasDecoratorInputTransform,"hideOnClear","hideOnClear",T],placeholder:"placeholder",matchModeOptions:"matchModeOptions",maxConstraints:[C.HasDecoratorInputTransform,"maxConstraints","maxConstraints",Q],minFractionDigits:[C.HasDecoratorInputTransform,"minFractionDigits","minFractionDigits",e=>Q(e,null)],maxFractionDigits:[C.HasDecoratorInputTransform,"maxFractionDigits","maxFractionDigits",e=>Q(e,null)],prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:[C.HasDecoratorInputTransform,"useGrouping","useGrouping",T],showButtons:[C.HasDecoratorInputTransform,"showButtons","showButtons",T],ariaLabel:"ariaLabel"},features:[fe],decls:5,vars:8,consts:[["icon",""],["menu",""],["clearBtn",""],[1,"p-column-filter",3,"ngClass"],["class","p-fluid",3,"type","field","ariaLabel","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping","showButtons",4,"ngIf"],["type","button","class","p-column-filter-menu-button p-link","aria-haspopup","true",3,"ngClass","click","keydown",4,"ngIf"],["type","button","class","p-column-filter-clear-button p-link",3,"ngClass","click",4,"ngIf"],["role","dialog",3,"ngClass","id","click","keydown.escape",4,"ngIf"],[1,"p-fluid",3,"type","field","ariaLabel","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping","showButtons"],["type","button","aria-haspopup","true",1,"p-column-filter-menu-button","p-link",3,"click","keydown","ngClass"],[3,"styleClass",4,"ngIf"],["class","pi-filter-icon",4,"ngIf"],[3,"styleClass"],[1,"pi-filter-icon"],[4,"ngTemplateOutlet"],["type","button",1,"p-column-filter-clear-button","p-link",3,"click","ngClass"],[4,"ngIf"],["role","dialog",3,"click","keydown.escape","ngClass","id"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-column-filter-row-items",4,"ngIf","ngIfElse"],[1,"p-column-filter-row-items"],["class","p-column-filter-row-item",3,"ngClass","click","keydown","keydown.enter",4,"ngFor","ngForOf"],[1,"p-column-filter-separator"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter"],[1,"p-column-filter-row-item",3,"click","keydown","keydown.enter","ngClass"],["class","p-column-filter-operator",4,"ngIf"],[1,"p-column-filter-constraints"],["class","p-column-filter-constraint",4,"ngFor","ngForOf"],["class","p-column-filter-add-rule",4,"ngIf"],[1,"p-column-filter-buttonbar"],["type","button","pButton","","class","p-button-outlined p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["type","button","pButton","","class","p-button-sm","pRipple","",3,"label","click",4,"ngIf"],[1,"p-column-filter-operator"],["styleClass","p-column-filter-operator-dropdown",3,"ngModelChange","options","ngModel"],[1,"p-column-filter-constraint"],["styleClass","p-column-filter-matchmode-dropdown",3,"options","ngModel","ngModelChange",4,"ngIf"],[3,"type","field","filterConstraint","filterTemplate","placeholder","minFractionDigits","maxFractionDigits","prefix","suffix","locale","localeMatcher","currency","currencyDisplay","useGrouping"],["type","button","pButton","","class","p-column-filter-remove-button p-button-text p-button-danger p-button-sm","pRipple","",3,"label","click",4,"ngIf"],["styleClass","p-column-filter-matchmode-dropdown",3,"ngModelChange","options","ngModel"],["type","button","pButton","","pRipple","",1,"p-column-filter-remove-button","p-button-text","p-button-danger","p-button-sm",3,"click","label"],[1,"p-column-filter-add-rule"],["type","button","pButton","","pRipple","",1,"p-column-filter-add-button","p-button-text","p-button-sm",3,"click","label"],["type","button","pButton","","pRipple","",1,"p-button-outlined","p-button-sm",3,"click","label"],["type","button","pButton","","pRipple","",1,"p-button-sm",3,"click","label"]],template:function(n,r){n&1&&(m(0,"div",3),f(1,D9,1,16,"p-columnFilterFormElement",4)(2,F9,4,9,"button",5)(3,N9,4,6,"button",6)(4,t8,6,16,"div",7),g()),n&2&&(c("ngClass",we(5,w9,r.display==="row",r.display==="menu")),p(),c("ngIf",r.display==="row"),p(),c("ngIf",r.showMenuButton),p(),c("ngIf",r.showClearButton&&r.display==="row"),p(),c("ngIf",r.showMenu&&r.overlayVisible))},dependencies:()=>[Oe,Ct,Ce,Ae,qi,$i,vn,bn,Nm,Vm,Pm,zm,d8],encapsulation:2,data:{animation:[en("overlayAnimation",[ft(":enter",[Je({opacity:0,transform:"scaleY(0.8)"}),vt(".12s cubic-bezier(0, 0, 0.2, 1)")]),ft(":leave",[vt(".1s linear",Je({opacity:0}))])])]}})}return t})(),d8=(()=>{class t{dt;colFilter;field;type;filterConstraint;filterTemplate;placeholder;minFractionDigits;maxFractionDigits;prefix;suffix;locale;localeMatcher;currency;currencyDisplay;useGrouping=!0;ariaLabel;get showButtons(){return this.colFilter.showButtons}filterCallback;constructor(e,n){this.dt=e,this.colFilter=n}ngOnInit(){this.filterCallback=e=>{this.filterConstraint.value=e,this.dt._filter()}}onModelChange(e){this.filterConstraint.value=e,(this.type==="date"||this.type==="boolean"||e==="")&&this.dt._filter()}onTextInputEnterKeyDown(e){this.dt._filter(),e.preventDefault()}onNumericInputKeyDown(e){e.key==="Enter"&&(this.dt._filter(),e.preventDefault())}static \u0275fac=function(n){return new(n||t)(x(qn),x(Ym))};static \u0275cmp=P({type:t,selectors:[["p-columnFilterFormElement"]],hostAttrs:[1,"p-element"],inputs:{field:"field",type:"type",filterConstraint:"filterConstraint",filterTemplate:"filterTemplate",placeholder:"placeholder",minFractionDigits:[C.HasDecoratorInputTransform,"minFractionDigits","minFractionDigits",e=>Q(e,null)],maxFractionDigits:[C.HasDecoratorInputTransform,"maxFractionDigits","maxFractionDigits",e=>Q(e,null)],prefix:"prefix",suffix:"suffix",locale:"locale",localeMatcher:"localeMatcher",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:[C.HasDecoratorInputTransform,"useGrouping","useGrouping",T],ariaLabel:"ariaLabel"},features:[fe],decls:3,vars:2,consts:[["builtInElement",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["type","text","pInputText","",3,"ariaLabel","value","input","keydown.enter",4,"ngSwitchCase"],[3,"ngModel","showButtons","minFractionDigits","maxFractionDigits","ariaLabel","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping","ngModelChange","onKeyDown",4,"ngSwitchCase"],[3,"ariaLabel","ngModel","ngModelChange",4,"ngSwitchCase"],["appendTo","body",3,"ariaLabel","placeholder","ngModel","ngModelChange",4,"ngSwitchCase"],["type","text","pInputText","",3,"input","keydown.enter","ariaLabel","value"],[3,"ngModelChange","onKeyDown","ngModel","showButtons","minFractionDigits","maxFractionDigits","ariaLabel","prefix","suffix","placeholder","mode","locale","localeMatcher","currency","currencyDisplay","useGrouping"],[3,"ngModelChange","ariaLabel","ngModel"],["appendTo","body",3,"ngModelChange","ariaLabel","placeholder","ngModel"]],template:function(n,r){if(n&1&&f(0,r8,2,19,"ng-container",1)(1,c8,5,5,"ng-template",null,0,it),n&2){let o=Ee(2);c("ngIf",r.filterTemplate)("ngIfElse",o)}},dependencies:[Ce,Ae,Ah,Av,Sa,$i,vn,br,oo,Qm],encapsulation:2})}return t})(),Eu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,wb,Gn,Ki,ai,Yt,Ib,vu,Da,xb,Wn,Rm,Lm,Un,Hm,jm,Bm,Vt,Nm,Vm,Pm,zm,ke,Wn]})}return t})();var xr=(()=>{let i=class i{constructor(n){this.messageService=n}showError(n){this.messageService.add({severity:"error",summary:"error",detail:n})}showSuccess(n){this.messageService.add({severity:"success",summary:"Success",detail:n})}};i.\u0275fac=function(r){return new(r||i)(Y(_r))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var dn=function(t){return t.MONGO_DB="MONGO_DB",t.MYSQL_DB="MYSQL_DB",t.MARIA_DB="MARIA_DB",t.SQL_SERVER_DB="SQL_SERVER_DB",t.POSTGRE_SQL_DB="POSTGRE_SQL_DB",t.ORACLE_DB="ORACLE_DB",t.AZURE_DB="AZURE_DB",t.AMAZON_REDSHIFT_DB="AMAZON_REDSHIFT_DB",t.DB2_DB="DB2_DB",t.H2_DB="H2_DB",t.SYBASE_DB="SYBASE_DB",t.EXASOL_DB="EXASOL_DB",t.APACHE_DERBY_DB="APACHE_DERBY_DB",t.HYPER_SQL_DB="HYPER_SQL_DB",t.CLICK_HOUSE_DB="CLICK_HOUSE_DB",t.CASSANDRA_DB="CASSANDRA_DB",t.VERTICA_DB="VERTICA_DB",t.GREENPLUM_DB="GREENPLUM_DB",t.APACHE_HIVE_DB="APACHE_HIVE_DB",t.SNOWFLAKE_DB="SNOWFLAKE_DB",t}(dn||{});var ms=(()=>{let i=class i{constructor(n){this.msgWrapperService=n,this.userTimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.userDateFormat="dd-MM-yyyy hh:mm:ss a",this.userDateFormatPrimeNG="dd-mm-yy"}applyGlobalFilterForServerSidePagination(n,r,o,s){if(!n.grid?.pagination?.serverSidePagination||!o||!o.filters?.global)return;let a=o.filters?.global;if(a.matchMode==="contains"){s.find.$or=[];for(let l of n.grid.filter?.globalSearchFields||[]){let u=this.getTypeBasedOnSchema(r,l),h=this.getValueInType(a.value,u);h&&(u===tn.string?this.pushContainsQueryInArray(r,l,a,s.find.$or):u===tn.number&&s.find.$or.push({[l]:h}))}}}applyNormalFilterForServerSidePagination(n,r,o,s){let a=[];if(n.grid?.pagination?.serverSidePagination&&o){for(let l in o.filters){let u=o.filters[l];if(!this.isValuePresent(u.value))continue;let h=this.getTypeBasedOnSchema(r,l),_=n.grid.fields?.filter(I=>I.path===l);h===tn.string?(this.pushEqualsQueryInArray(r,l,u,a),this.pushNotEqualsQueryInArray(r,l,u,a),this.pushContainsQueryInArray(r,l,u,a),this.pushNotContainsQueryInArray(r,l,u,a),this.pushStartsWithQueryInArray(r,l,u,a),this.pushEndsWithQueryInArray(r,l,u,a)):h===tn.number?(this.pushEqualsQueryInArray(r,l,u,a),this.pushNotEqualsQueryInArray(r,l,u,a),this.pushLTQueryInArray(r,l,u,a),this.pushLTEQueryInArray(r,l,u,a),this.pushGTQueryInArray(r,l,u,a),this.pushGTEQueryInArray(r,l,u,a)):h===tn.boolean?(this.pushContainsQueryInArrayForBoolean(r,l,u,a),this.pushEqualsQueryInArray(r,l,u,a),this.pushNotEqualsQueryInArray(r,l,u,a)):h===tn.date&&(this.pushDateIsQueryInArray(n,r,_,l,u,a),this.pushDateIsNotQueryInArray(n,r,_,l,u,a),this.pushDateBeforeQueryInArray(n,r,_,l,u,a),this.pushDateAfterQueryInArray(n,r,_,l,u,a))}a.length&&(s.find.$and=a)}}pushEqualsQueryInArray(n,r,o,s){o.matchMode===nn.equals&&s.push({[r]:o.value})}pushNotEqualsQueryInArray(n,r,o,s){o.matchMode===nn.notEquals&&s.push({[r]:{$ne:o.value}})}pushLTQueryInArray(n,r,o,s){o.matchMode===nn.lt&&s.push({[r]:{$lt:o.value}})}pushLTEQueryInArray(n,r,o,s){o.matchMode===nn.lte&&s.push({[r]:{$lte:o.value}})}pushGTQueryInArray(n,r,o,s){o.matchMode===nn.gt&&s.push({[r]:{$gt:o.value}})}pushGTEQueryInArray(n,r,o,s){o.matchMode===nn.gte&&s.push({[r]:{$gte:o.value}})}pushContainsQueryInArray(n,r,o,s){o.matchMode===nn.contains&&(n.instanceFull.type===dn.MONGO_DB?s.push({[r]:{$regex:`/(${o.value})/ig`}}):this.isSQL_DB(n)&&s.push({[r]:{$like:`%${o.value}%`}}))}pushContainsQueryInArrayForBoolean(n,r,o,s){o.matchMode===nn.contains&&s.push({[r]:o.value})}pushNotContainsQueryInArray(n,r,o,s){o.matchMode===nn.notContains&&(n.instanceFull.type===dn.MONGO_DB?s.push({[r]:{$not:{$regex:`/(${o.value})/ig`}}}):this.isSQL_DB(n)&&s.push({[r]:{$not:{$like:`%${o.value}%`}}}))}pushStartsWithQueryInArray(n,r,o,s){o.matchMode===nn.startsWith&&(n.instanceFull.type===dn.MONGO_DB?s.push({[r]:{$regex:`/^(${o.value})/ig`}}):this.isSQL_DB(n)&&s.push({[r]:{$like:`${o.value}%`}}))}pushEndsWithQueryInArray(n,r,o,s){o.matchMode===nn.endsWith&&(n.instanceFull.type===dn.MONGO_DB?s.push({[r]:{$regex:`/(${o.value})$/ig`}}):this.isSQL_DB(n)&&s.push({[r]:{$like:`%${o.value}`}}))}pushDateIsQueryInArray(n,r,o,s,a,l){if(a.matchMode!==nn.dateIs)return;let u=a.value,h=dateFnsTz.toZonedTime(u,o.dateTimeZone||n.dateTimeZone||this.userTimeZone);r.instanceFull.type===dn.MONGO_DB?l.push({[s]:{$lte:dateFns.endOfDay(h),$gte:dateFns.startOfDay(h)}}):this.isSQL_DB(r)&&(l.push({[s]:{$lte:dateFns.endOfDay(h)}}),l.push({[s]:{$gte:dateFns.startOfDay(h)}}))}pushDateIsNotQueryInArray(n,r,o,s,a,l){if(a.matchMode!==nn.dateIsNot)return;let u=a.value,h=dateFnsTz.toZonedTime(u,o.dateTimeZone||n.dateTimeZone||this.userTimeZone);r.instanceFull.type===dn.MONGO_DB?l.push({[s]:{$not:{$gte:dateFns.startOfDay(h),$lte:dateFns.endOfDay(h)}}}):this.isSQL_DB(r)&&this.msgWrapperService.showError("'Date is not' is not supported in SQL database types.")}pushDateBeforeQueryInArray(n,r,o,s,a,l){if(a.matchMode!==nn.dateBefore)return;let u=a.value,h=dateFnsTz.toZonedTime(u,o.dateTimeZone||n.dateTimeZone||this.userTimeZone);r.instanceFull.type===dn.MONGO_DB?l.push({[s]:{$lt:dateFns.startOfDay(h)}}):this.isSQL_DB(r)&&l.push({[s]:{$lt:dateFns.startOfDay(h)}})}pushDateAfterQueryInArray(n,r,o,s,a,l){if(a.matchMode!==nn.dateAfter)return;let u=a.value,h=dateFnsTz.toZonedTime(u,o.dateTimeZone||n.dateTimeZone||this.userTimeZone);r.instanceFull.type===dn.MONGO_DB?l.push({[s]:{$gt:dateFns.endOfDay(h)}}):this.isSQL_DB(r)&&l.push({[s]:{$gt:dateFns.endOfDay(h)}})}isSQL_DB(n){return n.instanceFull.type===dn.MYSQL_DB||n.instanceFull.type===dn.MARIA_DB||n.instanceFull.type===dn.SQL_SERVER_DB||n.instanceFull.type===dn.POSTGRE_SQL_DB||n.instanceFull.type===dn.ORACLE_DB}isValuePresent(n){return n!==null&&typeof n<"u"&&n!==""}getTypeBasedOnSchema(n,r){let o=this.getSchemaProperty(n,r),s;return typeof o=="string"?s=o:typeof o=="object"&&(Array.isArray(o)?(typeof o[0]=="string"?s=o[0]:o[0],s=o[0].__type):s=o.__type),s}getSchemaProperty(n,r){return n.properties[r]}getValueInType(n,r){return r===tn.string?n.toString():r===tn.number?Number(n):void 0}};i.\u0275fac=function(r){return new(r||i)(Y(xr))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Lb=(()=>{let _LoadFormDataService=class _LoadFormDataService{constructor(t,i,e){this.apisService=t,this.msgWrapperService=i,this.filterServiceForDB=e}loadDropdownData(t,i,e,n,r,o,s){return Ge(this,null,function*(){for(let a of e?.form?.fields||[])for(let l of a)if(l.path){if(!l.dropdownSettings?.alwaysGetLatestDataOnFormOpen&&r[l.path])return;l.control===ls.dropdown&&l.dropdownSettings?.dataSource==="db_data"?this.loadDropdownDataAPICall(t,i,l,n,r,o,s).then():l.control===ls.dropdown&&l.dropdownSettings?.dataSource==="static_data"&&this.loadDropdownDataFromStaticArray(t,l,r,o).then()}})}loadDropdownDataAPICall(t,i,e,n,r,o,s){return Ge(this,null,function*(){let a=this.filterServiceForDB.getSchemaProperty(n,e.path),l=typeof a=="object"?a:void 0,u=e.dropdownSettings?.dbData?.instance||l.instance||n.instanceName,h=e.dropdownSettings?.dbData?.database||l.database||n.databaseName,_=e.dropdownSettings?.dbData?.collection||e.dropdownSettings?.dbData?.table||l.collection||l.table||n.collectionName;if(!_)return this.msgWrapperService.showError(`Please provide 'collection' value for '${e.path}' field in 'dropdownSettings' \u2192 'dbData'.`);o[e.path]=!0;try{let I=yield this.apisService.getDataForDropdown(i,u,h,_,s,{find:e.dropdownSettings?.dbData?.find,select:e.dropdownSettings?.dbData?.select,limit:e.dropdownSettings?.dbData?.limit});r[e.path]=I.data,yield this.runCustomJSOnceDropdownDataLoaded(e,r[e.path])}catch(I){this.apisService.showErrorFromResponse(I?.error||I,`Unable to load dropdown data for '${e.path}'.`)}o[e.path]=!1,t.detectChanges()})}setOffsetHeight(t,i){setTimeout(()=>{let e=i.getElementsByTagName("p-dropdownitem")[0];t.dropdownItemHeight=e.offsetHeight,t.cd.detectChanges()},300)}loadDropdownDataFromStaticArray(t,i,e,n){return Ge(this,null,function*(){n[i.path]=!0;try{i.dropdownSettings=i.dropdownSettings||{};let r=i.dropdownSettings?.staticData||[];yield this.runCustomJSOnceDropdownDataLoaded(i,r),e[i.path]=r}catch(r){console.log(r)}n[i.path]=!1,t.detectChanges()})}runCustomJSOnceDropdownDataLoaded(column,dropdownData){return Ge(this,null,function*(){for(let jsCode of column.dropdownSettings?.jsCode||[])if(jsCode.appendTo==="onceDropdownDataLoaded")try{let output=eval(jsCode.code);output instanceof Promise?yield output:output instanceof Function&&output()}catch(t){console.log(t)}})}};_LoadFormDataService.\u0275fac=function(i){return new(i||_LoadFormDataService)(Y(Si),Y(xr),Y(ms))},_LoadFormDataService.\u0275prov=q({token:_LoadFormDataService,factory:_LoadFormDataService.\u0275fac,providedIn:"root"});let LoadFormDataService=_LoadFormDataService;return LoadFormDataService})();var h8=t=>({width:t}),f8=t=>({"mt-4":t}),m8=()=>[],g8=()=>({"min-width":"50rem"});function _8(t,i){if(t&1){let e=F();m(0,"div",10)(1,"input",11),Nt("ngModelChange",function(r){y(e);let o=d().$implicit,s=d(2);return Bt(s.saveFormData[o.path],r)||(s.saveFormData[o.path]=r),v(r)}),g(),m(2,"span",12),K(3),g()()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d().index,s=d();p(),Vi("id","idField_",n.path,""),c("autofocus",o===0&&r===0),Lt("ngModel",s.saveFormData[n.path]),p(2),se(s.errorsMap[n.path]||"")}}function y8(t,i){if(t&1){let e=F();m(0,"div",10)(1,"textarea",13),Nt("ngModelChange",function(r){y(e);let o=d().$implicit,s=d(2);return Bt(s.saveFormData[o.path],r)||(s.saveFormData[o.path]=r),v(r)}),K(2," "),g(),m(3,"span",12),K(4),g()()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d().index,s=d();p(),Vi("id","idField_",n.path,""),c("autofocus",o===0&&r===0),Lt("ngModel",s.saveFormData[n.path]),c("rows",(n.textAreaSettings==null?null:n.textAreaSettings.rows)||"5")("autoResize",n.textAreaSettings==null?null:n.textAreaSettings.autoResize),p(3),se(s.errorsMap[n.path]||"")}}function v8(t,i){if(t&1){let e=F();m(0,"div",10)(1,"p-checkbox",14),Nt("ngModelChange",function(r){y(e);let o=d().$implicit,s=d(2);return Bt(s.saveFormData[o.path],r)||(s.saveFormData[o.path]=r),v(r)}),g()()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d().index,s=d();p(),Vi("inputId","idField_",n.path,""),c("autofocus",o===0&&r===0),Lt("ngModel",s.saveFormData[n.path]),c("binary",!0)}}function C8(t,i){if(t&1){let e=F();m(0,"div",10)(1,"p-calendar",15),Nt("ngModelChange",function(r){y(e);let o=d().$implicit,s=d(2);return Bt(s.saveFormData[o.path],r)||(s.saveFormData[o.path]=r),v(r)}),g(),m(2,"span",12),K(3),g()()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d().index,s=d();p(),Vi("inputId","idField_",n.path,""),c("showIcon",!0)("iconDisplay","input")("appendTo","body")("autofocus",o===0&&r===0)("showTime",(n.datePickerSettings==null?null:n.datePickerSettings.showTime)||!1)("showSeconds",(n.datePickerSettings==null?null:n.datePickerSettings.showSeconds)||!1)("hourFormat",(n.datePickerSettings==null?null:n.datePickerSettings.hourFormat)||"")("dateFormat",n.datePickerSettings==null?null:n.datePickerSettings.dateTimeFormat)("view",(n.datePickerSettings==null?null:n.datePickerSettings.view)||"date"),Lt("ngModel",s.saveFormData[n.path]),p(2),se(s.errorsMap[n.path]||"")}}function b8(t,i){if(t&1){let e=F();m(0,"div",10)(1,"p-colorPicker",16),Nt("ngModelChange",function(r){y(e);let o=d().$implicit,s=d(2);return Bt(s.saveFormData[o.path],r)||(s.saveFormData[o.path]=r),v(r)}),g(),m(2,"span",12),K(3),g()()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d().index,s=d();p(),Vi("inputId","idField_",n.path,""),c("autofocus",o===0&&r===0)("format",(n.colorPickerSettings==null?null:n.colorPickerSettings.format)||"hex"),Lt("ngModel",s.saveFormData[n.path]),p(2),se(s.errorsMap[n.path]||"")}}function w8(t,i){if(t&1&&D(0,"div",20),t&2){let e=i.$implicit,n=d(2).$implicit;c("innerHTML",e[(n.dropdownSettings==null?null:n.dropdownSettings.optionLabel)||"label"],ri)}}function I8(t,i){if(t&1&&D(0,"div",20),t&2){let e=i.$implicit,n=d(2).$implicit;c("innerHTML",e[(n.dropdownSettings==null?null:n.dropdownSettings.optionLabel)||"label"],ri)}}function x8(t,i){if(t&1){let e=F();m(0,"div",10)(1,"p-dropdown",17),Nt("ngModelChange",function(r){y(e);let o=d().$implicit,s=d(2);return Bt(s.saveFormData[o.path],r)||(s.saveFormData[o.path]=r),v(r)}),E("onShow",function(r){let o;y(e);let s=d().$implicit,a=d(2);return v(a.viewDropdownOverlay((o=s==null||s.dropdownSettings==null?null:s.dropdownSettings.virtualScroll)!==null&&o!==void 0?o:!0,r))}),f(2,w8,1,1,"ng-template",18)(3,I8,1,1,"ng-template",19),g()()}if(t&2){let e,n=d(),r=n.$implicit,o=n.index,s=d().index,a=d();p(),Vi("inputId","idField_",r.path,""),c("autofocus",s===0&&o===0),Lt("ngModel",a.saveFormData[r.path]),c("appendTo","body")("options",a.dropdownData[r.path]||Qe(14,m8))("optionValue",(r.dropdownSettings==null?null:r.dropdownSettings.optionValue)||"value")("filter",r.dropdownSettings==null?null:r.dropdownSettings.filter)("filterBy",r.dropdownSettings==null?null:r.dropdownSettings.filterBy)("filterMatchMode",(r.dropdownSettings==null?null:r.dropdownSettings.filterMatchMode)||"contains")("dropdownIcon",a.loadingData[r.path]?"pi pi-spinner pi-spin":"pi pi-chevron-down")("virtualScroll",(e=r==null||r.dropdownSettings==null?null:r.dropdownSettings.virtualScroll)!==null&&e!==void 0?e:!0)("virtualScrollItemSize",a.dropdownItemHeight)("showClear",r.dropdownSettings==null?null:r.dropdownSettings.showClear)}}function T8(t,i){if(t&1&&(m(0,"div")(1,"div",7)(2,"label",8),K(3),g(),f(4,_8,4,5,"div",9)(5,y8,5,7,"div",9)(6,v8,2,5,"div",9)(7,C8,4,13,"div",9)(8,b8,4,6,"div",9)(9,x8,4,15,"div",9),g()()),t&2){let e=i.$implicit,n=d().$implicit,r=d();pv("col-",12/n.length,""),p(2),Vi("for","idField_",e.path,""),p(),se(e.label),p(),c("ngIf",e.control===r.EDBMasterFormControl.input),p(),c("ngIf",e.control===r.EDBMasterFormControl.textarea),p(),c("ngIf",e.control===r.EDBMasterFormControl.checkbox),p(),c("ngIf",e.control===r.EDBMasterFormControl.date_picker),p(),c("ngIf",e.control===r.EDBMasterFormControl.color_picker),p(),c("ngIf",e.control===r.EDBMasterFormControl.dropdown)}}function S8(t,i){if(t&1&&(m(0,"div",5),f(1,T8,10,12,"div",6),g()),t&2){let e=i.$implicit,n=i.index;c("ngClass",U(2,f8,n!==0)),p(),c("ngForOf",e)}}function D8(t,i){t&1&&(m(0,"div",26),K(1," These errors are from field which are not present in this form. "),g())}function E8(t,i){t&1&&(m(0,"tr")(1,"th",27),K(2,"Field"),g(),m(3,"th"),K(4,"Error"),g()())}function M8(t,i){if(t&1&&(m(0,"tr")(1,"td"),K(2),g(),m(3,"td"),K(4),g()()),t&2){let e=i.$implicit;p(2),se(e.field),p(2),se(e.message)}}function O8(t,i){if(t&1&&(m(0,"div",21)(1,"p-table",22),f(2,D8,2,0,"ng-template",23)(3,E8,5,0,"ng-template",24)(4,M8,5,2,"ng-template",25),g()()),t&2){let e=d();p(),c("value",e.otherFieldErrors)("tableStyle",Qe(2,g8))}}function k8(t,i){if(t&1){let e=F();m(0,"p-button",28),E("click",function(){y(e);let r=d();return v(r.isDialogVisible=!1)}),g(),m(1,"p-button",29),E("click",function(){y(e);let r=d();return v(r.saveButtonClicked())}),g()}t&2&&(c("raised",!0),p(),c("raised",!0))}var Nb=(()=>{let i=class i{constructor(n,r,o,s,a){this.confirmationService=n,this.msgWrapper=r,this.apisService=o,this.loadFormDataService=s,this.cd=a,this.schema=void 0,this.dbMaster=void 0,this.config=void 0,this.headers=void 0,this.queryParams=void 0,this.refreshGrid=void 0,this.isDialogVisible=!1,this.saveFormData={},this.errorsMap={},this.otherFieldErrors=[],this.mode="add",this.EDBMasterFormControl=ls,this.autocompleteData={},this.dropdownData={},this.loadingData={},this.dropdownItemHeight=30}ngOnInit(){}addNew(){return Ge(this,null,function*(){this.mode="add",this.isDialogVisible=!0,this.saveFormData={},this.errorsMap={},this.otherFieldErrors=[],yield this.loadFormDataService.loadDropdownData(this.cd,this.queryParams[st.ADMIN_PATH],this.config,this.schema,this.dropdownData,this.loadingData,this.headers)})}edit(n){return Ge(this,null,function*(){this.mode="edit";let r=n[this.apisService.getPKFiled(this.schema)],o=yield this.apisService.getById(this.queryParams[st.ADMIN_PATH],this.schema,this.dbMaster,this.headers,r),s=this.apisService.getPKFiled(this.schema);this.saveFormData={},this.saveFormData[s]=o.data[s];try{for(let a of this.config?.form?.fields||[])for(let l of a)l.path&&(this.saveFormData[l.path]=o.data[l.path])}catch(a){console.log(a),this.msgWrapper.showError("Form structure is not valid.");return}this.isDialogVisible=!0,this.mode="edit",yield this.loadFormDataService.loadDropdownData(this.cd,this.queryParams[st.ADMIN_PATH],this.config,this.schema,this.dropdownData,this.loadingData,this.headers),this.cd.detectChanges()})}saveButtonClicked(){let n=!0;this.mode==="edit"?this.config.operations?.hideEditConfirmation&&(n=!1):this.mode==="add"&&this.config.operations?.hideAddConfirmation&&(n=!1);let r=()=>{this.mode==="edit"&&this.editDatabaseOperation().then(),this.mode==="add"&&this.saveDatabaseOperation().then()};n?this.confirmationService.confirm({message:`Do you want to ${this.mode} this record?`,header:"Confirmation",acceptButtonStyleClass:"p-button-success p-button-text",rejectButtonStyleClass:"p-button-text",icon:"pi pi-exclamation-triangle",accept:()=>{r()}}):r()}editDatabaseOperation(){return Ge(this,null,function*(){try{let n=this.saveFormData[this.apisService.getPKFiled(this.schema)];yield this.apisService.updateById(this.queryParams[st.ADMIN_PATH],this.schema,this.dbMaster,this.headers,n,this.saveFormData),this.msgWrapper.showSuccess("Record updated successfully."),this.isDialogVisible=!1,this.refreshGrid()}catch(n){this.apisService.showErrorFromResponse(n?.error||n,"Update record operation failed.")}})}saveDatabaseOperation(){return Ge(this,null,function*(){try{this.errorsMap={},this.otherFieldErrors=[];let n=this.saveFormData[this.apisService.getPKFiled(this.schema)];console.log(this.saveFormData),yield this.apisService.saveSingleOrMultiple(this.queryParams[st.ADMIN_PATH],this.schema,this.dbMaster,this.headers,n,this.saveFormData),this.msgWrapper.showSuccess("Record saved successfully."),this.isDialogVisible=!1,this.refreshGrid()}catch(n){let r=n?.error;for(let o of r.errors||[]){this.errorsMap[o.field||""]=o.message;let s=!1;for(let a of this.config?.form?.fields||[])for(let l of a)l.path&&l.path===o.field&&(s=!0);s||this.otherFieldErrors.push(o)}Object.keys(this.errorsMap).length===0&&this.apisService.showErrorFromResponse(n?.error||n,"Update record operation failed."),console.log(this.errorsMap),this.cd.detectChanges()}})}viewDropdownOverlay(n,r){n&&this.loadFormDataService.setOffsetHeight(this,r.element)}};i.\u0275fac=function(r){return new(r||i)(x(gr),x(xr),x(Si),x(Lb),x(ce))},i.\u0275cmp=P({type:i,selectors:[["app-form"]],inputs:{schema:"schema",dbMaster:"dbMaster",config:"config",headers:"headers",queryParams:"queryParams"},standalone:!0,features:[J],decls:5,vars:10,consts:[["header","Add",3,"visibleChange","maximizable","modal","visible","position"],[2,"padding-bottom","2rem"],["class","row",3,"ngClass",4,"ngFor","ngForOf"],["class","mt-3",4,"ngIf"],["pTemplate","footer"],[1,"row",3,"ngClass"],[3,"class",4,"ngFor","ngForOf"],[1,"flex","flex-wrap","p-fluid","mt-1"],[2,"padding-left","2px",3,"for"],["class","mt-1",4,"ngIf"],[1,"mt-1"],["pInputText","","type","text",1,"w-100",3,"ngModelChange","autofocus","id","ngModel"],[1,"float-end","text-danger","error-span"],["pInputTextarea","",1,"w-100",3,"ngModelChange","autofocus","id","ngModel","rows","autoResize"],[1,"mt-1",3,"ngModelChange","autofocus","inputId","ngModel","binary"],[3,"ngModelChange","showIcon","iconDisplay","appendTo","autofocus","showTime","showSeconds","hourFormat","dateFormat","view","inputId","ngModel"],[3,"ngModelChange","autofocus","inputId","format","ngModel"],["placeholder","\xA0",3,"ngModelChange","onShow","autofocus","inputId","ngModel","appendTo","options","optionValue","filter","filterBy","filterMatchMode","dropdownIcon","virtualScroll","virtualScrollItemSize","showClear"],["pTemplate","selectedItem"],["pTemplate","item"],[3,"innerHTML"],[1,"mt-3"],[3,"value","tableStyle"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[1,"flex","align-items-center","justify-content-between"],[2,"width","25%"],["icon","pi pi-times","severity","secondary","label","Cancel",3,"click","raised"],["icon","pi pi-save","styleClass","mx-0","label","Save",3,"click","raised"]],template:function(r,o){r&1&&(m(0,"p-dialog",0),Nt("visibleChange",function(a){return Bt(o.isDialogVisible,a)||(o.isDialogVisible=a),a}),m(1,"div",1),f(2,S8,2,4,"div",2)(3,O8,5,3,"div",3),g(),f(4,k8,2,2,"ng-template",4),g()),r&2&&(_t(U(8,h8,(o.config==null||o.config.form==null?null:o.config.form.width)||"90vw")),c("maximizable",!0)("modal",!0),Lt("visible",o.isDialogVisible),c("position","top"),p(2),c("ngForOf",o.config==null||o.config.form==null?null:o.config.form.fields),p(),c("ngIf",o.otherFieldErrors.length))},dependencies:[ue,Oe,Ct,Ce,Yt,yu,xe,Cu,rb,Gn,br,QC,mu,$i,ke,ai,vn,Eu,qn,vu,oo,_b,gb,pb,Om,hb,km,db,Ki,qi],encapsulation:2});let t=i;return t})();var F8=["pMenuItemContent",""],Vb=t=>({"p-disabled":t}),Jm=t=>({$implicit:t}),A8=()=>({exact:!1});function R8(t,i){t&1&&H(0)}function L8(t,i){if(t&1&&(m(0,"a",6),f(1,R8,1,0,"ng-container",7),g()),t&2){let e=d(2),n=Ee(4);c("target",e.item.target)("ngClass",U(10,Vb,e.item.disabled)),w("title",e.item.title)("href",e.item.url||null,Kp)("data-automationid",e.item.automationId)("tabindex",-1)("data-pc-section","action")("aria-hidden",!0),p(),c("ngTemplateOutlet",n)("ngTemplateOutletContext",U(12,Jm,e.item))}}function N8(t,i){t&1&&H(0)}function V8(t,i){if(t&1&&(m(0,"a",8),f(1,N8,1,0,"ng-container",7),g()),t&2){let e=d(2),n=Ee(4);c("routerLink",e.item.routerLink)("queryParams",e.item.queryParams)("routerLinkActiveOptions",e.item.routerLinkActiveOptions||Qe(18,A8))("target",e.item.target)("ngClass",U(19,Vb,e.item.disabled))("fragment",e.item.fragment)("queryParamsHandling",e.item.queryParamsHandling)("preserveFragment",e.item.preserveFragment)("skipLocationChange",e.item.skipLocationChange)("replaceUrl",e.item.replaceUrl)("state",e.item.state),w("data-automationid",e.item.automationId)("tabindex",-1)("data-pc-section","action")("aria-hidden",!0)("title",e.item.title),p(),c("ngTemplateOutlet",n)("ngTemplateOutletContext",U(21,Jm,e.item))}}function P8(t,i){if(t&1&&(L(0),f(1,L8,2,14,"a",4)(2,V8,2,23,"a",5),N()),t&2){let e=d();p(),c("ngIf",!(e.item!=null&&e.item.routerLink)),p(),c("ngIf",e.item==null?null:e.item.routerLink)}}function H8(t,i){}function B8(t,i){t&1&&f(0,H8,0,0,"ng-template")}function j8(t,i){if(t&1&&(L(0),f(1,B8,1,0,null,7),N()),t&2){let e=d();p(),c("ngTemplateOutlet",e.itemTemplate)("ngTemplateOutletContext",U(2,Jm,e.item))}}function z8(t,i){if(t&1&&D(0,"span",12),t&2){let e=d(2);R(e.item.iconClass),c("ngClass",e.item.icon)("ngStyle",e.item.iconStyle)}}function U8(t,i){if(t&1&&(m(0,"span",13),K(1),g()),t&2){let e=d(2);p(),se(e.item.label)}}function $8(t,i){if(t&1&&(D(0,"span",14),gh(1,"safeHtml")),t&2){let e=d(2);c("innerHTML",_h(1,1,e.item.label),ri)}}function G8(t,i){if(t&1&&(m(0,"span",15),K(1),g()),t&2){let e=d(2);c("ngClass",e.item.badgeStyleClass),p(),se(e.item.badge)}}function W8(t,i){if(t&1&&f(0,z8,1,4,"span",9)(1,U8,2,1,"span",10)(2,$8,2,3,"ng-template",null,1,it)(4,G8,2,2,"span",11),t&2){let e=Ee(3),n=d();c("ngIf",n.item.icon),p(),c("ngIf",n.item.escape!==!1)("ngIfElse",e),p(3),c("ngIf",n.item.badge)}}var q8=["list"],K8=["container"],Q8=t=>({"p-menu p-component":!0,"p-menu-overlay":t}),Z8=(t,i)=>({showTransitionParams:t,hideTransitionParams:i}),Y8=t=>({value:"visible",params:t}),eg=t=>({"p-hidden":t}),X8=(t,i)=>({"p-hidden":t,flex:i}),Pb=(t,i,e)=>({"p-hidden":t,"p-focus":i,"p-disabled":e});function J8(t,i){t&1&&H(0)}function eH(t,i){if(t&1&&(m(0,"div",9),f(1,J8,1,0,"ng-container",10),g()),t&2){let e=d(2);w("data-pc-section","start"),p(),c("ngTemplateOutlet",e.startTemplate)}}function tH(t,i){if(t&1&&D(0,"li",14),t&2){let e=d().$implicit;c("ngClass",U(1,eg,e.visible===!1))}}function nH(t,i){if(t&1&&(m(0,"span"),K(1),g()),t&2){let e=d(2).$implicit;p(),se(e.label)}}function iH(t,i){if(t&1&&(D(0,"span",17),gh(1,"safeHtml")),t&2){let e=d(2).$implicit;c("innerHTML",_h(1,1,e.label),ri)}}function rH(t,i){if(t&1&&(m(0,"li",15),f(1,nH,2,1,"span",16)(2,iH,2,3,"ng-template",null,2,it),g()),t&2){let e=Ee(3),n=d(),r=n.$implicit,o=n.index,s=d(3);c("ngClass",we(6,X8,r.visible===!1,r.visible))("tooltipOptions",r.tooltipOptions),w("data-automationid",r.automationId)("id",s.menuitemId(r,s.id,o)),p(),c("ngIf",r.escape!==!1)("ngIfElse",e)}}function oH(t,i){if(t&1&&D(0,"li",14),t&2){let e=d().$implicit,n=d().$implicit;c("ngClass",U(1,eg,e.visible===!1||n.visible===!1))}}function sH(t,i){if(t&1){let e=F();m(0,"li",19),E("onMenuItemClick",function(r){y(e);let o=d(),s=o.$implicit,a=o.index,l=d().index,u=d(3);return v(u.itemClick(r,u.menuitemId(s,u.id,l,a)))}),g()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d(),s=o.$implicit,a=o.index,l=d(3);R(n.styleClass),c("pMenuItemContent",n)("itemTemplate",l.itemTemplate)("ngClass",lt(13,Pb,n.visible===!1||s.visible===!1,l.focusedOptionId()&&l.menuitemId(n,l.id,a,r)===l.focusedOptionId(),l.disabled(n.disabled)))("ngStyle",n.style)("tooltipOptions",n.tooltipOptions),w("data-pc-section","menuitem")("aria-label",l.label(n.label))("data-p-focused",l.isItemFocused(l.menuitemId(n,l.id,a,r)))("data-p-disabled",l.disabled(n.disabled))("aria-disabled",l.disabled(n.disabled))("id",l.menuitemId(n,l.id,a,r))}}function aH(t,i){if(t&1&&f(0,oH,1,3,"li",12)(1,sH,1,17,"li",18),t&2){let e=i.$implicit;c("ngIf",e.separator),p(),c("ngIf",!e.separator)}}function lH(t,i){if(t&1&&f(0,tH,1,3,"li",12)(1,rH,4,9,"li",13)(2,aH,2,2,"ng-template",11),t&2){let e=i.$implicit;c("ngIf",e.separator),p(),c("ngIf",!e.separator),p(),c("ngForOf",e.items)}}function cH(t,i){if(t&1&&f(0,lH,3,3,"ng-template",11),t&2){let e=d(2);c("ngForOf",e.model)}}function uH(t,i){if(t&1&&D(0,"li",14),t&2){let e=d().$implicit;c("ngClass",U(1,eg,e.visible===!1))}}function dH(t,i){if(t&1){let e=F();m(0,"li",19),E("onMenuItemClick",function(r){y(e);let o=d(),s=o.$implicit,a=o.index,l=d(3);return v(l.itemClick(r,l.menuitemId(s,l.id,a)))}),g()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d(3);R(n.styleClass),c("pMenuItemContent",n)("itemTemplate",o.itemTemplate)("ngClass",lt(13,Pb,n.visible===!1,o.focusedOptionId()&&o.menuitemId(n,o.id,r,o.j)===o.focusedOptionId(),o.disabled(n.disabled)))("ngStyle",n.style)("tooltipOptions",n.tooltipOptions),w("data-pc-section","menuitem")("aria-label",o.label(n.label))("data-p-focused",o.isItemFocused(o.menuitemId(n,o.id,r)))("data-p-disabled",o.disabled(n.disabled))("aria-disabled",o.disabled(n.disabled))("id",o.menuitemId(n,o.id,r))}}function pH(t,i){if(t&1&&f(0,uH,1,3,"li",12)(1,dH,1,17,"li",18),t&2){let e=i.$implicit;c("ngIf",e.separator),p(),c("ngIf",!e.separator)}}function hH(t,i){if(t&1&&f(0,pH,2,2,"ng-template",11),t&2){let e=d(2);c("ngForOf",e.model)}}function fH(t,i){t&1&&H(0)}function mH(t,i){if(t&1&&(m(0,"div",20),f(1,fH,1,0,"ng-container",10),g()),t&2){let e=d(2);w("data-pc-section","end"),p(),c("ngTemplateOutlet",e.endTemplate)}}function gH(t,i){if(t&1){let e=F();m(0,"div",4,0),E("click",function(r){y(e);let o=d();return v(o.onOverlayClick(r))})("@overlayAnimation.start",function(r){y(e);let o=d();return v(o.onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){y(e);let o=d();return v(o.onOverlayAnimationEnd(r))}),f(2,eH,2,2,"div",5),m(3,"ul",6,1),E("focus",function(r){y(e);let o=d();return v(o.onListFocus(r))})("blur",function(r){y(e);let o=d();return v(o.onListBlur(r))})("keydown",function(r){y(e);let o=d();return v(o.onListKeyDown(r))}),f(5,cH,1,1,null,7)(6,hH,1,1,null,7),g(),f(7,mH,2,2,"div",8),g()}if(t&2){let e=d();R(e.styleClass),c("ngClass",U(18,Q8,e.popup))("ngStyle",e.style)("@overlayAnimation",U(23,Y8,we(20,Z8,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.popup!==!0),w("data-pc-name","menu")("id",e.id),p(2),c("ngIf",e.startTemplate),p(),w("id",e.id+"_list")("tabindex",e.getTabIndexValue())("data-pc-section","menu")("aria-activedescendant",e.activedescendant())("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),p(2),c("ngIf",e.hasSubMenu()),p(),c("ngIf",!e.hasSubMenu()),p(),c("ngIf",e.endTemplate)}}var Hb=(()=>{class t{platformId;sanitizer;constructor(e,n){this.platformId=e,this.sanitizer=n}transform(e){return!e||!bt(this.platformId)?e:this.sanitizer.bypassSecurityTrustHtml(e)}static \u0275fac=function(n){return new(n||t)(x(pt,16),x(Qh,16))};static \u0275pipe=Dp({name:"safeHtml",type:t,pure:!0})}return t})(),_H=(()=>{class t{item;itemTemplate;onMenuItemClick=new O;menu;constructor(e){this.menu=e}onItemClick(e,n){this.onMenuItemClick.emit({originalEvent:e,item:n})}static \u0275fac=function(n){return new(n||t)(x(dt(()=>tg)))};static \u0275cmp=P({type:t,selectors:[["","pMenuItemContent",""]],hostAttrs:[1,"p-element"],inputs:{item:[C.None,"pMenuItemContent","item"],itemTemplate:"itemTemplate"},outputs:{onMenuItemClick:"onMenuItemClick"},attrs:F8,decls:5,vars:3,consts:[["itemContent",""],["htmlLabel",""],[1,"p-menuitem-content",3,"click"],[4,"ngIf"],["class","p-menuitem-link","pRipple","",3,"target","ngClass",4,"ngIf"],["routerLinkActive","p-menuitem-link-active","class","p-menuitem-link","pRipple","",3,"routerLink","queryParams","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf"],["pRipple","",1,"p-menuitem-link",3,"target","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["routerLinkActive","p-menuitem-link-active","pRipple","",1,"p-menuitem-link",3,"routerLink","queryParams","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["class","p-menuitem-icon",3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"]],template:function(n,r){if(n&1){let o=F();m(0,"div",2),E("click",function(a){return y(o),v(r.onItemClick(a,r.item))}),f(1,P8,3,2,"ng-container",3)(2,j8,2,4,"ng-container",3)(3,W8,5,4,"ng-template",null,0,it),g()}n&2&&(w("data-pc-section","content"),p(),c("ngIf",!r.itemTemplate),p(),c("ngIf",r.itemTemplate))},dependencies:[Oe,Ce,Ae,je,su,vC,Dt,Hb],encapsulation:2})}return t})(),tg=(()=>{class t{document;platformId;el;renderer;cd;config;overlayService;model;popup;style;styleClass;appendTo;autoZIndex=!0;baseZIndex=0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";ariaLabel;ariaLabelledBy;id;tabindex=0;onShow=new O;onHide=new O;onBlur=new O;onFocus=new O;listViewChild;containerViewChild;templates;startTemplate;endTemplate;itemTemplate;container;scrollHandler;documentClickListener;documentResizeListener;preventDocumentDefault;target;visible;focusedOptionId=yn(()=>this.focusedOptionIndex()!==-1?this.focusedOptionIndex():null);focusedOptionIndex=Mt(-1);selectedOptionIndex=Mt(-1);focused=!1;overlayVisible=!1;relativeAlign;constructor(e,n,r,o,s,a,l){this.document=e,this.platformId=n,this.el=r,this.renderer=o,this.cd=s,this.config=a,this.overlayService=l,this.id=this.id||me()}toggle(e){this.visible?this.hide():this.show(e),this.preventDocumentDefault=!0}show(e){this.target=e.currentTarget,this.relativeAlign=e.relativeAlign,this.visible=!0,this.preventDocumentDefault=!0,this.overlayVisible=!0,this.cd.markForCheck()}ngOnInit(){this.popup||this.bindDocumentClickListener()}ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"start":this.startTemplate=e.template;break;case"end":this.endTemplate=e.template;break;case"itemTemplate":this.itemTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}getTabIndexValue(){return this.tabindex!==void 0?this.tabindex.toString():null}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),this.appendOverlay(),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),b.focus(this.listViewChild.nativeElement));break;case"void":this.onOverlayHide(),this.onHide.emit({});break}}onOverlayAnimationEnd(e){switch(e.toState){case"void":this.autoZIndex&&qe.clear(e.element);break}}alignOverlay(){this.relativeAlign?b.relativePosition(this.container,this.target):b.absolutePosition(this.container,this.target)}appendOverlay(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):b.appendChild(this.container,this.appendTo))}restoreOverlayAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.container)}moveOnTop(){this.autoZIndex&&qe.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(){this.visible=!1,this.relativeAlign=!1,this.cd.markForCheck()}onWindowResize(){this.visible&&!b.isTouchDevice()&&this.hide()}menuitemId(e,n,r,o){return e?.id??`${n}_${r}${o!==void 0?"_"+o:""}`}isItemFocused(e){return this.focusedOptionId()===e}label(e){return typeof e=="function"?e():e}disabled(e){return typeof e=="function"?e():typeof e>"u"?!1:e}activedescendant(){return this.focused?this.focusedOptionId():void 0}onListFocus(e){this.focused||(this.focused=!0,this.onFocus.emit(e))}onListBlur(e){this.focused&&(this.focused=!1,this.changeFocusedOptionIndex(-1),this.selectedOptionIndex.set(-1),this.focusedOptionIndex.set(-1),this.onBlur.emit(e))}onListKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"Escape":case"Tab":this.popup&&(b.focus(this.target),this.hide()),this.overlayVisible&&this.hide();break;default:break}}onArrowDownKey(e){let n=this.findNextOptionIndex(this.focusedOptionIndex());this.changeFocusedOptionIndex(n),e.preventDefault()}onArrowUpKey(e){if(e.altKey&&this.popup)b.focus(this.target),this.hide(),e.preventDefault();else{let n=this.findPrevOptionIndex(this.focusedOptionIndex());this.changeFocusedOptionIndex(n),e.preventDefault()}}onHomeKey(e){this.changeFocusedOptionIndex(0),e.preventDefault()}onEndKey(e){this.changeFocusedOptionIndex(b.find(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1),e.preventDefault()}onEnterKey(e){let n=b.findSingle(this.containerViewChild.nativeElement,`li[id="${`${this.focusedOptionIndex()}`}"]`),r=n&&b.findSingle(n,'a[data-pc-section="action"]');this.popup&&b.focus(this.target),r?r.click():n&&n.click(),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}findNextOptionIndex(e){let r=[...b.find(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(o=>o.id===e);return r>-1?r+1:0}findPrevOptionIndex(e){let r=[...b.find(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(o=>o.id===e);return r>-1?r-1:0}changeFocusedOptionIndex(e){let n=b.find(this.containerViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]');if(n.length>0){let r=e>=n.length?n.length-1:e<0?0:e;r>-1&&this.focusedOptionIndex.set(n[r].getAttribute("id"))}}itemClick(e,n){let{originalEvent:r,item:o}=e;if(this.focused||(this.focused=!0,this.onFocus.emit()),o.disabled){r.preventDefault();return}!o.url&&!o.routerLink&&r.preventDefault(),o.command&&o.command({originalEvent:r,item:o}),this.popup&&this.hide(),!this.popup&&this.focusedOptionIndex()!==n&&this.focusedOptionIndex.set(n)}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.preventDocumentDefault=!0}bindDocumentClickListener(){if(!this.documentClickListener&&bt(this.platformId)){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",n=>{let r=this.containerViewChild.nativeElement&&!this.containerViewChild.nativeElement.contains(n.target),o=!(this.target&&(this.target===n.target||this.target.contains(n.target)));!this.popup&&r&&o&&this.onListBlur(n),this.preventDocumentDefault&&this.overlayVisible&&r&&o&&(this.hide(),this.preventDocumentDefault=!1)})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){if(!this.documentResizeListener&&bt(this.platformId)){let e=this.document.defaultView;this.documentResizeListener=this.renderer.listen(e,"resize",this.onWindowResize.bind(this))}}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){!this.scrollHandler&&bt(this.platformId)&&(this.scrollHandler=new Cn(this.target,()=>{this.visible&&this.hide()})),this.scrollHandler?.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.preventDocumentDefault=!1,this.cd.destroyed||(this.target=null)}ngOnDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&qe.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide()),this.popup||this.unbindDocumentClickListener()}hasSubMenu(){if(this.model){for(var e of this.model)if(e.items)return!0}return!1}isItemHidden(e){return e.separator?e.visible===!1||e.items&&e.items.some(n=>n.visible!==!1):e.visible===!1}static \u0275fac=function(n){return new(n||t)(x(Se),x(pt),x(_e),x(Be),x(ce),x(ot),x(un))};static \u0275cmp=P({type:t,selectors:[["p-menu"]],contentQueries:function(n,r,o){if(n&1&&Re(o,xe,4),n&2){let s;j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(q8,5),Z(K8,5)),n&2){let o;j(o=z())&&(r.listViewChild=o.first),j(o=z())&&(r.containerViewChild=o.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",popup:[C.HasDecoratorInputTransform,"popup","popup",T],style:"style",styleClass:"styleClass",appendTo:"appendTo",autoZIndex:[C.HasDecoratorInputTransform,"autoZIndex","autoZIndex",T],baseZIndex:[C.HasDecoratorInputTransform,"baseZIndex","baseZIndex",Q],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",id:"id",tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q]},outputs:{onShow:"onShow",onHide:"onHide",onBlur:"onBlur",onFocus:"onFocus"},features:[fe],decls:1,vars:1,consts:[["container",""],["list",""],["htmlSubmenuLabel",""],[3,"ngClass","class","ngStyle","click",4,"ngIf"],[3,"click","ngClass","ngStyle"],["class","p-menu-start",4,"ngIf"],["role","menu",1,"p-menu-list","p-reset",3,"focus","blur","keydown"],[4,"ngIf"],["class","p-menu-end",4,"ngIf"],[1,"p-menu-start"],[4,"ngTemplateOutlet"],["ngFor","",3,"ngForOf"],["class","p-menuitem-separator","role","separator",3,"ngClass",4,"ngIf"],["class","p-submenu-header","pTooltip","","role","none",3,"ngClass","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menuitem-separator",3,"ngClass"],["pTooltip","","role","none",1,"p-submenu-header",3,"ngClass","tooltipOptions"],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["class","p-menuitem","pTooltip","","role","menuitem",3,"pMenuItemContent","itemTemplate","ngClass","ngStyle","class","tooltipOptions","onMenuItemClick",4,"ngIf"],["pTooltip","","role","menuitem",1,"p-menuitem",3,"onMenuItemClick","pMenuItemContent","itemTemplate","ngClass","ngStyle","tooltipOptions"],[1,"p-menu-end"]],template:function(n,r){n&1&&f(0,gH,8,25,"div",3),n&2&&c("ngIf",!r.popup||r.visible)},dependencies:[Oe,Ct,Ce,Ae,je,ps,_H,Hb],styles:[`@layer primeng{.p-menu-overlay{position:absolute;top:0;left:0}.p-menu ul{margin:0;padding:0;list-style:none}.p-menu .p-submenu-header{align-items:center}.p-menu .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menu .p-menuitem-text{line-height:1}}
115
+ `],encapsulation:2,data:{animation:[en("overlayAnimation",[ft(":enter",[Je({opacity:0,transform:"scaleY(0.8)"}),vt("{{showTransitionParams}}")]),ft(":leave",[vt("{{hideTransitionParams}}",Je({opacity:0}))])])]},changeDetection:0})}return t})(),Bb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,dm,At,ao,dm,ao]})}return t})();var Ea=t=>({height:t}),vH=(t,i)=>({"p-multiselect-item":!0,"p-disabled":t,"p-focus":i}),CH=t=>({"p-highlight":t}),ng=t=>({$implicit:t});function bH(t,i){t&1&&D(0,"CheckIcon",7),t&2&&(c("styleClass","p-checkbox-icon"),w("aria-hidden",!0))}function wH(t,i){}function IH(t,i){t&1&&f(0,wH,0,0,"ng-template")}function xH(t,i){if(t&1&&(m(0,"span",8),f(1,IH,1,0,null,9),g()),t&2){let e=d(2);w("aria-hidden",!0),p(),c("ngTemplateOutlet",e.checkIconTemplate)}}function TH(t,i){if(t&1&&(L(0),f(1,bH,1,2,"CheckIcon",5)(2,xH,2,2,"span",6),N()),t&2){let e=d();p(),c("ngIf",!e.checkIconTemplate),p(),c("ngIf",e.checkIconTemplate)}}function SH(t,i){if(t&1&&(m(0,"span"),K(1),g()),t&2){let e,n=d();p(),se((e=n.label)!==null&&e!==void 0?e:"empty")}}function DH(t,i){t&1&&H(0)}var EH=["container"],MH=["overlay"],OH=["filterInput"],kH=["focusInput"],FH=["items"],AH=["scroller"],RH=["lastHiddenFocusableEl"],LH=["firstHiddenFocusableEl"],NH=["headerCheckbox"],VH=[[["p-header"]],[["p-footer"]]],PH=["p-header","p-footer"],HH=(t,i)=>({$implicit:t,removeChip:i}),jb=t=>({options:t}),BH=t=>({"p-checkbox-disabled":t}),jH=(t,i,e)=>({"p-highlight":t,"p-focus":i,"p-disabled":e}),zb=(t,i)=>({$implicit:t,options:i}),zH=()=>({});function UH(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(2);p(),se(e.label()||"empty")}}function $H(t,i){if(t&1){let e=F();m(0,"TimesCircleIcon",30),E("click",function(){y(e);let r=d(2).$implicit,o=d(3);return v(o.removeOption(r,o.event))}),g()}t&2&&(c("styleClass","p-multiselect-token-icon"),w("data-pc-section","clearicon")("aria-hidden",!0))}function GH(t,i){t&1&&H(0)}function WH(t,i){if(t&1){let e=F();m(0,"span",31),E("click",function(){y(e);let r=d(2).$implicit,o=d(3);return v(o.removeOption(r,o.event))}),f(1,GH,1,0,"ng-container",32),g()}if(t&2){let e=d(5);w("data-pc-section","clearicon")("aria-hidden",!0),p(),c("ngTemplateOutlet",e.removeTokenIconTemplate)}}function qH(t,i){if(t&1&&(L(0),f(1,$H,1,3,"TimesCircleIcon",28)(2,WH,2,3,"span",29),N()),t&2){let e=d(4);p(),c("ngIf",!e.removeTokenIconTemplate),p(),c("ngIf",e.removeTokenIconTemplate)}}function KH(t,i){if(t&1&&(m(0,"div",26,3)(2,"span",27),K(3),g(),f(4,qH,3,2,"ng-container",19),g()),t&2){let e=i.$implicit,n=d(3);p(3),se(n.getLabelByValue(e)),p(),c("ngIf",!n.disabled)}}function QH(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(3);p(),se(e.placeholder()||e.defaultLabel||"empty")}}function ZH(t,i){if(t&1&&(L(0),f(1,KH,5,2,"div",25)(2,QH,2,1,"ng-container",19),N()),t&2){let e=d(2);p(),c("ngForOf",e.chipSelectedItems()),p(),c("ngIf",!e.modelValue()||e.modelValue().length===0)}}function YH(t,i){if(t&1&&(L(0),f(1,UH,2,1,"ng-container",19)(2,ZH,3,2,"ng-container",19),N()),t&2){let e=d();p(),c("ngIf",e.display==="comma"),p(),c("ngIf",e.display==="chip")}}function XH(t,i){t&1&&H(0)}function JH(t,i){if(t&1){let e=F();m(0,"TimesIcon",30),E("click",function(r){y(e);let o=d(2);return v(o.clear(r))}),g()}t&2&&(c("styleClass","p-multiselect-clear-icon"),w("data-pc-section","clearicon")("aria-hidden",!0))}function eB(t,i){}function tB(t,i){t&1&&f(0,eB,0,0,"ng-template")}function nB(t,i){if(t&1){let e=F();m(0,"span",34),E("click",function(r){y(e);let o=d(2);return v(o.clear(r))}),f(1,tB,1,0,null,32),g()}if(t&2){let e=d(2);w("data-pc-section","clearicon")("aria-hidden",!0),p(),c("ngTemplateOutlet",e.clearIconTemplate)}}function iB(t,i){if(t&1&&(L(0),f(1,JH,1,3,"TimesIcon",28)(2,nB,2,3,"span",33),N()),t&2){let e=d();p(),c("ngIf",!e.clearIconTemplate),p(),c("ngIf",e.clearIconTemplate)}}function rB(t,i){if(t&1&&D(0,"span",37),t&2){let e=d(2);c("ngClass",e.dropdownIcon),w("data-pc-section","triggericon")("aria-hidden",!0)}}function oB(t,i){t&1&&D(0,"ChevronDownIcon",38),t&2&&(c("styleClass","p-multiselect-trigger-icon"),w("data-pc-section","triggericon")("aria-hidden",!0))}function sB(t,i){if(t&1&&(L(0),f(1,rB,1,3,"span",35)(2,oB,1,3,"ChevronDownIcon",36),N()),t&2){let e=d();p(),c("ngIf",e.dropdownIcon),p(),c("ngIf",!e.dropdownIcon)}}function aB(t,i){}function lB(t,i){t&1&&f(0,aB,0,0,"ng-template")}function cB(t,i){if(t&1&&(m(0,"span",39),f(1,lB,1,0,null,32),g()),t&2){let e=d();w("data-pc-section","triggericon")("aria-hidden",!0),p(),c("ngTemplateOutlet",e.dropdownIconTemplate)}}function uB(t,i){t&1&&H(0)}function dB(t,i){t&1&&H(0)}function pB(t,i){if(t&1&&(L(0),f(1,dB,1,0,"ng-container",20),N()),t&2){let e=d(3);p(),c("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",U(2,jb,e.filterOptions))}}function hB(t,i){t&1&&D(0,"CheckIcon",38),t&2&&(c("styleClass","p-checkbox-icon"),w("aria-hidden",!0))}function fB(t,i){}function mB(t,i){t&1&&f(0,fB,0,0,"ng-template")}function gB(t,i){if(t&1&&(m(0,"span",56),f(1,mB,1,0,null,20),g()),t&2){let e=d(6);w("aria-hidden",!0),p(),c("ngTemplateOutlet",e.checkIconTemplate)("ngTemplateOutletContext",U(3,ng,e.allSelected()))}}function _B(t,i){if(t&1&&(L(0),f(1,hB,1,2,"CheckIcon",36)(2,gB,2,5,"span",55),N()),t&2){let e=d(5);p(),c("ngIf",!e.checkIconTemplate),p(),c("ngIf",e.checkIconTemplate)}}function yB(t,i){if(t&1){let e=F();m(0,"div",52),E("click",function(r){y(e);let o=d(4);return v(o.onToggleAll(r))})("keydown",function(r){y(e);let o=d(4);return v(o.onHeaderCheckboxKeyDown(r))}),m(1,"div",15)(2,"input",53,8),E("focus",function(){y(e);let r=d(4);return v(r.onHeaderCheckboxFocus())})("blur",function(){y(e);let r=d(4);return v(r.onHeaderCheckboxBlur())}),g()(),m(4,"div",54),f(5,_B,3,2,"ng-container",19),g()()}if(t&2){let e=d(4);c("ngClass",U(10,BH,e.disabled||e.toggleAllDisabled)),p(),w("data-p-hidden-accessible",!0),p(),c("readonly",e.readonly)("disabled",e.disabled||e.toggleAllDisabled),w("checked",e.allSelected())("aria-label",e.toggleAllAriaLabel),p(2),c("ngClass",lt(12,jH,e.allSelected(),e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),w("aria-label",e.toggleAllAriaLabel)("aria-checked",e.allSelected()),p(),c("ngIf",e.allSelected())}}function vB(t,i){t&1&&D(0,"SearchIcon",38),t&2&&c("styleClass","p-multiselect-filter-icon")}function CB(t,i){}function bB(t,i){t&1&&f(0,CB,0,0,"ng-template")}function wB(t,i){if(t&1&&(m(0,"span",60),f(1,bB,1,0,null,32),g()),t&2){let e=d(5);p(),c("ngTemplateOutlet",e.filterIconTemplate)}}function IB(t,i){if(t&1){let e=F();m(0,"div",57)(1,"input",58,9),E("input",function(r){y(e);let o=d(4);return v(o.onFilterInputChange(r))})("keydown",function(r){y(e);let o=d(4);return v(o.onFilterKeyDown(r))})("click",function(r){y(e);let o=d(4);return v(o.onInputClick(r))})("blur",function(r){y(e);let o=d(4);return v(o.onFilterBlur(r))}),g(),f(3,vB,1,1,"SearchIcon",36)(4,wB,2,1,"span",59),g()}if(t&2){let e=d(4);p(),c("value",e._filterValue()||"")("disabled",e.disabled),w("autocomplete",e.autocomplete)("placeholder",e.filterPlaceHolder)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),p(2),c("ngIf",!e.filterIconTemplate),p(),c("ngIf",e.filterIconTemplate)}}function xB(t,i){t&1&&D(0,"TimesIcon",38),t&2&&c("styleClass","p-multiselect-close-icon")}function TB(t,i){}function SB(t,i){t&1&&f(0,TB,0,0,"ng-template")}function DB(t,i){if(t&1&&(m(0,"span",61),f(1,SB,1,0,null,32),g()),t&2){let e=d(4);p(),c("ngTemplateOutlet",e.closeIconTemplate)}}function EB(t,i){if(t&1){let e=F();f(0,yB,6,16,"div",48)(1,IB,5,10,"div",49),m(2,"button",50),E("click",function(r){y(e);let o=d(3);return v(o.close(r))}),f(3,xB,1,1,"TimesIcon",36)(4,DB,2,1,"span",51),g()}if(t&2){let e=d(3);c("ngIf",e.showToggleAll&&!e.selectionLimit),p(),c("ngIf",e.filter),p(),w("aria-label",e.closeAriaLabel),p(),c("ngIf",!e.closeIconTemplate),p(),c("ngIf",e.closeIconTemplate)}}function MB(t,i){if(t&1&&(m(0,"div",46),xt(1),f(2,uB,1,0,"ng-container",32)(3,pB,2,4,"ng-container",47)(4,EB,5,5,"ng-template",null,7,it),g()),t&2){let e=Ee(5),n=d(2);p(2),c("ngTemplateOutlet",n.headerTemplate),p(),c("ngIf",n.filterTemplate)("ngIfElse",e)}}function OB(t,i){t&1&&H(0)}function kB(t,i){if(t&1&&f(0,OB,1,0,"ng-container",20),t&2){let e=i.$implicit,n=i.options;d(2);let r=Ee(8);c("ngTemplateOutlet",r)("ngTemplateOutletContext",we(2,zb,e,n))}}function FB(t,i){t&1&&H(0)}function AB(t,i){if(t&1&&f(0,FB,1,0,"ng-container",20),t&2){let e=i.options,n=d(4);c("ngTemplateOutlet",n.loaderTemplate)("ngTemplateOutletContext",U(2,jb,e))}}function RB(t,i){t&1&&(L(0),f(1,AB,1,4,"ng-template",63),N())}function LB(t,i){if(t&1){let e=F();m(0,"p-scroller",62,10),E("onLazyLoad",function(r){y(e);let o=d(2);return v(o.onLazyLoad.emit(r))}),f(2,kB,1,5,"ng-template",24)(3,RB,2,0,"ng-container",19),g()}if(t&2){let e=d(2);_t(U(9,Ea,e.scrollHeight)),c("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),p(3),c("ngIf",e.loaderTemplate)}}function NB(t,i){t&1&&H(0)}function VB(t,i){if(t&1&&(L(0),f(1,NB,1,0,"ng-container",20),N()),t&2){d();let e=Ee(8),n=d();p(),c("ngTemplateOutlet",e)("ngTemplateOutletContext",we(3,zb,n.visibleOptions(),Qe(2,zH)))}}function PB(t,i){if(t&1&&(m(0,"span"),K(1),g()),t&2){let e=d(2).$implicit,n=d(3);p(),se(n.getOptionGroupLabel(e.optionGroup))}}function HB(t,i){t&1&&H(0)}function BB(t,i){if(t&1&&(L(0),m(1,"li",67),f(2,PB,2,1,"span",19)(3,HB,1,0,"ng-container",20),g(),N()),t&2){let e=d(),n=e.$implicit,r=e.index,o=d().options,s=d(2);p(),c("ngStyle",U(5,Ea,o.itemSize+"px")),w("id",s.id+"_"+s.getOptionIndex(r,o)),p(),c("ngIf",!s.groupTemplate),p(),c("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",U(7,ng,n.optionGroup))}}function jB(t,i){if(t&1){let e=F();L(0),m(1,"p-multiSelectItem",68),E("onClick",function(r){y(e);let o=d().index,s=d().options,a=d(2);return v(a.onOptionSelect(r,!1,a.getOptionIndex(o,s)))})("onMouseEnter",function(r){y(e);let o=d().index,s=d().options,a=d(2);return v(a.onOptionMouseEnter(r,a.getOptionIndex(o,s)))}),g(),N()}if(t&2){let e=d(),n=e.$implicit,r=e.index,o=d().options,s=d(2);p(),c("id",s.id+"_"+s.getOptionIndex(r,o))("option",n)("selected",s.isSelected(n))("label",s.getOptionLabel(n))("disabled",s.isOptionDisabled(n))("template",s.itemTemplate)("checkIconTemplate",s.checkIconTemplate)("itemSize",o.itemSize)("focused",s.focusedOptionIndex()===s.getOptionIndex(r,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(r,o)))("ariaSetSize",s.ariaSetSize)}}function zB(t,i){if(t&1&&f(0,BB,4,9,"ng-container",19)(1,jB,2,11,"ng-container",19),t&2){let e=i.$implicit,n=d(3);c("ngIf",n.isOptionGroup(e)),p(),c("ngIf",!n.isOptionGroup(e))}}function UB(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(4);p(),yt(" ",e.emptyFilterMessageLabel," ")}}function $B(t,i){t&1&&H(0,null,12)}function GB(t,i){if(t&1&&(m(0,"li",69),f(1,UB,2,1,"ng-container",47)(2,$B,2,0,"ng-container",32),g()),t&2){let e=d().options,n=d(2);c("ngStyle",U(4,Ea,e.itemSize+"px")),p(),c("ngIf",!n.emptyFilterTemplate&&!n.emptyTemplate)("ngIfElse",n.emptyFilter),p(),c("ngTemplateOutlet",n.emptyFilterTemplate||n.emptyTemplate)}}function WB(t,i){if(t&1&&(L(0),K(1),N()),t&2){let e=d(4);p(),yt(" ",e.emptyMessageLabel," ")}}function qB(t,i){t&1&&H(0,null,13)}function KB(t,i){if(t&1&&(m(0,"li",69),f(1,WB,2,1,"ng-container",47)(2,qB,2,0,"ng-container",32),g()),t&2){let e=d().options,n=d(2);c("ngStyle",U(4,Ea,e.itemSize+"px")),p(),c("ngIf",!n.emptyTemplate)("ngIfElse",n.empty),p(),c("ngTemplateOutlet",n.emptyTemplate)}}function QB(t,i){if(t&1&&(m(0,"ul",64,11),f(2,zB,2,2,"ng-template",65)(3,GB,3,6,"li",66)(4,KB,3,6,"li",66),g()),t&2){let e=i.$implicit,n=i.options,r=d(2);_t(n.contentStyle),c("ngClass",n.contentStyleClass),w("aria-label",r.listLabel),p(2),c("ngForOf",e),p(),c("ngIf",r.hasFilter()&&r.isEmpty()),p(),c("ngIf",!r.hasFilter()&&r.isEmpty())}}function ZB(t,i){t&1&&H(0)}function YB(t,i){if(t&1&&(m(0,"div",70),xt(1,1),f(2,ZB,1,0,"ng-container",32),g()),t&2){let e=d(2);p(2),c("ngTemplateOutlet",e.footerTemplate)}}function XB(t,i){if(t&1){let e=F();m(0,"div",40)(1,"span",41,4),E("focus",function(r){y(e);let o=d();return v(o.onFirstHiddenFocus(r))}),g(),f(3,MB,6,3,"div",42),m(4,"div",43),f(5,LB,4,11,"p-scroller",44)(6,VB,2,6,"ng-container",19)(7,QB,5,7,"ng-template",null,5,it),g(),f(9,YB,3,1,"div",45),m(10,"span",41,6),E("focus",function(r){y(e);let o=d();return v(o.onLastHiddenFocus(r))}),g()()}if(t&2){let e=d();R(e.panelStyleClass),c("ngClass","p-multiselect-panel p-component")("ngStyle",e.panelStyle),w("id",e.id+"_list"),p(),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),p(2),c("ngIf",e.showHeader),p(),On("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),p(),c("ngIf",e.virtualScroll),p(),c("ngIf",!e.virtualScroll),p(3),c("ngIf",e.footerFacet||e.footerTemplate),p(),w("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var JB={provide:Ft,useExisting:dt(()=>ig),multi:!0},ej=(()=>{class t{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;template;checkIconTemplate;onClick=new O;onMouseEnter=new O;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["p-multiSelectItem"]],hostAttrs:[1,"p-element"],inputs:{id:"id",option:"option",selected:[C.HasDecoratorInputTransform,"selected","selected",T],label:"label",disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],itemSize:[C.HasDecoratorInputTransform,"itemSize","itemSize",Q],focused:[C.HasDecoratorInputTransform,"focused","focused",T],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkIconTemplate:"checkIconTemplate"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[fe],decls:6,vars:25,consts:[["pRipple","","role","option",1,"p-multiselect-item",3,"click","mouseenter","ngStyle","ngClass","id"],[1,"p-checkbox","p-component"],[1,"p-checkbox-box",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",4,"ngIf"],[3,"styleClass"],[1,"p-checkbox-icon"],[4,"ngTemplateOutlet"]],template:function(n,r){n&1&&(m(0,"li",0),E("click",function(s){return r.onOptionClick(s)})("mouseenter",function(s){return r.onOptionMouseEnter(s)}),m(1,"div",1)(2,"div",2),f(3,TH,3,2,"ng-container",3),g()(),f(4,SH,2,1,"span",3)(5,DH,1,0,"ng-container",4),g()),n&2&&(c("ngStyle",U(16,Ea,r.itemSize+"px"))("ngClass",we(18,vH,r.disabled,r.focused))("id",r.id),w("aria-label",r.label)("aria-setsize",r.ariaSetSize)("aria-posinset",r.ariaPosInset)("aria-selected",r.selected)("data-p-focused",r.focused)("data-p-highlight",r.selected)("data-p-disabled",r.disabled)("aria-checked",r.selected),p(2),c("ngClass",U(21,CH,r.selected)),p(),c("ngIf",r.selected),p(),c("ngIf",!r.template),p(),c("ngTemplateOutlet",r.template)("ngTemplateOutletContext",U(23,ng,r.option)))},dependencies:()=>[Oe,Ce,Ae,je,Dt,Vt],encapsulation:2})}return t})(),ig=(()=>{class t{el;renderer;cd;zone;filterService;config;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!0;display="comma";autocomplete="off";showClear=!1;autofocus;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.warn("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){k.deepEquals(this._options(),e)||this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!1;filterFields;selectOnFocus=!1;autoOptionFocus=!0;onChange=new O;onFilter=new O;onFocus=new O;onBlur=new O;onClick=new O;onClear=new O;onPanelShow=new O;onPanelHide=new O;onLazyLoad=new O;onRemove=new O;onSelectAllChange=new O;containerViewChild;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;templates;searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder=Mt(void 0);_itemSize;_selectionLimit;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;filterIconTemplate;removeTokenIconTemplate;closeIconTemplate;clearIconTemplate;dropdownIconTemplate;headerCheckboxFocus;filterOptions;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=Mt(null);_filterValue=Mt(null);_options=Mt(null);startRangeIndex=Mt(-1);focusedOptionIndex=Mt(-1);selectedOptions;clickInProgress=!1;get containerClass(){return{"p-multiselect p-component p-inputwrapper":!0,"p-disabled":this.disabled,"p-multiselect-clearable":this.showClear&&!this.disabled,"p-multiselect-chip":this.display==="chip","p-focus":this.focused}}get inputClass(){return{"p-multiselect-label p-inputtext":!0,"p-placeholder":(this.placeholder()||this.defaultLabel)&&(this.label()===this.placeholder()||this.label()===this.defaultLabel),"p-multiselect-label-empty":!this.selectedItemsTemplate&&(this.label()==="p-emptylabel"||this.label().length===0)}}get panelClass(){return{"p-multiselect-panel p-component":!0,"p-input-filled":this.config.inputStyle==="filled","p-ripple-disabled":this.config.ripple===!1}}get labelClass(){return{"p-multiselect-label":!0,"p-placeholder":this.label()===this.placeholder()||this.label()===this.defaultLabel,"p-multiselect-label-empty":!this.placeholder()&&!this.defaultLabel&&(!this.modelValue()||this.modelValue().length===0)}}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(ze.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(ze.EMPTY_FILTER_MESSAGE)}get filled(){return typeof this.modelValue()=="string"?!!this.modelValue():k.isNotEmpty(this.modelValue())}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&k.isNotEmpty(this.modelValue())&&this.showClear&&!this.disabled&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get listLabel(){return this.config.getTranslation(ze.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=yn(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=k.isArray(e)&&k.isObject(e[0]);if(this._filterValue()){let r;if(n?r=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):r=e.filter(o=>o.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let o=this.options||[],s=[];return o.forEach(a=>{let u=this.getOptionGroupChildren(a).filter(h=>r.includes(h));u.length>0&&s.push(Le($({},a),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...u]}))}),this.flatOptions(s)}return r}return e});label=yn(()=>{let e,n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(k.isNotEmpty(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let r=0;r<n.length;r++)r!==0&&(e+=", "),e+=this.getLabelByValue(n[r])}else e=this.placeholder()||this.defaultLabel||"";return e});chipSelectedItems=yn(()=>k.isNotEmpty(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,r,o,s,a,l){this.el=e,this.renderer=n,this.cd=r,this.zone=o,this.filterService=s,this.config=a,this.overlayService=l,Qr(()=>{let u=this.modelValue(),h=this.visibleOptions();h&&k.isNotEmpty(h)&&(this.optionValue&&this.optionLabel&&u?this.selectedOptions=h.filter(_=>u.includes(_[this.optionLabel])||u.includes(_[this.optionValue])):this.selectedOptions=u,this.cd.markForCheck())})}ngOnInit(){this.id=this.id||me(),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"selectedItems":this.selectedItemsTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"checkicon":this.checkIconTemplate=e.template;break;case"filtericon":this.filterIconTemplate=e.template;break;case"removetokenicon":this.removeTokenIconTemplate=e.template;break;case"closeicon":this.closeIconTemplate=e.template;break;case"clearicon":this.clearIconTemplate=e.template;break;case"dropdownicon":this.dropdownIconTemplate=e.template;break;default:this.itemTemplate=e.template;break}})}ngAfterViewInit(){this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,r,o)=>{n.push({optionGroup:r,group:!0,index:o});let s=this.getOptionGroupChildren(r);return s&&s.forEach(a=>n.push(a)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,r=-1){let{originalEvent:o,option:s}=e;if(this.disabled||this.isOptionDisabled(s))return;let a=this.isSelected(s),l=null;a?l=this.modelValue().filter(u=>!k.equals(u,this.getOptionValue(s),this.equalityKey())):l=[...this.modelValue()||[],this.getOptionValue(s)],this.updateModel(l,o),r!==-1&&this.focusedOptionIndex.set(r),n&&b.focus(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:l,itemValue:s})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,n=-1,r=-1){if(n===-1&&(n=this.findNearestSelectedOptionIndex(r,!0)),r===-1&&(r=this.findNearestSelectedOptionIndex(n)),n!==-1&&r!==-1){let o=Math.min(n,r),s=Math.max(n,r),a=this.visibleOptions().slice(o,s+1).filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(a,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,n=!1){let r=-1;return this.hasSelectedOption()&&(n?(r=this.findPrevSelectedOptionIndex(e),r=r===-1?this.findNextSelectedOptionIndex(e):r):(r=this.findNextSelectedOptionIndex(e),r=r===-1?this.findPrevSelectedOptionIndex(e):r)),r>-1?r:e}findPrevSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e>0?k.findLastIndex(this.visibleOptions().slice(0,e),r=>this.isValidSelectedOption(r)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(r=>this.isValidSelectedOption(r)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return k.isNotEmpty(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?k.resolveFieldData(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let n=this.getOptionValue(e);return(this.modelValue()||[]).some(r=>k.equals(r,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let r=(this.group?this.flatOptions(this._options()):this._options()||[]).find(o=>!this.isOptionGroup(o)&&k.equals(this.getOptionValue(o),e,this.equalityKey()));return r?this.getOptionLabel(r):null}getSelectedItemsLabel(){let e=/{(.*?)}/,n=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(ze.SELECTION_MESSAGE);return e.test(n)?n.replace(n.match(e)[0],this.modelValue().length+""):n}getOptionLabel(e){return this.optionLabel?k.resolveFieldData(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?k.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?k.resolveFieldData(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?k.resolveFieldData(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled){e.preventDefault();return}let n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&n){let r=this.visibleOptions().filter(o=>this.isValidOption(o)).map(o=>this.getOptionValue(o));this.updateModel(r,e),e.preventDefault();break}!n&&k.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let r=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,r,this.startRangeIndex()),this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){let{currentTarget:r}=e;if(n){let o=r.value.length;r.setSelectionRange(0,e.shiftKey?o:0),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){let{currentTarget:r}=e;if(n){let o=r.value.length;r.setSelectionRange(e.shiftKey?0:o,o),this.focusedOptionIndex.set(-1)}else{let o=e.metaKey||e.ctrlKey,s=this.findLastFocusedOptionIndex();e.shiftKey&&o&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(b.focus(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(this.focusedOptionIndex()!==-1&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if(e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')){e.preventDefault();return}else if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?b.getFirstFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;b.focus(n)}onInputFocus(e){this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value;this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()})}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?b.getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;b.focus(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"Space":this.onToggleAll(e);break;case"Enter":this.onToggleAll(e);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!(this.disabled||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let n=this.getAllVisibleAndNonVisibleOptions().filter(a=>this.isSelected(a)&&(this.optionDisabled?k.resolveFieldData(a,this.optionDisabled):a&&a.disabled!==void 0?a.disabled:!1)),r=this.allSelected()?this.visibleOptions().filter(a=>!this.isValidOption(a)&&this.isSelected(a)):this.visibleOptions().filter(a=>this.isSelected(a)||this.isValidOption(a)),o=[...n,...r].map(a=>this.getOptionValue(a)),s=[...new Set(o)];this.updateModel(s,e),(!s.length||s.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!s.length})}this.onChange.emit({originalEvent:e,value:this.value}),b.focus(this.headerCheckboxViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.preventDefault(),e.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let r=b.findSingle(this.itemsViewChild.nativeElement,`li[id="${n}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return this.selectAll!==null?this.selectAll:k.isNotEmpty(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}show(e){this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),e&&b.focus(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&b.unblockBodyScroll(),e&&b.focus(this.focusInputViewChild?.nativeElement),this.onPanelHide.emit(),this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.itemsWrapper=b.findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-items-wrapper"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this._options()&&this._options().length)if(this.virtualScroll){let n=k.isNotEmpty(this.modelValue())?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=b.findSingle(this.itemsWrapper,'[data-p-highlight="true"]');n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit();case"void":this.itemsWrapper=null,this.onModelTouched();break}}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateModel(null,e),this.selectedOptions=null,this.onClear.emit(),e.stopPropagation()}removeOption(e,n){let r=this.modelValue().filter(o=>!k.equals(o,e,this.equalityKey()));this.updateModel(r,n),this.onChange.emit({originalEvent:n,value:r,itemValue:e}),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?b.hasClass(n.children[0],"p-disabled")||b.isHidden(n.children[0])||b.hasClass(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?b.hasClass(n.children[0],"p-disabled")||b.isHidden(n.children[0])||b.hasClass(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(r=>this.isValidOption(r)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?k.findLastIndex(this.visibleOptions().slice(0,e),r=>this.isValidOption(r)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?k.findLastIndex(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return k.findLastIndex(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let r=-1,o=!1;return this.focusedOptionIndex()!==-1?(r=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)),r=r===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)):r+this.focusedOptionIndex()):r=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),r!==-1&&(o=!0),r===-1&&this.focusedOptionIndex()===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=[];for(let n of this.options){let r=this.filterService.filter(this.getOptionGroupChildren(n),this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);r&&r.length&&e.push(Le($({},n),{[this.optionGroupChildren]:r}))}this._filteredOptions=e}else this._filteredOptions=this.filterService.filter(this.options,this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);else this._filteredOptions=null}hasFocusableElements(){return b.getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(n){return new(n||t)(x(_e),x(Be),x(ce),x(ge),x(os),x(ot),x(un))};static \u0275cmp=P({type:t,selectors:[["p-multiSelect"]],contentQueries:function(n,r,o){if(n&1&&(Re(o,ss,5),Re(o,uu,5),Re(o,xe,4)),n&2){let s;j(s=z())&&(r.footerFacet=s.first),j(s=z())&&(r.headerFacet=s.first),j(s=z())&&(r.templates=s)}},viewQuery:function(n,r){if(n&1&&(Z(EH,5),Z(MH,5),Z(OH,5),Z(kH,5),Z(FH,5),Z(AH,5),Z(RH,5),Z(LH,5),Z(NH,5)),n&2){let o;j(o=z())&&(r.containerViewChild=o.first),j(o=z())&&(r.overlayViewChild=o.first),j(o=z())&&(r.filterInputChild=o.first),j(o=z())&&(r.focusInputViewChild=o.first),j(o=z())&&(r.itemsViewChild=o.first),j(o=z())&&(r.scroller=o.first),j(o=z())&&(r.lastHiddenFocusableElementOnOverlay=o.first),j(o=z())&&(r.firstHiddenFocusableElementOnOverlay=o.first),j(o=z())&&(r.headerCheckboxViewChild=o.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(n,r){n&2&&Ot("p-inputwrapper-focus",r.focused||r.overlayVisible)("p-inputwrapper-filled",r.filled)},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:[C.HasDecoratorInputTransform,"disabled","disabled",T],readonly:[C.HasDecoratorInputTransform,"readonly","readonly",T],group:[C.HasDecoratorInputTransform,"group","group",T],filter:[C.HasDecoratorInputTransform,"filter","filter",T],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[C.HasDecoratorInputTransform,"overlayVisible","overlayVisible",T],tabindex:[C.HasDecoratorInputTransform,"tabindex","tabindex",Q],appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[C.HasDecoratorInputTransform,"selectionLimit","selectionLimit",Q],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[C.HasDecoratorInputTransform,"showToggleAll","showToggleAll",T],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[C.HasDecoratorInputTransform,"resetFilterOnHide","resetFilterOnHide",T],dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[C.HasDecoratorInputTransform,"showHeader","showHeader",T],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[C.HasDecoratorInputTransform,"lazy","lazy",T],virtualScroll:[C.HasDecoratorInputTransform,"virtualScroll","virtualScroll",T],virtualScrollItemSize:[C.HasDecoratorInputTransform,"virtualScrollItemSize","virtualScrollItemSize",Q],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[C.HasDecoratorInputTransform,"autofocusFilter","autofocusFilter",T],display:"display",autocomplete:"autocomplete",showClear:[C.HasDecoratorInputTransform,"showClear","showClear",T],autofocus:[C.HasDecoratorInputTransform,"autofocus","autofocus",T],autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:[C.HasDecoratorInputTransform,"focusOnHover","focusOnHover",T],filterFields:"filterFields",selectOnFocus:[C.HasDecoratorInputTransform,"selectOnFocus","selectOnFocus",T],autoOptionFocus:[C.HasDecoratorInputTransform,"autoOptionFocus","autoOptionFocus",T]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[ht([JB]),fe],ngContentSelectors:PH,decls:16,vars:42,consts:[["container",""],["focusInput",""],["overlay",""],["token",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["filterInput",""],["scroller",""],["items",""],["emptyFilter",""],["empty",""],[3,"click","ngClass","ngStyle"],[1,"p-hidden-accessible"],["role","combobox","pAutoFocus","",3,"focus","blur","keydown","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","autofocus"],[1,"p-multiselect-label-container",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-multiselect-trigger"],["class","p-multiselect-trigger-icon",4,"ngIf"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],["pTemplate","content"],["class","p-multiselect-token",4,"ngFor","ngForOf"],[1,"p-multiselect-token"],[1,"p-multiselect-token-label"],[3,"styleClass","click",4,"ngIf"],["class","p-multiselect-token-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-multiselect-token-icon",3,"click"],[4,"ngTemplateOutlet"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],["class","p-multiselect-trigger-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-trigger-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-trigger-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-items-wrapper"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],["class","p-multiselect-footer",4,"ngIf"],[1,"p-multiselect-header"],[4,"ngIf","ngIfElse"],["class","p-checkbox p-component",3,"ngClass","click","keydown",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],["type","button","pRipple","",1,"p-multiselect-close","p-link","p-button-icon-only",3,"click"],["class","p-multiselect-close-icon",4,"ngIf"],[1,"p-checkbox","p-component",3,"click","keydown","ngClass"],["type","checkbox",3,"focus","blur","readonly","disabled"],["role","checkbox",1,"p-checkbox-box",3,"ngClass"],["class","p-checkbox-icon",4,"ngIf"],[1,"p-checkbox-icon"],[1,"p-multiselect-filter-container"],["type","text","role","searchbox","role","searchbox",1,"p-multiselect-filter","p-inputtext","p-component",3,"input","keydown","click","blur","value","disabled"],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[1,"p-multiselect-close-icon"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["pTemplate","loader"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-items","p-component",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-item-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","selected","label","disabled","template","checkIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize"],["role","option",1,"p-multiselect-empty-message",3,"ngStyle"],[1,"p-multiselect-footer"]],template:function(n,r){if(n&1){let o=F();Gt(VH),m(0,"div",14,0),E("click",function(a){return y(o),v(r.onContainerClick(a))}),m(2,"div",15)(3,"input",16,1),E("focus",function(a){return y(o),v(r.onInputFocus(a))})("blur",function(a){return y(o),v(r.onInputBlur(a))})("keydown",function(a){return y(o),v(r.onKeyDown(a))}),g()(),m(5,"div",17)(6,"div",18),f(7,YH,3,2,"ng-container",19)(8,XH,1,0,"ng-container",20),g(),f(9,iB,3,2,"ng-container",19),g(),m(10,"div",21),f(11,sB,3,2,"ng-container",19)(12,cB,2,3,"span",22),g(),m(13,"p-overlay",23,2),Nt("visibleChange",function(a){return y(o),Bt(r.overlayVisible,a)||(r.overlayVisible=a),v(a)}),E("onAnimationStart",function(a){return y(o),v(r.onOverlayAnimationStart(a))})("onHide",function(){return y(o),v(r.hide())}),f(15,XB,12,17,"ng-template",24),g()()}if(n&2){let o;R(r.styleClass),c("ngClass",r.containerClass)("ngStyle",r.style),w("id",r.id),p(2),w("data-p-hidden-accessible",!0),p(),c("pTooltip",r.tooltip)("tooltipPosition",r.tooltipPosition)("positionStyle",r.tooltipPositionStyle)("tooltipStyleClass",r.tooltipStyleClass)("autofocus",r.autofocus),w("aria-disabled",r.disabled)("id",r.inputId)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",(o=r.overlayVisible)!==null&&o!==void 0?o:!1)("aria-controls",r.overlayVisible?r.id+"_list":null)("tabindex",r.disabled?-1:r.tabindex)("aria-activedescendant",r.focused?r.focusedOptionId:void 0),p(2),c("pTooltip",r.tooltip)("tooltipPosition",r.tooltipPosition)("positionStyle",r.tooltipPositionStyle)("tooltipStyleClass",r.tooltipStyleClass),p(),c("ngClass",r.labelClass),p(),c("ngIf",!r.selectedItemsTemplate),p(),c("ngTemplateOutlet",r.selectedItemsTemplate)("ngTemplateOutletContext",we(39,HH,r.selectedOptions,r.removeOption.bind(r))),p(),c("ngIf",r.isVisibleClearIcon),p(2),c("ngIf",!r.dropdownIconTemplate),p(),c("ngIf",r.dropdownIconTemplate),p(),Lt("visible",r.overlayVisible),c("options",r.overlayOptions)("target","@parent")("appendTo",r.appendTo)("autoZIndex",r.autoZIndex)("baseZIndex",r.baseZIndex)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}},dependencies:()=>[Oe,Ct,Ce,Ae,je,so,xe,ps,Dt,wr,jt,Vt,hs,Gi,mt,$n,ej],styles:[`@layer primeng{.p-multiselect{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-multiselect-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-multiselect-label-container{overflow:hidden;flex:1 1 auto;cursor:pointer;display:flex}.p-multiselect-label{display:block;white-space:nowrap;cursor:pointer;overflow:hidden;text-overflow:ellipsis}.p-multiselect-label-empty{overflow:hidden;visibility:hidden}.p-multiselect-token{cursor:default;display:inline-flex;align-items:center;flex:0 0 auto}.p-multiselect-token-icon{cursor:pointer}.p-multiselect-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100px}.p-multiselect-items-wrapper{overflow:auto}.p-multiselect-items{margin:0;padding:0;list-style-type:none}.p-multiselect-item{cursor:pointer;display:flex;align-items:center;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-multiselect-header{display:flex;align-items:center;justify-content:space-between}.p-multiselect-filter-container{position:relative;flex:1 1 auto}.p-multiselect-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-multiselect-filter-container .p-inputtext{width:100%}.p-multiselect-close{display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;position:relative}.p-fluid .p-multiselect{display:flex}.p-multiselect-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-multiselect-clearable{position:relative}}
116
+ `],encapsulation:2,changeDetection:0})}return t})(),Ub=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=te({type:t});static \u0275inj=ee({imports:[ue,Wi,ke,ao,At,Wn,St,Vt,hs,Gi,mt,$n,Vt,Wi,ke,Wn]})}return t})();var Ou=(()=>{let i=class i{constructor(n){this.route=n}setHeadersFromQueryParams(n,r){let o=this.route.snapshot.queryParams;for(let s in o){let a=o[s];s=s.toLowerCase(),(s===st.AUTHORIZATION_AM||s===st.AUTHORIZATION_AM_USER||s===st.AUTHORIZATION_AWS||s===st.AUTHORIZATION_GOOGLE||s===st.AUTHORIZATION_AZURE)&&(n[s]=a),(s===st.DB_MASTER_NAME||s===st.ADMIN_PATH||s===st.THEME)&&(r[s]=a)}if(!r[st.ADMIN_PATH])throw new Error(`Please provide '${st.ADMIN_PATH}' in query params.`);if(!r[st.DB_MASTER_NAME])throw new Error(`Please provide '${st.DB_MASTER_NAME}' in query params.`);console.log(r)}getDataKeyFromConfig(n,r){return n.grid?.selection?.mode?r.calculated?.primaryKey||n.grid.selection.dataKey:""}getMetaKeySelection(n){return typeof n.grid?.selection?.metaKeySelection<"u"?n.grid?.selection.metaKeySelection:!0}getIsLazyLoading(n){return typeof n.grid?.pagination?.serverSidePagination<"u"?n.grid?.pagination.serverSidePagination:!1}};i.\u0275fac=function(r){return new(r||i)(Y(Ii))},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var nj=["primeNGGrid"],rg=()=>[],ij=()=>[10,20,50,100,500,1e3],rj=t=>({"min-width":t}),Ma=()=>({"margin-right":"10px"}),oj=()=>({width:"300px","margin-right":"10px"}),sj=()=>({width:"250px","margin-right":"10px"});function aj(t,i){if(t&1&&(m(0,"span"),K(1),g()),t&2){let e=d(2);p(),se((e.config.grid==null?null:e.config.grid.header)||"")}}function lj(t,i){t&1&&(m(0,"span",16),K(1,"*"),g())}function cj(t,i){if(t&1){let e=F();m(0,"p-button",17),E("click",function(){y(e);let r=d(2);return v(r.deleteAllButtonClicked())}),g()}if(t&2){let e=d(2);_t(Qe(4,Ma)),c("label","Delete("+e.selectedGridItems.length+")")("raised",!0)}}function uj(t,i){if(t&1){let e=F();m(0,"p-button",18),E("click",function(){y(e);let r=d(2);return v(r.addButtonClickEvent.emit())}),g()}t&2&&(_t(Qe(3,Ma)),c("raised",!0))}function dj(t,i){if(t&1){let e=F();m(0,"span",19),D(1,"i",20),m(2,"input",21),E("dblclick",function(r){return y(e),r.preventDefault(),v(r.stopImmediatePropagation())})("keyup.delete",function(r){return y(e),r.preventDefault(),v(r.stopImmediatePropagation())})("input",function(r){y(e),d(2);let o=Ee(1);return v(o.filterGlobal((r.target==null?null:r.target.value)||"","contains"))}),g()()}t&2&&(p(2),_t(Qe(2,Ma)))}function pj(t,i){if(t&1){let e=F();m(0,"p-multiSelect",22),Nt("ngModelChange",function(r){y(e);let o=d(2);return Bt(o.selectedFields,r)||(o.selectedFields=r),v(r)}),g()}if(t&2){let e=d(2);_t(Qe(4,oj)),c("options",(e.config.grid==null?null:e.config.grid.fields)||Qe(5,rg)),Lt("ngModel",e.selectedFields)}}function hj(t,i){if(t&1){let e=F();m(0,"p-dropdown",23),Nt("ngModelChange",function(r){y(e);let o=d(2);return Bt(o.selectedTheme,r)||(o.selectedTheme=r),v(r)}),E("ngModelChange",function(){y(e);let r=d(2);return v(r.onThemeChange())}),g()}if(t&2){let e=d(2);_t(Qe(5,sj)),c("options",e.themes),Lt("ngModel",e.selectedTheme),c("filter",!0)}}function fj(t,i){if(t&1){let e=F();f(0,aj,2,1,"span",6)(1,lj,2,0,"span",7)(2,cj,1,5,"p-button",8)(3,uj,1,4,"p-button",9),m(4,"p-button",10),E("click",function(){y(e);let r=d();return v(r.loadData(r.lastGridLoadEvent))}),g(),D(5,"p-menu",11,1),m(7,"button",12),E("click",function(r){y(e);let o=Ee(6);return v(o.toggle(r))}),g(),f(8,dj,3,3,"span",13)(9,pj,1,6,"p-multiSelect",14)(10,hj,1,6,"p-dropdown",15)}if(t&2){let e=d();c("ngIf",e.config.grid==null?null:e.config.grid.header),p(),c("ngIf",!(e.config.grid!=null&&e.config.grid.header)),p(),c("ngIf",(e.config.operations==null?null:e.config.operations.delete)&&(e.config.grid==null||e.config.grid.selection==null?null:e.config.grid.selection.mode)==="multiple"&&e.selectedGridItems.length>1),p(),c("ngIf",e.config.operations==null?null:e.config.operations.add),p(),_t(Qe(14,Ma)),c("raised",!0),p(),c("model",e.exportTypes)("popup",!0),p(2),_t(Qe(15,Ma)),p(),c("ngIf",e.config.grid==null||e.config.grid.filter==null?null:e.config.grid.filter.showGlobalSearch),p(),c("ngIf",e.config.grid==null?null:e.config.grid.showColumnSelector),p(),c("ngIf",e.config.showThemeSelector)}}function mj(t,i){t&1&&(m(0,"th",27),D(1,"p-tableHeaderCheckbox"),g())}function gj(t,i){if(t&1&&D(0,"p-sortIcon",31),t&2){let e=d().$implicit;c("field",e.path)}}function _j(t,i){if(t&1&&(m(0,"th",28),D(1,"span",29),f(2,gj,1,1,"p-sortIcon",30),g()),t&2){let e=i.$implicit;c("pSortableColumnDisabled",!e.enableSorting)("pSortableColumn",e.enableSorting?e.path:void 0),p(),c("innerHTML",e.header,ri),p(),c("ngIf",e.enableSorting)}}function yj(t,i){t&1&&D(0,"th",26)}function vj(t,i){if(t&1){let e=F();m(0,"th")(1,"p-columnFilter",34),E("dblclick",function(r){return y(e),r.preventDefault(),v(r.stopImmediatePropagation())})("keyup.delete",function(r){return y(e),r.preventDefault(),v(r.stopImmediatePropagation())}),g()()}if(t&2){let e=i.$implicit;p(),c("type",e.filterType)("field",e.path)}}function Cj(t,i){if(t&1&&(m(0,"tr"),f(1,yj,1,0,"th",32)(2,vj,2,2,"th",33),D(3,"th",26),g()),t&2){let e=d(2);p(),c("ngIf",(e.config.grid==null||e.config.grid.selection==null?null:e.config.grid.selection.checkboxSelection)&&(e.config.grid==null||e.config.grid.selection==null?null:e.config.grid.selection.mode)==="multiple"),p(),c("ngForOf",e.selectedFields)}}function bj(t,i){if(t&1&&(m(0,"tr"),f(1,mj,2,0,"th",24)(2,_j,3,4,"th",25),D(3,"th",26),g(),f(4,Cj,4,2,"tr",6)),t&2){let e=d();p(),c("ngIf",(e.config.grid==null||e.config.grid.selection==null?null:e.config.grid.selection.checkboxSelection)&&(e.config.grid==null||e.config.grid.selection==null?null:e.config.grid.selection.mode)==="multiple"),p(),c("ngForOf",e.selectedFields),p(2),c("ngIf",e.config.grid==null||e.config.grid.filter==null?null:e.config.grid.filter.rowFilter)}}function wj(t,i){if(t&1&&(m(0,"td",37),D(1,"p-tableCheckbox",40),g()),t&2){let e=d().$implicit;p(),c("value",e)}}function Ij(t,i){if(t&1&&(m(0,"td"),D(1,"span",29),g()),t&2){let e=i.$implicit,n=d().$implicit;p(),c("innerHTML",n[(e==null?null:e.path)||""]||"",ri)}}function xj(t,i){if(t&1){let e=F();m(0,"i",41),E("click",function(){y(e);let r=d().$implicit,o=d();return v(o.deleteClicked(r))}),g()}}function Tj(t,i){if(t&1){let e=F();m(0,"i",42),E("click",function(){y(e);let r=d().$implicit,o=d();return v(o.editClicked(r))}),g()}}function Sj(t,i){if(t&1&&(m(0,"tr",35),f(1,wj,2,1,"td",36)(2,Ij,2,1,"td",33),m(3,"td",37),f(4,xj,1,0,"i",38)(5,Tj,1,0,"i",39),g()()),t&2){let e=i.$implicit,n=i.rowIndex,r=d();c("pSelectableRow",e)("pSelectableRowIndex",n),p(),c("ngIf",(r.config.grid==null||r.config.grid.selection==null?null:r.config.grid.selection.checkboxSelection)&&(r.config.grid==null||r.config.grid.selection==null?null:r.config.grid.selection.mode)==="multiple"),p(),c("ngForOf",r.selectedFields||Qe(6,rg)),p(2),c("ngIf",r.config.operations==null?null:r.config.operations.delete),p(),c("ngIf",r.config.operations==null?null:r.config.operations.edit)}}var Gb=(()=>{let _GridC=class _GridC{constructor(t,i,e,n,r,o,s){this.apisService=t,this.themeService=i,this.utilsService=e,this.filterService=n,this.cd=r,this.confirmationService=o,this.msgWrapperService=s,this.schema=void 0,this.dbMaster=void 0,this.config=void 0,this.headers=void 0,this.queryParams=void 0,this.addButtonClickEvent=new O,this.editButtonClickEvent=new O,this.primeNGGrid=void 0,this.selectedFields=[],this.lastGridLoadEvent=null,this.gridData=[],this.selectedGridItems=void 0,this.totalRecords=void 0,this.loadingGrid=!1,this.metaKeySelection=!0,this.themes=[],this.exportTypes=[],this.isLazyLoading=void 0,this.isClientSideLoading=void 0}ngOnInit(){this.themes=this.themeService.getListOfAllThemes(),this.exportTypes=this.getListOfAllExports(this.config),this.setSelectedTheme(),this.validateSelectionObject(),this.metaKeySelection=this.utilsService.getMetaKeySelection(this.config),this.isLazyLoading=this.utilsService.getIsLazyLoading(this.config),this.isClientSideLoading=!this.isLazyLoading,this.isClientSideLoading&&this.loadData(null).then(),this.config.grid?.selection?.mode==="multiple"?this.selectedGridItems=[]:this.config.grid?.selection?.mode==="single"&&(this.selectedGridItems=void 0),this.selectedFields=this.config?.grid?.fields?.length?[...this.config.grid.fields]:[]}setSelectedTheme(){for(let t of this.themes)if(t.name===this.config.theme){this.selectedTheme=t;break}}validateSelectionObject(){if(this.config.grid?.selection?.mode){let t=this.utilsService.getDataKeyFromConfig(this.config,this.schema);t?this.dataKey=t:this.msgWrapperService.showError("Unable to get dataKey for selection.")}}loadData(t){return Ge(this,null,function*(){t?console.log(t):t=t||this.lastGridLoadEvent,this.lastGridLoadEvent=t||this.lastGridLoadEvent,this.loadingGrid=!0,this.selectedGridItems=[];try{let i={find:{},limit:t?.rows,skip:t?.first,getTotalCount:!0,select:this.config.grid?.selectFieldsForQuery||{}};this.filterService.applyGlobalFilterForServerSidePagination(this.config,this.schema,t,i),this.filterService.applyNormalFilterForServerSidePagination(this.config,this.schema,t,i),this.applySortingForServerSidePagination(this.config,t,i),yield this.runCustomJSFromConfigBeforeGridRender(this.lastGridLoadEvent,i);let e=yield this.apisService.queryStream(this.queryParams[st.ADMIN_PATH],this.schema,this.dbMaster,this.headers,i);this.gridData=e.data,this.isLazyLoading?this.totalRecords=e.totalCount:this.totalRecords=this.gridData.length,this.formatDatesFromData(this.config,this.gridData),yield this.runCustomJSFromConfigOnGridRender(this.lastGridLoadEvent,this.gridData)}catch(i){this.apisService.showErrorFromResponse(i?.error||i,"Unable to load data.")}this.loadingGrid=!1,this.cd.detectChanges()})}applySortingForServerSidePagination(t,i,e){if(t.grid?.pagination?.serverSidePagination&&i&&i.multiSortMeta?.length){e.sort=e.sort||{};for(let n of i.multiSortMeta)e.sort[n.field]=n.order}}formatDatesFromData(t,i){for(let e of t?.grid?.fields||[]){let n=e;if(n.type===tn.date){if(!n.autoFormatDate)continue;for(let r of i){let o=r[n.path];if(o)try{n.dateTimeZone&&(o=dateFnsTz.toZonedTime(o,n.dateTimeZone)),r[n.path]=dateFns.format(dateFns.toDate(o),n.dateTimeFormat||t.dateTimeFormat||this.filterService.userDateFormat)}catch(s){console.log(s)}}}}}runCustomJSFromConfigBeforeGridRender(gridEvent,reqBody){return Ge(this,null,function*(){for(let jsCode of this.config?.jsCode||[])if(jsCode.appendTo==="modifyGridRequest")try{let output=eval(jsCode.code);output instanceof Promise?yield output:output instanceof Function&&output()}catch(t){console.log(t)}})}runCustomJSFromConfigOnGridRender(gridEvent,gridData){return Ge(this,null,function*(){for(let jsCode of this.config?.jsCode||[])if(jsCode.appendTo==="gridRender")try{let output=eval(jsCode.code);output instanceof Promise?yield output:output instanceof Function&&output()}catch(t){console.log(t)}this.cd.detectChanges()})}deleteClicked(t){let i=!0;this.config.operations?.hideDeleteConfirmation&&(i=!1),i?this.confirmationService.confirm({message:"Do you want to remove this record?",header:"Confirmation",acceptButtonStyleClass:"p-button-danger p-button-text",rejectButtonStyleClass:"p-button-text",icon:"pi pi-exclamation-triangle",accept:()=>{this.removePermanent(t).then()}}):this.removePermanent(t).then()}removePermanent(t){return Ge(this,null,function*(){this.loadingGrid=!0;let i=t[this.apisService.getPKFiled(this.schema)];try{yield this.apisService.deleteById(this.queryParams[st.ADMIN_PATH],this.schema,this.dbMaster,this.headers,i),this.msgWrapperService.showSuccess("Record deleted successfully."),yield this.loadData(this.lastGridLoadEvent)}catch(e){this.apisService.showErrorFromResponse(e?.error||e,"Record delete operation failed.")}this.loadingGrid=!1})}editClicked(t){this.editButtonClickEvent.emit(t)}dblClickGridEvent(){this.config.operations?.edit&&setTimeout(()=>{let t=Array.isArray(this.selectedGridItems)?this.selectedGridItems[0]:this.selectedGridItems;t&&this.editClicked(t)},10)}deleteButtonClickGridEvent(){this.config.operations?.delete&&setTimeout(()=>{let t=Array.isArray(this.selectedGridItems)?this.selectedGridItems[0]:this.selectedGridItems;t&&this.deleteClicked(t)},10)}onThemeChange(){this.themeService.setTheme(this.selectedTheme?.name)}deleteAllButtonClicked(){if(Array.isArray(this.selectedGridItems)){let t=!0;this.config.operations?.hideDeleteAllConfirmation&&(t=!1);let i=()=>Ge(this,null,function*(){yield this.deleteAllAPICall()});t?this.confirmationService.confirm({message:`Do you want to remove ${this.selectedGridItems.length} records?`,header:"Confirmation",acceptButtonStyleClass:"p-button-danger p-button-text",rejectButtonStyleClass:"p-button-text",icon:"pi pi-exclamation-triangle",accept:()=>{i().then()}}):i().then()}}deleteAllAPICall(){return Ge(this,null,function*(){if(Array.isArray(this.selectedGridItems)){this.loadingGrid=!0;try{let t=[];for(let i of this.selectedGridItems)t.push(i[this.dataKey]);yield this.apisService.deleteByQuery(this.queryParams[st.ADMIN_PATH],this.schema,this.headers,{find:{[this.dataKey]:{$in:t}}}),this.msgWrapperService.showSuccess(`${this.selectedGridItems.length} records deleted successfully.`),this.selectedGridItems=[],yield this.loadData(this.lastGridLoadEvent)}catch(t){this.apisService.showErrorFromResponse(t?.error||t,"Delete all operation failed.")}this.loadingGrid=!1}})}getListOfAllExports(t){let i=[];return t.export?.csv&&(i.push({label:as.CSV,command:this.onExportTypeChange.bind(this)}),i.push({label:as.CSV_SELECTED,command:this.onExportTypeChange.bind(this)})),i}onExportTypeChange(t){let i=t.item;i.label===as.CSV?this.primeNGGrid.exportCSV():i.label===as.CSV_SELECTED&&this.primeNGGrid.exportCSV({selectionOnly:!0})}};_GridC.\u0275fac=function(i){return new(i||_GridC)(x(Si),x(cs),x(Ou),x(ms),x(ce),x(gr),x(xr))},_GridC.\u0275cmp=P({type:_GridC,selectors:[["app-grid"]],viewQuery:function(i,e){if(i&1&&Z(nj,5),i&2){let n;j(n=z())&&(e.primeNGGrid=n.first)}},inputs:{schema:"schema",dbMaster:"dbMaster",config:"config",headers:"headers",queryParams:"queryParams"},outputs:{addButtonClickEvent:"addButtonClickEvent",editButtonClickEvent:"editButtonClickEvent"},standalone:!0,features:[J],decls:5,vars:23,consts:[["primeNGGrid",""],["exportMenu",""],["styleClass","p-datatable-sm p-datatable-striped data-grid-height",3,"onLazyLoad","selectionChange","dblclick","keyup.delete","value","columns","scrollable","scrollHeight","lazy","totalRecords","loading","metaKeySelection","selectionMode","dataKey","selection","sortMode","multiSortMeta","globalFilterFields","paginator","rows","showCurrentPageReport","rowsPerPageOptions","tableStyle"],["pTemplate","caption"],["pTemplate","header"],["pTemplate","body"],[4,"ngIf"],["style","color: transparent;",4,"ngIf"],["label","Delete","class","float-end","severity","danger","icon","pi pi-trash",3,"label","style","raised","click",4,"ngIf"],["label","Add","class","float-end","icon","pi pi-plus",3,"style","raised","click",4,"ngIf"],["severity","success","icon","pi pi-sync",1,"float-end",3,"click","raised"],[3,"model","popup"],["pButton","","type","button","severity","success","icon","pi pi-file-export",1,"float-end",3,"click"],["class","p-input-icon-left ml-auto float-end",4,"ngIf"],["class","float-end","optionLabel","header",3,"options","ngModel","style","ngModelChange",4,"ngIf"],["class","float-end","filterBy","name","optionLabel","name",3,"options","ngModel","filter","style","ngModelChange",4,"ngIf"],[2,"color","transparent"],["label","Delete","severity","danger","icon","pi pi-trash",1,"float-end",3,"click","label","raised"],["label","Add","icon","pi pi-plus",1,"float-end",3,"click","raised"],[1,"p-input-icon-left","ml-auto","float-end"],[1,"pi","pi-search"],["pInputText","","type","text","placeholder","Search keyword",3,"dblclick","keyup.delete","input"],["optionLabel","header",1,"float-end",3,"ngModelChange","options","ngModel"],["filterBy","name","optionLabel","name",1,"float-end",3,"ngModelChange","options","ngModel","filter"],["style","width: 3.5rem","class","text-center p-0",4,"ngIf"],[3,"pSortableColumnDisabled","pSortableColumn",4,"ngFor","ngForOf"],[2,"width","70px"],[1,"text-center","p-0",2,"width","3.5rem"],[3,"pSortableColumnDisabled","pSortableColumn"],[3,"innerHTML"],[3,"field",4,"ngIf"],[3,"field"],["style","width: 70px;",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"dblclick","keyup.delete","type","field"],[3,"pSelectableRow","pSelectableRowIndex"],["class","text-center p-0",4,"ngIf"],[1,"text-center","p-0"],["style","margin-right: 15px;","class","pi pi-trash cursor-pointer",3,"click",4,"ngIf"],["class","pi pi-pencil cursor-pointer",3,"click",4,"ngIf"],[3,"value"],[1,"pi","pi-trash","cursor-pointer",2,"margin-right","15px",3,"click"],[1,"pi","pi-pencil","cursor-pointer",3,"click"]],template:function(i,e){if(i&1){let n=F();m(0,"p-table",2,0),E("onLazyLoad",function(o){return y(n),v(e.loadData(o))}),Nt("selectionChange",function(o){return y(n),Bt(e.selectedGridItems,o)||(e.selectedGridItems=o),v(o)}),E("dblclick",function(){return y(n),v(e.dblClickGridEvent())})("keyup.delete",function(){return y(n),v(e.deleteButtonClickGridEvent())}),f(2,fj,11,16,"ng-template",3)(3,bj,5,3,"ng-template",4)(4,Sj,6,7,"ng-template",5),g()}i&2&&(c("value",e.gridData)("columns",e.selectedFields)("scrollable",!0)("scrollHeight","flex")("lazy",e.isLazyLoading)("totalRecords",e.totalRecords)("loading",e.loadingGrid)("metaKeySelection",e.metaKeySelection)("selectionMode",e.config.grid==null||e.config.grid.selection==null?null:e.config.grid.selection.mode)("dataKey",e.dataKey),Lt("selection",e.selectedGridItems),c("sortMode",(e.config==null||e.config.grid==null?null:e.config.grid.sortMode)||"single")("multiSortMeta",e.config.grid==null?null:e.config.grid.multiSortMeta)("globalFilterFields",(e.config.grid==null||e.config.grid.filter==null?null:e.config.grid.filter.globalSearchFields)||Qe(19,rg))("paginator",(e.config.grid==null||e.config.grid.pagination==null?null:e.config.grid.pagination.showPagination)||!1)("rows",(e.config==null||e.config.grid==null||e.config.grid.pagination==null?null:e.config.grid.pagination.rowsPerPage)||10)("showCurrentPageReport",!0)("rowsPerPageOptions",(e.config==null||e.config.grid==null||e.config.grid.pagination==null?null:e.config.grid.pagination.rowsPerPageOptions)||Qe(20,ij))("tableStyle",U(21,rj,(e.config==null||e.config.grid==null?null:e.config.grid.minWidth)||"50rem")))},dependencies:[ue,Ct,Ce,Eu,qn,xe,Mb,kb,Ob,Fb,Ab,Ym,Yt,bn,yu,Ub,ig,ai,$i,vn,Ki,qi,Bb,tg,Gn,br],encapsulation:2,changeDetection:0});let GridC=_GridC;return GridC})();var Wb=(()=>{let i=class i{constructor(){}loadCSSLibFromConfig(n){return Ge(this,null,function*(){for(let r of n?.externalLibs?.css||[])yield new Promise(o=>{let s=document.createElement("link");s.setAttribute("type","text/css"),s.setAttribute("rel","stylesheet"),s.setAttribute("href",r),s.onload=()=>{o(null)},document.head.appendChild(s)})})}loadJSLibFromConfig(n){return Ge(this,null,function*(){for(let r of n?.externalLibs?.js||[])yield new Promise(o=>{let s=document.createElement("script");s.setAttribute("src",r),s.onload=()=>{o(null)},document.head.appendChild(s)})})}loadCustomCSSFromConfig(n){return Ge(this,null,function*(){for(let r of n?.cssCode||[])if(r.runOn==="header"){let o=document.createElement("style");o.innerText=r.code,document.head.appendChild(o)}})}loadCustomJSFromConfig(n){return Ge(this,null,function*(){for(let r of n?.jsCode||[])if(r.appendTo==="oncePageLoad"){let o=document.createElement("script");o.innerText=r.code,document.head.appendChild(o)}})}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var qb=(()=>{let i=class i{constructor(){this.splitters=[" ","-",":","T",".",",","_","=","+"]}getPrimeNGFormatFromDateFNS(n){let r=n;for(let o of this.splitters){let s=r.split(o);for(let a=0;a<s.length;a++){let l=s[a];s[a]=this.getPrimeNGFormatOption(l)}r=s.join(o)}return r}getPrimeNGFormatOption(n){let r=n;return n==="yyyy"?r="yy":n==="yy"?r="y":n==="D"?r="o":n==="DDD"?r="oo":n==="ccc"?r="D":n==="cccc"?r="DD":n==="M"?r="m":n==="MM"?r="mm":n==="MMM"?r="M":n==="MMMM"&&(r="MM"),r}processFormFieldsForDateFormatChange(n){for(let r of n?.form?.fields||[])for(let o of r)o.path&&o.datePickerSettings?.dateTimeFormat&&(o.datePickerSettings.dateTimeFormat=this.getPrimeNGFormatFromDateFNS(o.datePickerSettings.dateTimeFormat))}};i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=q({token:i,factory:i.\u0275fac,providedIn:"root"});let t=i;return t})();var Mj=["formC"],Oj=["gridC"];function kj(t,i){if(t&1){let e=F();m(0,"div",4)(1,"app-grid",5,1),E("addButtonClickEvent",function(){y(e);let r=d();return v(r.addButtonClickEventFromGrid())})("editButtonClickEvent",function(r){y(e);let o=d();return v(o.editButtonClickEventFromGrid(r))}),g()()}if(t&2){let e=d();p(),c("schema",e.schema)("dbMaster",e.dbMaster)("config",e.config)("queryParams",e.queryParams)("headers",e.queryParams.headers)}}var Kb=(()=>{let i=class i{constructor(n,r,o,s,a,l,u){this.apisService=n,this.utilsService=r,this.themeService=o,this.loadService=s,this.filterServiceForDB=a,this.dateFormatConvertService=l,this.cd=u,this.schema=void 0,this.dbMaster=void 0,this.config=void 0,this.queryParams={headers:{}}}ngOnInit(){setTimeout(()=>Ge(this,null,function*(){this.utilsService.setHeadersFromQueryParams(this.queryParams.headers,this.queryParams),yield this.init(),this.cd.detectChanges()}))}init(){return Ge(this,null,function*(){try{let n=yield this.apisService.getSettings(this.queryParams.headers,this.queryParams[st.ADMIN_PATH],this.queryParams[st.DB_MASTER_NAME]);this.schema=n.schema,this.dbMaster=n.dbMaster,this.config=this.dbMaster.dbMasterConfig,this.themeService.setTheme(this.queryParams[st.THEME]||this.config.theme||null),this.config.grid=this.config.grid||{},this.setCalculatedPropertiesInGridFields(),this.dateFormatConvertService.processFormFieldsForDateFormatChange(this.config);let r=this.dateFormatConvertService,o=this.config,s=this.filterServiceForDB;oo.prototype.getDateFormat=function(){let u=this.dateFormat;return u||r.getPrimeNGFormatFromDateFNS(u||o.dateTimeFormat||s.userDateFormatPrimeNG)},yield this.loadService.loadCSSLibFromConfig(this.config),yield this.loadService.loadJSLibFromConfig(this.config),yield this.loadService.loadCustomCSSFromConfig(this.config),yield this.loadService.loadCustomJSFromConfig(this.config),console.log(this.schema),console.log(this.dbMaster),setTimeout(()=>{this.formC&&(this.formC.refreshGrid=this.gridC?.loadData.bind(this.gridC))},1e3)}catch(n){console.log(n),this.apisService.showErrorFromResponse(n?.error||n,"Get settings API failed.")}})}setCalculatedPropertiesInGridFields(){for(let n of this.config.grid?.fields){n.field=n.path;let r=this.filterServiceForDB.getTypeBasedOnSchema(this.schema,n.field);n.type=r,r===tn.string?n.filterType=yr.text:r===tn.number?n.filterType=yr.numeric:r===tn.boolean?n.filterType=yr.boolean:r===tn.date?this.config.grid?.pagination?.serverSidePagination?n.filterType=yr.date:n.filterType=yr.text:n.filterType=yr.text}}addButtonClickEventFromGrid(){this.formC&&this.formC.addNew().then()}editButtonClickEventFromGrid(n){this.formC&&this.formC.edit(n).then()}};i.\u0275fac=function(r){return new(r||i)(x(Si),x(Ou),x(cs),x(Wb),x(ms),x(qb),x(ce))},i.\u0275cmp=P({type:i,selectors:[["app-root"]],viewQuery:function(r,o){if(r&1&&(Z(Mj,5),Z(Oj,5)),r&2){let s;j(s=z())&&(o.formC=s.first),j(s=z())&&(o.gridC=s.first)}},standalone:!0,features:[ht([]),J],decls:5,vars:6,consts:[["formC",""],["gridC",""],["class","p-overflow-hidden h-100",4,"ngIf"],[3,"schema","dbMaster","config","queryParams","headers"],[1,"p-overflow-hidden","h-100"],[3,"addButtonClickEvent","editButtonClickEvent","schema","dbMaster","config","queryParams","headers"]],template:function(r,o){r&1&&(f(0,kj,3,5,"div",2),D(1,"app-form",3,0)(3,"p-confirmDialog")(4,"p-toast")),r&2&&(c("ngIf",o.config),p(),c("schema",o.schema)("dbMaster",o.dbMaster)("config",o.config)("queryParams",o.queryParams)("headers",o.queryParams.headers))},dependencies:[ue,Ce,tb,eb,ab,sb,Cu,Gn,ai,St,Gb,Nb],encapsulation:2,changeDetection:0});let t=i;return t})();Zv(Kb,kC).catch(t=>console.error(t));