thursday-agent 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +5 -5
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/required-server-files.json +5 -5
  5. package/.next/server/app/_global-error/page/build-manifest.json +2 -2
  6. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  7. package/.next/server/app/_global-error.html +1 -1
  8. package/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found/page/build-manifest.json +2 -2
  13. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  14. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/_not-found.html +1 -1
  16. package/.next/server/app/_not-found.rsc +2 -2
  17. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  19. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  20. package/.next/server/app/api/artifact/route.js +10 -10
  21. package/.next/server/app/api/artifact/route.js.nft.json +1 -1
  22. package/.next/server/app/api/bot/memory/files/route.js +1 -1
  23. package/.next/server/app/api/bot/memory/files/route.js.nft.json +1 -1
  24. package/.next/server/app/api/bot/memory/route.js +8 -8
  25. package/.next/server/app/api/bot/memory/route.js.nft.json +1 -1
  26. package/.next/server/app/api/bot/route.js +8 -8
  27. package/.next/server/app/api/bot/route.js.nft.json +1 -1
  28. package/.next/server/app/api/bot/thread/file/route.js +15 -15
  29. package/.next/server/app/api/bot/thread/file/route.js.nft.json +1 -1
  30. package/.next/server/app/api/bot/thread/route.js +5 -5
  31. package/.next/server/app/api/bot/thread/route.js.nft.json +1 -1
  32. package/.next/server/app/api/bot/tool-result/[id]/route.js +6 -6
  33. package/.next/server/app/api/bot/tool-result/[id]/route.js.nft.json +1 -1
  34. package/.next/server/app/api/config/route.js +3 -3
  35. package/.next/server/app/api/config/route.js.nft.json +1 -1
  36. package/.next/server/app/api/events/route.js +1 -1
  37. package/.next/server/app/api/events/route.js.nft.json +1 -1
  38. package/.next/server/app/api/favicon/[host]/route.js +4 -4
  39. package/.next/server/app/api/favicon/[host]/route.js.nft.json +1 -1
  40. package/.next/server/app/api/file/[...path]/route.js +4 -4
  41. package/.next/server/app/api/file/[...path]/route.js.nft.json +1 -1
  42. package/.next/server/app/api/llm-model/automatic/route.js +5 -5
  43. package/.next/server/app/api/llm-model/automatic/route.js.nft.json +1 -1
  44. package/.next/server/app/api/llm-model/catalog/[provider]/route.js +5 -5
  45. package/.next/server/app/api/llm-model/catalog/[provider]/route.js.nft.json +1 -1
  46. package/.next/server/app/api/llm-model/credits/[provider]/route.js +5 -5
  47. package/.next/server/app/api/llm-model/credits/[provider]/route.js.nft.json +1 -1
  48. package/.next/server/app/api/llm-model/route.js +6 -6
  49. package/.next/server/app/api/llm-model/route.js.nft.json +1 -1
  50. package/.next/server/app/api/llm-model/subscription/route.js +6 -6
  51. package/.next/server/app/api/llm-model/subscription/route.js.nft.json +1 -1
  52. package/.next/server/app/api/mcp/[name]/route.js +5 -5
  53. package/.next/server/app/api/mcp/[name]/route.js.nft.json +1 -1
  54. package/.next/server/app/api/mcp/oauth/callback/route.js +6 -6
  55. package/.next/server/app/api/mcp/oauth/callback/route.js.nft.json +1 -1
  56. package/.next/server/app/api/mcp/route.js +5 -5
  57. package/.next/server/app/api/mcp/route.js.nft.json +1 -1
  58. package/.next/server/app/api/mcp/tools/route.js +5 -5
  59. package/.next/server/app/api/mcp/tools/route.js.nft.json +1 -1
  60. package/.next/server/app/api/memory/edit/route.js +15 -15
  61. package/.next/server/app/api/memory/edit/route.js.nft.json +1 -1
  62. package/.next/server/app/api/memory/route.js +4 -4
  63. package/.next/server/app/api/memory/route.js.nft.json +1 -1
  64. package/.next/server/app/api/reach/route.js +18 -18
  65. package/.next/server/app/api/reach/route.js.nft.json +1 -1
  66. package/.next/server/app/api/routine/route.js +8 -8
  67. package/.next/server/app/api/routine/route.js.nft.json +1 -1
  68. package/.next/server/app/api/running/route.js +2 -2
  69. package/.next/server/app/api/running/route.js.nft.json +1 -1
  70. package/.next/server/app/api/signins/route.js +3 -3
  71. package/.next/server/app/api/signins/route.js.nft.json +1 -1
  72. package/.next/server/app/api/skills/[source]/[name]/route.js +6 -6
  73. package/.next/server/app/api/skills/[source]/[name]/route.js.nft.json +1 -1
  74. package/.next/server/app/api/skills/route.js +6 -6
  75. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  76. package/.next/server/app/api/thursday/call/end/route.js +5 -5
  77. package/.next/server/app/api/thursday/call/end/route.js.nft.json +1 -1
  78. package/.next/server/app/api/thursday/call/plan/route.js +14 -14
  79. package/.next/server/app/api/thursday/call/plan/route.js.nft.json +1 -1
  80. package/.next/server/app/api/thursday/call/route.js +6 -6
  81. package/.next/server/app/api/thursday/call/route.js.nft.json +1 -1
  82. package/.next/server/app/api/thursday/settings/route.js +5 -5
  83. package/.next/server/app/api/thursday/settings/route.js.nft.json +1 -1
  84. package/.next/server/app/api/thursday/text/route.js +14 -14
  85. package/.next/server/app/api/thursday/text/route.js.nft.json +1 -1
  86. package/.next/server/app/api/thursday/tool-call/route.js +15 -15
  87. package/.next/server/app/api/thursday/tool-call/route.js.nft.json +1 -1
  88. package/.next/server/app/api/update/route.js +7 -7
  89. package/.next/server/app/api/update/route.js.nft.json +1 -1
  90. package/.next/server/app/api/workspace/files/route.js +6 -6
  91. package/.next/server/app/api/workspace/files/route.js.nft.json +1 -1
  92. package/.next/server/app/api/workspace/route.js +6 -6
  93. package/.next/server/app/api/workspace/route.js.nft.json +1 -1
  94. package/.next/server/app/artifact/[...path]/page/build-manifest.json +2 -2
  95. package/.next/server/app/artifact/[...path]/page/server-reference-manifest.json +11 -11
  96. package/.next/server/app/artifact/[...path]/page.js.nft.json +1 -1
  97. package/.next/server/app/artifact/[...path]/page_client-reference-manifest.js +1 -1
  98. package/.next/server/app/favicon.ico/route.js +2 -2
  99. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  100. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  101. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  102. package/.next/server/app/page/build-manifest.json +2 -2
  103. package/.next/server/app/page/react-loadable-manifest.json +1 -1
  104. package/.next/server/app/page/server-reference-manifest.json +184 -184
  105. package/.next/server/app/page.js +10 -10
  106. package/.next/server/app/page.js.nft.json +1 -1
  107. package/.next/server/app/page_client-reference-manifest.js +1 -1
  108. package/.next/server/chunks/[root-of-the-server]__01jpmcj._.js +2 -2
  109. package/.next/server/chunks/[root-of-the-server]__03bjojd._.js +3 -3
  110. package/.next/server/chunks/{[root-of-the-server]__0wosonh._.js → [root-of-the-server]__05u-9a3._.js} +1 -1
  111. package/.next/server/chunks/{[root-of-the-server]__1dyse-1._.js → [root-of-the-server]__0_qe8iq._.js} +1 -1
  112. package/.next/server/chunks/[root-of-the-server]__0d-dfqm._.js +1 -1
  113. package/.next/server/chunks/[root-of-the-server]__0jqidnu._.js +1 -1
  114. package/.next/server/chunks/[root-of-the-server]__0mmynvy._.js +2 -2
  115. package/.next/server/chunks/[root-of-the-server]__0ncs9uu._.js +1 -1
  116. package/.next/server/chunks/[root-of-the-server]__0qhf60h._.js +3 -0
  117. package/.next/server/chunks/[root-of-the-server]__0sea36s._.js +4 -4
  118. package/.next/server/chunks/[root-of-the-server]__0zezbds._.js +2 -2
  119. package/.next/server/chunks/[root-of-the-server]__12hkdpz._.js +1 -1
  120. package/.next/server/chunks/[root-of-the-server]__13hng6h._.js +1 -1
  121. package/.next/server/chunks/[root-of-the-server]__14inehv._.js +3 -0
  122. package/.next/server/chunks/[root-of-the-server]__17kdjf6._.js +1 -1
  123. package/.next/server/chunks/[root-of-the-server]__17yv6lg._.js +2 -2
  124. package/.next/server/chunks/[root-of-the-server]__1_04mcf._.js +2 -2
  125. package/.next/server/chunks/{[root-of-the-server]__0b3_rzi._.js → [root-of-the-server]__1hjb8wf._.js} +1 -1
  126. package/.next/server/chunks/[root-of-the-server]__1jcu_e9._.js +2 -2
  127. package/.next/server/chunks/[root-of-the-server]__1jmr2ed._.js +3 -3
  128. package/.next/server/chunks/[root-of-the-server]__1ndi14y._.js +1 -1
  129. package/.next/server/chunks/[root-of-the-server]__1o7z93z._.js +2 -2
  130. package/.next/server/chunks/[root-of-the-server]__1onvx8x._.js +2 -2
  131. package/.next/server/chunks/_0-mqt2w._.js +1 -1
  132. package/.next/server/chunks/_04s1gb9._.js +30 -27
  133. package/.next/server/chunks/_06u9yo-._.js +1 -1
  134. package/.next/server/chunks/_08354bn._.js +33 -30
  135. package/.next/server/chunks/_083t_nr._.js +1 -1
  136. package/.next/server/chunks/_0c-s0ei._.js +1 -1
  137. package/.next/server/chunks/_0gifi_2._.js +2 -2
  138. package/.next/server/chunks/_0m3sdq8._.js +1 -1
  139. package/.next/server/chunks/_0pljp-1._.js +1 -1
  140. package/.next/server/chunks/_0wjia9n._.js +1 -1
  141. package/.next/server/chunks/_0wyh244._.js +33 -30
  142. package/.next/server/chunks/_0x2mdif._.js +1 -1
  143. package/.next/server/chunks/_1-sk_q4._.js +1 -1
  144. package/.next/server/chunks/_12a_gfz._.js +1 -1
  145. package/.next/server/chunks/_14-kmob._.js +1 -1
  146. package/.next/server/chunks/_16zct7w._.js +30 -27
  147. package/.next/server/chunks/_1823_7a._.js +4 -4
  148. package/.next/server/chunks/_1f_x75d._.js +1 -1
  149. package/.next/server/chunks/_1o2r4ja._.js +1 -1
  150. package/.next/server/chunks/_1q42187._.js +3 -3
  151. package/.next/server/chunks/_1ufbxe1._.js +1 -1
  152. package/.next/server/chunks/config_ts_1g4sz5o._.js +1 -1
  153. package/.next/server/chunks/features_14kex_m._.js +11 -11
  154. package/.next/server/chunks/features_bot_08z387_._.js +4 -4
  155. package/.next/server/chunks/features_memory_0__61kl._.js +1 -1
  156. package/.next/server/chunks/features_memory_1uqvksn._.js +1 -1
  157. package/.next/server/chunks/features_workspace_workspace_ts_13h82gv._.js +1 -1
  158. package/.next/server/chunks/features_workspace_workspace_ts_1iyjroj._.js +3 -3
  159. package/.next/server/chunks/ssr/{[root-of-the-server]__0x297x3._.js → [root-of-the-server]__03_9u5q._.js} +2 -2
  160. package/.next/server/chunks/ssr/{[root-of-the-server]__0653diy._.js → [root-of-the-server]__04ky8w1._.js} +2 -2
  161. package/.next/server/chunks/ssr/{[root-of-the-server]__1zlzs9j._.js → [root-of-the-server]__0crm8gr._.js} +2 -2
  162. package/.next/server/chunks/ssr/{[root-of-the-server]__02936mh._.js → [root-of-the-server]__0d3n8i_._.js} +2 -2
  163. package/.next/server/chunks/ssr/{[root-of-the-server]__0s8q44q._.js → [root-of-the-server]__0d4o9hs._.js} +2 -2
  164. package/.next/server/chunks/ssr/[root-of-the-server]__0id2dqb._.js +1 -1
  165. package/.next/server/chunks/ssr/{[root-of-the-server]__1s0etwd._.js → [root-of-the-server]__0q2c15o._.js} +2 -2
  166. package/.next/server/chunks/ssr/[root-of-the-server]__0t_oz3-._.js +6 -0
  167. package/.next/server/chunks/ssr/{[root-of-the-server]__16x99f1._.js → [root-of-the-server]__12r70jm._.js} +1 -1
  168. package/.next/server/chunks/ssr/[root-of-the-server]__1867koj._.js +1 -1
  169. package/.next/server/chunks/ssr/{[root-of-the-server]__0glkz9k._.js → [root-of-the-server]__1fvh0zn._.js} +2 -2
  170. package/.next/server/chunks/ssr/[root-of-the-server]__1t38-p_._.js +1 -1
  171. package/.next/server/chunks/ssr/{[root-of-the-server]__1c1xyyb._.js → [root-of-the-server]__1uy0zqr._.js} +2 -2
  172. package/.next/server/chunks/ssr/_02uubus._.js +3 -0
  173. package/.next/server/chunks/ssr/_0692i-a._.js +3 -0
  174. package/.next/server/chunks/ssr/_079xt7h._.js +32 -29
  175. package/.next/server/chunks/ssr/_07g7ojr._.js +3 -0
  176. package/.next/server/chunks/ssr/_0ewhz_x._.js +3 -0
  177. package/.next/server/chunks/ssr/_0f3t9pm._.js +2 -2
  178. package/.next/server/chunks/ssr/_0gx6qzr._.js +57 -0
  179. package/.next/server/chunks/ssr/_0pjwmak._.js +6 -0
  180. package/.next/server/chunks/ssr/_0pnzfq1._.js +1 -1
  181. package/.next/server/chunks/ssr/_0px9eat._.js +3 -0
  182. package/.next/server/chunks/ssr/_0r2_l__._.js +3 -0
  183. package/.next/server/chunks/ssr/{_20_wc-g._.js → _0rcuovx._.js} +2 -2
  184. package/.next/server/chunks/ssr/_0uwhhcs._.js +3 -0
  185. package/.next/server/chunks/ssr/{_1wct0tm._.js → _128r03g._.js} +1 -1
  186. package/.next/server/chunks/ssr/_12c2n7f._.js +3 -0
  187. package/.next/server/chunks/ssr/{_12_ail7._.js → _14f64h2._.js} +1 -1
  188. package/.next/server/chunks/ssr/_17fa2ns._.js +162 -0
  189. package/.next/server/chunks/ssr/_1_px1o-._.js +3 -0
  190. package/.next/server/chunks/ssr/_1a_w_du._.js +1 -1
  191. package/.next/server/chunks/ssr/_1e_9qjr._.js +1 -1
  192. package/.next/server/chunks/ssr/_1f59vze._.js +57 -0
  193. package/.next/server/chunks/ssr/_1j5ohq5._.js +3 -0
  194. package/.next/server/chunks/ssr/{_0ingto_._.js → _1kj3d2q._.js} +2 -2
  195. package/.next/server/chunks/ssr/_1neoj22._.js +1 -1
  196. package/.next/server/chunks/ssr/_1ocl7u0._.js +3 -0
  197. package/.next/server/chunks/ssr/_1q9r6u6._.js +3 -0
  198. package/.next/server/chunks/ssr/{_0fvctar._.js → _1qqusa-._.js} +2 -2
  199. package/.next/server/chunks/ssr/_1soynbw._.js +2 -2
  200. package/.next/server/chunks/ssr/_1uok0wt._.js +3 -0
  201. package/.next/server/chunks/ssr/_1v1pcoh._.js +1 -1
  202. package/.next/server/chunks/ssr/_1xw9imq._.js +3 -0
  203. package/.next/server/chunks/ssr/{components_ui_markdown-body_tsx_0h7bkrz._.js → components_ui_markdown-body_tsx_08i96c6._.js} +2 -2
  204. package/.next/server/chunks/ssr/features_0rrgq_t._.js +1 -1
  205. package/.next/server/chunks/ssr/features_ai_components_model-picker_tsx_0ucb1y9._.js +1 -1
  206. package/.next/server/chunks/ssr/features_bot_0tb4ui-._.js +2 -2
  207. package/.next/server/chunks/ssr/features_bot_components_01ye2wp._.js +1 -1
  208. package/.next/server/chunks/ssr/features_bot_components_bot-setting_tsx_01ajft6._.js +2 -2
  209. package/.next/server/chunks/ssr/features_bot_components_thread-setting_tsx_0yae7zy._.js +1 -1
  210. package/.next/server/chunks/ssr/features_config_components_config-setting_tsx_0xfwqdg._.js +2 -2
  211. package/.next/server/chunks/ssr/features_connectors_components_mcp-setting_tsx_0jmbgvp._.js +1 -1
  212. package/.next/server/chunks/ssr/features_memory_components_memory-setting_tsx_0oa43sw._.js +2 -2
  213. package/.next/server/chunks/ssr/features_routine_components_routine-setting_tsx_055fknz._.js +1 -1
  214. package/.next/server/chunks/ssr/features_skills_components_skills-setting_tsx_1wtuuip._.js +1 -1
  215. package/.next/server/chunks/ssr/features_thursday_components_thursday-setting_tsx_1_6ydrc._.js +1 -1
  216. package/.next/server/chunks/ssr/{node_modules_193w7l8._.js → node_modules_02djdfa._.js} +2 -2
  217. package/.next/server/chunks/ssr/{node_modules_1bwlhwa._.js → node_modules_03ybg-h._.js} +1 -1
  218. package/.next/server/chunks/ssr/{node_modules_01xoz64._.js → node_modules_066eqdg._.js} +1 -1
  219. package/.next/server/chunks/ssr/{node_modules_20ifwl6._.js → node_modules_09605b3._.js} +1 -1
  220. package/.next/server/chunks/ssr/{node_modules_1yilsx4._.js → node_modules_0_c17cv._.js} +1 -1
  221. package/.next/server/chunks/ssr/{node_modules_080f5gu._.js → node_modules_0a1-9-h._.js} +1 -1
  222. package/.next/server/chunks/ssr/{node_modules_17c047f._.js → node_modules_0bfpl_c._.js} +1 -1
  223. package/.next/server/chunks/ssr/{node_modules_1pav8g4._.js → node_modules_0brchjo._.js} +1 -1
  224. package/.next/server/chunks/ssr/{node_modules_0gwiuga._.js → node_modules_0c0pgdi._.js} +1 -1
  225. package/.next/server/chunks/ssr/{node_modules_02-zrtu._.js → node_modules_0ep265x._.js} +1 -1
  226. package/.next/server/chunks/ssr/{node_modules_0kqej10._.js → node_modules_0gzvt6a._.js} +2 -2
  227. package/.next/server/chunks/ssr/{node_modules_0i18max._.js → node_modules_0h4gjw5._.js} +1 -1
  228. package/.next/server/chunks/ssr/{node_modules_1m2_gxv._.js → node_modules_0iso-he._.js} +1 -1
  229. package/.next/server/chunks/ssr/{node_modules_0cda8i6._.js → node_modules_0jvqmb4._.js} +1 -1
  230. package/.next/server/chunks/ssr/node_modules_0kzgugm._.js +3 -0
  231. package/.next/server/chunks/ssr/{node_modules_0uvoegq._.js → node_modules_0l8gpkg._.js} +1 -1
  232. package/.next/server/chunks/ssr/{node_modules_12ajdg8._.js → node_modules_0mlrvds._.js} +2 -2
  233. package/.next/server/chunks/ssr/node_modules_0nvqvnw._.js +7 -7
  234. package/.next/server/chunks/ssr/{node_modules_1s3j8gb._.js → node_modules_0ogtyfm._.js} +2 -2
  235. package/.next/server/chunks/ssr/{node_modules_1_xiwxs._.js → node_modules_0os_-0h._.js} +1 -1
  236. package/.next/server/chunks/ssr/{node_modules_1abjhxx._.js → node_modules_0p05zru._.js} +1 -1
  237. package/.next/server/chunks/ssr/{node_modules_1o-m6_3._.js → node_modules_0pf8124._.js} +2 -2
  238. package/.next/server/chunks/ssr/{node_modules_0eqvt2l._.js → node_modules_0pp3v4f._.js} +2 -2
  239. package/.next/server/chunks/ssr/{node_modules_0rzz90e._.js → node_modules_0r1vv13._.js} +1 -1
  240. package/.next/server/chunks/ssr/{node_modules_1kum1yu._.js → node_modules_0r9yw6x._.js} +1 -1
  241. package/.next/server/chunks/ssr/{node_modules_1yw5fq4._.js → node_modules_0rk1a3e._.js} +1 -1
  242. package/.next/server/chunks/ssr/{node_modules_1es3wjv._.js → node_modules_0sq1pa3._.js} +2 -2
  243. package/.next/server/chunks/ssr/{node_modules_1-cv1_p._.js → node_modules_0w-pjyz._.js} +2 -2
  244. package/.next/server/chunks/ssr/{node_modules_0g_yuwn._.js → node_modules_0yoh66_._.js} +1 -1
  245. package/.next/server/chunks/ssr/{node_modules_1s9agqr._.js → node_modules_10kn3ni._.js} +2 -2
  246. package/.next/server/chunks/ssr/{node_modules_1yajzrd._.js → node_modules_124ipg-._.js} +1 -1
  247. package/.next/server/chunks/ssr/{node_modules_0svoyrb._.js → node_modules_12_p7d0._.js} +1 -1
  248. package/.next/server/chunks/ssr/{node_modules_203yqqb._.js → node_modules_12w12wr._.js} +1 -1
  249. package/.next/server/chunks/ssr/{node_modules_17ks351._.js → node_modules_16kmp_v._.js} +2 -2
  250. package/.next/server/chunks/ssr/{node_modules_05qs8r_._.js → node_modules_16m_yhd._.js} +1 -1
  251. package/.next/server/chunks/ssr/{node_modules_07dc1cr._.js → node_modules_171uvar._.js} +1 -1
  252. package/.next/server/chunks/ssr/{node_modules_0qsi9t2._.js → node_modules_19pn2ti._.js} +1 -1
  253. package/.next/server/chunks/ssr/{node_modules_0k9_jdk._.js → node_modules_1_ly5yy._.js} +1 -1
  254. package/.next/server/chunks/ssr/{node_modules_0o_gq58._.js → node_modules_1_wsn9q._.js} +1 -1
  255. package/.next/server/chunks/ssr/{node_modules_1u7wlaq._.js → node_modules_1djak6n._.js} +2 -2
  256. package/.next/server/chunks/ssr/{node_modules_08cq8i-._.js → node_modules_1e-oxmh._.js} +1 -1
  257. package/.next/server/chunks/ssr/{node_modules_15x7int._.js → node_modules_1ed4zep._.js} +2 -2
  258. package/.next/server/chunks/ssr/{node_modules_1pkpq6d._.js → node_modules_1f2qlxm._.js} +2 -2
  259. package/.next/server/chunks/ssr/{node_modules_1aw7c9f._.js → node_modules_1fn72fs._.js} +2 -2
  260. package/.next/server/chunks/ssr/node_modules_1h9p77x._.js +7 -7
  261. package/.next/server/chunks/ssr/{node_modules_1ucf2fi._.js → node_modules_1hj0rvo._.js} +1 -1
  262. package/.next/server/chunks/ssr/{node_modules_12pvysk._.js → node_modules_1jvkoqj._.js} +1 -1
  263. package/.next/server/chunks/ssr/{node_modules_0tq4-57._.js → node_modules_1jzofr8._.js} +1 -1
  264. package/.next/server/chunks/ssr/{node_modules_08hfp3a._.js → node_modules_1maqy-g._.js} +1 -1
  265. package/.next/server/chunks/ssr/{node_modules_071fb26._.js → node_modules_1oox5h1._.js} +1 -1
  266. package/.next/server/chunks/ssr/{node_modules_0_jxnnn._.js → node_modules_1p56fwh._.js} +1 -1
  267. package/.next/server/chunks/ssr/{node_modules_01yukzc._.js → node_modules_1prbr1-._.js} +1 -1
  268. package/.next/server/chunks/ssr/{node_modules_1hrbceb._.js → node_modules_1qfou69._.js} +1 -1
  269. package/.next/server/chunks/ssr/{node_modules_11f1w-3._.js → node_modules_1qnosqe._.js} +2 -2
  270. package/.next/server/chunks/ssr/{node_modules_1kd_hpx._.js → node_modules_1rdpn6v._.js} +1 -1
  271. package/.next/server/chunks/ssr/{node_modules_079iwnx._.js → node_modules_1v6m9sp._.js} +1 -1
  272. package/.next/server/chunks/ssr/{node_modules_1iapzqf._.js → node_modules_1z8ywx9._.js} +1 -1
  273. package/.next/server/chunks/ssr/{node_modules_1dim95c._.js → node_modules_1zzudo-._.js} +1 -1
  274. package/.next/server/chunks/ssr/{node_modules_1_71wv3._.js → node_modules_2157u1j._.js} +2 -2
  275. package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1c5gb92._.js → node_modules_katex_dist_katex_mjs_12lynt6._.js} +1 -1
  276. package/.next/server/chunks/ssr/{node_modules_katex_dist_katex_mjs_1ocxq2z._.js → node_modules_katex_dist_katex_mjs_1vjoadq._.js} +1 -1
  277. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_1v93o68._.js +1 -1
  278. package/.next/server/middleware-build-manifest.js +5 -5
  279. package/.next/server/pages/404.html +1 -1
  280. package/.next/server/pages/500.html +1 -1
  281. package/.next/server/server-reference-manifest.js +1 -1
  282. package/.next/server/server-reference-manifest.json +185 -185
  283. package/.next/static/chunks/051z85h3ofmif.js +1 -0
  284. package/.next/static/chunks/05722zc-sohb_.js +4 -0
  285. package/.next/static/chunks/07jo959manleh.js +1 -0
  286. package/.next/static/chunks/0_5a18_y41-_4.js +1 -0
  287. package/.next/static/chunks/0be7dgti95u_2.js +1 -0
  288. package/.next/static/chunks/0c28x0q2aqsbj.js +1 -0
  289. package/.next/static/chunks/0o_rabv5are-o.js +2 -0
  290. package/.next/static/chunks/{0776-hu4_eek7.js → 0wwq57j09skhy.js} +2 -2
  291. package/.next/static/chunks/0zm3urd75-zw5.js +1 -0
  292. package/.next/static/chunks/16hfi69t-6a4t.js +2 -0
  293. package/.next/static/chunks/1g58g8-daiwu5.js +3 -0
  294. package/.next/static/chunks/1i1u85j-_yb1n.js +15 -0
  295. package/.next/static/chunks/1kd2sxkkrae8e.js +1 -0
  296. package/.next/static/chunks/{3xloayc4c096r.js → 1n3a07w81jbc-.js} +1 -1
  297. package/.next/static/chunks/1nncyxatu7une.js +1 -0
  298. package/.next/static/chunks/1s5t41jiomssd.css +1 -0
  299. package/.next/static/chunks/1yl4mlpsw8e7h.js +1 -0
  300. package/.next/static/chunks/{33qtnlc00c9gq.js → 2gl-fo_rmmmq0.js} +1 -1
  301. package/.next/static/chunks/2h_sak2oi70qs.js +1 -0
  302. package/.next/static/chunks/2isg5redeg2bc.js +1 -0
  303. package/.next/static/chunks/{2fxn-xltgy2un.js → 2of2-kggzp-fk.js} +1 -1
  304. package/.next/static/chunks/2vmran3sacktz.js +1 -0
  305. package/.next/static/chunks/2w02v9g8o9-rz.js +1 -0
  306. package/.next/static/chunks/2wi2pcbjrqm86.js +1 -0
  307. package/.next/static/chunks/2xk8otp3gnzml.js +1 -0
  308. package/.next/static/chunks/2ym1hrikoit8p.js +1 -0
  309. package/.next/static/chunks/34d1f980dv5c6.js +18 -0
  310. package/.next/static/chunks/34zhr71217o1-.js +2 -0
  311. package/.next/static/chunks/{0o1r15rfncytn.js → 37r4l2878vybp.js} +1 -1
  312. package/.next/static/chunks/{2cz5734j90h5b.js → 3a-2z23puvz2z.js} +1 -1
  313. package/.next/static/chunks/3d55-y263hup9.js +1 -0
  314. package/.next/static/chunks/3dzrveotr82eu.js +39 -0
  315. package/.next/static/chunks/3fensfht8pxhl.js +55 -0
  316. package/.next/static/chunks/3k7fum0yljmyr.js +1 -0
  317. package/.next/static/chunks/3sawwm4vucnzn.js +1 -0
  318. package/.next/static/chunks/{0z0-g4k1hnpw2.js → 3u208m--8u1iq.js} +1 -1
  319. package/.next/static/chunks/{turbopack-1kym6rf88i5i0.js → turbopack-0ekrsq98buh0j.js} +1 -1
  320. package/README.md +18 -18
  321. package/bin/background.mjs +60 -32
  322. package/bin/print.mjs +82 -0
  323. package/bin/thursday.mjs +44 -13
  324. package/guide/bots.md +19 -3
  325. package/guide/calls.md +5 -2
  326. package/guide/memory.md +2 -1
  327. package/guide/setup.md +8 -6
  328. package/guide/trouble.md +4 -0
  329. package/package.json +11 -5
  330. package/public/voices/intro/awake-f4e02fad.ogg +0 -0
  331. package/seed-skills/concierge/travel/scripts/itinerary.mjs +2 -1
  332. package/server.js +1 -1
  333. package/skills/artifact/references/document.md +5 -2
  334. package/skills/artifact/runtime/document/markdown.mjs +14 -1
  335. package/skills/artifact/runtime/shell/head.html +1 -1
  336. package/skills/artifact/scripts/document.mjs +9 -3
  337. package/skills/browser/SKILL.md +17 -13
  338. package/.next/server/chunks/[root-of-the-server]__0ald4vb._.js +0 -3
  339. package/.next/server/chunks/[root-of-the-server]__0srfj96._.js +0 -3
  340. package/.next/server/chunks/ssr/[root-of-the-server]__1kos36s._.js +0 -6
  341. package/.next/server/chunks/ssr/_024j8bs._.js +0 -3
  342. package/.next/server/chunks/ssr/_04jb10a._.js +0 -3
  343. package/.next/server/chunks/ssr/_059oyhd._.js +0 -3
  344. package/.next/server/chunks/ssr/_0d0uyl3._.js +0 -3
  345. package/.next/server/chunks/ssr/_0fk7dbp._.js +0 -88
  346. package/.next/server/chunks/ssr/_0gfa_rb._.js +0 -3
  347. package/.next/server/chunks/ssr/_0i7zd74._.js +0 -3
  348. package/.next/server/chunks/ssr/_0sp2z94._.js +0 -3
  349. package/.next/server/chunks/ssr/_1avnw03._.js +0 -57
  350. package/.next/server/chunks/ssr/_1bfrntd._.js +0 -6
  351. package/.next/server/chunks/ssr/_1cpvfkg._.js +0 -3
  352. package/.next/server/chunks/ssr/_1cqjpyq._.js +0 -3
  353. package/.next/server/chunks/ssr/_1khngyc._.js +0 -72
  354. package/.next/server/chunks/ssr/_1kyjimg._.js +0 -162
  355. package/.next/server/chunks/ssr/_1sw4r4m._.js +0 -6
  356. package/.next/server/chunks/ssr/_20004tu._.js +0 -57
  357. package/.next/server/chunks/ssr/node_modules_01alue6._.js +0 -3
  358. package/.next/server/chunks/ssr/node_modules_02n9-pb._.js +0 -3
  359. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_0zxr5sz._.js +0 -3
  360. package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_trash_mjs_0px2gzr._.js +0 -3
  361. package/.next/static/chunks/02d9vhnz5mwvu.js +0 -1
  362. package/.next/static/chunks/06ff4fq0z4das.js +0 -1
  363. package/.next/static/chunks/09q9n7jrkm4c9.js +0 -39
  364. package/.next/static/chunks/0b3wt5kqs-mk2.js +0 -2
  365. package/.next/static/chunks/0blrj_tg1yur0.js +0 -1
  366. package/.next/static/chunks/0dn1ptom1ahgg.js +0 -18
  367. package/.next/static/chunks/0dq7uppta9s--.js +0 -1
  368. package/.next/static/chunks/0hoz2b--nhn4y.js +0 -1
  369. package/.next/static/chunks/0kfjtkez2xze2.js +0 -1
  370. package/.next/static/chunks/0mv2zywfzt83k.js +0 -4
  371. package/.next/static/chunks/0txtrhykehsd_.js +0 -55
  372. package/.next/static/chunks/17vs1vz7_4l4p.css +0 -1
  373. package/.next/static/chunks/1dnvf_117h4k3.js +0 -2
  374. package/.next/static/chunks/1irynso77np9t.js +0 -1
  375. package/.next/static/chunks/1sh_-w_keseat.js +0 -1
  376. package/.next/static/chunks/1z2_9pl3nezly.js +0 -3
  377. package/.next/static/chunks/23ty4edkuxirx.js +0 -1
  378. package/.next/static/chunks/2f1cnfz4h1e2x.js +0 -1
  379. package/.next/static/chunks/2jepcbdewlwlg.js +0 -1
  380. package/.next/static/chunks/2r_zq_knm0hph.js +0 -15
  381. package/.next/static/chunks/2yfmmo4qr_f-m.js +0 -1
  382. package/.next/static/chunks/3-xnkknav7azp.js +0 -1
  383. package/.next/static/chunks/38q31td1ecuay.js +0 -1
  384. package/.next/static/chunks/3n75-7grldc6f.js +0 -1
  385. package/.next/static/chunks/3ofr4htw4wpj3.js +0 -1
  386. package/.next/static/chunks/40bkw3zfenss4.js +0 -2
  387. package/public/voices/intro/awake-17dbafbf.ogg +0 -0
  388. package/public/voices/intro/models-d09ddc74.ogg +0 -0
  389. /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_buildManifest.js +0 -0
  390. /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_clientMiddlewareManifest.js +0 -0
  391. /package/.next/static/{YIQV0_9FZPTFUe9TCiVSF → 3_9hbwcAuWTSWCJSufp3d}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,683387,e=>{"use strict";let t,r,n,a,i,s,o,l,c;var u,d,p,h,m=e.i(843476);let f="emphasisSequence",g="strongSequence";var y=e.i(420061);function b(e){return!!(e&&e>=55296&&e<=56319)}function _(e){return!!(e&&e>=56320&&e<=57343)}function w(e,t,r){if(t._bufferIndex<2)return e;let n=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return n&&n>=65536?n:e}var A=class{cachedValue=void 0;constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,r){let n=e>=65536?2:1;if(t._bufferIndex<1+n)return null;let a=t._bufferIndex-n-2,i=r({start:{...t,_bufferIndex:a>=0?a:0},end:{...t,_bufferIndex:t._bufferIndex-n}}),s=i.charCodeAt(i.length-1);if(Number.isNaN(s))return null;if(i.length<2||s<56320||57343<s)return s;let o=i.codePointAt(0);return o&&o>=65536?o:s}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function k(e,t,r){let n=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return n&&n>=65536?n:e}let C=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],S=[12288,12288,65281,65376,65504,65510],x=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],v=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],E=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101594,101631,101664,101760,101874,101888,102801,102816,102866,110576,110579,110581,110587,110589,110590,110592,110888,110898,110898,110928,110930,110933,110933,110948,110952,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127406,127406,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128729,128732,128735,128747,128748,128756,128764,128986,128986,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129734,129736,129736,129740,129757,129759,129771,129775,129786,131072,196605,196608,262141],N=(e,t)=>{let r=0,n=Math.floor(e.length/2)-1;for(;r<=n;){let a=Math.floor((r+n)/2),i=2*a;if(t<e[i])n=a-1;else{if(!(t>e[i+1]))return!0;r=a+1}}return!1},[I,$]=function(e){let t=e[0],r=e[1];for(let n=0;n<e.length;n+=2){let a=e[n],i=e[n+1];if(19968>=a&&19968<=i)return[a,i];i-a>r-t&&(t=a,r=i)}return[t,r]}(E),L=T(/\p{P}|\p{S}/u),P=T(/\s/);function T(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function M(e){return!!(1&e)}function R(e){return(e&t.cjkPunctuation)==2}function O(e){return!!(e&t.cjk)}function F(e){return!!(e&t.cjkOrIvs)}function D(e){return e===t.nonEmojiGeneralUseVS}function G(e){return!!(e&t.spaceOrPunctuation)}var B=e.i(997803);function j(e){if(null===e||(0,B.markdownLineEndingOrSpace)(e)||P(e))return 1;let r=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return t.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return function(e){return!(e<161)&&!(e>1114109)&&N(C,e)?"ambiguous":!(e<12288)&&!(e>65510)&&N(S,e)?"fullwidth":!(e<8361)&&!(e>65518)&&N(x,e)?"halfwidth":!(e<32)&&!(e>10630)&&N(v,e)?"narrow":e>=I&&e<=$||!(e<4352)&&!(e>262141)&&N(E,e)?"wide":"neutral"}(e)}(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}(e)){case null:return t.ivs;case!0:r|=t.cjk}}return L(e)&&(r|=2),r}function U(e,r,n){if(!D(e))return e;let a=r(),i=j(a);return!a||M(i)?e:65025===n&&a&&!(a<8216)&&(8216===a||8217===a||8220===a||8221===a)?t.cjkPunctuation:i&~t.ivs}(u=t||(t={})).spaceOrPunctuation=3,u.cjk=4096,u.cjkPunctuation=4098,u.ivs=8192,u.cjkOrIvs=12288,u.nonEmojiGeneralUseVS=16384,u.variationSelector=24576,u.ivsToCjkRightShift=1;var z=e.i(938402),W=e.i(810291);let q={name:"attention",resolveAll:function(e,t){let r,n,a,i,s,o,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[r][1].end},p={...e[u][1].start};H(d,-o),H(p,o),i={type:o>1?g:f,start:d,end:{...e[r][1].end}},s={type:o>1?g:f,start:{...e[u][1].start},end:p},a={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[u][1].start}},n={type:o>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[r][1].end={...i.start},e[u][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=(0,z.push)(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=(0,z.push)(l,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",a,t]]),(0,y.ok)(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),l=(0,z.push)(l,(0,W.resolveAll)(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),l=(0,z.push)(l,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=(0,z.push)(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,z.splice)(e,r-1,u-r+3,l),u=r+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let r,n=this.parser.constructs.attentionMarkers.null,{now:a,sliceSerialize:i,previous:s}=this,o=_(s)?w(s,a(),i):s,l=j(o),c=new A(o,a(),i),u=U(l,c.value.bind(c),o);return function(s){return(0,y.ok)(42===s||95===s,"expected asterisk or underscore"),r=s,e.enter("attentionSequence"),function s(l){if(l===r)return e.consume(l),s;let c=e.exit("attentionSequence"),d=j(b(l)?k(l,a(),i):l);(0,y.ok)(n,"expected `attentionMarkers` to be populated");let p=R(u),h=p||M(u),m=R(d),f=m||M(d),g=F(u),_=!f||m&&(h||g)||n.includes(l),w=!h||p&&(f||O(d))||n.includes(o);return c._open=!!(42===r?_:_&&(G(u)||!w)),c._close=!!(42===r?w:w&&(G(d)||!_)),t(l)}(s)}}};function H(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function V(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{42:q,95:q},insideSpan:{null:[q]}})}function X(e,t,r,n){return Z(e,t,r,n,K(e,t,r),1)}function Q(e,t,r,n){return Z(e,t,r,n,J(e,t,r),2)}function K(e,t,r){return r.options.emphasis||"*"}function J(e,t,r){return r.options.strong||"*"}function Z(e,t,r,n,a,i){let s,o,l=a.repeat(i),c=r.enter(1===i?"emphasis":"strong"),u=r.createTracker(n),d=u.move(l),p=u.move(r.containerPhrasing(e,{after:a,before:d,...u.current()})),h=function(e,t,r,n){var a,i,s;let o=ec(n),l=eo(n);if(null!==(a=o)&&56320<=a&&a<=57343||(i=o,s=l,D(j(i))&&(null===s||null===s))){let n=ei(e,t,r,-1);n&&(o=ec(n),l=eo(n))}return{current:o,previous:l}}(e,t,r,n.before),m=function(e,t,r,n){var a;let i=el(n);if(!(null!==(a=i)&&55296<=a&&a<=56319))return i;let s=ei(e,t,r,1);return s?el(s):i}(e,t,r,n.after),f=ee(h,el(p),a,"open");f.inside&&p&&(p=function(e){let[t=""]=[...e];return es(t.codePointAt(0)??null)+e.slice(t.length)}(p));let g=ee({current:ec(p),previous:eo(p)},m,a,"close");g.inside&&p&&(o=(s=[...p]).pop(),p=`${s.join("")}${es(o?.codePointAt(0)??null)}`);let y=u.move(l);c();let b=g.outside&&function(e,t){if(!e)return!1;let r=t.indexStack.at(-1);if("number"!=typeof r)return!1;let n=e.children[r+1];return n?.type==="text"&&(el(n.value)??0)>65535}(t,r);return r.attentionEncodeSurroundingInfo={after:g.outside&&!b,before:f.outside},r.cjkFriendlyEncodeAfterSupplementaryText=b,d+p+y}function Y(e,t,r,n){if(!r.cjkFriendlyEncodeAfterSupplementaryText)return r.safe(e.value,n);r.cjkFriendlyEncodeAfterSupplementaryText=!1;let[a=""]=[...e.value],i=e.value.slice(a.length);return`${es(a.codePointAt(0)??null)}${r.safe(i,{...n,before:";"})}`}function ee(e,t,r,n){let a=ea(e),i=j(t);if(!F(a)&&!F(i))return"open"===n?et(a,i,r):et(i,a,r);let s={inside:!0,outside:!0};for(let a of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},s]){let i="open"===n?a.outside?eu:e:a.inside?eu:e,s="open"===n?a.inside?ed:t:a.outside?ed:t;if("open"===n?function(e,t,r){let n=ea(t),{close:a,open:i}=er(n,j(r));return"_"===e?i&&(G(n)||!a):i}(r,i,s):function(e,t,r){let n=j(r),{close:a,open:i}=er(ea(t),n);return"_"===e?a&&(G(n)||!i):a}(r,i,s))return a}return s}function et(e,t,r){return en(e)?en(t)?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:M(e)?en(t)?{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function er(e,t){let r=R(e),n=r||M(e),a=R(t),i=a||M(t);return{open:!i||a&&(n||F(e)),close:!n||r&&(i||O(t))}}function en(e){return!M(e)&&!R(e)}function ea(e){let t=j(e.current);return null!==e.current&&D(t)?U(t,()=>e.previous,e.current):t}function ei(e,t,r,n){if(!t)return;let a=r.indexStack.at(-1),i=t.children,s="number"==typeof a?a:i.indexOf(e);if(!(s<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(i[s+n])||void 0}X.peek=K,Q.peek=J;function es(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function eo(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function el(e){return e.codePointAt(0)??null}function ec(e){return[...e].at(-1)?.codePointAt(0)??null}let eu={current:59,previous:null},ed=38;function ep(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({handlers:{emphasis:X,strong:Q,text:Y}})}function eh(e){let r,n,a=this.data();(a.micromarkExtensions||(a.micromarkExtensions=[])).push((r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,a){let{now:i,sliceSerialize:s,previous:o}=this,l=_(o)?w(o,i(),s):o,c=j(l),u=new A(l,i(),s),d=U(c,u.value.bind(u),l),p=this.events,h=0;return function(o){return((0,y.ok)(126===o,"expected `~`"),126===l&&"characterEscape"!==p[p.length-1][1].type)?a(o):(e.enter("strikethroughSequenceTemporary"),function o(c){let u=j(l);if(126===c)return h>1?a(c):(e.consume(c),h++,o);if(h<2&&!r)return a(c);let p=e.exit("strikethroughSequenceTemporary"),m=j(b(c)?k(c,i(),s):c),f=R(d)||M(d),g=R(m)||M(m),y=O(d)||u===t.ivs;return p._open=!g||2===m&&(f||y),p._close=!f||2===u&&(g||O(m)),n(c)}(o))}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";let a={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},i={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},s=[["enter",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",i,t]],o=t.parser.constructs.insideSpan.null;o&&(0,z.splice)(s,s.length,0,(0,W.resolveAll)(o,e.slice(n+1,r),t)),(0,z.splice)(s,s.length,0,[["exit",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",a,t]]),(0,z.splice)(e,n-1,r-n+3,s),r=n+s.length-2;break}}for(r=-1;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}},null==r&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}))}let em=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ef(e,t,r,n){let a,i,s=r.enter("strikethrough"),o=r.createTracker(n),l=o.move("~~"),c=o.move(r.containerPhrasing(e,{after:"~",before:l,...o.current()})),u=function(e,t,r,n){var a,i,s;let o=ev(n),l=eS(n);if(null!==(a=o)&&56320<=a&&a<=57343||(i=o,s=l,D(j(i))&&(null===s||null===s))){let n=ek(e,t,r,-1);n&&(o=ev(n),l=eS(n))}return{current:o,previous:l}}(e,t,r,n.before),d=function(e,t,r,n){var a;let i=ex(n);if(!(null!==(a=i)&&55296<=a&&a<=56319))return i;let s=ek(e,t,r,1);return s?ex(s):i}(e,t,r,n.after),p=ey(u,ex(c),"open");p.inside&&c&&(c=function(e){let[t=""]=[...e];return eC(t.codePointAt(0)??null)+e.slice(t.length)}(c));let h=ey({current:ev(c),previous:eS(c)},d,"close");h.inside&&c&&(i=(a=[...c]).pop(),c=`${a.join("")}${eC(i?.codePointAt(0)??null)}`);let m=o.move("~~");s();let f=h.outside&&function(e,t){if(!e)return!1;let r=t.indexStack.at(-1);if("number"!=typeof r)return!1;let n=e.children[r+1];return n?.type==="text"&&(ex(n.value)??0)>65535}(t,r);return r.attentionEncodeSurroundingInfo={after:h.outside&&!f,before:p.outside},r.cjkFriendlyEncodeAfterSupplementaryText=f,l+c+m}function eg(e,t,r,n){if(!r.cjkFriendlyEncodeAfterSupplementaryText)return r.safe(e.value,n);r.cjkFriendlyEncodeAfterSupplementaryText=!1;let[a=""]=[...e.value],i=e.value.slice(a.length);return`${eC(a.codePointAt(0)??null)}${r.safe(i,{...n,before:";"})}`}function ey(e,t,r){let n=eA(e),a=j(t);if(!F(n)&&!F(a))return"open"===r?eb(n,a):eb(a,n);let i={inside:!0,outside:!0};for(let n of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},i]){let a="open"===r?n.outside?eE:e:n.inside?eE:e,i="open"===r?n.inside?eN:t:n.outside?eN:t;if("open"===r?function(e,t){let{open:r}=e_(eA(e),j(t));return r}(a,i):function(e,t){let r=j(t),{close:n}=e_(eA(e),r);return n}(a,i))return n}return i}function eb(e,t){return ew(e)?ew(t)?{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:M(e)?ew(t)?{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function e_(e,t){let r=R(e),n=r||M(e),a=R(t),i=a||M(t);return{open:!i||a&&(n||F(e)),close:!n||r&&(i||O(t))}}function ew(e){return!M(e)&&!R(e)}function eA(e){let t=j(e.current);return null!==e.current&&D(t)?U(t,()=>e.previous,e.current):t}function ek(e,t,r,n){if(!t)return;let a=r.indexStack.at(-1),i=t.children,s="number"==typeof a?a:i.indexOf(e);if(!(s<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(i[s+n])||void 0}ef.peek=function(){return"~"};function eC(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function eS(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function ex(e){return e.codePointAt(0)??null}function ev(e){return[...e].at(-1)?.codePointAt(0)??null}let eE={current:59,previous:null},eN=38;function eI(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:em}],handlers:{delete:ef,text:eg}})}var e$=e.i(784801),eL=new Set(["。",".",",","、","?","!",":",";","(",")","【","】","「","」","『","』","〈","〉","《","》"]),eP=/^(https?:\/\/|mailto:|www\.)/i,eT=(s=[...a=[function(){V.call(this),ep.call(this)}],...i=[()=>e=>{(0,e$.visit)(e,"link",(e,t,r)=>{if(!r||"number"!=typeof t||!(e=>{if(1!==e.children.length)return!1;let t=e.children[0];return"text"===t.type&&t.value===e.url})(e)||!eP.test(e.url))return;let n=(e=>{let t=0;for(let r of e){if(eL.has(r))return t;t+=r.length}return null})(e.url);if(null===n||0===n)return;let a=e.url.slice(0,n),i=e.url.slice(n),s={...e,url:a,children:[{type:"text",value:a}]};return r.children.splice(t,1,s,{type:"text",value:i}),t+1})},function(e){eh.call(this,e),eI.call(this)}]],{name:"cjk",type:"cjk",remarkPluginsBefore:a,remarkPluginsAfter:i,remarkPlugins:s});let eM=[{id:"abap",name:"ABAP",import:()=>e.A(516690)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(274435)},{id:"ada",name:"Ada",import:()=>e.A(796339)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(196546)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(60308)},{id:"apache",name:"Apache Conf",import:()=>e.A(608734)},{id:"apex",name:"Apex",import:()=>e.A(902952)},{id:"apl",name:"APL",import:()=>e.A(814026)},{id:"applescript",name:"AppleScript",import:()=>e.A(210042)},{id:"ara",name:"Ara",import:()=>e.A(327701)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(864940)},{id:"asm",name:"Assembly",import:()=>e.A(581996)},{id:"astro",name:"Astro",import:()=>e.A(185223)},{id:"awk",name:"AWK",import:()=>e.A(577689)},{id:"ballerina",name:"Ballerina",import:()=>e.A(887861)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(769047)},{id:"beancount",name:"Beancount",import:()=>e.A(566005)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(64129)},{id:"bibtex",name:"BibTeX",import:()=>e.A(686785)},{id:"bicep",name:"Bicep",import:()=>e.A(234475)},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e.A(273197)},{id:"blade",name:"Blade",import:()=>e.A(184291)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(254810)},{id:"c",name:"C",import:()=>e.A(715630)},{id:"c3",name:"C3",import:()=>e.A(721406)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(928418)},{id:"cairo",name:"Cairo",import:()=>e.A(496018)},{id:"clarity",name:"Clarity",import:()=>e.A(268805)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(885670)},{id:"cmake",name:"CMake",import:()=>e.A(850277)},{id:"cobol",name:"COBOL",import:()=>e.A(608435)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(677655)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(393919)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(499510)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(314583)},{id:"coq",name:"Coq",import:()=>e.A(138305)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(162895)},{id:"crystal",name:"Crystal",import:()=>e.A(715822)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(156548)},{id:"css",name:"CSS",import:()=>e.A(68853)},{id:"csv",name:"CSV",import:()=>e.A(508072)},{id:"cue",name:"CUE",import:()=>e.A(379420)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(901081)},{id:"d",name:"D",import:()=>e.A(732086)},{id:"dart",name:"Dart",import:()=>e.A(8814)},{id:"dax",name:"DAX",import:()=>e.A(706010)},{id:"desktop",name:"Desktop",import:()=>e.A(611671)},{id:"diff",name:"Diff",import:()=>e.A(499264)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(964927)},{id:"dotenv",name:"dotEnv",import:()=>e.A(86855)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(955357)},{id:"edge",name:"Edge",import:()=>e.A(40814)},{id:"elixir",name:"Elixir",import:()=>e.A(534593)},{id:"elm",name:"Elm",import:()=>e.A(80402)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(659962)},{id:"erb",name:"ERB",import:()=>e.A(655306)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(379291)},{id:"fennel",name:"Fennel",import:()=>e.A(56334)},{id:"fish",name:"Fish",import:()=>e.A(955953)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(372286)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(709599)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(417187)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(106583)},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e.A(600350)},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e.A(718592)},{id:"gdshader",name:"GDShader",import:()=>e.A(964292)},{id:"genie",name:"Genie",import:()=>e.A(251227)},{id:"gherkin",name:"Gherkin",import:()=>e.A(781674)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(765886)},{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(643635)},{id:"gleam",name:"Gleam",import:()=>e.A(469752)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(220210)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(952204)},{id:"glsl",name:"GLSL",import:()=>e.A(615932)},{id:"gn",name:"GN",import:()=>e.A(846517)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(334810)},{id:"go",name:"Go",import:()=>e.A(518233)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(527502)},{id:"groovy",name:"Groovy",import:()=>e.A(783131)},{id:"hack",name:"Hack",import:()=>e.A(866363)},{id:"haml",name:"Ruby Haml",import:()=>e.A(936482)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(219104)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(982274)},{id:"haxe",name:"Haxe",import:()=>e.A(843593)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(392582)},{id:"hjson",name:"Hjson",import:()=>e.A(32395)},{id:"hlsl",name:"HLSL",import:()=>e.A(336975)},{id:"html",name:"HTML",import:()=>e.A(615475)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(736812)},{id:"http",name:"HTTP",import:()=>e.A(722332)},{id:"hurl",name:"Hurl",import:()=>e.A(77996)},{id:"hxml",name:"HXML",import:()=>e.A(412671)},{id:"hy",name:"Hy",import:()=>e.A(98975)},{id:"imba",name:"Imba",import:()=>e.A(221794)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(712237)},{id:"java",name:"Java",import:()=>e.A(25004)},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e.A(792799)},{id:"jinja",name:"Jinja",import:()=>e.A(300535)},{id:"jison",name:"Jison",import:()=>e.A(299868)},{id:"json",name:"JSON",import:()=>e.A(692658)},{id:"json5",name:"JSON5",import:()=>e.A(145390)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(459901)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(844018)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(932597)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(386493)},{id:"jsx",name:"JSX",import:()=>e.A(287672)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(148045)},{id:"just",name:"Just",import:()=>e.A(704538)},{id:"kdl",name:"KDL",import:()=>e.A(522051)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(278014)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(511938)},{id:"latex",name:"LaTeX",import:()=>e.A(382697)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(106774)},{id:"less",name:"Less",import:()=>e.A(657069)},{id:"liquid",name:"Liquid",import:()=>e.A(133954)},{id:"llvm",name:"LLVM IR",import:()=>e.A(969445)},{id:"log",name:"Log file",import:()=>e.A(532210)},{id:"logo",name:"Logo",import:()=>e.A(917136)},{id:"lua",name:"Lua",import:()=>e.A(147287)},{id:"luau",name:"Luau",import:()=>e.A(298173)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(418877)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(159142)},{id:"marko",name:"Marko",import:()=>e.A(644609)},{id:"matlab",name:"MATLAB",import:()=>e.A(323845)},{id:"mdc",name:"MDC",import:()=>e.A(367535)},{id:"mdx",name:"MDX",import:()=>e.A(659189)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(457619)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(401626)},{id:"mojo",name:"Mojo",import:()=>e.A(524176)},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e.A(205353)},{id:"move",name:"Move",import:()=>e.A(847969)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(755902)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(557638)},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>e.A(272194)},{id:"nginx",name:"Nginx",import:()=>e.A(47723)},{id:"nim",name:"Nim",import:()=>e.A(446820)},{id:"nix",name:"Nix",import:()=>e.A(565220)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(821908)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(798543)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(953213)},{id:"ocaml",name:"OCaml",import:()=>e.A(357016)},{id:"odin",name:"Odin",import:()=>e.A(144)},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e.A(389188)},{id:"pascal",name:"Pascal",import:()=>e.A(494584)},{id:"perl",name:"Perl",import:()=>e.A(590087)},{id:"php",name:"PHP",import:()=>e.A(753525)},{id:"pkl",name:"Pkl",import:()=>e.A(506695)},{id:"plsql",name:"PL/SQL",import:()=>e.A(985641)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(215520)},{id:"polar",name:"Polar",import:()=>e.A(579736)},{id:"postcss",name:"PostCSS",import:()=>e.A(344743)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(69901)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(849765)},{id:"prisma",name:"Prisma",import:()=>e.A(925840)},{id:"prolog",name:"Prolog",import:()=>e.A(678110)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(710002)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(753456)},{id:"puppet",name:"Puppet",import:()=>e.A(328116)},{id:"purescript",name:"PureScript",import:()=>e.A(762792)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(548436)},{id:"qml",name:"QML",import:()=>e.A(985774)},{id:"qmldir",name:"QML Directory",import:()=>e.A(822682)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(29273)},{id:"r",name:"R",import:()=>e.A(917431)},{id:"racket",name:"Racket",import:()=>e.A(127184)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(402999)},{id:"razor",name:"ASP.NET Razor",import:()=>e.A(22510)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(392914)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(864980)},{id:"rel",name:"Rel",import:()=>e.A(362249)},{id:"riscv",name:"RISC-V",import:()=>e.A(919686)},{id:"ron",name:"RON",import:()=>e.A(123169)},{id:"rosmsg",name:"ROS Interface",import:()=>e.A(866973)},{id:"rst",name:"reStructuredText",import:()=>e.A(580357)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(660137)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(225837)},{id:"sas",name:"SAS",import:()=>e.A(559154)},{id:"sass",name:"Sass",import:()=>e.A(428160)},{id:"scala",name:"Scala",import:()=>e.A(679226)},{id:"scheme",name:"Scheme",import:()=>e.A(95554)},{id:"scss",name:"SCSS",import:()=>e.A(256229)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(257294)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(287646)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(77876)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(702789)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(105404)},{id:"solidity",name:"Solidity",import:()=>e.A(664050)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(423766)},{id:"sparql",name:"SPARQL",import:()=>e.A(471095)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(713125)},{id:"sql",name:"SQL",import:()=>e.A(347760)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(525380)},{id:"stata",name:"Stata",import:()=>e.A(927772)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(131592)},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e.A(942509)},{id:"svelte",name:"Svelte",import:()=>e.A(209551)},{id:"swift",name:"Swift",import:()=>e.A(174099)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(401250)},{id:"systemd",name:"Systemd Units",import:()=>e.A(944475)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(600538)},{id:"tasl",name:"Tasl",import:()=>e.A(336651)},{id:"tcl",name:"Tcl",import:()=>e.A(709948)},{id:"templ",name:"Templ",import:()=>e.A(340336)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(508436)},{id:"tex",name:"TeX",import:()=>e.A(155636)},{id:"toml",name:"TOML",import:()=>e.A(351979)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(65678)},{id:"tsv",name:"TSV",import:()=>e.A(841727)},{id:"tsx",name:"TSX",import:()=>e.A(557754)},{id:"turtle",name:"Turtle",import:()=>e.A(670454)},{id:"twig",name:"Twig",import:()=>e.A(670515)},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e.A(48460)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(744538)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(963321)},{id:"v",name:"V",import:()=>e.A(43837)},{id:"vala",name:"Vala",import:()=>e.A(830536)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(785051)},{id:"verilog",name:"Verilog",import:()=>e.A(586017)},{id:"vhdl",name:"VHDL",import:()=>e.A(495694)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(404547)},{id:"vue",name:"Vue",import:()=>e.A(934329)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(160550)},{id:"vue-vine",name:"Vue Vine",import:()=>e.A(109)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(834235)},{id:"wasm",name:"WebAssembly",import:()=>e.A(879931)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>e.A(738463)},{id:"wgsl",name:"WGSL",import:()=>e.A(464547)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(74196)},{id:"wit",name:"WebAssembly Interface Types",import:()=>e.A(926245)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(998654)},{id:"xml",name:"XML",import:()=>e.A(160115)},{id:"xsl",name:"XSL",import:()=>e.A(656841)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(291412)},{id:"zenscript",name:"ZenScript",import:()=>e.A(441270)},{id:"zig",name:"Zig",import:()=>e.A(332344)}],eR=Object.fromEntries(eM.map(e=>[e.id,e.import])),eO=Object.fromEntries(eM.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),eF={...eR,...eO};class eD extends Error{constructor(e){super(e),this.name="ShikiError"}}var eG=e.i(247167);function eB(e,...t){return t.forEach(t=>{for(let r in t)e[r]=t[r]}),e}var ej=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,eU=class{static hasCaptures(e){return null!==e&&(ej.lastIndex=0,ej.test(e))}static replaceCaptures(e,t,r){return e.replace(ej,(e,n,a,i)=>{let s=r[parseInt(n||a,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function ez(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let n=0;n<r;n++){var a,i;let r=(a=e[n],a<(i=t[n])?-1:+(a>i));if(0!==r)return r}return 0}return r-n}function eW(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function eq(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var eH=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},eV=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let e=0,a=t.length;e<a;e++){let a,i=t[e];if(!i.settings)continue;if("string"==typeof i.scope){let e=i.scope;a=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else a=Array.isArray(i.scope)?i.scope:[""];let s=-1;if("string"==typeof i.settings.fontStyle){s=0;let e=i.settings.fontStyle.split(" ");for(let t=0,r=e.length;t<r;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof i.settings.foreground&&eW(i.settings.foreground)&&(o=i.settings.foreground);let l=null;"string"==typeof i.settings.background&&eW(i.settings.background)&&(l=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(" "),c=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1)).reverse(),r[n++]=new eK(c,u,e,s,o,l)}}return r}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var r,n;let a=(r=e.scope,r<(n=t.scope)?-1:+(r>n));return 0!==a||0!==(a=ez(e.parentScopes,t.parentScopes))?a:e.index-t.index});let r=0,n="#000000",a="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(a=t.background)}let i=new eZ(t),s=new eQ(r,i.getId(n),i.getId(a)),o=new e1(new e0(0,null,-1,0,0),[]);for(let t=0,r=e.length;t<r;t++){let r=e[t];o.insert(0,r.scope,r.parentScopes,r.fontStyle,i.getId(r.foreground),i.getId(r.background))}return new eV(i,s,o)}(e,t)}_cachedMatchRoot=new eH(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,r=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let a=0;a<t.length;a++){var r,n;let i=t[a],s=!1;if(">"===i){if(a===t.length-1)return!1;i=t[++a],s=!0}for(;e&&(r=e.scopeName,!((n=i)===r||r.startsWith(n)&&"."===r[n.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return r?new eQ(r.fontStyle,r.foreground,r.background):null}},eX=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,r){for(let n of r)t=new e(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new e(r,t[n]);return r}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}},eQ=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}},eK=class{constructor(e,t,r,n,a,i){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=a,this.background=i}},eJ=((d=eJ||{})[d.NotSet=-1]="NotSet",d[d.None=0]="None",d[d.Italic=1]="Italic",d[d.Bold=2]="Bold",d[d.Underline=4]="Underline",d[d.Strikethrough=8]="Strikethrough",d),eZ=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},eY=Object.freeze([]),e0=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,n,a){this.scopeDepth=e,this.parentScopes=t||eY,this.fontStyle=r,this.foreground=n,this.background=a}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==n&&(this.background=n)}},e1=class e{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;">"===e.parentScopes[r]&&r++,">"===t.parentScopes[n]&&n++,!(r>=e.parentScopes.length)&&!(n>=t.parentScopes.length);){let a=t.parentScopes[n].length-e.parentScopes[r].length;if(0!==a)return a;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,r,n=t.indexOf(".");if(-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+1)),this._children.hasOwnProperty(e))return this._children[e].match(r)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(e._cmpBySpecificity),r}insert(t,r,n,a,i,s){let o,l,c;if(""===r)return void this._doInsertHere(t,n,a,i,s);let u=r.indexOf(".");-1===u?(o=r,l=""):(o=r.substring(0,u),l=r.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),e0.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,n,a,i,s)}_doInsertHere(e,t,r,n,a){if(null===t)return void this._mainRule.acceptOverwrite(e,r,n,a);for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let s=this._rulesWithParentScopes[i];if(0===ez(s.parentScopes,t))return void s.acceptOverwrite(e,r,n,a)}-1===r&&(r=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===a&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new e0(e,t,r,n,a))}},e2=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let r=e.getLanguageId(t),n=e.getTokenType(t),a=e.getFontStyle(t);console.log({languageId:r,tokenType:n,fontStyle:a,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,r,n,a,i,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),p=e.getForeground(t),h=e.getBackground(t);return 0!==r&&(l=r),8!==n&&(c=n),null!==a&&(u=+!!a),-1!==i&&(d=i),0!==s&&(p=s),0!==o&&(h=o),(l|c<<8|u<<10|d<<11|p<<15|h<<24)>>>0}};function e8(e,t){var r;let n,a,i=[],s=(r=e,a=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(r),{next:()=>{if(!a)return null;let e=a[0];return a=n.exec(r),e}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=c();if(i.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return i;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o)t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(e6(o)){let e=[];do e.push(o),o=s.next();while(e6(o))return r=>t(e,r)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function e6(e){return!!e&&!!e.match(/[\w\.:]+/)}var e5=((p=e5||{})[p.None=0]="None",p[p.NotBeginString=1]="NotBeginString",p[p.NotEndString=2]="NotEndString",p[p.NotBeginPosition=4]="NotBeginPosition",p[p.DebugCall=8]="DebugCall",p);function e3(e){"function"==typeof e.dispose&&e.dispose()}var e9=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},e4=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},e7=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},te=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new e9(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new e7;for(let r of e)!function(e,t,r,n){let a=r.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let i=r.lookup(t);e instanceof e9?tr({baseGrammar:i,selfGrammar:a},n):tt(e.ruleName,{baseGrammar:i,selfGrammar:a,repository:a.repository},n);let s=r.injections(e.scopeName);if(s)for(let e of s)n.add(new e9(e))}(r,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof e9){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function tt(e,t,r){t.repository&&t.repository[e]&&tn([t.repository[e]],t,r)}function tr(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&tn(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&tn(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function tn(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let e=n.repository?eB({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&tn(n.patterns,{...t,repository:e},r);let a=n.include;if(!a)continue;let i=tc(a);switch(i.kind){case 0:tr({...t,selfGrammar:t.baseGrammar},r);break;case 1:tr(t,r);break;case 2:tt(i.ruleName,{...t,repository:e},r);break;case 3:case 4:let s=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===i.kind?tt(i.ruleName,n,r):tr(n,r)}else 4===i.kind?r.add(new e4(i.scopeName,i.ruleName)):r.add(new e9(i.scopeName))}}}var ta=class{kind=0},ti=class{kind=1},ts=class{constructor(e){this.ruleName=e}kind=2},to=class{constructor(e){this.scopeName=e}kind=3},tl=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function tc(e){if("$base"===e)return new ta;if("$self"===e)return new ti;let t=e.indexOf("#");return -1===t?new to(e):0===t?new ts(e.substring(1)):new tl(e.substring(0,t),e.substring(t+1))}var tu=/\\(\d+)/,td=/\\(\d+)/g;Symbol("RuleId");var tp=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=eU.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=eU.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===r?t:~r==t.length-1?e(t.substring(0,t.length-1)):t.substr(~r+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?eU.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?eU.replaceCaptures(this._contentName,e,t):this._contentName}},th=class extends tp{retokenizeCapturedWithRuleId;constructor(e,t,r,n,a){super(e,t,r,n),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,n){throw Error("Not supported!")}},tm=class extends tp{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,null),this._match=new t_(n,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tw,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tf=class extends tp{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,n),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tw,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tg=class extends tp{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a,i,s,o,l,c){super(e,t,r,n),this._begin=new t_(a,this.id),this.beginCaptures=i,this._end=new t_(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new tw,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ty=class extends tp{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,a,i,s,o,l){super(e,t,r,n),this._begin=new t_(a,this.id),this.beginCaptures=i,this.whileCaptures=o,this._while=new t_(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new tw,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new tw,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},tb=class e{static createCaptureRule(e,t,r,n,a){return e.registerRule(e=>new th(t,e,r,n,a))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(a=>{if(t.id=a,t.match)return new tm(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,r,n));if(void 0===t.begin){t.repository&&(n=eB({},n,t.repository));let a=t.patterns;return void 0===a&&t.include&&(a=[{include:t.include}]),new tf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(a,r,n))}return t.while?new ty(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,e._compileCaptures(t.whileCaptures||t.captures,r,n),e._compilePatterns(t.patterns,r,n)):new tg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,e._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,e._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let a=[];if(t){let i=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>i&&(i=t)}for(let e=0;e<=i;e++)a[e]=null;for(let i in t){if("$vscodeTextmateLocation"===i)continue;let s=parseInt(i,10),o=0;t[i].patterns&&(o=e.getCompiledRuleId(t[i],r,n)),a[s]=e.createCaptureRule(r,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,o)}}return a}static _compilePatterns(t,r,n){let a=[];if(t)for(let i=0,s=t.length;i<s;i++){let s=t[i],o=-1;if(s.include){let t=tc(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(n[s.include],r,n);break;case 2:let a=n[t.ruleName];a&&(o=e.getCompiledRuleId(a,r,n));break;case 3:case 4:let i=t.scopeName,l=4===t.kind?t.ruleName:null,c=r.getExternalGrammar(i,n);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,r,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,r,c.repository)}}else o=e.getCompiledRuleId(s,r,n);if(-1!==o){let e=r.getRule(o),t=!1;if((e instanceof tf||e instanceof tg||e instanceof ty)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;a.push(o)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},t_=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let r=0,n=[],a=!1;for(let i=0;i<t;i++)if("\\"===e.charAt(i)&&i+1<t){const t=e.charAt(i+1);"z"===t?(n.push(e.substring(r,i)),n.push("$(?!\\n)(?<!\\n)"),r=i+2):("A"===t||"G"===t)&&(a=!0),i++}this.hasAnchor=a,0===r?this.source=e:(n.push(e.substring(r,t)),this.source=n.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=tu.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=t.map(t=>e.substring(t.start,t.end));return td.lastIndex=0,this.source.replace(td,(e,t)=>eq(r[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,r,n;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let a=[],i=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)r=this.source.charAt(e),a[e]=r,i[e]=r,s[e]=r,o[e]=r,"\\"===r&&e+1<t&&("A"===(n=this.source.charAt(e+1))?(a[e+1]="￿",i[e+1]="￿",s[e+1]="A",o[e+1]="A"):"G"===n?(a[e+1]="￿",i[e+1]="G",s[e+1]="￿",o[e+1]="G"):(a[e+1]=n,i[e+1]=n,s[e+1]=n,o[e+1]=n),e++);return{A0_G0:a.join(""),A0_G1:i.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},tw=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new tA(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){if(!this._hasAnchors)return this.compile(e);if(t)if(r)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0;return r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,r){return new tA(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}},tA=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,r){let n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},tk=class{constructor(e,t){this.languageId=e,this.tokenType=t}},tC=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new tk(e,8),this._embeddedLanguagesMatcher=new tS(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new tk(0,0);_getBasicScopeAttributes=new eH(e=>new tk(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let r=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},tS=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>eq(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==eG.default&&eG.default.env.VSCODE_TEXTMATE_DEBUG;var tx=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function tv(e,t,r,n,a,i,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,r,n,a,i){let s=a.beginRuleCapturedEOL?0:-1,o=[];for(let t=a;t;t=t.pop()){let r=t.getRule(e);r instanceof ty&&o.push({rule:r,stack:t})}for(let h=o.pop();h;h=o.pop()){var l,c,u,d,p;let{ruleScanner:o,findOptions:m}=(l=h.rule,c=e,u=h.stack.endRule,d=r,p=n===s,{ruleScanner:l.compileWhileAG(c,u,d,p),findOptions:0}),f=o.findNextMatchSync(t,n,m);if(f){if(-2!==f.ruleId){a=h.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(i.produce(h.stack,f.captureIndices[0].start),tN(e,t,r,h.stack,i,h.rule.whileCaptures,f.captureIndices),i.produce(h.stack,f.captureIndices[0].end),s=f.captureIndices[0].end,f.captureIndices[0].end>n&&(n=f.captureIndices[0].end,r=!1))}else{a=h.stack.pop();break}}return{stack:a,linePos:n,anchorPosition:s,isFirstLine:r}}(e,t,r,n,a,i);a=s.stack,n=s.linePos,r=s.isFirstLine,u=s.anchorPosition}let d=Date.now();for(;!c;){if(0!==o&&Date.now()-d>o)return new tx(a,!0);!function(){let s=function(e,t,r,n,a,i){let s=function(e,t,r,n,a,i){let{ruleScanner:s,findOptions:o}=tE(a.getRule(e),e,a.endRule,r,n===i),l=s.findNextMatchSync(t,n,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,r,n,a,i),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,r,n,a,i,s){let o,l=Number.MAX_VALUE,c=null,u=0,d=i.contentNameScopesList.getScopeNames();for(let i=0,p=e.length;i<p;i++){let p=e[i];if(!p.matcher(d))continue;let{ruleScanner:h,findOptions:m}=tE(t.getRule(p.ruleId),t,null,n,a===s),f=h.findNextMatchSync(r,a,m);if(!f)continue;let g=f.captureIndices[0].start;if(!(g>=l)&&(l=g,c=f.captureIndices,o=f.ruleId,u=p.priority,l===a))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:o}:null}(o,e,t,r,n,a,i);if(!l)return s;if(!s)return l;let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,r,n,a,u);if(!s){i.produce(a,l),c=!0;return}let o=s.captureIndices,d=s.matchedRuleId,p=!!o&&o.length>0&&o[0].end>n;if(-1===d){let s=a.getRule(e);i.produce(a,o[0].start),a=a.withContentNameScopesList(a.nameScopesList),tN(e,t,r,a,i,s.endCaptures,o),i.produce(a,o[0].end);let d=a;if(a=a.parent,u=d.getAnchorPos(),!p&&d.getEnterPos()===n){a=d,i.produce(a,l),c=!0;return}}else{let s=e.getRule(d);i.produce(a,o[0].start);let h=a,m=s.getName(t.content,o),f=a.contentNameScopesList.pushAttributed(m,e);if(a=a.push(d,n,u,o[0].end===l,null,f,f),s instanceof tg){tN(e,t,r,a,i,s.beginCaptures,o),i.produce(a,o[0].end),u=o[0].end;let n=s.getContentName(t.content,o),d=f.pushAttributed(n,e);if(a=a.withContentNameScopesList(d),s.endHasBackReferences&&(a=a.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!p&&h.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),c=!0;return}}else if(s instanceof ty){tN(e,t,r,a,i,s.beginCaptures,o),i.produce(a,o[0].end),u=o[0].end;let n=s.getContentName(t.content,o),d=f.pushAttributed(n,e);if(a=a.withContentNameScopesList(d),s.whileHasBackReferences&&(a=a.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!p&&h.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),c=!0;return}}else if(tN(e,t,r,a,i,s.captures,o),i.produce(a,o[0].end),a=a.pop(),!p){a=a.safePop(),i.produce(a,l),c=!0;return}}o[0].end>n&&(n=o[0].end,r=!1)}()}return new tx(a,!1)}function tE(e,t,r,n,a){return{ruleScanner:e.compileAG(t,r,n,a),findOptions:0}}function tN(e,t,r,n,a,i,s){if(0===i.length)return;let o=t.content,l=Math.min(i.length,s.length),c=[],u=s[0].end;for(let t=0;t<l;t++){let l=i[t];if(null===l)continue;let d=s[t];if(0===d.length)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?a.produceFromScopes(c[c.length-1].scopes,d.start):a.produce(n,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),i=n.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=i.pushAttributed(c,e),p=n.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,i,u),h=e.createOnigString(o.substring(0,d.end));tv(e,h,r&&0===d.start,d.start,p,a,!1,0),e3(h);continue}let p=l.getName(o,s);if(null!==p){let t=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(p,e);c.push(new tI(t,d.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var tI=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function t$(e,t,r,n,a){let i=e8(t,tL),s=tb.getCompiledRuleId(r,n,a.repository);for(let r of i)e.push({debugSelector:t,matcher:r.matcher,ruleId:s,grammar:a,priority:r.priority})}function tL(e,t){if(t.length<e.length)return!1;let r=0;return e.every(e=>{for(let n=r;n<t.length;n++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&"."===e[r]}(t[n],e))return r=n+1,!0;return!1})}var tP=class{constructor(e,t,r,n,a,i,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=o,this._basicScopeAttributesProvider=new tC(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=tT(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const e of Object.keys(a))for(const t of e8(e,tL))this._tokenTypeMatchers.push({matcher:t.matcher,type:a[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,r=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(r){let n=r.injections;if(n)for(let t in n)t$(e,t,n[t],this,r);let a=this._grammarRepository.injections(t);a&&a.forEach(t=>{let r=this.getExternalGrammar(t);if(r){let t=r.injectionSelector;t&&t$(e,t,r,this,r)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=tT(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){let a;if(-1===this._rootId&&(this._rootId=tb.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==tR.NULL)a=!1,t.reset();else{let e;a=!0;let r=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),i=e2.set(0,r.languageId,r.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?tM.createRootAndLookUpScopeName(s,i,this):tM.createRoot("unknown",i),t=new tR(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let i=this.createOnigString(e),s=i.content.length,o=new tF(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=tv(this,i,a,0,t,o,!0,n);return e3(i),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function tT(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let r=[];for(let n=0,a=t.length;n<a;n++)r[n]=e(t[n]);return r}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let r={};for(let n in t)r[n]=e(t[n]);return r}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var tM=class e{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(t,r){let n=t,a=t?.scopePath??null;for(let t of r)n=new e(n,a=eX.push(a,t.scopeNames),t.encodedTokenAttributes);return n}static createRoot(t,r){return new e(null,new eX(null,t),r)}static createRootAndLookUpScopeName(t,r,n){let a=n.getMetadataForScope(t),i=new eX(null,t),s=n.themeProvider.themeMatch(i),o=e.mergeAttributes(r,a,s);return new e(null,i,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,r){let n=-1,a=0,i=0;return null!==r&&(n=r.fontStyle,a=r.foregroundId,i=r.backgroundId),e2.set(e,t.languageId,t.tokenType,null,n,a,i)}pushAttributed(t,r){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,r);let n=t.split(/ /g),a=this;for(let t of n)a=e._pushAttributed(a,t,r);return a}static _pushAttributed(t,r,n){let a=n.getMetadataForScope(r),i=t.scopePath.push(r),s=n.themeProvider.themeMatch(i),o=e.mergeAttributes(t.tokenAttributes,a,s);return new e(t,i,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},tR=class e{constructor(e,t,r,n,a,i,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=a,this.endRule=i,this.nameScopesList=s,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&tM.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,a,i,s,o){return new e(this,t,r,n,a,i,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){let n=tM.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new e(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,tM.fromExtension(n,r.contentNameScopesList))}},tO=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):e8(e,tL).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>e8(e,tL).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},tF=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(r=e2.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(t))}if(n&&(r=e2.set(r,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)r[e]=this._binaryTokens[e];return r}},tD=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,a){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,new tP(e,i,t,r,n,a,this,this._onigLib))}return this._grammars.get(e)}},tG=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new tD(eV.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(eV.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new tO(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,a){let i=new te(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(e=>this._loadSingleGrammar(e.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,n,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,a)}},tB=tR.NULL,tj=e.i(241631),tU=e.i(157871),tz=e.i(369587);let tW=/["&'<>`]/g,tq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tH=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tV=/[|\\{}()[\]^$+*?.]/g,tX=new WeakMap,tQ=/[\dA-Fa-f]/,tK=/\d/,tJ=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tZ={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},tY=["cent","copy","divide","gt","lt","not","para","times"],t0={}.hasOwnProperty,t1={};for(r in tZ)t0.call(tZ,r)&&(t1[tZ[r]]=r);let t2=/[^\dA-Za-z]/;function t8(e,t,r){var n,a;let i,s,o=(n=r.omitOptionalSemicolons,i="&#x"+e.toString(16).toUpperCase(),n&&t&&!tQ.test(String.fromCharCode(t))?i:i+";");if((r.useNamedReferences||r.useShortestReferences)&&(s=function(e,t,r,n){let a=String.fromCharCode(e);if(t0.call(t1,a)){let e=t1[a],i="&"+e;return r&&tJ.includes(e)&&!tY.includes(e)&&(!n||t&&61!==t&&t2.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!s)&&r.useShortestReferences){let n,i=(a=r.omitOptionalSemicolons,n="&#"+String(e),a&&t&&!tK.test(String.fromCharCode(t))?n:n+";");i.length<o.length&&(o=i)}return s&&(!r.useShortestReferences||s.length<o.length)?s:o}function t6(e,t){let r;var n,a=e,i=Object.assign({format:t8},t);if(a=a.replace(i.subset?(n=i.subset,(r=tX.get(n))||(r=function(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(tV,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),tX.set(n,r)),r):tW,s),i.subset||i.escapeOnly)return a;return a.replace(tq,function(e,t,r){return i.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(t+2),i)}).replace(tH,s);function s(e,t,r){return i.format(e.charCodeAt(0),r.charCodeAt(t+1),i)}}let t5=/^>|^->|<!--|-->|--!>|<!-$/g,t3=[">"],t9=["<",">"];var t4=e.i(496481),t7=e.i(76696),re=e.i(640553),rt=e.i(359091),rr=e.i(124963);let rn=rs(1),ra=rs(-1),ri=[];function rs(e){return function(t,r,n){let a=t?t.children:ri,i=(r||0)+e,s=a[i];if(!n)for(;s&&(0,rr.whitespace)(s);)i+=e,s=a[i];return s}}let ro={}.hasOwnProperty;function rl(e){return function(t,r,n){return ro.call(e,t.tagName)&&e[t.tagName](t,r,n)}}let rc=rl({body:function(e,t,r){let n=rn(r,t);return!n||"comment"!==n.type},caption:ru,colgroup:ru,dd:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(e,t,r){let n=rn(r,t);return!!(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:ru,html:function(e,t,r){let n=rn(r,t);return!n||"comment"!==n.type},li:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(e,t,r){let n=rn(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||"element"!==r.type||"a"!==r.tagName&&"audio"!==r.tagName&&"del"!==r.tagName&&"ins"!==r.tagName&&"map"!==r.tagName&&"noscript"!==r.tagName&&"video"!==r.tagName},rp:rd,rt:rd,tbody:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:rp,tfoot:function(e,t,r){return!rn(r,t)},th:rp,thead:function(e,t,r){let n=rn(r,t);return!!(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&"tr"===n.tagName}});function ru(e,t,r){let n=rn(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&(0,rr.whitespace)(n.value.charAt(0)))}function rd(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function rp(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}let rh=rl({body:function(e){let t=rn(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,rr.whitespace)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,r){let n=ra(r,t),a=rn(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&rc(n,r.children.indexOf(n),r))&&!!(a&&"element"===a.type&&"col"===a.tagName)},head:function(e){let t=new Set;for(let r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}let r=e.children[0];return!r||"element"===r.type},html:function(e){let t=rn(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,r){let n=ra(r,t),a=rn(e,-1);return!(r&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&rc(n,r.children.indexOf(n),r))&&!!(a&&"element"===a.type&&"tr"===a.tagName)}}),rm={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},rf=["<","&"];function rg(e,t,r,n){return r&&"element"===r.type&&("script"===r.tagName||"style"===r.tagName)?e.value:t6(e.value,Object.assign({},n.settings.characterReferences,{subset:rf}))}let ry=(0,tz.zwitch)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,r,n){return n.settings.bogusComments?"<?"+t6(e.value,Object.assign({},n.settings.characterReferences,{subset:t3}))+">":"<!--"+e.value.replace(t5,function(e){return t6(e,Object.assign({},n.settings.characterReferences,{subset:t9}))})+"-->"},doctype:function(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,r,n){let a,i=n.schema,s="svg"!==i.space&&n.settings.omitOptionalTags,o="svg"===i.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===i.space&&"svg"===e.tagName&&(n.schema=tU.svg);let c=function(e,t){let r,n=[],a=-1;if(t){for(r in t)if(null!==t[r]&&void 0!==t[r]){let a=function(e,t,r){let n,a=(0,re.find)(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(a.overloadedBoolean&&(r===a.attribute||""===r)?r=!0:(a.boolean||a.overloadedBoolean)&&("string"!=typeof r||r===a.attribute||""===r)&&(r=!!r),null==r||!1===r||"number"==typeof r&&Number.isNaN(r))return"";let l=t6(a.attribute,Object.assign({},e.settings.characterReferences,{subset:rm.name[i][s]}));return!0===r||(r=Array.isArray(r)?(a.commaSeparated?t7.stringify:rt.stringify)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(n=t6(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:rm.unquoted[i][s]}))),n!==r&&(e.settings.quoteSmart&&(0,t4.ccount)(r,o)>(0,t4.ccount)(r,e.alternative)&&(o=e.alternative),n=o+t6(r,Object.assign({},e.settings.characterReferences,{subset:("'"===o?rm.single:rm.double)[i][s],attribute:!0}))+o),l+(n?"="+n:n))}(e,r,t[r]);a&&n.push(a)}}for(;++a<n.length;){let t=e.settings.tightAttributes?n[a].charAt(n[a].length-1):void 0;a!==n.length-1&&'"'!==t&&"'"!==t&&(n[a]+=" ")}return n.join("")}(n,e.properties),u=n.all("html"===i.space&&"template"===e.tagName?e.content:e);return n.schema=i,u&&(o=!1),!c&&s&&rh(e,t,r)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===i.space||n.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!n.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&rc(e,t,r)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,r,n){return n.settings.allowDangerousHtml?e.value:rg(e,t,r,n)},root:function(e,t,r,n){return n.all(e)},text:rg}}),rb={},r_={},rw=[];function rA(e,t,r){return ry(e,t,r,this)}function rk(e){let t=[],r=e&&e.children||rw,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function rC(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},n="string"==typeof e?e:e.name;for(let[e,a]of Object.entries(t?.colorReplacements||{}))"string"==typeof a?r[e]=a:e===n&&Object.assign(r,a);return r}function rS(e,t){return e&&t?.[e?.toLowerCase()]||e}async function rx(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function rv(e){return!e||["plaintext","txt","text","plain"].includes(e)}function rE(e){return"ansi"===e||rv(e)}function rN(e){return"none"===e}function rI(e,t){if(!t)return e;for(let r of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function r$(e,t=!1){if(0===e.length)return[["",0]];let r=e.split(/(\r?\n)/g),n=0,a=[];for(let e=0;e<r.length;e+=2){let i=t?r[e]+(r[e+1]||""):r[e];a.push([i,n]),n+=r[e].length,n+=r[e+1]?.length||0}return a}let rL="light-dark()",rP=["color","background-color"];function rT(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&eJ.Italic&&(t["font-style"]="italic"),e.fontStyle&eJ.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&eJ.Underline&&r.push("underline"),e.fontStyle&eJ.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function rM(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let rR=new WeakMap;function rO(e,t){rR.set(e,t)}function rF(e){return rR.get(e)}class rD{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new rD(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,tB])),e)}constructor(...e){if(2===e.length){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,n]=e;this.lang=r,this._stacks={[n]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let r,n;return t=this._stacks[e],r=[],n=new Set,!function e(t){if(n.has(t))return;n.add(t);let a=t?.nameScopesList?.scopeName;a&&r.push(a),t.parent&&e(t.parent)}(t),r}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let rG=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var r;let n,a=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new eD(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...i.indexToPos(e),offset:e}}{let t=i.lines[e.line];if(void 0===t)throw new eD(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new eD(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:i.posToIndex(e.line,r)}}},i={lines:n=r$(r=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===r.length)return{line:n.length-1,character:n[n.length-1].length};let t=e,a=0;for(let e of n){if(t<e.length)break;t-=e.length,a++}return{line:a,character:t}},posToIndex:function(e,t){let r=0;for(let t=0;t<e;t++)r+=n[t].length;return r+t}},s=(t.options.decorations||[]).map(e=>({...e,start:a(e.start),end:a(e.end)}));(function(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new eD(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){let t=e[n],a=r.start.offset<=t.start.offset&&t.start.offset<r.end.offset,i=r.start.offset<t.end.offset&&t.end.offset<=r.end.offset,s=t.start.offset<=r.start.offset&&r.start.offset<t.end.offset,o=t.start.offset<r.end.offset&&r.end.offset<=t.end.offset;if(a||i||s||o){if(a&&i||s&&o||s&&r.start.offset===r.end.offset||i&&t.start.offset===t.end.offset)continue;throw new eD(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(s),e.set(t.meta,{decorations:s,converter:i,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){let r;if(!this.options.decorations?.length)return;let n=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);return(r=Array.from(n instanceof Set?n:new Set(n)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let n=0,a=[];for(let r of t)r>n&&a.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&a.push({...e,content:e.content.slice(n),offset:e.offset+n}),a})):e},code(e){if(!this.options.decorations?.length)return;let r=t(this),n=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(n.length!==r.converter.lines.length)throw new eD(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(e,t,r,a){let s=n[e],o="",l=-1,c=-1;if(0===t&&(l=0),0===r&&(c=0),r===1/0&&(c=s.children.length),-1===l||-1===c)for(let e=0;e<s.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(s.children[e]),-1===l&&o.length===t&&(l=e+1),-1===c&&o.length===r&&(c=e+1);if(-1===l)throw new eD(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);if(-1===c)throw new eD(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);let u=s.children.slice(l,c);if(a.alwaysWrap||u.length!==s.children.length)if(a.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};i(e,a,"wrapper"),s.children.splice(l,u.length,e)}else i(u[0],a,"token");else i(s,a,"line")}function i(e,t,r){let n=t.properties||{},a=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...n,class:e.properties.class},t.properties?.class&&rI(e,t.properties.class),e=a(e,r)||e}let s=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:r}=e;if(t.line===r.line)a(t.line,t.character,r.character,e);else if(t.line<r.line){a(t.line,t.character,1/0,e);for(let a=t.line+1;a<r.line;a++)s.unshift(()=>{var t;n[t=a]=i(n[t],e,"line")});a(r.line,0,r.character,e)}}s.forEach(e=>e())}}}()];function rB(e){let t=function(e){let t=[],r=[],n=[];for(let a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":r.push(a);break;default:n.push(a)}return{pre:t,post:r,normal:n}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...rG]}var rj=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],rU={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function rz(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var rW={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let rq={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function rH(e,t,r={}){var n,a;let i,s,{theme:o=e.getLoadedThemes()[0]}=r,l=e.resolveLangAlias(r.lang||"text");if(rv(l)||rN(o))return r$(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:c,colorMap:u}=e.setTheme(o);if("ansi"===l){let e,n,a,i,s,o,l;return e=rC(c,r),n=r$(t),a=function(e=rW){let t;function r(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(n){switch(n.type){case"named":return e[n.name];case"rgb":return r(n.rgb);case"table":var a;return a=n.index,function(){if(t)return t;t=[];for(let r=0;r<rj.length;r++)t.push(e[rj[r]]);let n=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let a=0;a<6;a++)for(let i=0;i<6;i++)t.push(r([n[e],n[a],n[i]]));let a=8;for(let e=0;e<24;e++,a+=10)t.push(r([a,a,a]));return t}()[a]}}}}(Object.fromEntries(rj.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,c.colors?.[t]||rq[e]]}))),i=null,s=null,o=new Set,l={parse(e){let t=[],r=0;do{let n=function(e,t){let r=e.indexOf("\x1b",t);if(-1!==r&&"["===e[r+1]){let t=e.indexOf("m",r);if(-1!==t)return{sequence:e.substring(r+2,t).split(";"),startPosition:r,position:t+1}}return{position:e.length}}(e,r),a=n.sequence?e.substring(r,n.startPosition):e.substring(r);if(a.length>0&&t.push({value:a,foreground:i,background:s,decorations:new Set(o)}),n.sequence){let e=function(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let n=Number.parseInt(r);if(!Number.isNaN(n))if(0===n)t.push({type:"resetAll"});else if(n<=9)rU[n]&&t.push({type:"setDecoration",value:rU[n]});else if(n<=29){let e=rU[n-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:rj[n-30]}});else if(38===n){let r=rz(e);r&&t.push({type:"setForegroundColor",value:r})}else if(39===n)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:rj[n-40]}});else if(48===n){let r=rz(e);r&&t.push({type:"setBackgroundColor",value:r})}else 49===n?t.push({type:"resetBackgroundColor"}):53===n?t.push({type:"setDecoration",value:"overline"}):55===n?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:rj[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:rj[n-100+8]}})}return t}(n.sequence);for(let t of e)"resetAll"===t.type?(i=null,s=null,o.clear()):"resetForegroundColor"===t.type?i=null:"resetBackgroundColor"===t.type?s=null:"resetDecoration"===t.type&&o.delete(t.value);for(let t of e)"setForegroundColor"===t.type?i=t.value:"setBackgroundColor"===t.type?s=t.value:"setDecoration"===t.type&&o.add(t.value)}r=n.position}while(r<e.length)return t}},n.map(t=>l.parse(t[0]).map(r=>{let n,i;r.decorations.has("reverse")?(n=r.background?a.value(r.background):c.bg,i=r.foreground?a.value(r.foreground):c.fg):(n=r.foreground?a.value(r.foreground):c.fg,i=r.background?a.value(r.background):void 0),n=rS(n,e),i=rS(i,e),r.decorations.has("dim")&&(n=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],r=e[1],n=e[2],a=e[3],i=Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${r}${r}${n}${n}${i}`}else if(3===e.length){let t=e[0],r=e[1],n=e[2];return`#${t}${t}${r}${r}${n}${n}80`}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}(n));let s=eJ.None;return r.decorations.has("bold")&&(s|=eJ.Bold),r.decorations.has("italic")&&(s|=eJ.Italic),r.decorations.has("underline")&&(s|=eJ.Underline),r.decorations.has("strikethrough")&&(s|=eJ.Strikethrough),{content:r.value,offset:t[1],color:n,bgColor:i,fontStyle:s}}))}let d=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==d.name)throw new eD(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${d.name}"`);if(!r.grammarState.themes.includes(c.name))throw new eD(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${c.name}"`)}return s=new rD((i=rV(t,n=d,a=c,u,r)).stateStack,n.name,a.name),rO(i.tokens,s),i.tokens}function rV(e,t,r,n,a){let i=rC(r,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=a,l=r$(e),c=a.grammarState?function(e,t){if(!(e instanceof rD))throw new eD("Invalid grammar state");return e.getInternalStack(t)}(a.grammarState,r.name)??tB:null!=a.grammarContextCode?rV(a.grammarContextCode,t,r,n,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:tB,u=[],d=[];for(let e=0,p=l.length;e<p;e++){let p,h,[m,f]=l[e];if(""===m){u=[],d.push([]);continue}if(s>0&&m.length>=s){u=[],d.push([{content:m,offset:f,color:"",fontStyle:0}]);continue}a.includeExplanation&&(p=t.tokenizeLine(m,c,o).tokens,h=0);let g=t.tokenizeLine2(m,c,o),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],s=e+1<y?g.tokens[2*e+2]:m.length;if(t===s)continue;let o=g.tokens[2*e+1],l=rS(n[e2.getForeground(o)],i),c=e2.getFontStyle(o),d={content:m.substring(t,s),offset:f+t,color:l,fontStyle:c};if(a.includeExplanation){let e=[];if("scopeName"!==a.includeExplanation)for(let t of r.settings){let r;switch(typeof t.scope){case"string":r=t.scope.split(/,/).map(e=>e.trim());break;case"object":r=t.scope;break;default:continue}e.push({settings:t,selectors:r.map(e=>e.split(/ /))})}d.explanation=[];let n=0;for(;t+n<s;){let t=p[h],r=m.substring(t.startIndex,t.endIndex);n+=r.length,d.explanation.push({content:r,scopes:"scopeName"===a.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let r=[];for(let n=0,a=t.length;n<a;n++){let a=t[n];r[n]={scopeName:a,themeMatches:function(e,t,r){let n=[];for(let{selectors:a,settings:i}of e)for(let e of a)if(function(e,t,r){if(!rX(e[e.length-1],t))return!1;let n=e.length-2,a=r.length-1;for(;n>=0&&a>=0;)rX(e[n],r[a])&&(n-=1),a-=1;return -1===n}(e,t,r)){n.push(i);break}return n}(e,a,t.slice(0,n))}}return r}(e,t.scopes)}),h+=1}}u.push(d)}d.push(u),u=[],c=g.ruleStack}return{tokens:d,stateStack:c}}function rX(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function rQ(e,t,r){let n=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=n.map(n=>{let a=rH(e,t,{...r,theme:n.theme}),i=rF(a);return{tokens:a,state:i,theme:"string"==typeof n.theme?n.theme:n.theme.name}}),i=function(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){let a=e.map(e=>e[n]),i=t.map(()=>[]);t.forEach((e,t)=>e.push(i[t]));let s=a.map(()=>0),o=a.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<r;t++){let r=o[t];r.content.length===e?(i[t].push(r),s[t]+=1,o[t]=a[t][s[t]]):(i[t].push({...r,content:r.content.slice(0,e)}),o[t]={...r,content:r.content.slice(e),offset:r.offset+e})}}}return t}(...a.map(e=>e.tokens)),s=i[0].map((e,t)=>e.map((e,a)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in r&&r.includeExplanation&&(s.explanation=e.explanation),i.forEach((e,r)=>{let{content:i,explanation:o,offset:l,...c}=e[t][a];s.variants[n[r].color]=c}),s})),o=a[0].state?new rD(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return o&&rO(s,o),s}function rK(e,t,r){let n,a,i,s,o,l;if("themes"in r){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=r,p=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===p.length)throw new eD("`themes` option must not be empty");let h=rQ(e,t,r);if(l=rF(h),c&&rL!==c&&!p.find(e=>e.color===c))throw new eD(`\`themes\` option must contain the defaultColor key \`${c}\``);let m=p.map(t=>e.getTheme(t.theme)),f=p.map(e=>e.color);i=h.map(e=>e.map(e=>(function(e,t,r,n,a="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>rT(e.variants[t])),o=new Set(s.flatMap(e=>Object.keys(e))),l={},c=(e,n)=>{let a="color"===n?"":"background-color"===n?"-bg":`-${n}`;return r+t[e]+("color"===n?"":a)};return s.forEach((e,r)=>{for(let i of o){let o=e[i]||"inherit";if(0===r&&n&&rP.includes(i))if(n===rL&&s.length>1){let e=t.findIndex(e=>"light"===e),n=t.findIndex(e=>"dark"===e);if(-1===e||-1===n)throw new eD('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=s[e][i]||"inherit",d=s[n][i]||"inherit";l[i]=`light-dark(${u}, ${d})`,"css-vars"===a&&(l[c(r,i)]=o)}else l[i]=o;else"css-vars"===a&&(l[c(r,i)]=o)}}),i.htmlStyle=l,i})(e,f,u,c,d))),l&&rO(i,l);let g=p.map(e=>rC(e.theme,r));a=rJ(p,m,g,u,c,"fg",d),n=rJ(p,m,g,u,c,"bg",d),s=`shiki-themes ${m.map(e=>e.name).join(" ")}`,o=c?void 0:[a,n].join(";")}else if("theme"in r){let o=rC(r.theme,r);i=rH(e,t,r);let c=e.getTheme(r.theme);n=rS(c.bg,o),a=rS(c.fg,o),s=c.name,l=rF(i)}else throw new eD("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:a,bg:n,themeName:s,rootStyle:o,grammarState:l}}function rJ(e,t,r,n,a,i,s){return e.map((o,l)=>{let c=rS(t[l][i],r[l])||"inherit",u=`${n+o.color}${"bg"===i?"-bg":""}:${c}`;if(0===l&&a){if(a===rL&&e.length>1){let n=e.findIndex(e=>"light"===e.color),a=e.findIndex(e=>"dark"===e.color);if(-1===n||-1===a)throw new eD('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let s=rS(t[n][i],r[n])||"inherit",o=rS(t[a][i],r[a])||"inherit";return`light-dark(${s}, ${o});${u}`}return c}return"css-vars"===s?u:null}).filter(e=>!!e).join(";")}function rZ(e,t,r,n={meta:{},options:r,codeToHast:(t,r)=>rZ(e,t,r),codeToTokens:(t,r)=>rK(e,t,r)}){let a=t;for(let e of rB(r))a=e.preprocess?.call(n,a,r)||a;let{tokens:i,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:u}=rK(e,a,r),{mergeWhitespaces:d=!0,mergeSameStyleTokens:p=!1}=r;!0===d?i=i.map(e=>{let t,r=[],n="";return e.forEach((a,i)=>{let s=!(a.fontStyle&&(a.fontStyle&eJ.Underline||a.fontStyle&eJ.Strikethrough));s&&a.content.match(/^\s+$/)&&e[i+1]?(void 0===t&&(t=a.offset),n+=a.content):n?(s?r.push({...a,offset:t,content:n+a.content}):r.push({content:n,offset:t},a),t=void 0,n=""):r.push(a)}),r}):"never"===d&&(i=i.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,r,n,a]=t;if(!r&&!a)return e;let i=[{...e,offset:e.offset+r.length,content:n}];return r&&i.unshift({content:r,offset:e.offset}),a&&i.push({content:a,offset:e.offset+r.length+n.length}),i}))),p&&(i=i.map(e=>{let t=[];for(let r of e){if(0===t.length){t.push({...r});continue}let e=t[t.length-1],n=rM(e.htmlStyle||rT(e)),a=rM(r.htmlStyle||rT(r)),i=e.fontStyle&&(e.fontStyle&eJ.Underline||e.fontStyle&eJ.Strikethrough),s=r.fontStyle&&(r.fontStyle&eJ.Underline||r.fontStyle&eJ.Strikethrough);i||s||n!==a?t.push({...r}):e.content+=r.content}return t}));let h={...n,get source(){return a}};for(let e of rB(r))i=e.tokens?.call(h,i)||i;return function(e,t,r,n=rF(e)){let a=rB(t),i=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,r]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=r);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:i},p=[],h={...r,structure:o,addClassToHast:rI,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return d},get lines(){return p}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&i.push({type:"text",value:"\n"}));let r={type:"element",tagName:"span",properties:{class:"line"},children:[]},n=0;for(let i of e){let e={type:"element",tagName:"span",properties:{...i.htmlAttrs},children:[{type:"text",value:i.content}]},l=rM(i.htmlStyle||rT(i));for(let s of(l&&(e.properties.style=l),a))e=s?.span?.call(h,e,t+1,n,r,i)||e;"inline"===o?s.children.push(e):"classic"===o&&r.children.push(e),n+=i.content.length}if("classic"===o){for(let e of a)r=e?.line?.call(h,r,t+1)||r;p.push(r),i.push(r)}else"inline"===o&&p.push(r)}),"classic"===o){for(let e of a)d=e?.code?.call(h,d)||d;for(let e of(u.children.push(d),a))u=e?.pre?.call(h,u)||u;s.children.push(u)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let r of s.children)"element"===r.type&&"br"===r.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===r.type||"text"===r.type)&&t.children.push(r);e.push(t);let r={type:"element",tagName:"code",properties:{},children:e};for(let e of a)r=e?.code?.call(h,r)||r;s.children=[];for(let e=0;e<r.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=r.children[e];"element"===t.type&&s.children.push(...t.children)}}let m=s;for(let e of a)m=e?.root?.call(h,m)||m;return n&&rO(m,n),m}(i,{...r,fg:s,bg:o,themeName:l,rootStyle:!1!==r.rootStyle&&(r.rootStyle??c)},h,u)}let rY=function(e,t){let r=t||rb,n=r.quote||'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:rA,all:rk,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||tj.htmlVoidElements,characterReferences:r.characterReferences||r_,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:"svg"===r.space?tU.svg:tU.html,quote:n,alternative:'"'===n?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},r0="__shiki_resolved";function r1(e){if(e?.[r0])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(n=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n="light"===t.type?"#333333":"#bbbbbb"),r||(r="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0,i=new Map;function s(e){if(i.has(e))return i.get(e);a+=1;let r=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?s(e):(i.set(e,r),r)}for(let e of(t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),n=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!n)return e;let a={...e,settings:{...e.settings}};if(r){let r=s(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,a.settings.foreground=r}if(n){let r=s(e.settings.background);t.colorReplacements[r]=e.settings.background,a.settings.background=r}return a}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=s(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,r0,{enumerable:!1,writable:!1,value:!0}),t}async function r2(e){return Array.from(new Set((await Promise.all(e.filter(e=>!rE(e)).map(async e=>await rx(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function r8(e){return(await Promise.all(e.map(async e=>rN(e)?null:r1(await rx(e))))).filter(e=>!!e)}class r6 extends Error{constructor(e){super(e),this.name="ShikiError"}}function r5(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new r6(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}class r3 extends tG{constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=r1(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=eV.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=r5(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>{if(!t)return!1;let n=t.embeddedLanguages||t.embeddedLangs;return n?.some(e=>r.map(([e])=>e).includes(e))}).filter(e=>!r.includes(e));throw new r6(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class r9{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let e=1;e<=t.length;e++){let n=t.slice(0,e).join(".");r=[...r,...this._injections.get(n)||[]]}return r}}let r4=0;async function r7(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,n]=await Promise.all([r8(e.themes||[]),r2(e.langs||[]),e.engine]);return function(e){let t;r4+=1,!1!==e.warnings&&r4>=10&&r4%10==0&&console.warn(`[Shiki] ${r4} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!e.engine)throw new r6("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(r1),i=new r3(new r9(e.engine,n),a,n,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=i.getTheme(e);if(!t)throw new r6(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),i.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))i.loadTheme(t)}function c(){if(r)throw new r6("Shiki instance has been disposed")}function u(){r||(r=!0,i.dispose(),r4-=1)}return{setTheme:function(e){c();let r=s(e);return t!==e&&(i.setTheme(r),t=e),{theme:r,colorMap:i.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=i.getGrammar("string"==typeof e?e:e.name);if(!t)throw new r6(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),i.getLoadedThemes()},getLoadedLanguages:function(){return c(),i.getLoadedLanguages()},resolveLangAlias:function(t){return r5(t,e.langAlias)},loadLanguage:async function(...e){return o(await r2(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await r8(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:r,engine:n})}async function ne(e){let t=await r7(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return rF(e[1]);let[t,r,n={}]=e,{lang:a="text",theme:i=t.getLoadedThemes()[0]}=n;if(rv(a)||rN(i))throw new eD("Plain language does not have grammar state");if("ansi"===a)throw new eD("ANSI language does not have grammar state");let{theme:s,colorMap:o}=t.setTheme(i),l=t.getLanguage(a);return new rD(rV(r,l,s,o,n).stateStack,l.name,s.name)})(t,...e),codeToTokensBase:(e,r)=>rH(t,e,r),codeToTokensWithThemes:(e,r)=>rQ(t,e,r),codeToTokens:(e,r)=>rK(t,e,r),codeToHast:(e,r)=>rZ(t,e,r),codeToHtml:(e,r)=>(function(e,t,r){let n={meta:{},options:r,codeToHast:(t,r)=>rZ(e,t,r),codeToTokens:(t,r)=>rK(e,t,r)},a=rY(rZ(e,t,r,n));for(let e of rB(r))a=e.postprocess?.call(n,a,r)||a;return a})(t,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let nt=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(252913)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(695208)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(952844)},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e.A(776488)},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e.A(536002)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(872934)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(831036)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(423803)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(486330)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(381001)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(295735)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(902100)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(358172)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(775274)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(157811)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(514214)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(948353)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(640920)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(579755)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(805550)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(360233)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e.A(980721)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e.A(27266)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>e.A(231214)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e.A(881110)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e.A(337683)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e.A(28130)},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e.A(470579)},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>e.A(487165)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(677856)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(194363)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(448953)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(711812)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(409732)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(930788)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(411374)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(769460)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(774478)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(49008)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(377952)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(820463)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(630169)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(777035)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(161439)},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e.A(28589)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(467304)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(794497)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(353619)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(841717)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(703232)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(469411)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(753065)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(81356)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(291336)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(758732)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(505358)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(953493)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(767374)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(461630)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(135353)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(129817)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(666144)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(496740)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(896290)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(161379)}].map(e=>[e.id,e.import]));var nr=e.i(467034);class nn extends Error{constructor(e){super(e),this.name="ShikiError"}}function na(){return"u">typeof performance?performance.now():Date.now()}let ni=(e,t)=>e+(t-e%t)%t;async function ns(e){let t,r,n={};function a(e){r=e,n.HEAPU8=new Uint8Array(e),n.HEAPU32=new Uint32Array(e)}let i="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,r=1024){let n=t+r,a=t;for(;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&i)return i.decode(e.subarray(t,a));let s="";for(;t<a;){let r=e[t++];if(!(128&r)){s+=String.fromCharCode(r);continue}let n=63&e[t++];if((224&r)==192){s+=String.fromCharCode((31&r)<<6|n);continue}let a=63&e[t++];if((r=(240&r)==224?(15&r)<<12|n<<6|a:(7&r)<<18|n<<12|a<<6|63&e[t++])<65536)s+=String.fromCharCode(r);else{let e=r-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(n.HEAPU8,e,t):""}let o={emscripten_get_now:na,emscripten_memcpy_big:function(e,t,r){n.HEAPU8.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){let i=n.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let n=1;n<=4;n*=2){let s=i*(1+.2/n);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-r.byteLength+65535>>>16),a(t.buffer),1}catch{}}(Math.min(0x80000000,ni(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let r=await e({env:o,wasi_snapshot_preview1:o});a((t=r.memory).buffer),Object.assign(n,r),n.UTF8ToString=s}return await l(),n}var no=Object.defineProperty,nl=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?no(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};let nc=null;class nu{constructor(e){nl(this,"utf16Length"),nl(this,"utf8Length"),nl(this,"utf16Value"),nl(this,"utf8Value"),nl(this,"utf16OffsetToUtf8"),nl(this,"utf8OffsetToUtf16");const t=e.length,r=nu._utf8ByteLength(e),n=r!==t,a=n?new Uint32Array(t+1):null;n&&(a[t]=r);const i=n?new Uint32Array(r+1):null;n&&(i[r]=t);const s=new Uint8Array(r);let o=0;for(let r=0;r<t;r++){const l=e.charCodeAt(r);let c=l,u=!1;if(l>=55296&&l<=56319&&r+1<t){const t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}n&&(a[r]=o,u&&(a[r+1]=o),c<=127?i[o+0]=r:c<=2047?(i[o+0]=r,i[o+1]=r):c<=65535?(i[o+0]=r,i[o+1]=r,i[o+2]=r):(i[o+0]=r,i[o+1]=r,i[o+2]=r,i[o+3]=r)),c<=127?s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),u&&r++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){let a=e.charCodeAt(r),i=a,s=!1;if(a>=55296&&a<=56319&&r+1<n){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(i=(a-55296<<10)+65536|t-56320,s=!0)}i<=127?t+=1:i<=2047?t+=2:i<=65535?t+=3:t+=4,s&&r++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let nd=class e{constructor(t){if(nl(this,"id",++e.LAST_ID),nl(this,"_onigBinding"),nl(this,"content"),nl(this,"utf16Length"),nl(this,"utf8Length"),nl(this,"utf16OffsetToUtf8"),nl(this,"utf8OffsetToUtf16"),nl(this,"ptr"),!nc)throw new nn("Must invoke loadWasm first.");this._onigBinding=nc,this.content=t;const r=new nu(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=nc.omalloc(1e4)),e._sharedPtrInUse=!0,nc.HEAPU8.set(r.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=r.createString(nc)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};nl(nd,"LAST_ID",0),nl(nd,"_sharedPtr",0),nl(nd,"_sharedPtrInUse",!1);class np{constructor(e){if(nl(this,"_onigBinding"),nl(this,"_ptr"),!nc)throw new nn("Must invoke loadWasm first.");const t=[],r=[];for(let n=0,a=e.length;n<a;n++){const a=new nu(e[n]);t[n]=a.createString(nc),r[n]=a.utf8Length}const n=nc.omalloc(4*e.length);nc.HEAPU32.set(t,n/4);const a=nc.omalloc(4*e.length);nc.HEAPU32.set(r,a/4);const i=nc.createOnigScanner(n,a,e.length);for(let r=0,n=e.length;r<n;r++)nc.ofree(t[r]);nc.ofree(a),nc.ofree(n),0===i&&function(e){throw new nn(e.UTF8ToString(e.getLastOnigError()))}(nc),this._onigBinding=nc,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if("number"==typeof r&&(n=r),"string"==typeof e){e=new nd(e);let r=this._findNextMatchSync(e,t,!1,n);return e.dispose(),r}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){let a=this._onigBinding,i=a.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(0===i)return null;let s=a.HEAPU32,o=i/4,l=s[o++],c=s[o++],u=[];for(let t=0;t<c;t++){let r=e.convertUtf8OffsetToUtf16(s[o++]),n=e.convertUtf8OffsetToUtf16(s[o++]);u[t]={start:r,end:n,length:n-r}}return{index:l,captureIndices:u}}}function nh(e){return t=>WebAssembly.instantiate(e,t)}async function nm(e){return e&&await (n||(n=async function(){nc=await ns(async t=>{let r=e;if("function"==typeof(r=await r)&&(r=await r(t)),"function"==typeof r&&(r=await r(t)),"function"==typeof r.instantiator)r=await r.instantiator(t);else if("function"==typeof r.default)r=await r.default(t);else{var n,a,i,s;if(void 0!==r.data&&(r=r.data),n=r,"u">typeof Response&&n instanceof Response){r="function"==typeof WebAssembly.instantiateStreaming?await (i=r,e=>WebAssembly.instantiateStreaming(i,e))(t):await (s=r,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(a=r,"u">typeof ArrayBuffer&&(a instanceof ArrayBuffer||ArrayBuffer.isView(a))||void 0!==nr.Buffer&&nr.Buffer.isBuffer?.(a)||"u">typeof SharedArrayBuffer&&a instanceof SharedArrayBuffer||"u">typeof Uint32Array&&a instanceof Uint32Array||r instanceof WebAssembly.Module)?r=await nh(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await nh(r.default)(t))}return"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}())),{createScanner:e=>new np(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new nd(e)}}let nf=(o=(h={langs:eF,themes:nt,engine:()=>nm(e.A(514467))}).langs,l=h.themes,c=h.engine,async function(e){function t(t){if("string"==typeof t){if(rE(t=e.langAlias?.[t]||t))return[];let r=o[t];if(!r)throw new eD(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return r}return t}function r(e){if(rN(e))return"none";if("string"==typeof e){let t=l[e];if(!t)throw new eD(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let n=(e.themes??[]).map(e=>r(e)),a=(e.langs??[]).map(e=>t(e)),i=await ne({engine:e.engine??c(),...e,themes:n,langs:a});return{...i,loadLanguage:(...e)=>i.loadLanguage(...e.map(t)),loadTheme:(...e)=>i.loadTheme(...e.map(r)),getBundledLanguages:()=>o,getBundledThemes:()=>l}});function ng(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let ny=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),nb=String.raw;function n_(e,t){if(null==e)throw Error(t??"Value expected");return e}let nw=nb`\[\^?`,nA=`c.? | C(?:-.?)?|${nb`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${nb`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${nb`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${nb`o\{[^\}]*\}?`}|${nb`\d{1,3}`}`,nk=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,nC=RegExp(nb`
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,683387,e=>{"use strict";let t,r,n,a,i,s,o,l,c;var u,d,p,h,m=e.i(843476);let f="emphasisSequence",g="strongSequence";var y=e.i(420061);function b(e){return!!(e&&e>=55296&&e<=56319)}function _(e){return!!(e&&e>=56320&&e<=57343)}function w(e,t,r){if(t._bufferIndex<2)return e;let n=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return n&&n>=65536?n:e}var A=class{cachedValue=void 0;constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,r){let n=e>=65536?2:1;if(t._bufferIndex<1+n)return null;let a=t._bufferIndex-n-2,i=r({start:{...t,_bufferIndex:a>=0?a:0},end:{...t,_bufferIndex:t._bufferIndex-n}}),s=i.charCodeAt(i.length-1);if(Number.isNaN(s))return null;if(i.length<2||s<56320||57343<s)return s;let o=i.codePointAt(0);return o&&o>=65536?o:s}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function k(e,t,r){let n=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return n&&n>=65536?n:e}let C=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],S=[12288,12288,65281,65376,65504,65510],x=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],v=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],E=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101594,101631,101664,101760,101874,101888,102801,102816,102866,110576,110579,110581,110587,110589,110590,110592,110888,110898,110898,110928,110930,110933,110933,110948,110952,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127406,127406,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128729,128732,128735,128747,128748,128756,128764,128986,128986,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129734,129736,129736,129740,129757,129759,129771,129775,129786,131072,196605,196608,262141],N=(e,t)=>{let r=0,n=Math.floor(e.length/2)-1;for(;r<=n;){let a=Math.floor((r+n)/2),i=2*a;if(t<e[i])n=a-1;else{if(!(t>e[i+1]))return!0;r=a+1}}return!1},[I,$]=function(e){let t=e[0],r=e[1];for(let n=0;n<e.length;n+=2){let a=e[n],i=e[n+1];if(19968>=a&&19968<=i)return[a,i];i-a>r-t&&(t=a,r=i)}return[t,r]}(E),L=T(/\p{P}|\p{S}/u),P=T(/\s/);function T(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function M(e){return!!(1&e)}function R(e){return(e&t.cjkPunctuation)==2}function O(e){return!!(e&t.cjk)}function F(e){return!!(e&t.cjkOrIvs)}function D(e){return e===t.nonEmojiGeneralUseVS}function G(e){return!!(e&t.spaceOrPunctuation)}var B=e.i(997803);function j(e){if(null===e||(0,B.markdownLineEndingOrSpace)(e)||P(e))return 1;let r=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return t.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`);return function(e){return!(e<161)&&!(e>1114109)&&N(C,e)?"ambiguous":!(e<12288)&&!(e>65510)&&N(S,e)?"fullwidth":!(e<8361)&&!(e>65518)&&N(x,e)?"halfwidth":!(e<32)&&!(e>10630)&&N(v,e)?"narrow":e>=I&&e<=$||!(e<4352)&&!(e>262141)&&N(E,e)?"wide":"neutral"}(e)}(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}(e)){case null:return t.ivs;case!0:r|=t.cjk}}return L(e)&&(r|=2),r}function U(e,r,n){if(!D(e))return e;let a=r(),i=j(a);return!a||M(i)?e:65025===n&&a&&!(a<8216)&&(8216===a||8217===a||8220===a||8221===a)?t.cjkPunctuation:i&~t.ivs}(u=t||(t={})).spaceOrPunctuation=3,u.cjk=4096,u.cjkPunctuation=4098,u.ivs=8192,u.cjkOrIvs=12288,u.nonEmojiGeneralUseVS=16384,u.variationSelector=24576,u.ivsToCjkRightShift=1;var z=e.i(938402),W=e.i(810291);let q={name:"attention",resolveAll:function(e,t){let r,n,a,i,s,o,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[r][1].end},p={...e[u][1].start};H(d,-o),H(p,o),i={type:o>1?g:f,start:d,end:{...e[r][1].end}},s={type:o>1?g:f,start:{...e[u][1].start},end:p},a={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[u][1].start}},n={type:o>1?"strong":"emphasis",start:{...i.start},end:{...s.end}},e[r][1].end={...i.start},e[u][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=(0,z.push)(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=(0,z.push)(l,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",a,t]]),(0,y.ok)(t.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),l=(0,z.push)(l,(0,W.resolveAll)(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),l=(0,z.push)(l,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=(0,z.push)(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,(0,z.splice)(e,r-1,u-r+3,l),u=r+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let r,n=this.parser.constructs.attentionMarkers.null,{now:a,sliceSerialize:i,previous:s}=this,o=_(s)?w(s,a(),i):s,l=j(o),c=new A(o,a(),i),u=U(l,c.value.bind(c),o);return function(s){return(0,y.ok)(42===s||95===s,"expected asterisk or underscore"),r=s,e.enter("attentionSequence"),function s(l){if(l===r)return e.consume(l),s;let c=e.exit("attentionSequence"),d=j(b(l)?k(l,a(),i):l);(0,y.ok)(n,"expected `attentionMarkers` to be populated");let p=R(u),h=p||M(u),m=R(d),f=m||M(d),g=F(u),_=!f||m&&(h||g)||n.includes(l),w=!h||p&&(f||O(d))||n.includes(o);return c._open=!!(42===r?_:_&&(G(u)||!w)),c._close=!!(42===r?w:w&&(G(d)||!_)),t(l)}(s)}}};function H(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function V(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{42:q,95:q},insideSpan:{null:[q]}})}function X(e,t,r,n){return Z(e,t,r,n,K(e,t,r),1)}function Q(e,t,r,n){return Z(e,t,r,n,J(e,t,r),2)}function K(e,t,r){return r.options.emphasis||"*"}function J(e,t,r){return r.options.strong||"*"}function Z(e,t,r,n,a,i){let s,o,l=a.repeat(i),c=r.enter(1===i?"emphasis":"strong"),u=r.createTracker(n),d=u.move(l),p=u.move(r.containerPhrasing(e,{after:a,before:d,...u.current()})),h=function(e,t,r,n){var a,i,s;let o=ec(n),l=eo(n);if(null!==(a=o)&&56320<=a&&a<=57343||(i=o,s=l,D(j(i))&&(null===s||null===s))){let n=ei(e,t,r,-1);n&&(o=ec(n),l=eo(n))}return{current:o,previous:l}}(e,t,r,n.before),m=function(e,t,r,n){var a;let i=el(n);if(!(null!==(a=i)&&55296<=a&&a<=56319))return i;let s=ei(e,t,r,1);return s?el(s):i}(e,t,r,n.after),f=ee(h,el(p),a,"open");f.inside&&p&&(p=function(e){let[t=""]=[...e];return es(t.codePointAt(0)??null)+e.slice(t.length)}(p));let g=ee({current:ec(p),previous:eo(p)},m,a,"close");g.inside&&p&&(o=(s=[...p]).pop(),p=`${s.join("")}${es(o?.codePointAt(0)??null)}`);let y=u.move(l);c();let b=g.outside&&function(e,t){if(!e)return!1;let r=t.indexStack.at(-1);if("number"!=typeof r)return!1;let n=e.children[r+1];return n?.type==="text"&&(el(n.value)??0)>65535}(t,r);return r.attentionEncodeSurroundingInfo={after:g.outside&&!b,before:f.outside},r.cjkFriendlyEncodeAfterSupplementaryText=b,d+p+y}function Y(e,t,r,n){if(!r.cjkFriendlyEncodeAfterSupplementaryText)return r.safe(e.value,n);r.cjkFriendlyEncodeAfterSupplementaryText=!1;let[a=""]=[...e.value],i=e.value.slice(a.length);return`${es(a.codePointAt(0)??null)}${r.safe(i,{...n,before:";"})}`}function ee(e,t,r,n){let a=ea(e),i=j(t);if(!F(a)&&!F(i))return"open"===n?et(a,i,r):et(i,a,r);let s={inside:!0,outside:!0};for(let a of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},s]){let i="open"===n?a.outside?eu:e:a.inside?eu:e,s="open"===n?a.inside?ed:t:a.outside?ed:t;if("open"===n?function(e,t,r){let n=ea(t),{close:a,open:i}=er(n,j(r));return"_"===e?i&&(G(n)||!a):i}(r,i,s):function(e,t,r){let n=j(r),{close:a,open:i}=er(ea(t),n);return"_"===e?a&&(G(n)||!i):a}(r,i,s))return a}return s}function et(e,t,r){return en(e)?en(t)?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:M(e)?en(t)?{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function er(e,t){let r=R(e),n=r||M(e),a=R(t),i=a||M(t);return{open:!i||a&&(n||F(e)),close:!n||r&&(i||O(t))}}function en(e){return!M(e)&&!R(e)}function ea(e){let t=j(e.current);return null!==e.current&&D(t)?U(t,()=>e.previous,e.current):t}function ei(e,t,r,n){if(!t)return;let a=r.indexStack.at(-1),i=t.children,s="number"==typeof a?a:i.indexOf(e);if(!(s<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(i[s+n])||void 0}X.peek=K,Q.peek=J;function es(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function eo(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function el(e){return e.codePointAt(0)??null}function ec(e){return[...e].at(-1)?.codePointAt(0)??null}let eu={current:59,previous:null},ed=38;function ep(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({handlers:{emphasis:X,strong:Q,text:Y}})}function eh(e){let r,n,a=this.data();(a.micromarkExtensions||(a.micromarkExtensions=[])).push((r=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,a){let{now:i,sliceSerialize:s,previous:o}=this,l=_(o)?w(o,i(),s):o,c=j(l),u=new A(l,i(),s),d=U(c,u.value.bind(u),l),p=this.events,h=0;return function(o){return((0,y.ok)(126===o,"expected `~`"),126===l&&"characterEscape"!==p[p.length-1][1].type)?a(o):(e.enter("strikethroughSequenceTemporary"),function o(c){let u=j(l);if(126===c)return h>1?a(c):(e.consume(c),h++,o);if(h<2&&!r)return a(c);let p=e.exit("strikethroughSequenceTemporary"),m=j(b(c)?k(c,i(),s):c),f=R(d)||M(d),g=R(m)||M(m),y=O(d)||u===t.ivs;return p._open=!g||2===m&&(f||y),p._close=!f||2===u&&(g||O(m)),n(c)}(o))}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";let a={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},i={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},s=[["enter",a,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",i,t]],o=t.parser.constructs.insideSpan.null;o&&(0,z.splice)(s,s.length,0,(0,W.resolveAll)(o,e.slice(n+1,r),t)),(0,z.splice)(s,s.length,0,[["exit",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",a,t]]),(0,z.splice)(e,n-1,r-n+3,s),r=n+s.length-2;break}}for(r=-1;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}},null==r&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}))}let em=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ef(e,t,r,n){let a,i,s=r.enter("strikethrough"),o=r.createTracker(n),l=o.move("~~"),c=o.move(r.containerPhrasing(e,{after:"~",before:l,...o.current()})),u=function(e,t,r,n){var a,i,s;let o=ev(n),l=eS(n);if(null!==(a=o)&&56320<=a&&a<=57343||(i=o,s=l,D(j(i))&&(null===s||null===s))){let n=ek(e,t,r,-1);n&&(o=ev(n),l=eS(n))}return{current:o,previous:l}}(e,t,r,n.before),d=function(e,t,r,n){var a;let i=ex(n);if(!(null!==(a=i)&&55296<=a&&a<=56319))return i;let s=ek(e,t,r,1);return s?ex(s):i}(e,t,r,n.after),p=ey(u,ex(c),"open");p.inside&&c&&(c=function(e){let[t=""]=[...e];return eC(t.codePointAt(0)??null)+e.slice(t.length)}(c));let h=ey({current:ev(c),previous:eS(c)},d,"close");h.inside&&c&&(i=(a=[...c]).pop(),c=`${a.join("")}${eC(i?.codePointAt(0)??null)}`);let m=o.move("~~");s();let f=h.outside&&function(e,t){if(!e)return!1;let r=t.indexStack.at(-1);if("number"!=typeof r)return!1;let n=e.children[r+1];return n?.type==="text"&&(ex(n.value)??0)>65535}(t,r);return r.attentionEncodeSurroundingInfo={after:h.outside&&!f,before:p.outside},r.cjkFriendlyEncodeAfterSupplementaryText=f,l+c+m}function eg(e,t,r,n){if(!r.cjkFriendlyEncodeAfterSupplementaryText)return r.safe(e.value,n);r.cjkFriendlyEncodeAfterSupplementaryText=!1;let[a=""]=[...e.value],i=e.value.slice(a.length);return`${eC(a.codePointAt(0)??null)}${r.safe(i,{...n,before:";"})}`}function ey(e,t,r){let n=eA(e),a=j(t);if(!F(n)&&!F(a))return"open"===r?eb(n,a):eb(a,n);let i={inside:!0,outside:!0};for(let n of[{inside:!1,outside:!1},{inside:!0,outside:!1},{inside:!1,outside:!0},i]){let a="open"===r?n.outside?eE:e:n.inside?eE:e,i="open"===r?n.inside?eN:t:n.outside?eN:t;if("open"===r?function(e,t){let{open:r}=e_(eA(e),j(t));return r}(a,i):function(e,t){let r=j(t),{close:n}=e_(eA(e),r);return n}(a,i))return n}return i}function eb(e,t){return ew(e)?ew(t)?{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:M(e)?ew(t)?{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:M(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function e_(e,t){let r=R(e),n=r||M(e),a=R(t),i=a||M(t);return{open:!i||a&&(n||F(e)),close:!n||r&&(i||O(t))}}function ew(e){return!M(e)&&!R(e)}function eA(e){let t=j(e.current);return null!==e.current&&D(t)?U(t,()=>e.previous,e.current):t}function ek(e,t,r,n){if(!t)return;let a=r.indexStack.at(-1),i=t.children,s="number"==typeof a?a:i.indexOf(e);if(!(s<0))return function e(t){return t&&"object"==typeof t?"value"in t&&"string"==typeof t.value?t.value:"alt"in t&&"string"==typeof t.alt?t.alt:"children"in t&&Array.isArray(t.children)?t.children.map(e).join(""):"":""}(i[s+n])||void 0}ef.peek=function(){return"~"};function eC(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function eS(e){let t=[...e];return t.pop(),t.at(-1)?.codePointAt(0)??null}function ex(e){return e.codePointAt(0)??null}function ev(e){return[...e].at(-1)?.codePointAt(0)??null}let eE={current:59,previous:null},eN=38;function eI(){let e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push({unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:em}],handlers:{delete:ef,text:eg}})}var e$=e.i(784801),eL=new Set(["。",".",",","、","?","!",":",";","(",")","【","】","「","」","『","』","〈","〉","《","》"]),eP=/^(https?:\/\/|mailto:|www\.)/i,eT=(s=[...a=[function(){V.call(this),ep.call(this)}],...i=[()=>e=>{(0,e$.visit)(e,"link",(e,t,r)=>{if(!r||"number"!=typeof t||!(e=>{if(1!==e.children.length)return!1;let t=e.children[0];return"text"===t.type&&t.value===e.url})(e)||!eP.test(e.url))return;let n=(e=>{let t=0;for(let r of e){if(eL.has(r))return t;t+=r.length}return null})(e.url);if(null===n||0===n)return;let a=e.url.slice(0,n),i=e.url.slice(n),s={...e,url:a,children:[{type:"text",value:a}]};return r.children.splice(t,1,s,{type:"text",value:i}),t+1})},function(e){eh.call(this,e),eI.call(this)}]],{name:"cjk",type:"cjk",remarkPluginsBefore:a,remarkPluginsAfter:i,remarkPlugins:s});let eM=[{id:"abap",name:"ABAP",import:()=>e.A(516690)},{id:"actionscript-3",name:"ActionScript",import:()=>e.A(274435)},{id:"ada",name:"Ada",import:()=>e.A(796339)},{id:"angular-html",name:"Angular HTML",import:()=>e.A(196546)},{id:"angular-ts",name:"Angular TypeScript",import:()=>e.A(60308)},{id:"apache",name:"Apache Conf",import:()=>e.A(608734)},{id:"apex",name:"Apex",import:()=>e.A(902952)},{id:"apl",name:"APL",import:()=>e.A(814026)},{id:"applescript",name:"AppleScript",import:()=>e.A(210042)},{id:"ara",name:"Ara",import:()=>e.A(327701)},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>e.A(864940)},{id:"asm",name:"Assembly",import:()=>e.A(581996)},{id:"astro",name:"Astro",import:()=>e.A(185223)},{id:"awk",name:"AWK",import:()=>e.A(577689)},{id:"ballerina",name:"Ballerina",import:()=>e.A(887861)},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>e.A(769047)},{id:"beancount",name:"Beancount",import:()=>e.A(566005)},{id:"berry",name:"Berry",aliases:["be"],import:()=>e.A(64129)},{id:"bibtex",name:"BibTeX",import:()=>e.A(686785)},{id:"bicep",name:"Bicep",import:()=>e.A(234475)},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>e.A(273197)},{id:"blade",name:"Blade",import:()=>e.A(184291)},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>e.A(254810)},{id:"c",name:"C",import:()=>e.A(715630)},{id:"c3",name:"C3",import:()=>e.A(721406)},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>e.A(928418)},{id:"cairo",name:"Cairo",import:()=>e.A(496018)},{id:"clarity",name:"Clarity",import:()=>e.A(268805)},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>e.A(885670)},{id:"cmake",name:"CMake",import:()=>e.A(850277)},{id:"cobol",name:"COBOL",import:()=>e.A(608435)},{id:"codeowners",name:"CODEOWNERS",import:()=>e.A(677655)},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>e.A(393919)},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>e.A(499510)},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>e.A(314583)},{id:"coq",name:"Coq",import:()=>e.A(138305)},{id:"cpp",name:"C++",aliases:["c++"],import:()=>e.A(162895)},{id:"crystal",name:"Crystal",import:()=>e.A(715822)},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>e.A(156548)},{id:"css",name:"CSS",import:()=>e.A(68853)},{id:"csv",name:"CSV",import:()=>e.A(508072)},{id:"cue",name:"CUE",import:()=>e.A(379420)},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>e.A(901081)},{id:"d",name:"D",import:()=>e.A(732086)},{id:"dart",name:"Dart",import:()=>e.A(8814)},{id:"dax",name:"DAX",import:()=>e.A(706010)},{id:"desktop",name:"Desktop",import:()=>e.A(611671)},{id:"diff",name:"Diff",import:()=>e.A(499264)},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>e.A(964927)},{id:"dotenv",name:"dotEnv",import:()=>e.A(86855)},{id:"dream-maker",name:"Dream Maker",import:()=>e.A(955357)},{id:"edge",name:"Edge",import:()=>e.A(40814)},{id:"elixir",name:"Elixir",import:()=>e.A(534593)},{id:"elm",name:"Elm",import:()=>e.A(80402)},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>e.A(659962)},{id:"erb",name:"ERB",import:()=>e.A(655306)},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>e.A(379291)},{id:"fennel",name:"Fennel",import:()=>e.A(56334)},{id:"fish",name:"Fish",import:()=>e.A(955953)},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>e.A(372286)},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>e.A(709599)},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>e.A(417187)},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>e.A(106583)},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>e.A(600350)},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>e.A(718592)},{id:"gdshader",name:"GDShader",import:()=>e.A(964292)},{id:"genie",name:"Genie",import:()=>e.A(251227)},{id:"gherkin",name:"Gherkin",import:()=>e.A(781674)},{id:"git-commit",name:"Git Commit Message",import:()=>e.A(765886)},{id:"git-rebase",name:"Git Rebase Message",import:()=>e.A(643635)},{id:"gleam",name:"Gleam",import:()=>e.A(469752)},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>e.A(220210)},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>e.A(952204)},{id:"glsl",name:"GLSL",import:()=>e.A(615932)},{id:"gn",name:"GN",import:()=>e.A(846517)},{id:"gnuplot",name:"Gnuplot",import:()=>e.A(334810)},{id:"go",name:"Go",import:()=>e.A(518233)},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>e.A(527502)},{id:"groovy",name:"Groovy",import:()=>e.A(783131)},{id:"hack",name:"Hack",import:()=>e.A(866363)},{id:"haml",name:"Ruby Haml",import:()=>e.A(936482)},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>e.A(219104)},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>e.A(982274)},{id:"haxe",name:"Haxe",import:()=>e.A(843593)},{id:"hcl",name:"HashiCorp HCL",import:()=>e.A(392582)},{id:"hjson",name:"Hjson",import:()=>e.A(32395)},{id:"hlsl",name:"HLSL",import:()=>e.A(336975)},{id:"html",name:"HTML",import:()=>e.A(615475)},{id:"html-derivative",name:"HTML (Derivative)",import:()=>e.A(736812)},{id:"http",name:"HTTP",import:()=>e.A(722332)},{id:"hurl",name:"Hurl",import:()=>e.A(77996)},{id:"hxml",name:"HXML",import:()=>e.A(412671)},{id:"hy",name:"Hy",import:()=>e.A(98975)},{id:"imba",name:"Imba",import:()=>e.A(221794)},{id:"ini",name:"INI",aliases:["properties"],import:()=>e.A(712237)},{id:"java",name:"Java",import:()=>e.A(25004)},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>e.A(792799)},{id:"jinja",name:"Jinja",import:()=>e.A(300535)},{id:"jison",name:"Jison",import:()=>e.A(299868)},{id:"json",name:"JSON",import:()=>e.A(692658)},{id:"json5",name:"JSON5",import:()=>e.A(145390)},{id:"jsonc",name:"JSON with Comments",import:()=>e.A(459901)},{id:"jsonl",name:"JSON Lines",import:()=>e.A(844018)},{id:"jsonnet",name:"Jsonnet",import:()=>e.A(932597)},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>e.A(386493)},{id:"jsx",name:"JSX",import:()=>e.A(287672)},{id:"julia",name:"Julia",aliases:["jl"],import:()=>e.A(148045)},{id:"just",name:"Just",import:()=>e.A(704538)},{id:"kdl",name:"KDL",import:()=>e.A(522051)},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>e.A(278014)},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>e.A(511938)},{id:"latex",name:"LaTeX",import:()=>e.A(382697)},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>e.A(106774)},{id:"less",name:"Less",import:()=>e.A(657069)},{id:"liquid",name:"Liquid",import:()=>e.A(133954)},{id:"llvm",name:"LLVM IR",import:()=>e.A(969445)},{id:"log",name:"Log file",import:()=>e.A(532210)},{id:"logo",name:"Logo",import:()=>e.A(917136)},{id:"lua",name:"Lua",import:()=>e.A(147287)},{id:"luau",name:"Luau",import:()=>e.A(298173)},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>e.A(418877)},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>e.A(159142)},{id:"marko",name:"Marko",import:()=>e.A(644609)},{id:"matlab",name:"MATLAB",import:()=>e.A(323845)},{id:"mdc",name:"MDC",import:()=>e.A(367535)},{id:"mdx",name:"MDX",import:()=>e.A(659189)},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>e.A(457619)},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>e.A(401626)},{id:"mojo",name:"Mojo",import:()=>e.A(524176)},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>e.A(205353)},{id:"move",name:"Move",import:()=>e.A(847969)},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>e.A(755902)},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>e.A(557638)},{id:"nextflow-groovy",name:"nextflow-groovy",import:()=>e.A(272194)},{id:"nginx",name:"Nginx",import:()=>e.A(47723)},{id:"nim",name:"Nim",import:()=>e.A(446820)},{id:"nix",name:"Nix",import:()=>e.A(565220)},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>e.A(821908)},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>e.A(798543)},{id:"objective-cpp",name:"Objective-C++",import:()=>e.A(953213)},{id:"ocaml",name:"OCaml",import:()=>e.A(357016)},{id:"odin",name:"Odin",import:()=>e.A(144)},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>e.A(389188)},{id:"pascal",name:"Pascal",import:()=>e.A(494584)},{id:"perl",name:"Perl",import:()=>e.A(590087)},{id:"php",name:"PHP",import:()=>e.A(753525)},{id:"pkl",name:"Pkl",import:()=>e.A(506695)},{id:"plsql",name:"PL/SQL",import:()=>e.A(985641)},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>e.A(215520)},{id:"polar",name:"Polar",import:()=>e.A(579736)},{id:"postcss",name:"PostCSS",import:()=>e.A(344743)},{id:"powerquery",name:"PowerQuery",import:()=>e.A(69901)},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>e.A(849765)},{id:"prisma",name:"Prisma",import:()=>e.A(925840)},{id:"prolog",name:"Prolog",import:()=>e.A(678110)},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>e.A(710002)},{id:"pug",name:"Pug",aliases:["jade"],import:()=>e.A(753456)},{id:"puppet",name:"Puppet",import:()=>e.A(328116)},{id:"purescript",name:"PureScript",import:()=>e.A(762792)},{id:"python",name:"Python",aliases:["py"],import:()=>e.A(548436)},{id:"qml",name:"QML",import:()=>e.A(985774)},{id:"qmldir",name:"QML Directory",import:()=>e.A(822682)},{id:"qss",name:"Qt Style Sheets",import:()=>e.A(29273)},{id:"r",name:"R",import:()=>e.A(917431)},{id:"racket",name:"Racket",import:()=>e.A(127184)},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>e.A(402999)},{id:"razor",name:"ASP.NET Razor",import:()=>e.A(22510)},{id:"reg",name:"Windows Registry Script",import:()=>e.A(392914)},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>e.A(864980)},{id:"rel",name:"Rel",import:()=>e.A(362249)},{id:"riscv",name:"RISC-V",import:()=>e.A(919686)},{id:"ron",name:"RON",import:()=>e.A(123169)},{id:"rosmsg",name:"ROS Interface",import:()=>e.A(866973)},{id:"rst",name:"reStructuredText",import:()=>e.A(580357)},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>e.A(660137)},{id:"rust",name:"Rust",aliases:["rs"],import:()=>e.A(225837)},{id:"sas",name:"SAS",import:()=>e.A(559154)},{id:"sass",name:"Sass",import:()=>e.A(428160)},{id:"scala",name:"Scala",import:()=>e.A(679226)},{id:"scheme",name:"Scheme",import:()=>e.A(95554)},{id:"scss",name:"SCSS",import:()=>e.A(256229)},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>e.A(124961)},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>e.A(287646)},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>e.A(77876)},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>e.A(702789)},{id:"smalltalk",name:"Smalltalk",import:()=>e.A(105404)},{id:"solidity",name:"Solidity",import:()=>e.A(664050)},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>e.A(423766)},{id:"sparql",name:"SPARQL",import:()=>e.A(471095)},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>e.A(713125)},{id:"sql",name:"SQL",import:()=>e.A(347760)},{id:"ssh-config",name:"SSH Config",import:()=>e.A(525380)},{id:"stata",name:"Stata",import:()=>e.A(927772)},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>e.A(131592)},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>e.A(942509)},{id:"svelte",name:"Svelte",import:()=>e.A(209551)},{id:"swift",name:"Swift",import:()=>e.A(174099)},{id:"system-verilog",name:"SystemVerilog",import:()=>e.A(401250)},{id:"systemd",name:"Systemd Units",import:()=>e.A(944475)},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>e.A(600538)},{id:"tasl",name:"Tasl",import:()=>e.A(336651)},{id:"tcl",name:"Tcl",import:()=>e.A(709948)},{id:"templ",name:"Templ",import:()=>e.A(340336)},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>e.A(508436)},{id:"tex",name:"TeX",import:()=>e.A(155636)},{id:"toml",name:"TOML",import:()=>e.A(351979)},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>e.A(65678)},{id:"tsv",name:"TSV",import:()=>e.A(841727)},{id:"tsx",name:"TSX",import:()=>e.A(557754)},{id:"turtle",name:"Turtle",import:()=>e.A(670454)},{id:"twig",name:"Twig",import:()=>e.A(670515)},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>e.A(48460)},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>e.A(744538)},{id:"typst",name:"Typst",aliases:["typ"],import:()=>e.A(963321)},{id:"v",name:"V",import:()=>e.A(43837)},{id:"vala",name:"Vala",import:()=>e.A(830536)},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>e.A(785051)},{id:"verilog",name:"Verilog",import:()=>e.A(586017)},{id:"vhdl",name:"VHDL",import:()=>e.A(495694)},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>e.A(404547)},{id:"vue",name:"Vue",import:()=>e.A(934329)},{id:"vue-html",name:"Vue HTML",import:()=>e.A(160550)},{id:"vue-vine",name:"Vue Vine",import:()=>e.A(109)},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>e.A(834235)},{id:"wasm",name:"WebAssembly",import:()=>e.A(879931)},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>e.A(738463)},{id:"wgsl",name:"WGSL",import:()=>e.A(464547)},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>e.A(74196)},{id:"wit",name:"WebAssembly Interface Types",import:()=>e.A(926245)},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>e.A(998654)},{id:"xml",name:"XML",import:()=>e.A(160115)},{id:"xsl",name:"XSL",import:()=>e.A(656841)},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>e.A(291412)},{id:"zenscript",name:"ZenScript",import:()=>e.A(441270)},{id:"zig",name:"Zig",import:()=>e.A(332344)}],eR=Object.fromEntries(eM.map(e=>[e.id,e.import])),eO=Object.fromEntries(eM.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),eF={...eR,...eO};class eD extends Error{constructor(e){super(e),this.name="ShikiError"}}var eG=e.i(247167);function eB(e,...t){return t.forEach(t=>{for(let r in t)e[r]=t[r]}),e}var ej=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,eU=class{static hasCaptures(e){return null!==e&&(ej.lastIndex=0,ej.test(e))}static replaceCaptures(e,t,r){return e.replace(ej,(e,n,a,i)=>{let s=r[parseInt(n||a,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(i){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function ez(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let n=0;n<r;n++){var a,i;let r=(a=e[n],a<(i=t[n])?-1:+(a>i));if(0!==r)return r}return 0}return r-n}function eW(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function eq(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var eH=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},eV=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let e=0,a=t.length;e<a;e++){let a,i=t[e];if(!i.settings)continue;if("string"==typeof i.scope){let e=i.scope;a=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else a=Array.isArray(i.scope)?i.scope:[""];let s=-1;if("string"==typeof i.settings.fontStyle){s=0;let e=i.settings.fontStyle.split(" ");for(let t=0,r=e.length;t<r;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof i.settings.foreground&&eW(i.settings.foreground)&&(o=i.settings.foreground);let l=null;"string"==typeof i.settings.background&&eW(i.settings.background)&&(l=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(" "),c=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1)).reverse(),r[n++]=new eK(c,u,e,s,o,l)}}return r}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var r,n;let a=(r=e.scope,r<(n=t.scope)?-1:+(r>n));return 0!==a||0!==(a=ez(e.parentScopes,t.parentScopes))?a:e.index-t.index});let r=0,n="#000000",a="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(r=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(a=t.background)}let i=new eZ(t),s=new eQ(r,i.getId(n),i.getId(a)),o=new e1(new e0(0,null,-1,0,0),[]);for(let t=0,r=e.length;t<r;t++){let r=e[t];o.insert(0,r.scope,r.parentScopes,r.fontStyle,i.getId(r.foreground),i.getId(r.background))}return new eV(i,s,o)}(e,t)}_cachedMatchRoot=new eH(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,r=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let a=0;a<t.length;a++){var r,n;let i=t[a],s=!1;if(">"===i){if(a===t.length-1)return!1;i=t[++a],s=!0}for(;e&&(r=e.scopeName,!((n=i)===r||r.startsWith(n)&&"."===r[n.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return r?new eQ(r.fontStyle,r.foreground,r.background):null}},eX=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,r){for(let n of r)t=new e(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new e(r,t[n]);return r}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}},eQ=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}},eK=class{constructor(e,t,r,n,a,i){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=a,this.background=i}},eJ=((d=eJ||{})[d.NotSet=-1]="NotSet",d[d.None=0]="None",d[d.Italic=1]="Italic",d[d.Bold=2]="Bold",d[d.Underline=4]="Underline",d[d.Strikethrough=8]="Strikethrough",d),eZ=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},eY=Object.freeze([]),e0=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,r,n,a){this.scopeDepth=e,this.parentScopes=t||eY,this.fontStyle=r,this.foreground=n,this.background=a}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==r&&(this.foreground=r),0!==n&&(this.background=n)}},e1=class e{constructor(e,t=[],r={}){this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;">"===e.parentScopes[r]&&r++,">"===t.parentScopes[n]&&n++,!(r>=e.parentScopes.length)&&!(n>=t.parentScopes.length);){let a=t.parentScopes[n].length-e.parentScopes[r].length;if(0!==a)return a;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,r,n=t.indexOf(".");if(-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+1)),this._children.hasOwnProperty(e))return this._children[e].match(r)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(e._cmpBySpecificity),r}insert(t,r,n,a,i,s){let o,l,c;if(""===r)return void this._doInsertHere(t,n,a,i,s);let u=r.indexOf(".");-1===u?(o=r,l=""):(o=r.substring(0,u),l=r.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),e0.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,n,a,i,s)}_doInsertHere(e,t,r,n,a){if(null===t)return void this._mainRule.acceptOverwrite(e,r,n,a);for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let s=this._rulesWithParentScopes[i];if(0===ez(s.parentScopes,t))return void s.acceptOverwrite(e,r,n,a)}-1===r&&(r=this._mainRule.fontStyle),0===n&&(n=this._mainRule.foreground),0===a&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new e0(e,t,r,n,a))}},e2=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(t){let r=e.getLanguageId(t),n=e.getTokenType(t),a=e.getFontStyle(t);console.log({languageId:r,tokenType:n,fontStyle:a,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,r,n,a,i,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),p=e.getForeground(t),h=e.getBackground(t);return 0!==r&&(l=r),8!==n&&(c=n),null!==a&&(u=+!!a),-1!==i&&(d=i),0!==s&&(p=s),0!==o&&(h=o),(l|c<<8|u<<10|d<<11|p<<15|h<<24)>>>0}};function e8(e,t){var r;let n,a,i=[],s=(r=e,a=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(r),{next:()=>{if(!a)return null;let e=a[0];return a=n.exec(r),e}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=c();if(i.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return i;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o)t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(e6(o)){let e=[];do e.push(o),o=s.next();while(e6(o))return r=>t(e,r)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function e6(e){return!!e&&!!e.match(/[\w\.:]+/)}var e5=((p=e5||{})[p.None=0]="None",p[p.NotBeginString=1]="NotBeginString",p[p.NotEndString=2]="NotEndString",p[p.NotBeginPosition=4]="NotBeginPosition",p[p.DebugCall=8]="DebugCall",p);function e3(e){"function"==typeof e.dispose&&e.dispose()}var e9=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},e4=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},e7=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},te=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new e9(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new e7;for(let r of e)!function(e,t,r,n){let a=r.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let i=r.lookup(t);e instanceof e9?tr({baseGrammar:i,selfGrammar:a},n):tt(e.ruleName,{baseGrammar:i,selfGrammar:a,repository:a.repository},n);let s=r.injections(e.scopeName);if(s)for(let e of s)n.add(new e9(e))}(r,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof e9){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function tt(e,t,r){t.repository&&t.repository[e]&&tn([t.repository[e]],t,r)}function tr(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&tn(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&tn(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function tn(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let e=n.repository?eB({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&tn(n.patterns,{...t,repository:e},r);let a=n.include;if(!a)continue;let i=tc(a);switch(i.kind){case 0:tr({...t,selfGrammar:t.baseGrammar},r);break;case 1:tr(t,r);break;case 2:tt(i.ruleName,{...t,repository:e},r);break;case 3:case 4:let s=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let n={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===i.kind?tt(i.ruleName,n,r):tr(n,r)}else 4===i.kind?r.add(new e4(i.scopeName,i.ruleName)):r.add(new e9(i.scopeName))}}}var ta=class{kind=0},ti=class{kind=1},ts=class{constructor(e){this.ruleName=e}kind=2},to=class{constructor(e){this.scopeName=e}kind=3},tl=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function tc(e){if("$base"===e)return new ta;if("$self"===e)return new ti;let t=e.indexOf("#");return -1===t?new to(e):0===t?new ts(e.substring(1)):new tl(e.substring(0,t),e.substring(t+1))}var tu=/\\(\d+)/,td=/\\(\d+)/g;Symbol("RuleId");var tp=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=eU.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=eU.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let r=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===r?t:~r==t.length-1?e(t.substring(0,t.length-1)):t.substr(~r+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?eU.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?eU.replaceCaptures(this._contentName,e,t):this._contentName}},th=class extends tp{retokenizeCapturedWithRuleId;constructor(e,t,r,n,a){super(e,t,r,n),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,r,n){throw Error("Not supported!")}},tm=class extends tp{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,null),this._match=new t_(n,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tw,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tf=class extends tp{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,n),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new tw,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},tg=class extends tp{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a,i,s,o,l,c){super(e,t,r,n),this._begin=new t_(a,this.id),this.beginCaptures=i,this._end=new t_(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new tw,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},ty=class extends tp{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,a,i,s,o,l){super(e,t,r,n),this._begin=new t_(a,this.id),this.beginCaptures=i,this.whileCaptures=o,this._while=new t_(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new tw,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new tw,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},tb=class e{static createCaptureRule(e,t,r,n,a){return e.registerRule(e=>new th(t,e,r,n,a))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(a=>{if(t.id=a,t.match)return new tm(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,r,n));if(void 0===t.begin){t.repository&&(n=eB({},n,t.repository));let a=t.patterns;return void 0===a&&t.include&&(a=[{include:t.include}]),new tf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(a,r,n))}return t.while?new ty(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,e._compileCaptures(t.whileCaptures||t.captures,r,n),e._compilePatterns(t.patterns,r,n)):new tg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,e._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,e._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let a=[];if(t){let i=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>i&&(i=t)}for(let e=0;e<=i;e++)a[e]=null;for(let i in t){if("$vscodeTextmateLocation"===i)continue;let s=parseInt(i,10),o=0;t[i].patterns&&(o=e.getCompiledRuleId(t[i],r,n)),a[s]=e.createCaptureRule(r,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,o)}}return a}static _compilePatterns(t,r,n){let a=[];if(t)for(let i=0,s=t.length;i<s;i++){let s=t[i],o=-1;if(s.include){let t=tc(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(n[s.include],r,n);break;case 2:let a=n[t.ruleName];a&&(o=e.getCompiledRuleId(a,r,n));break;case 3:case 4:let i=t.scopeName,l=4===t.kind?t.ruleName:null,c=r.getExternalGrammar(i,n);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,r,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,r,c.repository)}}else o=e.getCompiledRuleId(s,r,n);if(-1!==o){let e=r.getRule(o),t=!1;if((e instanceof tf||e instanceof tg||e instanceof ty)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;a.push(o)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},t_=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){const t=e.length;let r=0,n=[],a=!1;for(let i=0;i<t;i++)if("\\"===e.charAt(i)&&i+1<t){const t=e.charAt(i+1);"z"===t?(n.push(e.substring(r,i)),n.push("$(?!\\n)(?<!\\n)"),r=i+2):("A"===t||"G"===t)&&(a=!0),i++}this.hasAnchor=a,0===r?this.source=e:(n.push(e.substring(r,t)),this.source=n.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=tu.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let r=t.map(t=>e.substring(t.start,t.end));return td.lastIndex=0,this.source.replace(td,(e,t)=>eq(r[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,r,n;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let a=[],i=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)r=this.source.charAt(e),a[e]=r,i[e]=r,s[e]=r,o[e]=r,"\\"===r&&e+1<t&&("A"===(n=this.source.charAt(e+1))?(a[e+1]="￿",i[e+1]="￿",s[e+1]="A",o[e+1]="A"):"G"===n?(a[e+1]="￿",i[e+1]="G",s[e+1]="￿",o[e+1]="G"):(a[e+1]=n,i[e+1]=n,s[e+1]=n,o[e+1]=n),e++);return{A0_G0:a.join(""),A0_G1:i.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},tw=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new tA(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,r){if(!this._hasAnchors)return this.compile(e);if(t)if(r)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0;return r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0)}_resolveAnchors(e,t,r){return new tA(e,this._items.map(e=>e.resolveAnchors(t,r)),this._items.map(e=>e.ruleId))}},tA=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join("\n")}findNextMatchSync(e,t,r){let n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},tk=class{constructor(e,t){this.languageId=e,this.tokenType=t}},tC=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new tk(e,8),this._embeddedLanguagesMatcher=new tS(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new tk(0,0);_getBasicScopeAttributes=new eH(e=>new tk(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let r=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},tS=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([e,t])=>eq(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};void 0!==eG.default&&eG.default.env.VSCODE_TEXTMATE_DEBUG;var tx=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function tv(e,t,r,n,a,i,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,r,n,a,i){let s=a.beginRuleCapturedEOL?0:-1,o=[];for(let t=a;t;t=t.pop()){let r=t.getRule(e);r instanceof ty&&o.push({rule:r,stack:t})}for(let h=o.pop();h;h=o.pop()){var l,c,u,d,p;let{ruleScanner:o,findOptions:m}=(l=h.rule,c=e,u=h.stack.endRule,d=r,p=n===s,{ruleScanner:l.compileWhileAG(c,u,d,p),findOptions:0}),f=o.findNextMatchSync(t,n,m);if(f){if(-2!==f.ruleId){a=h.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(i.produce(h.stack,f.captureIndices[0].start),tN(e,t,r,h.stack,i,h.rule.whileCaptures,f.captureIndices),i.produce(h.stack,f.captureIndices[0].end),s=f.captureIndices[0].end,f.captureIndices[0].end>n&&(n=f.captureIndices[0].end,r=!1))}else{a=h.stack.pop();break}}return{stack:a,linePos:n,anchorPosition:s,isFirstLine:r}}(e,t,r,n,a,i);a=s.stack,n=s.linePos,r=s.isFirstLine,u=s.anchorPosition}let d=Date.now();for(;!c;){if(0!==o&&Date.now()-d>o)return new tx(a,!0);!function(){let s=function(e,t,r,n,a,i){let s=function(e,t,r,n,a,i){let{ruleScanner:s,findOptions:o}=tE(a.getRule(e),e,a.endRule,r,n===i),l=s.findNextMatchSync(t,n,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,r,n,a,i),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,r,n,a,i,s){let o,l=Number.MAX_VALUE,c=null,u=0,d=i.contentNameScopesList.getScopeNames();for(let i=0,p=e.length;i<p;i++){let p=e[i];if(!p.matcher(d))continue;let{ruleScanner:h,findOptions:m}=tE(t.getRule(p.ruleId),t,null,n,a===s),f=h.findNextMatchSync(r,a,m);if(!f)continue;let g=f.captureIndices[0].start;if(!(g>=l)&&(l=g,c=f.captureIndices,o=f.ruleId,u=p.priority,l===a))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:o}:null}(o,e,t,r,n,a,i);if(!l)return s;if(!s)return l;let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,r,n,a,u);if(!s){i.produce(a,l),c=!0;return}let o=s.captureIndices,d=s.matchedRuleId,p=!!o&&o.length>0&&o[0].end>n;if(-1===d){let s=a.getRule(e);i.produce(a,o[0].start),a=a.withContentNameScopesList(a.nameScopesList),tN(e,t,r,a,i,s.endCaptures,o),i.produce(a,o[0].end);let d=a;if(a=a.parent,u=d.getAnchorPos(),!p&&d.getEnterPos()===n){a=d,i.produce(a,l),c=!0;return}}else{let s=e.getRule(d);i.produce(a,o[0].start);let h=a,m=s.getName(t.content,o),f=a.contentNameScopesList.pushAttributed(m,e);if(a=a.push(d,n,u,o[0].end===l,null,f,f),s instanceof tg){tN(e,t,r,a,i,s.beginCaptures,o),i.produce(a,o[0].end),u=o[0].end;let n=s.getContentName(t.content,o),d=f.pushAttributed(n,e);if(a=a.withContentNameScopesList(d),s.endHasBackReferences&&(a=a.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!p&&h.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),c=!0;return}}else if(s instanceof ty){tN(e,t,r,a,i,s.beginCaptures,o),i.produce(a,o[0].end),u=o[0].end;let n=s.getContentName(t.content,o),d=f.pushAttributed(n,e);if(a=a.withContentNameScopesList(d),s.whileHasBackReferences&&(a=a.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!p&&h.hasSameRuleAs(a)){a=a.pop(),i.produce(a,l),c=!0;return}}else if(tN(e,t,r,a,i,s.captures,o),i.produce(a,o[0].end),a=a.pop(),!p){a=a.safePop(),i.produce(a,l),c=!0;return}}o[0].end>n&&(n=o[0].end,r=!1)}()}return new tx(a,!1)}function tE(e,t,r,n,a){return{ruleScanner:e.compileAG(t,r,n,a),findOptions:0}}function tN(e,t,r,n,a,i,s){if(0===i.length)return;let o=t.content,l=Math.min(i.length,s.length),c=[],u=s[0].end;for(let t=0;t<l;t++){let l=i[t];if(null===l)continue;let d=s[t];if(0===d.length)continue;if(d.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?a.produceFromScopes(c[c.length-1].scopes,d.start):a.produce(n,d.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),i=n.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=i.pushAttributed(c,e),p=n.push(l.retokenizeCapturedWithRuleId,d.start,-1,!1,null,i,u),h=e.createOnigString(o.substring(0,d.end));tv(e,h,r&&0===d.start,d.start,p,a,!1,0),e3(h);continue}let p=l.getName(o,s);if(null!==p){let t=(c.length>0?c[c.length-1].scopes:n.contentNameScopesList).pushAttributed(p,e);c.push(new tI(t,d.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var tI=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function t$(e,t,r,n,a){let i=e8(t,tL),s=tb.getCompiledRuleId(r,n,a.repository);for(let r of i)e.push({debugSelector:t,matcher:r.matcher,ruleId:s,grammar:a,priority:r.priority})}function tL(e,t){if(t.length<e.length)return!1;let r=0;return e.every(e=>{for(let n=r;n<t.length;n++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&"."===e[r]}(t[n],e))return r=n+1,!0;return!1})}var tP=class{constructor(e,t,r,n,a,i,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=o,this._basicScopeAttributesProvider=new tC(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=tT(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const e of Object.keys(a))for(const t of e8(e,tL))this._tokenTypeMatchers.push({matcher:t.matcher,type:a[e]})}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,r=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(r){let n=r.injections;if(n)for(let t in n)t$(e,t,n[t],this,r);let a=this._grammarRepository.injections(t);a&&a.forEach(t=>{let r=this.getExternalGrammar(t);if(r){let t=r.injectionSelector;t&&t$(e,t,r,this,r)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=tT(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){let a;if(-1===this._rootId&&(this._rootId=tb.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==tR.NULL)a=!1,t.reset();else{let e;a=!0;let r=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),i=e2.set(0,r.languageId,r.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?tM.createRootAndLookUpScopeName(s,i,this):tM.createRoot("unknown",i),t=new tR(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let i=this.createOnigString(e),s=i.content.length,o=new tF(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=tv(this,i,a,0,t,o,!0,n);return e3(i),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function tT(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let r=[];for(let n=0,a=t.length;n<a;n++)r[n]=e(t[n]);return r}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let r={};for(let n in t)r[n]=e(t[n]);return r}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var tM=class e{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(t,r){let n=t,a=t?.scopePath??null;for(let t of r)n=new e(n,a=eX.push(a,t.scopeNames),t.encodedTokenAttributes);return n}static createRoot(t,r){return new e(null,new eX(null,t),r)}static createRootAndLookUpScopeName(t,r,n){let a=n.getMetadataForScope(t),i=new eX(null,t),s=n.themeProvider.themeMatch(i),o=e.mergeAttributes(r,a,s);return new e(null,i,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,r){let n=-1,a=0,i=0;return null!==r&&(n=r.fontStyle,a=r.foregroundId,i=r.backgroundId),e2.set(e,t.languageId,t.tokenType,null,n,a,i)}pushAttributed(t,r){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,r);let n=t.split(/ /g),a=this;for(let t of n)a=e._pushAttributed(a,t,r);return a}static _pushAttributed(t,r,n){let a=n.getMetadataForScope(r),i=t.scopePath.push(r),s=n.themeProvider.themeMatch(i),o=e.mergeAttributes(t.tokenAttributes,a,s);return new e(t,i,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?t.reverse():void 0}},tR=class e{constructor(e,t,r,n,a,i,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=a,this.endRule=i,this.nameScopesList=s,this.contentNameScopesList=o,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&tM.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,a,i,s,o){return new e(this,t,r,n,a,i,s,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){let n=tM.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new e(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,tM.fromExtension(n,r.contentNameScopesList))}},tO=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):e8(e,tL).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>e8(e,tL).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},tF=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(r=e2.set(r,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(t))}if(n&&(r=e2.set(r,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)r[e]=this._binaryTokens[e];return r}},tD=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,a){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,new tP(e,i,t,r,n,a,this,this._onigLib))}return this._grammars.get(e)}},tG=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new tD(eV.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(eV.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new tO(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,a){let i=new te(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(e=>this._loadSingleGrammar(e.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,n,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let r="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,a)}},tB=tR.NULL,tj=e.i(241631),tU=e.i(157871),tz=e.i(369587);let tW=/["&'<>`]/g,tq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tH=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tV=/[|\\{}()[\]^$+*?.]/g,tX=new WeakMap,tQ=/[\dA-Fa-f]/,tK=/\d/,tJ=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tZ={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},tY=["cent","copy","divide","gt","lt","not","para","times"],t0={}.hasOwnProperty,t1={};for(r in tZ)t0.call(tZ,r)&&(t1[tZ[r]]=r);let t2=/[^\dA-Za-z]/;function t8(e,t,r){var n,a;let i,s,o=(n=r.omitOptionalSemicolons,i="&#x"+e.toString(16).toUpperCase(),n&&t&&!tQ.test(String.fromCharCode(t))?i:i+";");if((r.useNamedReferences||r.useShortestReferences)&&(s=function(e,t,r,n){let a=String.fromCharCode(e);if(t0.call(t1,a)){let e=t1[a],i="&"+e;return r&&tJ.includes(e)&&!tY.includes(e)&&(!n||t&&61!==t&&t2.test(String.fromCharCode(t)))?i:i+";"}return""}(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!s)&&r.useShortestReferences){let n,i=(a=r.omitOptionalSemicolons,n="&#"+String(e),a&&t&&!tK.test(String.fromCharCode(t))?n:n+";");i.length<o.length&&(o=i)}return s&&(!r.useShortestReferences||s.length<o.length)?s:o}function t6(e,t){let r;var n,a=e,i=Object.assign({format:t8},t);if(a=a.replace(i.subset?(n=i.subset,(r=tX.get(n))||(r=function(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(tV,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),tX.set(n,r)),r):tW,s),i.subset||i.escapeOnly)return a;return a.replace(tq,function(e,t,r){return i.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(t+2),i)}).replace(tH,s);function s(e,t,r){return i.format(e.charCodeAt(0),r.charCodeAt(t+1),i)}}let t5=/^>|^->|<!--|-->|--!>|<!-$/g,t3=[">"],t9=["<",">"];var t4=e.i(496481),t7=e.i(76696),re=e.i(640553),rt=e.i(359091),rr=e.i(124963);let rn=rs(1),ra=rs(-1),ri=[];function rs(e){return function(t,r,n){let a=t?t.children:ri,i=(r||0)+e,s=a[i];if(!n)for(;s&&(0,rr.whitespace)(s);)i+=e,s=a[i];return s}}let ro={}.hasOwnProperty;function rl(e){return function(t,r,n){return ro.call(e,t.tagName)&&e[t.tagName](t,r,n)}}let rc=rl({body:function(e,t,r){let n=rn(r,t);return!n||"comment"!==n.type},caption:ru,colgroup:ru,dd:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(e,t,r){let n=rn(r,t);return!!(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:ru,html:function(e,t,r){let n=rn(r,t);return!n||"comment"!==n.type},li:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(e,t,r){let n=rn(r,t);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!r||"element"!==r.type||"a"!==r.tagName&&"audio"!==r.tagName&&"del"!==r.tagName&&"ins"!==r.tagName&&"map"!==r.tagName&&"noscript"!==r.tagName&&"video"!==r.tagName},rp:rd,rt:rd,tbody:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:rp,tfoot:function(e,t,r){return!rn(r,t)},th:rp,thead:function(e,t,r){let n=rn(r,t);return!!(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&"tr"===n.tagName}});function ru(e,t,r){let n=rn(r,t,!0);return!n||"comment"!==n.type&&!("text"===n.type&&(0,rr.whitespace)(n.value.charAt(0)))}function rd(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function rp(e,t,r){let n=rn(r,t);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}let rh=rl({body:function(e){let t=rn(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,rr.whitespace)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,r){let n=ra(r,t),a=rn(e,-1,!0);return!(r&&n&&"element"===n.type&&"colgroup"===n.tagName&&rc(n,r.children.indexOf(n),r))&&!!(a&&"element"===a.type&&"col"===a.tagName)},head:function(e){let t=new Set;for(let r of e.children)if("element"===r.type&&("base"===r.tagName||"title"===r.tagName)){if(t.has(r.tagName))return!1;t.add(r.tagName)}let r=e.children[0];return!r||"element"===r.type},html:function(e){let t=rn(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,r){let n=ra(r,t),a=rn(e,-1);return!(r&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&rc(n,r.children.indexOf(n),r))&&!!(a&&"element"===a.type&&"tr"===a.tagName)}}),rm={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},rf=["<","&"];function rg(e,t,r,n){return r&&"element"===r.type&&("script"===r.tagName||"style"===r.tagName)?e.value:t6(e.value,Object.assign({},n.settings.characterReferences,{subset:rf}))}let ry=(0,tz.zwitch)("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,r,n){return n.settings.bogusComments?"<?"+t6(e.value,Object.assign({},n.settings.characterReferences,{subset:t3}))+">":"<!--"+e.value.replace(t5,function(e){return t6(e,Object.assign({},n.settings.characterReferences,{subset:t9}))})+"-->"},doctype:function(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,r,n){let a,i=n.schema,s="svg"!==i.space&&n.settings.omitOptionalTags,o="svg"===i.space?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===i.space&&"svg"===e.tagName&&(n.schema=tU.svg);let c=function(e,t){let r,n=[],a=-1;if(t){for(r in t)if(null!==t[r]&&void 0!==t[r]){let a=function(e,t,r){let n,a=(0,re.find)(e.schema,t),i=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(a.overloadedBoolean&&(r===a.attribute||""===r)?r=!0:(a.boolean||a.overloadedBoolean)&&("string"!=typeof r||r===a.attribute||""===r)&&(r=!!r),null==r||!1===r||"number"==typeof r&&Number.isNaN(r))return"";let l=t6(a.attribute,Object.assign({},e.settings.characterReferences,{subset:rm.name[i][s]}));return!0===r||(r=Array.isArray(r)?(a.commaSeparated?t7.stringify:rt.stringify)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(n=t6(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:rm.unquoted[i][s]}))),n!==r&&(e.settings.quoteSmart&&(0,t4.ccount)(r,o)>(0,t4.ccount)(r,e.alternative)&&(o=e.alternative),n=o+t6(r,Object.assign({},e.settings.characterReferences,{subset:("'"===o?rm.single:rm.double)[i][s],attribute:!0}))+o),l+(n?"="+n:n))}(e,r,t[r]);a&&n.push(a)}}for(;++a<n.length;){let t=e.settings.tightAttributes?n[a].charAt(n[a].length-1):void 0;a!==n.length-1&&'"'!==t&&"'"!==t&&(n[a]+=" ")}return n.join("")}(n,e.properties),u=n.all("html"===i.space&&"template"===e.tagName?e.content:e);return n.schema=i,u&&(o=!1),!c&&s&&rh(e,t,r)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===i.space||n.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!n.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&rc(e,t,r)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,r,n){return n.settings.allowDangerousHtml?e.value:rg(e,t,r,n)},root:function(e,t,r,n){return n.all(e)},text:rg}}),rb={},r_={},rw=[];function rA(e,t,r){return ry(e,t,r,this)}function rk(e){let t=[],r=e&&e.children||rw,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function rC(e,t){let r="string"==typeof e?{}:{...e.colorReplacements},n="string"==typeof e?e:e.name;for(let[e,a]of Object.entries(t?.colorReplacements||{}))"string"==typeof a?r[e]=a:e===n&&Object.assign(r,a);return r}function rS(e,t){return e&&t?.[e?.toLowerCase()]||e}async function rx(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function rv(e){return!e||["plaintext","txt","text","plain"].includes(e)}function rE(e){return"ansi"===e||rv(e)}function rN(e){return"none"===e}function rI(e,t){if(!t)return e;for(let r of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function r$(e,t=!1){if(0===e.length)return[["",0]];let r=e.split(/(\r?\n)/g),n=0,a=[];for(let e=0;e<r.length;e+=2){let i=t?r[e]+(r[e+1]||""):r[e];a.push([i,n]),n+=r[e].length,n+=r[e+1]?.length||0}return a}let rL="light-dark()",rP=["color","background-color"];function rT(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&eJ.Italic&&(t["font-style"]="italic"),e.fontStyle&eJ.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&eJ.Underline&&r.push("underline"),e.fontStyle&eJ.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function rM(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let rR=new WeakMap;function rO(e,t){rR.set(e,t)}function rF(e){return rR.get(e)}class rD{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new rD(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,tB])),e)}constructor(...e){if(2===e.length){const[t,r]=e;this.lang=r,this._stacks=t}else{const[t,r,n]=e;this.lang=r,this._stacks={[n]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t;let r,n;return t=this._stacks[e],r=[],n=new Set,!function e(t){if(n.has(t))return;n.add(t);let a=t?.nameScopesList?.scopeName;a&&r.push(a),t.parent&&e(t.parent)}(t),r}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let rG=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){var r;let n,a=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new eD(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...i.indexToPos(e),offset:e}}{let t=i.lines[e.line];if(void 0===t)throw new eD(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new eD(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:i.posToIndex(e.line,r)}}},i={lines:n=r$(r=t.source,!0).map(([e])=>e),indexToPos:function(e){if(e===r.length)return{line:n.length-1,character:n[n.length-1].length};let t=e,a=0;for(let e of n){if(t<e.length)break;t-=e.length,a++}return{line:a,character:t}},posToIndex:function(e,t){let r=0;for(let t=0;t<e;t++)r+=n[t].length;return r+t}},s=(t.options.decorations||[]).map(e=>({...e,start:a(e.start),end:a(e.end)}));(function(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new eD(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){let t=e[n],a=r.start.offset<=t.start.offset&&t.start.offset<r.end.offset,i=r.start.offset<t.end.offset&&t.end.offset<=r.end.offset,s=t.start.offset<=r.start.offset&&r.start.offset<t.end.offset,o=t.start.offset<r.end.offset&&r.end.offset<=t.end.offset;if(a||i||s||o){if(a&&i||s&&o||s&&r.start.offset===r.end.offset||i&&t.start.offset===t.end.offset)continue;throw new eD(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(s),e.set(t.meta,{decorations:s,converter:i,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){let r;if(!this.options.decorations?.length)return;let n=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);return(r=Array.from(n instanceof Set?n:new Set(n)).sort((e,t)=>e-t)).length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let n=0,a=[];for(let r of t)r>n&&a.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&a.push({...e,content:e.content.slice(n),offset:e.offset+n}),a})):e},code(e){if(!this.options.decorations?.length)return;let r=t(this),n=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(n.length!==r.converter.lines.length)throw new eD(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function a(e,t,r,a){let s=n[e],o="",l=-1,c=-1;if(0===t&&(l=0),0===r&&(c=0),r===1/0&&(c=s.children.length),-1===l||-1===c)for(let e=0;e<s.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(s.children[e]),-1===l&&o.length===t&&(l=e+1),-1===c&&o.length===r&&(c=e+1);if(-1===l)throw new eD(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);if(-1===c)throw new eD(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);let u=s.children.slice(l,c);if(a.alwaysWrap||u.length!==s.children.length)if(a.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};i(e,a,"wrapper"),s.children.splice(l,u.length,e)}else i(u[0],a,"token");else i(s,a,"line")}function i(e,t,r){let n=t.properties||{},a=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...n,class:e.properties.class},t.properties?.class&&rI(e,t.properties.class),e=a(e,r)||e}let s=[];for(let e of r.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:r}=e;if(t.line===r.line)a(t.line,t.character,r.character,e);else if(t.line<r.line){a(t.line,t.character,1/0,e);for(let a=t.line+1;a<r.line;a++)s.unshift(()=>{var t;n[t=a]=i(n[t],e,"line")});a(r.line,0,r.character,e)}}s.forEach(e=>e())}}}()];function rB(e){let t=function(e){let t=[],r=[],n=[];for(let a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":r.push(a);break;default:n.push(a)}return{pre:t,post:r,normal:n}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...rG]}var rj=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],rU={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function rz(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var rW={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let rq={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function rH(e,t,r={}){var n,a;let i,s,{theme:o=e.getLoadedThemes()[0]}=r,l=e.resolveLangAlias(r.lang||"text");if(rv(l)||rN(o))return r$(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:c,colorMap:u}=e.setTheme(o);if("ansi"===l){let e,n,a,i,s,o,l;return e=rC(c,r),n=r$(t),a=function(e=rW){let t;function r(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(n){switch(n.type){case"named":return e[n.name];case"rgb":return r(n.rgb);case"table":var a;return a=n.index,function(){if(t)return t;t=[];for(let r=0;r<rj.length;r++)t.push(e[rj[r]]);let n=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let a=0;a<6;a++)for(let i=0;i<6;i++)t.push(r([n[e],n[a],n[i]]));let a=8;for(let e=0;e<24;e++,a+=10)t.push(r([a,a,a]));return t}()[a]}}}}(Object.fromEntries(rj.map(e=>{let t=`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`;return[e,c.colors?.[t]||rq[e]]}))),i=null,s=null,o=new Set,l={parse(e){let t=[],r=0;do{let n=function(e,t){let r=e.indexOf("\x1b",t);if(-1!==r&&"["===e[r+1]){let t=e.indexOf("m",r);if(-1!==t)return{sequence:e.substring(r+2,t).split(";"),startPosition:r,position:t+1}}return{position:e.length}}(e,r),a=n.sequence?e.substring(r,n.startPosition):e.substring(r);if(a.length>0&&t.push({value:a,foreground:i,background:s,decorations:new Set(o)}),n.sequence){let e=function(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let n=Number.parseInt(r);if(!Number.isNaN(n))if(0===n)t.push({type:"resetAll"});else if(n<=9)rU[n]&&t.push({type:"setDecoration",value:rU[n]});else if(n<=29){let e=rU[n-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:rj[n-30]}});else if(38===n){let r=rz(e);r&&t.push({type:"setForegroundColor",value:r})}else if(39===n)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:rj[n-40]}});else if(48===n){let r=rz(e);r&&t.push({type:"setBackgroundColor",value:r})}else 49===n?t.push({type:"resetBackgroundColor"}):53===n?t.push({type:"setDecoration",value:"overline"}):55===n?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:rj[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:rj[n-100+8]}})}return t}(n.sequence);for(let t of e)"resetAll"===t.type?(i=null,s=null,o.clear()):"resetForegroundColor"===t.type?i=null:"resetBackgroundColor"===t.type?s=null:"resetDecoration"===t.type&&o.delete(t.value);for(let t of e)"setForegroundColor"===t.type?i=t.value:"setBackgroundColor"===t.type?s=t.value:"setDecoration"===t.type&&o.add(t.value)}r=n.position}while(r<e.length)return t}},n.map(t=>l.parse(t[0]).map(r=>{let n,i;r.decorations.has("reverse")?(n=r.background?a.value(r.background):c.bg,i=r.foreground?a.value(r.foreground):c.fg):(n=r.foreground?a.value(r.foreground):c.fg,i=r.background?a.value(r.background):void 0),n=rS(n,e),i=rS(i,e),r.decorations.has("dim")&&(n=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],r=e[1],n=e[2],a=e[3],i=Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${r}${r}${n}${n}${i}`}else if(3===e.length){let t=e[0],r=e[1],n=e[2];return`#${t}${t}${r}${r}${n}${n}80`}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}(n));let s=eJ.None;return r.decorations.has("bold")&&(s|=eJ.Bold),r.decorations.has("italic")&&(s|=eJ.Italic),r.decorations.has("underline")&&(s|=eJ.Underline),r.decorations.has("strikethrough")&&(s|=eJ.Strikethrough),{content:r.value,offset:t[1],color:n,bgColor:i,fontStyle:s}}))}let d=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==d.name)throw new eD(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${d.name}"`);if(!r.grammarState.themes.includes(c.name))throw new eD(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${c.name}"`)}return s=new rD((i=rV(t,n=d,a=c,u,r)).stateStack,n.name,a.name),rO(i.tokens,s),i.tokens}function rV(e,t,r,n,a){let i=rC(r,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=a,l=r$(e),c=a.grammarState?function(e,t){if(!(e instanceof rD))throw new eD("Invalid grammar state");return e.getInternalStack(t)}(a.grammarState,r.name)??tB:null!=a.grammarContextCode?rV(a.grammarContextCode,t,r,n,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:tB,u=[],d=[];for(let e=0,p=l.length;e<p;e++){let p,h,[m,f]=l[e];if(""===m){u=[],d.push([]);continue}if(s>0&&m.length>=s){u=[],d.push([{content:m,offset:f,color:"",fontStyle:0}]);continue}a.includeExplanation&&(p=t.tokenizeLine(m,c,o).tokens,h=0);let g=t.tokenizeLine2(m,c,o),y=g.tokens.length/2;for(let e=0;e<y;e++){let t=g.tokens[2*e],s=e+1<y?g.tokens[2*e+2]:m.length;if(t===s)continue;let o=g.tokens[2*e+1],l=rS(n[e2.getForeground(o)],i),c=e2.getFontStyle(o),d={content:m.substring(t,s),offset:f+t,color:l,fontStyle:c};if(a.includeExplanation){let e=[];if("scopeName"!==a.includeExplanation)for(let t of r.settings){let r;switch(typeof t.scope){case"string":r=t.scope.split(/,/).map(e=>e.trim());break;case"object":r=t.scope;break;default:continue}e.push({settings:t,selectors:r.map(e=>e.split(/ /))})}d.explanation=[];let n=0;for(;t+n<s;){let t=p[h],r=m.substring(t.startIndex,t.endIndex);n+=r.length,d.explanation.push({content:r,scopes:"scopeName"===a.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let r=[];for(let n=0,a=t.length;n<a;n++){let a=t[n];r[n]={scopeName:a,themeMatches:function(e,t,r){let n=[];for(let{selectors:a,settings:i}of e)for(let e of a)if(function(e,t,r){if(!rX(e[e.length-1],t))return!1;let n=e.length-2,a=r.length-1;for(;n>=0&&a>=0;)rX(e[n],r[a])&&(n-=1),a-=1;return -1===n}(e,t,r)){n.push(i);break}return n}(e,a,t.slice(0,n))}}return r}(e,t.scopes)}),h+=1}}u.push(d)}d.push(u),u=[],c=g.ruleStack}return{tokens:d,stateStack:c}}function rX(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function rQ(e,t,r){let n=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=n.map(n=>{let a=rH(e,t,{...r,theme:n.theme}),i=rF(a);return{tokens:a,state:i,theme:"string"==typeof n.theme?n.theme:n.theme.name}}),i=function(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){let a=e.map(e=>e[n]),i=t.map(()=>[]);t.forEach((e,t)=>e.push(i[t]));let s=a.map(()=>0),o=a.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<r;t++){let r=o[t];r.content.length===e?(i[t].push(r),s[t]+=1,o[t]=a[t][s[t]]):(i[t].push({...r,content:r.content.slice(0,e)}),o[t]={...r,content:r.content.slice(e),offset:r.offset+e})}}}return t}(...a.map(e=>e.tokens)),s=i[0].map((e,t)=>e.map((e,a)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in r&&r.includeExplanation&&(s.explanation=e.explanation),i.forEach((e,r)=>{let{content:i,explanation:o,offset:l,...c}=e[t][a];s.variants[n[r].color]=c}),s})),o=a[0].state?new rD(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return o&&rO(s,o),s}function rK(e,t,r){let n,a,i,s,o,l;if("themes"in r){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:d="css-vars"}=r,p=Object.entries(r.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:+(t.color===c));if(0===p.length)throw new eD("`themes` option must not be empty");let h=rQ(e,t,r);if(l=rF(h),c&&rL!==c&&!p.find(e=>e.color===c))throw new eD(`\`themes\` option must contain the defaultColor key \`${c}\``);let m=p.map(t=>e.getTheme(t.theme)),f=p.map(e=>e.color);i=h.map(e=>e.map(e=>(function(e,t,r,n,a="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>rT(e.variants[t])),o=new Set(s.flatMap(e=>Object.keys(e))),l={},c=(e,n)=>{let a="color"===n?"":"background-color"===n?"-bg":`-${n}`;return r+t[e]+("color"===n?"":a)};return s.forEach((e,r)=>{for(let i of o){let o=e[i]||"inherit";if(0===r&&n&&rP.includes(i))if(n===rL&&s.length>1){let e=t.findIndex(e=>"light"===e),n=t.findIndex(e=>"dark"===e);if(-1===e||-1===n)throw new eD('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=s[e][i]||"inherit",d=s[n][i]||"inherit";l[i]=`light-dark(${u}, ${d})`,"css-vars"===a&&(l[c(r,i)]=o)}else l[i]=o;else"css-vars"===a&&(l[c(r,i)]=o)}}),i.htmlStyle=l,i})(e,f,u,c,d))),l&&rO(i,l);let g=p.map(e=>rC(e.theme,r));a=rJ(p,m,g,u,c,"fg",d),n=rJ(p,m,g,u,c,"bg",d),s=`shiki-themes ${m.map(e=>e.name).join(" ")}`,o=c?void 0:[a,n].join(";")}else if("theme"in r){let o=rC(r.theme,r);i=rH(e,t,r);let c=e.getTheme(r.theme);n=rS(c.bg,o),a=rS(c.fg,o),s=c.name,l=rF(i)}else throw new eD("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:a,bg:n,themeName:s,rootStyle:o,grammarState:l}}function rJ(e,t,r,n,a,i,s){return e.map((o,l)=>{let c=rS(t[l][i],r[l])||"inherit",u=`${n+o.color}${"bg"===i?"-bg":""}:${c}`;if(0===l&&a){if(a===rL&&e.length>1){let n=e.findIndex(e=>"light"===e.color),a=e.findIndex(e=>"dark"===e.color);if(-1===n||-1===a)throw new eD('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let s=rS(t[n][i],r[n])||"inherit",o=rS(t[a][i],r[a])||"inherit";return`light-dark(${s}, ${o});${u}`}return c}return"css-vars"===s?u:null}).filter(e=>!!e).join(";")}function rZ(e,t,r,n={meta:{},options:r,codeToHast:(t,r)=>rZ(e,t,r),codeToTokens:(t,r)=>rK(e,t,r)}){let a=t;for(let e of rB(r))a=e.preprocess?.call(n,a,r)||a;let{tokens:i,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:u}=rK(e,a,r),{mergeWhitespaces:d=!0,mergeSameStyleTokens:p=!1}=r;!0===d?i=i.map(e=>{let t,r=[],n="";return e.forEach((a,i)=>{let s=!(a.fontStyle&&(a.fontStyle&eJ.Underline||a.fontStyle&eJ.Strikethrough));s&&a.content.match(/^\s+$/)&&e[i+1]?(void 0===t&&(t=a.offset),n+=a.content):n?(s?r.push({...a,offset:t,content:n+a.content}):r.push({content:n,offset:t},a),t=void 0,n=""):r.push(a)}),r}):"never"===d&&(i=i.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,r,n,a]=t;if(!r&&!a)return e;let i=[{...e,offset:e.offset+r.length,content:n}];return r&&i.unshift({content:r,offset:e.offset}),a&&i.push({content:a,offset:e.offset+r.length+n.length}),i}))),p&&(i=i.map(e=>{let t=[];for(let r of e){if(0===t.length){t.push({...r});continue}let e=t[t.length-1],n=rM(e.htmlStyle||rT(e)),a=rM(r.htmlStyle||rT(r)),i=e.fontStyle&&(e.fontStyle&eJ.Underline||e.fontStyle&eJ.Strikethrough),s=r.fontStyle&&(r.fontStyle&eJ.Underline||r.fontStyle&eJ.Strikethrough);i||s||n!==a?t.push({...r}):e.content+=r.content}return t}));let h={...n,get source(){return a}};for(let e of rB(r))i=e.tokens?.call(h,i)||i;return function(e,t,r,n=rF(e)){let a=rB(t),i=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,r]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=r);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:i},p=[],h={...r,structure:o,addClassToHast:rI,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return d},get lines(){return p}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&i.push({type:"text",value:"\n"}));let r={type:"element",tagName:"span",properties:{class:"line"},children:[]},n=0;for(let i of e){let e={type:"element",tagName:"span",properties:{...i.htmlAttrs},children:[{type:"text",value:i.content}]},l=rM(i.htmlStyle||rT(i));for(let s of(l&&(e.properties.style=l),a))e=s?.span?.call(h,e,t+1,n,r,i)||e;"inline"===o?s.children.push(e):"classic"===o&&r.children.push(e),n+=i.content.length}if("classic"===o){for(let e of a)r=e?.line?.call(h,r,t+1)||r;p.push(r),i.push(r)}else"inline"===o&&p.push(r)}),"classic"===o){for(let e of a)d=e?.code?.call(h,d)||d;for(let e of(u.children.push(d),a))u=e?.pre?.call(h,u)||u;s.children.push(u)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let r of s.children)"element"===r.type&&"br"===r.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===r.type||"text"===r.type)&&t.children.push(r);e.push(t);let r={type:"element",tagName:"code",properties:{},children:e};for(let e of a)r=e?.code?.call(h,r)||r;s.children=[];for(let e=0;e<r.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=r.children[e];"element"===t.type&&s.children.push(...t.children)}}let m=s;for(let e of a)m=e?.root?.call(h,m)||m;return n&&rO(m,n),m}(i,{...r,fg:s,bg:o,themeName:l,rootStyle:!1!==r.rootStyle&&(r.rootStyle??c)},h,u)}let rY=function(e,t){let r=t||rb,n=r.quote||'"';if('"'!==n&&"'"!==n)throw Error("Invalid quote `"+n+"`, expected `'` or `\"`");return({one:rA,all:rk,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||tj.htmlVoidElements,characterReferences:r.characterReferences||r_,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:"svg"===r.space?tU.svg:tU.html,quote:n,alternative:'"'===n?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},r0="__shiki_resolved";function r1(e){if(e?.[r0])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(n=e.settings.foreground),e?.settings?.background&&(r=e.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n="light"===t.type?"#333333":"#bbbbbb"),r||(r="light"===t.type?"#fffffe":"#1e1e1e"),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0,i=new Map;function s(e){if(i.has(e))return i.get(e);a+=1;let r=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${r}`]?s(e):(i.set(e,r),r)}for(let e of(t.settings=t.settings.map(e=>{let r=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),n=e.settings?.background&&!e.settings.background.startsWith("#");if(!r&&!n)return e;let a={...e,settings:{...e.settings}};if(r){let r=s(e.settings.foreground);t.colorReplacements[r]=e.settings.foreground,a.settings.foreground=r}if(n){let r=s(e.settings.background);t.colorReplacements[r]=e.settings.background,a.settings.background=r}return a}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let r=s(t.colors[e]);t.colorReplacements[r]=t.colors[e],t.colors[e]=r}return Object.defineProperty(t,r0,{enumerable:!1,writable:!1,value:!0}),t}async function r2(e){return Array.from(new Set((await Promise.all(e.filter(e=>!rE(e)).map(async e=>await rx(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function r8(e){return(await Promise.all(e.map(async e=>rN(e)?null:r1(await rx(e))))).filter(e=>!!e)}class r6 extends Error{constructor(e){super(e),this.name="ShikiError"}}function r5(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new r6(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}class r3 extends tG{constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=r1(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=eV.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=r5(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),r=t.filter(([e,t])=>!t);if(r.length){let e=t.filter(([e,t])=>{if(!t)return!1;let n=t.embeddedLanguages||t.embeddedLangs;return n?.some(e=>r.map(([e])=>e).includes(e))}).filter(e=>!r.includes(e));throw new r6(`Missing languages ${r.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,r]of t)this._resolver.addLanguage(r);for(let[e,r]of t)this.loadLanguage(r)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class r9{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let e=1;e<=t.length;e++){let n=t.slice(0,e).join(".");r=[...r,...this._injections.get(n)||[]]}return r}}let r4=0;async function r7(e){e.engine||function(e,t=3){if(!(t>3))if(1)console.trace(`[SHIKI DEPRECATE]: ${e}`);else throw Error(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,n]=await Promise.all([r8(e.themes||[]),r2(e.langs||[]),e.engine]);return function(e){let t;r4+=1,!1!==e.warnings&&r4>=10&&r4%10==0&&console.warn(`[Shiki] ${r4} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let r=!1;if(!e.engine)throw new r6("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(r1),i=new r3(new r9(e.engine,n),a,n,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=i.getTheme(e);if(!t)throw new r6(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),i.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))i.loadTheme(t)}function c(){if(r)throw new r6("Shiki instance has been disposed")}function u(){r||(r=!0,i.dispose(),r4-=1)}return{setTheme:function(e){c();let r=s(e);return t!==e&&(i.setTheme(r),t=e),{theme:r,colorMap:i.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=i.getGrammar("string"==typeof e?e:e.name);if(!t)throw new r6(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),i.getLoadedThemes()},getLoadedLanguages:function(){return c(),i.getLoadedLanguages()},resolveLangAlias:function(t){return r5(t,e.langAlias)},loadLanguage:async function(...e){return o(await r2(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await r8(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:r,engine:n})}async function ne(e){let t=await r7(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return rF(e[1]);let[t,r,n={}]=e,{lang:a="text",theme:i=t.getLoadedThemes()[0]}=n;if(rv(a)||rN(i))throw new eD("Plain language does not have grammar state");if("ansi"===a)throw new eD("ANSI language does not have grammar state");let{theme:s,colorMap:o}=t.setTheme(i),l=t.getLanguage(a);return new rD(rV(r,l,s,o,n).stateStack,l.name,s.name)})(t,...e),codeToTokensBase:(e,r)=>rH(t,e,r),codeToTokensWithThemes:(e,r)=>rQ(t,e,r),codeToTokens:(e,r)=>rK(t,e,r),codeToHast:(e,r)=>rZ(t,e,r),codeToHtml:(e,r)=>(function(e,t,r){let n={meta:{},options:r,codeToHast:(t,r)=>rZ(e,t,r),codeToTokens:(t,r)=>rK(e,t,r)},a=rY(rZ(e,t,r,n));for(let e of rB(r))a=e.postprocess?.call(n,a,r)||a;return a})(t,e,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let nt=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>e.A(252913)},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>e.A(695208)},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>e.A(952844)},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>e.A(776488)},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>e.A(536002)},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>e.A(872934)},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>e.A(831036)},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>e.A(423803)},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>e.A(486330)},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>e.A(381001)},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>e.A(295735)},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>e.A(902100)},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>e.A(358172)},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>e.A(775274)},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>e.A(157811)},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>e.A(514214)},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>e.A(948353)},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>e.A(640920)},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>e.A(579755)},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>e.A(805550)},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>e.A(360233)},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>e.A(980721)},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>e.A(27266)},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>e.A(231214)},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>e.A(881110)},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>e.A(337683)},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>e.A(28130)},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>e.A(470579)},{id:"horizon-bright",displayName:"Horizon Bright",type:"dark",import:()=>e.A(487165)},{id:"houston",displayName:"Houston",type:"dark",import:()=>e.A(677856)},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>e.A(194363)},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>e.A(448953)},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>e.A(711812)},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>e.A(409732)},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>e.A(930788)},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>e.A(411374)},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>e.A(769460)},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>e.A(774478)},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>e.A(49008)},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>e.A(377952)},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>e.A(820463)},{id:"min-light",displayName:"Min Light",type:"light",import:()=>e.A(630169)},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>e.A(777035)},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>e.A(161439)},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>e.A(28589)},{id:"nord",displayName:"Nord",type:"dark",import:()=>e.A(467304)},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>e.A(794497)},{id:"one-light",displayName:"One Light",type:"light",import:()=>e.A(353619)},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>e.A(841717)},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>e.A(703232)},{id:"red",displayName:"Red",type:"dark",import:()=>e.A(469411)},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>e.A(753065)},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>e.A(81356)},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>e.A(291336)},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>e.A(758732)},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>e.A(505358)},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>e.A(953493)},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>e.A(767374)},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>e.A(461630)},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>e.A(135353)},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>e.A(129817)},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>e.A(666144)},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>e.A(496740)},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>e.A(896290)},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>e.A(161379)}].map(e=>[e.id,e.import]));var nr=e.i(467034);class nn extends Error{constructor(e){super(e),this.name="ShikiError"}}function na(){return"u">typeof performance?performance.now():Date.now()}let ni=(e,t)=>e+(t-e%t)%t;async function ns(e){let t,r,n={};function a(e){r=e,n.HEAPU8=new Uint8Array(e),n.HEAPU32=new Uint32Array(e)}let i="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,r=1024){let n=t+r,a=t;for(;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&i)return i.decode(e.subarray(t,a));let s="";for(;t<a;){let r=e[t++];if(!(128&r)){s+=String.fromCharCode(r);continue}let n=63&e[t++];if((224&r)==192){s+=String.fromCharCode((31&r)<<6|n);continue}let a=63&e[t++];if((r=(240&r)==224?(15&r)<<12|n<<6|a:(7&r)<<18|n<<12|a<<6|63&e[t++])<65536)s+=String.fromCharCode(r);else{let e=r-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(n.HEAPU8,e,t):""}let o={emscripten_get_now:na,emscripten_memcpy_big:function(e,t,r){n.HEAPU8.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){let i=n.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let n=1;n<=4;n*=2){let s=i*(1+.2/n);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-r.byteLength+65535>>>16),a(t.buffer),1}catch{}}(Math.min(0x80000000,ni(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let r=await e({env:o,wasi_snapshot_preview1:o});a((t=r.memory).buffer),Object.assign(n,r),n.UTF8ToString=s}return await l(),n}var no=Object.defineProperty,nl=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?no(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};let nc=null;class nu{constructor(e){nl(this,"utf16Length"),nl(this,"utf8Length"),nl(this,"utf16Value"),nl(this,"utf8Value"),nl(this,"utf16OffsetToUtf8"),nl(this,"utf8OffsetToUtf16");const t=e.length,r=nu._utf8ByteLength(e),n=r!==t,a=n?new Uint32Array(t+1):null;n&&(a[t]=r);const i=n?new Uint32Array(r+1):null;n&&(i[r]=t);const s=new Uint8Array(r);let o=0;for(let r=0;r<t;r++){const l=e.charCodeAt(r);let c=l,u=!1;if(l>=55296&&l<=56319&&r+1<t){const t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}n&&(a[r]=o,u&&(a[r+1]=o),c<=127?i[o+0]=r:c<=2047?(i[o+0]=r,i[o+1]=r):c<=65535?(i[o+0]=r,i[o+1]=r,i[o+2]=r):(i[o+0]=r,i[o+1]=r,i[o+2]=r,i[o+3]=r)),c<=127?s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),u&&r++}this.utf16Length=t,this.utf8Length=r,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let t=0;for(let r=0,n=e.length;r<n;r++){let a=e.charCodeAt(r),i=a,s=!1;if(a>=55296&&a<=56319&&r+1<n){let t=e.charCodeAt(r+1);t>=56320&&t<=57343&&(i=(a-55296<<10)+65536|t-56320,s=!0)}i<=127?t+=1:i<=2047?t+=2:i<=65535?t+=3:t+=4,s&&r++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let nd=class e{constructor(t){if(nl(this,"id",++e.LAST_ID),nl(this,"_onigBinding"),nl(this,"content"),nl(this,"utf16Length"),nl(this,"utf8Length"),nl(this,"utf16OffsetToUtf8"),nl(this,"utf8OffsetToUtf16"),nl(this,"ptr"),!nc)throw new nn("Must invoke loadWasm first.");this._onigBinding=nc,this.content=t;const r=new nu(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=nc.omalloc(1e4)),e._sharedPtrInUse=!0,nc.HEAPU8.set(r.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=r.createString(nc)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};nl(nd,"LAST_ID",0),nl(nd,"_sharedPtr",0),nl(nd,"_sharedPtrInUse",!1);class np{constructor(e){if(nl(this,"_onigBinding"),nl(this,"_ptr"),!nc)throw new nn("Must invoke loadWasm first.");const t=[],r=[];for(let n=0,a=e.length;n<a;n++){const a=new nu(e[n]);t[n]=a.createString(nc),r[n]=a.utf8Length}const n=nc.omalloc(4*e.length);nc.HEAPU32.set(t,n/4);const a=nc.omalloc(4*e.length);nc.HEAPU32.set(r,a/4);const i=nc.createOnigScanner(n,a,e.length);for(let r=0,n=e.length;r<n;r++)nc.ofree(t[r]);nc.ofree(a),nc.ofree(n),0===i&&function(e){throw new nn(e.UTF8ToString(e.getLastOnigError()))}(nc),this._onigBinding=nc,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,r){let n=0;if("number"==typeof r&&(n=r),"string"==typeof e){e=new nd(e);let r=this._findNextMatchSync(e,t,!1,n);return e.dispose(),r}return this._findNextMatchSync(e,t,!1,n)}_findNextMatchSync(e,t,r,n){let a=this._onigBinding,i=a.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),n);if(0===i)return null;let s=a.HEAPU32,o=i/4,l=s[o++],c=s[o++],u=[];for(let t=0;t<c;t++){let r=e.convertUtf8OffsetToUtf16(s[o++]),n=e.convertUtf8OffsetToUtf16(s[o++]);u[t]={start:r,end:n,length:n-r}}return{index:l,captureIndices:u}}}function nh(e){return t=>WebAssembly.instantiate(e,t)}async function nm(e){return e&&await (n||(n=async function(){nc=await ns(async t=>{let r=e;if("function"==typeof(r=await r)&&(r=await r(t)),"function"==typeof r&&(r=await r(t)),"function"==typeof r.instantiator)r=await r.instantiator(t);else if("function"==typeof r.default)r=await r.default(t);else{var n,a,i,s;if(void 0!==r.data&&(r=r.data),n=r,"u">typeof Response&&n instanceof Response){r="function"==typeof WebAssembly.instantiateStreaming?await (i=r,e=>WebAssembly.instantiateStreaming(i,e))(t):await (s=r,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(a=r,"u">typeof ArrayBuffer&&(a instanceof ArrayBuffer||ArrayBuffer.isView(a))||void 0!==nr.Buffer&&nr.Buffer.isBuffer?.(a)||"u">typeof SharedArrayBuffer&&a instanceof SharedArrayBuffer||"u">typeof Uint32Array&&a instanceof Uint32Array||r instanceof WebAssembly.Module)?r=await nh(r)(t):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await nh(r.default)(t))}return"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}())),{createScanner:e=>new np(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new nd(e)}}let nf=(o=(h={langs:eF,themes:nt,engine:()=>nm(e.A(514467))}).langs,l=h.themes,c=h.engine,async function(e){function t(t){if("string"==typeof t){if(rE(t=e.langAlias?.[t]||t))return[];let r=o[t];if(!r)throw new eD(`Language \`${t}\` is not included in this bundle. You may want to load it from external source.`);return r}return t}function r(e){if(rN(e))return"none";if("string"==typeof e){let t=l[e];if(!t)throw new eD(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let n=(e.themes??[]).map(e=>r(e)),a=(e.langs??[]).map(e=>t(e)),i=await ne({engine:e.engine??c(),...e,themes:n,langs:a});return{...i,loadLanguage:(...e)=>i.loadLanguage(...e.map(t)),loadTheme:(...e)=>i.loadTheme(...e.map(r)),getBundledLanguages:()=>o,getBundledThemes:()=>l}});function ng(e){if(1!=[...e].length)throw Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}let ny=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),nb=String.raw;function n_(e,t){if(null==e)throw Error(t??"Value expected");return e}let nw=nb`\[\^?`,nA=`c.? | C(?:-.?)?|${nb`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${nb`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${nb`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${nb`o\{[^\}]*\}?`}|${nb`\d{1,3}`}`,nk=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,nC=RegExp(nb`
2
2
  \\ (?:
3
3
  ${nA}
4
4
  | [gk]<[^>]*>?
@@ -138,4 +138,4 @@ XID_Continue XIDC
138
138
  XID_Start XIDS`.split(/\s/).map(e=>[n2(e),e])),aI=new Map([["s",ag(383)],[ag(383),"s"]]),a$=new Map([[ag(223),ag(7838)],[ag(107),ag(8490)],[ag(229),ag(8491)],[ag(969),ag(8486)]]),aL=new Map([aT(453),aT(456),aT(459),aT(498),...aM(8072,8079),...aM(8088,8095),...aM(8104,8111),aT(8124),aT(8140),aT(8188)]),aP=new Map([["alnum",ay`[\p{Alpha}\p{Nd}]`],["alpha",ay`\p{Alpha}`],["ascii",ay`\p{ASCII}`],["blank",ay`[\p{Zs}\t]`],["cntrl",ay`\p{Cc}`],["digit",ay`\p{Nd}`],["graph",ay`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ay`\p{Lower}`],["print",ay`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ay`[\p{P}\p{S}]`],["space",ay`\p{space}`],["upper",ay`\p{Upper}`],["word",ay`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ay`\p{AHex}`]]);function aT(e){let t=ag(e);return[t.toLowerCase(),t]}function aM(e,t){return(function(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r})(e,t).map(e=>aT(e))}var aR=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]),aO={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:a}=e;if("repeater"===a){let e=nV();e.body[0].body.push(nX({negate:!0,body:n}),nJ("Any"));let a=nV();a.body[0].body.push(nQ("greedy",0,1/0,e)),r(aX(a,t),{traverse:!0})}else throw Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let a=e.body.filter(e=>"flags"===e.kind);for(let e=r+1;e<t.body.length;e++)aA(n,t.body[e],[]).push(...a)},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=aU(t.get(e));if(r){let t=nV({flags:r});t.body[0].body=e.body,e.body=[aX(t,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:a,remove:i,replaceWith:s},o){let{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:d,supportedGNodes:p,wordIsAscii:h}=o;if("text_segment_boundary"===l)throw Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if("line_end"===l)s(aX(nX({body:[nB({body:[nj("string_end")]}),nB({body:[nW(10)]})]}),t));else if("line_start"===l)s(aX(aq(ay`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if("search_start"===l)if(p.has(e))a.flags.sticky=!0,i();else{var m;let e,a=n[r-1];if(a&&((e=["Character","CharacterClass","CharacterSet"]).includes((m=a).type)||"Quantifier"===m.type&&m.min&&e.includes(m.body.type)))s(aX(nX({negate:!0}),t));else if(d)throw Error(ay`Uses "\G" in a way that requires a subclass`);else s(aV(nj("string_start"),t)),o.strategy="clip_search"}else if("string_end"===l||"string_start"===l);else if("string_end_newline"===l)s(aX(aq(ay`(?=\n?\z)`),t));else if("word_boundary"===l){if(!h&&!u){let e=`(?:(?<=${av})(?!${av})|(?<!${av})(?=${av}))`,r=`(?:(?<=${av})(?=${av})|(?<!${av})(?!${av}))`;s(aX(aq(c?r:e),t))}}else throw Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||aW(r)||(e.ref=r=aj(r,t))},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!aW(n)&&(e.name=n=aj(n,t)),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){"intersection"===t.kind&&r(aX(nq({body:[e]}),t),{traverse:!0})},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:a,digitIsAscii:i,spaceIsAscii:s,wordIsAscii:o}){let{kind:l,negate:c,value:u}=e;if(i&&("digit"===l||"digit"===u))return void r(aV(nH("digit",{negate:c}),t));if(s&&("space"===l||"space"===u))return void r(aX(aH(aq("[ -\r ]"),c),t));if(o&&("word"===l||"word"===u))return void r(aV(nH("word",{negate:c}),t));if("any"===l)r(aV(nJ("Any"),t));else if("digit"===l)r(aV(nJ("Nd",{negate:c}),t));else if("dot"===l);else if("text_segment"===l){if("strict"===n)throw Error(ay`Use of "\X" requires non-strict accuracy`);let e="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",i=ay`\p{RI}{2}|${e}(?:\u200D${e})*`;r(aX(aq(ay`(?>\r\n|${a?ay`\p{RGI_Emoji}`:i}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if("hex"===l)r(aV(nJ("AHex",{negate:c}),t));else if("newline"===l)r(aX(aq(c?"[^\n]":"(?>\r\n?|[\n\v\f…\u2028\u2029])"),t));else if("posix"===l)if(a||"graph"!==u&&"print"!==u)r(aX(aH(aq(aP.get(u)),c),t));else{if("strict"===n)throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let e={graph:"!-~",print:" -~"}[u];c&&(e=`\0-${ag(e.codePointAt(0)-1)}${ag(e.codePointAt(2)+1)}-\u{10FFFF}`),r(aX(aq(`[${e}]`),t))}else if("property"===l)aN.has(n2(u))||(e.key="sc");else if("space"===l)r(aV(nJ("space",{negate:c}),t));else if("word"===l)r(aX(aH(aq(av),c),t));else throw Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:a,removeAllPrevSiblings:i,removeAllNextSiblings:s}){let{kind:o,flags:l}=e;if("flags"===o)if(l.enable||l.disable){let e=nV({flags:l});e.body[0].body=s(),a(aX(e,t),{traverse:!0})}else n();else if("keep"===o){let e=r.body[0],n=1===r.body.length&&nF(e,{type:"Group"})&&1===e.body[0].body.length?e.body[0]:r;if(t.parent!==n||n.body.length>1)throw Error(ay`Uses "\K" in a way that's unsupported`);let s=nX({behind:!0});s.body[0].body=i(),a(aX(s,t))}else throw Error(`Unexpected directive kind "${o}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw Error('Unsupported flag "P"');if("word"===e.textSegmentMode)throw Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(t=>delete e[t]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,e.flags.enable||e.flags.disable||delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;"lookbehind"===r&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if("fail"===n)r(aX(nX({negate:!0}),t));else throw Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if("Quantifier"===e.body.type){let t=nV();t.body[0].body.push(e.body),e.body=aX(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,a=!1;for(let t of e.body)if(1===t.body.length&&"search_start"===t.body[0].kind)t.body.pop();else{let e=function e(t){let r=t.find(e=>"search_start"===e.kind||function(e,t){let r={negate:null,...t};return"LookaroundAssertion"===e.type&&(null===r.negate||e.negate===r.negate)&&1===e.body.length&&nF(e.body[0],{type:"Assertion",kind:"search_start"})}(e,{negate:!1})||!function({type:e}){return"Assertion"===e||"Directive"===e||"LookaroundAssertion"===e}(e));if(!r)return null;if("search_start"===r.kind)return r;if("LookaroundAssertion"===r.type)return r.body[0].body[0];if("CapturingGroup"===r.type||"Group"===r.type){let t=[];for(let n of r.body){let r=e(n.body);if(!r)return null;Array.isArray(r)?t.push(...r):t.push(r)}return t}return null}(t.body);e?(n=!0,Array.isArray(e)?r.push(...e):r.push(e)):a=!0}n&&!a&&r.forEach(e=>t.add(e))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if("strict"===t&&r&&n)throw Error(ay`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;"string"!=typeof r||aW(r)||(e.ref=r=aj(r,t))}},aF={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:a}=e;n||r.set(e,[...t.get(a).map(({node:e})=>e)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:a,groupsByName:i,multiplexCapturesToLeftByRef:s,openRefs:o,reffedNodesByReferencer:l}){let c=a.get(e);if(c&&o.has(e.number)){let n=aV(aB(e.number),t);l.set(n,o.get(e.number)),r(n);return}o.set(e.number,e),s.set(e.number,[]),e.name&&aA(s,e.name,[]);let u=s.get(e.name??e.number);for(let t=0;t<u.length;t++){let r=u[t];if(c===r.node||c&&c===r.origin||e===r.origin){u.splice(t,1);break}}if(s.get(e.number).push({node:e,origin:c}),e.name&&s.get(e.name).push({node:e,origin:c}),e.name){let t=aA(i,e.name,new Map),r=!1;if(c)r=!0;else for(let e of t.values())if(!e.hasDuplicateNameToRemove){r=!0;break}i.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:r})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=aw(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:a,ref:i}=e;if(a){let r=t;for(;(r=r.parent)&&("CapturingGroup"!==r.type||r.name!==i&&r.number!==i););n.reffedNodesByReferencer.set(e,r);return}let s=n.subroutineRefMap.get(i),o=0===i,l=o?aB(0):function e(t,r,n,a){let i=Array.isArray(t)?[]:{};for(let[s,o]of Object.entries(t))"parent"===s?i.parent=Array.isArray(n)?a:n:o&&"object"==typeof o?i[s]=e(o,r,i,n):("type"===s&&"CapturingGroup"===o&&r.set(i,r.get(t)??t),i[s]=o);return i}(s,n.groupOriginByCopy,null),c=l;if(!o){var u,d;let e=aU(function(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}(s,e=>"Group"===e.type&&!!e.flags)),t=e?aw(n.globalFlags,e):n.globalFlags;u=t,d=n.currentFlags,(u.dotAll!==d.dotAll||u.ignoreCase!==d.ignoreCase)&&(c=nV({flags:function({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),e&&t||(r.disable={},e||(r.disable.dotAll=!0),t||(r.disable.ignoreCase=!0)),r}(t)})).body[0].body.push(l)}r(aX(c,t),{traverse:!o})}},aD={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let a=n.reffedNodesByReferencer.get(e).filter(t=>(function(e,t){let r=t;do{if("Regex"===r.type)return!1;if("Alternative"===r.type)continue;if(r===e)return!1;for(let t of az(r.parent)){if(t===r)break;if(t===e||function e(t,r){for(let n of az(t)??[])if(n===r||e(n,r))return!0;return!1}(t,e))return!0}}while(r=r.parent)throw Error("Unexpected path")})(t,e));a.length?a.length>1?r(aX(nV({atomic:!0,body:a.reverse().map(e=>nB({body:[nU(e.number)]}))}),t)):e.ref=a[0].number:r(aX(nX({negate:!0}),t))},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let t=0;t<r;t++){let t=nz();e.body.at(-1).body.push(t)}}},Subroutine({node:e},t){e.isRecursive&&0!==e.ref&&(e.ref=t.reffedNodesByReferencer.get(e).number)}};function aG(e){n5(e,{"*"({node:e,parent:t}){e.parent=t}})}function aB(e){let t=nK(e);return t.isRecursive=!0,t}function aj(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function aU(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return(e.forEach(({flags:e})=>{t.forEach(t=>{e.enable?.[t]&&(delete r.disable[t],r.enable[t]=!0),e.disable?.[t]&&(r.disable[t]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable)?r:null}function az(e){if(!e)throw Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function aW(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function aq(e,t){let r=nG(e,{...t,unicodePropertyMap:aN}).body;return r.length>1||r[0].body.length>1?nV({body:r}):r[0].body[0]}function aH(e,t){return e.negate=t,e}function aV(e,t){return e.parent=t,e}function aX(e,t){return aG(e),e.parent=t,e}var aQ={"*":{enter({node:e},t){if(a5(e)){let r=t.getCurrentModI();t.pushModI(e.flags?aw({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){a5(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){a2(ag(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),a8(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){"property"===e.kind&&aR.has(e.value)&&t.setHasCasedChar()}},aK={Alternative:({body:e},t,r)=>e.map(r).join(""),Assertion({kind:e,negate:t}){if("string_end"===e)return"$";if("string_start"===e)return"^";if("word_boundary"===e)return t?ay`\B`:ay`\b`;throw Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if("number"!=typeof e)throw Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&"strict"===t.accuracy&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:a,number:i}=e,s={ignoreCase:t.currentFlags.ignoreCase},o=t.originMap.get(e);return o&&(s.hidden=!0,i>o.number&&(s.transferTo=o.number)),t.captureMap.set(i,s),`(${a?`?<${a}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=ag(e),n=a6(e,{escDigit:"Backreference"===t.lastNode.type,inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&a2(r)){let e=aE(r);return t.inCharClass?e.join(""):e.length>1?`[${e.join("")}]`:e[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:a,parent:i}=e,{body:s}=e;if("intersection"===n&&!t.useFlagV)throw Error("Use of character class intersection requires min target ES2024");ab.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&s.some(a3)&&(s=[nW(45),...s.filter(e=>!a3(e))]);let o=()=>`[${a?"^":""}${s.map(r).join("intersection"===n?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||ab.bugNestedClassIgnoresNegation)&&!a){let t=s.filter(e=>"CharacterClass"===e.type&&"union"===e.kind&&e.negate);if(t.length){let n=nV(),a=n.body[0];return n.parent=i,a.parent=n,e.body=s=s.filter(e=>!t.includes(e)),s.length?(e.parent=a,a.body.push(e)):n.body.pop(),t.forEach(e=>{let t=nB({body:[e]});e.parent=t,t.parent=n,n.body.push(t)}),r(n)}}t.inCharClass=!0;let n=o();return t.inCharClass=!1,n}let l=s[0];if("union"===n&&!a&&l&&((!t.useFlagV||!t.verbose)&&"union"===i.kind&&!(ab.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&"intersection"===i.kind&&1===s.length&&"CharacterClassRange"!==l.type))return s.map(r).join("");if(!t.useFlagV&&"CharacterClass"===i.type)throw Error("Uses nested character class in a way that requires min target ES2024");return o()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=a6(r,a),s=a6(n,a),o=new Set;return t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&(function(e){let t=e.map(e=>e.codePointAt(0)).sort((e,t)=>e-t),r=[],n=null;for(let e=0;e<t.length;e++)t[e+1]===t[e]+1?n??=t[e]:null===n?r.push(t[e]):(r.push([n,t[e]]),n=null);return r})(a8(e)).forEach(e=>{o.add(Array.isArray(e)?`${a6(e[0],a)}-${a6(e[1],a)}`:a6(e,a))}),`${i}-${s}${[...o].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},a){if("dot"===e)return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":ay`[^\n]`;if("digit"===e)return t?ay`\D`:ay`\d`;if("property"===e){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&aR.has(r))throw Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?ay`\P`:ay`\p`}{${n?`${n}=`:""}${r}}`}if("word"===e)return t?ay`\W`:ay`\w`;throw Error(`Unexpected character set kind "${e}"`)},Flags:(e,t)=>(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":""),Group({atomic:e,body:t,flags:r,parent:n},a,i){let s=a.currentFlags;r&&(a.currentFlags=aw(s,r));let o=t.map(i).join("|"),l=a.verbose||1!==t.length||"Quantifier"===n.type||e||a.useFlagMods&&r?`(?${function(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:e,disable:r}=t;n=(e?.ignoreCase?"i":"")+(e?.dotAll?"s":"")+(r?"-":"")+(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")}return`${n}:`}(e,r,a.useFlagMods)}${o})`:o;return a.currentFlags=s,l},LookaroundAssertion({body:e,kind:t,negate:r},n,a){let i=`${"lookahead"===t?"":"<"}${r?"!":"="}`;return`(?${i}${e.map(a).join("|")})`},Quantifier:(e,t,r)=>r(e.body)+function({kind:e,max:t,min:r}){return(r||1!==t?r||t!==1/0?1===r&&t===1/0?"+":r===t?`{${r}}`:`{${r},${t===1/0?"":t}}`:"*":"?")+({greedy:"",lazy:"?",possessive:"+"})[e]}(e),Subroutine({isRecursive:e,ref:t},r){if(!e)throw Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return 0===t?`(?R=${n})`:ay`\g<${t}&R=${n}>`}},aJ=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),aZ=new Set(["-","\\","]","^","["]),aY=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),a0=new Map([[9,ay`\t`],[10,ay`\n`],[11,ay`\v`],[12,ay`\f`],[13,ay`\r`],[8232,ay`\u2028`],[8233,ay`\u2029`],[65279,ay`\uFEFF`]]),a1=/^\p{Cased}$/u;function a2(e){return a1.test(e)}function a8(e,t){let r=!!t?.firstOnly,n=e.min.value,a=e.max.value,i=[];if(n<65&&(65535===a||a>=131071)||65536===n&&a>=131071)return i;for(let e=n;e<=a;e++){let t=ag(e);if(!a2(t))continue;let s=aE(t).filter(e=>{let t=e.codePointAt(0);return t<n||t>a});if(s.length&&(i.push(...s),r))break}return i}function a6(e,{escDigit:t,inCharClass:r,useFlagV:n}){var a;if(a0.has(e))return a0.get(e);if(e<32||e>126&&e<160||e>262143||t&&(a=e)>47&&a<58)return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let i=ag(e);return((r?n?aY:aZ:aJ).has(i)?"\\":"")+i}function a5({type:e}){return"CapturingGroup"===e||"Group"===e||"LookaroundAssertion"===e}function a3({type:e,value:t}){return"Character"===e&&45===t}var a9=class e extends RegExp{#e=new Map;#t=null;#r;#n=null;#a=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,r,n){const a=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw Error("Cannot provide options when copying a regexp");super(t,r),this.#r=t.source,t instanceof e&&(this.#e=t.#e,this.#n=t.#n,this.#a=t.#a,this.rawOptions=t.rawOptions)}else{const e={hiddenCaptures:[],strategy:null,transfers:[],...n};super(a?"":t,r),this.#r=t,this.#e=function(e,t){let r=new Map;for(let t of e)r.set(t,{hidden:!0});for(let[e,n]of t)for(let t of n)aA(r,t,{}).transferTo=e;return r}(e.hiddenCaptures,e.transfers),this.#a=e.strategy,this.rawOptions=n??{}}a||(this.#t=this)}exec(t){if(!this.#t){let{lazyCompile:t,...r}=this.rawOptions;this.#t=new e(this.#r,this.flags,r)}let r=this.global||this.sticky,n=this.lastIndex;if("clip_search"===this.#a&&r&&n){this.lastIndex=0;let e=this.#i(t.slice(n));return e&&(function(e,t,r,n){if(e.index+=t,e.input=r,n){let r=e.indices;for(let e=0;e<r.length;e++){let n=r[e];n&&(r[e]=[n[0]+t,n[1]+t])}let n=r.groups;n&&Object.keys(n).forEach(e=>{let r=n[e];r&&(n[e]=[r[0]+t,r[1]+t])})}}(e,n,t,this.hasIndices),this.lastIndex+=n),e}return this.#i(t)}#i(e){let t;this.#t.lastIndex=this.lastIndex;let r=super.exec.call(this.#t,e);if(this.lastIndex=this.#t.lastIndex,!r||!this.#e.size)return r;let n=[...r];r.length=1,this.hasIndices&&(t=[...r.indices],r.indices.length=1);let a=[0];for(let e=1;e<n.length;e++){let{hidden:i,transferTo:s}=this.#e.get(e)??{};if(i?a.push(null):(a.push(r.length),r.push(n[e]),this.hasIndices&&r.indices.push(t[e])),s&&void 0!==n[e]){let i=a[s];if(!i)throw Error(`Invalid capture transfer to "${i}"`);if(r[i]=n[e],this.hasIndices&&(r.indices[i]=t[e]),r.groups){this.#n||(this.#n=function(e){let t,r=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,a=0,i=0;for(;t=r.exec(e);){let{0:e,groups:{capture:r,name:s}}=t;"["===e?a++:a?"]"===e&&a--:r&&(i++,s&&n.set(i,s))}return n}(this.source));let a=this.#n.get(s);a&&(r.groups[a]=n[e],this.hasIndices&&(r.indices.groups[a]=t[e]))}}}return r}};class a4{constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:a}=t;if(!a)throw Error("Option `regexConstructor` is not provided");this.regexps=e.map(e=>{if("string"!=typeof e)return e;let t=n?.get(e);if(t){if(t instanceof RegExp)return t;if(r)return null;throw t}try{let t=a(e);return n?.set(e,t),t}catch(t){if(n?.set(e,t),r)return null;throw t}})}regexps;findNextMatchSync(e,t,r){let n="string"==typeof e?e:e.content,a=[];function i(e,t,r=0){return{index:e,captureIndices:t.indices.map(e=>null==e?{start:0xffffffff,end:0xffffffff,length:0}:{start:e[0]+r,end:e[1]+r,length:e[1]-e[0]})}}for(let e=0;e<this.regexps.length;e++){let r=this.regexps[e];if(r)try{r.lastIndex=t;let s=r.exec(n);if(!s)continue;if(s.index===t)return i(e,s,0);a.push([e,s,0])}catch(e){if(this.options.forgiving)continue;throw e}}if(a.length){let e=Math.min(...a.map(e=>e[1].index));for(let[t,r,n]of a)if(r.index===e)return i(t,r,n)}return null}}var a7=function(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=e=>{let r;return(r=function(e,t){var r;let n,a,i,s,o=aS(t),l=(r=nG(e,{flags:o.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:o.rules.captureGroup,singleline:o.rules.singleline},skipBackrefValidation:o.rules.allowOrphanBackrefs,unicodePropertyMap:aN}),n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...{accuracy:o.accuracy,asciiWordBoundaries:o.rules.asciiWordBoundaries,avoidSubclass:o.avoidSubclass,bestEffortTarget:o.target}},aG(r),a={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ak[n.bestEffortTarget]>=ak.ES2024,passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:r.flags.digitIsAscii,spaceIsAscii:r.flags.spaceIsAscii,wordIsAscii:r.flags.wordIsAscii},n5(r,aO,a),s={currentFlags:i={dotAll:r.flags.dotAll,ignoreCase:r.flags.ignoreCase},prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:a.subroutineRefMap},n5(r,aF,s),n5(r,aD,{groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer}),r._originMap=s.groupOriginByCopy,r._strategy=a.strategy,r),c=function(e,t){let r=aS(t),n=ak[r.target]>=ak.ES2024,a=ak[r.target]>=ak.ES2025,i=r.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw Error("Invalid recursionLimit; use 2-20");let s=null,o=null;if(!a){let t=[e.flags.ignoreCase];n5(e,aQ,{getCurrentModI:()=>t.at(-1),popModI(){t.pop()},pushModI(e){t.push(e)},setHasCasedChar(){t.at(-1)?s=!0:o=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||s)&&!o)},c=e,u={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!a&&s&&o),useFlagMods:a,useFlagV:n,verbose:r.verbose};function d(e){return u.lastNode=c,c=e,(function(e,t){if(null==e)throw Error(t??"Value expected");return e})(aK[e.type],`Unexpected node type "${e.type}"`)(e,u,d)}let p={pattern:e.body.map(d).join("|"),flags:d(e.flags),options:{...e.options}};return n||(delete p.options.force.v,p.options.disable.v=!0,p.options.unicodeSetsPlugin=null),p._captureTransfers=new Map,p._hiddenCaptures=[],u.captureMap.forEach((e,t)=>{e.hidden&&p._hiddenCaptures.push(t),e.transferTo&&aA(p._captureTransfers,e.transferTo,[]).push(t)}),p}(l,o),u=function(e,t){let r,{hiddenCaptures:n,mode:a}={hiddenCaptures:[],mode:"plugin",...t},i=t?.captureTransfers??new Map;if(!RegExp(ao,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:n};if("plugin"===a&&at(e,ai`\(\?\(DEFINE\)`,n7.DEFAULT))throw Error("DEFINE groups cannot be used with recursion");let s=[],o=at(e,ai`\\[1-9]`,n7.DEFAULT),l=new Map,c=[],u=!1,d=0,p=0;for(au.lastIndex=0;r=au.exec(e);){let{0:t,groups:{captureName:h,rDepth:m,gRNameOrNum:f,gRDepth:g}}=r;if("["===t)d++;else if(d)"]"===t&&d--;else if(m){if(ap(m),u)throw Error(ad);if(o)throw Error(`${"external"===a?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let t=e.slice(0,r.index),l=e.slice(au.lastIndex);if(at(l,ao,n7.DEFAULT))throw Error(ad);let c=m-1;e=ah(t,l,c,!1,n,s,p),i=af(i,t,c,s.length,0,p);break}else if(f){ap(g);let d=!1;for(let e of c)if(e.name===f||e.num===+f){if(d=!0,e.hasRecursedWithin)throw Error(ad);break}if(!d)throw Error(ai`Recursive \g cannot be used outside the referenced group "${"external"===a?f:ai`\g<${f}&R=${g}>`}"`);let h=l.get(f),m=function(e,t){let r,n=/\\?./gsu;n.lastIndex=t;let a=e.length,i=0,s=1;for(;r=n.exec(e);){let[e]=r;if("["===e)i++;else if(i)"]"===e&&i--;else if("("===e)s++;else if(")"===e&&!--s){a=r.index;break}}return e.slice(t,a)}(e,h);if(o&&at(m,ai`${al}|\((?!\?)`,n7.DEFAULT))throw Error(`${"external"===a?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let y=e.slice(h,r.index),b=m.slice(y.length+t.length),_=s.length,w=g-1,A=ah(y,b,w,!0,n,s,p);i=af(i,y,w,s.length-_,_,p);let k=e.slice(0,h),C=e.slice(h+m.length);e=`${k}${A}${C}`,au.lastIndex+=A.length-t.length-y.length-b.length,c.forEach(e=>e.hasRecursedWithin=!0),u=!0}else if(h)p++,l.set(String(p),au.lastIndex),l.set(h,au.lastIndex),c.push({num:p,name:h});else if("("===t[0]){let e="("===t;e&&(p++,l.set(String(p),au.lastIndex)),c.push(e?{num:p}:{})}else")"===t&&c.pop()}return n.push(...s),{pattern:e,captureTransfers:i,hiddenCaptures:n}}(c.pattern,{captureTransfers:c._captureTransfers,hiddenCaptures:c._hiddenCaptures,mode:"external"}),d=function(e,t){let r,n=t?.hiddenCaptures??[],a=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:n};let i="(?:(?=(",s=[0],o=[],l=0,c=0,u=NaN;do{let t;r=!1;let d=0,p=0,h=!1;for(ar.lastIndex=Number.isNaN(u)?0:u+i.length;t=ar.exec(e);){let{0:m,index:f,groups:{capturingStart:g,noncapturingStart:y}}=t;if("["===m)d++;else if(d)"]"===m&&d--;else if("(?>"!==m||h){if(h&&y)p++;else if(g)h?p++:(l++,s.push(l+c));else if(")"===m&&h){if(!p){let t=l+ ++c;e=`${e.slice(0,u)}${i}${e.slice(u+3,f)}))<$$${t}>)${e.slice(f+1)}`,r=!0,o.push(t);for(let e=0;e<n.length;e++)n[e]>=t&&n[e]++;if(a.size){let e=new Map;a.forEach((r,n)=>{e.set(n>=t?n+1:n,r.map(e=>e>=t?e+1:e))}),a=e}break}p--}}else u=f,h=!0}}while(r)return n.push(...o),{pattern:e=ae(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:e,groups:{backrefNum:t,wrappedBackrefNum:r}})=>{if(t){let r=+t;if(r>s.length-1)throw Error(`Backref "${e}" greater than number of captures`);return`\\${s[r]}`}return`\\${r}`},n7.DEFAULT),captureTransfers:a,hiddenCaptures:n}}(function(e){let t;if(!RegExp(`${an}\\+`).test(e))return{pattern:e};let r=[],n=null,a=null,i="",s=0;for(aa.lastIndex=0;t=aa.exec(e);){let{0:c,index:u,groups:{qBase:d,qMod:p,invalidQ:h}}=t;if("["===c)s||(a=u),s++;else if("]"===c)s?s--:a=null;else if(!s)if("+"===p&&i&&!i.startsWith("(")){if(h)throw Error(`Invalid quantifier "${c}"`);let t=-1;if(/^\{\d+\}$/.test(d)){var o,l;o=e,l=u+d.length,e=o.slice(0,l)+""+o.slice(l+p.length)}else{if(")"===i||"]"===i){let t=")"===i?n:a;if(null===t)throw Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,t)}(?>${e.slice(t,u)}${d})${e.slice(u+c.length)}`}else e=`${e.slice(0,u-i.length)}(?>${i}${d})${e.slice(u+c.length)}`;t+=4}aa.lastIndex+=t}else"("===c[0]?r.push(u):")"===c&&(n=r.length?r.pop():null);i=c}return{pattern:e}}(u.pattern).pattern,{captureTransfers:u.captureTransfers,hiddenCaptures:u.hiddenCaptures}),p={pattern:d.pattern,flags:`${o.hasIndices?"d":""}${o.global?"g":""}${c.flags}${c.options.disable.v?"u":"v"}`};if(o.avoidSubclass){if(o.lazyCompileLength!==1/0)throw Error("Lazy compilation requires subclass")}else{let e=d.hiddenCaptures.sort((e,t)=>e-t),t=Array.from(d.captureTransfers),r=l._strategy,n=p.pattern.length>=o.lazyCompileLength;(e.length||t.length||r||n)&&(p.options={...e.length&&{hiddenCaptures:e},...t.length&&{transfers:t},...r&&{strategy:r},...n&&{lazyCompile:n}})}return p}(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...{target:t.target}})).options?new a9(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)},{createScanner:e=>new a4(e,t),createString:e=>({content:e})}}({forgiving:!0}),ie=Object.fromEntries(eM.flatMap(e=>{var t;return(null!=(t=e.aliases)?t:[]).map(t=>[t,e.id])})),it=new Set(Object.keys(eF)),ir=e=>{let t=e.trim().toLowerCase();return ie[t]||(it.has(t),t)},ia=new Map,ii=new Map,is=new Map,io=e=>{var t;return"string"==typeof e?e:null!=(t=e.name)?t:"custom"},il=function(e={}){var t;let r=null!=(t=e.themes)?t:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(e){let t=ir(e);return it.has(t)},getSupportedLanguages:()=>Array.from(it),getThemes:()=>r,highlight({code:e,language:t,themes:r},n){let a,i,s=ir(t),o=[io(r[0]),io(r[1])],l=(a=e.slice(0,100),i=e.length>100?e.slice(-100):"",`${s}:${o[0]}:${o[1]}:${e.length}:${a}:${i}`);return ii.has(l)?ii.get(l):(n&&(is.has(l)||is.set(l,new Set),is.get(l).add(n)),((e,t)=>{let r=`${e}-${io(t[0])}-${io(t[1])}`;if(ia.has(r))return ia.get(r);let n=nf({themes:t,langs:[e],engine:a7});return ia.set(r,n),n})(it.has(s)?s:"text",r).then(t=>{let r=t.getLoadedLanguages().includes(s)?s:"text",n=t.codeToTokens(e,{lang:r,themes:{light:o[0],dark:o[1]}});ii.set(l,n);let a=is.get(l);if(a){for(let e of a)e(n);is.delete(l)}}).catch(e=>{console.error("[Streamdown Code] Failed to highlight code:",e),is.delete(l)}),null)}}}(),ic=e.i(346367),iu=e.i(676044);function id(e,t){let r=function(e,t){switch(e.nodeType){case 1:return function(e,t){let r=e.namespaceURI,n=r===iu.webNamespaces.svg?ic.s:ic.h,a=r===iu.webNamespaces.html?e.tagName.toLowerCase():e.tagName,i=r===iu.webNamespaces.html&&"template"===a?e.content:e,s=e.getAttributeNames(),o={},l=-1;for(;++l<s.length;)o[s[l]]=e.getAttribute(s[l])||"";return n(a,o,ip(i,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return function(e,t){return{type:"root",children:ip(e,t)}}(e,t);case 10:return{type:"doctype"};default:return}}(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function ip(e,t){let r=e.childNodes,n=[],a=-1;for(;++a<r.length;){let e=id(r[a],t);void 0!==e&&n.push(e)}return n}let ih=new DOMParser;var im=e.i(457579);let ig=function(e,t,r){let n=(0,im.convert)(r);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===1/0)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]},iy=function(e){if(null==e)return i_;if("string"==typeof e){var t;return t=e,ib(function(e){return e.tagName===t})}if("object"==typeof e){var r=e;let t=[],n=-1;for(;++n<r.length;)t[n]=iy(r[n]);return ib(function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1})}if("function"==typeof e)return ib(e);throw Error("Expected function, string, or array as `test`")};function ib(e){return function(t,r,n){var a;return!!(null!==(a=t)&&"object"==typeof a&&"type"in a&&"tagName"in a&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function i_(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let iw=/\n/g,iA=/[\t ]+/g,ik=iy("br"),iC=iy(function(e){return"td"===e.tagName||"th"===e.tagName}),iS=iy("p"),ix=iy("tr"),iv=iy(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),iE=iy(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function iN(e,t){let r,n=String(e.value),a=[],i=[],s=0;for(;s<=n.length;){iw.lastIndex=s;let e=iw.exec(n),r=e&&"index"in e?e.index:n.length;a.push(function(e,t,r){let n,a=[],i=0;for(;i<e.length;){iA.lastIndex=i;let r=iA.exec(e);n=r?r.index:e.length,i||n||!r||t||a.push(""),i!==n&&a.push(e.slice(i,n)),i=r?n+r[0].length:n}return i===n||r||a.push(""),a.join(" ")}(n.slice(s,r).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==s||t.breakBefore,r!==n.length||t.breakAfter)),s=r+1}let o=-1;for(;++o<a.length;)8203===a[o].charCodeAt(a[o].length-1)||o<a.length-1&&8203===a[o+1].charCodeAt(0)?(i.push(a[o]),r=void 0):a[o]?("number"==typeof r&&i.push(r),i.push(a[o]),r=0):(0===o||o===a.length-1)&&i.push(0);return i}function iI(e,t){if("element"===e.type){let r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}var i$=e.i(716400),iL=e.i(733644);let iP={},iT=[];function iM(e){let t=e||iP;return function(e,r){(0,iL.visitParents)(e,"element",function(e,n){var a,i,s;let o,l,c=Array.isArray(e.properties.className)?e.properties.className:iT,u=c.includes("language-math"),d=c.includes("math-display"),p=c.includes("math-inline"),h=d;if(!u&&!d&&!p)return;let m=n[n.length-1],f=e;if("code"===e.tagName&&u&&m&&"element"===m.type&&"pre"===m.tagName&&(f=m,m=n[n.length-2],h=!0),!m)return;let g=function(e,t){let r,n="children"in e?e.children:[],a=iE(e),i=iI(e,{whitespace:(t||{}).whitespace||"normal",breakBefore:!1,breakAfter:!1}),s=[];("text"===e.type||"comment"===e.type)&&s.push(...iN(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<n.length;)s.push(...function e(t,r,n){return"element"===t.type?function(t,r,n){let a,i,s=iI(t,n),o=t.children||[],l=-1,c=[];if(iv(t))return c;for(ik(t)||ix(t)&&ig(r,t,ix)?i="\n":iS(t)?(a=2,i=2):iE(t)&&(a=1,i=1);++l<o.length;)c=c.concat(e(o[l],t,{whitespace:s,breakBefore:l?void 0:a,breakAfter:l<o.length-1?ik(o[l+1]):i}));return iC(t)&&ig(r,t,iC)&&c.push(" "),a&&c.unshift(a),i&&c.push(i),c}(t,r,n):"text"===t.type?"normal"===n.whitespace?iN(t,n):[String(t.value)]:[]}(n[o],e,{whitespace:i,breakBefore:o?void 0:a,breakAfter:o<n.length-1?ik(n[o+1]):a}));let l=[];for(o=-1;++o<s.length;){let e=s[o];"number"==typeof e?void 0!==r&&e>r&&(r=e):e&&(void 0!==r&&r>-1&&l.push("\n".repeat(r)||" "),r=-1,l.push(e))}return l.join("")}(f,{whitespace:"pre"});try{l=i$.default.renderToString(g,{...t,displayMode:h,throwOnError:!0})}catch(i){let a=i.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...n,e],cause:i,place:e.position,ruleId:a,source:"rehype-katex"});try{l=i$.default.renderToString(g,{...t,displayMode:h,strict:"ignore",throwOnError:!1})}catch{l=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(i)},children:[{type:"text",value:g}]}]}}"string"==typeof l&&(l=(a=l,i={fragment:!0},id(i?.fragment?(s=a,(o=document.createElement("template")).innerHTML=s,o.content):ih.parseFromString(a,"text/html"),{})||{type:"root",children:[]}).children);let y=m.children.indexOf(f);return m.children.splice(y,1,...l),iL.SKIP})}}var iR=e.i(436484),iO=e.i(204108);let iF={tokenize:function(e,t,r){let n=this,a=n.events[n.events.length-1],i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,s=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(n){return 36===n?(e.consume(n),s++,t):s<2?r(n):(e.exit("mathFlowFenceSequence"),(0,iO.factorySpace)(e,o,"whitespace")(n))}(t)};function o(t){return null===t||(0,B.markdownLineEnding)(t)?l(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(n){return null===n||(0,B.markdownLineEnding)(n)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),l(n)):36===n?r(n):(e.consume(n),t)}(t))}function l(r){return(e.exit("mathFlowFence"),n.interrupt)?t(r):e.attempt(iD,c,p)(r)}function c(t){return e.attempt({tokenize:h,partial:!0},p,u)(t)}function u(t){return(i?(0,iO.factorySpace)(e,d,"linePrefix",i+1):d)(t)}function d(t){return null===t?p(t):(0,B.markdownLineEnding)(t)?e.attempt(iD,c,p)(t):(e.enter("mathFlowValue"),function t(r){return null===r||(0,B.markdownLineEnding)(r)?(e.exit("mathFlowValue"),d(r)):(e.consume(r),t)}(t))}function p(r){return e.exit("mathFlow"),t(r)}function h(e,t,r){let a=0;return(0,iO.factorySpace)(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(n){return 36===n?(a++,e.consume(n),t):a<s?r(n):(e.exit("mathFlowFenceSequence"),(0,iO.factorySpace)(e,i,"whitespace")(n))}(t)},"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(n){return null===n||(0,B.markdownLineEnding)(n)?(e.exit("mathFlowFence"),t(n)):r(n)}}},concrete:!0,name:"mathFlow"},iD={tokenize:function(e,t,r){let n=this;return function(r){return null===r?t(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a)};function a(e){return n.parser.lazy[n.now().line]?r(e):t(e)}},partial:!0};function iG(e){let t,r,n=e.length-4,a=3;if(("lineEnding"===e[3][1].type||"space"===e[a][1].type)&&("lineEnding"===e[n][1].type||"space"===e[n][1].type)){for(t=a;++t<n;)if("mathTextData"===e[t][1].type){e[n][1].type="mathTextPadding",e[a][1].type="mathTextPadding",a+=2,n-=2;break}}for(t=a-1,n++;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):(t===n||"lineEnding"===e[t][1].type)&&(e[r][1].type="mathTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e}function iB(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let ij={};function iU(e){let t,r=e||ij,n=this.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push({flow:{36:iF},text:{36:(null==(t=(r||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,r,n){let a,i,s=0;return function(r){return e.enter("mathText"),e.enter("mathTextSequence"),function r(a){return 36===a?(e.consume(a),s++,r):s<2&&!t?n(a):(e.exit("mathTextSequence"),o(a))}(r)};function o(t){return null===t?n(t):36===t?(i=e.enter("mathTextSequence"),a=0,function t(n){return 36===n?(e.consume(n),a++,t):a===s?(e.exit("mathTextSequence"),e.exit("mathText"),r(n)):(i.type="mathTextData",l(n))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):(0,B.markdownLineEnding)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("mathTextData"),l(t))}function l(t){return null===t||32===t||36===t||(0,B.markdownLineEnding)(t)?(e.exit("mathTextData"),o(t)):(e.consume(t),l)}},resolve:iG,previous:iB,name:"mathText"})}}),i.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),r=this.stack[this.stack.length-1];(0,y.ok)("math"===r.type),this.exit(e),r.value=t;let n=r.data.hChildren[0];(0,y.ok)("element"===n.type),(0,y.ok)("code"===n.tagName),n.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];(0,y.ok)("math"===t.type),t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),r=this.stack[this.stack.length-1];(0,y.ok)("inlineMath"===r.type),this.exit(e),r.value=t,r.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),s.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),r.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:"\n",inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,r,n){let a=e.value||"",i=r.createTracker(n),s="$".repeat(Math.max((0,iR.longestStreak)(a,"$")+1,2)),o=r.enter("mathFlow"),l=i.move(s);if(e.meta){let t=r.enter("mathFlowMeta");l+=i.move(r.safe(e.meta,{after:"\n",before:l,encode:["$"],...i.current()})),t()}return l+=i.move("\n"),a&&(l+=i.move(a+"\n")),l+=i.move(s),o(),l},inlineMath:r}};function r(e,r,n){let a=e.value||"",i=1;for(!t&&i++;RegExp("(^|[^$])"+"\\$".repeat(i)+"([^$]|$)").test(a);)i++;let s="$".repeat(i);/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^\$|\$$/.test(a))&&(a=" "+a+" ");let o=-1;for(;++o<n.unsafe.length;){let e,t=n.unsafe[o];if(!t.atBreak)continue;let r=n.compilePattern(t);for(;e=r.exec(a);){let t=e.index;10===a.codePointAt(t)&&13===a.codePointAt(t-1)&&t--,a=a.slice(0,t)+" "+a.slice(e.index+1)}}return s+a+s}}(r))}var iz=function(e={}){var t,r;return{name:"katex",type:"math",remarkPlugin:[iU,{singleDollarTextMath:null!=(t=e.singleDollarTextMath)&&t}],rehypePlugin:[iM,{errorColor:null!=(r=e.errorColor)?r:"var(--color-muted-foreground)"}],getStyles:()=>"katex/dist/katex.min.css"}}(),iW=e.i(696017);e.i(409843);var iq=e.i(865264),iH=e.i(121292);e.i(369110),e.i(382793),e.i(502056),e.i(217248),e.i(224797),e.i(836333);var iV=e.i(29836),iX=e.i(447804),iQ=e.i(60231),iK=e.i(508324),iJ=e.i(419524),iZ=e.i(440524);e.i(947716);var iY=e.i(723685),i0="comm",i1="rule",i2="decl",i8="@keyframes",i6="@layer",i5=Math.abs,i3=String.fromCharCode;function i9(e,t,r){return e.replace(t,r)}function i4(e,t){return 0|e.charCodeAt(t)}function i7(e,t,r){return e.slice(t,r)}function se(e){return e.length}function st(e,t){return t.push(e),e}var sr=1,sn=1,sa=0,si=0,ss=0,so="";function sl(e,t,r,n,a,i,s,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:sr,column:sn,length:s,return:"",siblings:o}}function sc(){return ss=si<sa?i4(so,si++):0,sn++,10===ss&&(sn=1,sr++),ss}function su(){return i4(so,si)}function sd(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function sp(e){var t,r;return(t=si-1,r=function e(t){for(;sc();)switch(ss){case t:return si;case 34:case 39:34!==t&&39!==t&&e(ss);break;case 40:41===t&&e(t);break;case 92:sc()}return si}(91===e?e+2:40===e?e+1:e),i7(so,t,r)).trim()}function sh(e,t,r,n,a,i,s,o,l,c,u,d){for(var p=a-1,h=0===a?i:[""],m=h.length,f=0,g=0,y=0;f<n;++f)for(var b=0,_=i7(e,p+1,p=i5(g=s[f])),w=e;b<m;++b)(w=(g>0?h[b]+" "+_:i9(_,/&\f/g,h[b])).trim())&&(l[y++]=w);return sl(e,t,r,0===a?i1:o,l,c,u,d)}function sm(e,t,r,n,a){return sl(e,t,r,i2,i7(e,0,n),i7(e,n+1,-1),n,a)}function sf(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function sg(e,t,r,n){switch(e.type){case i6:if(e.children.length)break;case"@import":case"@namespace":case i2:return e.return=e.return||e.value;case i0:return"";case i8:return e.return=e.value+"{"+sf(e.children,n)+"}";case i1:if(!se(e.value=e.props.join(",")))return""}return se(r=sf(e.children,n))?e.return=e.value+"{"+r+"}":""}var sy=e.i(424154),sb=e.i(647608),s_=e.i(532780),sw=e.i(568482),sA=e.i(338489);function sk(e){if(null==e)return!0;if((0,s_.isArrayLike)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,sb.isBuffer)(e)||!!(0,sA.isTypedArray)(e)||!!(0,sw.isArguments)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let r=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===r.filter(e=>"constructor"!==e).length:0===r.length}return!0}var sC={id:"c4",detector:(0,iJ.__name)(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),loader:(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(143904);return{id:"c4",diagram:t}},"loader")},sS="flowchart",sx=(0,iJ.__name)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-wrapper"&&t?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(e),"detector"),sv=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(299022);return{id:sS,diagram:t}},"loader"),sE={id:sS,detector:sx,loader:sv},sN="flowchart-v2",sI=(0,iJ.__name)((e,t)=>t?.flowchart?.defaultRenderer!=="dagre-d3"&&(t?.flowchart?.defaultRenderer==="elk"&&(t.layout="elk"),!!/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(e)),"detector"),s$=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(299022);return{id:sN,diagram:t}},"loader"),sL={id:sN,detector:sI,loader:s$},sP="swimlane",sT=(0,iJ.__name)(e=>/^\s*swimlane-beta\b/.test(e),"detector"),sM=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(868278);return{id:sP,diagram:t}},"loader"),sR={id:sP,detector:sT,loader:sM},sO={id:"er",detector:(0,iJ.__name)(e=>/^\s*erDiagram/.test(e),"detector"),loader:(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(126038);return{id:"er",diagram:t}},"loader")},sF="gitGraph",sD=(0,iJ.__name)(e=>/^\s*gitGraph/.test(e),"detector"),sG=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(405760);return{id:sF,diagram:t}},"loader"),sB={id:sF,detector:sD,loader:sG},sj="gantt",sU=(0,iJ.__name)(e=>/^\s*gantt/.test(e),"detector"),sz=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(216587);return{id:sj,diagram:t}},"loader"),sW={id:sj,detector:sU,loader:sz},sq="info",sH=(0,iJ.__name)(e=>/^\s*info/.test(e),"detector"),sV=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(937084);return{id:sq,diagram:t}},"loader"),sX={id:sq,detector:sH,loader:sV},sQ={id:"pie",detector:(0,iJ.__name)(e=>/^\s*pie/.test(e),"detector"),loader:(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(761201);return{id:"pie",diagram:t}},"loader")},sK="quadrantChart",sJ=(0,iJ.__name)(e=>/^\s*quadrantChart/.test(e),"detector"),sZ=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(480988);return{id:sK,diagram:t}},"loader"),sY={id:sK,detector:sJ,loader:sZ},s0="xychart",s1=(0,iJ.__name)(e=>/^\s*xychart(-beta)?/.test(e),"detector"),s2=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(437446);return{id:s0,diagram:t}},"loader"),s8={id:s0,detector:s1,loader:s2},s6="requirement",s5=(0,iJ.__name)(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),s3=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(775900);return{id:s6,diagram:t}},"loader"),s9={id:s6,detector:s5,loader:s3},s4="sequence",s7=(0,iJ.__name)(e=>/^\s*sequenceDiagram/.test(e),"detector"),oe=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(654159);return{id:s4,diagram:t}},"loader"),ot={id:s4,detector:s7,loader:oe},or="class",on=(0,iJ.__name)((e,t)=>t?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(e),"detector"),oa=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(110338);return{id:or,diagram:t}},"loader"),oi={id:or,detector:on,loader:oa},os="classDiagram",oo=(0,iJ.__name)((e,t)=>!!/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(e),"detector"),ol=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(4699);return{id:os,diagram:t}},"loader"),oc={id:os,detector:oo,loader:ol},ou="state",od=(0,iJ.__name)((e,t)=>t?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(e),"detector"),op=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(99530);return{id:ou,diagram:t}},"loader"),oh={id:ou,detector:od,loader:op},om="stateDiagram",of=(0,iJ.__name)((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer==="dagre-wrapper"),"detector"),og=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(633604);return{id:om,diagram:t}},"loader"),oy={id:om,detector:of,loader:og},ob="journey",o_=(0,iJ.__name)(e=>/^\s*journey/.test(e),"detector"),ow=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(104423);return{id:ob,diagram:t}},"loader"),oA={id:ob,detector:o_,loader:ow},ok={draw:(0,iJ.__name)((e,t,r)=>{iK.log.debug("rendering svg for syntax error\n");let n=(0,iW.selectSvgElement)(t),a=n.append("g");n.attr("viewBox","0 0 2412 512"),(0,iQ.configureSvgSize)(n,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},oC={db:{},renderer:ok,parser:{parse:(0,iJ.__name)(()=>{},"parse")}},oS="flowchart-elk",ox=(0,iJ.__name)((e,t={})=>!!(/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk")&&(t.layout="elk",!0),"detector"),ov=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(299022);return{id:oS,diagram:t}},"loader"),oE={id:oS,detector:ox,loader:ov},oN="timeline",oI=(0,iJ.__name)(e=>/^\s*timeline/.test(e),"detector"),o$=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(9691);return{id:oN,diagram:t}},"loader"),oL={id:oN,detector:oI,loader:o$},oP="mindmap",oT=(0,iJ.__name)(e=>/^\s*mindmap/.test(e),"detector"),oM=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(265584);return{id:oP,diagram:t}},"loader"),oR={id:oP,detector:oT,loader:oM},oO="kanban",oF=(0,iJ.__name)(e=>/^\s*kanban/.test(e),"detector"),oD=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(847615);return{id:oO,diagram:t}},"loader"),oG={id:oO,detector:oF,loader:oD},oB="sankey",oj=(0,iJ.__name)(e=>/^\s*sankey(-beta)?/.test(e),"detector"),oU=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(650519);return{id:oB,diagram:t}},"loader"),oz={id:oB,detector:oj,loader:oU},oW="packet",oq=(0,iJ.__name)(e=>/^\s*packet(-beta)?/.test(e),"detector"),oH=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(725135);return{id:oW,diagram:t}},"loader"),oV={id:oW,detector:oq,loader:oH},oX="radar",oQ=(0,iJ.__name)(e=>/^\s*radar-beta/.test(e),"detector"),oK=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(775281);return{id:oX,diagram:t}},"loader"),oJ={id:oX,detector:oQ,loader:oK},oZ="block",oY=(0,iJ.__name)(e=>/^\s*block(-beta)?/.test(e),"detector"),o0=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(705108);return{id:oZ,diagram:t}},"loader"),o1={id:oZ,detector:oY,loader:o0},o2="treeView",o8=(0,iJ.__name)(e=>/^\s*treeView-beta/.test(e),"detector"),o6=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(121563);return{id:o2,diagram:t}},"loader"),o5={id:o2,detector:o8,loader:o6},o3="architecture",o9=(0,iJ.__name)(e=>/^\s*architecture/.test(e),"detector"),o4=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(382528);return{id:o3,diagram:t}},"loader"),o7={id:o3,detector:o9,loader:o4},le="eventmodeling",lt=(0,iJ.__name)(e=>/^\s*eventmodeling/.test(e),"detector"),lr=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(840094);return{id:le,diagram:t}},"loader"),ln={id:le,detector:lt,loader:lr},la="ishikawa",li=(0,iJ.__name)(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),ls=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(223045);return{id:la,diagram:t}},"loader"),lo={id:la,detector:li,loader:ls},ll="venn",lc=(0,iJ.__name)(e=>/^\s*venn-beta/.test(e),"detector"),lu=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(539575);return{id:ll,diagram:t}},"loader"),ld={id:ll,detector:lc,loader:lu},lp="treemap",lh=(0,iJ.__name)(e=>/^\s*treemap/.test(e),"detector"),lm=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(806739);return{id:lp,diagram:t}},"loader"),lf={id:lp,detector:lh,loader:lm},lg="wardley",ly=(0,iJ.__name)(e=>/^\s*wardley-beta/i.test(e),"detector"),lb=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(85919);return{id:lg,diagram:t}},"loader"),l_={id:lg,detector:ly,loader:lb},lw="cynefin",lA=(0,iJ.__name)(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),lk=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(342649);return{id:lw,diagram:t}},"loader"),lC={id:lw,detector:lA,loader:lk},lS="railroad",lx=(0,iJ.__name)(e=>/^\s*railroad-beta/i.test(e),"detector"),lv=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(780947);return{id:lS,diagram:t}},"loader"),lE={id:lS,detector:lx,loader:lv},lN="railroadEbnf",lI=(0,iJ.__name)(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),l$=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(257999);return{id:lN,diagram:t}},"loader"),lL={id:lN,detector:lI,loader:l$},lP="railroadAbnf",lT=(0,iJ.__name)(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),lM=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(350117);return{id:lP,diagram:t}},"loader"),lR={id:lP,detector:lT,loader:lM},lO="railroadPeg",lF=(0,iJ.__name)(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),lD=(0,iJ.__name)(async()=>{let{diagram:t}=await e.A(121612);return{id:lO,diagram:t}},"loader"),lG={id:lO,detector:lF,loader:lD},lB=!1,lj=(0,iJ.__name)(()=>{lB||(lB=!0,(0,iQ.registerDiagram)("error",oC,e=>"error"===e.toLowerCase().trim()),(0,iQ.registerDiagram)("---",{db:{clear:(0,iJ.__name)(()=>{},"clear")},styles:{},renderer:{draw:(0,iJ.__name)(()=>{},"draw")},parser:{parse:(0,iJ.__name)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,iJ.__name)(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),(0,iQ.registerLazyLoadedDiagrams)(oE,oR,o7),(0,iQ.registerLazyLoadedDiagrams)(sC,oG,oc,oi,sO,sW,sX,sQ,s9,ot,sR,sL,sE,oL,sB,oy,oh,oA,sY,oz,oV,s8,o1,ln,o5,oJ,lo,lf,lE,lL,lR,lG,ld,l_,lC))},"addDiagrams"),lU=(0,iJ.__name)(async()=>{iK.log.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(iQ.detectors).map(async([e,{detector:t,loader:r}])=>{if(r)try{(0,iQ.getDiagram)(e)}catch{try{let{diagram:e,id:n}=await r();(0,iQ.registerDiagram)(n,e,t)}catch(t){throw iK.log.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete iQ.detectors[e],t}}}))).filter(e=>"rejected"===e.status);if(e.length>0){for(let t of(iK.log.error(`Failed to load ${e.length} external diagrams`),e))iK.log.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams");function lz(e,t){e.attr("role","graphics-document document"),""!==t&&e.attr("aria-roledescription",t)}function lW(e,t,r,n){if(void 0!==e.insert){if(r){let t=`chart-desc-${n}`;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(r)}if(t){let r=`chart-title-${n}`;e.attr("aria-labelledby",r),e.insert("title",":first-child").attr("id",r).text(t)}}}(0,iJ.__name)(lz,"setA11yDiagramInfo"),(0,iJ.__name)(lW,"addSVGa11yTitleDescription");var lq=class e{constructor(e,t,r,n,a){this.type=e,this.text=t,this.db=r,this.parser=n,this.renderer=a}static{(0,iJ.__name)(this,"Diagram")}static async fromText(t,r={}){let n=(0,iQ.getConfig)(),a=(0,iQ.detectType)(t,n);t=(0,iX.encodeEntities)(t)+"\n";try{(0,iQ.getDiagram)(a)}catch{let e=(0,iQ.getDiagramLoader)(a);if(!e)throw new iQ.UnknownDiagramError(`Diagram ${a} not found.`);let{id:t,diagram:r}=await e();(0,iQ.registerDiagram)(t,r)}let{db:i,parser:s,renderer:o,init:l}=(0,iQ.getDiagram)(a);return s.parser&&(s.parser.yy=i),i.clear?.(),l?.(n),r.title&&i.setDiagramTitle?.(r.title),await s.parse(t),new e(a,t,i,s,o)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},lH=[],lV=(0,iJ.__name)(()=>{lH.forEach(e=>{e()}),lH=[]},"attachFunctions"),lX=(0,iJ.__name)(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function lQ(e){let t=e.match(iQ.frontMatterRegex);if(!t)return{text:e,metadata:{}};let r=t[1],n=r?t[2].split("\n").map(e=>e.startsWith(r)?e.slice(r.length):e).join("\n"):t[2],a=(0,iq.load)(n,{schema:iq.JSON_SCHEMA})??{};a="object"!=typeof a||Array.isArray(a)?{}:a;let i={};return a.displayMode&&(i.displayMode=a.displayMode.toString()),a.title&&(i.title=a.title.toString()),a.config&&(i.config=a.config),{text:e.slice(t[0].length),metadata:i}}(0,iJ.__name)(lQ,"extractFrontMatter");var lK=(0,iJ.__name)(e=>e.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,r)=>"<"+t+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),lJ=(0,iJ.__name)(e=>{let{text:t,metadata:r}=lQ(e),{displayMode:n,title:a,config:i={}}=r;return n&&(i.gantt||(i.gantt={}),i.gantt.displayMode=n),{title:a,config:i,text:t}},"processFrontmatter"),lZ=(0,iJ.__name)(e=>{let t=iX.utils_default.detectInit(e)??{},r=iX.utils_default.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:e})=>"wrap"===e):r?.type==="wrap"&&(t.wrap=!0),{text:(0,iX.removeDirectives)(e),directive:t}},"processDirectives");function lY(e){let t=lJ(lK(e)),r=lZ(t.text),n=(0,iX.cleanAndMerge)(t.config,r.directive);return{code:e=lX(r.text),title:t.title,config:n}}function l0(e){return btoa(Array.from(new TextEncoder().encode(e),e=>String.fromCodePoint(e)).join(""))}(0,iJ.__name)(lY,"preprocessDiagram"),(0,iJ.__name)(l0,"toBase64");var l1=["foreignobject"],l2=["dominant-baseline"];function l8(e){let t=lY(e);return(0,iQ.reset)(),(0,iQ.addDirective)(t.config??{}),t}async function l6(e,t){lj();try{let{code:t,config:r}=l8(e);return{diagramType:(await cs(t)).type,config:r}}catch(e){if(t?.suppressErrors)return!1;throw e}}(0,iJ.__name)(l8,"processAndSetConfigs"),(0,iJ.__name)(l6,"parse");var l5=(0,iJ.__name)((e,t,r=[])=>{let n=(0,iQ.sanitizeCss)(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${n}`},"cssImportantStyles"),l3=(0,iJ.__name)((e,t=new Map)=>{let r=new CSSStyleSheet;if(void 0!==e.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),void 0!==e.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){let n=(0,iQ.getEffectiveHtmlLabels)(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(e=>{sk(e.styles)||n.forEach(t=>{r.insertRule(l5(e.id,t,e.styles),r.cssRules.length)}),sk(e.textStyles)||r.insertRule(l5(e.id,"tspan",(e?.textStyles||[]).map(e=>e.replace("color","fill"))),r.cssRules.length)})}let n="";if(void 0!==e.themeCSS)if("function"==typeof r.replaceSync){let t=new CSSStyleSheet;t.replaceSync(e.themeCSS),n=(0,iQ.cssStyleSheetToString)(t)+"\n"}else n+=`${e.themeCSS}
139
139
  `;return n+(0,iQ.cssStyleSheetToString)(r)},"createCssStyles"),l9=(0,iJ.__name)((e,t)=>{var r,n,a,i,s;return sf((a=function e(t,r,n,a,i,s,o,l,c){for(var u,d,p,h,m=0,f=0,g=o,y=0,b=0,_=0,w=1,A=1,k=1,C=0,S=0,x="",v=i,E=s,N=a,I=x;A;)switch(_=S,S=sc()){case 40:108!=_&&58==i4(I,g-1)?(C++,I+="("):I+=sp(S);break;case 41:C--,I+=")";break;case 34:case 39:case 91:I+=sp(S);break;case 9:case 10:case 13:case 32:if(C>0){I+=i3(S);break}I+=function(e){for(;ss=su();)if(ss<33)sc();else break;return sd(e)>2||sd(ss)>3?"":" "}(_);break;case 92:I+=function(e,t){for(var r;--t&&sc()&&!(ss<48)&&!(ss>102)&&(!(ss>57)||!(ss<65))&&(!(ss>70)||!(ss<97)););return r=si+(t<6&&32==su()&&32==sc()),i7(so,e,r)}(si-1,7);continue;case 47:switch(su()){case 42:case 47:st((u=function(e,t){for(;sc();)if(e+ss===57)break;else if(e+ss===84&&47===su())break;return"/*"+i7(so,t,si-1)+"*"+i3(47===e?e:sc())}(sc(),si),d=r,p=n,h=c,sl(u,d,p,i0,i3(ss),i7(u,2,-2),0,h)),c),(5==sd(_||1)||5==sd(su()||1))&&se(I)&&" "!==i7(I,-1,void 0)&&(I+=" ");break;default:I+="/"}break;case 123*w:l[m++]=se(I)*k;case 125*w:case 59:case 0:if(C>0&&S){I+=i3(S);break}switch(S){case 0:case 125:A=0;case 59+f:-1==k&&(I=i9(I,/\f/g,"")),b>0&&(se(I)-g||0===w)&&st(b>32?sm(I+";",a,n,g-1,c):sm(i9(I," ","")+";",a,n,g-2,c),c);break;case 59:I+=";";default:if(st(N=sh(I,r,n,m,f,i,l,x,v=[],E=[],g,s),s),123===S)if(0===f)e(I,r,N,N,v,s,g,l,E);else{switch(y){case 99:if(110===i4(I,3))break;case 108:if(97===i4(I,2))break;default:f=0;case 100:case 109:case 115:}f?e(t,N,N,a&&st(sh(t,N,N,0,0,i,l,x,i,v=[],g,E),E),i,E,g,l,a?v:E):e(I,N,N,N,[""],E,0,l,E)}}m=f=b=0,w=k=1,x=I="",g=o;break;case 58:g=1+se(I),b=_;default:if(w<1){if(123==S)--w;else if(125==S&&0==w++&&125==(ss=si>0?i4(so,--si):0,sn--,10===ss&&(sn=1,sr--),ss))continue}switch(I+=i3(S),S*w){case 38:k=f>0?1:(I+="\f",-1);break;case 44:if(C>0)break;l[m++]=(se(I)-1)*k,k=1;break;case 64:45===su()&&(I+=sp(sc())),y=su(),f=g=se(x=I+=function(e){for(;!sd(su());)sc();return i7(so,e,si)}(si)),S++;break;case 45:45===_&&2==se(I)&&(w=0)}}return s}("",null,null,null,[""],(n=r=`${e}{${t}}`,sr=sn=1,sa=se(so=n),si=0,r=[]),0,[0],r),so="",a),(s=(i=[(0,iJ.__name)(function(t,r,n,a){"rule"===t.type&&Array.isArray(t.props)?t.parent&&t.parent.type===i8||(t.props=t.props.map(r=>r===e&&Array.isArray(t.children)&&t.children.every(e=>"decl"===e.type&&new Set(["font-family","font-size","fill"]).has(e.props))||(r.startsWith(`${e} `)||r.startsWith(`${e}>`))&&!r.startsWith(`${e} ||`)?r:`${e} ${r}`)):t.type.startsWith("@")&&(["@media","@supports",i6,"@scope","@container","@starting-style",i8].includes(t.type)||(iK.log.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=i0))},"addNamespace"),sg]).length,function(e,t,r,n){for(var a="",o=0;o<s;o++)a+=i[o](e,t,r,n)||"";return a}))},"compileCSS"),l4=(0,iJ.__name)((e,t,r,n)=>{let a=l3(e,r),i=(0,iQ.styles_default)(t,a,{...e.themeVariables,theme:e.theme,look:e.look},n);return l9(n,i)},"createUserStyles"),l7=(0,iJ.__name)((e="",t,r)=>{let n=e;return r||t||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=(0,iX.decodeEntities)(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),ce=(0,iJ.__name)((e="",t)=>{let r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":"100%",n=l0(`<body style="margin:0">${e}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="allow-top-navigation-by-user-activation allow-popups">
140
140
  The "iframe" tag is not supported by your browser.
141
- </iframe>`},"putIntoIFrame"),ct=(0,iJ.__name)((e,t,r,n,a)=>{let i=e.append("div");i.attr("id",r),n&&i.attr("style",n);let s=i.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return a&&s.attr("xmlns:xlink",a),s.append("g"),e},"appendDivSvgG");function cr(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,iJ.__name)(cr,"sandboxedIframe");var cn=(0,iJ.__name)((e,t,r,n)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(n)?.remove()},"removeExistingElements"),ca=(0,iJ.__name)(async function(e,t,r){let n,a;lj();let i=l8(t);t=i.code;let s=(0,iQ.getConfig)();iK.log.debug(s),t.length>(s?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o=`#${e}`,l="i"+e,c="#"+l,u="d"+e,d="#"+u,p=(0,iJ.__name)(()=>{let e=m?c:d,t=(0,iY.select)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),h=(0,iY.select)(document.body),m="sandbox"===s.securityLevel,f="loose"===s.securityLevel,g=s.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),m){let e=cr((0,iY.select)(r),l);(h=(0,iY.select)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else h=(0,iY.select)(r);ct(h,e,u,`font-family: ${g}`,"http://www.w3.org/1999/xlink")}else{if(cn(document,e,u,l),m){let e=cr((0,iY.select)(document.body),l);(h=(0,iY.select)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else h=(0,iY.select)("body");ct(h,e,u)}try{n=await lq.fromText(t,{title:i.title})}catch(e){if(s.suppressErrorRendering)throw p(),e;n=await lq.fromText("error"),a=e}let y=h.select(d).node(),b=n.type,_=y.firstChild,w=_.firstChild,A=l4(s,b,n.renderer.getClasses?.(t,n),o),k=document.createElement("style");k.innerHTML=A,_.insertBefore(k,w);try{await n.renderer.draw(t,e,"11.17.2",n)}catch(r){throw s.suppressErrorRendering?p():ok.draw(t,e,"11.17.2"),r}co(b,h.select(`${d} svg`),n.db.getAccTitle?.(),n.db.getAccDescription?.());let C=(0,iJ.__name)(()=>{h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let t=h.select(d).node().innerHTML;return iK.log.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),t=l7(t,m,(0,iQ.evaluate)(s.arrowMarkerAbsolute)),m?t=ce(t,h.select(d+" svg").node()):f||(t=sy.default.sanitize(t,{ADD_TAGS:l1,ADD_ATTR:l2,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),lV(),t},"serializeSvg")();if(a)throw a;return p(),{diagramType:b,svg:C,bindFunctions:n.db.bindFunctions}},"render");function ci(e={}){let t=(0,iQ.assignWithDepth_default)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,iQ.saveConfigFromInitialize)(t),t?.theme&&t.theme in iQ.themes_default?t.themeVariables=iQ.themes_default[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=iQ.themes_default.default.getThemeVariables(t.themeVariables));let r="object"==typeof t?(0,iQ.setSiteConfig)(t):(0,iQ.getSiteConfig)();(0,iK.setLogLevel)(r.logLevel),lj()}(0,iJ.__name)(ci,"initialize");var cs=(0,iJ.__name)((e,t={})=>{let{code:r}=lY(e);return lq.fromText(r,t)},"getDiagramFromText");function co(e,t,r,n){lz(t,e),lW(t,r,n,t.attr("id"))}(0,iJ.__name)(co,"addA11yInfo");var cl=Object.freeze({render:ca,parse:l6,getDiagramFromText:cs,initialize:ci,getConfig:iQ.getConfig,setConfig:iQ.setConfig,getSiteConfig:iQ.getSiteConfig,updateSiteConfig:iQ.updateSiteConfig,reset:(0,iJ.__name)(()=>{(0,iQ.reset)()},"reset"),globalReset:(0,iJ.__name)(()=>{(0,iQ.reset)(iQ.defaultConfig)},"globalReset"),defaultConfig:iQ.defaultConfig});(0,iK.setLogLevel)((0,iQ.getConfig)().logLevel),(0,iQ.reset)((0,iQ.getConfig)());var cc=(0,iJ.__name)((e,t,r)=>{iK.log.warn(e),(0,iX.isDetailedError)(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),cu=(0,iJ.__name)(async function(e={querySelector:".mermaid"}){try{await cd(e)}catch(t){if((0,iX.isDetailedError)(t)&&iK.log.error(t.str),cC.parseError&&cC.parseError(t),!e.suppressErrors)throw iK.log.error("Use the suppressErrors option to suppress these errors"),t}},"run"),cd=(0,iJ.__name)(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){let n,a,i=cl.getConfig();if(iK.log.debug(`${!e?"No ":""}Callback function found`),r)n=r;else if(t)n=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");iK.log.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(iK.log.debug("Start On Load: "+i?.startOnLoad),cl.updateSiteConfig({startOnLoad:i?.startOnLoad}));let s=new iX.utils_default.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),o=[];for(let t of Array.from(n)){if(iK.log.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let r=`mermaid-${s.next()}`;a=t.innerHTML,a=(0,iZ.dedent)(iX.utils_default.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");let n=iX.utils_default.detectInit(a);n&&iK.log.debug("Detected early reinit: ",n);try{let{svg:n,bindFunctions:i}=await cA(r,a,t);t.innerHTML=n,e&&await e(r),i&&i(t)}catch(e){cc(e,o,cC.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),cp=(0,iJ.__name)(function(e){cl.initialize(e)},"initialize"),ch=(0,iJ.__name)(async function(e,t,r){iK.log.warn("mermaid.init is deprecated. Please use run instead."),e&&cp(e);let n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof t?n.querySelector=t:t&&(t instanceof HTMLElement?n.nodes=[t]:n.nodes=t),await cu(n)},"init"),cm=(0,iJ.__name)(async(e,{lazyLoad:t=!0}={})=>{lj(),(0,iQ.registerLazyLoadedDiagrams)(...e),!1===t&&await lU()},"registerExternalDiagrams"),cf=(0,iJ.__name)(function(){if(cC.startOnLoad){let{startOnLoad:e}=cl.getConfig();e&&cC.run().catch(e=>iK.log.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",cf,!1);var cg=(0,iJ.__name)(function(e){cC.parseError=e},"setParseErrorHandler"),cy=[],cb=!1,c_=(0,iJ.__name)(async()=>{if(!cb){for(cb=!0;cy.length>0;){let e=cy.shift();if(e)try{await e()}catch(e){iK.log.error("Error executing queue",e)}}cb=!1}},"executeQueue"),cw=(0,iJ.__name)(async(e,t)=>new Promise((r,n)=>{let a=(0,iJ.__name)(()=>new Promise((a,i)=>{cl.parse(e,t).then(e=>{a(e),r(e)},e=>{iK.log.error("Error parsing",e),cC.parseError?.(e),i(e),n(e)})}),"performCall");cy.push(a),c_().catch(n)}),"parse"),cA=(0,iJ.__name)((e,t,r)=>new Promise((n,a)=>{let i=(0,iJ.__name)(()=>new Promise((i,s)=>{cl.render(e,t,r).then(e=>{i(e),n(e)},e=>{iK.log.error("Error parsing",e),cC.parseError?.(e),s(e),a(e)})}),"performCall");cy.push(i),c_().catch(a)}),"render"),ck=(0,iJ.__name)(()=>Object.keys(iQ.detectors).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),cC={startOnLoad:!0,mermaidAPI:cl,parse:cw,render:cA,init:ch,run:cu,registerExternalDiagrams:cm,registerLayoutLoaders:iH.registerLayoutLoaders,initialize:cp,parseError:void 0,contentLoaded:cf,setParseErrorHandler:cg,detectType:iQ.detectType,registerIconPacks:iV.registerIconPacks,getRegisteredDiagramsMetadata:ck},cS={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},cx=function(e={}){let t=!1,r={...cS,...e.config},n={initialize(n){r={...cS,...e.config,...n},cC.initialize(r),t=!0},render:async(e,n)=>(t||(cC.initialize(r),t=!0),await cC.render(e,n))};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid:e=>(e&&n.initialize(e),n)}}(),cv=e.i(271645),cE=e.i(738955),cN=e.i(922521);let cI={plugins:{code:il,mermaid:cx,math:iz,cjk:eT}},c$={light:{config:{theme:"default",themeVariables:{xyChart:{plotColorPalette:"#2563eb,#16a34a,#dc2626,#ca8a04,#6b7280,#171717,#334155,#7c3aed"}}}},dark:{config:{theme:"dark"}}};function cL({children:e,node:t,...r}){let n=cv.Children.toArray(e),a=1===n.length&&(0,cv.isValidElement)(n[0])?n[0]:null,i=a?.props.node?.tagName;if("img"===i||"code"===i&&a&&"data-block"in a.props)return(0,m.jsx)(m.Fragment,{children:e});let s=t?.children?.some(e=>"img"===e.tagName)?"div":"p";return(0,m.jsx)(s,{...r,children:e})}function cP({node:e,...t}){return(0,m.jsx)("img",{...t,alt:t.alt??"",loading:"lazy",decoding:"async"})}let cT=(0,cv.memo)(function(e){let t=(0,cN.useIsDark)()?"dark":"light";return(0,m.jsx)(cE.C,{...cI,mermaid:c$[t],...e,components:{p:cL,img:cP,...e.components}},t)});e.s(["MarkdownBody",0,cT],683387)}]);
141
+ </iframe>`},"putIntoIFrame"),ct=(0,iJ.__name)((e,t,r,n,a)=>{let i=e.append("div");i.attr("id",r),n&&i.attr("style",n);let s=i.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return a&&s.attr("xmlns:xlink",a),s.append("g"),e},"appendDivSvgG");function cr(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,iJ.__name)(cr,"sandboxedIframe");var cn=(0,iJ.__name)((e,t,r,n)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(n)?.remove()},"removeExistingElements"),ca=(0,iJ.__name)(async function(e,t,r){let n,a;lj();let i=l8(t);t=i.code;let s=(0,iQ.getConfig)();iK.log.debug(s),t.length>(s?.maxTextSize??5e4)&&(t="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let o=`#${e}`,l="i"+e,c="#"+l,u="d"+e,d="#"+u,p=(0,iJ.__name)(()=>{let e=m?c:d,t=(0,iY.select)(e).node();t&&"remove"in t&&t.remove()},"removeTempElements"),h=(0,iY.select)(document.body),m="sandbox"===s.securityLevel,f="loose"===s.securityLevel,g=s.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),m){let e=cr((0,iY.select)(r),l);(h=(0,iY.select)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else h=(0,iY.select)(r);ct(h,e,u,`font-family: ${g}`,"http://www.w3.org/1999/xlink")}else{if(cn(document,e,u,l),m){let e=cr((0,iY.select)(document.body),l);(h=(0,iY.select)(e.nodes()[0].contentDocument.body)).node().style.margin="0"}else h=(0,iY.select)("body");ct(h,e,u)}try{n=await lq.fromText(t,{title:i.title})}catch(e){if(s.suppressErrorRendering)throw p(),e;n=await lq.fromText("error"),a=e}let y=h.select(d).node(),b=n.type,_=y.firstChild,w=_.firstChild,A=l4(s,b,n.renderer.getClasses?.(t,n),o),k=document.createElement("style");k.innerHTML=A,_.insertBefore(k,w);try{await n.renderer.draw(t,e,"11.17.2",n)}catch(r){throw s.suppressErrorRendering?p():ok.draw(t,e,"11.17.2"),r}co(b,h.select(`${d} svg`),n.db.getAccTitle?.(),n.db.getAccDescription?.());let C=(0,iJ.__name)(()=>{h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let t=h.select(d).node().innerHTML;return iK.log.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),t=l7(t,m,(0,iQ.evaluate)(s.arrowMarkerAbsolute)),m?t=ce(t,h.select(d+" svg").node()):f||(t=sy.default.sanitize(t,{ADD_TAGS:l1,ADD_ATTR:l2,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),lV(),t},"serializeSvg")();if(a)throw a;return p(),{diagramType:b,svg:C,bindFunctions:n.db.bindFunctions}},"render");function ci(e={}){let t=(0,iQ.assignWithDepth_default)({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),(0,iQ.saveConfigFromInitialize)(t),t?.theme&&t.theme in iQ.themes_default?t.themeVariables=iQ.themes_default[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=iQ.themes_default.default.getThemeVariables(t.themeVariables));let r="object"==typeof t?(0,iQ.setSiteConfig)(t):(0,iQ.getSiteConfig)();(0,iK.setLogLevel)(r.logLevel),lj()}(0,iJ.__name)(ci,"initialize");var cs=(0,iJ.__name)((e,t={})=>{let{code:r}=lY(e);return lq.fromText(r,t)},"getDiagramFromText");function co(e,t,r,n){lz(t,e),lW(t,r,n,t.attr("id"))}(0,iJ.__name)(co,"addA11yInfo");var cl=Object.freeze({render:ca,parse:l6,getDiagramFromText:cs,initialize:ci,getConfig:iQ.getConfig,setConfig:iQ.setConfig,getSiteConfig:iQ.getSiteConfig,updateSiteConfig:iQ.updateSiteConfig,reset:(0,iJ.__name)(()=>{(0,iQ.reset)()},"reset"),globalReset:(0,iJ.__name)(()=>{(0,iQ.reset)(iQ.defaultConfig)},"globalReset"),defaultConfig:iQ.defaultConfig});(0,iK.setLogLevel)((0,iQ.getConfig)().logLevel),(0,iQ.reset)((0,iQ.getConfig)());var cc=(0,iJ.__name)((e,t,r)=>{iK.log.warn(e),(0,iX.isDetailedError)(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),cu=(0,iJ.__name)(async function(e={querySelector:".mermaid"}){try{await cd(e)}catch(t){if((0,iX.isDetailedError)(t)&&iK.log.error(t.str),cC.parseError&&cC.parseError(t),!e.suppressErrors)throw iK.log.error("Use the suppressErrors option to suppress these errors"),t}},"run"),cd=(0,iJ.__name)(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){let n,a,i=cl.getConfig();if(iK.log.debug(`${!e?"No ":""}Callback function found`),r)n=r;else if(t)n=document.querySelectorAll(t);else throw Error("Nodes and querySelector are both undefined");iK.log.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void 0&&(iK.log.debug("Start On Load: "+i?.startOnLoad),cl.updateSiteConfig({startOnLoad:i?.startOnLoad}));let s=new iX.utils_default.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),o=[];for(let t of Array.from(n)){if(iK.log.info("Rendering diagram: "+t.id),t.getAttribute("data-processed"))continue;t.setAttribute("data-processed","true");let r=`mermaid-${s.next()}`;a=t.innerHTML,a=(0,iZ.dedent)(iX.utils_default.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");let n=iX.utils_default.detectInit(a);n&&iK.log.debug("Detected early reinit: ",n);try{let{svg:n,bindFunctions:i}=await cA(r,a,t);t.innerHTML=n,e&&await e(r),i&&i(t)}catch(e){cc(e,o,cC.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),cp=(0,iJ.__name)(function(e){cl.initialize(e)},"initialize"),ch=(0,iJ.__name)(async function(e,t,r){iK.log.warn("mermaid.init is deprecated. Please use run instead."),e&&cp(e);let n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof t?n.querySelector=t:t&&(t instanceof HTMLElement?n.nodes=[t]:n.nodes=t),await cu(n)},"init"),cm=(0,iJ.__name)(async(e,{lazyLoad:t=!0}={})=>{lj(),(0,iQ.registerLazyLoadedDiagrams)(...e),!1===t&&await lU()},"registerExternalDiagrams"),cf=(0,iJ.__name)(function(){if(cC.startOnLoad){let{startOnLoad:e}=cl.getConfig();e&&cC.run().catch(e=>iK.log.error("Mermaid failed to initialize",e))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",cf,!1);var cg=(0,iJ.__name)(function(e){cC.parseError=e},"setParseErrorHandler"),cy=[],cb=!1,c_=(0,iJ.__name)(async()=>{if(!cb){for(cb=!0;cy.length>0;){let e=cy.shift();if(e)try{await e()}catch(e){iK.log.error("Error executing queue",e)}}cb=!1}},"executeQueue"),cw=(0,iJ.__name)(async(e,t)=>new Promise((r,n)=>{let a=(0,iJ.__name)(()=>new Promise((a,i)=>{cl.parse(e,t).then(e=>{a(e),r(e)},e=>{iK.log.error("Error parsing",e),cC.parseError?.(e),i(e),n(e)})}),"performCall");cy.push(a),c_().catch(n)}),"parse"),cA=(0,iJ.__name)((e,t,r)=>new Promise((n,a)=>{let i=(0,iJ.__name)(()=>new Promise((i,s)=>{cl.render(e,t,r).then(e=>{i(e),n(e)},e=>{iK.log.error("Error parsing",e),cC.parseError?.(e),s(e),a(e)})}),"performCall");cy.push(i),c_().catch(a)}),"render"),ck=(0,iJ.__name)(()=>Object.keys(iQ.detectors).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),cC={startOnLoad:!0,mermaidAPI:cl,parse:cw,render:cA,init:ch,run:cu,registerExternalDiagrams:cm,registerLayoutLoaders:iH.registerLayoutLoaders,initialize:cp,parseError:void 0,contentLoaded:cf,setParseErrorHandler:cg,detectType:iQ.detectType,registerIconPacks:iV.registerIconPacks,getRegisteredDiagramsMetadata:ck},cS={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},cx=function(e={}){let t=!1,r={...cS,...e.config},n={initialize(n){r={...cS,...e.config,...n},cC.initialize(r),t=!0},render:async(e,n)=>(t||(cC.initialize(r),t=!0),await cC.render(e,n))};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid:e=>(e&&n.initialize(e),n)}}(),cv=e.i(271645),cE=e.i(738955),cN=e.i(798120),cI=e.i(922521);let c$={remarkPlugins:[...Object.values(cE.z),function(){let e=t=>{if(("link"===t.type||"definition"===t.type)&&t.url){let e=function(e){if(/^[a-z][a-z\d+.-]*:/i.test(e)||/^[/.#?]/.test(e))return null;let t=e;try{t=decodeURIComponent(e)}catch{}let r=t.split("/");return r.length<2||r.includes("..")||r[0].includes(".")?null:cN.queryKey.fileView(t)}(t.url);e&&(t.url=e)}t.children?.forEach(e)};return t=>e(t)}],linkSafety:{enabled:!0,onLinkCheck:e=>e.startsWith("/")&&!e.startsWith("//")},plugins:{code:il,mermaid:cx,math:iz,cjk:eT}},cL={light:{config:{theme:"default",themeVariables:{xyChart:{plotColorPalette:"#2563eb,#16a34a,#dc2626,#ca8a04,#6b7280,#171717,#334155,#7c3aed"}}}},dark:{config:{theme:"dark"}}};function cP({children:e,node:t,...r}){let n=cv.Children.toArray(e),a=1===n.length&&(0,cv.isValidElement)(n[0])?n[0]:null,i=a?.props.node?.tagName;if("img"===i||"code"===i&&a&&"data-block"in a.props)return(0,m.jsx)(m.Fragment,{children:e});let s=t?.children?.some(e=>"img"===e.tagName)?"div":"p";return(0,m.jsx)(s,{...r,children:e})}function cT({node:e,...t}){return(0,m.jsx)("img",{...t,alt:t.alt??"",loading:"lazy",decoding:"async"})}let cM=(0,cv.memo)(function(e){let t=(0,cI.useIsDark)()?"dark":"light";return(0,m.jsx)(cE.C,{...c$,mermaid:cL[t],...e,components:{p:cP,img:cT,...e.components}},t)});e.s(["MarkdownBody",0,cM],683387)}]);