@jonathanleelx/meddle 0.0.1

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 (361) hide show
  1. package/CONFIG_STRUCTURE.md +315 -0
  2. package/LICENSE +21 -0
  3. package/README.md +298 -0
  4. package/bin/commands/mock/add.js +92 -0
  5. package/bin/commands/mock/delete.js +58 -0
  6. package/bin/commands/mock/index.js +50 -0
  7. package/bin/commands/mock/list.js +68 -0
  8. package/bin/commands/mock/toggle.js +64 -0
  9. package/bin/commands/mock/update.js +94 -0
  10. package/bin/commands/route/active.js +141 -0
  11. package/bin/commands/route/add.js +127 -0
  12. package/bin/commands/route/create.js +77 -0
  13. package/bin/commands/route/delete.js +120 -0
  14. package/bin/commands/route/index.js +59 -0
  15. package/bin/commands/route/list.js +67 -0
  16. package/bin/commands/route/preview.js +159 -0
  17. package/bin/commands/route/show.js +111 -0
  18. package/bin/commands/route/update.js +126 -0
  19. package/bin/commands/session/create.js +166 -0
  20. package/bin/commands/session/delete.js +69 -0
  21. package/bin/commands/session/index.js +61 -0
  22. package/bin/commands/session/list.js +42 -0
  23. package/bin/commands/session/prune.js +31 -0
  24. package/bin/commands/start.js +43 -0
  25. package/bin/commands/status.js +115 -0
  26. package/bin/commands/supervise.js +106 -0
  27. package/bin/commands/url.js +30 -0
  28. package/bin/doctor.js +356 -0
  29. package/bin/index +130 -0
  30. package/bin/lib/api-client.js +72 -0
  31. package/bin/lib/file-access.js +337 -0
  32. package/bin/lib/meddle-home.js +20 -0
  33. package/bin/lib/output.js +146 -0
  34. package/bin/lib/parsers.js +127 -0
  35. package/bin/lib/proxy-detect.js +105 -0
  36. package/bin/lib/route-preview.js +180 -0
  37. package/bin/lib/session-args.js +54 -0
  38. package/bin/lib/sessions.js +213 -0
  39. package/dist/cert.d.ts +10 -0
  40. package/dist/cert.d.ts.map +1 -0
  41. package/dist/cert.js +184 -0
  42. package/dist/cert.js.map +1 -0
  43. package/dist/core/application-identity.d.ts +55 -0
  44. package/dist/core/application-identity.d.ts.map +1 -0
  45. package/dist/core/application-identity.js +321 -0
  46. package/dist/core/application-identity.js.map +1 -0
  47. package/dist/core/body-utils.d.ts +2 -0
  48. package/dist/core/body-utils.d.ts.map +1 -0
  49. package/dist/core/body-utils.js +21 -0
  50. package/dist/core/body-utils.js.map +1 -0
  51. package/dist/core/browser.d.ts +2 -0
  52. package/dist/core/browser.d.ts.map +1 -0
  53. package/dist/core/browser.js +92 -0
  54. package/dist/core/browser.js.map +1 -0
  55. package/dist/core/client-identity.d.ts +27 -0
  56. package/dist/core/client-identity.d.ts.map +1 -0
  57. package/dist/core/client-identity.js +136 -0
  58. package/dist/core/client-identity.js.map +1 -0
  59. package/dist/core/config-diagnostics.d.ts +14 -0
  60. package/dist/core/config-diagnostics.d.ts.map +1 -0
  61. package/dist/core/config-diagnostics.js +137 -0
  62. package/dist/core/config-diagnostics.js.map +1 -0
  63. package/dist/core/connect-tunnel.d.ts +5 -0
  64. package/dist/core/connect-tunnel.d.ts.map +1 -0
  65. package/dist/core/connect-tunnel.js +45 -0
  66. package/dist/core/connect-tunnel.js.map +1 -0
  67. package/dist/core/content-encoding.d.ts +2 -0
  68. package/dist/core/content-encoding.d.ts.map +1 -0
  69. package/dist/core/content-encoding.js +77 -0
  70. package/dist/core/content-encoding.js.map +1 -0
  71. package/dist/core/custom-plugin-loader.d.ts +18 -0
  72. package/dist/core/custom-plugin-loader.d.ts.map +1 -0
  73. package/dist/core/custom-plugin-loader.js +178 -0
  74. package/dist/core/custom-plugin-loader.js.map +1 -0
  75. package/dist/core/h2-pool.d.ts +4 -0
  76. package/dist/core/h2-pool.d.ts.map +1 -0
  77. package/dist/core/h2-pool.js +180 -0
  78. package/dist/core/h2-pool.js.map +1 -0
  79. package/dist/core/inspection-dispatch.d.ts +5 -0
  80. package/dist/core/inspection-dispatch.d.ts.map +1 -0
  81. package/dist/core/inspection-dispatch.js +146 -0
  82. package/dist/core/inspection-dispatch.js.map +1 -0
  83. package/dist/core/log-rate-limit.d.ts +34 -0
  84. package/dist/core/log-rate-limit.d.ts.map +1 -0
  85. package/dist/core/log-rate-limit.js +52 -0
  86. package/dist/core/log-rate-limit.js.map +1 -0
  87. package/dist/core/map-local.d.ts +4 -0
  88. package/dist/core/map-local.d.ts.map +1 -0
  89. package/dist/core/map-local.js +195 -0
  90. package/dist/core/map-local.js.map +1 -0
  91. package/dist/core/meddle-home.d.ts +13 -0
  92. package/dist/core/meddle-home.d.ts.map +1 -0
  93. package/dist/core/meddle-home.js +56 -0
  94. package/dist/core/meddle-home.js.map +1 -0
  95. package/dist/core/mock-gate.d.ts +3 -0
  96. package/dist/core/mock-gate.d.ts.map +1 -0
  97. package/dist/core/mock-gate.js +20 -0
  98. package/dist/core/mock-gate.js.map +1 -0
  99. package/dist/core/mock-handler.d.ts +5 -0
  100. package/dist/core/mock-handler.d.ts.map +1 -0
  101. package/dist/core/mock-handler.js +339 -0
  102. package/dist/core/mock-handler.js.map +1 -0
  103. package/dist/core/on-mode-gate.d.ts +4 -0
  104. package/dist/core/on-mode-gate.d.ts.map +1 -0
  105. package/dist/core/on-mode-gate.js +64 -0
  106. package/dist/core/on-mode-gate.js.map +1 -0
  107. package/dist/core/pipeline-gate.d.ts +3 -0
  108. package/dist/core/pipeline-gate.d.ts.map +1 -0
  109. package/dist/core/pipeline-gate.js +34 -0
  110. package/dist/core/pipeline-gate.js.map +1 -0
  111. package/dist/core/pipeline.d.ts +6 -0
  112. package/dist/core/pipeline.d.ts.map +1 -0
  113. package/dist/core/pipeline.js +228 -0
  114. package/dist/core/pipeline.js.map +1 -0
  115. package/dist/core/plugin-bootstrap-runner.d.ts +6 -0
  116. package/dist/core/plugin-bootstrap-runner.d.ts.map +1 -0
  117. package/dist/core/plugin-bootstrap-runner.js +148 -0
  118. package/dist/core/plugin-bootstrap-runner.js.map +1 -0
  119. package/dist/core/plugin-bootstrap.d.ts +3 -0
  120. package/dist/core/plugin-bootstrap.d.ts.map +1 -0
  121. package/dist/core/plugin-bootstrap.js +15 -0
  122. package/dist/core/plugin-bootstrap.js.map +1 -0
  123. package/dist/core/plugin-compiler.d.ts +37 -0
  124. package/dist/core/plugin-compiler.d.ts.map +1 -0
  125. package/dist/core/plugin-compiler.js +172 -0
  126. package/dist/core/plugin-compiler.js.map +1 -0
  127. package/dist/core/plugin-context-factory.d.ts +29 -0
  128. package/dist/core/plugin-context-factory.d.ts.map +1 -0
  129. package/dist/core/plugin-context-factory.js +206 -0
  130. package/dist/core/plugin-context-factory.js.map +1 -0
  131. package/dist/core/plugin-generator.d.ts +47 -0
  132. package/dist/core/plugin-generator.d.ts.map +1 -0
  133. package/dist/core/plugin-generator.js +697 -0
  134. package/dist/core/plugin-generator.js.map +1 -0
  135. package/dist/core/plugin-health.d.ts +3 -0
  136. package/dist/core/plugin-health.d.ts.map +1 -0
  137. package/dist/core/plugin-health.js +54 -0
  138. package/dist/core/plugin-health.js.map +1 -0
  139. package/dist/core/plugin-intercept.d.ts +17 -0
  140. package/dist/core/plugin-intercept.d.ts.map +1 -0
  141. package/dist/core/plugin-intercept.js +133 -0
  142. package/dist/core/plugin-intercept.js.map +1 -0
  143. package/dist/core/plugin-runtime.d.ts +33 -0
  144. package/dist/core/plugin-runtime.d.ts.map +1 -0
  145. package/dist/core/plugin-runtime.js +254 -0
  146. package/dist/core/plugin-runtime.js.map +1 -0
  147. package/dist/core/proxy-context.d.ts +3 -0
  148. package/dist/core/proxy-context.d.ts.map +1 -0
  149. package/dist/core/proxy-context.js +129 -0
  150. package/dist/core/proxy-context.js.map +1 -0
  151. package/dist/core/proxy-record.d.ts +3 -0
  152. package/dist/core/proxy-record.d.ts.map +1 -0
  153. package/dist/core/proxy-record.js +32 -0
  154. package/dist/core/proxy-record.js.map +1 -0
  155. package/dist/core/refactor-config.d.ts +6 -0
  156. package/dist/core/refactor-config.d.ts.map +1 -0
  157. package/dist/core/refactor-config.js +45 -0
  158. package/dist/core/refactor-config.js.map +1 -0
  159. package/dist/core/refactor-status.d.ts +3 -0
  160. package/dist/core/refactor-status.d.ts.map +1 -0
  161. package/dist/core/refactor-status.js +19 -0
  162. package/dist/core/refactor-status.js.map +1 -0
  163. package/dist/core/remote-access.d.ts +40 -0
  164. package/dist/core/remote-access.d.ts.map +1 -0
  165. package/dist/core/remote-access.js +281 -0
  166. package/dist/core/remote-access.js.map +1 -0
  167. package/dist/core/route-decision.d.ts +3 -0
  168. package/dist/core/route-decision.d.ts.map +1 -0
  169. package/dist/core/route-decision.js +20 -0
  170. package/dist/core/route-decision.js.map +1 -0
  171. package/dist/core/route-loader.d.ts +14 -0
  172. package/dist/core/route-loader.d.ts.map +1 -0
  173. package/dist/core/route-loader.js +94 -0
  174. package/dist/core/route-loader.js.map +1 -0
  175. package/dist/core/route-preview.d.ts +15 -0
  176. package/dist/core/route-preview.d.ts.map +1 -0
  177. package/dist/core/route-preview.js +91 -0
  178. package/dist/core/route-preview.js.map +1 -0
  179. package/dist/core/runtime-health.d.ts +92 -0
  180. package/dist/core/runtime-health.d.ts.map +1 -0
  181. package/dist/core/runtime-health.js +205 -0
  182. package/dist/core/runtime-health.js.map +1 -0
  183. package/dist/core/sessions.d.ts +19 -0
  184. package/dist/core/sessions.d.ts.map +1 -0
  185. package/dist/core/sessions.js +93 -0
  186. package/dist/core/sessions.js.map +1 -0
  187. package/dist/core/shadow-compare.d.ts +8 -0
  188. package/dist/core/shadow-compare.d.ts.map +1 -0
  189. package/dist/core/shadow-compare.js +83 -0
  190. package/dist/core/shadow-compare.js.map +1 -0
  191. package/dist/core/shadow-readiness.d.ts +4 -0
  192. package/dist/core/shadow-readiness.d.ts.map +1 -0
  193. package/dist/core/shadow-readiness.js +118 -0
  194. package/dist/core/shadow-readiness.js.map +1 -0
  195. package/dist/core/short-response.d.ts +5 -0
  196. package/dist/core/short-response.d.ts.map +1 -0
  197. package/dist/core/short-response.js +18 -0
  198. package/dist/core/short-response.js.map +1 -0
  199. package/dist/core/static-server.d.ts +9 -0
  200. package/dist/core/static-server.d.ts.map +1 -0
  201. package/dist/core/static-server.js +136 -0
  202. package/dist/core/static-server.js.map +1 -0
  203. package/dist/core/types.d.ts +590 -0
  204. package/dist/core/types.d.ts.map +1 -0
  205. package/dist/core/types.js +4 -0
  206. package/dist/core/types.js.map +1 -0
  207. package/dist/helpers.d.ts +36 -0
  208. package/dist/helpers.d.ts.map +1 -0
  209. package/dist/helpers.js +290 -0
  210. package/dist/helpers.js.map +1 -0
  211. package/dist/plugins/builtin/index.d.ts +3 -0
  212. package/dist/plugins/builtin/index.d.ts.map +1 -0
  213. package/dist/plugins/builtin/index.js +23 -0
  214. package/dist/plugins/builtin/index.js.map +1 -0
  215. package/dist/plugins/builtin/logger-plugin.d.ts +8 -0
  216. package/dist/plugins/builtin/logger-plugin.d.ts.map +1 -0
  217. package/dist/plugins/builtin/logger-plugin.js +121 -0
  218. package/dist/plugins/builtin/logger-plugin.js.map +1 -0
  219. package/dist/plugins/builtin/mock-plugin.d.ts +3 -0
  220. package/dist/plugins/builtin/mock-plugin.d.ts.map +1 -0
  221. package/dist/plugins/builtin/mock-plugin.js +99 -0
  222. package/dist/plugins/builtin/mock-plugin.js.map +1 -0
  223. package/dist/plugins/builtin/router-plugin.d.ts +3 -0
  224. package/dist/plugins/builtin/router-plugin.d.ts.map +1 -0
  225. package/dist/plugins/builtin/router-plugin.js +36 -0
  226. package/dist/plugins/builtin/router-plugin.js.map +1 -0
  227. package/dist/server/agent/model.d.ts +30 -0
  228. package/dist/server/agent/model.d.ts.map +1 -0
  229. package/dist/server/agent/model.js +143 -0
  230. package/dist/server/agent/model.js.map +1 -0
  231. package/dist/server/agent/routes.d.ts +4 -0
  232. package/dist/server/agent/routes.d.ts.map +1 -0
  233. package/dist/server/agent/routes.js +188 -0
  234. package/dist/server/agent/routes.js.map +1 -0
  235. package/dist/server/agent/runtime.d.ts +12 -0
  236. package/dist/server/agent/runtime.d.ts.map +1 -0
  237. package/dist/server/agent/runtime.js +208 -0
  238. package/dist/server/agent/runtime.js.map +1 -0
  239. package/dist/server/agent/tools.d.ts +13 -0
  240. package/dist/server/agent/tools.d.ts.map +1 -0
  241. package/dist/server/agent/tools.js +1201 -0
  242. package/dist/server/agent/tools.js.map +1 -0
  243. package/dist/server/agent/types.d.ts +56 -0
  244. package/dist/server/agent/types.d.ts.map +1 -0
  245. package/dist/server/agent/types.js +3 -0
  246. package/dist/server/agent/types.js.map +1 -0
  247. package/dist/server/config.d.ts +9 -0
  248. package/dist/server/config.d.ts.map +1 -0
  249. package/dist/server/config.js +124 -0
  250. package/dist/server/config.js.map +1 -0
  251. package/dist/server/health.d.ts +4 -0
  252. package/dist/server/health.d.ts.map +1 -0
  253. package/dist/server/health.js +22 -0
  254. package/dist/server/health.js.map +1 -0
  255. package/dist/server/index.d.ts +239 -0
  256. package/dist/server/index.d.ts.map +1 -0
  257. package/dist/server/index.js +44 -0
  258. package/dist/server/index.js.map +1 -0
  259. package/dist/server/logs.d.ts +4 -0
  260. package/dist/server/logs.d.ts.map +1 -0
  261. package/dist/server/logs.js +40 -0
  262. package/dist/server/logs.js.map +1 -0
  263. package/dist/server/mocks.d.ts +9 -0
  264. package/dist/server/mocks.d.ts.map +1 -0
  265. package/dist/server/mocks.js +103 -0
  266. package/dist/server/mocks.js.map +1 -0
  267. package/dist/server/pipeline.d.ts +16 -0
  268. package/dist/server/pipeline.d.ts.map +1 -0
  269. package/dist/server/pipeline.js +159 -0
  270. package/dist/server/pipeline.js.map +1 -0
  271. package/dist/server/plugins.d.ts +32 -0
  272. package/dist/server/plugins.d.ts.map +1 -0
  273. package/dist/server/plugins.js +795 -0
  274. package/dist/server/plugins.js.map +1 -0
  275. package/dist/server/refactor.d.ts +4 -0
  276. package/dist/server/refactor.d.ts.map +1 -0
  277. package/dist/server/refactor.js +86 -0
  278. package/dist/server/refactor.js.map +1 -0
  279. package/dist/server/rule-files.d.ts +34 -0
  280. package/dist/server/rule-files.d.ts.map +1 -0
  281. package/dist/server/rule-files.js +389 -0
  282. package/dist/server/rule-files.js.map +1 -0
  283. package/dist/server/rules.d.ts +4 -0
  284. package/dist/server/rules.d.ts.map +1 -0
  285. package/dist/server/rules.js +40 -0
  286. package/dist/server/rules.js.map +1 -0
  287. package/dist/server/sessions.d.ts +4 -0
  288. package/dist/server/sessions.d.ts.map +1 -0
  289. package/dist/server/sessions.js +20 -0
  290. package/dist/server/sessions.js.map +1 -0
  291. package/index.js +950 -0
  292. package/mcp-server.js +794 -0
  293. package/package.json +92 -0
  294. package/plugins/builtin/index.ts +25 -0
  295. package/plugins/builtin/logger-plugin.ts +126 -0
  296. package/plugins/builtin/mock-plugin.ts +112 -0
  297. package/plugins/builtin/router-plugin.ts +35 -0
  298. package/web/README.md +111 -0
  299. package/web/dist/assets/ai-config-store-DQXVJVn_.js +1 -0
  300. package/web/dist/assets/alert-COF-DIAE.js +1 -0
  301. package/web/dist/assets/arrow-right-B4Mrlj2-.js +1 -0
  302. package/web/dist/assets/babel-DsprIpXZ.js +15 -0
  303. package/web/dist/assets/body-diff-view-D7dCWajG.js +6 -0
  304. package/web/dist/assets/button-BTToMaBW.js +1 -0
  305. package/web/dist/assets/checkbox-DIBarrJx.js +1 -0
  306. package/web/dist/assets/chevron-down-CPngAx4M.js +1 -0
  307. package/web/dist/assets/chevron-right-V1DGIDbL.js +1 -0
  308. package/web/dist/assets/circle-alert-Q8cZk9Rv.js +1 -0
  309. package/web/dist/assets/circle-x-C9USji_R.js +1 -0
  310. package/web/dist/assets/code-5_eJ_XpJ.js +1 -0
  311. package/web/dist/assets/code-fixer-fQtWZ5He.js +20 -0
  312. package/web/dist/assets/copy-BYjq1hdN.js +1 -0
  313. package/web/dist/assets/detail-panel-BX_hxeI0.js +3 -0
  314. package/web/dist/assets/dist-B8XUKgXe.js +1 -0
  315. package/web/dist/assets/dist-Bb9TeEub.js +1 -0
  316. package/web/dist/assets/dist-C5nMErq8.js +1 -0
  317. package/web/dist/assets/dist-C6eaYCUo.js +1 -0
  318. package/web/dist/assets/dist-Cn0y0IRn.js +1 -0
  319. package/web/dist/assets/dist-CxdY_A67.js +5 -0
  320. package/web/dist/assets/dist-D5Dj17P8.js +1 -0
  321. package/web/dist/assets/dist-DZJ9SMlJ.js +1 -0
  322. package/web/dist/assets/es2015-CfXu88Y7.js +41 -0
  323. package/web/dist/assets/estree-BP7k0NIt.js +44 -0
  324. package/web/dist/assets/file-system-access-CtcvBfj4.js +1 -0
  325. package/web/dist/assets/global-panel-shell-ChdO0dWd.js +6 -0
  326. package/web/dist/assets/health-panel-CQeCQ7gr.js +1 -0
  327. package/web/dist/assets/html-6FIWbqxX.js +25 -0
  328. package/web/dist/assets/index-CjqaTnE_.css +2 -0
  329. package/web/dist/assets/index-L7uWxTnp.js +18 -0
  330. package/web/dist/assets/mobile-proxy-panel-Dj1iLami.js +8 -0
  331. package/web/dist/assets/mock-config-BTTCw7RK.js +1 -0
  332. package/web/dist/assets/mock-editor-panel-C-aVfFme.js +1 -0
  333. package/web/dist/assets/monaco-editor-B3brLg8j.js +11 -0
  334. package/web/dist/assets/pencil-line-Cqe41E4h.js +1 -0
  335. package/web/dist/assets/plugin-code-editor-CPjCbJ9g.js +2 -0
  336. package/web/dist/assets/plugin-config-BzmCkvz3.js +1 -0
  337. package/web/dist/assets/plugin-generator-BnEafDF9.js +2 -0
  338. package/web/dist/assets/plugin-test-dialog-BWoWsWV4.js +7 -0
  339. package/web/dist/assets/plus-tVxSydJ8.js +1 -0
  340. package/web/dist/assets/postcss-Dnf30fQU.js +61 -0
  341. package/web/dist/assets/refresh-cw-CG3HaiQT.js +1 -0
  342. package/web/dist/assets/rotate-ccw-CAYM6Vv0.js +1 -0
  343. package/web/dist/assets/route-preview-BX7sfY0O.js +1 -0
  344. package/web/dist/assets/rule-ai-assistant-panel-WBiOOUw5.js +47 -0
  345. package/web/dist/assets/rule-config-CHpVij2M.css +1 -0
  346. package/web/dist/assets/rule-config-fTIZVwg1.js +15 -0
  347. package/web/dist/assets/select-CkFOB61l.js +1 -0
  348. package/web/dist/assets/server-Cpj4KNwN.js +1 -0
  349. package/web/dist/assets/settings-panel-COCYiIUg.js +1 -0
  350. package/web/dist/assets/shield-check-OqUmVLQt.js +1 -0
  351. package/web/dist/assets/smartphone-DKeDuJTU.js +1 -0
  352. package/web/dist/assets/standalone-CjxtLKw-.js +29 -0
  353. package/web/dist/assets/switch-C-Xk56TK.js +1 -0
  354. package/web/dist/assets/syntax-highlight-DVhPdkuV.js +5 -0
  355. package/web/dist/assets/table-CT97lAYq.js +1 -0
  356. package/web/dist/assets/textarea-C6NooVK1.js +1 -0
  357. package/web/dist/assets/wand-sparkles-wkul5vje.js +1 -0
  358. package/web/dist/assets/wifi-D9M35Ajj.js +1 -0
  359. package/web/dist/assets/zap-Djo4cgux.js +1 -0
  360. package/web/dist/index.html +24 -0
  361. package/web/dist/vite.svg +1 -0
