kiki-agent 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/README.md +3 -3
  2. package/dist/cpu-worker.mjs +52744 -0
  3. package/dist/docs/en/configuration/config-files.md +92 -30
  4. package/dist/docs/en/configuration/data-locations.md +14 -9
  5. package/dist/docs/en/configuration/env-vars.md +32 -2
  6. package/dist/docs/en/configuration/overrides.md +1 -1
  7. package/dist/docs/en/configuration/providers.md +44 -10
  8. package/dist/docs/en/customization/agent-profiles.md +1 -1
  9. package/dist/docs/en/customization/agents-and-subagents.md +49 -10
  10. package/dist/docs/en/customization/hooks.md +3 -3
  11. package/dist/docs/en/customization/personas.md +1 -1
  12. package/dist/docs/en/customization/plugins.md +16 -3
  13. package/dist/docs/en/customization/prompt-fields.md +62 -6
  14. package/dist/docs/en/customization/recipes.md +77 -0
  15. package/dist/docs/en/customization/skins.md +2 -2
  16. package/dist/docs/en/customization/themes.md +1 -1
  17. package/dist/docs/en/features/browser-and-computer.md +5 -5
  18. package/dist/docs/en/features/daily.md +3 -3
  19. package/dist/docs/en/features/ecosystem.md +1 -1
  20. package/dist/docs/en/features/extend.md +2 -2
  21. package/dist/docs/en/features/freedom.md +1 -1
  22. package/dist/docs/en/features/index.md +15 -1
  23. package/dist/docs/en/features/long-work.md +9 -5
  24. package/dist/docs/en/features/look.md +1 -1
  25. package/dist/docs/en/features/phone.md +11 -3
  26. package/dist/docs/en/features/spaces.md +5 -5
  27. package/dist/docs/en/getting-started/desktop-app.md +4 -8
  28. package/dist/docs/en/getting-started/first-launch.md +1 -1
  29. package/dist/docs/en/guides/goals.md +4 -2
  30. package/dist/docs/en/guides/interface.md +18 -8
  31. package/dist/docs/en/guides/memory.md +64 -10
  32. package/dist/docs/en/guides/sessions.md +15 -7
  33. package/dist/docs/en/guides/settings.md +49 -38
  34. package/dist/docs/en/index.md +3 -1
  35. package/dist/docs/en/reference/command.md +35 -33
  36. package/dist/docs/en/reference/model-vocabulary.md +2 -2
  37. package/dist/docs/en/reference/slash-commands.md +1 -1
  38. package/dist/docs/en/reference/tools.md +40 -15
  39. package/dist/docs/en/server/acp.md +6 -2
  40. package/dist/docs/en/server/local-server.md +19 -27
  41. package/dist/docs/en/server/mcp.md +4 -4
  42. package/dist/docs/en/server/rest-api.md +240 -23
  43. package/dist/docs/en/server/script-tools.md +268 -0
  44. package/dist/docs/zh/configuration/config-files.md +92 -30
  45. package/dist/docs/zh/configuration/data-locations.md +14 -9
  46. package/dist/docs/zh/configuration/env-vars.md +32 -2
  47. package/dist/docs/zh/configuration/overrides.md +1 -1
  48. package/dist/docs/zh/configuration/providers.md +44 -10
  49. package/dist/docs/zh/customization/agent-profiles.md +1 -1
  50. package/dist/docs/zh/customization/agents-and-subagents.md +49 -10
  51. package/dist/docs/zh/customization/hooks.md +3 -3
  52. package/dist/docs/zh/customization/personas.md +1 -1
  53. package/dist/docs/zh/customization/plugins.md +16 -3
  54. package/dist/docs/zh/customization/prompt-fields.md +62 -6
  55. package/dist/docs/zh/customization/recipes.md +77 -0
  56. package/dist/docs/zh/customization/skins.md +2 -2
  57. package/dist/docs/zh/customization/themes.md +1 -1
  58. package/dist/docs/zh/features/browser-and-computer.md +5 -5
  59. package/dist/docs/zh/features/daily.md +3 -3
  60. package/dist/docs/zh/features/ecosystem.md +1 -1
  61. package/dist/docs/zh/features/extend.md +2 -2
  62. package/dist/docs/zh/features/freedom.md +1 -1
  63. package/dist/docs/zh/features/index.md +16 -2
  64. package/dist/docs/zh/features/long-work.md +9 -5
  65. package/dist/docs/zh/features/look.md +1 -1
  66. package/dist/docs/zh/features/phone.md +11 -3
  67. package/dist/docs/zh/features/spaces.md +5 -5
  68. package/dist/docs/zh/getting-started/desktop-app.md +4 -8
  69. package/dist/docs/zh/getting-started/first-launch.md +1 -1
  70. package/dist/docs/zh/guides/goals.md +4 -2
  71. package/dist/docs/zh/guides/interface.md +18 -8
  72. package/dist/docs/zh/guides/memory.md +64 -10
  73. package/dist/docs/zh/guides/sessions.md +15 -7
  74. package/dist/docs/zh/guides/settings.md +49 -38
  75. package/dist/docs/zh/index.md +4 -2
  76. package/dist/docs/zh/reference/command.md +35 -33
  77. package/dist/docs/zh/reference/model-vocabulary.md +2 -2
  78. package/dist/docs/zh/reference/slash-commands.md +1 -1
  79. package/dist/docs/zh/reference/tools.md +40 -15
  80. package/dist/docs/zh/server/acp.md +6 -2
  81. package/dist/docs/zh/server/local-server.md +19 -27
  82. package/dist/docs/zh/server/mcp.md +4 -4
  83. package/dist/docs/zh/server/rest-api.md +229 -23
  84. package/dist/docs/zh/server/script-tools.md +268 -0
  85. package/dist/external-harness/agy-cli-acp.mjs +168 -162
  86. package/dist/external-harness/agy-hook-registration.mjs +69 -30
  87. package/dist/external-harness/agy-mcp-plugin.mjs +19 -0
  88. package/dist/external-harness/agy-permission-hook.mjs +29 -2
  89. package/dist/hostRunner.mjs +24 -6
  90. package/dist/mailbox-worker.mjs +111 -5
  91. package/dist/main.mjs +2 -2
  92. package/dist/memory-worker.mjs +1008 -0
  93. package/dist/native/windows-process-helper.exe +0 -0
  94. package/dist/query-store-worker.mjs +52 -11
  95. package/dist/sqlite-indexer.mjs +32 -2
  96. package/dist/sqlite-query-worker.mjs +35 -0
  97. package/dist/usage-parser-worker.mjs +3953 -4
  98. package/dist/usage-read-model-worker.mjs +761 -0
  99. package/dist/web/assets/{AppErrorBoundary-BN6IDdP1.js → AppErrorBoundary-B5Fc4f6-.js} +1 -1
  100. package/dist/web/assets/NavScopeBoundary-C7MnGQio.js +1 -0
  101. package/dist/web/assets/{arc-C7IAvCCJ.js → arc-DGB9OVgQ.js} +1 -1
  102. package/dist/web/assets/{architectureDiagram-3BPJPVTR-CbwFBxn7.js → architectureDiagram-3BPJPVTR-glnQCMub.js} +1 -1
  103. package/dist/web/assets/{blockDiagram-GPEHLZMM-B20N4t8r.js → blockDiagram-GPEHLZMM-bM0tnGby.js} +1 -1
  104. package/dist/web/assets/{c4Diagram-AAUBKEIU-3BYtlcP-.js → c4Diagram-AAUBKEIU-DMf_rTtt.js} +1 -1
  105. package/dist/web/assets/channel-Cj8SKJ38.js +1 -0
  106. package/dist/web/assets/{chunk-2J33WTMH-CpjgczxM.js → chunk-2J33WTMH-mTccJ3tW.js} +1 -1
  107. package/dist/web/assets/{chunk-4BX2VUAB-BScxUF5G.js → chunk-4BX2VUAB-DhqPYMjY.js} +1 -1
  108. package/dist/web/assets/{chunk-55IACEB6-CrcLYJXd.js → chunk-55IACEB6-BujrYRoO.js} +1 -1
  109. package/dist/web/assets/{chunk-727SXJPM-BwlyIOjw.js → chunk-727SXJPM-ciMmSI4G.js} +1 -1
  110. package/dist/web/assets/{chunk-AQP2D5EJ-DKKIRkRv.js → chunk-AQP2D5EJ-CZW9pKTc.js} +1 -1
  111. package/dist/web/assets/{chunk-FMBD7UC4-CVDMj2kX.js → chunk-FMBD7UC4-hdALNnnU.js} +1 -1
  112. package/dist/web/assets/{chunk-ND2GUHAM-CL-PM6r8.js → chunk-ND2GUHAM-CgKyqUdb.js} +1 -1
  113. package/dist/web/assets/{chunk-QZHKN3VN-DPV2KbKZ.js → chunk-QZHKN3VN-B2mmUz_E.js} +1 -1
  114. package/dist/web/assets/classDiagram-4FO5ZUOK-f8V9p-dD.js +1 -0
  115. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-f8V9p-dD.js +1 -0
  116. package/dist/web/assets/client-ClWQBErG.js +3 -0
  117. package/dist/web/assets/connection-C0J3BPgk.js +1 -0
  118. package/dist/web/assets/{cose-bilkent-S5V4N54A-D1CEiQM6.js → cose-bilkent-S5V4N54A-UV3uPjkK.js} +1 -1
  119. package/dist/web/assets/{dagre-BM42HDAG-BlFV941E.js → dagre-BM42HDAG-Zjy-gQ6C.js} +1 -1
  120. package/dist/web/assets/{diagram-2AECGRRQ-BC0ldkFY.js → diagram-2AECGRRQ-DL-kilIf.js} +1 -1
  121. package/dist/web/assets/{diagram-5GNKFQAL-B22Iej6G.js → diagram-5GNKFQAL-CjB_xR5B.js} +1 -1
  122. package/dist/web/assets/{diagram-KO2AKTUF-B75UNw6D.js → diagram-KO2AKTUF-CjN4i3b9.js} +1 -1
  123. package/dist/web/assets/{diagram-LMA3HP47-CypI7IJM.js → diagram-LMA3HP47-CPCAMndo.js} +1 -1
  124. package/dist/web/assets/{diagram-OG6HWLK6-OsXumvcD.js → diagram-OG6HWLK6-DVeBWBKd.js} +1 -1
  125. package/dist/web/assets/{erDiagram-TEJ5UH35-3756GOvS.js → erDiagram-TEJ5UH35-CHKzBHrr.js} +1 -1
  126. package/dist/web/assets/export-CXoWon32.js +2 -0
  127. package/dist/web/assets/{flowDiagram-I6XJVG4X-DB6Y_UDg.js → flowDiagram-I6XJVG4X-C5rQa2pq.js} +1 -1
  128. package/dist/web/assets/{ganttDiagram-6RSMTGT7-CHJeuoAY.js → ganttDiagram-6RSMTGT7-BrLjEsNJ.js} +1 -1
  129. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-Dj85554Y.js → gitGraphDiagram-PVQCEYII-3DRR5VZj.js} +1 -1
  130. package/dist/web/assets/highlighted-body-OFNGDK62-Bdj5SJfv.js +1 -0
  131. package/dist/web/assets/index-2Vx5mHRn.js +1 -0
  132. package/dist/web/assets/index-B1UXw2C9.js +1 -0
  133. package/dist/web/assets/{index-C6qeLCPw.js → index-BJxtlf4P.js} +4 -4
  134. package/dist/web/assets/{index-DxUmR9aV.js → index-BY7jPurv.js} +1 -1
  135. package/dist/web/assets/index-Bq79v-Sa.js +1 -0
  136. package/dist/web/assets/index-BqD3iTIl.js +1 -0
  137. package/dist/web/assets/index-Br3AlBrQ.js +1 -0
  138. package/dist/web/assets/{index-DZMkZKhW.js → index-BvRBCpc6.js} +2 -2
  139. package/dist/web/assets/index-BxYCSNg_.js +3 -0
  140. package/dist/web/assets/{index-CJqIcuAl.js → index-C62wjCF_.js} +1 -1
  141. package/dist/web/assets/index-CBvwNH_H.js +1 -0
  142. package/dist/web/assets/{index-DRMjjql1.js → index-CG9e6lgq.js} +1 -1
  143. package/dist/web/assets/{index-C7mOS2T4.js → index-CPSWYh_R.js} +2 -2
  144. package/dist/web/assets/index-CS4xJLZV.js +1 -0
  145. package/dist/web/assets/index-CjvqtF2I.js +1 -0
  146. package/dist/web/assets/index-CprdjRRk.js +13 -0
  147. package/dist/web/assets/{index-bYtKyBMB.js → index-CypTtrCB.js} +1 -1
  148. package/dist/web/assets/{index-DqK8MfQN.js → index-DDJQGcUL.js} +1 -1
  149. package/dist/web/assets/index-DLWzxUOO.js +1 -0
  150. package/dist/web/assets/index-DQxkxZmn.js +7 -0
  151. package/dist/web/assets/index-DRo5Y_9p.js +1 -0
  152. package/dist/web/assets/index-De_LkTZx.js +1 -0
  153. package/dist/web/assets/{index-0tHq8zh2.js → index-DfUpwUTM.js} +2 -2
  154. package/dist/web/assets/{index-D--cw39y.js → index-Dkbz748K.js} +2 -2
  155. package/dist/web/assets/index-DmwFFSkV.js +1 -0
  156. package/dist/web/assets/index-DpcWEDhW.js +1 -0
  157. package/dist/web/assets/index-Dqq1RDP4.js +1 -0
  158. package/dist/web/assets/index-H1uMvIoa.css +1 -0
  159. package/dist/web/assets/index-ICHWJ2SM.js +1 -0
  160. package/dist/web/assets/index-O5fSd569.js +229 -0
  161. package/dist/web/assets/index-odjtqLLS.js +1 -0
  162. package/dist/web/assets/index-v_yAQ0Am.js +1 -0
  163. package/dist/web/assets/{infoDiagram-5YYISTIA-DeDPIdEH.js → infoDiagram-5YYISTIA-CCwV4Z0v.js} +1 -1
  164. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-ButuBiBW.js → ishikawaDiagram-YF4QCWOH-BwwZcGyZ.js} +1 -1
  165. package/dist/web/assets/{journeyDiagram-JHISSGLW-Dlbmqm-j.js → journeyDiagram-JHISSGLW-Dc6WqniQ.js} +1 -1
  166. package/dist/web/assets/{kanban-definition-UN3LZRKU-tlQK1cOz.js → kanban-definition-UN3LZRKU-DVUqULOS.js} +1 -1
  167. package/dist/web/assets/{linear-iXuNfUWp.js → linear-d6rWsNOU.js} +1 -1
  168. package/dist/web/assets/memoryAdvisor-DBQXJB1o.js +1 -0
  169. package/dist/web/assets/mermaid-GHXKKRXX-Ik6SkVDT.js +642 -0
  170. package/dist/web/assets/{mindmap-definition-RKZ34NQL-2qPv-mwT.js → mindmap-definition-RKZ34NQL-_JHAkhHL.js} +1 -1
  171. package/dist/web/assets/navViewState-DaCMIYWA.js +1 -0
  172. package/dist/web/assets/{pieDiagram-4H26LBE5-CrLe1C-O.js → pieDiagram-4H26LBE5-BlhlygGy.js} +1 -1
  173. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-DfeIFxc0.js → quadrantDiagram-W4KKPZXB-jn6R_C0S.js} +1 -1
  174. package/dist/web/assets/{requirementDiagram-4Y6WPE33-BWtjdxie.js → requirementDiagram-4Y6WPE33-B9fXCHBr.js} +1 -1
  175. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-B5TxJ6mb.js → sankeyDiagram-5OEKKPKP-fPJwIxkl.js} +1 -1
  176. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-Cf92ZCl1.js → sequenceDiagram-3UESZ5HK-1v1DTNGt.js} +1 -1
  177. package/dist/web/assets/{spaces-DqMTtCXX.js → spaces-CvL2DRZM.js} +1 -1
  178. package/dist/web/assets/{stateDiagram-AJRCARHV-NR9I-Q4d.js → stateDiagram-AJRCARHV-CEc_PLov.js} +1 -1
  179. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-iAMctzaT.js +1 -0
  180. package/dist/web/assets/theme-LRSmy8mD.js +1 -0
  181. package/dist/web/assets/{timeline-definition-PNZ67QCA-CBAOVMfm.js → timeline-definition-PNZ67QCA-CEjhuitj.js} +1 -1
  182. package/dist/web/assets/{vennDiagram-CIIHVFJN-C68x6TdS.js → vennDiagram-CIIHVFJN-CActt9h9.js} +1 -1
  183. package/dist/web/assets/{wardley-L42UT6IY-DuZZr5jm.js → wardley-L42UT6IY-Bp3q2izt.js} +1 -1
  184. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-D6dVGtHd.js → wardleyDiagram-YWT4CUSO-C_zutiQ2.js} +1 -1
  185. package/dist/web/assets/{xychartDiagram-2RQKCTM6-DYLUhZX4.js → xychartDiagram-2RQKCTM6-CRafvv33.js} +1 -1
  186. package/dist/web/icons/apple-touch-icon.png +0 -0
  187. package/dist/web/icons/icon-192.png +0 -0
  188. package/dist/web/icons/icon-512.png +0 -0
  189. package/dist/web/icons/maskable-512.png +0 -0
  190. package/dist/web/index.html +12 -2
  191. package/dist/web/manifest.webmanifest +16 -0
  192. package/native/auth-native/prebuilds/linux-arm64/auth-native.node +0 -0
  193. package/native/auth-native/prebuilds/linux-x64/auth-native.node +0 -0
  194. package/native/auth-native/prebuilds/win32-arm64/auth-native.node +0 -0
  195. package/native/auth-native/prebuilds/win32-x64/auth-native.node +0 -0
  196. package/package.json +22 -3
  197. package/dist/web/assets/LifeMark-UBMVaTWr.js +0 -1
  198. package/dist/web/assets/NavScopeBoundary-BCryw-UG.js +0 -1
  199. package/dist/web/assets/channel-BJs5vJuh.js +0 -1
  200. package/dist/web/assets/classDiagram-4FO5ZUOK-BookeACB.js +0 -1
  201. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-BookeACB.js +0 -1
  202. package/dist/web/assets/client-CXcrCawx.js +0 -3
  203. package/dist/web/assets/connection-C8nwzwXB.js +0 -1
  204. package/dist/web/assets/export-Bn8PqPg4.js +0 -2
  205. package/dist/web/assets/highlighted-body-OFNGDK62-DMgPHetp.js +0 -1
  206. package/dist/web/assets/index-7ySDqvaN.css +0 -1
  207. package/dist/web/assets/index-B0KPRi1U.js +0 -166
  208. package/dist/web/assets/index-B599VnpP.js +0 -1
  209. package/dist/web/assets/index-BFK-GypQ.js +0 -1
  210. package/dist/web/assets/index-BPX8gmpB.js +0 -1
  211. package/dist/web/assets/index-BSGYc1tb.js +0 -1
  212. package/dist/web/assets/index-BTt9Q5iv.js +0 -1
  213. package/dist/web/assets/index-BWzUsoY_.js +0 -1
  214. package/dist/web/assets/index-BYlSV3FO.js +0 -3
  215. package/dist/web/assets/index-BpXQ1q-u.js +0 -1
  216. package/dist/web/assets/index-BqPxpGUh.js +0 -1
  217. package/dist/web/assets/index-C8OFfbEs.js +0 -1
  218. package/dist/web/assets/index-CI7yuMGZ.js +0 -1
  219. package/dist/web/assets/index-CTRJmDep.js +0 -1
  220. package/dist/web/assets/index-CXGCKoId.js +0 -1
  221. package/dist/web/assets/index-CsY571EL.js +0 -13
  222. package/dist/web/assets/index-CwQG_9rB.js +0 -1
  223. package/dist/web/assets/index-D260jsUJ.js +0 -1
  224. package/dist/web/assets/index-DJjmEXx4.js +0 -1
  225. package/dist/web/assets/index-DUxOVxHS.js +0 -1
  226. package/dist/web/assets/index-GK8aa9pT.js +0 -7
  227. package/dist/web/assets/index-wxHFHTgD.js +0 -1
  228. package/dist/web/assets/mermaid-GHXKKRXX-sDJax95P.js +0 -624
  229. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-BiegFWxE.js +0 -1
  230. package/dist/web/assets/theme-6OL1RXgY.js +0 -1
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-B12qg9BL.js","assets/ruby-Dw2BHqvy.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-Cw27pwNe.js","assets/perl-C0TMdlhV.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-DYVedYrR.js","assets/marko-CnJfTvn9.js","assets/less-B1dDrJ26.js","assets/mdc-BMNejdWA.js","assets/nextflow-Zz6hmt5N.js","assets/nextflow-groovy-BeH2EWoN.js","assets/nginx-BpAMiNFr.js","assets/nim-CVrawwO9.js","assets/php-Dhbhpdrm.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-Uh8Bk_45.js","assets/csharp-COcwbKMJ.js","assets/rst-BrH8l1NY.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-C_ipcX3V.js","assets/templ-P3uqSqPl.js","assets/go-CxLEBnE3.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-DNn4PbVi.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2
- import{ar as u}from"./index-B0KPRi1U.js";import{a5 as Mt,a6 as Br,a7 as Wn,a8 as Hn,a9 as zn,aa as tr,ab as qn,ac as Xn,ad as Qn}from"./mermaid-GHXKKRXX-sDJax95P.js";import"./connection-C8nwzwXB.js";import"./index-CJqIcuAl.js";import"./client-CXcrCawx.js";import"./LifeMark-UBMVaTWr.js";import"./theme-6OL1RXgY.js";import"./export-Bn8PqPg4.js";import"./spaces-DqMTtCXX.js";let I=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Jn(t){return Gt(t)}function Gt(t){return Array.isArray(t)?Kn(t):t instanceof RegExp?t:typeof t=="object"?Zn(t):t}function Kn(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Gt(t[r]);return e}function Zn(t){let e={};for(let r in t)e[r]=Gt(t[r]);return e}function Fr(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function Ur(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Ur(t.substring(0,t.length-1)):t.substr(~e+1)}var at=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Se=class{static hasCaptures(t){return t===null?!1:(at.lastIndex=0,at.test(t))}static replaceCaptures(t,e,r){return t.replace(at,(n,i,s,o)=>{let c=r[parseInt(i||s,10)];if(c){let a=e.substring(c.start,c.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return n})}};function jr(t,e){return t<e?-1:t>e?1:0}function Wr(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let s=jr(t[i],e[i]);if(s!==0)return s}return 0}return r-n}function rr(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Hr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var zr=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},Ge=class{constructor(t,e,r){this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(ti(t),e)}static createFromParsedTheme(t,e){return ni(t,e)}_cachedMatchRoot=new zr(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>Yn(t.parent,i.parentScopes));return n?new qr(n.fontStyle,n.foreground,n.background):null}},ct=class Ne{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new Ne(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new Ne(r,e[n]);return r}push(e){return new Ne(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function Yn(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!ei(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function ei(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var qr=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function ti(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,s=e.length;i<s;i++){let o=e[i];if(!o.settings)continue;let c;if(typeof o.scope=="string"){let p=o.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),c=p.split(",")}else Array.isArray(o.scope)?c=o.scope:c=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let p=o.settings.fontStyle.split(" ");for(let h=0,f=p.length;h<f;h++)switch(p[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let l=null;typeof o.settings.foreground=="string"&&rr(o.settings.foreground)&&(l=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&rr(o.settings.background)&&(d=o.settings.background);for(let p=0,h=c.length;p<h;p++){let m=c[p].trim().split(" "),y=m[m.length-1],E=null;m.length>1&&(E=m.slice(0,m.length-1),E.reverse()),r[n++]=new ri(y,E,i,a,l,d)}}return r}var ri=class{constructor(t,e,r,n,i,s){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=s}},x=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(x||{});function ni(t,e){t.sort((a,l)=>{let d=jr(a.scope,l.scope);return d!==0||(d=Wr(a.parentScopes,l.parentScopes),d!==0)?d:a.index-l.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(r=a.fontStyle),a.foreground!==null&&(n=a.foreground),a.background!==null&&(i=a.background)}let s=new ii(e),o=new qr(r,s.getId(n),s.getId(i)),c=new oi(new vt(0,null,-1,0,0),[]);for(let a=0,l=t.length;a<l;a++){let d=t[a];c.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new Ge(s,o,c)}var ii=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},si=Object.freeze([]),vt=class Xr{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,r,n,i,s){this.scopeDepth=e,this.parentScopes=r||si,this.fontStyle=n,this.foreground=i,this.background=s}clone(){return new Xr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},oi=class Ct{constructor(e,r=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const s=r.parentScopes[i].length-e.parentScopes[n].length;if(s!==0)return s;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,s;if(n===-1?(i=e,s=""):(i=e.substring(0,n),s=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Ct._cmpBySpecificity),r}insert(e,r,n,i,s,o){if(r===""){this._doInsertHere(e,n,i,s,o);return}let c=r.indexOf("."),a,l;c===-1?(a=r,l=""):(a=r.substring(0,c),l=r.substring(c+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new Ct(this._mainRule.clone(),vt.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,l,n,i,s,o)}_doInsertHere(e,r,n,i,s){if(r===null){this._mainRule.acceptOverwrite(e,n,i,s);return}for(let o=0,c=this._rulesWithParentScopes.length;o<c;o++){let a=this._rulesWithParentScopes[o];if(Wr(a.parentScopes,r)===0){a.acceptOverwrite(e,n,i,s);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new vt(e,r,n,i,s))}},de=class N{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=N.getLanguageId(e),n=N.getTokenType(e),i=N.getFontStyle(e),s=N.getForeground(e),o=N.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,s,o,c){let a=N.getLanguageId(e),l=N.getTokenType(e),d=N.containsBalancedBrackets(e)?1:0,p=N.getFontStyle(e),h=N.getForeground(e),f=N.getBackground(e);return r!==0&&(a=r),n!==8&&(l=n),i!==null&&(d=i?1:0),s!==-1&&(p=s),o!==0&&(h=o),c!==0&&(f=c),(a<<0|l<<8|d<<10|p<<11|h<<15|f<<24)>>>0}};function Be(t,e){const r=[],n=ai(t);let i=n.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let l=o();if(r.push({matcher:l,priority:a}),i!==",")break;i=n.next()}return r;function s(){if(i==="-"){i=n.next();const a=s();return l=>!!a&&!a(l)}if(i==="("){i=n.next();const a=c();return i===")"&&(i=n.next()),a}if(nr(i)){const a=[];do a.push(i),i=n.next();while(nr(i));return l=>e(a,l)}return null}function o(){const a=[];let l=s();for(;l;)a.push(l),l=s();return d=>a.every(p=>p(d))}function c(){const a=[];let l=o();for(;l&&(a.push(l),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");l=o()}return d=>a.some(p=>p(d))}}function nr(t){return!!t&&!!t.match(/[\w\.:]+/)}function ai(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function Qr(t){typeof t.dispose=="function"&&t.dispose()}var be=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},ci=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},li=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},ui=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new be(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new li;for(const r of t)di(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof be){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function di(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=r.lookup(e);t instanceof be?$e({baseGrammar:s,selfGrammar:i},n):It(t.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},n);const o=r.injections(t.scopeName);if(o)for(const c of o)n.add(new be(c))}function It(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];Fe([n],e,r)}}function $e(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Fe(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Fe(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Fe(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?Fr({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&Fe(n.patterns,{...e,repository:i},r);const s=n.include;if(!s)continue;const o=Jr(s);switch(o.kind){case 0:$e({...e,selfGrammar:e.baseGrammar},r);break;case 1:$e(e,r);break;case 2:It(o.ruleName,{...e,repository:i},r);break;case 3:case 4:const c=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const a={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};o.kind===4?It(o.ruleName,a,r):$e(a,r)}else o.kind===4?r.add(new ci(o.scopeName,o.ruleName)):r.add(new be(o.scopeName));break}}}var pi=class{kind=0},hi=class{kind=1},fi=class{constructor(t){this.ruleName=t}kind=2},mi=class{constructor(t){this.scopeName=t}kind=3},gi=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function Jr(t){if(t==="$base")return new pi;if(t==="$self")return new hi;const e=t.indexOf("#");if(e===-1)return new mi(t);if(e===0)return new fi(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new gi(r,n)}}var _i=/\\(\d+)/,ir=/\\(\d+)/g,yi=-1,Kr=-2;var Ie=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,r,n){this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=Se.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Se.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Ur(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Se.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Se.replaceCaptures(this._contentName,t,e)}},Ei=class extends Ie{retokenizeCapturedWithRuleId;constructor(t,e,r,n,i){super(t,e,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,r,n){throw new Error("Not supported!")}},bi=class extends Ie{_match;captures;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,null),this._match=new we(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ae,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},sr=class extends Ie{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const r of this.patterns)t.getRule(r).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ae,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Rt=class extends Ie{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i,s,o,c,a,l){super(t,e,r,n),this._begin=new we(i,this.id),this.beginCaptures=s,this._end=new we(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=a||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t,e).compileAG(t,r,n)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ae;for(const r of this.patterns)t.getRule(r).collectPatterns(t,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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ue=class extends Ie{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,r,n,i,s,o,c,a){super(t,e,r,n),this._begin=new we(i,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new we(o,Kr),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.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(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ae;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,r,n){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,r,n)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ae,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Zr=class O{static createCaptureRule(e,r,n,i,s){return e.registerRule(o=>new Ei(r,o,n,i,s))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new bi(e.$vscodeTextmateLocation,e.id,e.name,e.match,O._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=Fr({},n,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new sr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,O._compilePatterns(s,r,n))}return e.while?new Ue(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,O._compileCaptures(e.whileCaptures||e.captures,r,n),O._compilePatterns(e.patterns,r,n)):new Rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,O._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,O._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);c>s&&(s=c)}for(let o=0;o<=s;o++)i[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);let a=0;e[o].patterns&&(a=O.getCompiledRuleId(e[o],r,n)),i[c]=O.createCaptureRule(r,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let s=0,o=e.length;s<o;s++){const c=e[s];let a=-1;if(c.include){const l=Jr(c.include);switch(l.kind){case 0:case 1:a=O.getCompiledRuleId(n[c.include],r,n);break;case 2:let d=n[l.ruleName];d&&(a=O.getCompiledRuleId(d,r,n));break;case 3:case 4:const p=l.scopeName,h=l.kind===4?l.ruleName:null,f=r.getExternalGrammar(p,n);if(f)if(h){let m=f.repository[h];m&&(a=O.getCompiledRuleId(m,r,f.repository))}else a=O.getCompiledRuleId(f.repository.$self,r,f.repository);break}}else a=O.getCompiledRuleId(c,r,n);if(a!==-1){const l=r.getRule(a);let d=!1;if((l instanceof sr||l instanceof Rt||l instanceof Ue)&&l.hasMissingPatterns&&l.patterns.length===0&&(d=!0),d)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},we=class Yr{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,r){if(e&&typeof e=="string"){const n=e.length;let i=0,s=[],o=!1;for(let c=0;c<n;c++)if(e.charAt(c)==="\\"&&c+1<n){const l=e.charAt(c+1);l==="z"?(s.push(e.substring(i,c)),s.push("$(?!\\n)(?<!\\n)"),i=c+2):(l==="A"||l==="G")&&(o=!0),c++}this.hasAnchor=o,i===0?this.source=e:(s.push(e.substring(i,n)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=_i.test(this.source):this.hasBackReferences=!1}clone(){return new Yr(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return ir.lastIndex=0,this.source.replace(ir,(i,s)=>Hr(n[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],s,o,c,a;for(s=0,o=this.source.length;s<o;s++)c=this.source.charAt(s),e[s]=c,r[s]=c,n[s]=c,i[s]=c,c==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="￿",r[s+1]="￿",n[s+1]="A",i[s+1]="A"):a==="G"?(e[s+1]="￿",r[s+1]="G",n[s+1]="￿",i[s+1]="G"):(e[s+1]=a,r[s+1]=a,n[s+1]=a,i[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ae=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(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new or(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new or(t,n,this._items.map(i=>i.ruleId))}},or=class{constructor(t,e,r){this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
2
+ import{au as u}from"./index-O5fSd569.js";import{a5 as Mt,a6 as Br,a7 as Wn,a8 as Hn,a9 as zn,aa as tr,ab as qn,ac as Xn,ad as Qn}from"./mermaid-GHXKKRXX-Ik6SkVDT.js";import"./connection-C0J3BPgk.js";import"./index-C62wjCF_.js";import"./memoryAdvisor-DBQXJB1o.js";import"./client-ClWQBErG.js";import"./navViewState-DaCMIYWA.js";import"./export-CXoWon32.js";import"./spaces-CvL2DRZM.js";import"./theme-LRSmy8mD.js";let I=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Jn(t){return Gt(t)}function Gt(t){return Array.isArray(t)?Kn(t):t instanceof RegExp?t:typeof t=="object"?Zn(t):t}function Kn(t){let e=[];for(let r=0,n=t.length;r<n;r++)e[r]=Gt(t[r]);return e}function Zn(t){let e={};for(let r in t)e[r]=Gt(t[r]);return e}function Fr(t,...e){return e.forEach(r=>{for(let n in r)t[n]=r[n]}),t}function Ur(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Ur(t.substring(0,t.length-1)):t.substr(~e+1)}var at=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Se=class{static hasCaptures(t){return t===null?!1:(at.lastIndex=0,at.test(t))}static replaceCaptures(t,e,r){return t.replace(at,(n,i,s,o)=>{let c=r[parseInt(i||s,10)];if(c){let a=e.substring(c.start,c.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return n})}};function jr(t,e){return t<e?-1:t>e?1:0}function Wr(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let r=t.length,n=e.length;if(r===n){for(let i=0;i<r;i++){let s=jr(t[i],e[i]);if(s!==0)return s}return 0}return r-n}function rr(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function Hr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var zr=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},Ge=class{constructor(t,e,r){this._colorMap=t,this._defaults=e,this._root=r}static createFromRawTheme(t,e){return this.createFromParsedTheme(ti(t),e)}static createFromParsedTheme(t,e){return ni(t,e)}_cachedMatchRoot=new zr(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find(i=>Yn(t.parent,i.parentScopes));return n?new qr(n.fontStyle,n.foreground,n.background):null}},ct=class Ne{constructor(e,r){this.parent=e,this.scopeName=r}static push(e,r){for(const n of r)e=new Ne(e,n);return e}static from(...e){let r=null;for(let n=0;n<e.length;n++)r=new Ne(r,e[n]);return r}push(e){return new Ne(this,e)}getSegments(){let e=this;const r=[];for(;e;)r.push(e.scopeName),e=e.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push(n.scopeName),n=n.parent;return n===e?r.reverse():void 0}};function Yn(t,e){if(e.length===0)return!0;for(let r=0;r<e.length;r++){let n=e[r],i=!1;if(n===">"){if(r===e.length-1)return!1;n=e[++r],i=!0}for(;t&&!ei(t.scopeName,n);){if(i)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function ei(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var qr=class{constructor(t,e,r){this.fontStyle=t,this.foregroundId=e,this.backgroundId=r}};function ti(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,r=[],n=0;for(let i=0,s=e.length;i<s;i++){let o=e[i];if(!o.settings)continue;let c;if(typeof o.scope=="string"){let p=o.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),c=p.split(",")}else Array.isArray(o.scope)?c=o.scope:c=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let p=o.settings.fontStyle.split(" ");for(let h=0,f=p.length;h<f;h++)switch(p[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let l=null;typeof o.settings.foreground=="string"&&rr(o.settings.foreground)&&(l=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&rr(o.settings.background)&&(d=o.settings.background);for(let p=0,h=c.length;p<h;p++){let m=c[p].trim().split(" "),y=m[m.length-1],E=null;m.length>1&&(E=m.slice(0,m.length-1),E.reverse()),r[n++]=new ri(y,E,i,a,l,d)}}return r}var ri=class{constructor(t,e,r,n,i,s){this.scope=t,this.parentScopes=e,this.index=r,this.fontStyle=n,this.foreground=i,this.background=s}},x=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(x||{});function ni(t,e){t.sort((a,l)=>{let d=jr(a.scope,l.scope);return d!==0||(d=Wr(a.parentScopes,l.parentScopes),d!==0)?d:a.index-l.index});let r=0,n="#000000",i="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(r=a.fontStyle),a.foreground!==null&&(n=a.foreground),a.background!==null&&(i=a.background)}let s=new ii(e),o=new qr(r,s.getId(n),s.getId(i)),c=new oi(new vt(0,null,-1,0,0),[]);for(let a=0,l=t.length;a<l;a++){let d=t[a];c.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new Ge(s,o,c)}var ii=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,r=t.length;e<r;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},si=Object.freeze([]),vt=class Xr{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,r,n,i,s){this.scopeDepth=e,this.parentScopes=r||si,this.fontStyle=n,this.foreground=i,this.background=s}clone(){return new Xr(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let r=[];for(let n=0,i=e.length;n<i;n++)r[n]=e[n].clone();return r}acceptOverwrite(e,r,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},oi=class Ct{constructor(e,r=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(e,r){if(e.scopeDepth!==r.scopeDepth)return r.scopeDepth-e.scopeDepth;let n=0,i=0;for(;e.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=e.parentScopes.length||i>=r.parentScopes.length);){const s=r.parentScopes[i].length-e.parentScopes[n].length;if(s!==0)return s;n++,i++}return r.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let n=e.indexOf("."),i,s;if(n===-1?(i=e,s=""):(i=e.substring(0,n),s=e.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(s)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Ct._cmpBySpecificity),r}insert(e,r,n,i,s,o){if(r===""){this._doInsertHere(e,n,i,s,o);return}let c=r.indexOf("."),a,l;c===-1?(a=r,l=""):(a=r.substring(0,c),l=r.substring(c+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new Ct(this._mainRule.clone(),vt.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,l,n,i,s,o)}_doInsertHere(e,r,n,i,s){if(r===null){this._mainRule.acceptOverwrite(e,n,i,s);return}for(let o=0,c=this._rulesWithParentScopes.length;o<c;o++){let a=this._rulesWithParentScopes[o];if(Wr(a.parentScopes,r)===0){a.acceptOverwrite(e,n,i,s);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new vt(e,r,n,i,s))}},de=class N{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const r=N.getLanguageId(e),n=N.getTokenType(e),i=N.getFontStyle(e),s=N.getForeground(e),o=N.getBackground(e);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,r,n,i,s,o,c){let a=N.getLanguageId(e),l=N.getTokenType(e),d=N.containsBalancedBrackets(e)?1:0,p=N.getFontStyle(e),h=N.getForeground(e),f=N.getBackground(e);return r!==0&&(a=r),n!==8&&(l=n),i!==null&&(d=i?1:0),s!==-1&&(p=s),o!==0&&(h=o),c!==0&&(f=c),(a<<0|l<<8|d<<10|p<<11|h<<15|f<<24)>>>0}};function Be(t,e){const r=[],n=ai(t);let i=n.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let l=o();if(r.push({matcher:l,priority:a}),i!==",")break;i=n.next()}return r;function s(){if(i==="-"){i=n.next();const a=s();return l=>!!a&&!a(l)}if(i==="("){i=n.next();const a=c();return i===")"&&(i=n.next()),a}if(nr(i)){const a=[];do a.push(i),i=n.next();while(nr(i));return l=>e(a,l)}return null}function o(){const a=[];let l=s();for(;l;)a.push(l),l=s();return d=>a.every(p=>p(d))}function c(){const a=[];let l=o();for(;l&&(a.push(l),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");l=o()}return d=>a.some(p=>p(d))}}function nr(t){return!!t&&!!t.match(/[\w\.:]+/)}function ai(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=e.exec(t);return{next:()=>{if(!r)return null;const n=r[0];return r=e.exec(t),n}}}function Qr(t){typeof t.dispose=="function"&&t.dispose()}var be=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},ci=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},li=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},ui=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new be(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new li;for(const r of t)di(r,this.initialScopeName,this.repo,e);for(const r of e.references)if(r instanceof be){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function di(t,e,r,n){const i=r.lookup(t.scopeName);if(!i){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=r.lookup(e);t instanceof be?$e({baseGrammar:s,selfGrammar:i},n):It(t.ruleName,{baseGrammar:s,selfGrammar:i,repository:i.repository},n);const o=r.injections(t.scopeName);if(o)for(const c of o)n.add(new be(c))}function It(t,e,r){if(e.repository&&e.repository[t]){const n=e.repository[t];Fe([n],e,r)}}function $e(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Fe(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Fe(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Fe(t,e,r){for(const n of t){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?Fr({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&Fe(n.patterns,{...e,repository:i},r);const s=n.include;if(!s)continue;const o=Jr(s);switch(o.kind){case 0:$e({...e,selfGrammar:e.baseGrammar},r);break;case 1:$e(e,r);break;case 2:It(o.ruleName,{...e,repository:i},r);break;case 3:case 4:const c=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(c){const a={baseGrammar:e.baseGrammar,selfGrammar:c,repository:i};o.kind===4?It(o.ruleName,a,r):$e(a,r)}else o.kind===4?r.add(new ci(o.scopeName,o.ruleName)):r.add(new be(o.scopeName));break}}}var pi=class{kind=0},hi=class{kind=1},fi=class{constructor(t){this.ruleName=t}kind=2},mi=class{constructor(t){this.scopeName=t}kind=3},gi=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function Jr(t){if(t==="$base")return new pi;if(t==="$self")return new hi;const e=t.indexOf("#");if(e===-1)return new mi(t);if(e===0)return new fi(t.substring(1));{const r=t.substring(0,e),n=t.substring(e+1);return new gi(r,n)}}var _i=/\\(\d+)/,ir=/\\(\d+)/g,yi=-1,Kr=-2;var Ie=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,r,n){this.$location=t,this.id=e,this._name=r||null,this._nameIsCapturing=Se.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Se.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${Ur(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Se.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Se.replaceCaptures(this._contentName,t,e)}},Ei=class extends Ie{retokenizeCapturedWithRuleId;constructor(t,e,r,n,i){super(t,e,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,r,n){throw new Error("Not supported!")}},bi=class extends Ie{_match;captures;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,null),this._match=new we(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ae,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},sr=class extends Ie{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i){super(t,e,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const r of this.patterns)t.getRule(r).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ae,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Rt=class extends Ie{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,r,n,i,s,o,c,a,l){super(t,e,r,n),this._begin=new we(i,this.id),this.beginCaptures=s,this._end=new we(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=c,this.applyEndPatternLast=a||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.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(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t,e).compileAG(t,r,n)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ae;for(const r of this.patterns)t.getRule(r).collectPatterns(t,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,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Ue=class extends Ie{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,r,n,i,s,o,c,a){super(t,e,r,n),this._begin=new we(i,this.id),this.beginCaptures=s,this.whileCaptures=c,this._while=new we(o,Kr),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.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(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,r,n){return this._getCachedCompiledPatterns(t).compileAG(t,r,n)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ae;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,r,n){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,r,n)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ae,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},Zr=class O{static createCaptureRule(e,r,n,i,s){return e.registerRule(o=>new Ei(r,o,n,i,s))}static getCompiledRuleId(e,r,n){return e.id||r.registerRule(i=>{if(e.id=i,e.match)return new bi(e.$vscodeTextmateLocation,e.id,e.name,e.match,O._compileCaptures(e.captures,r,n));if(typeof e.begin>"u"){e.repository&&(n=Fr({},n,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new sr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,O._compilePatterns(s,r,n))}return e.while?new Ue(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,r,n),e.while,O._compileCaptures(e.whileCaptures||e.captures,r,n),O._compilePatterns(e.patterns,r,n)):new Rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,O._compileCaptures(e.beginCaptures||e.captures,r,n),e.end,O._compileCaptures(e.endCaptures||e.captures,r,n),e.applyEndPatternLast,O._compilePatterns(e.patterns,r,n))}),e.id}static _compileCaptures(e,r,n){let i=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);c>s&&(s=c)}for(let o=0;o<=s;o++)i[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const c=parseInt(o,10);let a=0;e[o].patterns&&(a=O.getCompiledRuleId(e[o],r,n)),i[c]=O.createCaptureRule(r,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return i}static _compilePatterns(e,r,n){let i=[];if(e)for(let s=0,o=e.length;s<o;s++){const c=e[s];let a=-1;if(c.include){const l=Jr(c.include);switch(l.kind){case 0:case 1:a=O.getCompiledRuleId(n[c.include],r,n);break;case 2:let d=n[l.ruleName];d&&(a=O.getCompiledRuleId(d,r,n));break;case 3:case 4:const p=l.scopeName,h=l.kind===4?l.ruleName:null,f=r.getExternalGrammar(p,n);if(f)if(h){let m=f.repository[h];m&&(a=O.getCompiledRuleId(m,r,f.repository))}else a=O.getCompiledRuleId(f.repository.$self,r,f.repository);break}}else a=O.getCompiledRuleId(c,r,n);if(a!==-1){const l=r.getRule(a);let d=!1;if((l instanceof sr||l instanceof Rt||l instanceof Ue)&&l.hasMissingPatterns&&l.patterns.length===0&&(d=!0),d)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(e?e.length:0)!==i.length}}},we=class Yr{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,r){if(e&&typeof e=="string"){const n=e.length;let i=0,s=[],o=!1;for(let c=0;c<n;c++)if(e.charAt(c)==="\\"&&c+1<n){const l=e.charAt(c+1);l==="z"?(s.push(e.substring(i,c)),s.push("$(?!\\n)(?<!\\n)"),i=c+2):(l==="A"||l==="G")&&(o=!0),c++}this.hasAnchor=o,i===0?this.source=e:(s.push(e.substring(i,n)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=_i.test(this.source):this.hasBackReferences=!1}clone(){return new Yr(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>e.substring(i.start,i.end));return ir.lastIndex=0,this.source.replace(ir,(i,s)=>Hr(n[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],r=[],n=[],i=[],s,o,c,a;for(s=0,o=this.source.length;s<o;s++)c=this.source.charAt(s),e[s]=c,r[s]=c,n[s]=c,i[s]=c,c==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="￿",r[s+1]="￿",n[s+1]="A",i[s+1]="A"):a==="G"?(e[s+1]="￿",r[s+1]="G",n[s+1]="￿",i[s+1]="G"):(e[s+1]=a,r[s+1]=a,n[s+1]=a,i[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ae=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(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(r=>r.source);this._cached=new or(t,e,this._items.map(r=>r.ruleId))}return this._cached}compileAG(t,e,r){return this._hasAnchors?e?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,r)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,r){let n=this._items.map(i=>i.resolveAnchors(e,r));return new or(t,n,this._items.map(i=>i.ruleId))}},or=class{constructor(t,e,r){this.regExps=e,this.rules=r,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,r=this.rules.length;e<r;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
3
3
  `)}findNextMatchSync(t,e,r){const n=this.scanner.findNextMatchSync(t,e,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},lt=class{constructor(t,e){this.languageId=t,this.tokenType=e}},wi=class Lt{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,r){this._defaultAttributes=new lt(e,8),this._embeddedLanguagesMatcher=new Ai(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Lt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new lt(0,0);_getBasicScopeAttributes=new zr(e=>{const r=this._scopeToLanguage(e),n=this._toStandardTokenType(e);return new lt(r,n)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const r=e.match(Lt.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 new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Ai=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([r,n])=>Hr(r));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},ar=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function en(t,e,r,n,i,s,o,c){const a=e.content.length;let l=!1,d=-1;if(o){const f=vi(t,e,r,n,i,s);i=f.stack,n=f.linePos,r=f.isFirstLine,d=f.anchorPosition}const p=Date.now();for(;!l;){if(c!==0&&Date.now()-p>c)return new ar(i,!0);h()}return new ar(i,!1);function h(){const f=Ci(t,e,r,n,i,d);if(!f){s.produce(i,a),l=!0;return}const m=f.captureIndices,y=f.matchedRuleId,E=m&&m.length>0?m[0].end>n:!1;if(y===yi){const g=i.getRule(t);s.produce(i,m[0].start),i=i.withContentNameScopesList(i.nameScopesList),_e(t,e,r,i,s,g.endCaptures,m),s.produce(i,m[0].end);const b=i;if(i=i.parent,d=b.getAnchorPos(),!E&&b.getEnterPos()===n){i=b,s.produce(i,a),l=!0;return}}else{const g=t.getRule(y);s.produce(i,m[0].start);const b=i,_=g.getName(e.content,m),w=i.contentNameScopesList.pushAttributed(_,t);if(i=i.push(y,n,d,m[0].end===a,null,w,w),g instanceof Rt){const v=g;_e(t,e,r,i,s,v.beginCaptures,m),s.produce(i,m[0].end),d=m[0].end;const T=v.getContentName(e.content,m),D=w.pushAttributed(T,t);if(i=i.withContentNameScopesList(D),v.endHasBackReferences&&(i=i.withEndRule(v.getEndWithResolvedBackReferences(e.content,m))),!E&&b.hasSameRuleAs(i)){i=i.pop(),s.produce(i,a),l=!0;return}}else if(g instanceof Ue){const v=g;_e(t,e,r,i,s,v.beginCaptures,m),s.produce(i,m[0].end),d=m[0].end;const T=v.getContentName(e.content,m),D=w.pushAttributed(T,t);if(i=i.withContentNameScopesList(D),v.whileHasBackReferences&&(i=i.withEndRule(v.getWhileWithResolvedBackReferences(e.content,m))),!E&&b.hasSameRuleAs(i)){i=i.pop(),s.produce(i,a),l=!0;return}}else if(_e(t,e,r,i,s,g.captures,m),s.produce(i,m[0].end),i=i.pop(),!E){i=i.safePop(),s.produce(i,a),l=!0;return}}m[0].end>n&&(n=m[0].end,r=!1)}}function vi(t,e,r,n,i,s){let o=i.beginRuleCapturedEOL?0:-1;const c=[];for(let a=i;a;a=a.pop()){const l=a.getRule(t);l instanceof Ue&&c.push({rule:l,stack:a})}for(let a=c.pop();a;a=c.pop()){const{ruleScanner:l,findOptions:d}=Li(a.rule,t,a.stack.endRule,r,n===o),p=l.findNextMatchSync(e,n,d);if(p){if(p.ruleId!==Kr){i=a.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(s.produce(a.stack,p.captureIndices[0].start),_e(t,e,r,a.stack,s,a.rule.whileCaptures,p.captureIndices),s.produce(a.stack,p.captureIndices[0].end),o=p.captureIndices[0].end,p.captureIndices[0].end>n&&(n=p.captureIndices[0].end,r=!1))}else{i=a.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:o,isFirstLine:r}}function Ci(t,e,r,n,i,s){const o=Ii(t,e,r,n,i,s),c=t.getInjections();if(c.length===0)return o;const a=Ri(c,t,e,r,n,i,s);if(!a)return o;if(!o)return a;const l=o.captureIndices[0].start,d=a.captureIndices[0].start;return d<l||a.priorityMatch&&d===l?a:o}function Ii(t,e,r,n,i,s){const o=i.getRule(t),{ruleScanner:c,findOptions:a}=tn(o,t,i.endRule,r,n===s),l=c.findNextMatchSync(e,n,a);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}function Ri(t,e,r,n,i,s,o){let c=Number.MAX_VALUE,a=null,l,d=0;const p=s.contentNameScopesList.getScopeNames();for(let h=0,f=t.length;h<f;h++){const m=t[h];if(!m.matcher(p))continue;const y=e.getRule(m.ruleId),{ruleScanner:E,findOptions:g}=tn(y,e,null,n,i===o),b=E.findNextMatchSync(r,i,g);if(!b)continue;const _=b.captureIndices[0].start;if(!(_>=c)&&(c=_,a=b.captureIndices,l=b.ruleId,d=m.priority,c===i))break}return a?{priorityMatch:d===-1,captureIndices:a,matchedRuleId:l}:null}function tn(t,e,r,n,i){return{ruleScanner:t.compileAG(e,r,n,i),findOptions:0}}function Li(t,e,r,n,i){return{ruleScanner:t.compileWhileAG(e,r,n,i),findOptions:0}}function _e(t,e,r,n,i,s,o){if(s.length===0)return;const c=e.content,a=Math.min(s.length,o.length),l=[],d=o[0].end;for(let p=0;p<a;p++){const h=s[p];if(h===null)continue;const f=o[p];if(f.length===0)continue;if(f.start>d)break;for(;l.length>0&&l[l.length-1].endPos<=f.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,f.start):i.produce(n,f.start),h.retokenizeCapturedWithRuleId){const y=h.getName(c,o),E=n.contentNameScopesList.pushAttributed(y,t),g=h.getContentName(c,o),b=E.pushAttributed(g,t),_=n.push(h.retokenizeCapturedWithRuleId,f.start,-1,!1,null,E,b),w=t.createOnigString(c.substring(0,f.end));en(t,w,r&&f.start===0,f.start,_,i,!1,0),Qr(w);continue}const m=h.getName(c,o);if(m!==null){const E=(l.length>0?l[l.length-1].scopes:n.contentNameScopesList).pushAttributed(m,t);l.push(new Si(E,f.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Si=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function Ti(t,e,r,n,i,s,o,c){return new Pi(t,e,r,n,i,s,o,c)}function cr(t,e,r,n,i){const s=Be(e,je),o=Zr.getCompiledRuleId(r,n,i.repository);for(const c of s)t.push({debugSelector:e,matcher:c.matcher,ruleId:o,grammar:i,priority:c.priority})}function je(t,e){if(e.length<t.length)return!1;let r=0;return t.every(n=>{for(let i=r;i<e.length;i++)if(ki(e[i],n))return r=i+1,!0;return!1})}function ki(t,e){if(!t)return!1;if(t===e)return!0;const r=e.length;return t.length>r&&t.substr(0,r)===e&&t[r]==="."}var Pi=class{constructor(t,e,r,n,i,s,o,c){if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=c,this._basicScopeAttributesProvider=new wi(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=lr(e,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const l=Be(a,je);for(const d of l)this._tokenTypeMatchers.push({matcher:d.matcher,type:i[a]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},e=[],r=this._rootScopeName,n=t.lookup(r);if(n){const i=n.injections;if(i)for(let o in i)cr(e,o,i[o],this,n);const s=this._grammarRepository.injections(r);s&&s.forEach(o=>{const c=this.getExternalGrammar(o);if(c){const a=c.injectionSelector;a&&cr(e,a,c,this,c)}})}return e.sort((i,s)=>i.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,r=t(e);return this._ruleId2desc[e]=r,r}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const r=this._grammarRepository.lookup(t);if(r)return this._includedGrammars[t]=lr(r,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,r=0){const n=this._tokenize(t,e,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(t,e,r=0){const n=this._tokenize(t,e,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(t,e,r,n){this._rootId===-1&&(this._rootId=Zr.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!e||e===St.NULL){i=!0;const l=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),p=de.set(0,l.languageId,l.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),h=this.getRule(this._rootId).getName(null,null);let f;h?f=ye.createRootAndLookUpScopeName(h,p,this):f=ye.createRoot("unknown",p),e=new St(null,this._rootId,-1,-1,!1,null,f,f)}else i=!1,e.reset();t=t+`
4
4
  `;const s=this.createOnigString(t),o=s.content.length,c=new xi(r,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=en(this,s,i,0,e,c,!0,n);return Qr(s),{lineLength:o,lineTokens:c,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function lr(t,e){return t=Jn(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var ye=class B{constructor(e,r,n){this.parent=e,this.scopePath=r,this.tokenAttributes=n}static fromExtension(e,r){let n=e,i=e?.scopePath??null;for(const s of r)i=ct.push(i,s.scopeNames),n=new B(n,i,s.encodedTokenAttributes);return n}static createRoot(e,r){return new B(null,new ct(null,e),r)}static createRootAndLookUpScopeName(e,r,n){const i=n.getMetadataForScope(e),s=new ct(null,e),o=n.themeProvider.themeMatch(s),c=B.mergeAttributes(r,i,o);return new B(null,s,c)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return B.equals(this,e)}static equals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.scopeName!==r.scopeName||e.tokenAttributes!==r.tokenAttributes)return!1;e=e.parent,r=r.parent}while(!0)}static mergeAttributes(e,r,n){let i=-1,s=0,o=0;return n!==null&&(i=n.fontStyle,s=n.foregroundId,o=n.backgroundId),de.set(e,r.languageId,r.tokenType,null,i,s,o)}pushAttributed(e,r){if(e===null)return this;if(e.indexOf(" ")===-1)return B._pushAttributed(this,e,r);const n=e.split(/ /g);let i=this;for(const s of n)i=B._pushAttributed(i,s,r);return i}static _pushAttributed(e,r,n){const i=n.getMetadataForScope(r),s=e.scopePath.push(r),o=n.themeProvider.themeMatch(s),c=B.mergeAttributes(e.tokenAttributes,i,o);return new B(e,s,c)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const r=[];let n=this;for(;n&&n!==e;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?r.reverse():void 0}},St=class Z{constructor(e,r,n,i,s,o,c,a){this.parent=e,this.ruleId=r,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=c,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new Z(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:Z._equals(this,e)}static _equals(e,r){return e===r?!0:this._structuralEquals(e,r)?ye.equals(e.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(e,r){do{if(e===r||!e&&!r)return!0;if(!e||!r||e.depth!==r.depth||e.ruleId!==r.ruleId||e.endRule!==r.endRule)return!1;e=e.parent,r=r.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){Z._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,r,n,i,s,o,c){return new Z(this,e,r,n,i,s,o,c)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,r){return this.parent&&(r=this.parent._writeString(e,r)),e[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new Z(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let r=this;for(;r&&r._enterPos===e._enterPos;){if(r.ruleId===e.ruleId)return!0;r=r.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(e,r){const n=ye.fromExtension(e?.nameScopesList??null,r.nameScopesList);return new Z(e,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,ye.fromExtension(n,r.contentNameScopesList))}},Oi=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Be(r,je).map(n=>n.matcher)),this.unbalancedBracketScopes=e.flatMap(r=>Be(r,je).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},xi=class{constructor(t,e,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=t,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=t?.getScopeNames()??[];for(const o of this._tokenTypeOverrides)o.matcher(s)&&(n=de.set(n,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(s))}if(i&&(n=de.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const r=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:r}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},Di=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,r,n,i){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,Ti(t,s,e,r,n,i,this,this._onigLib))}return this._grammars.get(t)}},Ni=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Di(Ge.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,r){this._syncRegistry.setTheme(Ge.createFromRawTheme(e,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,r,n){return this.loadGrammarWithConfiguration(e,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,r,n){return this._loadGrammar(e,r,n.embeddedLanguages,n.tokenTypes,new Oi(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,r,n,i,s){const o=new ui(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(c=>this._loadSingleGrammar(c.scopeName)),o.processQueue();return this._grammarForScopeName(e,r,n,i,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const r=this._options.loadGrammar(e);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(e,r=[],n=0,i=null){return this._syncRegistry.addGrammar(e,r),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,r=0,n=null,i=null,s=null){return this._syncRegistry.grammarForScopeName(e,r,n,i,s)}},Tt=St.NULL;const $i=/["&'<>`]/g,Vi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mi=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Gi=/[|\\{}()[\]^$+*?.]/g,ur=new WeakMap;function Bi(t,e){if(t=t.replace(e.subset?Fi(e.subset):$i,n),e.subset||e.escapeOnly)return t;return t.replace(Vi,r).replace(Mi,n);function r(i,s,o){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function n(i,s,o){return e.format(i.charCodeAt(0),o.charCodeAt(s+1),e)}}function Fi(t){let e=ur.get(t);return e||(e=Ui(t),ur.set(t,e)),e}function Ui(t){const e=[];let r=-1;for(;++r<t.length;)e.push(t[r].replace(Gi,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const ji=/[\dA-Fa-f]/;function Wi(t,e,r){const n="&#x"+t.toString(16).toUpperCase();return r&&e&&!ji.test(String.fromCharCode(e))?n:n+";"}const Hi=/\d/;function zi(t,e,r){const n="&#"+String(t);return r&&e&&!Hi.test(String.fromCharCode(e))?n:n+";"}const qi=["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"],ut={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:"€"},Xi=["cent","copy","divide","gt","lt","not","para","times"],rn={}.hasOwnProperty,kt={};let Te;for(Te in ut)rn.call(ut,Te)&&(kt[ut[Te]]=Te);const Qi=/[^\dA-Za-z]/;function Ji(t,e,r,n){const i=String.fromCharCode(t);if(rn.call(kt,i)){const s=kt[i],o="&"+s;return r&&qi.includes(s)&&!Xi.includes(s)&&(!n||e&&e!==61&&Qi.test(String.fromCharCode(e)))?o:o+";"}return""}function Ki(t,e,r){let n=Wi(t,e,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Ji(t,e,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const s=zi(t,e,r.omitOptionalSemicolons);s.length<n.length&&(n=s)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function ue(t,e){return Bi(t,Object.assign({format:Ki},e))}const Zi=/^>|^->|<!--|-->|--!>|<!-$/g,Yi=[">"],es=["<",">"];function ts(t,e,r,n){return n.settings.bogusComments?"<?"+ue(t.value,Object.assign({},n.settings.characterReferences,{subset:Yi}))+">":"<!--"+t.value.replace(Zi,i)+"-->";function i(s){return ue(s,Object.assign({},n.settings.characterReferences,{subset:es}))}}function rs(t,e,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}const S=sn(1),nn=sn(-1),ns=[];function sn(t){return e;function e(r,n,i){const s=r?r.children:ns;let o=(n||0)+t,c=s[o];if(!i)for(;c&&Mt(c);)o+=t,c=s[o];return c}}const is={}.hasOwnProperty;function on(t){return e;function e(r,n,i){return is.call(t,r.tagName)&&t[r.tagName](r,n,i)}}const Bt=on({body:os,caption:dt,colgroup:dt,dd:us,dt:ls,head:dt,html:ss,li:cs,optgroup:ds,option:ps,p:as,rp:dr,rt:dr,tbody:fs,td:pr,tfoot:ms,th:pr,thead:hs,tr:gs});function dt(t,e,r){const n=S(r,e,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Mt(n.value.charAt(0)))}function ss(t,e,r){const n=S(r,e);return!n||n.type!=="comment"}function os(t,e,r){const n=S(r,e);return!n||n.type!=="comment"}function as(t,e,r){const n=S(r,e);return n?n.type==="element"&&(n.tagName==="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"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function cs(t,e,r){const n=S(r,e);return!n||n.type==="element"&&n.tagName==="li"}function ls(t,e,r){const n=S(r,e);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function us(t,e,r){const n=S(r,e);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function dr(t,e,r){const n=S(r,e);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function ds(t,e,r){const n=S(r,e);return!n||n.type==="element"&&n.tagName==="optgroup"}function ps(t,e,r){const n=S(r,e);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function hs(t,e,r){const n=S(r,e);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function fs(t,e,r){const n=S(r,e);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function ms(t,e,r){return!S(r,e)}function gs(t,e,r){const n=S(r,e);return!n||n.type==="element"&&n.tagName==="tr"}function pr(t,e,r){const n=S(r,e);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const _s=on({body:bs,colgroup:ws,head:Es,html:ys,tbody:As});function ys(t){const e=S(t,-1);return!e||e.type!=="comment"}function Es(t){const e=new Set;for(const n of t.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(e.has(n.tagName))return!1;e.add(n.tagName)}const r=t.children[0];return!r||r.type==="element"}function bs(t){const e=S(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Mt(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function ws(t,e,r){const n=nn(r,e),i=S(t,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&Bt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function As(t,e,r){const n=nn(r,e),i=S(t,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&Bt(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const ke={name:[[`
5
5
  \f\r &/=>`.split(""),`
@@ -150,4 +150,4 @@ XID_Continue XIDC
150
150
  XID_Start XIDS`.split(/\s/).map(t=>[rt(t),t])),Za=new Map([["s",L(383)],[L(383),"s"]]),Ya=new Map([[L(223),L(7838)],[L(107),L(8490)],[L(229),L(8491)],[L(969),L(8486)]]),ec=new Map([X(453),X(456),X(459),X(498),..._t(8072,8079),..._t(8088,8095),..._t(8104,8111),X(8124),X(8140),X(8188)]),tc=new Map([["alnum",A`[\p{Alpha}\p{Nd}]`],["alpha",A`\p{Alpha}`],["ascii",A`\p{ASCII}`],["blank",A`[\p{Zs}\t]`],["cntrl",A`\p{Cc}`],["digit",A`\p{Nd}`],["graph",A`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",A`\p{Lower}`],["print",A`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",A`[\p{P}\p{S}]`],["space",A`\p{space}`],["upper",A`\p{Upper}`],["word",A`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",A`\p{AHex}`]]);function rc(t,e){const r=[];for(let n=t;n<=e;n++)r.push(n);return r}function X(t){const e=L(t);return[e.toLowerCase(),e]}function _t(t,e){return rc(t,e).map(r=>X(r))}var $n=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function nc(t,e){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};Vn(t);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:$t(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};Ee(t,ic,n);const i={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},s={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};Ee(t,sc,s);const o={groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer};return Ee(t,oc,o),t._originMap=s.groupOriginByCopy,t._strategy=n.strategy,t}var ic={AbsenceFunction({node:t,parent:e,replaceWith:r}){const{body:n,kind:i}=t;if(i==="repeater"){const s=M();s.body[0].body.push(Y({negate:!0,body:n}),ce("Any"));const o=M();o.body[0].body.push(Sn("greedy",0,1/0,s)),r(C(o,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:r},{flagDirectivesByAlt:n}){const i=t.body.filter(s=>s.kind==="flags");for(let s=r+1;s<e.body.length;s++){const o=e.body[s];Ce(n,o,[]).push(...i)}},exit({node:t},{flagDirectivesByAlt:e}){if(e.get(t)?.length){const r=Gn(e.get(t));if(r){const n=M({flags:r});n.body[0].body=t.body,t.body=[C(n,t)]}}}},Assertion({node:t,parent:e,key:r,container:n,root:i,remove:s,replaceWith:o},c){const{kind:a,negate:l}=t,{asciiWordBoundaries:d,avoidSubclass:p,supportedGNodes:h,wordIsAscii:f}=c;if(a==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${l?"Y":"y"}"`);if(a==="line_end")o(C(Y({body:[re({body:[Ot("string_end")]}),re({body:[tt(10)]})]}),e));else if(a==="line_start")o(C(H(A`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(a==="search_start")if(h.has(t))i.flags.sticky=!0,s();else{const m=n[r-1];if(m&&pc(m))o(C(Y({negate:!0}),e));else{if(p)throw new Error(A`Uses "\G" in a way that requires a subclass`);o(Q(Ot("string_start"),e)),c.strategy="clip_search"}}else if(!(a==="string_end"||a==="string_start"))if(a==="string_end_newline")o(C(H(A`(?=\n?\z)`),e));else if(a==="word_boundary"){if(!f&&!d){const m=`(?:(?<=${W})(?!${W})|(?<!${W})(?=${W}))`,y=`(?:(?<=${W})(?=${W})|(?<!${W})(?!${W}))`;o(C(H(l?y:m),e))}}else throw new Error(`Unexpected assertion kind "${a}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!Et(r)&&(r=yt(r,e),t.ref=r)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:r}){let{name:n}=t;n&&!Et(n)&&(n=yt(n,e),t.name=n),r.set(t.number,t),n&&r.set(n,t)},CharacterClassRange({node:t,parent:e,replaceWith:r}){if(e.kind==="intersection"){const n=Ve({body:[t]});r(C(n,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:s,spaceIsAscii:o,wordIsAscii:c}){const{kind:a,negate:l,value:d}=t;if(s&&(a==="digit"||d==="digit")){r(Q(Dt("digit",{negate:l}),e));return}if(o&&(a==="space"||d==="space")){r(C(bt(H(Ja),l),e));return}if(c&&(a==="word"||d==="word")){r(Q(Dt("word",{negate:l}),e));return}if(a==="any")r(Q(ce("Any"),e));else if(a==="digit")r(Q(ce("Nd",{negate:l}),e));else if(a!=="dot")if(a==="text_segment"){if(n==="strict")throw new Error(A`Use of "\X" requires non-strict accuracy`);const p="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",h=A`\p{RI}{2}|${p}(?:\u200D${p})*`;r(C(H(A`(?>\r\n|${i?A`\p{RGI_Emoji}`:h}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(a==="hex")r(Q(ce("AHex",{negate:l}),e));else if(a==="newline")r(C(H(l?`[^
151
151
  ]`:`(?>\r
152
152
  ?|[
153
- \v\f…\u2028\u2029])`),e));else if(a==="posix")if(!i&&(d==="graph"||d==="print")){if(n==="strict")throw new Error(`POSIX class "${d}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[d];l&&(p=`\0-${L(p.codePointAt(0)-1)}${L(p.codePointAt(2)+1)}-􏿿`),r(C(H(`[${p}]`),e))}else r(C(bt(H(tc.get(d)),l),e));else if(a==="property")Zt.has(rt(d))||(t.key="sc");else if(a==="space")r(Q(ce("space",{negate:l}),e));else if(a==="word")r(C(bt(H(W),l),e));else throw new Error(`Unexpected character set kind "${a}"`)},Directive({node:t,parent:e,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:s,removeAllNextSiblings:o}){const{kind:c,flags:a}=t;if(c==="flags")if(!a.enable&&!a.disable)n();else{const l=M({flags:a});l.body[0].body=o(),i(C(l,e),{traverse:!0})}else if(c==="keep"){const l=r.body[0],p=r.body.length===1&&In(l,{type:"Group"})&&l.body[0].body.length===1?l.body[0]:r;if(e.parent!==p||p.body.length>1)throw new Error(A`Uses "\K" in a way that's unsupported`);const h=Y({behind:!0});h.body[0].body=s(),i(C(h,e))}else throw new Error(`Unexpected directive kind "${c}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete t[r]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:r}=t.flags;e?.extended&&delete e.extended,r?.extended&&delete r.extended,e?.dotAll&&r?.dotAll&&delete e.dotAll,e?.ignoreCase&&r?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,r&&!Object.keys(r).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){const{kind:r}=t;r==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:r}){const{kind:n}=t;if(n==="fail")r(C(Y({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){const e=M();e.body[0].body.push(t.body),t.body=C(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){const r=[];let n=!1,i=!1;for(const s of t.body)if(s.body.length===1&&s.body[0].kind==="search_start")s.body.pop();else{const o=Fn(s.body);o?(n=!0,Array.isArray(o)?r.push(...o):r.push(o)):i=!0}n&&!i&&r.forEach(s=>e.add(s))},exit(t,{accuracy:e,passedLookbehind:r,strategy:n}){if(e==="strict"&&r&&n)throw new Error(A`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!Et(r)&&(r=yt(r,e),t.ref=r)}},sc={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=t;n||r.set(t,[...e.get(i).map(({node:s})=>s)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:s,multiplexCapturesToLeftByRef:o,openRefs:c,reffedNodesByReferencer:a}){const l=i.get(t);if(l&&c.has(t.number)){const p=Q(Dr(t.number),e);a.set(p,c.get(t.number)),r(p);return}c.set(t.number,t),o.set(t.number,[]),t.name&&Ce(o,t.name,[]);const d=o.get(t.name??t.number);for(let p=0;p<d.length;p++){const h=d[p];if(l===h.node||l&&l===h.origin||t===h.origin){d.splice(p,1);break}}if(o.get(t.number).push({node:t,origin:l}),t.name&&o.get(t.name).push({node:t,origin:l}),t.name){const p=Ce(s,t.name,new Map);let h=!1;if(l)h=!0;else for(const f of p.values())if(!f.hasDuplicateNameToRemove){h=!0;break}s.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:h})}},exit({node:t},{openRefs:e}){e.get(t.number)===t&&e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=Qe(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:r},n){const{isRecursive:i,ref:s}=t;if(i){let d=e;for(;(d=d.parent)&&!(d.type==="CapturingGroup"&&(d.name===s||d.number===s)););n.reffedNodesByReferencer.set(t,d);return}const o=n.subroutineRefMap.get(s),c=s===0,a=c?Dr(0):Mn(o,n.groupOriginByCopy,null);let l=a;if(!c){const d=Gn(lc(o,h=>h.type==="Group"&&!!h.flags)),p=d?Qe(n.globalFlags,d):n.globalFlags;ac(p,n.currentFlags)||(l=M({flags:uc(p)}),l.body[0].body.push(a))}r(C(l,e),{traverse:!c})}},oc={Backreference({node:t,parent:e,replaceWith:r},n){if(t.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,t.ref);return}const s=n.reffedNodesByReferencer.get(t).filter(o=>cc(o,t));if(!s.length)r(C(Y({negate:!0}),e));else if(s.length>1){const o=M({atomic:!0,body:s.reverse().map(c=>re({body:[xt(c.number)]}))});r(C(o,e))}else t.ref=s[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){const r=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=Ln();t.body.at(-1).body.push(i)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function Vn(t){Ee(t,{"*"({node:e,parent:r}){e.parent=r}})}function ac(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function cc(t,e){let r=e;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===t)return!1;const n=Bn(r.parent);for(const i of n){if(i===r)break;if(i===t||Un(i,t))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function Mn(t,e,r,n){const i=Array.isArray(t)?[]:{};for(const[s,o]of Object.entries(t))s==="parent"?i.parent=Array.isArray(r)?n:r:o&&typeof o=="object"?i[s]=Mn(o,e,i,r):(s==="type"&&o==="CapturingGroup"&&e.set(i,e.get(t)??t),i[s]=o);return i}function Dr(t){const e=Tn(t);return e.isRecursive=!0,e}function lc(t,e){const r=[];for(;t=t.parent;)(!e||e(t))&&r.push(t);return r}function yt(t,e){if(e.has(t))return e.get(t);const r=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,r),r}function Gn(t){const e=["dotAll","ignoreCase"],r={enable:{},disable:{}};return t.forEach(({flags:n})=>{e.forEach(i=>{n.enable?.[i]&&(delete r.disable[i],r.enable[i]=!0),n.disable?.[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function uc({dotAll:t,ignoreCase:e}){const r={};return(t||e)&&(r.enable={},t&&(r.enable.dotAll=!0),e&&(r.enable.ignoreCase=!0)),(!t||!e)&&(r.disable={},!t&&(r.disable.dotAll=!0),!e&&(r.disable.ignoreCase=!0)),r}function Bn(t){if(!t)throw new Error("Node expected");const{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function Fn(t){const e=t.find(r=>r.kind==="search_start"||hc(r,{negate:!1})||!dc(r));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){const r=[];for(const n of e.body){const i=Fn(n.body);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function Un(t,e){const r=Bn(t)??[];for(const n of r)if(n===e||Un(n,e))return!0;return!1}function dc({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function pc(t){const e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function hc(t,e){const r={negate:null,...e};return t.type==="LookaroundAssertion"&&(r.negate===null||t.negate===r.negate)&&t.body.length===1&&In(t.body[0],{type:"Assertion",kind:"search_start"})}function Et(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function H(t,e){const n=Rn(t,{...e,unicodePropertyMap:Zt}).body;return n.length>1||n[0].body.length>1?M({body:n}):n[0].body[0]}function bt(t,e){return t.negate=e,t}function Q(t,e){return t.parent=e,t}function C(t,e){return Vn(t),t.parent=e,t}function fc(t,e){const r=Dn(e),n=$t(r.target,"ES2024"),i=$t(r.target,"ES2025"),s=r.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let o=null,c=null;if(!i){const f=[t.flags.ignoreCase];Ee(t,mc,{getCurrentModI:()=>f.at(-1),popModI(){f.pop()},pushModI(m){f.push(m)},setHasCasedChar(){f.at(-1)?o=!0:c=!0}})}const a={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||o)&&!c)};let l=t;const d={accuracy:r.accuracy,appliedGlobalFlags:a,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:t._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!i&&o&&c),useFlagMods:i,useFlagV:n,verbose:r.verbose};function p(f){return d.lastNode=l,l=f,Xa(gc[f.type],`Unexpected node type "${f.type}"`)(f,d,p)}const h={pattern:t.body.map(p).join("|"),flags:p(t.flags),options:{...t.options}};return n||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],d.captureMap.forEach((f,m)=>{f.hidden&&h._hiddenCaptures.push(m),f.transferTo&&Ce(h._captureTransfers,f.transferTo,[]).push(m)}),h}var mc={"*":{enter({node:t},e){if($r(t)){const r=e.getCurrentModI();e.pushModI(t.flags?Qe({ignoreCase:r},t.flags).ignoreCase:r)}},exit({node:t},e){$r(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){Yt(L(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},r){e(),jn(t,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&$n.has(t.value)&&e.setHasCasedChar()}},gc={Alternative({body:t},e,r){return t.map(r).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?A`\B`:A`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,r){const{body:n,name:i,number:s}=t,o={ignoreCase:e.currentFlags.ignoreCase},c=e.originMap.get(t);return c&&(o.hidden=!0,s>c.number&&(o.transferTo=c.number)),e.captureMap.set(s,o),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:t},e){const r=L(t),n=se(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(n!==r)return n;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&Yt(r)){const i=Nn(r);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r},CharacterClass(t,e,r){const{kind:n,negate:i,parent:s}=t;let{body:o}=t;if(n==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");G.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&o.some(Vr)&&(o=[tt(45),...o.filter(l=>!Vr(l))]);const c=()=>`[${i?"^":""}${o.map(r).join(n==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||G.bugNestedClassIgnoresNegation)&&!i){const d=o.filter(p=>p.type==="CharacterClass"&&p.kind==="union"&&p.negate);if(d.length){const p=M(),h=p.body[0];return p.parent=s,h.parent=p,o=o.filter(f=>!d.includes(f)),t.body=o,o.length?(t.parent=h,h.body.push(t)):p.body.pop(),d.forEach(f=>{const m=re({body:[f]});f.parent=m,m.parent=p,p.body.push(m)}),r(p)}}e.inCharClass=!0;const l=c();return e.inCharClass=!1,l}const a=o[0];if(n==="union"&&!i&&a&&((!e.useFlagV||!e.verbose)&&s.kind==="union"&&!(G.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&s.kind==="intersection"&&o.length===1&&a.type!=="CharacterClassRange"))return o.map(r).join("");if(!e.useFlagV&&s.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return c()},CharacterClassRange(t,e){const r=t.min.value,n=t.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},s=se(r,i),o=se(n,i),c=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const a=jn(t);wc(a).forEach(d=>{c.add(Array.isArray(d)?`${se(d[0],i)}-${se(d[1],i)}`:se(d,i))})}return`${s}-${o}${[...c].join("")}`},CharacterSet({kind:t,negate:e,value:r,key:n},i){if(t==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":A`[^\n]`;if(t==="digit")return e?A`\D`:A`\d`;if(t==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&$n.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${e?A`\P`:A`\p`}{${n?`${n}=`:""}${r}}`}if(t==="word")return e?A`\W`:A`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:r,parent:n},i,s){const o=i.currentFlags;r&&(i.currentFlags=Qe(o,r));const c=e.map(s).join("|"),a=!i.verbose&&e.length===1&&n.type!=="Quantifier"&&!t&&(!i.useFlagMods||!r)?c:`(?${Ac(t,r,i.useFlagMods)}${c})`;return i.currentFlags=o,a},LookaroundAssertion({body:t,kind:e,negate:r},n,i){return`(?${`${e==="lookahead"?"":"<"}${r?"!":"="}`}${t.map(i).join("|")})`},Quantifier(t,e,r){return r(t.body)+vc(t)},Subroutine({isRecursive:t,ref:e},r){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return e===0?`(?R=${n})`:A`\g<${e}&R=${n}>`}},_c=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),yc=new Set(["-","\\","]","^","["]),Ec=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Nr=new Map([[9,A`\t`],[10,A`\n`],[11,A`\v`],[12,A`\f`],[13,A`\r`],[8232,A`\u2028`],[8233,A`\u2029`],[65279,A`\uFEFF`]]),bc=/^\p{Cased}$/u;function Yt(t){return bc.test(t)}function jn(t,e){const r=!!e?.firstOnly,n=t.min.value,i=t.max.value,s=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return s;for(let o=n;o<=i;o++){const c=L(o);if(!Yt(c))continue;const a=Nn(c).filter(l=>{const d=l.codePointAt(0);return d<n||d>i});if(a.length&&(s.push(...a),r))break}return s}function se(t,{escDigit:e,inCharClass:r,useFlagV:n}){if(Nr.has(t))return Nr.get(t);if(t<32||t>126&&t<160||t>262143||e&&Cc(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?Ec:yc:_c,s=L(t);return(i.has(s)?"\\":"")+s}function wc(t){const e=t.map(i=>i.codePointAt(0)).sort((i,s)=>i-s),r=[];let n=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?n??=e[i]:n===null?r.push(e[i]):(r.push([n,e[i]]),n=null);return r}function Ac(t,e,r){if(t)return">";let n="";if(e&&r){const{enable:i,disable:s}=e;n=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(s?"-":"")+(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")}return`${n}:`}function vc({kind:t,max:e,min:r}){let n;return!r&&e===1?n="?":!r&&e===1/0?n="*":r===1&&e===1/0?n="+":r===e?n=`{${r}}`:n=`{${r},${e===1/0?"":e}}`,n+{greedy:"",lazy:"?",possessive:"+"}[t]}function $r({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function Cc(t){return t>47&&t<58}function Vr({type:t,value:e}){return t==="Character"&&e===45}var Ic=class Vt extends RegExp{#t=new Map;#e=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(e,r,n){const i=!!n?.lazyCompile;if(e instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const s=e;super(s,r),this.#n=s.source,s instanceof Vt&&(this.#t=s.#t,this.#r=s.#r,this.#i=s.#i,this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":e,r),this.#n=e,this.#t=Lc(s.hiddenCaptures,s.transfers),this.#i=s.strategy,this.rawOptions=n??{}}i||(this.#e=this)}exec(e){if(!this.#e){const{lazyCompile:i,...s}=this.rawOptions;this.#e=new Vt(this.#n,this.flags,s)}const r=this.global||this.sticky,n=this.lastIndex;if(this.#i==="clip_search"&&r&&n){this.lastIndex=0;const i=this.#s(e.slice(n));return i&&(Rc(i,n,e,this.hasIndices),this.lastIndex+=n),i}return this.#s(e)}#s(e){this.#e.lastIndex=this.lastIndex;const r=super.exec.call(this.#e,e);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;const n=[...r];r.length=1;let i;this.hasIndices&&(i=[...r.indices],r.indices.length=1);const s=[0];for(let o=1;o<n.length;o++){const{hidden:c,transferTo:a}=this.#t.get(o)??{};if(c?s.push(null):(s.push(r.length),r.push(n[o]),this.hasIndices&&r.indices.push(i[o])),a&&n[o]!==void 0){const l=s[a];if(!l)throw new Error(`Invalid capture transfer to "${l}"`);if(r[l]=n[o],this.hasIndices&&(r.indices[l]=i[o]),r.groups){this.#r||(this.#r=Sc(this.source));const d=this.#r.get(a);d&&(r.groups[d]=n[o],this.hasIndices&&(r.indices.groups[d]=i[o]))}}}return r}};function Rc(t,e,r,n){if(t.index+=e,t.input=r,n){const i=t.indices;for(let o=0;o<i.length;o++){const c=i[o];c&&(i[o]=[c[0]+e,c[1]+e])}const s=i.groups;s&&Object.keys(s).forEach(o=>{const c=s[o];c&&(s[o]=[c[0]+e,c[1]+e])})}}function Lc(t,e){const r=new Map;for(const n of t)r.set(n,{hidden:!0});for(const[n,i]of e)for(const s of i)Ce(r,s,{}).transferTo=n;return r}function Sc(t){const e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,i=0,s;for(;s=e.exec(t);){const{0:o,groups:{capture:c,name:a}}=s;o==="["?n++:n?o==="]"&&n--:c&&(i++,a&&r.set(i,a))}return r}function Tc(t,e){const r=kc(t,e);return r.options?new Ic(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function kc(t,e){const r=Dn(e),n=Rn(t,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:Zt}),i=nc(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),s=fc(i,r),o=za(s.pattern,{captureTransfers:s._captureTransfers,hiddenCaptures:s._hiddenCaptures,mode:"external"}),c=Wa(o.pattern),a=ja(c.pattern,{captureTransfers:o.captureTransfers,hiddenCaptures:o.hiddenCaptures}),l={pattern:a.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${s.flags}${s.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const d=a.hiddenCaptures.sort((m,y)=>m-y),p=Array.from(a.captureTransfers),h=i._strategy,f=l.pattern.length>=r.lazyCompileLength;(d.length||p.length||h||f)&&(l.options={...d.length&&{hiddenCaptures:d},...p.length&&{transfers:p},...h&&{strategy:h},...f&&{lazyCompile:f}})}return l}const Mr=4294967295;class Pc{constructor(e,r={}){this.patterns=e,this.options=r;const{forgiving:n=!1,cache:i,regexConstructor:s}=r;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const c=i?.get(o);if(c){if(c instanceof RegExp)return c;if(n)return null;throw c}try{const a=s(o);return i?.set(o,a),a}catch(a){if(i?.set(o,a),n)return null;throw a}})}regexps;findNextMatchSync(e,r,n){const i=typeof e=="string"?e:e.content,s=[];function o(c,a,l=0){return{index:c,captureIndices:a.indices.map(d=>d==null?{start:Mr,end:Mr,length:0}:{start:d[0]+l,end:d[1]+l,length:d[1]-d[0]})}}for(let c=0;c<this.regexps.length;c++){const a=this.regexps[c];if(a)try{a.lastIndex=r;const l=a.exec(i);if(!l)continue;if(l.index===r)return o(c,l,0);s.push([c,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(s.length){const c=Math.min(...s.map(a=>a[1].index));for(const[a,l,d]of s)if(l.index===c)return o(a,l,d)}return null}}function Oc(t,e){return Tc(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function xc(t={}){const e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||=r=>Oc(r,{target:e.target}),{createScanner(r){return new Pc(r,e)},createString(r){return{content:r}}}}var Dc=xc({forgiving:!0}),Nc=Object.fromEntries(qt.flatMap(t=>{var e;return((e=t.aliases)!=null?e:[]).map(r=>[r,t.id])})),Me=new Set(Object.keys(yn)),Gr=t=>{let e=t.trim().toLowerCase();return Nc[e]||(Me.has(e),e)},wt=new Map,At=new Map,oe=new Map,Je=t=>{var e;return typeof t=="string"?t:(e=t.name)!=null?e:"custom"},$c=(t,e)=>`${t}-${Je(e[0])}-${Je(e[1])}`,Vc=(t,e,r)=>{let n=t.slice(0,100),i=t.length>100?t.slice(-100):"";return`${e}:${r[0]}:${r[1]}:${t.length}:${n}:${i}`},Mc=(t,e)=>{let r=$c(t,e);if(wt.has(r))return wt.get(r);let n=qo({themes:e,langs:[t],engine:Dc});return wt.set(r,n),n};function Gc(t={}){var e;let r=(e=t.themes)!=null?e:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(n){let i=Gr(n);return Me.has(i)},getSupportedLanguages(){return Array.from(Me)},getThemes(){return r},highlight({code:n,language:i,themes:s},o){let c=Gr(i),a=[Je(s[0]),Je(s[1])],l=Vc(n,c,a);if(At.has(l))return At.get(l);o&&(oe.has(l)||oe.set(l,new Set),oe.get(l).add(o));let d=Me.has(c)?c:"text";return Mc(d,s).then(p=>{let h=p.getLoadedLanguages().includes(c)?c:"text",f=p.codeToTokens(n,{lang:h,themes:{light:a[0],dark:a[1]}});At.set(l,f);let m=oe.get(l);if(m){for(let y of m)y(f);oe.delete(l)}}).catch(p=>{console.error("[Streamdown Code] Failed to highlight code:",p),oe.delete(l)}),null}}}var Zc=Gc();export{Zc as code,Gc as createCodePlugin};
153
+ \v\f…\u2028\u2029])`),e));else if(a==="posix")if(!i&&(d==="graph"||d==="print")){if(n==="strict")throw new Error(`POSIX class "${d}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[d];l&&(p=`\0-${L(p.codePointAt(0)-1)}${L(p.codePointAt(2)+1)}-􏿿`),r(C(H(`[${p}]`),e))}else r(C(bt(H(tc.get(d)),l),e));else if(a==="property")Zt.has(rt(d))||(t.key="sc");else if(a==="space")r(Q(ce("space",{negate:l}),e));else if(a==="word")r(C(bt(H(W),l),e));else throw new Error(`Unexpected character set kind "${a}"`)},Directive({node:t,parent:e,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:s,removeAllNextSiblings:o}){const{kind:c,flags:a}=t;if(c==="flags")if(!a.enable&&!a.disable)n();else{const l=M({flags:a});l.body[0].body=o(),i(C(l,e),{traverse:!0})}else if(c==="keep"){const l=r.body[0],p=r.body.length===1&&In(l,{type:"Group"})&&l.body[0].body.length===1?l.body[0]:r;if(e.parent!==p||p.body.length>1)throw new Error(A`Uses "\K" in a way that's unsupported`);const h=Y({behind:!0});h.body[0].body=s(),i(C(h,e))}else throw new Error(`Unexpected directive kind "${c}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete t[r]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:r}=t.flags;e?.extended&&delete e.extended,r?.extended&&delete r.extended,e?.dotAll&&r?.dotAll&&delete e.dotAll,e?.ignoreCase&&r?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,r&&!Object.keys(r).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){const{kind:r}=t;r==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:r}){const{kind:n}=t;if(n==="fail")r(C(Y({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){const e=M();e.body[0].body.push(t.body),t.body=C(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){const r=[];let n=!1,i=!1;for(const s of t.body)if(s.body.length===1&&s.body[0].kind==="search_start")s.body.pop();else{const o=Fn(s.body);o?(n=!0,Array.isArray(o)?r.push(...o):r.push(o)):i=!0}n&&!i&&r.forEach(s=>e.add(s))},exit(t,{accuracy:e,passedLookbehind:r,strategy:n}){if(e==="strict"&&r&&n)throw new Error(A`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:r}=t;typeof r=="string"&&!Et(r)&&(r=yt(r,e),t.ref=r)}},sc={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=t;n||r.set(t,[...e.get(i).map(({node:s})=>s)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:s,multiplexCapturesToLeftByRef:o,openRefs:c,reffedNodesByReferencer:a}){const l=i.get(t);if(l&&c.has(t.number)){const p=Q(Dr(t.number),e);a.set(p,c.get(t.number)),r(p);return}c.set(t.number,t),o.set(t.number,[]),t.name&&Ce(o,t.name,[]);const d=o.get(t.name??t.number);for(let p=0;p<d.length;p++){const h=d[p];if(l===h.node||l&&l===h.origin||t===h.origin){d.splice(p,1);break}}if(o.get(t.number).push({node:t,origin:l}),t.name&&o.get(t.name).push({node:t,origin:l}),t.name){const p=Ce(s,t.name,new Map);let h=!1;if(l)h=!0;else for(const f of p.values())if(!f.hasDuplicateNameToRemove){h=!0;break}s.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:h})}},exit({node:t},{openRefs:e}){e.get(t.number)===t&&e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=Qe(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:r},n){const{isRecursive:i,ref:s}=t;if(i){let d=e;for(;(d=d.parent)&&!(d.type==="CapturingGroup"&&(d.name===s||d.number===s)););n.reffedNodesByReferencer.set(t,d);return}const o=n.subroutineRefMap.get(s),c=s===0,a=c?Dr(0):Mn(o,n.groupOriginByCopy,null);let l=a;if(!c){const d=Gn(lc(o,h=>h.type==="Group"&&!!h.flags)),p=d?Qe(n.globalFlags,d):n.globalFlags;ac(p,n.currentFlags)||(l=M({flags:uc(p)}),l.body[0].body.push(a))}r(C(l,e),{traverse:!c})}},oc={Backreference({node:t,parent:e,replaceWith:r},n){if(t.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,t.ref);return}const s=n.reffedNodesByReferencer.get(t).filter(o=>cc(o,t));if(!s.length)r(C(Y({negate:!0}),e));else if(s.length>1){const o=M({atomic:!0,body:s.reverse().map(c=>re({body:[xt(c.number)]}))});r(C(o,e))}else t.ref=s[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){const r=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=Ln();t.body.at(-1).body.push(i)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function Vn(t){Ee(t,{"*"({node:e,parent:r}){e.parent=r}})}function ac(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function cc(t,e){let r=e;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===t)return!1;const n=Bn(r.parent);for(const i of n){if(i===r)break;if(i===t||Un(i,t))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function Mn(t,e,r,n){const i=Array.isArray(t)?[]:{};for(const[s,o]of Object.entries(t))s==="parent"?i.parent=Array.isArray(r)?n:r:o&&typeof o=="object"?i[s]=Mn(o,e,i,r):(s==="type"&&o==="CapturingGroup"&&e.set(i,e.get(t)??t),i[s]=o);return i}function Dr(t){const e=Tn(t);return e.isRecursive=!0,e}function lc(t,e){const r=[];for(;t=t.parent;)(!e||e(t))&&r.push(t);return r}function yt(t,e){if(e.has(t))return e.get(t);const r=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,r),r}function Gn(t){const e=["dotAll","ignoreCase"],r={enable:{},disable:{}};return t.forEach(({flags:n})=>{e.forEach(i=>{n.enable?.[i]&&(delete r.disable[i],r.enable[i]=!0),n.disable?.[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function uc({dotAll:t,ignoreCase:e}){const r={};return(t||e)&&(r.enable={},t&&(r.enable.dotAll=!0),e&&(r.enable.ignoreCase=!0)),(!t||!e)&&(r.disable={},!t&&(r.disable.dotAll=!0),!e&&(r.disable.ignoreCase=!0)),r}function Bn(t){if(!t)throw new Error("Node expected");const{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function Fn(t){const e=t.find(r=>r.kind==="search_start"||hc(r,{negate:!1})||!dc(r));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){const r=[];for(const n of e.body){const i=Fn(n.body);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function Un(t,e){const r=Bn(t)??[];for(const n of r)if(n===e||Un(n,e))return!0;return!1}function dc({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function pc(t){const e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function hc(t,e){const r={negate:null,...e};return t.type==="LookaroundAssertion"&&(r.negate===null||t.negate===r.negate)&&t.body.length===1&&In(t.body[0],{type:"Assertion",kind:"search_start"})}function Et(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function H(t,e){const n=Rn(t,{...e,unicodePropertyMap:Zt}).body;return n.length>1||n[0].body.length>1?M({body:n}):n[0].body[0]}function bt(t,e){return t.negate=e,t}function Q(t,e){return t.parent=e,t}function C(t,e){return Vn(t),t.parent=e,t}function fc(t,e){const r=Dn(e),n=$t(r.target,"ES2024"),i=$t(r.target,"ES2025"),s=r.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let o=null,c=null;if(!i){const f=[t.flags.ignoreCase];Ee(t,mc,{getCurrentModI:()=>f.at(-1),popModI(){f.pop()},pushModI(m){f.push(m)},setHasCasedChar(){f.at(-1)?o=!0:c=!0}})}const a={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||o)&&!c)};let l=t;const d={accuracy:r.accuracy,appliedGlobalFlags:a,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:l,originMap:t._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!i&&o&&c),useFlagMods:i,useFlagV:n,verbose:r.verbose};function p(f){return d.lastNode=l,l=f,Xa(gc[f.type],`Unexpected node type "${f.type}"`)(f,d,p)}const h={pattern:t.body.map(p).join("|"),flags:p(t.flags),options:{...t.options}};return n||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],d.captureMap.forEach((f,m)=>{f.hidden&&h._hiddenCaptures.push(m),f.transferTo&&Ce(h._captureTransfers,f.transferTo,[]).push(m)}),h}var mc={"*":{enter({node:t},e){if($r(t)){const r=e.getCurrentModI();e.pushModI(t.flags?Qe({ignoreCase:r},t.flags).ignoreCase:r)}},exit({node:t},e){$r(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){Yt(L(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},r){e(),jn(t,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&$n.has(t.value)&&e.setHasCasedChar()}},gc={Alternative({body:t},e,r){return t.map(r).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?A`\B`:A`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,r){const{body:n,name:i,number:s}=t,o={ignoreCase:e.currentFlags.ignoreCase},c=e.originMap.get(t);return c&&(o.hidden=!0,s>c.number&&(o.transferTo=c.number)),e.captureMap.set(s,o),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:t},e){const r=L(t),n=se(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(n!==r)return n;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&Yt(r)){const i=Nn(r);return e.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r},CharacterClass(t,e,r){const{kind:n,negate:i,parent:s}=t;let{body:o}=t;if(n==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");G.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&o.some(Vr)&&(o=[tt(45),...o.filter(l=>!Vr(l))]);const c=()=>`[${i?"^":""}${o.map(r).join(n==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||G.bugNestedClassIgnoresNegation)&&!i){const d=o.filter(p=>p.type==="CharacterClass"&&p.kind==="union"&&p.negate);if(d.length){const p=M(),h=p.body[0];return p.parent=s,h.parent=p,o=o.filter(f=>!d.includes(f)),t.body=o,o.length?(t.parent=h,h.body.push(t)):p.body.pop(),d.forEach(f=>{const m=re({body:[f]});f.parent=m,m.parent=p,p.body.push(m)}),r(p)}}e.inCharClass=!0;const l=c();return e.inCharClass=!1,l}const a=o[0];if(n==="union"&&!i&&a&&((!e.useFlagV||!e.verbose)&&s.kind==="union"&&!(G.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&s.kind==="intersection"&&o.length===1&&a.type!=="CharacterClassRange"))return o.map(r).join("");if(!e.useFlagV&&s.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return c()},CharacterClassRange(t,e){const r=t.min.value,n=t.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},s=se(r,i),o=se(n,i),c=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const a=jn(t);wc(a).forEach(d=>{c.add(Array.isArray(d)?`${se(d[0],i)}-${se(d[1],i)}`:se(d,i))})}return`${s}-${o}${[...c].join("")}`},CharacterSet({kind:t,negate:e,value:r,key:n},i){if(t==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":A`[^\n]`;if(t==="digit")return e?A`\D`:A`\d`;if(t==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&$n.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${e?A`\P`:A`\p`}{${n?`${n}=`:""}${r}}`}if(t==="word")return e?A`\W`:A`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:r,parent:n},i,s){const o=i.currentFlags;r&&(i.currentFlags=Qe(o,r));const c=e.map(s).join("|"),a=!i.verbose&&e.length===1&&n.type!=="Quantifier"&&!t&&(!i.useFlagMods||!r)?c:`(?${Ac(t,r,i.useFlagMods)}${c})`;return i.currentFlags=o,a},LookaroundAssertion({body:t,kind:e,negate:r},n,i){return`(?${`${e==="lookahead"?"":"<"}${r?"!":"="}`}${t.map(i).join("|")})`},Quantifier(t,e,r){return r(t.body)+vc(t)},Subroutine({isRecursive:t,ref:e},r){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return e===0?`(?R=${n})`:A`\g<${e}&R=${n}>`}},_c=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),yc=new Set(["-","\\","]","^","["]),Ec=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Nr=new Map([[9,A`\t`],[10,A`\n`],[11,A`\v`],[12,A`\f`],[13,A`\r`],[8232,A`\u2028`],[8233,A`\u2029`],[65279,A`\uFEFF`]]),bc=/^\p{Cased}$/u;function Yt(t){return bc.test(t)}function jn(t,e){const r=!!e?.firstOnly,n=t.min.value,i=t.max.value,s=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return s;for(let o=n;o<=i;o++){const c=L(o);if(!Yt(c))continue;const a=Nn(c).filter(l=>{const d=l.codePointAt(0);return d<n||d>i});if(a.length&&(s.push(...a),r))break}return s}function se(t,{escDigit:e,inCharClass:r,useFlagV:n}){if(Nr.has(t))return Nr.get(t);if(t<32||t>126&&t<160||t>262143||e&&Cc(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?Ec:yc:_c,s=L(t);return(i.has(s)?"\\":"")+s}function wc(t){const e=t.map(i=>i.codePointAt(0)).sort((i,s)=>i-s),r=[];let n=null;for(let i=0;i<e.length;i++)e[i+1]===e[i]+1?n??=e[i]:n===null?r.push(e[i]):(r.push([n,e[i]]),n=null);return r}function Ac(t,e,r){if(t)return">";let n="";if(e&&r){const{enable:i,disable:s}=e;n=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(s?"-":"")+(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")}return`${n}:`}function vc({kind:t,max:e,min:r}){let n;return!r&&e===1?n="?":!r&&e===1/0?n="*":r===1&&e===1/0?n="+":r===e?n=`{${r}}`:n=`{${r},${e===1/0?"":e}}`,n+{greedy:"",lazy:"?",possessive:"+"}[t]}function $r({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function Cc(t){return t>47&&t<58}function Vr({type:t,value:e}){return t==="Character"&&e===45}var Ic=class Vt extends RegExp{#t=new Map;#e=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(e,r,n){const i=!!n?.lazyCompile;if(e instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const s=e;super(s,r),this.#n=s.source,s instanceof Vt&&(this.#t=s.#t,this.#r=s.#r,this.#i=s.#i,this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":e,r),this.#n=e,this.#t=Lc(s.hiddenCaptures,s.transfers),this.#i=s.strategy,this.rawOptions=n??{}}i||(this.#e=this)}exec(e){if(!this.#e){const{lazyCompile:i,...s}=this.rawOptions;this.#e=new Vt(this.#n,this.flags,s)}const r=this.global||this.sticky,n=this.lastIndex;if(this.#i==="clip_search"&&r&&n){this.lastIndex=0;const i=this.#s(e.slice(n));return i&&(Rc(i,n,e,this.hasIndices),this.lastIndex+=n),i}return this.#s(e)}#s(e){this.#e.lastIndex=this.lastIndex;const r=super.exec.call(this.#e,e);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;const n=[...r];r.length=1;let i;this.hasIndices&&(i=[...r.indices],r.indices.length=1);const s=[0];for(let o=1;o<n.length;o++){const{hidden:c,transferTo:a}=this.#t.get(o)??{};if(c?s.push(null):(s.push(r.length),r.push(n[o]),this.hasIndices&&r.indices.push(i[o])),a&&n[o]!==void 0){const l=s[a];if(!l)throw new Error(`Invalid capture transfer to "${l}"`);if(r[l]=n[o],this.hasIndices&&(r.indices[l]=i[o]),r.groups){this.#r||(this.#r=Sc(this.source));const d=this.#r.get(a);d&&(r.groups[d]=n[o],this.hasIndices&&(r.indices.groups[d]=i[o]))}}}return r}};function Rc(t,e,r,n){if(t.index+=e,t.input=r,n){const i=t.indices;for(let o=0;o<i.length;o++){const c=i[o];c&&(i[o]=[c[0]+e,c[1]+e])}const s=i.groups;s&&Object.keys(s).forEach(o=>{const c=s[o];c&&(s[o]=[c[0]+e,c[1]+e])})}}function Lc(t,e){const r=new Map;for(const n of t)r.set(n,{hidden:!0});for(const[n,i]of e)for(const s of i)Ce(r,s,{}).transferTo=n;return r}function Sc(t){const e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,i=0,s;for(;s=e.exec(t);){const{0:o,groups:{capture:c,name:a}}=s;o==="["?n++:n?o==="]"&&n--:c&&(i++,a&&r.set(i,a))}return r}function Tc(t,e){const r=kc(t,e);return r.options?new Ic(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function kc(t,e){const r=Dn(e),n=Rn(t,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:Zt}),i=nc(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),s=fc(i,r),o=za(s.pattern,{captureTransfers:s._captureTransfers,hiddenCaptures:s._hiddenCaptures,mode:"external"}),c=Wa(o.pattern),a=ja(c.pattern,{captureTransfers:o.captureTransfers,hiddenCaptures:o.hiddenCaptures}),l={pattern:a.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${s.flags}${s.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const d=a.hiddenCaptures.sort((m,y)=>m-y),p=Array.from(a.captureTransfers),h=i._strategy,f=l.pattern.length>=r.lazyCompileLength;(d.length||p.length||h||f)&&(l.options={...d.length&&{hiddenCaptures:d},...p.length&&{transfers:p},...h&&{strategy:h},...f&&{lazyCompile:f}})}return l}const Mr=4294967295;class Pc{constructor(e,r={}){this.patterns=e,this.options=r;const{forgiving:n=!1,cache:i,regexConstructor:s}=r;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const c=i?.get(o);if(c){if(c instanceof RegExp)return c;if(n)return null;throw c}try{const a=s(o);return i?.set(o,a),a}catch(a){if(i?.set(o,a),n)return null;throw a}})}regexps;findNextMatchSync(e,r,n){const i=typeof e=="string"?e:e.content,s=[];function o(c,a,l=0){return{index:c,captureIndices:a.indices.map(d=>d==null?{start:Mr,end:Mr,length:0}:{start:d[0]+l,end:d[1]+l,length:d[1]-d[0]})}}for(let c=0;c<this.regexps.length;c++){const a=this.regexps[c];if(a)try{a.lastIndex=r;const l=a.exec(i);if(!l)continue;if(l.index===r)return o(c,l,0);s.push([c,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(s.length){const c=Math.min(...s.map(a=>a[1].index));for(const[a,l,d]of s)if(l.index===c)return o(a,l,d)}return null}}function Oc(t,e){return Tc(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function xc(t={}){const e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||=r=>Oc(r,{target:e.target}),{createScanner(r){return new Pc(r,e)},createString(r){return{content:r}}}}var Dc=xc({forgiving:!0}),Nc=Object.fromEntries(qt.flatMap(t=>{var e;return((e=t.aliases)!=null?e:[]).map(r=>[r,t.id])})),Me=new Set(Object.keys(yn)),Gr=t=>{let e=t.trim().toLowerCase();return Nc[e]||(Me.has(e),e)},wt=new Map,At=new Map,oe=new Map,Je=t=>{var e;return typeof t=="string"?t:(e=t.name)!=null?e:"custom"},$c=(t,e)=>`${t}-${Je(e[0])}-${Je(e[1])}`,Vc=(t,e,r)=>{let n=t.slice(0,100),i=t.length>100?t.slice(-100):"";return`${e}:${r[0]}:${r[1]}:${t.length}:${n}:${i}`},Mc=(t,e)=>{let r=$c(t,e);if(wt.has(r))return wt.get(r);let n=qo({themes:e,langs:[t],engine:Dc});return wt.set(r,n),n};function Gc(t={}){var e;let r=(e=t.themes)!=null?e:["github-light","github-dark"];return{name:"shiki",type:"code-highlighter",supportsLanguage(n){let i=Gr(n);return Me.has(i)},getSupportedLanguages(){return Array.from(Me)},getThemes(){return r},highlight({code:n,language:i,themes:s},o){let c=Gr(i),a=[Je(s[0]),Je(s[1])],l=Vc(n,c,a);if(At.has(l))return At.get(l);o&&(oe.has(l)||oe.set(l,new Set),oe.get(l).add(o));let d=Me.has(c)?c:"text";return Mc(d,s).then(p=>{let h=p.getLoadedLanguages().includes(c)?c:"text",f=p.codeToTokens(n,{lang:h,themes:{light:a[0],dark:a[1]}});At.set(l,f);let m=oe.get(l);if(m){for(let y of m)y(f);oe.delete(l)}}).catch(p=>{console.error("[Streamdown Code] Failed to highlight code:",p),oe.delete(l)}),null}}}var Yc=Gc();export{Yc as code,Gc as createCodePlugin};
@@ -1,7 +1,7 @@
1
- import{X as T,Y as X,Z as Y,_ as U,$ as Z,a0 as G,a1 as k,a2 as J,a3 as M,a4 as y}from"./mermaid-GHXKKRXX-sDJax95P.js";import z from"./katex-HP8lGamR.js";import"./index-B0KPRi1U.js";import"./connection-C8nwzwXB.js";import"./index-CJqIcuAl.js";import"./client-CXcrCawx.js";import"./LifeMark-UBMVaTWr.js";import"./theme-6OL1RXgY.js";import"./export-Bn8PqPg4.js";import"./spaces-DqMTtCXX.js";function Q(t,e){return B(t,{})||{type:"root",children:[]}}function B(t,e){const r=tt(t,e);return r&&e.afterTransform&&e.afterTransform(t,r),r}function tt(t,e){switch(t.nodeType){case 1:return it(t,e);case 3:return nt(t);case 8:return rt(t);case 9:return v(t,e);case 10:return et();case 11:return v(t,e);default:return}}function v(t,e){return{type:"root",children:L(t,e)}}function et(){return{type:"doctype"}}function nt(t){return{type:"text",value:t.nodeValue||""}}function rt(t){return{type:"comment",value:t.nodeValue||""}}function it(t,e){const r=t.namespaceURI,i=r===T.svg?X:Y,n=r===T.html?t.tagName.toLowerCase():t.tagName,u=r===T.html&&n==="template"?t.content:t,o=t.getAttributeNames(),s={};let a=-1;for(;++a<o.length;)s[o[a]]=t.getAttribute(o[a])||"";return i(n,s,L(u,e))}function L(t,e){const r=t.childNodes,i=[];let n=-1;for(;++n<r.length;){const u=B(r[n],e);u!==void 0&&i.push(u)}return i}new DOMParser;function at(t,e){const r=ot(t);return Q(r)}function ot(t){const e=document.createElement("template");return e.innerHTML=t,e.content}const A=(function(t,e,r){const i=U(r);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(i(t.children[e],e,t))return t.children[e]}),F=(function(t){if(t==null)return st;if(typeof t=="string")return lt(t);if(typeof t=="object")return ut(t);if(typeof t=="function")return E(t);throw new Error("Expected function, string, or array as `test`")});function ut(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=F(t[r]);return E(i);function i(...n){let u=-1;for(;++u<e.length;)if(e[u].apply(this,n))return!0;return!1}}function lt(t){return E(e);function e(r){return r.tagName===t}}function E(t){return e;function e(r,i,n){return!!(ct(r)&&t.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function st(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function ct(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const I=/\n/g,P=/[\t ]+/g,N=F("br"),q=F(wt),ht=F("p"),D=F("tr"),mt=F(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",xt,yt]),_=F(["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 pt(t,e){const r=e||{},i="children"in t?t.children:[],n=_(t),u=K(t,{whitespace:r.whitespace||"normal"}),o=[];(t.type==="text"||t.type==="comment")&&o.push(...V(t,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<i.length;)o.push(...j(i[s],t,{whitespace:u,breakBefore:s?void 0:n,breakAfter:s<i.length-1?N(i[s+1]):n}));const a=[];let c;for(s=-1;++s<o.length;){const m=o[s];typeof m=="number"?c!==void 0&&m>c&&(c=m):m&&(c!==void 0&&c>-1&&a.push(`
1
+ import{X as T,Y as X,Z as Y,_ as U,$ as Z,a0 as G,a1 as k,a2 as J,a3 as M,a4 as y}from"./mermaid-GHXKKRXX-Ik6SkVDT.js";import z from"./katex-HP8lGamR.js";import"./index-O5fSd569.js";import"./connection-C0J3BPgk.js";import"./index-C62wjCF_.js";import"./memoryAdvisor-DBQXJB1o.js";import"./client-ClWQBErG.js";import"./navViewState-DaCMIYWA.js";import"./export-CXoWon32.js";import"./spaces-CvL2DRZM.js";import"./theme-LRSmy8mD.js";function Q(t,e){return B(t,{})||{type:"root",children:[]}}function B(t,e){const r=tt(t,e);return r&&e.afterTransform&&e.afterTransform(t,r),r}function tt(t,e){switch(t.nodeType){case 1:return it(t,e);case 3:return nt(t);case 8:return rt(t);case 9:return v(t,e);case 10:return et();case 11:return v(t,e);default:return}}function v(t,e){return{type:"root",children:L(t,e)}}function et(){return{type:"doctype"}}function nt(t){return{type:"text",value:t.nodeValue||""}}function rt(t){return{type:"comment",value:t.nodeValue||""}}function it(t,e){const r=t.namespaceURI,i=r===T.svg?X:Y,n=r===T.html?t.tagName.toLowerCase():t.tagName,u=r===T.html&&n==="template"?t.content:t,o=t.getAttributeNames(),s={};let a=-1;for(;++a<o.length;)s[o[a]]=t.getAttribute(o[a])||"";return i(n,s,L(u,e))}function L(t,e){const r=t.childNodes,i=[];let n=-1;for(;++n<r.length;){const u=B(r[n],e);u!==void 0&&i.push(u)}return i}new DOMParser;function at(t,e){const r=ot(t);return Q(r)}function ot(t){const e=document.createElement("template");return e.innerHTML=t,e.content}const A=(function(t,e,r){const i=U(r);if(!t||!t.type||!t.children)throw new Error("Expected parent node");if(typeof e=="number"){if(e<0||e===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(e=t.children.indexOf(e),e<0)throw new Error("Expected child node or index");for(;++e<t.children.length;)if(i(t.children[e],e,t))return t.children[e]}),F=(function(t){if(t==null)return st;if(typeof t=="string")return lt(t);if(typeof t=="object")return ut(t);if(typeof t=="function")return E(t);throw new Error("Expected function, string, or array as `test`")});function ut(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=F(t[r]);return E(i);function i(...n){let u=-1;for(;++u<e.length;)if(e[u].apply(this,n))return!0;return!1}}function lt(t){return E(e);function e(r){return r.tagName===t}}function E(t){return e;function e(r,i,n){return!!(ct(r)&&t.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function st(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function ct(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const I=/\n/g,P=/[\t ]+/g,N=F("br"),q=F(wt),ht=F("p"),D=F("tr"),mt=F(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",xt,yt]),_=F(["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 pt(t,e){const r=e||{},i="children"in t?t.children:[],n=_(t),u=K(t,{whitespace:r.whitespace||"normal"}),o=[];(t.type==="text"||t.type==="comment")&&o.push(...V(t,{breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<i.length;)o.push(...j(i[s],t,{whitespace:u,breakBefore:s?void 0:n,breakAfter:s<i.length-1?N(i[s+1]):n}));const a=[];let c;for(s=-1;++s<o.length;){const m=o[s];typeof m=="number"?c!==void 0&&m>c&&(c=m):m&&(c!==void 0&&c>-1&&a.push(`
2
2
  `.repeat(c)||" "),c=-1,a.push(m))}return a.join("")}function j(t,e,r){return t.type==="element"?ft(t,e,r):t.type==="text"?r.whitespace==="normal"?V(t,r):dt(t):[]}function ft(t,e,r){const i=K(t,r),n=t.children||[];let u=-1,o=[];if(mt(t))return o;let s,a;for(N(t)||D(t)&&A(e,t,D)?a=`
3
3
  `:ht(t)?(s=2,a=2):_(t)&&(s=1,a=1);++u<n.length;)o=o.concat(j(n[u],t,{whitespace:i,breakBefore:u?void 0:s,breakAfter:u<n.length-1?N(n[u+1]):a}));return q(t)&&A(e,t,q)&&o.push(" "),s&&o.unshift(s),a&&o.push(a),o}function V(t,e){const r=String(t.value),i=[],n=[];let u=0;for(;u<=r.length;){I.lastIndex=u;const a=I.exec(r),c=a&&"index"in a?a.index:r.length;i.push(gt(r.slice(u,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),u===0?e.breakBefore:!0,c===r.length?e.breakAfter:!0)),u=c+1}let o=-1,s;for(;++o<i.length;)i[o].charCodeAt(i[o].length-1)===8203||o<i.length-1&&i[o+1].charCodeAt(0)===8203?(n.push(i[o]),s=void 0):i[o]?(typeof s=="number"&&n.push(s),n.push(i[o]),s=0):(o===0||o===i.length-1)&&n.push(0);return n}function dt(t){return[String(t.value)]}function gt(t,e,r){const i=[];let n=0,u;for(;n<t.length;){P.lastIndex=n;const o=P.exec(t);u=o?o.index:t.length,!n&&!u&&o&&!e&&i.push(""),n!==u&&i.push(t.slice(n,u)),n=o?u+o[0].length:u}return n!==u&&!r&&i.push(""),i.join(" ")}function K(t,e){if(t.type==="element"){const r=t.properties||{};switch(t.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":e.whitespace;case"textarea":return"pre-wrap"}}return e.whitespace}function xt(t){return!!(t.properties||{}).hidden}function wt(t){return t.tagName==="td"||t.tagName==="th"}function yt(t){return t.tagName==="dialog"&&!(t.properties||{}).open}const Ft={},kt=[];function bt(t){const e=t||Ft;return function(r,i){Z(r,"element",function(n,u){const o=Array.isArray(n.properties.className)?n.properties.className:kt,s=o.includes("language-math"),a=o.includes("math-display"),c=o.includes("math-inline");let m=a;if(!s&&!a&&!c)return;let p=u[u.length-1],g=n;if(n.tagName==="code"&&s&&p&&p.type==="element"&&p.tagName==="pre"&&(g=p,p=u[u.length-2],m=!0),!p)return;const d=pt(g,{whitespace:"pre"});let f;try{f=z.renderToString(d,{...e,displayMode:m,throwOnError:!0})}catch(w){const b=w,l=b.name.toLowerCase();i.message("Could not render math with KaTeX",{ancestors:[...u,n],cause:b,place:n.position,ruleId:l,source:"rehype-katex"});try{f=z.renderToString(d,{...e,displayMode:m,strict:"ignore",throwOnError:!1})}catch{f=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(e.errorColor||"#cc0000"),title:String(w)},children:[{type:"text",value:d}]}]}}typeof f=="string"&&(f=at(f).children);const h=p.children.indexOf(g);return p.children.splice(h,1,...f),G})}}function Mt(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:u},exit:{mathFlow:n,mathFlowFence:i,mathFlowFenceMeta:r,mathFlowValue:s,mathText:o,mathTextData:s}};function t(a){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},a)}function e(){this.buffer()}function r(){const a=this.resume(),c=this.stack[this.stack.length-1];k(c.type==="math"),c.meta=a}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(a){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),m=this.stack[this.stack.length-1];k(m.type==="math"),this.exit(a),m.value=c;const p=m.data.hChildren[0];k(p.type==="element"),k(p.tagName==="code"),p.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function u(a){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},a),this.buffer()}function o(a){const c=this.resume(),m=this.stack[this.stack.length-1];k(m.type==="inlineMath"),this.exit(a),m.value=c,m.data.hChildren.push({type:"text",value:c})}function s(a){this.config.enter.data.call(this,a),this.config.exit.data.call(this,a)}}function Tt(t){let e=(t||{}).singleDollarTextMath;return e==null&&(e=!0),i.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
4
4
  `,inConstruct:"mathFlowMeta"},{character:"$",after:e?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:i}};function r(u,o,s,a){const c=u.value||"",m=s.createTracker(a),p="$".repeat(Math.max(J(c,"$")+1,2)),g=s.enter("mathFlow");let d=m.move(p);if(u.meta){const f=s.enter("mathFlowMeta");d+=m.move(s.safe(u.meta,{after:`
5
5
  `,before:d,encode:["$"],...m.current()})),f()}return d+=m.move(`
6
6
  `),c&&(d+=m.move(c+`
7
- `)),d+=m.move(p),g(),d}function i(u,o,s){let a=u.value||"",c=1;for(e||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(a);)c++;const m="$".repeat(c);/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^\$|\$$/.test(a))&&(a=" "+a+" ");let p=-1;for(;++p<s.unsafe.length;){const g=s.unsafe[p];if(!g.atBreak)continue;const d=s.compilePattern(g);let f;for(;f=d.exec(a);){let h=f.index;a.codePointAt(h)===10&&a.codePointAt(h-1)===13&&h--,a=a.slice(0,h)+" "+a.slice(f.index+1)}}return m+a+m}function n(){return"$"}}const Nt={tokenize:Et,concrete:!0,name:"mathFlow"},O={tokenize:Ct,partial:!0};function Et(t,e,r){const i=this,n=i.events[i.events.length-1],u=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0;let o=0;return s;function s(l){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),a(l)}function a(l){return l===36?(t.consume(l),o++,a):o<2?r(l):(t.exit("mathFlowFenceSequence"),M(t,c,"whitespace")(l))}function c(l){return l===null||y(l)?p(l):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(l))}function m(l){return l===null||y(l)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),p(l)):l===36?r(l):(t.consume(l),m)}function p(l){return t.exit("mathFlowFence"),i.interrupt?e(l):t.attempt(O,g,w)(l)}function g(l){return t.attempt({tokenize:b,partial:!0},w,d)(l)}function d(l){return(u?M(t,f,"linePrefix",u+1):f)(l)}function f(l){return l===null?w(l):y(l)?t.attempt(O,g,w)(l):(t.enter("mathFlowValue"),h(l))}function h(l){return l===null||y(l)?(t.exit("mathFlowValue"),f(l)):(t.consume(l),h)}function w(l){return t.exit("mathFlow"),e(l)}function b(l,R,C){let S=0;return M(l,H,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function H(x){return l.enter("mathFlowFence"),l.enter("mathFlowFenceSequence"),$(x)}function $(x){return x===36?(S++,l.consume(x),$):S<o?C(x):(l.exit("mathFlowFenceSequence"),M(l,W,"whitespace")(x))}function W(x){return x===null||y(x)?(l.exit("mathFlowFence"),R(x)):C(x)}}}function Ct(t,e,r){const i=this;return n;function n(o){return o===null?e(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),u)}function u(o){return i.parser.lazy[i.now().line]?r(o):e(o)}}function St(t){let r=(t||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:i,resolve:$t,previous:zt,name:"mathText"};function i(n,u,o){let s=0,a,c;return m;function m(h){return n.enter("mathText"),n.enter("mathTextSequence"),p(h)}function p(h){return h===36?(n.consume(h),s++,p):s<2&&!r?o(h):(n.exit("mathTextSequence"),g(h))}function g(h){return h===null?o(h):h===36?(c=n.enter("mathTextSequence"),a=0,f(h)):h===32?(n.enter("space"),n.consume(h),n.exit("space"),g):y(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),g):(n.enter("mathTextData"),d(h))}function d(h){return h===null||h===32||h===36||y(h)?(n.exit("mathTextData"),g(h)):(n.consume(h),d)}function f(h){return h===36?(n.consume(h),a++,f):a===s?(n.exit("mathTextSequence"),n.exit("mathText"),u(h)):(c.type="mathTextData",d(h))}}}function $t(t){let e=t.length-4,r=3,i,n;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(i=r;++i<e;)if(t[i][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[r][1].type="mathTextPadding",r+=2,e-=2;break}}for(i=r-1,e++;++i<=e;)n===void 0?i!==e&&t[i][1].type!=="lineEnding"&&(n=i):(i===e||t[i][1].type==="lineEnding")&&(t[n][1].type="mathTextData",i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),e-=i-n-2,i=n+2),n=void 0);return t}function zt(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function vt(t){return{flow:{36:Nt},text:{36:St(t)}}}const At={};function It(t){const e=this,r=t||At,i=e.data(),n=i.micromarkExtensions||(i.micromarkExtensions=[]),u=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);n.push(vt(r)),u.push(Mt()),o.push(Tt(r))}function Pt(t={}){var e,r;let i=[It,{singleDollarTextMath:(e=t.singleDollarTextMath)!=null?e:!1}],n=[bt,{errorColor:(r=t.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:i,rehypePlugin:n,getStyles(){return"katex/dist/katex.min.css"}}}var Ht=Pt();export{Pt as createMathPlugin,Ht as math};
7
+ `)),d+=m.move(p),g(),d}function i(u,o,s){let a=u.value||"",c=1;for(e||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(a);)c++;const m="$".repeat(c);/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^\$|\$$/.test(a))&&(a=" "+a+" ");let p=-1;for(;++p<s.unsafe.length;){const g=s.unsafe[p];if(!g.atBreak)continue;const d=s.compilePattern(g);let f;for(;f=d.exec(a);){let h=f.index;a.codePointAt(h)===10&&a.codePointAt(h-1)===13&&h--,a=a.slice(0,h)+" "+a.slice(f.index+1)}}return m+a+m}function n(){return"$"}}const Nt={tokenize:Et,concrete:!0,name:"mathFlow"},O={tokenize:Ct,partial:!0};function Et(t,e,r){const i=this,n=i.events[i.events.length-1],u=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0;let o=0;return s;function s(l){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),a(l)}function a(l){return l===36?(t.consume(l),o++,a):o<2?r(l):(t.exit("mathFlowFenceSequence"),M(t,c,"whitespace")(l))}function c(l){return l===null||y(l)?p(l):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),m(l))}function m(l){return l===null||y(l)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),p(l)):l===36?r(l):(t.consume(l),m)}function p(l){return t.exit("mathFlowFence"),i.interrupt?e(l):t.attempt(O,g,w)(l)}function g(l){return t.attempt({tokenize:b,partial:!0},w,d)(l)}function d(l){return(u?M(t,f,"linePrefix",u+1):f)(l)}function f(l){return l===null?w(l):y(l)?t.attempt(O,g,w)(l):(t.enter("mathFlowValue"),h(l))}function h(l){return l===null||y(l)?(t.exit("mathFlowValue"),f(l)):(t.consume(l),h)}function w(l){return t.exit("mathFlow"),e(l)}function b(l,R,C){let S=0;return M(l,H,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function H(x){return l.enter("mathFlowFence"),l.enter("mathFlowFenceSequence"),$(x)}function $(x){return x===36?(S++,l.consume(x),$):S<o?C(x):(l.exit("mathFlowFenceSequence"),M(l,W,"whitespace")(x))}function W(x){return x===null||y(x)?(l.exit("mathFlowFence"),R(x)):C(x)}}}function Ct(t,e,r){const i=this;return n;function n(o){return o===null?e(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),u)}function u(o){return i.parser.lazy[i.now().line]?r(o):e(o)}}function St(t){let r=(t||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:i,resolve:$t,previous:zt,name:"mathText"};function i(n,u,o){let s=0,a,c;return m;function m(h){return n.enter("mathText"),n.enter("mathTextSequence"),p(h)}function p(h){return h===36?(n.consume(h),s++,p):s<2&&!r?o(h):(n.exit("mathTextSequence"),g(h))}function g(h){return h===null?o(h):h===36?(c=n.enter("mathTextSequence"),a=0,f(h)):h===32?(n.enter("space"),n.consume(h),n.exit("space"),g):y(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),g):(n.enter("mathTextData"),d(h))}function d(h){return h===null||h===32||h===36||y(h)?(n.exit("mathTextData"),g(h)):(n.consume(h),d)}function f(h){return h===36?(n.consume(h),a++,f):a===s?(n.exit("mathTextSequence"),n.exit("mathText"),u(h)):(c.type="mathTextData",d(h))}}}function $t(t){let e=t.length-4,r=3,i,n;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(i=r;++i<e;)if(t[i][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[r][1].type="mathTextPadding",r+=2,e-=2;break}}for(i=r-1,e++;++i<=e;)n===void 0?i!==e&&t[i][1].type!=="lineEnding"&&(n=i):(i===e||t[i][1].type==="lineEnding")&&(t[n][1].type="mathTextData",i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),e-=i-n-2,i=n+2),n=void 0);return t}function zt(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function vt(t){return{flow:{36:Nt},text:{36:St(t)}}}const At={};function It(t){const e=this,r=t||At,i=e.data(),n=i.micromarkExtensions||(i.micromarkExtensions=[]),u=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);n.push(vt(r)),u.push(Mt()),o.push(Tt(r))}function Pt(t={}){var e,r;let i=[It,{singleDollarTextMath:(e=t.singleDollarTextMath)!=null?e:!1}],n=[bt,{errorColor:(r=t.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:i,rehypePlugin:n,getStyles(){return"katex/dist/katex.min.css"}}}var Wt=Pt();export{Pt as createMathPlugin,Wt as math};
@@ -0,0 +1 @@
1
+ import{L as r}from"./index-CG9e6lgq.js";import{s as e,t as O,b as s,a as X,i as l,x as Y,c as $,g as S,f as o,h as t}from"./mermaid-GHXKKRXX-Ik6SkVDT.js";import"./index-O5fSd569.js";import"./connection-C0J3BPgk.js";import"./index-C62wjCF_.js";import"./memoryAdvisor-DBQXJB1o.js";import"./client-ClWQBErG.js";import"./navViewState-DaCMIYWA.js";import"./export-CXoWon32.js";import"./spaces-CvL2DRZM.js";import"./theme-LRSmy8mD.js";const Z=e({null:O.null,instanceof:O.operatorKeyword,this:O.self,"new super assert open to with void":O.keyword,"class interface extends implements enum var":O.definitionKeyword,"module package import":O.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":O.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":O.modifier,IntegerLiteral:O.integer,FloatingPointLiteral:O.float,"StringLiteral TextBlock":O.string,CharacterLiteral:O.character,LineComment:O.lineComment,BlockComment:O.blockComment,BooleanLiteral:O.bool,PrimitiveType:O.standard(O.typeName),TypeName:O.typeName,Identifier:O.variableName,"MethodName/Identifier":O.function(O.variableName),Definition:O.definition(O.variableName),ArithOp:O.arithmeticOperator,LogicOp:O.logicOperator,BitOp:O.bitwiseOperator,CompareOp:O.compareOperator,AssignOp:O.definitionOperator,UpdateOp:O.updateOperator,Asterisk:O.punctuation,Label:O.labelName,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace,".":O.derefOperator,", ;":O.separator}),n={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:238,open:267,module:269,requires:274,transitive:276,exports:278,to:280,opens:282,uses:284,provides:286,with:288,package:292,import:296,if:308,else:310,while:314,for:318,var:325,assert:332,switch:336,case:342,do:346,break:350,continue:354,return:358,throw:364,try:368,catch:372,finally:380},d=r.deserialize({version:14,states:"##jQ]QPOOQ$wQPOOO(bQQO'#H^O*iQQO'#CbOOQO'#Cb'#CbO*pQPO'#CaO*xOSO'#CpOOQO'#Hc'#HcOOQO'#Cu'#CuO,eQPO'#D_O-OQQO'#HmOOQO'#Hm'#HmO/gQQO'#HhO/nQQO'#HhOOQO'#Hh'#HhOOQO'#Hg'#HgO1rQPO'#DUO2PQPO'#GnO4wQPO'#D_O5OQPO'#DzO*pQPO'#E[O5qQPO'#E[OOQO'#DV'#DVO7SQQO'#HaO9^QQO'#EeO9eQPO'#EdO9jQPO'#EfOOQO'#Hb'#HbO7jQQO'#HbO:pQQO'#FhO:wQPO'#ExO:|QPO'#E}O:|QPO'#FPOOQO'#Ha'#HaOOQO'#HY'#HYOOQO'#Gh'#GhOOQO'#HX'#HXO<^QPO'#FiOOQO'#HW'#HWOOQO'#Gg'#GgQ]QPOOOOQO'#Hs'#HsO<cQPO'#HsO<hQPO'#D{O<hQPO'#EVO<hQPO'#EQO<pQPO'#HpO=RQQO'#EfO*pQPO'#C`O=ZQPO'#C`O*pQPO'#FcO=`QPO'#FeO=kQPO'#FkO=kQPO'#FnO<hQPO'#FsO=pQPO'#FpO:|QPO'#FwO=kQPO'#FyO]QPO'#GOO=uQPO'#GQO>QQPO'#GSO>]QPO'#GUO=kQPO'#GWO:|QPO'#GXO>dQPO'#GZO?QQ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%bR&a#eQ)X%gT*t'`'iR*y'e[!lP!o'^*q-^/OR%X!gR#h`R,b)]R)a%kT-j+]-kQ/V-mR/z/WR/z/X",nodeNames:"⚠ LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp LogicOp BitOp BitOp BitOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",maxTerm:276,nodeProps:[["isolate",-4,1,2,18,19,""],["group",-26,4,47,76,77,82,87,92,145,147,150,151,153,156,158,161,163,165,167,172,174,176,178,180,181,183,191,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,118,120,122,125,127,130,"Expression",-7,23,24,25,26,27,29,34,"Type"],["openedBy",10,"(",44,"{"],["closedBy",11,")",45,"}"]],propSources:[Z],skippedNodes:[0,1,2],repeatNodeCount:28,tokenData:"#'f_R!_OX%QXY'fYZ)bZ^'f^p%Qpq'fqr*|rs,^st%Qtu4euv5zvw7[wx8rxyAZyzAwz{Be{|CZ|}Dq}!OE_!O!PFx!P!Q! r!Q!R!,h!R![!0`![!]!>p!]!^!@Q!^!_!@n!_!`!BX!`!a!B{!a!b!Di!b!c!EX!c!}!LT!}#O!Mj#O#P%Q#P#Q!NW#Q#R!Nt#R#S4e#S#T%Q#T#o4e#o#p# h#p#q#!U#q#r##n#r#s#$[#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|4e$I|$JO#$x$JO$JT4e$JT$JU#$x$JU$KV4e$KV$KW#$x$KW&FU4e&FU&FV#$x&FV;'S4e;'S;=`5t<%lO4eS%VV&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&YSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&YS%yZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$J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/^\s*({|else\b)/}),TryStatement:$({except:/^\s*({|catch|finally)\b/}),LabeledStatement:Y,SwitchBlock:Q=>{let P=Q.textAfter,i=/^\s*\}/.test(P),a=/^\s*(case|default)\b/.test(P);return Q.baseIndent+(i?0:a?1:2)*Q.unit},Block:S({closing:"}"}),BlockComment:()=>null,Statement:$({except:/^{/})}),o.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":t,BlockComment(Q){return{from:Q.from+2,to:Q.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function u(){return new s(_)}export{u as java,_ as javaLanguage};
@@ -0,0 +1 @@
1
+ import{a as c,e as k,b as d,r as o,c as l,d as p,s as u,f as S,v as i,g as f,h as m,i as P,j as g,w as T}from"./export-CXoWon32.js";import{A as C,B as D,k as O,l as M,C as U,D as w,m as V,n as x,o as z,F as X,p as j,P as G,R as Y,T as q,q as H,t as J,u as Q,x as W,y as Z,z as $,E as aa,G as sa,H as ea,I as ra,J as na,K as ta,L as ia,M as oa,N as ca,O as ka,Q as da,S as la,U as pa,V as ua,W as Sa,X as fa,Y as ma,Z as Pa,_ as ga,$ as Ta,a0 as ba,a1 as Aa,a2 as Ba,a3 as Ia,a4 as _a,a5 as Ea,a6 as ha,a7 as Na,a8 as va,a9 as La,aa as Fa,ab as Ka,ac as ya,ad as Ra,ae as Ca,af as Da,ag as Oa,ah as Ma,ai as Ua,aj as wa,ak as Va,al as xa,am as za,an as Xa,ao as ja,ap as Ga,aq as Ya,ar as qa,as as Ha,at as Ja,au as Qa,av as Wa,aw as Za,ax as $a,ay as as}from"./export-CXoWon32.js";import{a as b,s as A}from"./index-O5fSd569.js";import"./memoryAdvisor-DBQXJB1o.js";import{resolveTheme as B,prefersDark as I,onThemeChange as _}from"./theme-LRSmy8mD.js";import"./spaces-CvL2DRZM.js";function E(s,r){const a=o(s.selection);if(a===null)return i(null,s.tweaks);const e=f(a),n=m(a,r)??(e.length===1?a.variants[e[0]]??null:null);return i(n,s.tweaks)}function t(){if(typeof document>"u")return;const s=b();c(s);const r=B(s.theme,I()),a=k();d(document.documentElement,E(a,r));const e=o(a.selection);e===null?delete document.documentElement.dataset.skin:document.documentElement.dataset.skin=e.id;const n=l();p(u(n,r),n.assist),S()}function K(){t();const s=P(t),r=g(t),a=A(t),e=_(t),n=T();return()=>{s(),r(),a(),e(),n()}}export{C as ACCENT_INK_MIX,D as BUILTIN_SKINS,O as BUILTIN_SKIN_DESCRIPTION_KEYS,M as BUILTIN_SKIN_NAME_KEYS,U as COLOR_TOKEN_VARIABLES,w as DEFAULT_APPEARANCE,V as DEFAULT_BACKGROUND_PREFS,x as DEFAULT_SKIN_ID,z as DEFAULT_SKIN_PREFS,X as FOCAL_FALLBACKS,j as FONT_TOKEN_VARIABLES,G as PACK_MEDIA_PREFIX,Y as RETIRED_BUILTIN_SKIN_IDS,q as TEXT_CONTRAST_TARGET,H as allSkinVariables,c as applyAppearanceAttributes,p as applyBackdrop,t as applyCurrentSkin,d as applySkinVariables,J as backdropStatus,Q as backgroundIsDeviceOnly,W as backgroundPrefsServerSnapshot,Z as backgroundPrefsSnapshot,$ as buildSkinExport,aa as builtinSkinDescriptionKey,sa as builtinSkinNameKey,ea as canLoadBackgroundMedia,ra as checkBackgroundFile,na as clearSelectedSkinCache,ta as contrastRatio,f as declaredVariants,ia as defaultAppearanceFor,oa as deleteMedia,ca as editKeyForTheme,l as effectiveBackgroundPrefs,k as effectiveSkinPrefs,ka as findBuiltinSkin,da as getMedia,la as getUserSkins,pa as getUserSkinsDirectory,ua as hexToRgbTriplet,Sa as isDefaultAppearance,fa as isPersistent,ma as mediaSample,Pa as normalizeBackgroundPrefs,ga as normalizeLook,Ta as normalizeSkinPrefs,ba as normalizeSlot,Aa as objectPositionOf,Ba as packBackgroundPrefs,Ia as packMediaId,_a as packSkinOf,Ea as parseHex,ha as parsePackMediaId,Na as pruneMedia,va as putMedia,La as readAppearance,Fa as readSkinPrefs,Ka as readStoredBackgroundPrefs,ya as readableSurfaceAlpha,S as refreshBackdropPlayback,Ra as relativeLuminance,Ca as resetBackgroundPrefsCache,Da as resetMediaStore,Oa as resolveBackdropMedia,o as resolveSkin,Ma as sampleLuminance,Ua as setBackdropMediaResolver,wa as setPackSkins,Va as setSkinPreview,xa as setUserSkins,za as skinPrefsServerSnapshot,Xa as skinPrefsSnapshot,ja as skinPreview,E as skinVariablesFor,u as slotForTheme,Ga as slugify,Ya as spaceBackgroundOf,qa as spaceBackgroundPrefs,Ha as spaceSkinPrefs,Ja as spaceTweaksOf,K as startSkinSync,Qa as storeBackgroundFile,Wa as subscribeBackdropStatus,g as subscribeBackgroundPrefs,P as subscribeSkinPrefs,m as variantFor,i as variantToCssVariables,T as watchBackdropPlayback,Za as writeAppearance,$a as writeBackgroundPrefs,as as writeSkinPrefs};