@@ -0,0 +1 @@
1
+ import{a as e,f as t,l as n,n as r,t as i,u as a}from"./button-BTToMaBW.js";import"./dist-C6eaYCUo.js";import{t as o}from"./circle-x-C9USji_R.js";import{n as s,t as c}from"./server-Cpj4KNwN.js";import{t as l}from"./refresh-cw-CG3HaiQT.js";import{t as ee}from"./shield-check-OqUmVLQt.js";import{t as u}from"./wifi-D9M35Ajj.js";import{t as d}from"./switch-C-Xk56TK.js";import{C as f,D as p,E as m,F as h,L as g,M as _,N as te,P as v,R as y,T as b,W as x,j as S,pt as C,q as ne,w,z as T}from"./index-L7uWxTnp.js";import{n as E,r as D,t as O}from"./alert-COF-DIAE.js";import{a as k,i as A,n as j,o as M,r as N,t as P}from"./table-CT97lAYq.js";var re=n(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),F=n(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),I=n(`hard-drive`,[[`line`,{x1:`22`,x2:`2`,y1:`12`,y2:`12`,key:`1y58io`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}],[`line`,{x1:`6`,x2:`6.01`,y1:`16`,y2:`16`,key:`sgf278`}],[`line`,{x1:`10`,x2:`10.01`,y1:`16`,y2:`16`,key:`1l4acy`}]]),L=n(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),R=n(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),z=t(a(),1),B=e(),V={ok:`正常`,degraded:`降级`,critical:`严重`},ie={cpu:`CPU`,rss:`RSS 内存`,connections:`连接数`,mitmServers:`MITM 服务`,eventLoopDelay:`事件循环延迟`,fds:`文件描述符`};function H(e){if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.generatedAt==`number`&&typeof t.status==`string`&&typeof t.pid==`number`&&typeof t.uptimeSec==`number`&&!!t.memory&&!!t.cpu&&!!t.connections&&!!t.mitmServers&&Array.isArray(t.checks)}async function U(){let e=await fetch(`/api/health`,{cache:`no-store`});if(!e.ok)throw Error(`健康接口返回 ${e.status}`);let t=await e.json();if(!H(t))throw Error(`健康接口返回格式不正确`);return t}function W(e){if(!Number.isFinite(e))return`-`;if(e<1024)return`${e} B`;let t=[`KB`,`MB`,`GB`,`TB`],n=e/1024,r=t[0];for(let e=1;e<t.length&&n>=1024;e+=1)n/=1024,r=t[e];return`${n>=10?n.toFixed(0):n.toFixed(1)} ${r}`}function G(e){if(!Number.isFinite(e)||e<0)return`-`;let t=Math.floor(e/86400),n=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),i=Math.floor(e%60);return t>0?`${t}天 ${n}小时`:n>0?`${n}小时 ${r}分钟`:r>0?`${r}分钟 ${i}秒`:`${i}秒`}function K(e){return e?new Intl.DateTimeFormat(`zh-CN`,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1}).format(new Date(e)):`-`}function q(e,t){return t===`bytes`?W(e):t===`%`?`${e.toFixed(1)}%`:t===`ms`?`${e.toFixed(1)} ms`:String(e)}function J(e,t){return t===`bytes`?W(e):t===`%`?`${e}%`:t===`ms`?`${e} ms`:String(e)}function ae(e){if(!e||typeof e!=`object`)return null;let t=e;return Array.isArray(t.keys)?{windowMs:Number(t.windowMs)||0,maxPerWindow:Number(t.maxPerWindow)||0,keys:t.keys,suppressedTotal:Number(t.suppressedTotal)||0}:null}function Y({status:e}){return(0,B.jsxs)(T,{variant:e===`critical`?`destructive`:e===`degraded`?`secondary`:`default`,children:[e===`ok`?(0,B.jsx)(C,{}):e===`degraded`?(0,B.jsx)(x,{}):(0,B.jsx)(o,{}),V[e]]})}function oe({icon:e,label:t,value:n,detail:r}){return(0,B.jsxs)(_,{className:`gap-0 py-0 shadow-none`,children:[(0,B.jsx)(g,{className:`border-b px-4 py-3`,children:(0,B.jsxs)(y,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,B.jsx)(e,{}),t]})}),(0,B.jsxs)(v,{className:`flex flex-col gap-1 p-4`,children:[(0,B.jsx)(`div`,{className:`text-2xl font-semibold tracking-tight`,children:n}),(0,B.jsx)(`div`,{className:`min-h-4 truncate text-xs text-muted-foreground`,title:r,children:r})]})]})}function X({label:e,value:t}){return(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1 rounded-lg border bg-background p-3`,children:[(0,B.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e}),(0,B.jsx)(`span`,{className:`truncate text-sm font-medium`,title:t,children:t})]})}function se(){return(0,B.jsxs)(`div`,{className:`app-workspace-content`,"aria-label":`正在读取健康状态`,children:[(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,B.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,B.jsx)(S,{className:`h-7 w-40`}),(0,B.jsx)(S,{className:`h-4 w-64`})]}),(0,B.jsx)(S,{className:`h-8 w-28`})]}),(0,B.jsx)(`div`,{className:`grid gap-3 md:grid-cols-2 xl:grid-cols-6`,children:Array.from({length:6}).map((e,t)=>(0,B.jsx)(S,{className:`h-32 w-full`},t))}),(0,B.jsx)(S,{className:`h-80 w-full`})]})}function Z(){let[e,t]=(0,z.useState)(null),[n,a]=(0,z.useState)(!0),[o,S]=(0,z.useState)(!1),[C,V]=(0,z.useState)(``),[H,Z]=(0,z.useState)(!0),Q=(0,z.useCallback)(async(e=!1)=>{e?S(!0):a(!0),V(``);try{t(await U())}catch(e){V(e instanceof Error?e.message:`无法读取健康状态`)}finally{a(!1),S(!1)}},[]);(0,z.useEffect)(()=>{Q()},[Q]),(0,z.useEffect)(()=>{if(!H)return;let e=window.setInterval(()=>{Q(!0)},5e3);return()=>window.clearInterval(e)},[H,Q]);let $=(0,z.useMemo)(()=>ae(e?.logs),[e]);if(n&&!e)return(0,B.jsx)(se,{});if(!e)return(0,B.jsxs)(`div`,{className:`app-workspace-content`,children:[(0,B.jsxs)(O,{variant:`destructive`,children:[(0,B.jsx)(D,{children:`加载失败`}),(0,B.jsx)(E,{children:C||`无法读取健康状态`})]}),(0,B.jsxs)(i,{variant:`outline`,size:`sm`,onClick:()=>void Q(),children:[(0,B.jsx)(l,{"data-icon":`inline-start`}),`重新检测`]})]});let ce=[{icon:re,label:`CPU`,value:`${e.cpu.percent.toFixed(1)}%`,detail:`${e.cpu.cores} 核 · load ${e.cpu.loadAverage.map(e=>e.toFixed(2)).join(` / `)}`},{icon:I,label:`RSS 内存`,value:W(e.memory.rss),detail:`Heap ${W(e.memory.heapUsed)} / ${W(e.memory.heapTotal)}`},{icon:R,label:`TCP 连接`,value:String(e.connections.total),detail:`代理 ${e.connections.proxySockets} · TLS ${e.connections.mitmTlsSockets} · WS ${e.connections.webSockets}`},{icon:c,label:`MITM 服务`,value:String(e.mitmServers.count),detail:`${e.mitmServers.activeSockets} 个活跃 socket`},{icon:ne,label:`文件描述符`,value:e.process.fdCount==null?`-`:String(e.process.fdCount),detail:`handles ${e.process.activeHandles??`-`} · requests ${e.process.activeRequests??`-`}`},{icon:F,label:`事件循环`,value:`${e.eventLoop.maxMs.toFixed(1)} ms`,detail:`mean ${e.eventLoop.meanMs.toFixed(1)} ms`}];return(0,B.jsxs)(`div`,{className:`app-workspace-content overflow-y-auto`,children:[(0,B.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,B.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,B.jsx)(`h2`,{className:`text-xl font-semibold tracking-tight`,children:`运行健康`}),(0,B.jsx)(Y,{status:e.status})]}),(0,B.jsxs)(`div`,{className:`flex flex-wrap gap-3 text-xs text-muted-foreground`,children:[(0,B.jsxs)(`span`,{children:[`PID `,e.pid]}),(0,B.jsxs)(`span`,{children:[`运行 `,G(e.uptimeSec)]}),(0,B.jsx)(`span`,{children:e.platform}),(0,B.jsxs)(`span`,{children:[`更新 `,K(e.generatedAt)]})]})]}),(0,B.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,B.jsxs)(`div`,{className:`flex h-8 items-center gap-2 rounded-md border bg-background px-3 text-sm`,children:[(0,B.jsx)(d,{checked:H,onCheckedChange:Z,"aria-label":`自动刷新健康信息`}),(0,B.jsx)(`span`,{children:`自动刷新`})]}),(0,B.jsxs)(i,{variant:`outline`,size:`sm`,onClick:()=>void Q(!0),disabled:o,children:[(0,B.jsx)(l,{"data-icon":`inline-start`,className:r(o&&`animate-spin`)}),`刷新`]})]})]}),C&&(0,B.jsxs)(O,{variant:`destructive`,children:[(0,B.jsx)(D,{children:`刷新失败`}),(0,B.jsx)(E,{children:C})]}),(0,B.jsx)(`div`,{className:`grid gap-3 md:grid-cols-2 xl:grid-cols-6`,children:ce.map(e=>(0,B.jsx)(oe,{...e},e.label))}),(0,B.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-[minmax(0,1.3fr)_minmax(360px,0.7fr)]`,children:[(0,B.jsxs)(_,{className:`gap-0 py-0 shadow-none`,children:[(0,B.jsxs)(g,{className:`border-b py-4`,children:[(0,B.jsxs)(y,{className:`flex items-center gap-2`,children:[(0,B.jsx)(L,{}),`健康检查`]}),(0,B.jsx)(h,{children:`阈值来自当前进程的 MEDDLE_WATCHDOG 配置。`})]}),(0,B.jsx)(v,{className:`p-0`,children:(0,B.jsxs)(P,{children:[(0,B.jsx)(k,{children:(0,B.jsxs)(M,{children:[(0,B.jsx)(A,{children:`项目`}),(0,B.jsx)(A,{children:`状态`}),(0,B.jsx)(A,{children:`当前值`}),(0,B.jsx)(A,{children:`阈值`})]})}),(0,B.jsx)(j,{children:e.checks.map(e=>(0,B.jsxs)(M,{children:[(0,B.jsx)(N,{className:`font-medium`,children:ie[e.name]||e.name}),(0,B.jsx)(N,{children:(0,B.jsx)(Y,{status:e.status})}),(0,B.jsx)(N,{children:q(e.value,e.unit)}),(0,B.jsx)(N,{className:`text-muted-foreground`,children:J(e.limit,e.unit)})]},e.name))})]})})]}),(0,B.jsxs)(_,{className:`gap-0 py-0 shadow-none`,children:[(0,B.jsxs)(g,{className:`border-b py-4`,children:[(0,B.jsxs)(y,{className:`flex items-center gap-2`,children:[(0,B.jsx)(ee,{}),`守护策略`]}),(0,B.jsx)(h,{children:`连续命中严重阈值后按策略处理。`}),(0,B.jsx)(te,{children:(0,B.jsx)(T,{variant:e.watchdog.config.enabled?`default`:`secondary`,children:e.watchdog.config.enabled?`已启用`:`已关闭`})})]}),(0,B.jsxs)(v,{className:`grid gap-3 p-4 sm:grid-cols-2`,children:[(0,B.jsx)(X,{label:`动作`,value:e.watchdog.config.action===`exit`?`退出重启`:`仅告警`}),(0,B.jsx)(X,{label:`检测间隔`,value:G(e.watchdog.config.intervalMs/1e3)}),(0,B.jsx)(X,{label:`最小运行时间`,value:G(e.watchdog.config.minUptimeMs/1e3)}),(0,B.jsx)(X,{label:`失败阈值`,value:`${e.watchdog.consecutiveFailures}/${e.watchdog.config.failureThreshold}`}),(0,B.jsx)(X,{label:`CPU 阈值`,value:`${e.watchdog.config.cpuPercent}%`}),(0,B.jsx)(X,{label:`RSS 阈值`,value:W(e.watchdog.config.rssBytes)}),(0,B.jsx)(X,{label:`连接阈值`,value:String(e.watchdog.config.connectionCount)}),(0,B.jsx)(X,{label:`FD 阈值`,value:String(e.watchdog.config.fdCount)}),e.watchdog.lastReason&&(0,B.jsx)(`div`,{className:`sm:col-span-2`,children:(0,B.jsxs)(O,{children:[(0,B.jsx)(x,{}),(0,B.jsx)(D,{children:`最近命中`}),(0,B.jsx)(E,{children:e.watchdog.lastReason})]})})]})]})]}),(0,B.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:[(0,B.jsxs)(_,{className:`gap-0 py-0 shadow-none`,children:[(0,B.jsxs)(g,{className:`border-b py-4`,children:[(0,B.jsxs)(y,{className:`flex items-center gap-2`,children:[(0,B.jsx)(u,{}),`MITM 服务池`]}),(0,B.jsxs)(h,{children:[e.mitmServers.count,` 个动态 HTTPS 服务。`]})]}),(0,B.jsx)(v,{className:`p-0`,children:e.mitmServers.items.length>0?(0,B.jsxs)(P,{children:[(0,B.jsx)(k,{children:(0,B.jsxs)(M,{children:[(0,B.jsx)(A,{children:`Host`}),(0,B.jsx)(A,{children:`端口`}),(0,B.jsx)(A,{children:`Socket`}),(0,B.jsx)(A,{children:`空闲`})]})}),(0,B.jsx)(j,{children:e.mitmServers.items.map(e=>(0,B.jsxs)(M,{children:[(0,B.jsx)(N,{className:`max-w-[260px] truncate font-medium`,title:e.host,children:e.host}),(0,B.jsx)(N,{children:e.port??`-`}),(0,B.jsxs)(N,{children:[e.activeSockets,` / `,e.webSockets,` WS`]}),(0,B.jsx)(N,{className:`text-muted-foreground`,children:e.idleForMs==null?`-`:G(e.idleForMs/1e3)})]},`${e.host}:${e.port??`dynamic`}`))})]}):(0,B.jsx)(f,{className:`border-0 py-10`,children:(0,B.jsxs)(b,{children:[(0,B.jsx)(m,{variant:`icon`,children:(0,B.jsx)(c,{})}),(0,B.jsx)(p,{children:`暂无动态 HTTPS 服务`}),(0,B.jsx)(w,{children:`当前没有活跃的 MITM 目标。`})]})})})]}),(0,B.jsxs)(_,{className:`gap-0 py-0 shadow-none`,children:[(0,B.jsxs)(g,{className:`border-b py-4`,children:[(0,B.jsxs)(y,{className:`flex items-center gap-2`,children:[(0,B.jsx)(s,{}),`日志限流`]}),(0,B.jsxs)(h,{children:[`已抑制 `,$?.suppressedTotal??0,` 条重复日志。`]})]}),(0,B.jsx)(v,{className:`p-0`,children:$&&$.keys.length>0?(0,B.jsxs)(P,{children:[(0,B.jsx)(k,{children:(0,B.jsxs)(M,{children:[(0,B.jsx)(A,{children:`Key`}),(0,B.jsx)(A,{children:`级别`}),(0,B.jsx)(A,{children:`输出 / 抑制`}),(0,B.jsx)(A,{children:`最近`})]})}),(0,B.jsx)(j,{children:$.keys.map(e=>(0,B.jsxs)(M,{children:[(0,B.jsx)(N,{className:`max-w-[260px] truncate font-medium`,title:e.key,children:e.key}),(0,B.jsx)(N,{children:(0,B.jsx)(T,{variant:e.level===`error`?`destructive`:e.level===`warn`?`secondary`:`outline`,children:e.level})}),(0,B.jsxs)(N,{children:[e.emitted,` / `,e.suppressed]}),(0,B.jsx)(N,{className:`text-muted-foreground`,children:K(e.lastSeenAt)})]},e.key))})]}):(0,B.jsx)(f,{className:`border-0 py-10`,children:(0,B.jsxs)(b,{children:[(0,B.jsx)(m,{variant:`icon`,children:(0,B.jsx)(s,{})}),(0,B.jsx)(p,{children:`暂无限流记录`}),(0,B.jsx)(w,{children:`当前没有被抑制的重复日志。`})]})})})]})]})]})}export{Z as HealthPanel};
@@ -0,0 +1,25 @@
1
+ var e=Object.defineProperty,t=e=>{throw TypeError(e)},n=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,r=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},i=(e,t,r)=>n(e,typeof t==`symbol`?t:t+``,r),a=(e,n,r)=>n.has(e)||t(`Cannot `+r),o=(e,t,n)=>(a(e,t,`read from private field`),n?n.call(e):t.get(e)),s=(e,n,r)=>n.has(e)?t(`Cannot add the same private member more than once`):n instanceof WeakSet?n.add(e):n.set(e,r),c={};r(c,{languages:()=>Ja,options:()=>Za,parsers:()=>Qa,printers:()=>Wo});var l=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),u=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},d=l(`replaceAll`,function(){if(typeof this==`string`)return u});function f(e){return this[e<0?this.length+e:e]}var p=l(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return f}),m=()=>{},ee=`string`,te=`array`,ne=`cursor`,re=`indent`,ie=`align`,ae=`trim`,oe=`group`,se=`fill`,ce=`if-break`,le=`indent-if-break`,ue=`line-suffix`,de=`line-suffix-boundary`,h=`line`,fe=`label`,pe=`break-parent`,me=new Set([ne,re,ie,ae,oe,se,ce,le,ue,de,h,fe,pe]);function he(e){if(typeof e==`string`)return ee;if(Array.isArray(e))return te;if(!e)return;let{type:t}=e;if(me.has(t))return t}var ge=he,_e=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function ve(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
2
+ Expected it to be 'string' or 'object'.`;if(ge(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=_e([...me].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
3
+ Expected it to be ${r}.`}var ye=class extends Error{name=`InvalidDocError`;constructor(e){super(ve(e)),this.doc=e}};function be(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(ge(e)){case te:return t(e.map(r));case se:return t({...e,parts:e.parts.map(r)});case ce:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case oe:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case ie:case re:case le:case fe:case ue:return t({...e,contents:r(e.contents)});case ee:case ne:case ae:case de:case h:case pe:return t(e);default:throw new ye(e)}}}function g(e,t=Ae){return be(e,e=>typeof e==`string`?b(t,e.split(`
4
+ `)):e)}var _=m,xe=m,Se=m,Ce=m;function v(e){return _(e),{type:re,contents:e}}function we(e,t){return Ce(e),_(t),{type:ie,contents:t,n:e}}function Te(e){return we(-1/0,e)}var Ee={type:pe};function De(e){return Se(e),{type:se,parts:e}}function y(e,t={}){return _(e),xe(t.expandedStates,!0),{type:oe,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Oe(e,t=``,n={}){return _(e),t!==``&&_(t),{type:ce,breakContents:e,flatContents:t,groupId:n.groupId}}function ke(e,t){return _(e),{type:le,contents:e,groupId:t.groupId,negate:t.negate}}function b(e,t){_(e),xe(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var x={type:h},S={type:h,soft:!0},C=[{type:h,hard:!0},Ee],Ae=[{type:h,hard:!0,literal:!0},Ee],je=Object.freeze({character:`'`,codePoint:39}),Me=Object.freeze({character:`"`,codePoint:34}),Ne=Object.freeze({preferred:je,alternate:Me}),Pe=Object.freeze({preferred:Me,alternate:je});function Fe(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?Ne:Pe,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}var Ie=Fe;function Le(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var w=new class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#e,n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=this.#e,n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(p(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${Le([...this.#e].join(``))}]+`,r=new RegExp(t?`(${n})`:n,`u`);return e.split(r)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,e=>t.has(e))}#t(e){let t=1/0;for(let n of e.split(`
5
+ `)){if(n.length===0)continue;let e=this.getLeadingWhitespaceCount(n);if(e===0)return 0;n.length!==e&&e<t&&(t=e)}return t===1/0?0:t}dedentString(e){let t=this.#t(e);return t===0?e:e.split(`
6
+ `).map(e=>e.slice(t)).join(`
7
+ `)}}([` `,`
8
+ `,`\f`,`\r`,` `]),Re=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},ze=new Set([`sourceSpan`,`startSourceSpan`,`endSourceSpan`,`nameSpan`,`valueSpan`,`keySpan`,`tagDefinition`,`tokens`,`valueTokens`,`switchValueSourceSpan`,`expSourceSpan`,`valueSourceSpan`]),Be=new Set([`if`,`else if`,`for`,`switch`,`case`]);function Ve(e,t,n){if(e.kind===`text`||e.kind===`comment`)return null;if(e.kind===`yaml`&&delete t.value,e.kind===`attribute`){let{fullName:r,value:i}=e;r===`style`||r===`class`||r===`srcset`&&(n.fullName===`img`||n.fullName===`source`)||r===`allow`&&n.fullName===`iframe`||r.startsWith(`on`)||r.startsWith(`@`)||r.startsWith(`:`)||r.startsWith(`.`)||r.startsWith(`#`)||r.startsWith(`v-`)||r===`vars`&&n.fullName===`style`||(r===`setup`||r===`generic`)&&n.fullName===`script`||r===`slot-scope`||r.startsWith(`(`)||r.startsWith(`[`)||r.startsWith(`*`)||r.startsWith(`bind`)||r.startsWith(`i18n`)||r.startsWith(`on-`)||r.startsWith(`ng-`)||i?.includes(`{{`)?delete t.value:i&&(t.value=d(0,i,/'|&quot;|&apos;/gu,`"`))}if(e.kind===`docType`&&(t.value=d(0,e.value.toLowerCase(),/\s+/gu,` `)),e.kind===`angularControlFlowBlock`&&e.parameters?.children)for(let n of t.parameters.children)Be.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.kind===`angularIcuExpression`&&(t.switchValue=e.switchValue.trim()),e.kind===`angularLetDeclarationInitializer`&&delete t.value,e.kind===`element`&&e.isVoid&&!e.isSelfClosing&&(t.isSelfClosing=!0)}Ve.ignoredProperties=ze;var He=Ve;function Ue(e,t=!0){return[v([S,e]),t?S:``]}function T(e,t){let n=e.type===`NGRoot`?e.node.type===`NGMicrosyntax`&&e.node.body.length===1&&e.node.body[0].type===`NGMicrosyntaxExpression`?e.node.body[0].expression:e.node:e.type===`JsExpressionRoot`?e.node:e;return n&&(n.type===`ObjectExpression`||n.type===`ArrayExpression`||(t.parser===`__vue_expression`||t.parser===`__vue_ts_expression`||t.parser===`__ng_binding`||t.parser===`__ng_directive`)&&(n.type===`TemplateLiteral`||n.type===`StringLiteral`))}async function E(e,t,n,r){n={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...n};let i=!0;r&&(n.__onHtmlBindingRoot=(e,t)=>{i=r(e,t)});let a=await t(e,n,t);return i?y(a):Ue(a)}function We(e,t,n,r){let{node:i}=n,a=r.originalText.slice(i.sourceSpan.start.offset,i.sourceSpan.end.offset);return/^\s*$/u.test(a)?``:E(a,e,{parser:`__ng_directive`,__isInHtmlAttribute:!1},T)}var Ge=We,Ke=Array.prototype.toReversed??function(){return[...this].reverse()},qe=l(`toReversed`,function(){if(Array.isArray(this))return Ke});function Je(){let e=globalThis,t=e.Deno?.build?.os;return typeof t==`string`?t===`windows`:e.navigator?.platform?.startsWith(`Win`)??e.process?.platform?.startsWith(`win`)??!1}var Ye=Je();function Xe(e){if(e=e instanceof URL?e:new URL(e),e.protocol!==`file:`)throw TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function Ze(e){return e=Xe(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,`%25`))}function Qe(e){e=Xe(e);let t=decodeURIComponent(e.pathname.replace(/\//g,`\\`).replace(/%(?![0-9A-Fa-f]{2})/g,`%25`)).replace(/^\\*([A-Za-z]:)(\\|$)/,`$1\\`);return e.hostname!==``&&(t=`\\\\${e.hostname}${t}`),t}function $e(e){return Ye?Qe(e):Ze(e)}var et=e=>String(e).split(/[/\\]/u).pop(),tt=e=>String(e).startsWith(`file:`);function nt(e){return Array.isArray(e)&&e.length>0}var rt=nt;function it(e,t){if(!t)return;let n=et(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function at(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}var ot=void 0;function st(e,t){if(t){if(tt(t))try{t=$e(t)}catch{return}if(typeof t==`string`)return e.find(({isSupported:e})=>e?.({filepath:t}))}}function ct(e,t){let n=qe(0,e.plugins).flatMap(e=>e.languages??[]);return(at(n,t.language)??it(n,t.physicalFile)??it(n,t.file)??st(n,t.physicalFile)??st(n,t.file)??ot?.(n,t.physicalFile))?.parsers[0]}var lt=ct,ut=Symbol.for(`PRETTIER_IS_FRONT_MATTER`);function dt(e){return!!e?.[ut]}var ft=dt,pt=3;function mt(e){let t=e.slice(0,pt);if(t!==`---`&&t!==`+++`)return;let n=e.indexOf(`
9
+ `,pt);if(n===-1)return;let r=e.slice(pt,n).trim(),i=e.indexOf(`
10
+ ${t}`,n),a=r;if(a||=t===`+++`?`toml`:`yaml`,i===-1&&t===`---`&&a===`yaml`&&(i=e.indexOf(`
11
+ ...`,n)),i===-1)return;let o=i+1+pt,s=e.charAt(o+1);if(!/\s?/u.test(s))return;let c=e.slice(0,o),l;return{language:a,explicitLanguage:r||null,value:e.slice(n+1,i),startDelimiter:t,endDelimiter:c.slice(-pt),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return l??=c.split(`
12
+ `),l.length},get column(){return l??=c.split(`
13
+ `),p(0,l,-1).length}},[ut]:!0}}function ht(e){let t=mt(e);return t?{frontMatter:t,get content(){let{raw:n}=t;return d(0,n,/[^\n]/gu,` `)+e.slice(n.length)}}:{content:e}}var gt=ht,_t=`inline`,vt={area:`none`,base:`none`,basefont:`none`,datalist:`none`,head:`none`,link:`none`,meta:`none`,noembed:`none`,noframes:`none`,param:`block`,rp:`none`,script:`block`,style:`none`,template:`inline`,title:`none`,html:`block`,body:`block`,address:`block`,blockquote:`block`,center:`block`,dialog:`block`,div:`block`,figure:`block`,figcaption:`block`,footer:`block`,form:`block`,header:`block`,hr:`block`,legend:`block`,listing:`block`,main:`block`,p:`block`,plaintext:`block`,pre:`block`,search:`block`,xmp:`block`,slot:`contents`,ruby:`ruby`,rt:`ruby-text`,article:`block`,aside:`block`,h1:`block`,h2:`block`,h3:`block`,h4:`block`,h5:`block`,h6:`block`,hgroup:`block`,nav:`block`,section:`block`,dir:`block`,dd:`block`,dl:`block`,dt:`block`,menu:`block`,ol:`block`,ul:`block`,li:`list-item`,table:`table`,caption:`table-caption`,colgroup:`table-column-group`,col:`table-column`,thead:`table-header-group`,tbody:`table-row-group`,tfoot:`table-footer-group`,tr:`table-row`,td:`table-cell`,th:`table-cell`,input:`inline-block`,button:`inline-block`,fieldset:`block`,details:`block`,summary:`block`,marquee:`inline-block`,select:`inline-block`,source:`block`,track:`block`,meter:`inline-block`,progress:`inline-block`,object:`inline-block`,video:`inline-block`,audio:`inline-block`,option:`block`,optgroup:`block`},yt=`normal`,bt={listing:`pre`,plaintext:`pre`,pre:`pre`,xmp:`pre`,nobr:`nowrap`,table:`initial`,textarea:`pre-wrap`};function xt(e){return e.kind===`element`&&!e.hasExplicitNamespace&&![`html`,`svg`].includes(e.namespace)}var St=xt,Ct=e=>d(0,e,/^[\t\f\r ]*\n/gu,``),wt=e=>Ct(w.trimEnd(e)),Tt=e=>{let t=e,n=w.getLeadingWhitespace(t);n&&(t=t.slice(n.length));let r=w.getTrailingWhitespace(t);return r&&(t=t.slice(0,-r.length)),{leadingWhitespace:n,trailingWhitespace:r,text:t}};function Et(e,t){return!!(e.kind===`ieConditionalComment`&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.kind===`ieConditionalComment`&&!e.complete||k(e)&&e.children.some(e=>e.kind!==`text`&&e.kind!==`interpolation`)||un(e,t)&&!O(e,t)&&e.kind!==`interpolation`)}function Dt(e){return e.kind===`attribute`||!e.parent||!e.prev?!1:Ot(e.prev)}function Ot(e){return e.kind===`comment`&&e.value.trim()===`prettier-ignore`}function D(e){return e.kind===`text`||e.kind===`comment`}function O(e,t){return e.kind===`element`&&(e.fullName===`script`||e.fullName===`style`||e.fullName===`svg:style`||e.fullName===`svg:script`||e.fullName===`mj-style`&&t.parser===`mjml`||St(e)&&(e.name===`script`||e.name===`style`))}function kt(e,t){return e.children&&!O(e,t)}function At(e,t){return O(e,t)||e.kind===`interpolation`||jt(e)}function jt(e){return on(e).startsWith(`pre`)}function Mt(e,t){let n=r();if(n&&!e.prev&&e.parent?.tagDefinition?.ignoreFirstLf)return e.kind===`interpolation`;return n;function r(){return ft(e)||e.kind===`angularControlFlowBlock`?!1:(e.kind===`text`||e.kind===`interpolation`)&&e.prev&&(e.prev.kind===`text`||e.prev.kind===`interpolation`)?!0:!e.parent||e.parent.cssDisplay===`none`?!1:k(e.parent)?!0:!(!e.prev&&(e.parent.kind===`root`||k(e)&&e.parent||O(e.parent,t)||ln(e.parent,t)||!Qt(e.parent.cssDisplay))||e.prev&&!tn(e.prev.cssDisplay))}}function Nt(e,t){return ft(e)||e.kind===`angularControlFlowBlock`?!1:(e.kind===`text`||e.kind===`interpolation`)&&e.next&&(e.next.kind===`text`||e.next.kind===`interpolation`)?!0:!e.parent||e.parent.cssDisplay===`none`?!1:k(e.parent)?!0:!(!e.next&&(e.parent.kind===`root`||k(e)&&e.parent||O(e.parent,t)||ln(e.parent,t)||!$t(e.parent.cssDisplay))||e.next&&!en(e.next.cssDisplay))}function Pt(e,t){return nn(e.cssDisplay)&&!O(e,t)}function Ft(e){return ft(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function It(e){return Lt(e)||e.kind===`element`&&e.children.length>0&&([`body`,`script`,`style`].includes(e.name)||e.children.some(e=>Gt(e)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.kind!==`text`&&Vt(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||Ht(e.lastChild))}function Lt(e){return e.kind===`element`&&e.children.length>0&&([`html`,`head`,`ul`,`ol`,`select`].includes(e.name)||e.cssDisplay.startsWith(`table`)&&e.cssDisplay!==`table-cell`)}function Rt(e){return Ut(e)||e.prev&&zt(e.prev)||Bt(e)}function zt(e){return Ut(e)||e.kind===`element`&&e.fullName===`br`||Bt(e)}function Bt(e){return Vt(e)&&Ht(e)}function Vt(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.kind===`root`||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function Ht(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.kind===`root`||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function Ut(e){switch(e.kind){case`ieConditionalComment`:case`comment`:case`directive`:return!0;case`element`:return[`script`,`select`].includes(e.name)}return!1}function Wt(e){return e.lastChild?Wt(e.lastChild):e}function Gt(e){return e.children?.some(e=>e.kind!==`text`)}function Kt(e){if(e)switch(e){case`module`:case`text/javascript`:case`text/babel`:case`text/jsx`:case`application/javascript`:return`babel`;case`application/x-typescript`:return`typescript`;case`text/markdown`:return`markdown`;case`text/html`:return`html`;case`text/x-handlebars-template`:return`glimmer`;default:if(e.endsWith(`json`)||e.endsWith(`importmap`)||e===`speculationrules`)return`json`}}function qt(e,t){let{name:n,attrMap:r}=e;if(n!==`script`||Object.prototype.hasOwnProperty.call(r,`src`))return;let{type:i,lang:a}=e.attrMap;return!a&&!i?`babel`:lt(t,{language:a})??Kt(i)}function Jt(e,t){if(!un(e,t))return;let{attrMap:n}=e;if(Object.prototype.hasOwnProperty.call(n,`src`))return;let{type:r,lang:i}=n;return lt(t,{language:i})??Kt(r)}function Yt(e,t){if(e.name===`style`){let{lang:n}=e.attrMap;return n?lt(t,{language:n}):`css`}if(e.name===`mj-style`&&t.parser===`mjml`)return`css`}function Xt(e,t){return qt(e,t)??Yt(e,t)??Jt(e,t)}function Zt(e){return e===`block`||e===`list-item`||e.startsWith(`table`)}function Qt(e){return!Zt(e)&&e!==`inline-block`}function $t(e){return!Zt(e)&&e!==`inline-block`}function en(e){return!Zt(e)}function tn(e){return!Zt(e)}function nn(e){return!Zt(e)&&e!==`inline-block`}function k(e){return on(e).startsWith(`pre`)}function rn(e,t){let n=e;for(;n;){if(t(n))return!0;n=n.parent}return!1}function an(e,t){if(j(e,t))return`block`;if(e.prev?.kind===`comment`){let t=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(t)return t[1]}let n=!1;if(e.kind===`element`&&e.namespace===`svg`)if(rn(e,e=>e.fullName===`svg:foreignObject`))n=!0;else return e.name===`svg`?`inline-block`:`block`;switch(t.htmlWhitespaceSensitivity){case`strict`:return`inline`;case`ignore`:return`block`;default:if(e.kind===`element`&&(!e.namespace||n||St(e))&&Object.prototype.hasOwnProperty.call(vt,e.name))return vt[e.name]}return _t}function on(e){return e.kind===`element`&&(!e.namespace||St(e))&&Object.prototype.hasOwnProperty.call(bt,e.name)?bt[e.name]:yt}function sn(e){return d(0,d(0,e,`&apos;`,`'`),`&quot;`,`"`)}function A(e){return sn(e.value)}var cn=new Set([`template`,`style`,`script`]);function ln(e,t){return j(e,t)&&!cn.has(e.fullName)}function j(e,t){return t.parser===`vue`&&e.kind===`element`&&e.parent.kind===`root`&&e.fullName.toLowerCase()!==`html`}function un(e,t){return j(e,t)&&(ln(e,t)||e.attrMap.lang&&e.attrMap.lang!==`html`)}function dn(e){let t=e.fullName;return t.charAt(0)===`#`||t===`slot-scope`||t===`v-slot`||t.startsWith(`v-slot:`)}function fn(e,t){let n=e.parent;if(!j(n,t))return!1;let r=n.fullName,i=e.fullName;return r===`script`&&i===`setup`||r===`style`&&i===`vars`}function pn(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?g(t):g(w.dedentString(wt(t)),C):b(x,w.split(t))}function mn(e,t){return j(e,t)&&e.name===`script`}function hn(e){let{valueSpan:t,value:n}=e;return t.end.offset-t.start.offset===n.length+2}function gn(e,t){if(hn(e))return!1;let{value:n}=e;return/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(n)||t.parser===`lwc`&&n.startsWith(`{`)&&n.endsWith(`}`)}var _n=/\{\{(.+?)\}\}/su,vn=({node:{value:e}})=>_n.test(e);async function yn(e,t,n){let r=A(n.node),i=[];for(let[t,n]of r.split(_n).entries())if(t%2==0)i.push(g(n));else try{i.push(y([`{{`,v([x,await E(n,e,{parser:`__ng_interpolation`,__isInHtmlInterpolation:!0})]),x,`}}`]))}catch{i.push(`{{`,g(n),`}}`)}return i}var bn=e=>(t,n,r)=>E(A(r.node),t,{parser:e},T),xn=[{test(e){let t=e.node.fullName;return t.startsWith(`(`)&&t.endsWith(`)`)||t.startsWith(`on-`)},print:bn(`__ng_action`)},{test(e){let t=e.node.fullName;return t.startsWith(`[`)&&t.endsWith(`]`)||/^bind(?:on)?-/u.test(t)||/^ng-(?:if|show|hide|class|style)$/u.test(t)},print:bn(`__ng_binding`)},{test:e=>e.node.fullName.startsWith(`*`),print:bn(`__ng_directive`)},{test:e=>/^i18n(?:-.+)?$/u.test(e.node.fullName),print:Sn},{test:vn,print:yn}].map(({test:e,print:t})=>({test:(t,n)=>n.parser===`angular`&&e(t),print:t}));function Sn(e,t,{node:n}){let r=A(n);return Ue(De(pn(n,r.trim())),!r.includes(`@@`))}var Cn=xn,wn=({node:e},t)=>!t.parentParser&&e.fullName===`class`&&!e.value.includes(`{{`),Tn=(e,t,n)=>A(n.node).trim().split(/\s+/u).join(` `),En=new Set(`onabort.onafterprint.onauxclick.onbeforeinput.onbeforematch.onbeforeprint.onbeforetoggle.onbeforeunload.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncommand.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onformdata.onhashchange.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onlanguagechange.onload.onloadeddata.onloadedmetadata.onloadstart.onmessage.onmessageerror.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onoffline.ononline.onpagehide.onpagereveal.onpageshow.onpageswap.onpaste.onpause.onplay.onplaying.onpopstate.onprogress.onratechange.onrejectionhandled.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onslotchange.onstalled.onstorage.onsubmit.onsuspend.ontimeupdate.ontoggle.onunhandledrejection.onunload.onvolumechange.onwaiting.onwheel`.split(`.`)),Dn=({node:e},t)=>En.has(e.fullName)&&!t.parentParser&&!e.value.includes(`{{`),On=(e,t,n)=>E(A(n.node),e,{parser:`babel`,__isHtmlInlineEventHandler:!0},()=>!1);function kn(e){let t=[];for(let n of e.split(`;`)){if(n=w.trim(n),!n)continue;let[e,...r]=w.split(n);t.push({name:e,value:r})}return t}var An=kn,jn=({node:e},t)=>e.fullName===`allow`&&!t.parentParser&&e.parent.fullName===`iframe`&&!e.value.includes(`{{`);function Mn(e,t,n){let{node:r}=n,i=An(A(r));return i.length===0?[``]:Ue(i.map(({name:e,value:t},n)=>[[e,...t].join(` `),n===i.length-1?Oe(`;`):[`;`,x]]))}function Nn(e){return e===` `||e===`
14
+ `||e===`\f`||e===`\r`||e===` `}var Pn=/^[ \t\n\r\u000c]+/,Fn=/^[, \t\n\r\u000c]+/,In=/^[^ \t\n\r\u000c]+/,Ln=/[,]+$/,Rn=/^\d+$/,zn=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function Bn(e){let t=e.length,n,r,i,a,o,s=0,c;function l(t){let n,r=t.exec(e.substring(s));if(r)return[n]=r,s+=n.length,n}let u=[];for(;;){if(l(Fn),s>=t){if(u.length===0)throw Error(`Must contain one or more image candidate strings.`);return u}c=s,n=l(In),r=[],n.slice(-1)===`,`?(n=n.replace(Ln,``),f()):d()}function d(){for(l(Pn),i=``,a=`in descriptor`;;){if(o=e.charAt(s),a===`in descriptor`)if(Nn(o))i&&(r.push(i),i=``,a=`after descriptor`);else if(o===`,`){s+=1,i&&r.push(i),f();return}else if(o===`(`)i+=o,a=`in parens`;else if(o===``){i&&r.push(i),f();return}else i+=o;else if(a===`in parens`)if(o===`)`)i+=o,a=`in descriptor`;else if(o===``){r.push(i),f();return}else i+=o;else if(a===`after descriptor`&&!Nn(o))if(o===``){f();return}else a=`in descriptor`,--s;s+=1}}function f(){let t=!1,i,a,o,s,l={},d,f,p,m,ee;for(s=0;s<r.length;s++)d=r[s],f=d[d.length-1],p=d.substring(0,d.length-1),m=parseInt(p,10),ee=parseFloat(p),Rn.test(p)&&f===`w`?((i||a)&&(t=!0),m===0?t=!0:i=m):zn.test(p)&&f===`x`?((i||a||o)&&(t=!0),ee<0?t=!0:a=ee):Rn.test(p)&&f===`h`?((o||a)&&(t=!0),m===0?t=!0:o=m):t=!0;if(!t)l.source={value:n,startOffset:c},i&&(l.width={value:i}),a&&(l.density={value:a}),o&&(l.height={value:o}),u.push(l);else throw Error(`Invalid srcset descriptor found in "${e}" at "${d}".`)}}var Vn=Bn,Hn=e=>e.node.fullName===`srcset`&&(e.parent.fullName===`img`||e.parent.fullName===`source`),Un={width:`w`,height:`h`,density:`x`},Wn=Object.keys(Un);function Gn(e,t,n){let r=Vn(A(n.node)),i=Wn.filter(e=>r.some(t=>Object.prototype.hasOwnProperty.call(t,e)));if(i.length>1)throw Error(`Mixed descriptor in srcset is not supported`);let[a]=i,o=Un[a],s=r.map(e=>e.source.value),c=Math.max(...s.map(e=>e.length)),l=r.map(e=>e[a]?String(e[a].value):``),u=l.map(e=>{let t=e.indexOf(`.`);return t===-1?e.length:t}),d=Math.max(...u);return Ue(b([`,`,x],s.map((e,t)=>{let n=[e],r=l[t];if(r){let i=c-e.length+1,a=d-u[t],s=` `.repeat(i+a);n.push(Oe(s,` `),r+o)}return n})))}var Kn=({node:e},t)=>e.fullName===`style`&&!t.parentParser&&!e.value.includes(`{{`),qn=async(e,t,n)=>Ue(await e(A(n.node),{parser:`css`,__isHTMLStyleAttribute:!0})),Jn=new WeakMap;function Yn(e,t){let{root:n}=e;return Jn.has(n)||Jn.set(n,n.children.some(e=>mn(e,t)&&[`ts`,`typescript`].includes(e.attrMap.lang))),Jn.get(n)}var M=Yn;function Xn(e,t,n){return E(`type T<${A(n.node)}> = any`,e,{parser:`babel-ts`,__isEmbeddedTypescriptGenericParameters:!0},T)}function Zn(e,t,n,r){let i=A(n.node),a=M(n,r)?`babel-ts`:`babel`;return E(`function _(${i}) {}`,e,{parser:a,__isVueBindings:!0})}async function Qn(e,t,n,r){let{left:i,operator:a,right:o}=$n(A(n.node)),s=M(n,r);return[y(await E(`function _(${i}) {}`,e,{parser:s?`babel-ts`:`babel`,__isVueForBindingLeft:!0})),` `,a,` `,await E(o,e,{parser:s?`__ts_expression`:`__js_expression`})]}function $n(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,n=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,r=/^\(|\)$/gu,i=e.match(t);if(!i)return;let a={for:i[3].trim()};if(!a.for)return;let o=d(0,i[1].trim(),r,``),s=o.match(n);s?(a.alias=o.replace(n,``),a.iterator1=s[1].trim(),s[2]&&(a.iterator2=s[2].trim())):a.alias=o;let c=[a.alias,a.iterator1,a.iterator2];if(!c.some((e,t)=>!e&&(t===0||c.slice(t+1).some(Boolean))))return{left:c.filter(Boolean).join(`,`),operator:i[2],right:a.for}}var er=[{test:e=>e.node.fullName===`v-for`,print:Qn},{test:(e,t)=>e.node.fullName===`generic`&&mn(e.parent,t),print:Xn},{test:({node:e},t)=>dn(e)||fn(e,t),print:Zn},{test(e){let t=e.node.fullName;return t.startsWith(`@`)||t.startsWith(`v-on:`)},print:tr},{test(e){let t=e.node.fullName;return t.startsWith(`:`)||t.startsWith(`.`)||t.startsWith(`v-bind:`)},print:nr},{test:e=>e.node.fullName.startsWith(`v-`),print:rr}].map(({test:e,print:t})=>({test:(t,n)=>n.parser===`vue`&&e(t,n),print:t}));async function tr(e,t,n,r){try{return await rr(e,t,n,r)}catch(e){if(e.cause?.code!==`BABEL_PARSER_SYNTAX_ERROR`)throw e}return E(A(n.node),e,{parser:M(n,r)?`__vue_ts_event_binding`:`__vue_event_binding`},T)}function nr(e,t,n,r){return E(A(n.node),e,{parser:M(n,r)?`__vue_ts_expression`:`__vue_expression`},T)}function rr(e,t,n,r){return E(A(n.node),e,{parser:M(n,r)?`__ts_expression`:`__js_expression`},T)}var ir=[{test:Hn,print:Gn},{test:Kn,print:qn},{test:Dn,print:On},{test:wn,print:Tn},{test:jn,print:Mn},...er,...Cn].map(({test:e,print:t})=>({test:e,print:or(t)}));function ar(e,t){let{node:n}=e,{value:r}=n;if(r)return gn(n,t)?[n.rawName,`=`,r]:ir.find(({test:n})=>n(e,t))?.print}function or(e){return async(t,n,r,i)=>{let a=await e(t,n,r,i);if(a)return a=be(a,e=>typeof e==`string`?d(0,e,`"`,`&quot;`):e),[r.node.rawName,`="`,y(a),`"`]}}var sr=ar,cr=e=>e.sourceSpan.start.offset,lr=e=>e.sourceSpan.end.offset;function ur(e,t){return[e.isSelfClosing?``:dr(e,t),fr(e,t)]}function dr(e,t){return e.lastChild&&vr(e.lastChild)?``:[pr(e,t),mr(e,t)]}function fr(e,t){return(e.next?P(e.next):_r(e.parent))?``:[hr(e,t),N(e,t)]}function pr(e,t){return _r(e)?hr(e.lastChild,t):``}function N(e,t){return vr(e)?mr(e.parent,t):yr(e)?Dr(e.next,t):``}function mr(e,t){if(gr(e,t))return``;switch(e.kind){case`ieConditionalComment`:return`<!`;case`element`:if(e.hasHtmComponentClosingTag)return`<//`;default:return`</${e.rawName}`}}function hr(e,t){if(gr(e,t))return``;switch(e.kind){case`ieConditionalComment`:case`ieConditionalEndComment`:return`[endif]-->`;case`ieConditionalStartComment`:return`]><!-->`;case`interpolation`:return`}}`;case`angularIcuExpression`:return`}`;case`element`:if(e.isSelfClosing)return`/>`;default:return`>`}}function gr(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Dt(e)||Et(e.parent,t))}function P(e){return e.prev&&e.prev.kind!==`docType`&&e.kind!==`angularControlFlowBlock`&&!D(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function _r(e){return e.lastChild?.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!D(Wt(e.lastChild))&&!k(e)}function vr(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&D(Wt(e))}function yr(e){return e.next&&!D(e.next)&&D(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function br(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):!0:!1}function xr(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Sr(e,t,n){let{node:r}=e;if(!rt(r.attrs))return r.isSelfClosing?` `:``;let i=r.prev?.kind===`comment`&&br(r.prev.value),a=typeof i==`boolean`?()=>i:Array.isArray(i)?e=>i.includes(e.rawName):()=>!1,o=e.map(({node:e})=>a(e)?g(t.originalText.slice(cr(e),lr(e))):n(),`attrs`),s=r.kind===`element`&&r.fullName===`script`&&r.attrs.length===1&&r.attrs[0].fullName===`src`&&r.children.length===0,c=t.singleAttributePerLine&&r.attrs.length>1&&!j(r,t)?C:x,l=[v([s?` `:x,b(c,o)])];return r.firstChild&&xr(r.firstChild)||r.isSelfClosing&&_r(r.parent)||s?l.push(r.isSelfClosing?` `:``):l.push(t.bracketSameLine?r.isSelfClosing?` `:``:r.isSelfClosing?x:S),l}function Cr(e){return e.firstChild&&xr(e.firstChild)?``:Or(e)}function wr(e,t,n){let{node:r}=e;return[Tr(r,t),Sr(e,t,n),r.isSelfClosing?``:Cr(r)]}function Tr(e,t){return e.prev&&yr(e.prev)?``:[F(e,t),Dr(e,t)]}function F(e,t){return xr(e)?Or(e.parent):P(e)?hr(e.prev,t):``}var Er=`<!doctype`;function Dr(e,t){switch(e.kind){case`ieConditionalComment`:case`ieConditionalStartComment`:return`<!--[if ${e.condition}`;case`ieConditionalEndComment`:return`<!--<!`;case`interpolation`:return`{{`;case`docType`:{if(e.value===`html`){let{filepath:e}=t;if(e&&/\.html?$/u.test(e))return Er}let n=cr(e);return t.originalText.slice(n,n+Er.length)}case`angularIcuExpression`:return`{`;case`element`:if(e.condition)return`<!--[if ${e.condition}]><!--><${e.rawName}`;default:return`<${e.rawName}`}}function Or(e){switch(e.kind){case`ieConditionalComment`:return`]>`;case`element`:if(e.condition)return`><!--<![endif]-->`;default:return`>`}}function kr(e,t){if(!e.endSourceSpan)return``;let n=e.startSourceSpan.end.offset;e.firstChild&&xr(e.firstChild)&&(n-=Or(e).length);let r=e.endSourceSpan.start.offset;return e.lastChild&&vr(e.lastChild)?r+=mr(e,t).length:_r(e)&&(r-=hr(e.lastChild,t).length),t.originalText.slice(n,r)}var Ar=kr,jr=new Set([`if`,`else if`,`for`,`switch`,`case`]);function Mr(e,t){let{node:n}=e;switch(n.kind){case`element`:if(O(n,t)||n.kind===`interpolation`)return;if(!n.isSelfClosing&&un(n,t)){let r=Xt(n,t);return r?async(i,a)=>{let o=Ar(n,t),s=/^\s*$/u.test(o),c=``;return s||=(c=await i(wt(o),{parser:r,__embeddedInHtml:!0}),c===``),[F(n,t),y(wr(e,t,a)),s?``:C,c,s?``:C,ur(n,t),N(n,t)]}:void 0}break;case`text`:if(O(n.parent,t)){let e=Xt(n.parent,t);if(e)return async r=>{let i=e===`markdown`?w.dedentString(n.value.replace(/^[^\S\n]*\n/u,``)):n.value,a={parser:e,__embeddedInHtml:!0};if(t.parser===`html`&&e===`babel`){let e=`script`,{attrMap:t}=n.parent;t&&(t.type===`module`||(t.type===`text/babel`||t.type===`text/jsx`)&&t[`data-type`]===`module`)&&(e=`module`),a.__babelSourceType=e}return[Ee,F(n,t),await r(i,a),N(n,t)]}}else if(n.parent.kind===`interpolation`)return async r=>{let i={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return t.parser===`angular`?i.parser=`__ng_interpolation`:t.parser===`vue`?i.parser=M(e,t)?`__vue_ts_expression`:`__vue_expression`:i.parser=`__js_expression`,[v([x,await r(n.value,i)]),n.parent.next&&P(n.parent.next)?` `:x]};break;case`attribute`:return sr(e,t);case`angularControlFlowBlockParameters`:return jr.has(e.parent.name)?Ge:void 0;case`angularLetDeclarationInitializer`:return e=>E(n.value,e,{parser:`__ng_binding`,__isInHtmlAttribute:!1})}}var Nr=Mr,Pr=null;function I(e){if(Pr!==null&&typeof Pr.property){let e=Pr;return Pr=I.prototype=null,e}return Pr=I.prototype=e??Object.create(null),new I}var Fr=10;for(let e=0;e<=Fr;e++)I();function Ir(e){return I(e)}function Lr(e,t=`type`){Ir(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var Rr=Lr,L=[[`children`],[]],zr=Rr({root:L[0],element:[`attrs`,`children`],ieConditionalComment:L[0],ieConditionalStartComment:L[1],ieConditionalEndComment:L[1],interpolation:L[0],text:L[0],docType:L[1],comment:L[1],attribute:L[1],cdata:L[1],angularControlFlowBlock:[`children`,`parameters`],angularControlFlowBlockParameters:L[0],angularControlFlowBlockParameter:L[1],angularLetDeclaration:[`init`],angularLetDeclarationInitializer:L[1],angularIcuExpression:[`cases`],angularIcuCase:[`expression`]},`kind`),Br=`format`,Vr=/^\s*<!--\s*@(?:noformat|noprettier)\s*-->/u,Hr=/^\s*<!--\s*@(?:format|prettier)\s*-->/u,Ur=e=>Hr.test(e),Wr=e=>Vr.test(e),Gr=e=>`<!-- @${Br} -->
15
+
16
+ ${e}`,Kr=new Map([[`if`,new Set([`else if`,`else`])],[`else if`,new Set([`else if`,`else`])],[`for`,new Set([`empty`])],[`defer`,new Set([`placeholder`,`error`,`loading`])],[`placeholder`,new Set([`placeholder`,`error`,`loading`])],[`error`,new Set([`placeholder`,`error`,`loading`])],[`loading`,new Set([`placeholder`,`error`,`loading`])]]);function qr(e){let t=lr(e);return e.kind===`element`&&!e.endSourceSpan&&rt(e.children)?Math.max(t,qr(p(0,e.children,-1))):t}function Jr(e,t,n){let r=e.node;if(Dt(r)){let e=qr(r);return[F(r,t),g(w.trimEnd(t.originalText.slice(cr(r)+(r.prev&&yr(r.prev)?Dr(r).length:0),e-(r.next&&P(r.next)?hr(r,t).length:0)))),N(r,t)]}return n()}function Yr(e,t){return D(e)&&D(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Rt(t)?C:x:``:Rt(t)?C:S:yr(e)&&(Dt(t)||t.firstChild||t.isSelfClosing||t.kind===`element`&&t.attrs.length>0)||e.kind===`element`&&e.isSelfClosing&&P(t)?``:!t.isLeadingSpaceSensitive||Rt(t)||P(t)&&e.lastChild&&vr(e.lastChild)&&e.lastChild.lastChild&&vr(e.lastChild.lastChild)?C:t.hasLeadingSpaces?x:S}function Xr(e,t,n){let{node:r}=e;if(Lt(r))return[Ee,...e.map(()=>{let r=e.node,i=r.prev?Yr(r.prev,r):``;return[i?[i,Ft(r.prev)?C:``]:``,Jr(e,t,n)]},`children`)];let i=r.children.map(()=>Symbol(``));return e.map(({node:r,index:a})=>{if(D(r)){if(r.prev&&D(r.prev)){let i=Yr(r.prev,r);if(i)return Ft(r.prev)?[C,C,Jr(e,t,n)]:[i,Jr(e,t,n)]}return Jr(e,t,n)}let o=[],s=[],c=[],l=[],u=r.prev?Yr(r.prev,r):``,d=r.next?Yr(r,r.next):``;return u&&(Ft(r.prev)?o.push(C,C):u===C?o.push(C):D(r.prev)?s.push(u):s.push(Oe(``,S,{groupId:i[a-1]}))),d&&(Ft(r)?D(r.next)&&l.push(C,C):d===C?D(r.next)&&l.push(C):c.push(d)),[...o,y([...s,y([Jr(e,t,n),...c],{id:i[a]})]),...l]},`children`)}function Zr(e,t,n){let{node:r}=e,i=[];if(ti(e)&&i.push(`} `),i.push(`@`,r.name),r.parameters&&i.push(` (`,y(n(`parameters`)),`)`),!ei(r)){i.push(` {`);let a=Qr(r);r.children.length>0?(r.firstChild.hasLeadingSpaces=!0,r.lastChild.hasTrailingSpaces=!0,i.push(v([C,Xr(e,t,n)])),a&&i.push(C,`}`)):a&&i.push(`}`)}return y(i,{shouldBreak:!0})}function Qr(e){return!(e.next?.kind===`angularControlFlowBlock`&&Kr.get(e.name)?.has(e.next.name))}var $r=e=>e?.kind===`angularControlFlowBlock`&&(e.name===`case`||e.name===`default`);function ei(e){return $r(e)&&e.endSourceSpan&&e.endSourceSpan.start.offset===e.endSourceSpan.end.offset}function ti(e){let{previous:t}=e;return t?.kind===`angularControlFlowBlock`&&!Dt(t)&&!Qr(t)}function ni(e,t,n){return[v([S,b([`;`,x],e.map(n,`children`))]),S]}function ri(e,t,n){let{node:r}=e;return[Tr(r,t),y([r.switchValue.trim(),`, `,r.type,r.cases.length>0?[`,`,v([x,b(x,e.map(n,`cases`))])]:``,S]),fr(r,t)]}function ii(e,t,n){let{node:r}=e;return[r.value,` {`,y([v([S,e.map(({node:e,isLast:t})=>{let r=[n()];return e.kind===`text`&&(e.hasLeadingSpaces&&r.unshift(x),e.hasTrailingSpaces&&!t&&r.push(x)),r},`expression`)]),S]),`}`]}function ai(e,t,n){let{node:r}=e;if(Et(r,t))return[F(r,t),y(wr(e,t,n)),g(Ar(r,t)),...ur(r,t),N(r,t)];let i=r.children.length===1&&(r.firstChild.kind===`interpolation`||r.firstChild.kind===`angularIcuExpression`)&&r.firstChild.isLeadingSpaceSensitive&&!r.firstChild.hasLeadingSpaces&&r.lastChild.isTrailingSpaceSensitive&&!r.lastChild.hasTrailingSpaces,a=Symbol(`element-attr-group-id`),o=i=>y([y(wr(e,t,n),{id:a}),i,ur(r,t)]);return r.children.length===0?o(r.hasDanglingSpaces&&r.isDanglingSpaceSensitive?x:``):o([It(r)?Ee:``,(e=>i?ke(e,{groupId:a}):(O(r,t)||ln(r,t))&&r.parent.kind===`root`&&t.parser===`vue`&&!t.vueIndentScriptAndStyle?e:v(e))([i?Oe(S,``,{groupId:a}):r.firstChild.hasLeadingSpaces&&r.firstChild.isLeadingSpaceSensitive?x:r.firstChild.kind===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive?Te(S):S,Xr(e,t,n)]),(r.next?P(r.next):_r(r.parent))?r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?` `:``:i?Oe(S,``,{groupId:a}):r.lastChild.hasTrailingSpaces&&r.lastChild.isTrailingSpaceSensitive?x:(r.lastChild.kind===`comment`||r.lastChild.kind===`text`&&r.isWhitespaceSensitive&&r.isIndentationSensitive)&&RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,`u`).test(r.lastChild.value)?``:S])}var R=(function(e){return e[e.RAW_TEXT=0]=`RAW_TEXT`,e[e.ESCAPABLE_RAW_TEXT=1]=`ESCAPABLE_RAW_TEXT`,e[e.PARSABLE_DATA=2]=`PARSABLE_DATA`,e})({});function oi(e,t=!0){if(e[0]!=`:`)return[null,e];let n=e.indexOf(`:`,1);if(n===-1){if(t)throw Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}function si(e){return oi(e)[1]===`ng-container`}function ci(e){return oi(e)[1]===`ng-content`}function li(e){return e===null?null:oi(e)[0]}function ui(e,t){return e?`:${e}:${t}`:t}var di={name:`custom-elements`},fi={name:`no-errors-schema`},z=(function(e){return e[e.NONE=0]=`NONE`,e[e.HTML=1]=`HTML`,e[e.STYLE=2]=`STYLE`,e[e.SCRIPT=3]=`SCRIPT`,e[e.URL=4]=`URL`,e[e.RESOURCE_URL=5]=`RESOURCE_URL`,e[e.ATTRIBUTE_NO_BINDING=6]=`ATTRIBUTE_NO_BINDING`,e})({}),pi=/-+([a-z0-9])/g;function mi(e){return e.replace(pi,(...e)=>e[1].toUpperCase())}var hi;function gi(){return hi||(hi={},_i(z.HTML,[`iframe|srcdoc`,`*|innerHTML`,`*|outerHTML`]),_i(z.STYLE,[`*|style`]),_i(z.URL,`*|formAction.area|href.a|href.a|xlink:href.form|action.annotation|href.annotation|xlink:href.annotation-xml|href.annotation-xml|xlink:href.maction|href.maction|xlink:href.malignmark|href.malignmark|xlink:href.math|href.math|xlink:href.mroot|href.mroot|xlink:href.msqrt|href.msqrt|xlink:href.merror|href.merror|xlink:href.mfrac|href.mfrac|xlink:href.mglyph|href.mglyph|xlink:href.msub|href.msub|xlink:href.msup|href.msup|xlink:href.msubsup|href.msubsup|xlink:href.mmultiscripts|href.mmultiscripts|xlink:href.mprescripts|href.mprescripts|xlink:href.mi|href.mi|xlink:href.mn|href.mn|xlink:href.mo|href.mo|xlink:href.mpadded|href.mpadded|xlink:href.mphantom|href.mphantom|xlink:href.mrow|href.mrow|xlink:href.ms|href.ms|xlink:href.mspace|href.mspace|xlink:href.mstyle|href.mstyle|xlink:href.mtable|href.mtable|xlink:href.mtd|href.mtd|xlink:href.mtr|href.mtr|xlink:href.mtext|href.mtext|xlink:href.mover|href.mover|xlink:href.munder|href.munder|xlink:href.munderover|href.munderover|xlink:href.semantics|href.semantics|xlink:href.none|href.none|xlink:href.img|src.video|src`.split(`.`)),_i(z.RESOURCE_URL,[`base|href`,`embed|src`,`frame|src`,`iframe|src`,`link|href`,`object|codebase`,`object|data`,`script|src`,`script|href`,`script|xlink:href`]),_i(z.ATTRIBUTE_NO_BINDING,[`animate|attributeName`,`set|attributeName`,`animateMotion|attributeName`,`animateTransform|attributeName`,`unknown|attributeName`,`iframe|sandbox`,`iframe|allow`,`iframe|allowFullscreen`,`iframe|referrerPolicy`,`iframe|csp`,`iframe|fetchPriority`,`unknown|sandbox`,`unknown|allow`,`unknown|allowFullscreen`,`unknown|referrerPolicy`,`unknown|csp`,`unknown|fetchPriority`])),hi}function _i(e,t){for(let n of t)hi[n.toLowerCase()]=e}var vi=class{},yi=`boolean`,bi=`number`,xi=`string`,Si=`object`,Ci=`[Element]|textContent,%ariaActiveDescendantElement,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColIndexText,%ariaColSpan,%ariaControlsElements,%ariaCurrent,%ariaDescribedByElements,%ariaDescription,%ariaDetailsElements,%ariaDisabled,%ariaErrorMessageElements,%ariaExpanded,%ariaFlowToElements,%ariaHasPopup,%ariaHidden,%ariaInvalid,%ariaKeyShortcuts,%ariaLabel,%ariaLabelledByElements,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaOwnsElements,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowIndexText,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored.[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy.abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,search,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy.media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume.:svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex.:svg:graphics^:svg:|.:svg:animation^:svg:|*begin,*end,*repeat.:svg:geometry^:svg:|.:svg:componentTransferFunction^:svg:|.:svg:gradient^:svg:|.:svg:textContent^:svg:graphics|.:svg:textPositioning^:svg:textContent|.a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username.area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username.audio^media|.br^[HTMLElement]|clear.base^[HTMLElement]|href,target.body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink.button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value.canvas^[HTMLElement]|#height,#width.content^[HTMLElement]|select.dl^[HTMLElement]|!compact.data^[HTMLElement]|value.datalist^[HTMLElement]|.details^[HTMLElement]|!open.dialog^[HTMLElement]|!open,returnValue.dir^[HTMLElement]|!compact.div^[HTMLElement]|align.embed^[HTMLElement]|align,height,name,src,type,width.fieldset^[HTMLElement]|!disabled,name.font^[HTMLElement]|color,face,size.form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target.frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src.frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows.hr^[HTMLElement]|align,color,!noShade,size,width.head^[HTMLElement]|.h1,h2,h3,h4,h5,h6^[HTMLElement]|align.html^[HTMLElement]|version.iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width.img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width.input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width.li^[HTMLElement]|type,#value.label^[HTMLElement]|htmlFor.legend^[HTMLElement]|align.link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type.map^[HTMLElement]|name.marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width.menu^[HTMLElement]|!compact.meta^[HTMLElement]|content,httpEquiv,media,name,scheme.meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value.ins,del^[HTMLElement]|cite,dateTime.ol^[HTMLElement]|!compact,!reversed,#start,type.object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width.optgroup^[HTMLElement]|!disabled,label.option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value.output^[HTMLElement]|defaultValue,%htmlFor,name,value.p^[HTMLElement]|align.param^[HTMLElement]|name,type,value,valueType.picture^[HTMLElement]|.pre^[HTMLElement]|#width.progress^[HTMLElement]|#max,#value.q,blockquote,cite^[HTMLElement]|.script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type.select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value.selectedcontent^[HTMLElement]|.slot^[HTMLElement]|name.source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width.span^[HTMLElement]|.style^[HTMLElement]|!disabled,media,type.search^[HTMLELement]|.caption^[HTMLElement]|align.th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width.col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width.table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width.tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign.tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign.template^[HTMLElement]|.textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap.time^[HTMLElement]|dateTime.title^[HTMLElement]|text.track^[HTMLElement]|!default,kind,label,src,srclang.ul^[HTMLElement]|!compact,type.unknown^[HTMLElement]|.video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width.:svg:a^:svg:graphics|.:svg:animate^:svg:animation|.:svg:animateMotion^:svg:animation|.:svg:animateTransform^:svg:animation|.:svg:circle^:svg:geometry|.:svg:clipPath^:svg:graphics|.:svg:defs^:svg:graphics|.:svg:desc^:svg:|.:svg:discard^:svg:|.:svg:ellipse^:svg:geometry|.:svg:feBlend^:svg:|.:svg:feColorMatrix^:svg:|.:svg:feComponentTransfer^:svg:|.:svg:feComposite^:svg:|.:svg:feConvolveMatrix^:svg:|.:svg:feDiffuseLighting^:svg:|.:svg:feDisplacementMap^:svg:|.:svg:feDistantLight^:svg:|.:svg:feDropShadow^:svg:|.:svg:feFlood^:svg:|.:svg:feFuncA^:svg:componentTransferFunction|.:svg:feFuncB^:svg:componentTransferFunction|.:svg:feFuncG^:svg:componentTransferFunction|.:svg:feFuncR^:svg:componentTransferFunction|.:svg:feGaussianBlur^:svg:|.:svg:feImage^:svg:|.:svg:feMerge^:svg:|.:svg:feMergeNode^:svg:|.:svg:feMorphology^:svg:|.:svg:feOffset^:svg:|.:svg:fePointLight^:svg:|.:svg:feSpecularLighting^:svg:|.:svg:feSpotLight^:svg:|.:svg:feTile^:svg:|.:svg:feTurbulence^:svg:|.:svg:filter^:svg:|.:svg:foreignObject^:svg:graphics|.:svg:g^:svg:graphics|.:svg:image^:svg:graphics|decoding.:svg:line^:svg:geometry|.:svg:linearGradient^:svg:gradient|.:svg:mpath^:svg:|.:svg:marker^:svg:|.:svg:mask^:svg:|.:svg:metadata^:svg:|.:svg:path^:svg:geometry|.:svg:pattern^:svg:|.:svg:polygon^:svg:geometry|.:svg:polyline^:svg:geometry|.:svg:radialGradient^:svg:gradient|.:svg:rect^:svg:geometry|.:svg:svg^:svg:graphics|#currentScale,#zoomAndPan.:svg:script^:svg:|type.:svg:set^:svg:animation|.:svg:stop^:svg:|.:svg:style^:svg:|!disabled,media,title,type.:svg:switch^:svg:graphics|.:svg:symbol^:svg:|.:svg:tspan^:svg:textPositioning|.:svg:text^:svg:textPositioning|.:svg:textPath^:svg:textContent|.:svg:title^:svg:|.:svg:use^:svg:graphics|.:svg:view^:svg:|#zoomAndPan.data^[HTMLElement]|value.keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name.menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default.summary^[HTMLElement]|.time^[HTMLElement]|dateTime.:svg:cursor^:svg:|.:math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex.:math:math^:math:|.:math:maction^:math:|.:math:menclose^:math:|.:math:merror^:math:|.:math:mfenced^:math:|.:math:mfrac^:math:|.:math:mi^:math:|.:math:mmultiscripts^:math:|.:math:mn^:math:|.:math:mo^:math:|.:math:mover^:math:|.:math:mpadded^:math:|.:math:mphantom^:math:|.:math:mroot^:math:|.:math:mrow^:math:|.:math:ms^:math:|.:math:mspace^:math:|.:math:msqrt^:math:|.:math:mstyle^:math:|.:math:msub^:math:|.:math:msubsup^:math:|.:math:msup^:math:|.:math:mtable^:math:|.:math:mtd^:math:|.:math:mtext^:math:|.:math:mtr^:math:|.:math:munder^:math:|.:math:munderover^:math:|.:math:semantics^:math:|`.split(`.`),wi=new Map(Object.entries({class:`className`,for:`htmlFor`,formaction:`formAction`,innerHtml:`innerHTML`,readonly:`readOnly`,tabindex:`tabIndex`,"aria-activedescendant":`ariaActiveDescendantElement`,"aria-atomic":`ariaAtomic`,"aria-autocomplete":`ariaAutoComplete`,"aria-busy":`ariaBusy`,"aria-checked":`ariaChecked`,"aria-colcount":`ariaColCount`,"aria-colindex":`ariaColIndex`,"aria-colindextext":`ariaColIndexText`,"aria-colspan":`ariaColSpan`,"aria-controls":`ariaControlsElements`,"aria-current":`ariaCurrent`,"aria-describedby":`ariaDescribedByElements`,"aria-description":`ariaDescription`,"aria-details":`ariaDetailsElements`,"aria-disabled":`ariaDisabled`,"aria-errormessage":`ariaErrorMessageElements`,"aria-expanded":`ariaExpanded`,"aria-flowto":`ariaFlowToElements`,"aria-haspopup":`ariaHasPopup`,"aria-hidden":`ariaHidden`,"aria-invalid":`ariaInvalid`,"aria-keyshortcuts":`ariaKeyShortcuts`,"aria-label":`ariaLabel`,"aria-labelledby":`ariaLabelledByElements`,"aria-level":`ariaLevel`,"aria-live":`ariaLive`,"aria-modal":`ariaModal`,"aria-multiline":`ariaMultiLine`,"aria-multiselectable":`ariaMultiSelectable`,"aria-orientation":`ariaOrientation`,"aria-owns":`ariaOwnsElements`,"aria-placeholder":`ariaPlaceholder`,"aria-posinset":`ariaPosInSet`,"aria-pressed":`ariaPressed`,"aria-readonly":`ariaReadOnly`,"aria-required":`ariaRequired`,"aria-roledescription":`ariaRoleDescription`,"aria-rowcount":`ariaRowCount`,"aria-rowindex":`ariaRowIndex`,"aria-rowindextext":`ariaRowIndexText`,"aria-rowspan":`ariaRowSpan`,"aria-selected":`ariaSelected`,"aria-setsize":`ariaSetSize`,"aria-sort":`ariaSort`,"aria-valuemax":`ariaValueMax`,"aria-valuemin":`ariaValueMin`,"aria-valuenow":`ariaValueNow`,"aria-valuetext":`ariaValueText`})),Ti=Array.from(wi).reduce((e,[t,n])=>(e.set(t,n),e),new Map),Ei=class extends vi{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,Ci.forEach(e=>{let t=new Map,n=new Set,[r,i]=e.split(`|`),a=i.split(`,`),[o,s]=r.split(`^`);o.split(`,`).forEach(e=>{this._schema.set(e.toLowerCase(),t),this._eventSchema.set(e.toLowerCase(),n)});let c=s&&this._schema.get(s.toLowerCase());if(c){for(let[e,n]of c)t.set(e,n);for(let e of this._eventSchema.get(s.toLowerCase()))n.add(e)}a.forEach(e=>{if(e.length>0)switch(e[0]){case`*`:n.add(e.substring(1));break;case`!`:t.set(e.substring(1),yi);break;case`#`:t.set(e.substring(1),bi);break;case`%`:t.set(e.substring(1),Si);break;default:t.set(e,xi)}})})}hasProperty(e,t,n){if(n.some(e=>e.name===fi.name))return!0;if(e.indexOf(`-`)>-1){if(si(e)||ci(e))return!1;if(n.some(e=>e.name===di.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get(`unknown`)).has(t)}hasElement(e,t){return t.some(e=>e.name===fi.name)||e.indexOf(`-`)>-1&&(si(e)||ci(e)||t.some(e=>e.name===di.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,n){n&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let r=gi()[e+`|`+t];return r||(r=gi()[`*|`+t],r||z.NONE)}getMappedPropName(e){return wi.get(e)??e}getDefaultComponentElementName(){return`ng-component`}validateProperty(e){return e.toLowerCase().startsWith(`on`)?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
17
+ If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith(`on`)?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get(`unknown`);return Array.from(t.keys()).map(e=>Ti.get(e)??e)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return mi(e)}normalizeAnimationStyleValue(e,t,n){let r=``,i=n.toString().trim(),a=null;if(Di(e)&&n!==0&&n!==`0`)if(typeof n==`number`)r=`px`;else{let e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&e[1].length==0&&(a=`Please provide a CSS unit value for ${t}:${n}`)}return{error:a,value:i+r}}};function Di(e){switch(e){case`width`:case`height`:case`minWidth`:case`minHeight`:case`maxWidth`:case`maxHeight`:case`left`:case`top`:case`bottom`:case`right`:case`fontSize`:case`outlineWidth`:case`outlineOffset`:case`paddingTop`:case`paddingLeft`:case`paddingBottom`:case`paddingRight`:case`marginTop`:case`marginLeft`:case`marginBottom`:case`marginRight`:case`borderRadius`:case`borderWidth`:case`borderTopWidth`:case`borderLeftWidth`:case`borderRightWidth`:case`borderBottomWidth`:case`textIndent`:return!0;default:return!1}}var B=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:n=R.PARSABLE_DATA,closedByParent:r=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:s=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(e=>this.closedByChildren[e]=!0),this.isVoid=i,this.closedByParent=r||i,this.implicitNamespacePrefix=t||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=s??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType==`object`?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Oi,ki;function Ai(e){return ki||(Oi=new B({canSelfClose:!0}),ki=Object.assign(Object.create(null),{base:new B({isVoid:!0}),meta:new B({isVoid:!0}),area:new B({isVoid:!0}),embed:new B({isVoid:!0}),link:new B({isVoid:!0}),img:new B({isVoid:!0}),input:new B({isVoid:!0}),param:new B({isVoid:!0}),hr:new B({isVoid:!0}),br:new B({isVoid:!0}),source:new B({isVoid:!0}),track:new B({isVoid:!0}),wbr:new B({isVoid:!0}),p:new B({closedByChildren:`address.article.aside.blockquote.div.dl.fieldset.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.main.nav.ol.p.pre.section.table.ul`.split(`.`),closedByParent:!0}),thead:new B({closedByChildren:[`tbody`,`tfoot`]}),tbody:new B({closedByChildren:[`tbody`,`tfoot`],closedByParent:!0}),tfoot:new B({closedByChildren:[`tbody`],closedByParent:!0}),tr:new B({closedByChildren:[`tr`],closedByParent:!0}),td:new B({closedByChildren:[`td`,`th`],closedByParent:!0}),th:new B({closedByChildren:[`td`,`th`],closedByParent:!0}),col:new B({isVoid:!0}),svg:new B({implicitNamespacePrefix:`svg`}),foreignObject:new B({implicitNamespacePrefix:`svg`,preventNamespaceInheritance:!0}),math:new B({implicitNamespacePrefix:`math`}),li:new B({closedByChildren:[`li`],closedByParent:!0}),dt:new B({closedByChildren:[`dt`,`dd`]}),dd:new B({closedByChildren:[`dt`,`dd`],closedByParent:!0}),rb:new B({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),rt:new B({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),rtc:new B({closedByChildren:[`rb`,`rtc`,`rp`],closedByParent:!0}),rp:new B({closedByChildren:[`rb`,`rt`,`rtc`,`rp`],closedByParent:!0}),optgroup:new B({closedByChildren:[`optgroup`],closedByParent:!0}),option:new B({closedByChildren:[`option`,`optgroup`],closedByParent:!0}),pre:new B({ignoreFirstLf:!0}),listing:new B({ignoreFirstLf:!0}),style:new B({contentType:R.RAW_TEXT}),script:new B({contentType:R.RAW_TEXT}),title:new B({contentType:{default:R.ESCAPABLE_RAW_TEXT,svg:R.PARSABLE_DATA}}),textarea:new B({contentType:R.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Ei().allKnownElementNames().forEach(e=>{!ki[e]&&li(e)===null&&(ki[e]=new B({canSelfClose:!1}))})),ki[e]??Oi}function ji(e){return e>=9&&e<=32||e==160}function Mi(e){return 48<=e&&e<=57}function Ni(e){return e>=97&&e<=122||e>=65&&e<=90}function Pi(e){return e>=97&&e<=102||e>=65&&e<=70||Mi(e)}function Fi(e){return e===10||e===13}function Ii(e){return 48<=e&&e<=55}function Li(e){return e===39||e===34||e===96}var Ri=class e{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return this.offset==null?this.file.url:`${this.file.url}@${this.line}:${this.col}`}moveBy(t){let n=this.file.content,r=n.length,i=this.offset,a=this.line,o=this.col;for(;i>0&&t<0;)if(i--,t++,n.charCodeAt(i)==10){a--;let e=n.substring(0,i-1).lastIndexOf(`
18
+ `);o=e>0?i-e:i}else o--;for(;i<r&&t>0;){let e=n.charCodeAt(i);i++,t--,e==10?(a++,o=0):o++}return new e(this.file,i,a,o)}getContext(e,t){let n=this.file.content,r=this.offset;if(r!=null){r>n.length-1&&(r=n.length-1);let i=r,a=0,o=0;for(;a<e&&r>0&&(r--,a++,!(n[r]==`
19
+ `&&++o==t)););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,!(n[i]==`
20
+ `&&++o==t)););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null}},zi=class{constructor(e,t){this.content=e,this.url=t}},V=class{constructor(e,t,n=e,r=null){this.start=e,this.end=t,this.fullStart=n,this.details=r}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Bi=(function(e){return e[e.WARNING=0]=`WARNING`,e[e.ERROR=1]=`ERROR`,e})({}),H=class extends Error{constructor(e,t,n=Bi.ERROR,r){super(t),this.span=e,this.msg=t,this.level=n,this.relatedError=r,Object.setPrototypeOf(this,new.target.prototype)}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Bi[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:``;return`${this.contextualMessage()}: ${this.span.start}${e}`}},U=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},Vi=class extends U{constructor(e,t,n,r){super(t,r),this.value=e,this.tokens=n,this.kind=`text`}visit(e,t){return e.visitText(this,t)}},Hi=class extends U{constructor(e,t,n,r){super(t,r),this.value=e,this.tokens=n,this.kind=`cdata`}visit(e,t){return e.visitCdata(this,t)}},Ui=class extends U{constructor(e,t,n,r,i,a){super(r,a),this.switchValue=e,this.type=t,this.cases=n,this.switchValueSourceSpan=i,this.kind=`expansion`}visit(e,t){return e.visitExpansion(this,t)}},Wi=class{constructor(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i,this.kind=`expansionCase`}visit(e,t){return e.visitExpansionCase(this,t)}},Gi=class extends U{constructor(e,t,n,r,i,a,o){super(n,o),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=i,this.valueTokens=a,this.kind=`attribute`}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},W=class extends U{constructor(e,t,n,r,i,a,o,s=null,c=null,l,u){super(a,u),this.name=e,this.attrs=t,this.directives=n,this.children=r,this.isSelfClosing=i,this.startSourceSpan=o,this.endSourceSpan=s,this.nameSpan=c,this.isVoid=l,this.kind=`element`}visit(e,t){return e.visitElement(this,t)}},Ki=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind=`comment`}visit(e,t){return e.visitComment(this,t)}},qi=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.kind=`docType`}visit(e,t){return e.visitDocType(this,t)}},G=class extends U{constructor(e,t,n,r,i,a,o=null,s){super(r,s),this.name=e,this.parameters=t,this.children=n,this.nameSpan=i,this.startSourceSpan=a,this.endSourceSpan=o,this.kind=`block`}visit(e,t){return e.visitBlock(this,t)}},K=class extends U{constructor(e,t,n,r,i,a,o,s,c,l=null,u){super(s,u),this.componentName=e,this.tagName=t,this.fullName=n,this.attrs=r,this.directives=i,this.children=a,this.isSelfClosing=o,this.startSourceSpan=c,this.endSourceSpan=l,this.kind=`component`}visit(e,t){return e.visitComponent(this,t)}},Ji=class{constructor(e,t,n,r,i=null){this.name=e,this.attrs=t,this.sourceSpan=n,this.startSourceSpan=r,this.endSourceSpan=i,this.kind=`directive`}visit(e,t){return e.visitDirective(this,t)}},Yi=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.kind=`blockParameter`,this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitBlockParameter(this,t)}},Xi=class{constructor(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.nameSpan=r,this.valueSpan=i,this.kind=`letDeclaration`,this.startSourceSpan=null,this.endSourceSpan=null}visit(e,t){return e.visitLetDeclaration(this,t)}};function Zi(e,t,n=null){let r=[],i=e.visit?t=>e.visit(t,n)||t.visit(e,n):t=>t.visit(e,n);return t.forEach(e=>{let t=i(e);t&&r.push(t)}),r}var Qi=class{constructor(){}visitElement(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.directives),t(e.children)})}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,t=>{t(e.cases)})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,t=>{t(e.parameters),t(e.children)})}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitComponent(e,t){this.visitChildren(t,t=>{t(e.attrs),t(e.children)})}visitDirective(e,t){this.visitChildren(t,t=>{t(e.attrs)})}visitChildren(e,t){let n=[],r=this;function i(t){t&&n.push(Zi(r,t,e))}return t(i),Array.prototype.concat.apply([],n)}},$i={AElig:`Æ`,AMP:`&`,amp:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:`⁡`,af:`⁡`,Aring:`Å`,angst:`Å`,Ascr:`𝒜`,Assign:`≔`,colone:`≔`,coloneq:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,setminus:`∖`,setmn:`∖`,smallsetminus:`∖`,ssetmn:`∖`,Barv:`⫧`,Barwed:`⌆`,doublebarwedge:`⌆`,Bcy:`Б`,Because:`∵`,becaus:`∵`,because:`∵`,Bernoullis:`ℬ`,Bscr:`ℬ`,bernou:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,breve:`˘`,Bumpeq:`≎`,HumpDownHump:`≎`,bump:`≎`,CHcy:`Ч`,COPY:`©`,copy:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,DD:`ⅅ`,Cayleys:`ℭ`,Cfr:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,cedil:`¸`,CenterDot:`·`,centerdot:`·`,middot:`·`,Chi:`Χ`,CircleDot:`⊙`,odot:`⊙`,CircleMinus:`⊖`,ominus:`⊖`,CirclePlus:`⊕`,oplus:`⊕`,CircleTimes:`⊗`,otimes:`⊗`,ClockwiseContourIntegral:`∲`,cwconint:`∲`,CloseCurlyDoubleQuote:`”`,rdquo:`”`,rdquor:`”`,CloseCurlyQuote:`’`,rsquo:`’`,rsquor:`’`,Colon:`∷`,Proportion:`∷`,Colone:`⩴`,Congruent:`≡`,equiv:`≡`,Conint:`∯`,DoubleContourIntegral:`∯`,ContourIntegral:`∮`,conint:`∮`,oint:`∮`,Copf:`ℂ`,complexes:`ℂ`,Coproduct:`∐`,coprod:`∐`,CounterClockwiseContourIntegral:`∳`,awconint:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,asympeq:`≍`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,ddagger:`‡`,Darr:`↡`,Dashv:`⫤`,DoubleLeftTee:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,nabla:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,acute:`´`,DiacriticalDot:`˙`,dot:`˙`,DiacriticalDoubleAcute:`˝`,dblac:`˝`,DiacriticalGrave:"`",grave:"`",DiacriticalTilde:`˜`,tilde:`˜`,Diamond:`⋄`,diam:`⋄`,diamond:`⋄`,DifferentialD:`ⅆ`,dd:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DoubleDot:`¨`,die:`¨`,uml:`¨`,DotDot:`⃜`,DotEqual:`≐`,doteq:`≐`,esdot:`≐`,DoubleDownArrow:`⇓`,Downarrow:`⇓`,dArr:`⇓`,DoubleLeftArrow:`⇐`,Leftarrow:`⇐`,lArr:`⇐`,DoubleLeftRightArrow:`⇔`,Leftrightarrow:`⇔`,hArr:`⇔`,iff:`⇔`,DoubleLongLeftArrow:`⟸`,Longleftarrow:`⟸`,xlArr:`⟸`,DoubleLongLeftRightArrow:`⟺`,Longleftrightarrow:`⟺`,xhArr:`⟺`,DoubleLongRightArrow:`⟹`,Longrightarrow:`⟹`,xrArr:`⟹`,DoubleRightArrow:`⇒`,Implies:`⇒`,Rightarrow:`⇒`,rArr:`⇒`,DoubleRightTee:`⊨`,vDash:`⊨`,DoubleUpArrow:`⇑`,Uparrow:`⇑`,uArr:`⇑`,DoubleUpDownArrow:`⇕`,Updownarrow:`⇕`,vArr:`⇕`,DoubleVerticalBar:`∥`,par:`∥`,parallel:`∥`,shortparallel:`∥`,spar:`∥`,DownArrow:`↓`,ShortDownArrow:`↓`,darr:`↓`,downarrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,duarr:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,leftharpoondown:`↽`,lhard:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,rhard:`⇁`,rightharpoondown:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,top:`⊤`,DownTeeArrow:`↧`,mapstodown:`↧`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,in:`∈`,isin:`∈`,isinv:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,eqsim:`≂`,esim:`≂`,Equilibrium:`⇌`,rightleftharpoons:`⇌`,rlhar:`⇌`,Escr:`ℰ`,expectation:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,exist:`∃`,ExponentialE:`ⅇ`,ee:`ⅇ`,exponentiale:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,blacksquare:`▪`,squarf:`▪`,squf:`▪`,Fopf:`𝔽`,ForAll:`∀`,forall:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,gt:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,ggg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,ge:`≥`,geq:`≥`,GreaterEqualLess:`⋛`,gel:`⋛`,gtreqless:`⋛`,GreaterFullEqual:`≧`,gE:`≧`,geqq:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,gl:`≷`,gtrless:`≷`,GreaterSlantEqual:`⩾`,geqslant:`⩾`,ges:`⩾`,GreaterTilde:`≳`,gsim:`≳`,gtrsim:`≳`,Gscr:`𝒢`,Gt:`≫`,NestedGreaterGreater:`≫`,gg:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,caron:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,Poincareplane:`ℌ`,HilbertSpace:`ℋ`,Hscr:`ℋ`,hamilt:`ℋ`,Hopf:`ℍ`,quaternions:`ℍ`,HorizontalLine:`─`,boxh:`─`,Hstrok:`Ħ`,HumpEqual:`≏`,bumpe:`≏`,bumpeq:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Im:`ℑ`,image:`ℑ`,imagpart:`ℑ`,Igrave:`Ì`,Imacr:`Ī`,ImaginaryI:`ⅈ`,ii:`ⅈ`,Int:`∬`,Integral:`∫`,int:`∫`,Intersection:`⋂`,bigcap:`⋂`,xcap:`⋂`,InvisibleComma:`⁣`,ic:`⁣`,InvisibleTimes:`⁢`,it:`⁢`,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,imagline:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,lt:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Lscr:`ℒ`,lagran:`ℒ`,Larr:`↞`,twoheadleftarrow:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,lang:`⟨`,langle:`⟨`,LeftArrow:`←`,ShortLeftArrow:`←`,larr:`←`,leftarrow:`←`,slarr:`←`,LeftArrowBar:`⇤`,larrb:`⇤`,LeftArrowRightArrow:`⇆`,leftrightarrows:`⇆`,lrarr:`⇆`,LeftCeiling:`⌈`,lceil:`⌈`,LeftDoubleBracket:`⟦`,lobrk:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,dharl:`⇃`,downharpoonleft:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,lfloor:`⌊`,LeftRightArrow:`↔`,harr:`↔`,leftrightarrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,dashv:`⊣`,LeftTeeArrow:`↤`,mapstoleft:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,vartriangleleft:`⊲`,vltri:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,ltrie:`⊴`,trianglelefteq:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,uharl:`↿`,upharpoonleft:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,leftharpoonup:`↼`,lharu:`↼`,LeftVectorBar:`⥒`,LessEqualGreater:`⋚`,leg:`⋚`,lesseqgtr:`⋚`,LessFullEqual:`≦`,lE:`≦`,leqq:`≦`,LessGreater:`≶`,lessgtr:`≶`,lg:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,leqslant:`⩽`,les:`⩽`,LessTilde:`≲`,lesssim:`≲`,lsim:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,lAarr:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,longleftarrow:`⟵`,xlarr:`⟵`,LongLeftRightArrow:`⟷`,longleftrightarrow:`⟷`,xharr:`⟷`,LongRightArrow:`⟶`,longrightarrow:`⟶`,xrarr:`⟶`,Lopf:`𝕃`,LowerLeftArrow:`↙`,swarr:`↙`,swarrow:`↙`,LowerRightArrow:`↘`,searr:`↘`,searrow:`↘`,Lsh:`↰`,lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,NestedLessLess:`≪`,ll:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mscr:`ℳ`,phmmat:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,mnplus:`∓`,mp:`∓`,Mopf:`𝕄`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,ZeroWidthSpace:`​`,NewLine:`
21
+ `,Nfr:`𝔑`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,nbsp:`\xA0`,Nopf:`ℕ`,naturals:`ℕ`,Not:`⫬`,NotCongruent:`≢`,nequiv:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,npar:`∦`,nparallel:`∦`,nshortparallel:`∦`,nspar:`∦`,NotElement:`∉`,notin:`∉`,notinva:`∉`,NotEqual:`≠`,ne:`≠`,NotEqualTilde:`≂̸`,nesim:`≂̸`,NotExists:`∄`,nexist:`∄`,nexists:`∄`,NotGreater:`≯`,ngt:`≯`,ngtr:`≯`,NotGreaterEqual:`≱`,nge:`≱`,ngeq:`≱`,NotGreaterFullEqual:`≧̸`,ngE:`≧̸`,ngeqq:`≧̸`,NotGreaterGreater:`≫̸`,nGtv:`≫̸`,NotGreaterLess:`≹`,ntgl:`≹`,NotGreaterSlantEqual:`⩾̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,NotGreaterTilde:`≵`,ngsim:`≵`,NotHumpDownHump:`≎̸`,nbump:`≎̸`,NotHumpEqual:`≏̸`,nbumpe:`≏̸`,NotLeftTriangle:`⋪`,nltri:`⋪`,ntriangleleft:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,nltrie:`⋬`,ntrianglelefteq:`⋬`,NotLess:`≮`,nless:`≮`,nlt:`≮`,NotLessEqual:`≰`,nle:`≰`,nleq:`≰`,NotLessGreater:`≸`,ntlg:`≸`,NotLessLess:`≪̸`,nLtv:`≪̸`,NotLessSlantEqual:`⩽̸`,nleqslant:`⩽̸`,nles:`⩽̸`,NotLessTilde:`≴`,nlsim:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,npr:`⊀`,nprec:`⊀`,NotPrecedesEqual:`⪯̸`,npre:`⪯̸`,npreceq:`⪯̸`,NotPrecedesSlantEqual:`⋠`,nprcue:`⋠`,NotReverseElement:`∌`,notni:`∌`,notniva:`∌`,NotRightTriangle:`⋫`,nrtri:`⋫`,ntriangleright:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,nrtrie:`⋭`,ntrianglerighteq:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,nsqsube:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,nsqsupe:`⋣`,NotSubset:`⊂⃒`,nsubset:`⊂⃒`,vnsub:`⊂⃒`,NotSubsetEqual:`⊈`,nsube:`⊈`,nsubseteq:`⊈`,NotSucceeds:`⊁`,nsc:`⊁`,nsucc:`⊁`,NotSucceedsEqual:`⪰̸`,nsce:`⪰̸`,nsucceq:`⪰̸`,NotSucceedsSlantEqual:`⋡`,nsccue:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,nsupset:`⊃⃒`,vnsup:`⊃⃒`,NotSupersetEqual:`⊉`,nsupe:`⊉`,nsupseteq:`⊉`,NotTilde:`≁`,nsim:`≁`,NotTildeEqual:`≄`,nsime:`≄`,nsimeq:`≄`,NotTildeFullEqual:`≇`,ncong:`≇`,NotTildeTilde:`≉`,nap:`≉`,napprox:`≉`,NotVerticalBar:`∤`,nmid:`∤`,nshortmid:`∤`,nsmid:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,ohm:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,ldquo:`“`,OpenCurlyQuote:`‘`,lsquo:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,oline:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,tbrk:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,part:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,plusmn:`±`,pm:`±`,Popf:`ℙ`,primes:`ℙ`,Pr:`⪻`,Precedes:`≺`,pr:`≺`,prec:`≺`,PrecedesEqual:`⪯`,pre:`⪯`,preceq:`⪯`,PrecedesSlantEqual:`≼`,prcue:`≼`,preccurlyeq:`≼`,PrecedesTilde:`≾`,precsim:`≾`,prsim:`≾`,Prime:`″`,Product:`∏`,prod:`∏`,Proportional:`∝`,prop:`∝`,propto:`∝`,varpropto:`∝`,vprop:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,quot:`"`,Qfr:`𝔔`,Qopf:`ℚ`,rationals:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,drbkarow:`⤐`,REG:`®`,circledR:`®`,reg:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,twoheadrightarrow:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,Rfr:`ℜ`,real:`ℜ`,realpart:`ℜ`,ReverseElement:`∋`,SuchThat:`∋`,ni:`∋`,niv:`∋`,ReverseEquilibrium:`⇋`,leftrightharpoons:`⇋`,lrhar:`⇋`,ReverseUpEquilibrium:`⥯`,duhar:`⥯`,Rho:`Ρ`,RightAngleBracket:`⟩`,rang:`⟩`,rangle:`⟩`,RightArrow:`→`,ShortRightArrow:`→`,rarr:`→`,rightarrow:`→`,srarr:`→`,RightArrowBar:`⇥`,rarrb:`⇥`,RightArrowLeftArrow:`⇄`,rightleftarrows:`⇄`,rlarr:`⇄`,RightCeiling:`⌉`,rceil:`⌉`,RightDoubleBracket:`⟧`,robrk:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,dharr:`⇂`,downharpoonright:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,rfloor:`⌋`,RightTee:`⊢`,vdash:`⊢`,RightTeeArrow:`↦`,map:`↦`,mapsto:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,vartriangleright:`⊳`,vrtri:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,rtrie:`⊵`,trianglerighteq:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,uharr:`↾`,upharpoonright:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,rharu:`⇀`,rightharpoonup:`⇀`,RightVectorBar:`⥓`,Ropf:`ℝ`,reals:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,rAarr:`⇛`,Rscr:`ℛ`,realine:`ℛ`,Rsh:`↱`,rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortUpArrow:`↑`,UpArrow:`↑`,uarr:`↑`,uparrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,compfn:`∘`,Sopf:`𝕊`,Sqrt:`√`,radic:`√`,Square:`□`,squ:`□`,square:`□`,SquareIntersection:`⊓`,sqcap:`⊓`,SquareSubset:`⊏`,sqsub:`⊏`,sqsubset:`⊏`,SquareSubsetEqual:`⊑`,sqsube:`⊑`,sqsubseteq:`⊑`,SquareSuperset:`⊐`,sqsup:`⊐`,sqsupset:`⊐`,SquareSupersetEqual:`⊒`,sqsupe:`⊒`,sqsupseteq:`⊒`,SquareUnion:`⊔`,sqcup:`⊔`,Sscr:`𝒮`,Star:`⋆`,sstarf:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,sube:`⊆`,subseteq:`⊆`,Succeeds:`≻`,sc:`≻`,succ:`≻`,SucceedsEqual:`⪰`,sce:`⪰`,succeq:`⪰`,SucceedsSlantEqual:`≽`,sccue:`≽`,succcurlyeq:`≽`,SucceedsTilde:`≿`,scsim:`≿`,succsim:`≿`,Sum:`∑`,sum:`∑`,Sup:`⋑`,Supset:`⋑`,Superset:`⊃`,sup:`⊃`,supset:`⊃`,SupersetEqual:`⊇`,supe:`⊇`,supseteq:`⊇`,THORN:`Þ`,TRADE:`™`,trade:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,there4:`∴`,therefore:`∴`,Theta:`Θ`,ThickSpace:`  `,ThinSpace:` `,thinsp:` `,Tilde:`∼`,sim:`∼`,thicksim:`∼`,thksim:`∼`,TildeEqual:`≃`,sime:`≃`,simeq:`≃`,TildeFullEqual:`≅`,cong:`≅`,TildeTilde:`≈`,ap:`≈`,approx:`≈`,asymp:`≈`,thickapprox:`≈`,thkap:`≈`,Topf:`𝕋`,TripleDot:`⃛`,tdot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,lowbar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,bbrk:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,bigcup:`⋃`,xcup:`⋃`,UnionPlus:`⊎`,uplus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,udarr:`⇅`,UpDownArrow:`↕`,updownarrow:`↕`,varr:`↕`,UpEquilibrium:`⥮`,udhar:`⥮`,UpTee:`⊥`,bot:`⊥`,bottom:`⊥`,perp:`⊥`,UpTeeArrow:`↥`,mapstoup:`↥`,UpperLeftArrow:`↖`,nwarr:`↖`,nwarrow:`↖`,UpperRightArrow:`↗`,nearr:`↗`,nearrow:`↗`,Upsi:`ϒ`,upsih:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,bigvee:`⋁`,xvee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,mid:`∣`,shortmid:`∣`,smid:`∣`,VerticalLine:`|`,verbar:`|`,vert:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,VeryThinSpace:` `,hairsp:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,bigwedge:`⋀`,xwedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,Zeta:`Ζ`,Zfr:`ℨ`,zeetrf:`ℨ`,Zopf:`ℤ`,integers:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,mstpos:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acy:`а`,aelig:`æ`,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,and:`∧`,wedge:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,angle:`∠`,ange:`⦤`,angmsd:`∡`,measuredangle:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,apE:`⩰`,apacir:`⩯`,ape:`≊`,approxeq:`≊`,apid:`≋`,apos:`'`,aring:`å`,ascr:`𝒶`,ast:`*`,midast:`*`,atilde:`ã`,auml:`ä`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,bcong:`≌`,backepsilon:`϶`,bepsi:`϶`,backprime:`‵`,bprime:`‵`,backsim:`∽`,bsim:`∽`,backsimeq:`⋍`,bsime:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrktbrk:`⎶`,bcy:`б`,bdquo:`„`,ldquor:`„`,bemptyv:`⦰`,beta:`β`,beth:`ℶ`,between:`≬`,twixt:`≬`,bfr:`𝔟`,bigcirc:`◯`,xcirc:`◯`,bigodot:`⨀`,xodot:`⨀`,bigoplus:`⨁`,xoplus:`⨁`,bigotimes:`⨂`,xotime:`⨂`,bigsqcup:`⨆`,xsqcup:`⨆`,bigstar:`★`,starf:`★`,bigtriangledown:`▽`,xdtri:`▽`,bigtriangleup:`△`,xutri:`△`,biguplus:`⨄`,xuplus:`⨄`,bkarow:`⤍`,rbarr:`⤍`,blacklozenge:`⧫`,lozf:`⧫`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,minusb:`⊟`,boxplus:`⊞`,plusb:`⊞`,boxtimes:`⊠`,timesb:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bumpE:`⪮`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cemptyv:`⦲`,cent:`¢`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,cire:`≗`,circlearrowleft:`↺`,olarr:`↺`,circlearrowright:`↻`,orarr:`↻`,circledS:`Ⓢ`,oS:`Ⓢ`,circledast:`⊛`,oast:`⊛`,circledcirc:`⊚`,ocir:`⊚`,circleddash:`⊝`,odash:`⊝`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,comma:`,`,commat:`@`,comp:`∁`,complement:`∁`,congdot:`⩭`,copf:`𝕔`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,curlyeqprec:`⋞`,cuesc:`⋟`,curlyeqsucc:`⋟`,cularr:`↶`,curvearrowleft:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curvearrowright:`↷`,curarrm:`⤼`,curlyvee:`⋎`,cuvee:`⋎`,curlywedge:`⋏`,cuwed:`⋏`,curren:`¤`,cwint:`∱`,cylcty:`⌭`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,dash:`‐`,hyphen:`‐`,dbkarow:`⤏`,rBarr:`⤏`,dcaron:`ď`,dcy:`д`,ddarr:`⇊`,downdownarrows:`⇊`,ddotseq:`⩷`,eDDot:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,diamondsuit:`♦`,diams:`♦`,digamma:`ϝ`,gammad:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,llcorner:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,doteqdot:`≑`,eDot:`≑`,dotminus:`∸`,minusd:`∸`,dotplus:`∔`,plusdo:`∔`,dotsquare:`⊡`,sdotb:`⊡`,drcorn:`⌟`,lrcorner:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,triangledown:`▿`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,eqcirc:`≖`,ecirc:`ê`,ecolon:`≕`,eqcolon:`≕`,ecy:`э`,edot:`ė`,efDot:`≒`,fallingdotseq:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,eqslantgtr:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,eqslantless:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,straightepsilon:`ϵ`,varepsilon:`ϵ`,equals:`=`,equest:`≟`,questeq:`≟`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,risingdotseq:`≓`,erarr:`⥱`,escr:`ℯ`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,fork:`⋔`,pitchfork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,sfrown:`⌢`,fscr:`𝒻`,gEl:`⪌`,gtreqqless:`⪌`,gacute:`ǵ`,gamma:`γ`,gap:`⪆`,gtrapprox:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gimel:`ℷ`,gjcy:`ѓ`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gneqq:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gnsim:`⋧`,gopf:`𝕘`,gscr:`ℊ`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtrdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrarr:`⥸`,gvertneqq:`≩︀`,gvnE:`≩︀`,hardcy:`ъ`,harrcir:`⥈`,harrw:`↭`,leftrightsquigarrow:`↭`,hbar:`ℏ`,hslash:`ℏ`,planck:`ℏ`,plankv:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,mldr:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,searhk:`⤥`,hkswarow:`⤦`,swarhk:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,larrhk:`↩`,hookrightarrow:`↪`,rarrhk:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hstrok:`ħ`,hybull:`⁃`,iacute:`í`,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,ifr:`𝔦`,igrave:`ì`,iiiint:`⨌`,qint:`⨌`,iiint:`∭`,tint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,imath:`ı`,inodot:`ı`,imof:`⊷`,imped:`Ƶ`,incare:`℅`,infin:`∞`,infintie:`⧝`,intcal:`⊺`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iquest:`¿`,iscr:`𝒾`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,varkappa:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAtail:`⤛`,lBarr:`⤎`,lEg:`⪋`,lesseqqgtr:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lambda:`λ`,langd:`⦑`,lap:`⪅`,lessapprox:`⪅`,laquo:`«`,larrbfs:`⤟`,larrfs:`⤝`,larrlp:`↫`,looparrowleft:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,leftarrowtail:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lcub:`{`,lbrack:`[`,lsqb:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lcy:`л`,ldca:`⤶`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leq:`≤`,leftleftarrows:`⇇`,llarr:`⇇`,leftthreetimes:`⋋`,lthree:`⋋`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessdot:`⋖`,ltdot:`⋖`,lfisht:`⥼`,lfr:`𝔩`,lgE:`⪑`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lneqq:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,longmapsto:`⟼`,xmap:`⟼`,looparrowright:`↬`,rarrlp:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,loz:`◊`,lozenge:`◊`,lpar:`(`,lparlt:`⦓`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsime:`⪍`,lsimg:`⪏`,lsquor:`‚`,sbquo:`‚`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,triangleleft:`◃`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,strns:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,mfr:`𝔪`,mho:`℧`,micro:`µ`,midcir:`⫰`,minus:`−`,minusdu:`⨪`,mlcp:`⫛`,models:`⊧`,mopf:`𝕞`,mscr:`𝓂`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nLeftarrow:`⇍`,nlArr:`⇍`,nLeftrightarrow:`⇎`,nhArr:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nRightarrow:`⇏`,nrArr:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nacute:`ń`,nang:`∠⃒`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,natur:`♮`,natural:`♮`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,neArr:`⇗`,nearhk:`⤤`,nedot:`≐̸`,nesear:`⤨`,toea:`⤨`,nfr:`𝔫`,nharr:`↮`,nleftrightarrow:`↮`,nhpar:`⫲`,nis:`⋼`,nisd:`⋺`,njcy:`њ`,nlE:`≦̸`,nleqq:`≦̸`,nlarr:`↚`,nleftarrow:`↚`,nldr:`‥`,nopf:`𝕟`,not:`¬`,notinE:`⋹̸`,notindot:`⋵̸`,notinvb:`⋷`,notinvc:`⋶`,notnivb:`⋾`,notnivc:`⋽`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,nrarr:`↛`,nrightarrow:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nscr:`𝓃`,nsub:`⊄`,nsubE:`⫅̸`,nsubseteqq:`⫅̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupseteqq:`⫆̸`,ntilde:`ñ`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwnear:`⤧`,oacute:`ó`,ocirc:`ô`,ocy:`о`,odblac:`ő`,odiv:`⨸`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,olcir:`⦾`,olcross:`⦻`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,or:`∨`,vee:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,oscr:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,para:`¶`,parsim:`⫳`,parsl:`⫽`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,straightphi:`ϕ`,varphi:`ϕ`,phone:`☎`,pi:`π`,piv:`ϖ`,varpi:`ϖ`,planckh:`ℎ`,plus:`+`,plusacir:`⨣`,pluscir:`⨢`,plusdu:`⨥`,pluse:`⩲`,plussim:`⨦`,plustwo:`⨧`,pointint:`⨕`,popf:`𝕡`,pound:`£`,prE:`⪳`,prap:`⪷`,precapprox:`⪷`,precnapprox:`⪹`,prnap:`⪹`,precneqq:`⪵`,prnE:`⪵`,precnsim:`⋨`,prnsim:`⋨`,prime:`′`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quatint:`⨖`,quest:`?`,rAtail:`⤜`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,raemptyv:`⦳`,rangd:`⦒`,range:`⦥`,raquo:`»`,rarrap:`⥵`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rightarrowtail:`↣`,rarrw:`↝`,rightsquigarrow:`↝`,ratail:`⤚`,ratio:`∶`,rbbrk:`❳`,rbrace:`}`,rcub:`}`,rbrack:`]`,rsqb:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdsh:`↳`,rect:`▭`,rfisht:`⥽`,rfr:`𝔯`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,varrho:`ϱ`,rightrightarrows:`⇉`,rrarr:`⇉`,rightthreetimes:`⋌`,rthree:`⋌`,ring:`˚`,rlm:`‏`,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rsaquo:`›`,rscr:`𝓇`,rtimes:`⋊`,rtri:`▹`,triangleright:`▹`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,scE:`⪴`,scap:`⪸`,succapprox:`⪸`,scaron:`š`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,succneqq:`⪶`,scnap:`⪺`,succnapprox:`⪺`,scnsim:`⋩`,succnsim:`⋩`,scpolint:`⨓`,scy:`с`,sdot:`⋅`,sdote:`⩦`,seArr:`⇘`,sect:`§`,semi:`;`,seswar:`⤩`,tosa:`⤩`,sext:`✶`,sfr:`𝔰`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shy:`­`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,varsigma:`ς`,simdot:`⩪`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,smashp:`⨳`,smeparsl:`⧤`,smile:`⌣`,ssmile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,sqcaps:`⊓︀`,sqcups:`⊔︀`,sscr:`𝓈`,star:`☆`,sub:`⊂`,subset:`⊂`,subE:`⫅`,subseteqq:`⫅`,subdot:`⪽`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subsetneqq:`⫋`,subne:`⊊`,subsetneq:`⊊`,subplus:`⪿`,subrarr:`⥹`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,supE:`⫆`,supseteqq:`⫆`,supdot:`⪾`,supdsub:`⫘`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supsetneqq:`⫌`,supne:`⊋`,supsetneq:`⊋`,supplus:`⫀`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,telrec:`⌕`,tfr:`𝔱`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,vartheta:`ϑ`,thorn:`þ`,times:`×`,timesbar:`⨱`,timesd:`⨰`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tprime:`‴`,triangle:`▵`,utri:`▵`,triangleq:`≜`,trie:`≜`,tridot:`◬`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,uHar:`⥣`,uacute:`ú`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udblac:`ű`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uogon:`ų`,uopf:`𝕦`,upsi:`υ`,upsilon:`υ`,upuparrows:`⇈`,uuarr:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,uuml:`ü`,uwangle:`⦧`,vBar:`⫨`,vBarv:`⫩`,vangrt:`⦜`,varsubsetneq:`⊊︀`,vsubne:`⊊︀`,varsubsetneqq:`⫋︀`,vsubnE:`⫋︀`,varsupsetneq:`⊋︀`,vsupne:`⊋︀`,varsupsetneqq:`⫌︀`,vsupnE:`⫌︀`,vcy:`в`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,vfr:`𝔳`,vopf:`𝕧`,vscr:`𝓋`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedgeq:`≙`,weierp:`℘`,wp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wscr:`𝓌`,xfr:`𝔵`,xi:`ξ`,xnis:`⋻`,xopf:`𝕩`,xscr:`𝓍`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`};$i.ngsp=``;var q=(function(e){return e[e.TAG_OPEN_START=0]=`TAG_OPEN_START`,e[e.TAG_OPEN_END=1]=`TAG_OPEN_END`,e[e.TAG_OPEN_END_VOID=2]=`TAG_OPEN_END_VOID`,e[e.TAG_CLOSE=3]=`TAG_CLOSE`,e[e.INCOMPLETE_TAG_OPEN=4]=`INCOMPLETE_TAG_OPEN`,e[e.TEXT=5]=`TEXT`,e[e.ESCAPABLE_RAW_TEXT=6]=`ESCAPABLE_RAW_TEXT`,e[e.RAW_TEXT=7]=`RAW_TEXT`,e[e.INTERPOLATION=8]=`INTERPOLATION`,e[e.ENCODED_ENTITY=9]=`ENCODED_ENTITY`,e[e.COMMENT_START=10]=`COMMENT_START`,e[e.COMMENT_END=11]=`COMMENT_END`,e[e.CDATA_START=12]=`CDATA_START`,e[e.CDATA_END=13]=`CDATA_END`,e[e.ATTR_NAME=14]=`ATTR_NAME`,e[e.ATTR_QUOTE=15]=`ATTR_QUOTE`,e[e.ATTR_VALUE_TEXT=16]=`ATTR_VALUE_TEXT`,e[e.ATTR_VALUE_INTERPOLATION=17]=`ATTR_VALUE_INTERPOLATION`,e[e.DOC_TYPE_START=18]=`DOC_TYPE_START`,e[e.DOC_TYPE_END=19]=`DOC_TYPE_END`,e[e.EXPANSION_FORM_START=20]=`EXPANSION_FORM_START`,e[e.EXPANSION_CASE_VALUE=21]=`EXPANSION_CASE_VALUE`,e[e.EXPANSION_CASE_EXP_START=22]=`EXPANSION_CASE_EXP_START`,e[e.EXPANSION_CASE_EXP_END=23]=`EXPANSION_CASE_EXP_END`,e[e.EXPANSION_FORM_END=24]=`EXPANSION_FORM_END`,e[e.BLOCK_OPEN_START=25]=`BLOCK_OPEN_START`,e[e.BLOCK_OPEN_END=26]=`BLOCK_OPEN_END`,e[e.BLOCK_CLOSE=27]=`BLOCK_CLOSE`,e[e.BLOCK_PARAMETER=28]=`BLOCK_PARAMETER`,e[e.INCOMPLETE_BLOCK_OPEN=29]=`INCOMPLETE_BLOCK_OPEN`,e[e.LET_START=30]=`LET_START`,e[e.LET_VALUE=31]=`LET_VALUE`,e[e.LET_END=32]=`LET_END`,e[e.INCOMPLETE_LET=33]=`INCOMPLETE_LET`,e[e.COMPONENT_OPEN_START=34]=`COMPONENT_OPEN_START`,e[e.COMPONENT_OPEN_END=35]=`COMPONENT_OPEN_END`,e[e.COMPONENT_OPEN_END_VOID=36]=`COMPONENT_OPEN_END_VOID`,e[e.COMPONENT_CLOSE=37]=`COMPONENT_CLOSE`,e[e.INCOMPLETE_COMPONENT_OPEN=38]=`INCOMPLETE_COMPONENT_OPEN`,e[e.DIRECTIVE_NAME=39]=`DIRECTIVE_NAME`,e[e.DIRECTIVE_OPEN=40]=`DIRECTIVE_OPEN`,e[e.DIRECTIVE_CLOSE=41]=`DIRECTIVE_CLOSE`,e[e.EOF=42]=`EOF`,e})({}),ea=class{constructor(e,t,n){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=n}};function ta(e,t,n,r={}){let i=new sa(new zi(e,t),n,r);return i.tokenize(),new ea(ya(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var na=/\r\n?/g;function J(e){return`Unexpected character "${e===0?`EOF`:String.fromCharCode(e)}"`}function ra(e){return`Unknown entity "${e}" - use the "&#<decimal>;" or "&#x<hex>;" syntax`}function ia(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var aa=(function(e){return e.HEX=`hexadecimal`,e.DEC=`decimal`,e})(aa||{}),oa=[`@if`,`@else`,`@for`,`@switch`,`@case`,`@default`,`@empty`,`@defer`,`@placeholder`,`@loading`,`@error`],Y={start:`{{`,end:`}}`},sa=class{constructor(e,t,n){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._openDirectiveCount=0,this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(e=>e.codePointAt(0)||0),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new xa(e,r):new ba(e,r),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0,this._selectorlessEnabled=n.selectorlessEnabled??!1;try{this._cursor.init()}catch(e){this.handleError(e)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(na,`
22
+ `)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr(`[CDATA[`)?this._consumeCdata(e):this._attemptStr(`--`)?this._consumeComment(e):this._attemptStrCaseInsensitive(`doctype`)?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(q.TEXT,q.INTERPOLATION,()=>this._isTextEnd(),()=>this._isTagStart())}catch(e){this.handleError(e)}}this._beginToken(q.EOF),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(t=>ji(t)?!e:ma(t)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._requireCharCode(64),this._beginToken(q.BLOCK_OPEN_START,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(X),this._attemptCharCode(41))this._attemptCharCodeUntilFn(X);else{t.type=q.INCOMPLETE_BLOCK_OPEN;return}this._attemptCharCode(123)?(this._beginToken(q.BLOCK_OPEN_END),this._endToken([])):this._isBlockStart()&&(t.parts[0]===`case`||t.parts[0]===`default`)?(this._beginToken(q.BLOCK_OPEN_END),this._endToken([]),this._beginToken(q.BLOCK_CLOSE),this._endToken([])):t.type=q.INCOMPLETE_BLOCK_OPEN}_consumeBlockEnd(e){this._beginToken(q.BLOCK_CLOSE,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(ha);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(q.BLOCK_PARAMETER);let e=this._cursor.clone(),t=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let e=this._cursor.peek();if(e===92)this._cursor.advance();else if(e===t)t=null;else if(t===null&&Li(e))t=e;else if(e===40&&t===null)n++;else if(e===41&&t===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(ha)}}_consumeLetDeclaration(e){if(this._requireStr(`@let`),this._beginToken(q.LET_START,e),ji(this._cursor.peek()))this._attemptCharCodeUntilFn(X);else{let t=this._endToken([this._cursor.getChars(e)]);t.type=q.INCOMPLETE_LET;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(X),!this._attemptCharCode(61)){t.type=q.INCOMPLETE_LET;return}this._attemptCharCodeUntilFn(e=>X(e)&&!Fi(e)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(q.LET_END),this._endToken([]),this._cursor.advance()):(t.type=q.INCOMPLETE_LET,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(e=>Ni(e)||e===36||e===95||t&&Mi(e)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(q.LET_VALUE,e);this._cursor.peek()!==0;){let e=this._cursor.peek();if(e===59)break;Li(e)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(t=>t===92?(this._cursor.advance(),!1):t===e)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(da(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new H(this._cursor.getSpan(t),`Programming error - attempted to end a token when there was no start to the token`);if(this._currentTokenType===null)throw new H(this._cursor.getSpan(this._currentTokenStart),`Programming error - attempted to end a token which has no token type`);let n={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new H(t,e);return this._currentTokenStart=null,this._currentTokenType=null,n}handleError(e){if(e instanceof Sa&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof H)this.errors.push(e);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return fa(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(J(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let n=this._cursor.clone();for(let r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=n,!1;return!0}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(J(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(J(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(e,t){let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(n)<t)throw this._createError(J(this._cursor.peek()),this._cursor.getSpan(n))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance()}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_peekStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return!1;let n=this._cursor.clone();for(let r=0;r<t;r++){if(n.peek()!==e.charCodeAt(r))return!1;n.advance()}return!0}_isBlockStart(){return this._cursor.peek()===64&&oa.some(e=>this._peekStr(e))}_isLetStart(){return this._cursor.peek()===64&&this._peekStr(`@let`)}_consumeEntity(e){this._beginToken(q.ENCODED_ENTITY);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let e=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(la),this._cursor.peek()!=59){this._cursor.advance();let n=e?aa.HEX:aa.DEC;throw this._createError(ia(n,this._cursor.getChars(t)),this._cursor.getSpan())}let r=this._cursor.getChars(n);this._cursor.advance();try{let n=parseInt(r,e?16:10);this._endToken([String.fromCodePoint(n),this._cursor.getChars(t)])}catch{throw this._createError(ra(this._cursor.getChars(t)),this._cursor.getSpan())}}else{let n=this._cursor.clone();if(this._attemptCharCodeUntilFn(ua),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=n,this._endToken([`&`]);else{let e=this._cursor.getChars(n);this._cursor.advance();let r=$i.hasOwnProperty(e)&&$i[e];if(!r)throw this._createError(ra(e),this._cursor.getSpan(t));this._endToken([r,`&${e};`])}}}_consumeRawText(e,t){this._beginToken(e?q.ESCAPABLE_RAW_TEXT:q.RAW_TEXT);let n=[];for(;;){let r=this._cursor.clone(),i=t();if(this._cursor=r,i)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(n.join(``))]),n.length=0,this._consumeEntity(q.ESCAPABLE_RAW_TEXT),this._beginToken(q.ESCAPABLE_RAW_TEXT)):n.push(this._readChar())}this._endToken([this._processCarriageReturns(n.join(``))])}_consumeComment(e){this._beginToken(q.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr(`-->`)),this._beginToken(q.COMMENT_END),this._requireStr(`-->`),this._endToken([])}_consumeBogusComment(e){this._beginToken(q.COMMENT_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(q.COMMENT_END),this._cursor.advance(),this._endToken([])}_consumeCdata(e){this._beginToken(q.CDATA_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr(`]]>`)),this._beginToken(q.CDATA_END),this._requireStr(`]]>`),this._endToken([])}_consumeDocType(e){this._beginToken(q.DOC_TYPE_START,e),this._endToken([]),this._consumeRawText(!1,()=>this._cursor.peek()===62),this._beginToken(q.DOC_TYPE_END),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(e){let t=this._cursor.clone(),n=``;for(;this._cursor.peek()!==58&&!ca(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===58?(n=this._cursor.getChars(t),this._cursor.advance(),r=this._cursor.clone()):r=t,this._requireCharCodeUntilFn(e,n===``?0:1);let i=this._cursor.getChars(r);return[n,i]}_consumeTagOpen(e){let t,n,r,i,a=[];try{if(this._selectorlessEnabled&&ga(this._cursor.peek()))i=this._consumeComponentOpenStart(e),[r,n,t]=i.parts,n&&(r+=`:${n}`),t&&(r+=`:${t}`),this._attemptCharCodeUntilFn(X);else{if(!Ni(this._cursor.peek()))throw this._createError(J(this._cursor.peek()),this._cursor.getSpan(e));i=this._consumeTagOpenStart(e),n=i.parts[0],t=r=i.parts[1],this._attemptCharCodeUntilFn(X)}for(;!va(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===64){let e=this._cursor.clone(),t=e.clone();t.advance(),ga(t.peek())&&this._consumeDirective(e,t)}else{let e=this._consumeAttribute();a.push(e)}i.type===q.COMPONENT_OPEN_START?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(t){if(t instanceof H){i?i.type=i.type===q.COMPONENT_OPEN_START?q.INCOMPLETE_COMPONENT_OPEN:q.INCOMPLETE_TAG_OPEN:(this._beginToken(q.TEXT,e),this._endToken([`<`]));return}throw t}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===q.TAG_OPEN_END_VOID)return;let o=this._getTagContentType(t,n,this._fullNameStack.length>0,a);this._handleFullNameStackForTagOpen(n,t),o===R.RAW_TEXT?this._consumeRawTextWithTagClose(n,i,r,!1):o===R.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,i,r,!0)}_consumeRawTextWithTagClose(e,t,n,r){this._consumeRawText(r,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(X),!this._attemptStrCaseInsensitive(e&&t.type!==q.COMPONENT_OPEN_START?`${e}:${n}`:n))?!1:(this._attemptCharCodeUntilFn(X),this._attemptCharCode(62))),this._beginToken(t.type===q.COMPONENT_OPEN_START?q.COMPONENT_CLOSE:q.TAG_CLOSE),this._requireCharCodeUntilFn(e=>e===62,3),this._cursor.advance(),this._endToken(t.parts),this._handleFullNameStackForTagClose(e,n)}_consumeTagOpenStart(e){this._beginToken(q.TAG_OPEN_START,e);let t=this._consumePrefixAndName(Z);return this._endToken(t)}_consumeComponentOpenStart(e){this._beginToken(q.COMPONENT_OPEN_START,e);let t=this._consumeComponentName();return this._endToken(t)}_consumeComponentName(){let e=this._cursor.clone();for(;_a(this._cursor.peek());)this._cursor.advance();let t=this._cursor.getChars(e),n=``,r=``;return this._cursor.peek()===58&&(this._cursor.advance(),[n,r]=this._consumePrefixAndName(Z)),[t,n,r]}_consumeAttribute(){let[e,t]=this._consumeAttributeName(),n;return this._attemptCharCodeUntilFn(X),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(X),n=this._consumeAttributeValue()),this._attemptCharCodeUntilFn(X),{prefix:e,name:t,value:n}}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(J(e),this._cursor.getSpan());this._beginToken(q.ATTR_NAME);let t;if(this._openDirectiveCount>0){let e=0;t=t=>{if(this._openDirectiveCount>0){if(t===40)e++;else if(t===41){if(e===0)return!0;e--}}return Z(t)}}else if(e===91){let e=0;t=t=>(t===91?e++:t===93&&e--,e<=0?Z(t):Fi(t))}else t=Z;let n=this._consumePrefixAndName(t);return this._endToken(n),n}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let n=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(q.ATTR_VALUE_TEXT,q.ATTR_VALUE_INTERPOLATION,n,n),this._consumeQuote(t)}else{let t=()=>Z(this._cursor.peek());e=this._consumeWithInterpolation(q.ATTR_VALUE_TEXT,q.ATTR_VALUE_INTERPOLATION,t,t)}return e}_consumeQuote(e){this._beginToken(q.ATTR_QUOTE),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?q.TAG_OPEN_END_VOID:q.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeComponentOpenEnd(){let e=this._attemptCharCode(47)?q.COMPONENT_OPEN_END_VOID:q.COMPONENT_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])}_consumeTagClose(e){if(this._selectorlessEnabled){let t=e.clone();for(;t.peek()!==62&&!ga(t.peek());)t.advance();if(ga(t.peek())){this._beginToken(q.COMPONENT_CLOSE,e);let t=this._consumeComponentName();this._attemptCharCodeUntilFn(X),this._requireCharCode(62),this._endToken(t);return}}if(this._beginToken(q.TAG_CLOSE,e),this._attemptCharCodeUntilFn(X),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(X),this._requireCharCode(62),this._endToken([]);else{let[e,t]=this._consumePrefixAndName(Z);this._attemptCharCodeUntilFn(X),this._requireCharCode(62),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t)}}_consumeExpansionFormStart(){this._beginToken(q.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(q.EXPANSION_FORM_START),this._beginToken(q.RAW_TEXT);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(X),this._beginToken(q.RAW_TEXT);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(X)}_consumeExpansionCaseStart(){this._beginToken(q.EXPANSION_CASE_VALUE);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(X),this._beginToken(q.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(X),this._expansionCaseStack.push(q.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(q.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(X),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(q.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,n,r){this._beginToken(e);let i=[];for(;!n();){let n=this._cursor.clone();this._attemptStr(Y.start)?(this._endToken([this._processCarriageReturns(i.join(``))],n),i.length=0,this._consumeInterpolation(t,n,r),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(i.join(``))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1;let a=this._processCarriageReturns(i.join(``));return this._endToken([a]),a}_consumeInterpolation(e,t,n){let r=[];this._beginToken(e,t),r.push(Y.start);let i=this._cursor.clone(),a=null,o=!1;for(;this._cursor.peek()!==0&&(n===null||!n());){let e=this._cursor.clone();if(this._isTagStart()){this._cursor=e,r.push(this._getProcessedChars(i,e)),this._endToken(r);return}if(a===null)if(this._attemptStr(Y.end)){r.push(this._getProcessedChars(i,e)),r.push(Y.end),this._endToken(r);return}else this._attemptStr(`//`)&&(o=!0);let t=this._cursor.peek();this._cursor.advance(),t===92?this._cursor.advance():t===a?a=null:!o&&a===null&&Li(t)&&(a=t)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_consumeDirective(e,t){for(this._requireCharCode(64),this._cursor.advance();_a(this._cursor.peek());)this._cursor.advance();this._beginToken(q.DIRECTIVE_NAME,e);let n=this._cursor.getChars(t);if(this._endToken([n]),this._attemptCharCodeUntilFn(X),this._cursor.peek()===40){for(this._openDirectiveCount++,this._beginToken(q.DIRECTIVE_OPEN),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(X);!va(this._cursor.peek())&&this._cursor.peek()!==41;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(X),this._openDirectiveCount--,this._cursor.peek()!==41){if(this._cursor.peek()===62||this._cursor.peek()===47)return;throw this._createError(J(this._cursor.peek()),this._cursor.getSpan(e))}this._beginToken(q.DIRECTIVE_CLOSE),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(X)}}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===q.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===q.EXPANSION_FORM_START}isExpansionFormStart(){if(this._cursor.peek()!==123)return!1;let e=this._cursor.clone(),t=this._attemptStr(Y.start);return this._cursor=e,!t}_handleFullNameStackForTagOpen(e,t){let n=ui(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(e,t){let n=ui(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}};function X(e){return!ji(e)||e===0}function Z(e){return ji(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function ca(e){return(e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function la(e){return e===59||e===0||!Pi(e)}function ua(e){return e===59||e===0||!Ni(e)}function da(e){return e!==125}function fa(e,t){return pa(e)===pa(t)}function pa(e){return e>=97&&e<=122?e-97+65:e}function ma(e){return Ni(e)||Mi(e)||e===95}function ha(e){return e!==59&&X(e)}function ga(e){return e===95||e>=65&&e<=90}function _a(e){return Ni(e)||Mi(e)||e===95}function va(e){return e===47||e===62||e===60||e===0}function ya(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r];n&&n.type===q.TEXT&&i.type===q.TEXT||n&&n.type===q.ATTR_VALUE_TEXT&&i.type===q.ATTR_VALUE_TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,t.push(n))}return t}var ba=class e{constructor(t,n){if(t instanceof e){this.file=t.file,this.input=t.input,this.end=t.end;let e=t.state;this.state={peek:e.peek,offset:e.offset,line:e.line,column:e.column}}else{if(!n)throw Error(`Programming error: the range argument must be provided with a file argument.`);this.file=t,this.input=t.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}clone(){return new e(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(e){return this.state.offset-e.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(e,t){e||=this;let n=e;if(t)for(;this.diff(e)>0&&t.indexOf(e.peek())!==-1;)n===e&&(e=e.clone()),e.advance();let r=this.locationFromCursor(e);return new V(r,this.locationFromCursor(this),n===e?r:this.locationFromCursor(n))}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new Sa(`Unexpected character "EOF"`,this);let t=this.charAt(e.offset);t===10?(e.line++,e.column=0):Fi(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)}locationFromCursor(e){return new Ri(e.file,e.state.offset,e.state.line,e.state.column)}},xa=class e extends ba{constructor(t,n){t instanceof e?(super(t),this.internalState={...t.internalState}):(super(t,n),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new e(this)}getChars(e){let t=e.clone(),n=``;for(;t.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(t.peek()),t.advance();return n}processEscapeSequence(){let e=()=>this.internalState.peek;if(e()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),e()===110)this.state.peek=10;else if(e()===114)this.state.peek=13;else if(e()===118)this.state.peek=11;else if(e()===116)this.state.peek=9;else if(e()===98)this.state.peek=8;else if(e()===102)this.state.peek=12;else if(e()===117)if(this.advanceState(this.internalState),e()===123){this.advanceState(this.internalState);let t=this.clone(),n=0;for(;e()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(t,n)}else{let e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(e()===120){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(Ii(e())){let t=``,n=0,r=this.clone();for(;Ii(e())&&n<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else Fi(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let n=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(n,16);if(isNaN(r))throw e.state=e.internalState,new Sa(`Invalid hexadecimal escape sequence`,e);return r}},Sa=class extends Error{constructor(e,t){super(e),this.msg=e,this.cursor=t,Object.setPrototypeOf(this,new.target.prototype)}},Q=class e extends H{static create(t,n,r){return new e(t,n,r)}constructor(e,t,n){super(t,n),this.elementName=e}},Ca=class{constructor(e,t){this.rootNodes=e,this.errors=t}},wa=class{constructor(e){this.getTagDefinition=e}parse(e,t,n,r=!1,i){let a=e=>(t,...n)=>e(t.toLowerCase(),...n),o=r?this.getTagDefinition:a(this.getTagDefinition),s=e=>o(e).getContentType(),c=r?i:a(i),l=ta(e,t,i?(e,t,n,r)=>{let i=c(e,t,n,r);return i===void 0?s(e):i}:s,n),u=n&&n.canSelfClose||!1,d=n&&n.allowHtmComponentClosingTags||!1,f=new Ta(l.tokens,o,u,d,r);return f.build(),new Ca(f.rootNodes,[...l.errors,...f.errors])}},Ta=class e{constructor(e,t,n,r,i){this.tokens=e,this.tagDefinitionResolver=t,this.canSelfClose=n,this.allowHtmComponentClosingTags=r,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==q.EOF;)this._peek.type===q.TAG_OPEN_START||this._peek.type===q.INCOMPLETE_TAG_OPEN?this._consumeElementStartTag(this._advance()):this._peek.type===q.TAG_CLOSE?(this._closeVoidElement(),this._consumeElementEndTag(this._advance())):this._peek.type===q.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===q.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===q.TEXT||this._peek.type===q.RAW_TEXT||this._peek.type===q.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===q.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._peek.type===q.BLOCK_OPEN_START?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===q.BLOCK_CLOSE?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===q.INCOMPLETE_BLOCK_OPEN?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===q.LET_START?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===q.DOC_TYPE_START?this._consumeDocType(this._advance()):this._peek.type===q.INCOMPLETE_LET?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===q.COMPONENT_OPEN_START||this._peek.type===q.INCOMPLETE_COMPONENT_OPEN?this._consumeComponentStartTag(this._advance()):this._peek.type===q.COMPONENT_CLOSE?this._consumeComponentEndTag(this._advance()):this._advance();for(let e of this._containerStack)e instanceof G&&this.errors.push(Q.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e}_advanceIf(e){return this._peek.type===e?this._advance():null}_consumeCdata(e){let t=this._advance(),n=this._getText(t),r=this._advanceIf(q.CDATA_END);this._addToParent(new Hi(n,new V(e.sourceSpan.start,(r||t).sourceSpan.end),[t]))}_consumeComment(e){let t=this._advanceIf(q.RAW_TEXT),n=this._advanceIf(q.COMMENT_END),r=t==null?null:t.parts[0].trim(),i=n==null?e.sourceSpan:new V(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Ki(r,i))}_consumeDocType(e){let t=this._advanceIf(q.RAW_TEXT),n=this._advanceIf(q.DOC_TYPE_END),r=t==null?null:t.parts[0].trim(),i=new V(e.sourceSpan.start,(n||t||e).sourceSpan.end);this._addToParent(new qi(r,i))}_consumeExpansion(e){let t=this._advance(),n=this._advance(),r=[];for(;this._peek.type===q.EXPANSION_CASE_VALUE;){let e=this._parseExpansionCase();if(!e)return;r.push(e)}if(this._peek.type!==q.EXPANSION_FORM_END){this.errors.push(Q.create(null,this._peek.sourceSpan,`Invalid ICU message. Missing '}'.`));return}let i=new V(e.sourceSpan.start,this._peek.sourceSpan.end,e.sourceSpan.fullStart);this._addToParent(new Ui(t.parts[0],n.parts[0],r,i,t.sourceSpan)),this._advance()}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==q.EXPANSION_CASE_EXP_START)return this.errors.push(Q.create(null,this._peek.sourceSpan,`Invalid ICU message. Missing '{'.`)),null;let n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;let i=this._advance();r.push({type:q.EOF,parts:[],sourceSpan:i.sourceSpan});let a=new e(r,this.tagDefinitionResolver,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(a.build(),a.errors.length>0)return this.errors=this.errors.concat(a.errors),null;let o=new V(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),s=new V(n.sourceSpan.start,i.sourceSpan.end,n.sourceSpan.fullStart);return new Wi(t.parts[0],a.rootNodes,o,t.sourceSpan,s)}_collectExpansionExpTokens(e){let t=[],n=[q.EXPANSION_CASE_EXP_START];for(;;){if((this._peek.type===q.EXPANSION_FORM_START||this._peek.type===q.EXPANSION_CASE_EXP_START)&&n.push(this._peek.type),this._peek.type===q.EXPANSION_CASE_EXP_END)if(Ea(n,q.EXPANSION_CASE_EXP_START)){if(n.pop(),n.length===0)return t}else return this.errors.push(Q.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null;if(this._peek.type===q.EXPANSION_FORM_END)if(Ea(n,q.EXPANSION_FORM_START))n.pop();else return this.errors.push(Q.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null;if(this._peek.type===q.EOF)return this.errors.push(Q.create(null,e.sourceSpan,`Invalid ICU message. Missing '}'.`)),null;t.push(this._advance())}}_getText(e){let t=e.parts[0];if(t.length>0&&t[0]==`
23
+ `){var n;let e=this._getClosestElementLikeParent();e!=null&&e.children.length==0&&(n=this._getTagDefinition(e))!=null&&n.ignoreFirstLf&&(t=t.substring(1))}return t}_consumeText(e){let t=[e],n=e.sourceSpan,r=e.parts[0];if(r.length>0&&r[0]===`
24
+ `){var i;let n=this._getContainer();n!=null&&n.children.length===0&&(i=this._getTagDefinition(n))!=null&&i.ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;this._peek.type===q.INTERPOLATION||this._peek.type===q.TEXT||this._peek.type===q.ENCODED_ENTITY;)e=this._advance(),t.push(e),e.type===q.INTERPOLATION?r+=e.parts.join(``).replace(/&([^;]+);/g,Da):e.type===q.ENCODED_ENTITY?r+=e.parts[0]:r+=e.parts.join(``);if(r.length>0){let i=e.sourceSpan;this._addToParent(new Vi(r,new V(n.start,i.end,n.fullStart,n.details),t))}}_closeVoidElement(){var e;let t=this._getContainer();t!==null&&(e=this._getTagDefinition(t))!=null&&e.isVoid&&this._containerStack.pop()}_consumeElementStartTag(e){var t;let n=[],r=[];this._consumeAttributesAndDirectives(n,r);let i=this._getElementFullName(e,this._getClosestElementLikeParent()),a=this._getTagDefinition(i),o=!1;if(this._peek.type===q.TAG_OPEN_END_VOID){this._advance(),o=!0;let t=this._getTagDefinition(i);this.canSelfClose||t?.canSelfClose||li(i)!==null||t?.isVoid||this.errors.push(Q.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===q.TAG_OPEN_END&&(this._advance(),o=!1);let s=this._peek.sourceSpan.fullStart,c=new V(e.sourceSpan.start,s,e.sourceSpan.fullStart),l=new V(e.sourceSpan.start,s,e.sourceSpan.fullStart),u=new V(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),d=new W(i,n,r,[],o,c,l,void 0,u,a?.isVoid??!1),f=this._getContainer(),p=f!==null&&!!((t=this._getTagDefinition(f))!=null&&t.isClosedByChild(d.name));this._pushContainer(d,p),o?this._popContainer(i,W,c):e.type===q.INCOMPLETE_TAG_OPEN&&(this._popContainer(i,W,null),this.errors.push(Q.create(i,c,`Opening tag "${i}" not terminated.`)))}_consumeComponentStartTag(e){var t;let n=e.parts[0],r=[],i=[];this._consumeAttributesAndDirectives(r,i);let a=this._getClosestElementLikeParent(),o=this._getComponentTagName(e,a),s=this._getComponentFullName(e,a),c=this._peek.type===q.COMPONENT_OPEN_END_VOID;this._advance();let l=this._peek.sourceSpan.fullStart,u=new V(e.sourceSpan.start,l,e.sourceSpan.fullStart),d=new K(n,o,s,r,i,[],c,u,new V(e.sourceSpan.start,l,e.sourceSpan.fullStart),void 0),f=this._getContainer(),p=f!==null&&d.tagName!==null&&!!((t=this._getTagDefinition(f))!=null&&t.isClosedByChild(d.tagName));this._pushContainer(d,p),c?this._popContainer(s,K,u):e.type===q.INCOMPLETE_COMPONENT_OPEN&&(this._popContainer(s,K,null),this.errors.push(Q.create(s,u,`Opening tag "${s}" not terminated.`)))}_consumeAttributesAndDirectives(e,t){for(;this._peek.type===q.ATTR_NAME||this._peek.type===q.DIRECTIVE_NAME;)this._peek.type===q.DIRECTIVE_NAME?t.push(this._consumeDirective(this._peek)):e.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(e){let t=this._getComponentFullName(e,this._getClosestElementLikeParent());if(!this._popContainer(t,K,e.sourceSpan)){let n=this._containerStack[this._containerStack.length-1],r;r=n instanceof K&&n.componentName===e.parts[0]?`, did you mean "${n.fullName}"?`:`. It may happen when the tag has already been closed by another tag.`;let i=`Unexpected closing tag "${t}"${r}`;this.errors.push(Q.create(t,e.sourceSpan,i))}}_getTagDefinition(e){return typeof e==`string`?this.tagDefinitionResolver(e):e instanceof W?this.tagDefinitionResolver(e.name):e instanceof K&&e.tagName!==null?this.tagDefinitionResolver(e.tagName):null}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeElementEndTag(e){var t;let n=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e,this._getClosestElementLikeParent());if(n&&(t=this._getTagDefinition(n))!=null&&t.isVoid)this.errors.push(Q.create(n,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(n,W,e.sourceSpan)){let t=`Unexpected closing tag "${n}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Q.create(n,e.sourceSpan,t))}}_popContainer(e,t,n){let r=!1;for(let a=this._containerStack.length-1;a>=0;a--){var i;let o=this._containerStack[a],s=o instanceof K?o.fullName:o.name;if(li(s)?s===e:(s===e||e===null)&&o instanceof t)return o.endSourceSpan=n,o.sourceSpan.end=n===null?o.sourceSpan.end:n.end,this._containerStack.splice(a,this._containerStack.length-a),!r;(o instanceof G||!((i=this._getTagDefinition(o))!=null&&i.closedByParent))&&(r=!0)}return!1}_consumeAttr(e){let t=ui(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r;this._peek.type===q.ATTR_QUOTE&&(r=this._advance());let i=``,a=[],o,s;if(this._peek.type===q.ATTR_VALUE_TEXT)for(o=this._peek.sourceSpan,s=this._peek.sourceSpan.end;this._peek.type===q.ATTR_VALUE_TEXT||this._peek.type===q.ATTR_VALUE_INTERPOLATION||this._peek.type===q.ENCODED_ENTITY;){let e=this._advance();a.push(e),e.type===q.ATTR_VALUE_INTERPOLATION?i+=e.parts.join(``).replace(/&([^;]+);/g,Da):e.type===q.ENCODED_ENTITY?i+=e.parts[0]:i+=e.parts.join(``),s=n=e.sourceSpan.end}this._peek.type===q.ATTR_QUOTE&&(s=n=this._advance().sourceSpan.end);let c=o&&s&&new V(r?.sourceSpan.start??o.start,s,r?.sourceSpan.fullStart??o.fullStart);return new Gi(t,i,new V(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,c,a.length>0?a:void 0,void 0)}_consumeDirective(e){let t=[],n=e.sourceSpan.end,r=null;if(this._advance(),this._peek.type===q.DIRECTIVE_OPEN){for(n=this._peek.sourceSpan.end,this._advance();this._peek.type===q.ATTR_NAME;)t.push(this._consumeAttr(this._advance()));this._peek.type===q.DIRECTIVE_CLOSE?(r=this._peek.sourceSpan,this._advance()):this.errors.push(Q.create(null,e.sourceSpan,`Unterminated directive definition`))}let i=new V(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new V(i.start,r===null?e.sourceSpan.end:r.end,i.fullStart);return new Ji(e.parts[0],t,a,i,r)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===q.BLOCK_PARAMETER;){let e=this._advance();t.push(new Yi(e.parts[0],e.sourceSpan))}this._peek.type===q.BLOCK_OPEN_END&&this._advance();let n=this._peek.sourceSpan.fullStart,r=new V(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new V(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new G(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,G,e.sourceSpan)||this.errors.push(Q.create(null,e.sourceSpan,`Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.`))}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===q.BLOCK_PARAMETER;){let e=this._advance();t.push(new Yi(e.parts[0],e.sourceSpan))}let n=this._peek.sourceSpan.fullStart,r=new V(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new V(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new G(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,G,null),this.errors.push(Q.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let t=e.parts[0],n,r;if(this._peek.type!==q.LET_VALUE){this.errors.push(Q.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${t}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==q.LET_END){this.errors.push(Q.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${t}". Declaration must be terminated with a semicolon.`));return}else r=this._advance();let i=r.sourceSpan.fullStart,a=new V(e.sourceSpan.start,i,e.sourceSpan.fullStart),o=e.sourceSpan.toString().lastIndexOf(t),s=new V(e.sourceSpan.start.moveBy(o),e.sourceSpan.end),c=new Xi(t,n.parts[0],a,s,n.sourceSpan);this._addToParent(c)}_consumeIncompleteLet(e){let t=e.parts[0]??``,n=t?` "${t}"`:``;if(t.length>0){let n=e.sourceSpan.toString().lastIndexOf(t),r=new V(e.sourceSpan.start.moveBy(n),e.sourceSpan.end),i=new V(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),a=new Xi(t,``,e.sourceSpan,r,i);this._addToParent(a)}this.errors.push(Q.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let e=this._containerStack.length-1;e>-1;e--){let t=this._containerStack[e];if(t instanceof W||t instanceof K)return t}return null}_addToParent(e){let t=this._getContainer();t===null?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t){return ui(this._getPrefix(e,t),e.parts[1])}_getComponentFullName(e,t){let n=e.parts[0],r=this._getComponentTagName(e,t);return r===null?n:r.startsWith(`:`)?n+r:`${n}:${r}`}_getComponentTagName(e,t){let n=this._getPrefix(e,t),r=e.parts[2];return!n&&!r?null:!n&&r?r:ui(n,r||`ng-component`)}_getPrefix(e,t){let n,r;if(e.type===q.COMPONENT_OPEN_START||e.type===q.INCOMPLETE_COMPONENT_OPEN||e.type===q.COMPONENT_CLOSE?(n=e.parts[1],r=e.parts[2]):(n=e.parts[0],r=e.parts[1]),n=n||this._getTagDefinition(r)?.implicitNamespacePrefix||``,!n&&t){let e=t instanceof W?t.name:t.tagName;if(e!==null){let t=oi(e)[1],r=this._getTagDefinition(t);r!==null&&!r.preventNamespaceInheritance&&(n=li(e))}}return n}};function Ea(e,t){return e.length>0&&e[e.length-1]===t}function Da(e,t){return $i[t]===void 0?/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e:$i[t]||e}var Oa=class extends wa{constructor(){super(Ai)}parse(e,t,n,r=!1,i){return super.parse(e,t,n,r,i)}},ka=null,Aa=()=>(ka||=new Oa,ka);function ja(e,t={}){let{canSelfClose:n=!1,allowHtmComponentClosingTags:r=!1,isTagNameCaseSensitive:i=!1,getTagContentType:a,tokenizeAngularBlocks:o=!1,tokenizeAngularLetDeclaration:s=!1,enableAngularSelectorlessSyntax:c=!1}=t;return Aa().parse(e,`angular-html-parser`,{tokenizeExpansionForms:o,canSelfClose:n,allowHtmComponentClosingTags:r,tokenizeBlocks:o,tokenizeLet:s,selectorlessEnabled:c},i,a)}var Ma=[Pa,Fa,La,za,Ba,Ua,Va,Ha,Wa,Ra];function Na(e,t){for(let n of Ma)n(e,t);return e}function Pa(e){e.walk(e=>{if(e.kind===`element`&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].kind===`text`&&e.children[0].value[0]===`
25
+ `){let t=e.children[0];t.value.length===1?e.removeChild(t):t.value=t.value.slice(1)}})}function Fa(e){let t=e=>e.kind===`element`&&e.prev?.kind===`ieConditionalStartComment`&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild?.kind===`ieConditionalEndComment`&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.children[n];if(!t(r))continue;let i=r.prev,a=r.firstChild;e.removeChild(i),n--;let o=new V(i.sourceSpan.start,a.sourceSpan.end),s=new V(o.start,r.sourceSpan.end);r.condition=i.condition,r.sourceSpan=s,r.startSourceSpan=o,r.removeChild(a)}})}function Ia(e,t,n){e.walk(e=>{if(e.children)for(let r=0;r<e.children.length;r++){let i=e.children[r];if(i.kind!==`text`&&!t(i))continue;i.kind!==`text`&&(i.kind=`text`,i.value=n(i));let a=i.prev;!a||a.kind!==`text`||(a.value+=i.value,a.sourceSpan=new V(a.sourceSpan.start,i.sourceSpan.end),e.removeChild(i),r--)}})}function La(e){return Ia(e,e=>e.kind===`cdata`,e=>`<![CDATA[${e.value}]]>`)}function Ra(e){let t=e=>e.kind===`element`&&e.attrs.length===0&&e.children.length===1&&e.firstChild.kind===`text`&&!w.hasWhitespaceCharacter(e.children[0].value)&&!e.firstChild.hasLeadingSpaces&&!e.firstChild.hasTrailingSpaces&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces&&e.prev?.kind===`text`&&e.next?.kind===`text`;e.walk(e=>{if(e.children)for(let n=0;n<e.children.length;n++){let r=e.children[n];if(!t(r))continue;let i=r.prev,a=r.next;i.value+=`<${r.rawName}>`+r.firstChild.value+`</${r.rawName}>`+a.value,i.sourceSpan=new V(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,e.removeChild(r),n--,e.removeChild(a)}})}function za(e,t){if(t.parser===`html`)return;let n=/\{\{(.+?)\}\}/su;e.walk(e=>{if(kt(e,t))for(let t of e.children){if(t.kind!==`text`)continue;let r=t.sourceSpan.start,i=null,a=t.value.split(n);for(let n=0;n<a.length;n++,r=i){let o=a[n];if(n%2==0){i=r.moveBy(o.length),o.length>0&&e.insertChildBefore(t,{kind:`text`,value:o,sourceSpan:new V(r,i)});continue}i=r.moveBy(o.length+4),e.insertChildBefore(t,{kind:`interpolation`,sourceSpan:new V(r,i),children:o.length===0?[]:[{kind:`text`,value:o,sourceSpan:new V(r.moveBy(2),i.moveBy(-2))}]})}e.removeChild(t)}})}function Ba(e,t){e.walk(e=>{let n=e.$children;if(!n)return;if(n.length===0||n.length===1&&n[0].kind===`text`&&w.trim(n[0].value).length===0){e.hasDanglingSpaces=n.length>0,e.$children=[];return}let r=At(e,t),i=jt(e);if(!r)for(let t=0;t<n.length;t++){let r=n[t];if(r.kind!==`text`)continue;let{leadingWhitespace:i,text:a,trailingWhitespace:o}=Tt(r.value),s=r.prev,c=r.next;a?(r.value=a,r.sourceSpan=new V(r.sourceSpan.start.moveBy(i.length),r.sourceSpan.end.moveBy(-o.length)),i&&(s&&(s.hasTrailingSpaces=!0),r.hasLeadingSpaces=!0),o&&(r.hasTrailingSpaces=!0,c&&(c.hasLeadingSpaces=!0))):(e.removeChild(r),t--,(i||o)&&(s&&(s.hasTrailingSpaces=!0),c&&(c.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=r,e.isIndentationSensitive=i})}function Va(e){e.walk(e=>{e.isSelfClosing=!e.children||e.kind===`element`&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function Ha(e,t){e.walk(e=>{e.kind===`element`&&(e.hasHtmComponentClosingTag=e.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(e.endSourceSpan.start.offset,e.endSourceSpan.end.offset)))})}function Ua(e,t){e.walk(e=>{e.cssDisplay=an(e,t)})}function Wa(e,t){e.walk(e=>{let{children:n}=e;if(n){if(n.length===0){e.isDanglingSpaceSensitive=Pt(e,t);return}for(let e of n)e.isLeadingSpaceSensitive=Mt(e,t),e.isTrailingSpaceSensitive=Nt(e,t);for(let e=0;e<n.length;e++){let t=n[e];t.isLeadingSpaceSensitive=(e===0||t.prev.isTrailingSpaceSensitive)&&t.isLeadingSpaceSensitive,t.isTrailingSpaceSensitive=(e===n.length-1||t.next.isLeadingSpaceSensitive)&&t.isTrailingSpaceSensitive}}})}var Ga=Na;function Ka(e,t,n){let{node:r}=e;switch(r.kind){case`root`:return t.__onHtmlRoot&&t.__onHtmlRoot(r),[y(Xr(e,t,n)),C];case`element`:case`ieConditionalComment`:return ai(e,t,n);case`angularControlFlowBlock`:return Zr(e,t,n);case`angularControlFlowBlockParameters`:return ni(e,t,n);case`angularControlFlowBlockParameter`:return w.trim(r.expression);case`angularLetDeclaration`:return y([`@let `,y([r.id,` =`,y(v([x,n(`init`)]))]),`;`]);case`angularLetDeclarationInitializer`:return r.value;case`angularIcuExpression`:return ri(e,t,n);case`angularIcuCase`:return ii(e,t,n);case`ieConditionalStartComment`:case`ieConditionalEndComment`:return[Tr(r),fr(r)];case`interpolation`:return[Tr(r,t),...e.map(n,`children`),fr(r,t)];case`text`:{if(r.parent.kind===`interpolation`){let e=/\n[^\S\n]*$/u,t=e.test(r.value);return[g(t?r.value.replace(e,``):r.value),t?C:``]}let e=F(r,t),n=pn(r),i=N(r,t);return n[0]=[e,n[0]],n.push([n.pop(),i]),De(n)}case`docType`:return[y([Tr(r,t),` `,d(0,r.value.replace(/^html\b/iu,`html`),/\s+/gu,` `)]),fr(r,t)];case`comment`:return[F(r,t),g(t.originalText.slice(cr(r),lr(r))),N(r,t)];case`attribute`:{if(r.value===null)return r.rawName;let e=sn(r.value),n=gn(r,t)?``:Ie(e,`"`);return[r.rawName,`=`,n,g(n===`"`?d(0,e,`"`,`&quot;`):d(0,e,`'`,`&apos;`)),n]}default:throw new Re(r,`HTML`)}}var qa={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},preprocess:Ga,print:Ka,insertPragma:Gr,massageAstNode:He,embed:Nr,getVisitorKeys:zr},Ja=[{name:`Angular`,type:`markup`,aceMode:`html`,extensions:[`.component.html`],tmScope:`text.html.basic`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`angular`],vscodeLanguageIds:[`html`],filenames:[],linguistLanguageId:146},{name:`HTML`,type:`markup`,aceMode:`html`,extensions:[`.html`,`.hta`,`.htm`,`.html.hl`,`.inc`,`.xht`,`.xhtml`],tmScope:`text.html.basic`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`html`],vscodeLanguageIds:[`html`],linguistLanguageId:146},{name:`Lightning Web Components`,type:`markup`,aceMode:`html`,extensions:[],tmScope:`text.html.basic`,aliases:[`xhtml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`lwc`],vscodeLanguageIds:[`html`],filenames:[],linguistLanguageId:146},{name:`MJML`,type:`markup`,aceMode:`html`,extensions:[`.mjml`],tmScope:`text.mjml.basic`,aliases:[`MJML`,`mjml`],codemirrorMode:`htmlmixed`,codemirrorMimeType:`text/html`,parsers:[`mjml`],filenames:[],vscodeLanguageIds:[`mjml`],linguistLanguageId:146},{name:`Vue`,type:`markup`,aceMode:`vue`,extensions:[`.vue`],tmScope:`source.vue`,codemirrorMode:`vue`,codemirrorMimeType:`text/x-vue`,parsers:[`vue`],vscodeLanguageIds:[`vue`],linguistLanguageId:391}],Ya={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},Xa=`HTML`,Za={bracketSameLine:Ya.bracketSameLine,htmlWhitespaceSensitivity:{category:Xa,type:`choice`,default:`css`,description:`How to handle whitespaces in HTML.`,choices:[{value:`css`,description:`Respect the default value of CSS display property.`},{value:`strict`,description:`Whitespaces are considered sensitive.`},{value:`ignore`,description:`Whitespaces are considered insensitive.`}]},singleAttributePerLine:Ya.singleAttributePerLine,vueIndentScriptAndStyle:{category:Xa,type:`boolean`,default:!1,description:`Indent script and style tags in Vue files.`}},Qa={};r(Qa,{angular:()=>Vo,html:()=>Ro,lwc:()=>Uo,mjml:()=>Bo,vue:()=>Ho});function $a(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var eo=$a,to={canSelfClose:!0,normalizeTagName:!1,normalizeAttributeName:!1,allowHtmComponentClosingTags:!1,isTagNameCaseSensitive:!1,shouldParseFrontMatter:!0};function no(e){return{...to,...e}}function ro(e){let{canSelfClose:t,allowHtmComponentClosingTags:n,isTagNameCaseSensitive:r,shouldParseAsRawText:i,tokenizeAngularBlocks:a,tokenizeAngularLetDeclaration:o}=e;return{canSelfClose:t,allowHtmComponentClosingTags:n,isTagNameCaseSensitive:r,getTagContentType:i?(...e)=>i(...e)?R.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:a,tokenizeAngularLetDeclaration:o}}var io=new Map([[`*`,new Set(`accesskey.autocapitalize.autocorrect.autofocus.class.contenteditable.dir.draggable.enterkeyhint.exportparts.hidden.id.inert.inputmode.is.itemid.itemprop.itemref.itemscope.itemtype.lang.nonce.part.popover.slot.spellcheck.style.tabindex.title.translate.writingsuggestions`.split(`.`))],[`a`,new Set([`charset`,`coords`,`download`,`href`,`hreflang`,`name`,`ping`,`referrerpolicy`,`rel`,`rev`,`shape`,`target`,`type`])],[`applet`,new Set([`align`,`alt`,`archive`,`code`,`codebase`,`height`,`hspace`,`name`,`object`,`vspace`,`width`])],[`area`,new Set([`alt`,`coords`,`download`,`href`,`hreflang`,`nohref`,`ping`,`referrerpolicy`,`rel`,`shape`,`target`,`type`])],[`audio`,new Set([`autoplay`,`controls`,`crossorigin`,`loop`,`muted`,`preload`,`src`])],[`base`,new Set([`href`,`target`])],[`basefont`,new Set([`color`,`face`,`size`])],[`blockquote`,new Set([`cite`])],[`body`,new Set([`alink`,`background`,`bgcolor`,`link`,`text`,`vlink`])],[`br`,new Set([`clear`])],[`button`,new Set([`command`,`commandfor`,`disabled`,`form`,`formaction`,`formenctype`,`formmethod`,`formnovalidate`,`formtarget`,`name`,`popovertarget`,`popovertargetaction`,`type`,`value`])],[`canvas`,new Set([`height`,`width`])],[`caption`,new Set([`align`])],[`col`,new Set([`align`,`char`,`charoff`,`span`,`valign`,`width`])],[`colgroup`,new Set([`align`,`char`,`charoff`,`span`,`valign`,`width`])],[`data`,new Set([`value`])],[`del`,new Set([`cite`,`datetime`])],[`details`,new Set([`name`,`open`])],[`dialog`,new Set([`closedby`,`open`])],[`dir`,new Set([`compact`])],[`div`,new Set([`align`])],[`dl`,new Set([`compact`])],[`embed`,new Set([`height`,`src`,`type`,`width`])],[`fieldset`,new Set([`disabled`,`form`,`name`])],[`font`,new Set([`color`,`face`,`size`])],[`form`,new Set([`accept`,`accept-charset`,`action`,`autocomplete`,`enctype`,`method`,`name`,`novalidate`,`target`])],[`frame`,new Set([`frameborder`,`longdesc`,`marginheight`,`marginwidth`,`name`,`noresize`,`scrolling`,`src`])],[`frameset`,new Set([`cols`,`rows`])],[`h1`,new Set([`align`])],[`h2`,new Set([`align`])],[`h3`,new Set([`align`])],[`h4`,new Set([`align`])],[`h5`,new Set([`align`])],[`h6`,new Set([`align`])],[`head`,new Set([`profile`])],[`hr`,new Set([`align`,`noshade`,`size`,`width`])],[`html`,new Set([`manifest`,`version`])],[`iframe`,new Set([`align`,`allow`,`allowfullscreen`,`allowpaymentrequest`,`allowusermedia`,`frameborder`,`height`,`loading`,`longdesc`,`marginheight`,`marginwidth`,`name`,`referrerpolicy`,`sandbox`,`scrolling`,`src`,`srcdoc`,`width`])],[`img`,new Set([`align`,`alt`,`border`,`crossorigin`,`decoding`,`fetchpriority`,`height`,`hspace`,`ismap`,`loading`,`longdesc`,`name`,`referrerpolicy`,`sizes`,`src`,`srcset`,`usemap`,`vspace`,`width`])],[`input`,new Set(`accept.align.alpha.alt.autocomplete.checked.colorspace.dirname.disabled.form.formaction.formenctype.formmethod.formnovalidate.formtarget.height.ismap.list.max.maxlength.min.minlength.multiple.name.pattern.placeholder.popovertarget.popovertargetaction.readonly.required.size.src.step.type.usemap.value.width`.split(`.`))],[`ins`,new Set([`cite`,`datetime`])],[`isindex`,new Set([`prompt`])],[`label`,new Set([`for`,`form`])],[`legend`,new Set([`align`])],[`li`,new Set([`type`,`value`])],[`link`,new Set([`as`,`blocking`,`charset`,`color`,`crossorigin`,`disabled`,`fetchpriority`,`href`,`hreflang`,`imagesizes`,`imagesrcset`,`integrity`,`media`,`referrerpolicy`,`rel`,`rev`,`sizes`,`target`,`type`])],[`map`,new Set([`name`])],[`menu`,new Set([`compact`])],[`meta`,new Set([`charset`,`content`,`http-equiv`,`media`,`name`,`scheme`])],[`meter`,new Set([`high`,`low`,`max`,`min`,`optimum`,`value`])],[`object`,new Set([`align`,`archive`,`border`,`classid`,`codebase`,`codetype`,`data`,`declare`,`form`,`height`,`hspace`,`name`,`standby`,`type`,`typemustmatch`,`usemap`,`vspace`,`width`])],[`ol`,new Set([`compact`,`reversed`,`start`,`type`])],[`optgroup`,new Set([`disabled`,`label`])],[`option`,new Set([`disabled`,`label`,`selected`,`value`])],[`output`,new Set([`for`,`form`,`name`])],[`p`,new Set([`align`])],[`param`,new Set([`name`,`type`,`value`,`valuetype`])],[`pre`,new Set([`width`])],[`progress`,new Set([`max`,`value`])],[`q`,new Set([`cite`])],[`script`,new Set([`async`,`blocking`,`charset`,`crossorigin`,`defer`,`fetchpriority`,`integrity`,`language`,`nomodule`,`referrerpolicy`,`src`,`type`])],[`select`,new Set([`autocomplete`,`disabled`,`form`,`multiple`,`name`,`required`,`size`])],[`slot`,new Set([`name`])],[`source`,new Set([`height`,`media`,`sizes`,`src`,`srcset`,`type`,`width`])],[`style`,new Set([`blocking`,`media`,`type`])],[`table`,new Set([`align`,`bgcolor`,`border`,`cellpadding`,`cellspacing`,`frame`,`rules`,`summary`,`width`])],[`tbody`,new Set([`align`,`char`,`charoff`,`valign`])],[`td`,new Set([`abbr`,`align`,`axis`,`bgcolor`,`char`,`charoff`,`colspan`,`headers`,`height`,`nowrap`,`rowspan`,`scope`,`valign`,`width`])],[`template`,new Set([`shadowrootclonable`,`shadowrootcustomelementregistry`,`shadowrootdelegatesfocus`,`shadowrootmode`,`shadowrootserializable`])],[`textarea`,new Set([`autocomplete`,`cols`,`dirname`,`disabled`,`form`,`maxlength`,`minlength`,`name`,`placeholder`,`readonly`,`required`,`rows`,`wrap`])],[`tfoot`,new Set([`align`,`char`,`charoff`,`valign`])],[`th`,new Set([`abbr`,`align`,`axis`,`bgcolor`,`char`,`charoff`,`colspan`,`headers`,`height`,`nowrap`,`rowspan`,`scope`,`valign`,`width`])],[`thead`,new Set([`align`,`char`,`charoff`,`valign`])],[`time`,new Set([`datetime`])],[`tr`,new Set([`align`,`bgcolor`,`char`,`charoff`,`valign`])],[`track`,new Set([`default`,`kind`,`label`,`src`,`srclang`])],[`ul`,new Set([`compact`,`type`])],[`video`,new Set([`autoplay`,`controls`,`crossorigin`,`height`,`loop`,`muted`,`playsinline`,`poster`,`preload`,`src`,`width`])]]),ao=new Set(`a.abbr.acronym.address.applet.area.article.aside.audio.b.base.basefont.bdi.bdo.bgsound.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.command.content.data.datalist.dd.del.details.dfn.dialog.dir.div.dl.dt.em.embed.fencedframe.fieldset.figcaption.figure.font.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.image.img.input.ins.isindex.kbd.keygen.label.legend.li.link.listing.main.map.mark.marquee.math.menu.menuitem.meta.meter.multicol.nav.nextid.nobr.noembed.noframes.noscript.object.ol.optgroup.option.output.p.param.picture.plaintext.pre.progress.q.rb.rbc.rp.rt.rtc.ruby.s.samp.script.search.section.select.selectedcontent.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.tt.u.ul.var.video.wbr.xmp`.split(`.`)),oo={attrs:!0,children:!0,cases:!0,expression:!0},so=new Set([`parent`]),$,co,lo,uo=class e{constructor(e={}){s(this,$),i(this,`kind`),i(this,`parent`);for(let t of new Set([...so,...Object.keys(e)]))this.setProperty(t,e[t]);if(ft(e))for(let t of Object.getOwnPropertySymbols(e))this.setProperty(t,e[t])}setProperty(e,t){if(this[e]!==t){if(e in oo&&(t=t.map(e=>this.createChild(e))),!so.has(e)){this[e]=t;return}Object.defineProperty(this,e,{value:t,enumerable:!1,configurable:!0})}}map(t){let n;for(let r in oo){let i=this[r];if(i){let a=po(i,e=>e.map(t));n!==i&&(n||=new e({parent:this.parent}),n.setProperty(r,a))}}if(n)for(let e in this)e in oo||(n[e]=this[e]);return t(n||this)}walk(e){for(let t in oo){let n=this[t];if(n)for(let t=0;t<n.length;t++)n[t].walk(e)}e(this)}createChild(t){let n=t instanceof e?t.clone():new e(t);return n.setProperty(`parent`,this),n}insertChildBefore(e,t){let n=this.$children;n.splice(n.indexOf(e),0,this.createChild(t))}removeChild(e){let t=this.$children;t.splice(t.indexOf(e),1)}replaceChild(e,t){let n=this.$children;n[n.indexOf(e)]=this.createChild(t)}clone(){return new e(this)}get $children(){return this[o(this,$,co)]}set $children(e){this[o(this,$,co)]=e}get firstChild(){return this.$children?.[0]}get lastChild(){return p(1,this.$children,-1)}get prev(){let e=o(this,$,lo);return e[e.indexOf(this)-1]}get next(){let e=o(this,$,lo);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+`:`+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};$=new WeakSet,co=function(){return this.kind===`angularIcuCase`?`expression`:this.kind===`angularIcuExpression`?`cases`:`children`},lo=function(){return this.parent?.$children??[]};var fo=uo;function po(e,t){let n=e.map(t);return n.some((t,n)=>t!==e[n])?n:e}var mo=[{regex:/^(?<openingTagSuffix>\[if(?<condition>[^\]]*)\]>)(?<data>.*?)<!\s*\[endif\]$/su,parse:go},{regex:/^\[if(?<condition>[^\]]*)\]><!$/u,parse:_o},{regex:/^<!\s*\[endif\]$/u,parse:vo}];function ho(e,t){if(e.value)for(let{regex:n,parse:r}of mo){let i=e.value.match(n);if(i)return r(e,i,t)}return null}function go(e,t,n){let{openingTagSuffix:r,condition:i,data:a}=t.groups,o=4+r.length,s=e.sourceSpan.start.moveBy(o),c=s.moveBy(a.length),[l,u]=(()=>{try{return[!0,n(a,s).children]}catch{return[!1,[{kind:`text`,value:a,sourceSpan:new V(s,c)}]]}})();return{kind:`ieConditionalComment`,complete:l,children:u,condition:d(0,i.trim(),/\s+/gu,` `),sourceSpan:e.sourceSpan,startSourceSpan:new V(e.sourceSpan.start,s),endSourceSpan:new V(c,e.sourceSpan.end)}}function _o(e,t){let{condition:n}=t.groups;return{kind:`ieConditionalStartComment`,condition:d(0,n.trim(),/\s+/gu,` `),sourceSpan:e.sourceSpan}}function vo(e){return{kind:`ieConditionalEndComment`,sourceSpan:e.sourceSpan}}var yo=class extends Qi{visitExpansionCase(e,t){t.parseOptions.name===`angular`&&this.visitChildren(t,t=>{t(e.expression)})}visit(e,{parseOptions:t}){Eo(e),Do(e,t),ko(e,t),Oo(e)}};function bo(e,t,n,r){Zi(new yo,e.children,{parseOptions:n}),t&&e.children.unshift(t);let i=new fo(e);return i.walk(e=>{if(e.kind===`comment`){let t=ho(e,r);t&&e.parent.replaceChild(e,t)}xo(e),So(e),Co(e)}),i}function xo(e){if(e.kind===`block`){if(e.name=d(0,e.name.toLowerCase(),/\s+/gu,` `).trim(),e.kind=`angularControlFlowBlock`,!rt(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.kind=`angularControlFlowBlockParameter`;e.parameters={kind:`angularControlFlowBlockParameters`,children:e.parameters,sourceSpan:new V(e.parameters[0].sourceSpan.start,p(0,e.parameters,-1).sourceSpan.end)}}}function So(e){e.kind===`letDeclaration`&&(e.kind=`angularLetDeclaration`,e.id=e.name,e.init={kind:`angularLetDeclarationInitializer`,sourceSpan:new V(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function Co(e){e.kind===`expansion`&&(e.kind=`angularIcuExpression`),e.kind===`expansionCase`&&(e.kind=`angularIcuCase`)}function wo(e,t){let n=e.toLowerCase();return t(n)?n:e}function To(e){let t=e.name.startsWith(`:`)?e.name.slice(1).split(`:`)[0]:null,n=e.nameSpan.toString(),r=t!==null&&n.startsWith(`${t}:`);e.name=r?n.slice(t.length+1):n,e.namespace=t,e.hasExplicitNamespace=r}function Eo(e){switch(e.kind){case`element`:To(e);for(let t of e.attrs)To(t),t.valueSpan?(t.value=t.valueSpan.toString(),/["']/u.test(t.value[0])&&(t.value=t.value.slice(1,-1))):t.value=null;break;case`comment`:e.value=e.sourceSpan.toString().slice(4,-3);break;case`text`:e.value=e.sourceSpan.toString();break}}function Do(e,t){if(e.kind===`element`){let n=Ai(t.isTagNameCaseSensitive?e.name:e.name.toLowerCase());!e.namespace||e.namespace===n.implicitNamespacePrefix||St(e)?e.tagDefinition=n:e.tagDefinition=Ai(``)}}function Oo(e){e.sourceSpan&&e.endSourceSpan&&(e.sourceSpan=new V(e.sourceSpan.start,e.endSourceSpan.end))}function ko(e,t){if(e.kind===`element`&&(t.normalizeTagName&&(!e.namespace||e.namespace===e.tagDefinition.implicitNamespacePrefix||St(e))&&(e.name=wo(e.name,e=>ao.has(e))),t.normalizeAttributeName))for(let t of e.attrs)t.namespace||(t.name=wo(t.name,t=>io.has(e.name)&&(io.get(`*`).has(t)||io.get(e.name).has(t))))}function Ao(e,t){let{rootNodes:n,errors:r}=ja(e,ro(t));return r.length>0&&No(r[0]),{parseOptions:t,rootNodes:n}}function jo(e,t){let n=ro(t),{rootNodes:r,errors:i}=ja(e,n);if(r.some(e=>e.kind===`docType`&&e.value===`html`||e.kind===`element`&&e.name.toLowerCase()===`html`))return Ao(e,Io);let a,o=()=>a??=ja(e,{...n,getTagContentType:void 0}),s=e=>{let{offset:t}=e.startSourceSpan.start;return o().rootNodes.find(e=>e.kind===`element`&&e.startSourceSpan.start.offset===t)??e};for(let[e,t]of r.entries())if(t.kind===`element`){if(t.isVoid)i=o().errors,r[e]=s(t);else if(Mo(t)){let{endSourceSpan:n,startSourceSpan:i}=t,a=o().errors.find(e=>e.span.start.offset>i.start.offset&&e.span.start.offset<n.end.offset);a&&No(a),r[e]=s(t)}}return i.length>0&&No(i[0]),{parseOptions:t,rootNodes:r}}function Mo(e){if(e.kind!==`element`||e.name!==`template`)return!1;let t=e.attrs.find(e=>e.name===`lang`)?.value;return!t||t===`html`}function No(e){let{msg:t,span:{start:n,end:r}}=e;throw eo(t,{loc:{start:{line:n.line+1,column:n.col+1},end:{line:r.line+1,column:r.col+1}},cause:e})}function Po(e,t,n,r,i,a){let{offset:o}=r,s=Fo(d(0,t.slice(0,o),/[^\n]/gu,` `)+n,e,{...i,shouldParseFrontMatter:!1},a);s.sourceSpan=new V(r,p(0,s.children,-1).sourceSpan.end);let c=s.children[0];return c.length===o?s.children.shift():(c.sourceSpan=new V(c.sourceSpan.start.moveBy(o),c.sourceSpan.end),c.value=c.value.slice(o)),s}function Fo(e,t,n,r={}){let{frontMatter:i,content:a}=n.shouldParseFrontMatter?gt(e):{content:e},o=new zi(e,r.filepath),s=new Ri(o,0,0,0),c=s.moveBy(e.length),{parseOptions:l,rootNodes:u}=t(a,n),d={kind:`root`,sourceSpan:new V(s,c),children:u},f;if(i){let[e,t]=[i.start,i.end].map(e=>new Ri(o,e.index,e.line-1,e.column));f={...i,kind:`frontMatter`,sourceSpan:new V(e,t)}}return bo(d,f,l,(n,i)=>Po(t,e,n,i,l,r))}var Io=no({name:`html`,normalizeTagName:!0,normalizeAttributeName:!0,allowHtmComponentClosingTags:!0});function Lo(e){let t=no(e),n=t.name===`vue`?jo:Ao;return{parse:(e,r)=>Fo(e,n,t,r),hasPragma:Ur,hasIgnorePragma:Wr,astFormat:`html`,locStart:cr,locEnd:lr}}var Ro=Lo(Io),zo=new Set([`mj-style`,`mj-raw`]),Bo=Lo({...Io,name:`mjml`,shouldParseAsRawText:e=>zo.has(e)}),Vo=Lo({name:`angular`,tokenizeAngularBlocks:!0,tokenizeAngularLetDeclaration:!0}),Ho=Lo({name:`vue`,isTagNameCaseSensitive:!0,shouldParseAsRawText(e,t,n,r){return e.toLowerCase()!==`html`&&!n&&(e!==`template`||r.some(({name:e,value:t})=>e===`lang`&&t!==`html`&&t!==``&&t!==void 0))}}),Uo=Lo({name:`lwc`,canSelfClose:!1}),Wo={html:qa};export{c as default,Ja as languages,Za as options,Qa as parsers,Wo as printers};