epiq 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (799) hide show
  1. package/dist/gui/abap-2J4LSWVV.js +1 -0
  2. package/dist/gui/actionscript-3-QBCO7GBI.js +1 -0
  3. package/dist/gui/ada-D5ESCCWX.js +1 -0
  4. package/dist/gui/ahk-7PFXBG6H.js +1 -0
  5. package/dist/gui/ahk2-K5PQCZEP.js +1 -0
  6. package/dist/gui/andromeeda-RHRS4Q5O.js +1 -0
  7. package/dist/gui/angular-html-YBC4GTV4.js +1 -0
  8. package/dist/gui/angular-ts-ZIU7OVGE.js +1 -0
  9. package/dist/gui/apache-U32KA2FB.js +1 -0
  10. package/dist/gui/apex-VTA27EIA.js +1 -0
  11. package/dist/gui/apl-3N2QYEVK.js +1 -0
  12. package/dist/gui/applescript-WKBNOJN3.js +1 -0
  13. package/dist/gui/ara-LOYFRK44.js +1 -0
  14. package/dist/gui/asciidoc-BIAX4CUU.js +1 -0
  15. package/dist/gui/asm-5NJNIH7L.js +1 -0
  16. package/dist/gui/astro-RDSHXCML.js +1 -0
  17. package/dist/gui/aurora-x-FAPHH5YB.js +1 -0
  18. package/dist/gui/awk-ESSJ54IN.js +1 -0
  19. package/dist/gui/ayu-dark-GAZUJSFG.js +1 -0
  20. package/dist/gui/ayu-light-S3HDK3P6.js +1 -0
  21. package/dist/gui/ayu-mirage-FRLUTQCD.js +1 -0
  22. package/dist/gui/ballerina-I5G6WI4V.js +1 -0
  23. package/dist/gui/bat-XQTE6ROZ.js +1 -0
  24. package/dist/gui/beancount-LP7NWB5A.js +1 -0
  25. package/dist/gui/berry-KUSHPXSF.js +1 -0
  26. package/dist/gui/bibtex-5Q4QFORS.js +1 -0
  27. package/dist/gui/bicep-RLEFUJBB.js +1 -0
  28. package/dist/gui/bird2-H2ROQN7N.js +1 -0
  29. package/dist/gui/blade-62REZWJW.js +1 -0
  30. package/dist/gui/bsl-3ICADNA4.js +1 -0
  31. package/dist/gui/c-Q4CAL6EN.js +1 -0
  32. package/dist/gui/c3-CHQTUKMB.js +1 -0
  33. package/dist/gui/cadence-GMQVA7GB.js +1 -0
  34. package/dist/gui/cairo-ZPLUE773.js +1 -0
  35. package/dist/gui/catppuccin-frappe-WTOO7TQU.js +1 -0
  36. package/dist/gui/catppuccin-latte-A2LSA3LJ.js +1 -0
  37. package/dist/gui/catppuccin-macchiato-RCIP7S3P.js +1 -0
  38. package/dist/gui/catppuccin-mocha-OS7AM3GC.js +1 -0
  39. package/dist/gui/chapel-3Z633JGJ.js +1 -0
  40. package/dist/gui/chunk-26MLVG6L.js +1 -0
  41. package/dist/gui/chunk-2SOBHFBG.js +1 -0
  42. package/dist/gui/chunk-2YYHCOMV.js +1 -0
  43. package/dist/gui/chunk-37IWMLTX.js +1 -0
  44. package/dist/gui/chunk-3FGBQ6A6.js +1 -0
  45. package/dist/gui/chunk-3ZKK7SIN.js +1 -0
  46. package/dist/gui/chunk-3ZQCKWX3.js +1 -0
  47. package/dist/gui/chunk-46DHNZDP.js +1 -0
  48. package/dist/gui/chunk-4L4526WS.js +1 -0
  49. package/dist/gui/chunk-55JTXQF7.js +164 -0
  50. package/dist/gui/chunk-5BZ5GSXY.js +1 -0
  51. package/dist/gui/chunk-5LBKFR6X.js +1 -0
  52. package/dist/gui/chunk-5UNDITZ6.js +1 -0
  53. package/dist/gui/chunk-5YAVAROY.js +1 -0
  54. package/dist/gui/chunk-63FIM4UN.js +1 -0
  55. package/dist/gui/chunk-6ASVBJNB.js +1 -0
  56. package/dist/gui/chunk-6R3KEE7K.js +1 -0
  57. package/dist/gui/chunk-6RHIU6UJ.js +1 -0
  58. package/dist/gui/chunk-6WZKLANJ.js +1 -0
  59. package/dist/gui/chunk-6YUFSVTA.js +1 -0
  60. package/dist/gui/chunk-74DAPDUZ.js +1 -0
  61. package/dist/gui/chunk-7DL6FRG7.js +1 -0
  62. package/dist/gui/chunk-AJYDCVPS.js +1 -0
  63. package/dist/gui/chunk-ALTLFZIS.js +1 -0
  64. package/dist/gui/chunk-BQQOMDF3.js +1 -0
  65. package/dist/gui/chunk-CJN6NEEF.js +1 -0
  66. package/dist/gui/chunk-DCJRCM7E.js +1 -0
  67. package/dist/gui/chunk-DD73BSYL.js +1 -0
  68. package/dist/gui/chunk-DHEVTTF6.js +1 -0
  69. package/dist/gui/chunk-DXKN75GC.js +1 -0
  70. package/dist/gui/chunk-E3W66Q2M.js +1 -0
  71. package/dist/gui/chunk-E56XDXUN.js +1 -0
  72. package/dist/gui/chunk-ESXHTAGG.js +1 -0
  73. package/dist/gui/chunk-FNPLEVVQ.js +1 -0
  74. package/dist/gui/chunk-FROJTAOT.js +1 -0
  75. package/dist/gui/chunk-FYI27QRJ.js +1 -0
  76. package/dist/gui/chunk-G7PZUARL.js +1 -0
  77. package/dist/gui/chunk-HHEBGI74.js +1 -0
  78. package/dist/gui/chunk-IGL365IS.js +1 -0
  79. package/dist/gui/chunk-IHPQHJTE.js +1 -0
  80. package/dist/gui/chunk-JFHYNQRZ.js +1 -0
  81. package/dist/gui/chunk-JXMQU3VM.js +1 -0
  82. package/dist/gui/chunk-KWIOD2XB.js +1 -0
  83. package/dist/gui/chunk-M3W3D44W.js +1 -0
  84. package/dist/gui/chunk-MAHOIE36.js +1 -0
  85. package/dist/gui/chunk-MLTQE63C.js +1 -0
  86. package/dist/gui/chunk-MSGQCPM6.js +1 -0
  87. package/dist/gui/chunk-NA4VE6LQ.js +1 -0
  88. package/dist/gui/chunk-O36SAGVH.js +1 -0
  89. package/dist/gui/chunk-OOY6SNOQ.js +1 -0
  90. package/dist/gui/chunk-OR5FHECQ.js +1 -0
  91. package/dist/gui/chunk-P7GHE3RQ.js +1 -0
  92. package/dist/gui/chunk-PHEOHAKT.js +1 -0
  93. package/dist/gui/chunk-PRHZBKTR.js +1 -0
  94. package/dist/gui/chunk-PYRZ523Z.js +1 -0
  95. package/dist/gui/chunk-PZEZXK43.js +1 -0
  96. package/dist/gui/chunk-QIL2Z2PV.js +1 -0
  97. package/dist/gui/chunk-QOHIV2P6.js +1 -0
  98. package/dist/gui/chunk-QP5MZ6PD.js +1 -0
  99. package/dist/gui/chunk-QZTMXTQ5.js +1 -0
  100. package/dist/gui/chunk-RVQECLU5.js +1 -0
  101. package/dist/gui/chunk-SILA42W7.js +1 -0
  102. package/dist/gui/chunk-T3N6MPDP.js +1 -0
  103. package/dist/gui/chunk-TGZ7ELPN.js +1 -0
  104. package/dist/gui/chunk-TK4ZAFYM.js +1 -0
  105. package/dist/gui/chunk-TV7I3SW3.js +1 -0
  106. package/dist/gui/chunk-UVQC6P2E.js +1 -0
  107. package/dist/gui/chunk-V6RWMCFC.js +1 -0
  108. package/dist/gui/chunk-W2DTVSTF.js +1 -0
  109. package/dist/gui/chunk-WKNCCTIH.js +1 -0
  110. package/dist/gui/chunk-WS3EQ3SY.js +1 -0
  111. package/dist/gui/chunk-WTRKJZEH.js +1 -0
  112. package/dist/gui/chunk-WY4VX6QJ.js +1 -0
  113. package/dist/gui/chunk-XIVHKWKD.js +1 -0
  114. package/dist/gui/chunk-XZQZMXAN.js +1 -0
  115. package/dist/gui/chunk-Y2SOJ45P.js +1 -0
  116. package/dist/gui/chunk-YBPUFKZG.js +1 -0
  117. package/dist/gui/chunk-YC22HROH.js +1 -0
  118. package/dist/gui/chunk-Z6EXOQLM.js +1 -0
  119. package/dist/gui/chunk-ZD72CDNJ.js +1 -0
  120. package/dist/gui/chunk-ZYM5HG5R.js +1 -0
  121. package/dist/gui/clarity-DYA2JUGZ.js +1 -0
  122. package/dist/gui/clojure-G7IURXNK.js +1 -0
  123. package/dist/gui/cmake-4DZSTAWG.js +1 -0
  124. package/dist/gui/cobol-DUCWHDIZ.js +1 -0
  125. package/dist/gui/codeowners-IKIECA5K.js +1 -0
  126. package/dist/gui/codeql-EK6NFINM.js +1 -0
  127. package/dist/gui/coffee-HZ62PXBN.js +1 -0
  128. package/dist/gui/common-lisp-C5JFPP2W.js +1 -0
  129. package/dist/gui/coq-QNZJXEO2.js +1 -0
  130. package/dist/gui/cpp-LVH4DUEH.js +1 -0
  131. package/dist/gui/crystal-OEOE5VN5.js +1 -0
  132. package/dist/gui/csharp-Y6M5EGHH.js +1 -0
  133. package/dist/gui/css-MYBAEYPV.js +1 -0
  134. package/dist/gui/csv-W2N6UZ5O.js +1 -0
  135. package/dist/gui/cue-XLSH6VNO.js +1 -0
  136. package/dist/gui/cypher-LIAJ2AQF.js +1 -0
  137. package/dist/gui/d-KOZ5GW3B.js +1 -0
  138. package/dist/gui/dark-plus-HCLPH6DY.js +1 -0
  139. package/dist/gui/dart-HSXEG6I6.js +1 -0
  140. package/dist/gui/dax-XUGRY6W7.js +1 -0
  141. package/dist/gui/desktop-NXYZUBRS.js +1 -0
  142. package/dist/gui/diff-62RZJUWL.js +1 -0
  143. package/dist/gui/diffs-worker.js +5 -0
  144. package/dist/gui/docker-5PAL7A2H.js +1 -0
  145. package/dist/gui/dotenv-QNGBJ7H6.js +1 -0
  146. package/dist/gui/dracula-JHW4RJTX.js +1 -0
  147. package/dist/gui/dracula-soft-5EFEA2BQ.js +1 -0
  148. package/dist/gui/dream-maker-EHSANE6P.js +1 -0
  149. package/dist/gui/edge-GY7QH5MJ.js +1 -0
  150. package/dist/gui/elixir-TXRUL5QI.js +1 -0
  151. package/dist/gui/elm-O2IRWDLI.js +1 -0
  152. package/dist/gui/emacs-lisp-YSAYXSLO.js +1 -0
  153. package/dist/gui/erb-LOH7WKGU.js +1 -0
  154. package/dist/gui/erlang-J6XNI2HL.js +1 -0
  155. package/dist/gui/everforest-dark-YYJDFM4G.js +1 -0
  156. package/dist/gui/everforest-light-6VKVRX63.js +1 -0
  157. package/dist/gui/fennel-UIF7WTON.js +1 -0
  158. package/dist/gui/fish-XNUBLCAF.js +1 -0
  159. package/dist/gui/fluent-UFZK23ZF.js +1 -0
  160. package/dist/gui/fortran-fixed-form-GF4EQUFG.js +1 -0
  161. package/dist/gui/fortran-free-form-PXTWSUJU.js +1 -0
  162. package/dist/gui/fsharp-NXUAWXAF.js +1 -0
  163. package/dist/gui/gdresource-3Z6GJTMS.js +1 -0
  164. package/dist/gui/gdscript-NR3VITKY.js +1 -0
  165. package/dist/gui/gdshader-M5YZ63Y2.js +1 -0
  166. package/dist/gui/genie-BO3CX2XQ.js +1 -0
  167. package/dist/gui/gherkin-LWGWZ3RS.js +1 -0
  168. package/dist/gui/git-commit-RPQOTEF3.js +1 -0
  169. package/dist/gui/git-rebase-TF2QJEAL.js +1 -0
  170. package/dist/gui/github-dark-REFHQ7KZ.js +1 -0
  171. package/dist/gui/{github-dark-default-VHJFG2UV.js → github-dark-default-HNVWMHF4.js} +1 -7
  172. package/dist/gui/github-dark-dimmed-JJPACVZZ.js +1 -0
  173. package/dist/gui/github-dark-high-contrast-MKQ5JYLO.js +1 -0
  174. package/dist/gui/github-light-IM7NG6OB.js +1 -0
  175. package/dist/gui/github-light-default-QU2YVTXI.js +1 -0
  176. package/dist/gui/github-light-high-contrast-OUURX2TU.js +1 -0
  177. package/dist/gui/gleam-5HTZJ72P.js +1 -0
  178. package/dist/gui/glimmer-js-PFOARH3K.js +1 -0
  179. package/dist/gui/glimmer-ts-LZJTTHVF.js +1 -0
  180. package/dist/gui/glsl-2WUTP43R.js +1 -0
  181. package/dist/gui/gn-FLOS4RZF.js +1 -0
  182. package/dist/gui/gnuplot-AA3IX5VA.js +1 -0
  183. package/dist/gui/go-D4ZGPS2Z.js +1 -0
  184. package/dist/gui/graphql-XZVYVEOX.js +1 -0
  185. package/dist/gui/groovy-E5CINRXU.js +1 -0
  186. package/dist/gui/gruvbox-dark-hard-UFIAEKPP.js +1 -0
  187. package/dist/gui/{gruvbox-dark-medium-BELAJCDV.js → gruvbox-dark-medium-XK6AECTF.js} +1 -7
  188. package/dist/gui/gruvbox-dark-soft-WNTU4C4A.js +1 -0
  189. package/dist/gui/gruvbox-light-hard-VLLYGWMV.js +1 -0
  190. package/dist/gui/gruvbox-light-medium-MOKQOXML.js +1 -0
  191. package/dist/gui/gruvbox-light-soft-OVPAH42P.js +1 -0
  192. package/dist/gui/hack-R5BPE4XT.js +1 -0
  193. package/dist/gui/haml-F7BK2NAC.js +1 -0
  194. package/dist/gui/handlebars-TDZDKBFN.js +1 -0
  195. package/dist/gui/haskell-OMKSKXE4.js +1 -0
  196. package/dist/gui/haxe-DA2WYZGW.js +1 -0
  197. package/dist/gui/hcl-CRLVRE3Z.js +1 -0
  198. package/dist/gui/hjson-UIMUDXPE.js +1 -0
  199. package/dist/gui/hlsl-I7ZGIUMO.js +1 -0
  200. package/dist/gui/horizon-NQLSMOTK.js +1 -0
  201. package/dist/gui/horizon-bright-RLXCKKC2.js +1 -0
  202. package/dist/gui/houston-LOYTQEEC.js +1 -0
  203. package/dist/gui/html-7XII5ONP.js +1 -0
  204. package/dist/gui/html-derivative-JQOMEZ36.js +1 -0
  205. package/dist/gui/http-EJHR5COJ.js +1 -0
  206. package/dist/gui/hurl-AFBMX2SV.js +1 -0
  207. package/dist/gui/hxml-SPWPZW4Z.js +1 -0
  208. package/dist/gui/hy-GTUAPP6L.js +1 -0
  209. package/dist/gui/imba-PR2LWKPL.js +1 -0
  210. package/dist/gui/ini-KJTRFM25.js +1 -0
  211. package/dist/gui/java-DSZN5VJV.js +1 -0
  212. package/dist/gui/javascript-XR4WJT5N.js +1 -0
  213. package/dist/gui/jinja-ANXS2HAO.js +1 -0
  214. package/dist/gui/jison-QLTVNL3C.js +1 -0
  215. package/dist/gui/json-3EUJJ54W.js +1 -0
  216. package/dist/gui/json5-IDTK7YOE.js +1 -0
  217. package/dist/gui/jsonc-6ZTWASVR.js +1 -0
  218. package/dist/gui/jsonl-MLAJJYGB.js +1 -0
  219. package/dist/gui/jsonnet-R4IMWKFV.js +1 -0
  220. package/dist/gui/jssm-BZWTK76Y.js +1 -0
  221. package/dist/gui/jsx-TXRT3F4T.js +1 -0
  222. package/dist/gui/julia-BBWH3F3Q.js +1 -0
  223. package/dist/gui/just-NTMFF2RX.js +1 -0
  224. package/dist/gui/kanagawa-dragon-HEOKFLSM.js +1 -0
  225. package/dist/gui/kanagawa-lotus-FLUYKNAJ.js +1 -0
  226. package/dist/gui/kanagawa-wave-W5JS3SJB.js +1 -0
  227. package/dist/gui/kdl-JLCHZWOT.js +1 -0
  228. package/dist/gui/kotlin-3JSE5GFW.js +1 -0
  229. package/dist/gui/kusto-6X3HWIDS.js +1 -0
  230. package/dist/gui/laserwave-RYH62ULF.js +1 -0
  231. package/dist/gui/latex-DAN4LSSN.js +1 -0
  232. package/dist/gui/lean-WK3JB7KT.js +1 -0
  233. package/dist/gui/less-EARLTJNN.js +1 -0
  234. package/dist/gui/light-plus-5B5GHCAO.js +1 -0
  235. package/dist/gui/liquid-NGA53ZPS.js +1 -0
  236. package/dist/gui/llvm-J5EFVCQS.js +1 -0
  237. package/dist/gui/log-2G4LLVHC.js +1 -0
  238. package/dist/gui/logo-TCNRKRD5.js +1 -0
  239. package/dist/gui/lua-JIKWKGJV.js +1 -0
  240. package/dist/gui/luau-SFLPX4FF.js +1 -0
  241. package/dist/gui/main.js +1642 -80087
  242. package/dist/gui/make-NJO3L26C.js +1 -0
  243. package/dist/gui/markdown-33JM3RBU.js +1 -0
  244. package/dist/gui/marko-5E7LEGXI.js +1 -0
  245. package/dist/gui/material-theme-BENJVRUI.js +1 -0
  246. package/dist/gui/material-theme-darker-7UJLVDMH.js +1 -0
  247. package/dist/gui/material-theme-lighter-PPK5M2KX.js +1 -0
  248. package/dist/gui/material-theme-ocean-GSEYSNHR.js +1 -0
  249. package/dist/gui/material-theme-palenight-BT7M3Z7N.js +1 -0
  250. package/dist/gui/matlab-XHMB4W76.js +1 -0
  251. package/dist/gui/mdc-NGUCNP3J.js +1 -0
  252. package/dist/gui/mdx-XWES6DQN.js +1 -0
  253. package/dist/gui/mermaid-FU5XZ4UI.js +1 -0
  254. package/dist/gui/min-dark-M65IJXSI.js +1 -0
  255. package/dist/gui/min-light-6C5NEZVA.js +1 -0
  256. package/dist/gui/mipsasm-PZKYVJ7H.js +1 -0
  257. package/dist/gui/mojo-IHPQ75I5.js +1 -0
  258. package/dist/gui/monokai-JG2G5WZJ.js +1 -0
  259. package/dist/gui/moonbit-RKDBWPCI.js +1 -0
  260. package/dist/gui/move-7QARO2MW.js +1 -0
  261. package/dist/gui/narrat-ACZ2QBHY.js +1 -0
  262. package/dist/gui/nextflow-SE5ZBILO.js +1 -0
  263. package/dist/gui/nextflow-groovy-OUI4UFJZ.js +1 -0
  264. package/dist/gui/nginx-X4AEE2Y3.js +1 -0
  265. package/dist/gui/night-owl-O35XCMH2.js +1 -0
  266. package/dist/gui/night-owl-light-V2Y4RCYQ.js +1 -0
  267. package/dist/gui/nim-5SOHKETF.js +1 -0
  268. package/dist/gui/nix-X5MVXECB.js +1 -0
  269. package/dist/gui/nord-LP5RXKO4.js +1 -0
  270. package/dist/gui/nsis-4ITGWURL.js +1 -0
  271. package/dist/gui/nushell-ZFA4HPZK.js +1 -0
  272. package/dist/gui/objective-c-LNJ26AQV.js +1 -0
  273. package/dist/gui/objective-cpp-6MQLZISN.js +1 -0
  274. package/dist/gui/ocaml-T4K5GHXS.js +1 -0
  275. package/dist/gui/odin-6FP5C6CH.js +1 -0
  276. package/dist/gui/one-dark-pro-D45YYOSC.js +1 -0
  277. package/dist/gui/one-light-7SELK2HX.js +1 -0
  278. package/dist/gui/openscad-EW4KI2UZ.js +1 -0
  279. package/dist/gui/org-L7PJD5VW.js +1 -0
  280. package/dist/gui/pascal-RC4O2NCX.js +1 -0
  281. package/dist/gui/perl-7QWV5WJH.js +1 -0
  282. package/dist/gui/php-3P3VLQXF.js +1 -0
  283. package/dist/gui/pierre-dark-UUALILXQ.js +1 -0
  284. package/dist/gui/pierre-dark-protanopia-deuteranopia-GNBYHTF4.js +1 -0
  285. package/dist/gui/pierre-dark-soft-J5EIFRXM.js +1 -0
  286. package/dist/gui/pierre-dark-tritanopia-6YRJO27P.js +1 -0
  287. package/dist/gui/{pierre-dark-vibrant-74HELCEP.js → pierre-dark-vibrant-NJEA5K4W.js} +1 -7
  288. package/dist/gui/pierre-light-ZQTWM32A.js +1 -0
  289. package/dist/gui/pierre-light-protanopia-deuteranopia-FUEM3DXT.js +1 -0
  290. package/dist/gui/pierre-light-soft-TCQDDSNP.js +1 -0
  291. package/dist/gui/pierre-light-tritanopia-OV2PHN3L.js +1 -0
  292. package/dist/gui/pierre-light-vibrant-AZKXRX64.js +1 -0
  293. package/dist/gui/pkl-RPQFMJHD.js +1 -0
  294. package/dist/gui/plastic-PAFZF6UX.js +1 -0
  295. package/dist/gui/plsql-W3DB43CI.js +1 -0
  296. package/dist/gui/po-5BV5ST4S.js +1 -0
  297. package/dist/gui/poimandres-4AUR6LMN.js +1 -0
  298. package/dist/gui/polar-2A4DMGDX.js +1 -0
  299. package/dist/gui/postcss-TNHQ4NSC.js +1 -0
  300. package/dist/gui/powerquery-VUKZRFZR.js +1 -0
  301. package/dist/gui/powershell-TK6ME3LY.js +1 -0
  302. package/dist/gui/prisma-EI7DDMP7.js +1 -0
  303. package/dist/gui/prolog-AVYZOBBB.js +1 -0
  304. package/dist/gui/proto-24ZKYESH.js +1 -0
  305. package/dist/gui/pug-BBOBRMAQ.js +1 -0
  306. package/dist/gui/puppet-K3V25A6J.js +1 -0
  307. package/dist/gui/purescript-FOAG6MUG.js +1 -0
  308. package/dist/gui/python-RGDF5IZE.js +1 -0
  309. package/dist/gui/qml-XFYRCCU2.js +1 -0
  310. package/dist/gui/qmldir-25IWZ43Y.js +1 -0
  311. package/dist/gui/qss-3QVASW5Z.js +1 -0
  312. package/dist/gui/r-4SYQX3YB.js +1 -0
  313. package/dist/gui/racket-ZXK4SKKC.js +1 -0
  314. package/dist/gui/raku-QA35WOMY.js +1 -0
  315. package/dist/gui/razor-4TWVQHTU.js +1 -0
  316. package/dist/gui/rbs-3NEBMVOA.js +1 -0
  317. package/dist/gui/red-FHDCYAGC.js +1 -0
  318. package/dist/gui/reg-DDDCCL2S.js +1 -0
  319. package/dist/gui/regexp-WCMKSTB5.js +1 -0
  320. package/dist/gui/rel-UZZH4IDH.js +1 -0
  321. package/dist/gui/riscv-ZLG5M6ET.js +1 -0
  322. package/dist/gui/ron-CJ5PF6JZ.js +1 -0
  323. package/dist/gui/rose-pine-7HOL5AMQ.js +1 -0
  324. package/dist/gui/rose-pine-dawn-ILHX5FOL.js +1 -0
  325. package/dist/gui/rose-pine-moon-KLXMC5MV.js +1 -0
  326. package/dist/gui/rosmsg-G5A6MUGH.js +1 -0
  327. package/dist/gui/rst-BOZJLDXS.js +1 -0
  328. package/dist/gui/ruby-ERSYBX2A.js +1 -0
  329. package/dist/gui/rust-D6W4ZLZ4.js +1 -0
  330. package/dist/gui/sas-MEFFXSOG.js +1 -0
  331. package/dist/gui/sass-WKJBO4S6.js +1 -0
  332. package/dist/gui/scala-URQSYH5Q.js +1 -0
  333. package/dist/gui/scheme-X3MMQWU4.js +1 -0
  334. package/dist/gui/scss-WPGS5D6U.js +1 -0
  335. package/dist/gui/sdbl-II465DZK.js +1 -0
  336. package/dist/gui/shaderlab-UOD53IUD.js +1 -0
  337. package/dist/gui/shellscript-K2EAVF55.js +1 -0
  338. package/dist/gui/shellsession-4BNORSYP.js +1 -0
  339. package/dist/gui/slack-dark-PKA4XJM5.js +1 -0
  340. package/dist/gui/slack-ochin-M6NLSFYN.js +1 -0
  341. package/dist/gui/smalltalk-6HWUSNWG.js +1 -0
  342. package/dist/gui/smithy-3NE7ZMNJ.js +1 -0
  343. package/dist/gui/snazzy-light-XP7LR76H.js +1 -0
  344. package/dist/gui/solarized-dark-OZQGSSTI.js +1 -0
  345. package/dist/gui/solarized-light-FIEQXCCQ.js +1 -0
  346. package/dist/gui/solidity-EJNFJ37K.js +1 -0
  347. package/dist/gui/soy-MZEYLXUU.js +1 -0
  348. package/dist/gui/sparql-ILD7IWLS.js +1 -0
  349. package/dist/gui/splunk-FMTEVKBA.js +1 -0
  350. package/dist/gui/sql-2KVUOGK2.js +1 -0
  351. package/dist/gui/ssh-config-44SOGF2N.js +1 -0
  352. package/dist/gui/stata-YMFQSMUD.js +1 -0
  353. package/dist/gui/stylus-A5FIEREC.js +1 -0
  354. package/dist/gui/surrealql-VKFTSBUL.js +1 -0
  355. package/dist/gui/svelte-H4D3PMRS.js +1 -0
  356. package/dist/gui/swift-N6UUV4WM.js +1 -0
  357. package/dist/gui/synthwave-84-PD5BOFK2.js +1 -0
  358. package/dist/gui/system-verilog-NNY6GQOQ.js +1 -0
  359. package/dist/gui/systemd-RVODVMDH.js +1 -0
  360. package/dist/gui/talonscript-ENLOEX56.js +1 -0
  361. package/dist/gui/tasl-GC4YOF35.js +1 -0
  362. package/dist/gui/tcl-UAQKRIMQ.js +1 -0
  363. package/dist/gui/templ-3SR7WDHA.js +1 -0
  364. package/dist/gui/terraform-WWPSCXCZ.js +1 -0
  365. package/dist/gui/tex-7CMEVGPS.js +1 -0
  366. package/dist/gui/tokyo-night-K7YYNJI2.js +1 -0
  367. package/dist/gui/toml-EV2WQVY5.js +1 -0
  368. package/dist/gui/ts-tags-UEGU4VKD.js +1 -0
  369. package/dist/gui/tsv-NTCI55EL.js +1 -0
  370. package/dist/gui/tsx-CW7A3IBI.js +1 -0
  371. package/dist/gui/turtle-LR4PTJRE.js +1 -0
  372. package/dist/gui/twig-VLD6HZP7.js +1 -0
  373. package/dist/gui/typescript-BXBSQ4TF.js +1 -0
  374. package/dist/gui/typespec-SPATFDEV.js +1 -0
  375. package/dist/gui/typst-IBXX7HGO.js +1 -0
  376. package/dist/gui/v-CNCWXBH3.js +1 -0
  377. package/dist/gui/vala-COQFDBCD.js +1 -0
  378. package/dist/gui/vb-ZKUVQ2IB.js +1 -0
  379. package/dist/gui/verilog-AE42CTAL.js +1 -0
  380. package/dist/gui/vesper-G6AAATZ5.js +1 -0
  381. package/dist/gui/vhdl-TUUYGSZC.js +1 -0
  382. package/dist/gui/viml-NJSEO5HU.js +1 -0
  383. package/dist/gui/vitesse-black-2JMSBH2Y.js +1 -0
  384. package/dist/gui/vitesse-dark-MZIINQYJ.js +1 -0
  385. package/dist/gui/vitesse-light-PUU6ALJN.js +1 -0
  386. package/dist/gui/vue-G3BU3ZXC.js +1 -0
  387. package/dist/gui/vue-html-JVIPDA3J.js +1 -0
  388. package/dist/gui/vue-vine-2J4EFZYJ.js +1 -0
  389. package/dist/gui/vyper-X5IIQBLQ.js +1 -0
  390. package/dist/gui/wasm-PBY6OWX6.js +1 -0
  391. package/dist/gui/wasm-RWK3SGH4.js +1 -0
  392. package/dist/gui/wenyan-SVN34UX2.js +1 -0
  393. package/dist/gui/wgsl-JT3SSBOT.js +1 -0
  394. package/dist/gui/wikitext-ZINAKQJN.js +1 -0
  395. package/dist/gui/wit-IPHVVCU7.js +1 -0
  396. package/dist/gui/wolfram-BM2HK6J7.js +1 -0
  397. package/dist/gui/xml-OPIMP5GR.js +1 -0
  398. package/dist/gui/xsl-IQGV6DOU.js +1 -0
  399. package/dist/gui/yaml-P37LLXQD.js +1 -0
  400. package/dist/gui/zenscript-3FWIWZXX.js +1 -0
  401. package/dist/gui/zig-3HPW2CFC.js +1 -0
  402. package/dist/index.js +96 -96
  403. package/dist/mcp.js +89 -89
  404. package/package.json +5 -2
  405. package/dist/gui/abap-QUGURUBX.js +0 -10
  406. package/dist/gui/actionscript-3-3B35LJ6O.js +0 -10
  407. package/dist/gui/ada-UZZSP2VN.js +0 -10
  408. package/dist/gui/ahk-AV2XNNVZ.js +0 -10
  409. package/dist/gui/ahk2-KEAF4H55.js +0 -10
  410. package/dist/gui/andromeeda-2GR76PYB.js +0 -7
  411. package/dist/gui/angular-html-TCKFTSN3.js +0 -10
  412. package/dist/gui/angular-ts-OWXT6U2F.js +0 -44
  413. package/dist/gui/apache-K3WQQUQC.js +0 -10
  414. package/dist/gui/apex-76A7OZCW.js +0 -10
  415. package/dist/gui/apl-QUJH6REI.js +0 -31
  416. package/dist/gui/applescript-DYSSLNAH.js +0 -10
  417. package/dist/gui/ara-JBUHYAMO.js +0 -10
  418. package/dist/gui/asciidoc-GVSAY7ID.js +0 -10
  419. package/dist/gui/asm-7T5K47RE.js +0 -10
  420. package/dist/gui/astro-ROBUIKHM.js +0 -34
  421. package/dist/gui/aurora-x-CCBQ7SH7.js +0 -7
  422. package/dist/gui/awk-X3RXUDTD.js +0 -10
  423. package/dist/gui/ayu-dark-PIU367MT.js +0 -7
  424. package/dist/gui/ayu-light-Y4QUM4BU.js +0 -7
  425. package/dist/gui/ayu-mirage-LSLYYZ6M.js +0 -7
  426. package/dist/gui/ballerina-X5OCGDT7.js +0 -10
  427. package/dist/gui/bat-6N655JFC.js +0 -7
  428. package/dist/gui/beancount-737SRZDB.js +0 -10
  429. package/dist/gui/berry-27ZIFCK5.js +0 -10
  430. package/dist/gui/bibtex-PCJ2P64N.js +0 -7
  431. package/dist/gui/bicep-KZTPGRFB.js +0 -10
  432. package/dist/gui/bird2-4JCG5OZF.js +0 -10
  433. package/dist/gui/blade-TDVDX7TO.js +0 -39
  434. package/dist/gui/bsl-35Z2FTGV.js +0 -14
  435. package/dist/gui/c-7CKX2DSI.js +0 -7
  436. package/dist/gui/c3-DR3DV77K.js +0 -10
  437. package/dist/gui/cadence-OYNPDM3M.js +0 -10
  438. package/dist/gui/cairo-COXU6RBH.js +0 -14
  439. package/dist/gui/catppuccin-frappe-P2B2FXCB.js +0 -7
  440. package/dist/gui/catppuccin-latte-AIEPHNSB.js +0 -7
  441. package/dist/gui/catppuccin-macchiato-CLAJLZV7.js +0 -7
  442. package/dist/gui/catppuccin-mocha-DJZW5ULN.js +0 -7
  443. package/dist/gui/chapel-5CK5YMSY.js +0 -14
  444. package/dist/gui/chunk-2IVRELJI.js +0 -9
  445. package/dist/gui/chunk-2JKKPALB.js +0 -9
  446. package/dist/gui/chunk-2PUAXP2T.js +0 -38
  447. package/dist/gui/chunk-2QHMH6QB.js +0 -9
  448. package/dist/gui/chunk-2XE676KO.js +0 -9
  449. package/dist/gui/chunk-2YCLQAMI.js +0 -9
  450. package/dist/gui/chunk-3567J5D4.js +0 -14
  451. package/dist/gui/chunk-3BGADQKG.js +0 -9
  452. package/dist/gui/chunk-45O7TJOW.js +0 -9
  453. package/dist/gui/chunk-4DOSCG4B.js +0 -26
  454. package/dist/gui/chunk-4IZ5IRSO.js +0 -9
  455. package/dist/gui/chunk-5TDK5Y5S.js +0 -9
  456. package/dist/gui/chunk-67HINKFV.js +0 -9
  457. package/dist/gui/chunk-6TG6XZZD.js +0 -14
  458. package/dist/gui/chunk-76C5RMV7.js +0 -9
  459. package/dist/gui/chunk-7CB7TITS.js +0 -9
  460. package/dist/gui/chunk-7YLAFQQ7.js +0 -27
  461. package/dist/gui/chunk-AZIN3OHL.js +0 -14
  462. package/dist/gui/chunk-BW7B23CF.js +0 -9
  463. package/dist/gui/chunk-C774R7J7.js +0 -26
  464. package/dist/gui/chunk-CB7BCEL4.js +0 -9
  465. package/dist/gui/chunk-CYKSS2Y7.js +0 -9
  466. package/dist/gui/chunk-DCJCRTKO.js +0 -14
  467. package/dist/gui/chunk-DKOWBU7G.js +0 -9
  468. package/dist/gui/chunk-DWAALHPK.js +0 -9
  469. package/dist/gui/chunk-EZITVRXA.js +0 -9
  470. package/dist/gui/chunk-FAHLSHNR.js +0 -9
  471. package/dist/gui/chunk-FALFVRCV.js +0 -14
  472. package/dist/gui/chunk-GL2Q3EDW.js +0 -9
  473. package/dist/gui/chunk-H66FQEKW.js +0 -9
  474. package/dist/gui/chunk-HGZA2JNF.js +0 -9
  475. package/dist/gui/chunk-HQG63PQL.js +0 -9
  476. package/dist/gui/chunk-HSNCWORT.js +0 -9
  477. package/dist/gui/chunk-IJCSV645.js +0 -14
  478. package/dist/gui/chunk-ILHZPDJC.js +0 -9
  479. package/dist/gui/chunk-IYFWWBRC.js +0 -34
  480. package/dist/gui/chunk-J6IKJJ34.js +0 -34
  481. package/dist/gui/chunk-JBVY6KB5.js +0 -9
  482. package/dist/gui/chunk-JJHUDSW7.js +0 -9
  483. package/dist/gui/chunk-JLIS73DH.js +0 -14
  484. package/dist/gui/chunk-JO5JNDTX.js +0 -9
  485. package/dist/gui/chunk-JV223PVL.js +0 -14
  486. package/dist/gui/chunk-JVCCJA2A.js +0 -30
  487. package/dist/gui/chunk-KGH6JTBL.js +0 -9
  488. package/dist/gui/chunk-KM2QKTEE.js +0 -50
  489. package/dist/gui/chunk-KSXADT4K.js +0 -9
  490. package/dist/gui/chunk-MT4FGOLU.js +0 -9
  491. package/dist/gui/chunk-NAD33WBI.js +0 -14
  492. package/dist/gui/chunk-NE25QJUZ.js +0 -9
  493. package/dist/gui/chunk-OII47WE4.js +0 -14
  494. package/dist/gui/chunk-OWEPHUF3.js +0 -14
  495. package/dist/gui/chunk-Q2AHPUVI.js +0 -9
  496. package/dist/gui/chunk-Q567VMM5.js +0 -9
  497. package/dist/gui/chunk-QFOAKHDY.js +0 -9
  498. package/dist/gui/chunk-QH2T6GYZ.js +0 -9
  499. package/dist/gui/chunk-QU263C3I.js +0 -9
  500. package/dist/gui/chunk-QYOJGBVM.js +0 -14
  501. package/dist/gui/chunk-R27EWKMH.js +0 -58
  502. package/dist/gui/chunk-RW4VQAW5.js +0 -18
  503. package/dist/gui/chunk-S7GWCO5B.js +0 -9
  504. package/dist/gui/chunk-SBETFYFF.js +0 -30
  505. package/dist/gui/chunk-SF5VS2XA.js +0 -9
  506. package/dist/gui/chunk-SZ2AIRR5.js +0 -9
  507. package/dist/gui/chunk-TKLN6WSC.js +0 -9
  508. package/dist/gui/chunk-TS3VPCJT.js +0 -9
  509. package/dist/gui/chunk-UUL2FFKC.js +0 -53
  510. package/dist/gui/chunk-VB3O6QM4.js +0 -9
  511. package/dist/gui/chunk-VEW77XHD.js +0 -9
  512. package/dist/gui/chunk-VVHT2QDI.js +0 -14
  513. package/dist/gui/chunk-WAWKOXXW.js +0 -18
  514. package/dist/gui/chunk-WBGGZ2J4.js +0 -9
  515. package/dist/gui/chunk-WC4BNZJP.js +0 -9
  516. package/dist/gui/chunk-XOMTOLBK.js +0 -9
  517. package/dist/gui/chunk-YBPIMBI6.js +0 -9
  518. package/dist/gui/chunk-YCL6DOP5.js +0 -9
  519. package/dist/gui/chunk-YJV35WLF.js +0 -14
  520. package/dist/gui/chunk-YOOITCA2.js +0 -22
  521. package/dist/gui/chunk-YWGUZU7U.js +0 -9
  522. package/dist/gui/chunk-YXIK6PVL.js +0 -9
  523. package/dist/gui/chunk-ZMZROCQO.js +0 -9
  524. package/dist/gui/clarity-X6Y4EF32.js +0 -10
  525. package/dist/gui/clojure-HWHJFZBF.js +0 -7
  526. package/dist/gui/cmake-4WVDKLXE.js +0 -7
  527. package/dist/gui/cobol-BK36TVIL.js +0 -20
  528. package/dist/gui/codeowners-PKXUEH4G.js +0 -10
  529. package/dist/gui/codeql-GSSNZAAP.js +0 -10
  530. package/dist/gui/coffee-CGHHEFIM.js +0 -8
  531. package/dist/gui/common-lisp-V4DD5MQE.js +0 -10
  532. package/dist/gui/coq-QVWLCVBB.js +0 -10
  533. package/dist/gui/cpp-KAUF3RSB.js +0 -10
  534. package/dist/gui/crystal-7TGOAT76.js +0 -34
  535. package/dist/gui/csharp-RRPDDXD7.js +0 -7
  536. package/dist/gui/css-S4XR6RYL.js +0 -7
  537. package/dist/gui/csv-ZNGJRB22.js +0 -7
  538. package/dist/gui/cue-7HOXZRS4.js +0 -10
  539. package/dist/gui/cypher-EAUAMJM6.js +0 -10
  540. package/dist/gui/d-CBA7NL6B.js +0 -10
  541. package/dist/gui/dark-plus-BOB45KCW.js +0 -7
  542. package/dist/gui/dart-MZSRF3IM.js +0 -7
  543. package/dist/gui/dax-Q4BTRBTA.js +0 -10
  544. package/dist/gui/desktop-NKAUWTGR.js +0 -10
  545. package/dist/gui/diff-RVUP6GV7.js +0 -7
  546. package/dist/gui/docker-KGDTLYEN.js +0 -7
  547. package/dist/gui/dotenv-5YOSIPZS.js +0 -10
  548. package/dist/gui/dracula-F56RSW6N.js +0 -7
  549. package/dist/gui/dracula-soft-CV5NUT6A.js +0 -7
  550. package/dist/gui/dream-maker-RGHMRX3B.js +0 -10
  551. package/dist/gui/edge-R66O24VV.js +0 -24
  552. package/dist/gui/elixir-5LJ2OUDN.js +0 -10
  553. package/dist/gui/elm-UWVV5ID7.js +0 -15
  554. package/dist/gui/emacs-lisp-TAO5U74P.js +0 -10
  555. package/dist/gui/erb-VBZVG65V.js +0 -35
  556. package/dist/gui/erlang-NLTHURFZ.js +0 -8
  557. package/dist/gui/everforest-dark-JBR4GKJA.js +0 -7
  558. package/dist/gui/everforest-light-AIUWRSLR.js +0 -7
  559. package/dist/gui/fennel-U2PEW23D.js +0 -10
  560. package/dist/gui/fish-KA4MOTTR.js +0 -10
  561. package/dist/gui/fluent-TC32ABGF.js +0 -10
  562. package/dist/gui/fortran-fixed-form-HMHOKX2P.js +0 -14
  563. package/dist/gui/fortran-free-form-T5IDESEJ.js +0 -7
  564. package/dist/gui/fsharp-QTHVHR6A.js +0 -8
  565. package/dist/gui/gdresource-ANDGJRDE.js +0 -18
  566. package/dist/gui/gdscript-2MXOLWT4.js +0 -7
  567. package/dist/gui/gdshader-RPDJURLG.js +0 -7
  568. package/dist/gui/genie-KQGSIM6L.js +0 -10
  569. package/dist/gui/gherkin-UU7PIT6E.js +0 -10
  570. package/dist/gui/git-commit-2OSO66MB.js +0 -8
  571. package/dist/gui/git-rebase-QIB3QI3O.js +0 -8
  572. package/dist/gui/github-dark-H5MJU2XK.js +0 -7
  573. package/dist/gui/github-dark-dimmed-UMS2CKX4.js +0 -7
  574. package/dist/gui/github-dark-high-contrast-N7ADHDRY.js +0 -7
  575. package/dist/gui/github-light-L3SBY5N4.js +0 -7
  576. package/dist/gui/github-light-default-N7QH7CFJ.js +0 -7
  577. package/dist/gui/github-light-high-contrast-2RMTNJOX.js +0 -7
  578. package/dist/gui/gleam-MB2OP4K4.js +0 -10
  579. package/dist/gui/glimmer-js-YJIW2B6M.js +0 -26
  580. package/dist/gui/glimmer-ts-RBWTLTMH.js +0 -26
  581. package/dist/gui/glsl-F7QZR37K.js +0 -8
  582. package/dist/gui/gn-F5BIWANZ.js +0 -10
  583. package/dist/gui/gnuplot-5K7Z5OR2.js +0 -10
  584. package/dist/gui/go-C26CLWJG.js +0 -7
  585. package/dist/gui/graphql-LOUCQJXE.js +0 -11
  586. package/dist/gui/groovy-DVSWXLFJ.js +0 -7
  587. package/dist/gui/gruvbox-dark-hard-WCNUL35F.js +0 -7
  588. package/dist/gui/gruvbox-dark-soft-DA4S6ZCG.js +0 -7
  589. package/dist/gui/gruvbox-light-hard-G3DA2CVN.js +0 -7
  590. package/dist/gui/gruvbox-light-medium-XC4P77WY.js +0 -7
  591. package/dist/gui/gruvbox-light-soft-AXFRXVRJ.js +0 -7
  592. package/dist/gui/hack-7E22AMLX.js +0 -20
  593. package/dist/gui/haml-DLYDG7TX.js +0 -9
  594. package/dist/gui/handlebars-EXMYBU7Q.js +0 -11
  595. package/dist/gui/haskell-PZFDAWUI.js +0 -10
  596. package/dist/gui/haxe-VZSRFGDC.js +0 -7
  597. package/dist/gui/hcl-NAPQ56UJ.js +0 -10
  598. package/dist/gui/hjson-7YO44GAE.js +0 -10
  599. package/dist/gui/hlsl-P6H2KE4L.js +0 -7
  600. package/dist/gui/horizon-ABEUFKCJ.js +0 -7
  601. package/dist/gui/horizon-bright-4IF4JCRZ.js +0 -7
  602. package/dist/gui/houston-ACBQLVIG.js +0 -7
  603. package/dist/gui/html-37GWH2QE.js +0 -9
  604. package/dist/gui/html-derivative-TSWK6LSQ.js +0 -10
  605. package/dist/gui/http-MBDMTHEC.js +0 -31
  606. package/dist/gui/hurl-WAATKOCB.js +0 -27
  607. package/dist/gui/hxml-LG2R5CDK.js +0 -14
  608. package/dist/gui/hy-4MDQ72ZR.js +0 -10
  609. package/dist/gui/imba-AMDQ2OVM.js +0 -10
  610. package/dist/gui/ini-BSRRTTCB.js +0 -7
  611. package/dist/gui/java-VPDWWQCN.js +0 -7
  612. package/dist/gui/javascript-YSK6TDHD.js +0 -7
  613. package/dist/gui/jinja-PJIERUUD.js +0 -23
  614. package/dist/gui/jison-6R6YZ4D3.js +0 -14
  615. package/dist/gui/json-CDBUD4K4.js +0 -7
  616. package/dist/gui/json5-GQ5EPJPN.js +0 -10
  617. package/dist/gui/jsonc-EUK6K7BC.js +0 -7
  618. package/dist/gui/jsonl-AZZ6LVAP.js +0 -10
  619. package/dist/gui/jsonnet-TG4672OU.js +0 -10
  620. package/dist/gui/jssm-POLM2BGU.js +0 -10
  621. package/dist/gui/jsx-HNQJHG7G.js +0 -7
  622. package/dist/gui/julia-EQ4JLFSR.js +0 -15
  623. package/dist/gui/just-3SVPXB4P.js +0 -49
  624. package/dist/gui/kanagawa-dragon-4QPQEBJF.js +0 -7
  625. package/dist/gui/kanagawa-lotus-E2SVDYBP.js +0 -7
  626. package/dist/gui/kanagawa-wave-ZAYNGKIP.js +0 -7
  627. package/dist/gui/kdl-GX2QLRI3.js +0 -10
  628. package/dist/gui/kotlin-GKENNT4G.js +0 -10
  629. package/dist/gui/kusto-YE5J7WH7.js +0 -10
  630. package/dist/gui/laserwave-FEC67QFP.js +0 -7
  631. package/dist/gui/latex-AULDPOF3.js +0 -9
  632. package/dist/gui/lean-WU3KGKFX.js +0 -10
  633. package/dist/gui/less-G3PHK6XJ.js +0 -7
  634. package/dist/gui/light-plus-IWZ7H7K5.js +0 -7
  635. package/dist/gui/liquid-GRGQYWEM.js +0 -26
  636. package/dist/gui/llvm-GZMF4RGX.js +0 -10
  637. package/dist/gui/log-IVFPTJO5.js +0 -7
  638. package/dist/gui/logo-QKNO4KB4.js +0 -10
  639. package/dist/gui/lua-2SFYRRVQ.js +0 -8
  640. package/dist/gui/luau-7LGUQMID.js +0 -10
  641. package/dist/gui/make-6IBN4RHX.js +0 -7
  642. package/dist/gui/markdown-RGBXB5KM.js +0 -7
  643. package/dist/gui/marko-6ENW4ITK.js +0 -26
  644. package/dist/gui/material-theme-JOKMNPZD.js +0 -7
  645. package/dist/gui/material-theme-darker-7MTKLCCM.js +0 -7
  646. package/dist/gui/material-theme-lighter-VOBCBDGF.js +0 -7
  647. package/dist/gui/material-theme-ocean-HIZIQ6ZI.js +0 -7
  648. package/dist/gui/material-theme-palenight-MDKGMWOS.js +0 -7
  649. package/dist/gui/matlab-NVRQWPT4.js +0 -10
  650. package/dist/gui/mdc-3KJ5Z26I.js +0 -25
  651. package/dist/gui/mdx-TUFOPE2U.js +0 -10
  652. package/dist/gui/mermaid-2ELHPTEI.js +0 -10
  653. package/dist/gui/min-dark-H6FRUPEW.js +0 -7
  654. package/dist/gui/min-light-AAKNJKN7.js +0 -7
  655. package/dist/gui/mipsasm-CMTR7652.js +0 -10
  656. package/dist/gui/mojo-QON2ZHI5.js +0 -10
  657. package/dist/gui/monokai-4IQYQQA3.js +0 -7
  658. package/dist/gui/moonbit-YXIFXWNL.js +0 -10
  659. package/dist/gui/move-5AVESP7D.js +0 -10
  660. package/dist/gui/narrat-P67ZRVLF.js +0 -10
  661. package/dist/gui/nextflow-IA3AKAOV.js +0 -14
  662. package/dist/gui/nextflow-groovy-3TZGSHZN.js +0 -7
  663. package/dist/gui/nginx-A674IMF2.js +0 -15
  664. package/dist/gui/night-owl-YKMG5AEG.js +0 -7
  665. package/dist/gui/night-owl-light-FK52JHEJ.js +0 -7
  666. package/dist/gui/nim-TNAHEHQE.js +0 -15
  667. package/dist/gui/nix-PKII6ZAX.js +0 -17
  668. package/dist/gui/nord-UMPZ4MDR.js +0 -7
  669. package/dist/gui/nsis-RLNIMWJ4.js +0 -10
  670. package/dist/gui/nushell-XCKRAB5V.js +0 -10
  671. package/dist/gui/objective-c-VW6IYVZR.js +0 -7
  672. package/dist/gui/objective-cpp-A6HOVYIZ.js +0 -10
  673. package/dist/gui/ocaml-LEW2N47R.js +0 -7
  674. package/dist/gui/odin-ZYNZP2Z7.js +0 -10
  675. package/dist/gui/one-dark-pro-7ZD2R4C3.js +0 -7
  676. package/dist/gui/one-light-S6GW5JPC.js +0 -7
  677. package/dist/gui/openscad-S55J35RH.js +0 -10
  678. package/dist/gui/org-HWNUVJ3K.js +0 -203
  679. package/dist/gui/pascal-PQJYR7AK.js +0 -10
  680. package/dist/gui/perl-NRCSCL2T.js +0 -13
  681. package/dist/gui/php-7FKD7NQ6.js +0 -14
  682. package/dist/gui/pierre-dark-2VX7FTVH.js +0 -7
  683. package/dist/gui/pierre-dark-protanopia-deuteranopia-IWPDHMFY.js +0 -7
  684. package/dist/gui/pierre-dark-soft-PBZEND7C.js +0 -7
  685. package/dist/gui/pierre-dark-tritanopia-H4RGFNEU.js +0 -7
  686. package/dist/gui/pierre-light-2CTJ4CSM.js +0 -7
  687. package/dist/gui/pierre-light-protanopia-deuteranopia-SGQCEX2P.js +0 -7
  688. package/dist/gui/pierre-light-soft-FSLVXWQU.js +0 -7
  689. package/dist/gui/pierre-light-tritanopia-YDWTX7OC.js +0 -7
  690. package/dist/gui/pierre-light-vibrant-CBHQI6SK.js +0 -7
  691. package/dist/gui/pkl-BBS5JDCX.js +0 -10
  692. package/dist/gui/plastic-24BUHBC6.js +0 -7
  693. package/dist/gui/plsql-WTYXI2RI.js +0 -10
  694. package/dist/gui/po-GLVRZSLC.js +0 -10
  695. package/dist/gui/poimandres-6BCLQCCV.js +0 -7
  696. package/dist/gui/polar-HQ7LUSDG.js +0 -10
  697. package/dist/gui/postcss-5ILUXDAM.js +0 -7
  698. package/dist/gui/powerquery-T2DA4K5Q.js +0 -10
  699. package/dist/gui/powershell-YAEHZVQU.js +0 -7
  700. package/dist/gui/prisma-UYCP5C7X.js +0 -10
  701. package/dist/gui/prolog-JLW5JO7Q.js +0 -10
  702. package/dist/gui/proto-XPAGGVMR.js +0 -10
  703. package/dist/gui/pug-4D7KLPNZ.js +0 -10
  704. package/dist/gui/puppet-CAH3DWTQ.js +0 -10
  705. package/dist/gui/purescript-TY5CZSBG.js +0 -10
  706. package/dist/gui/python-AJWUUEXZ.js +0 -7
  707. package/dist/gui/qml-3P7XGIWB.js +0 -14
  708. package/dist/gui/qmldir-MU3RYVKI.js +0 -10
  709. package/dist/gui/qss-GQ3SQE63.js +0 -10
  710. package/dist/gui/r-MZS2GKC3.js +0 -7
  711. package/dist/gui/racket-EJOVFY7Q.js +0 -10
  712. package/dist/gui/raku-N7M6AP4Z.js +0 -7
  713. package/dist/gui/razor-XMDVCJ7X.js +0 -20
  714. package/dist/gui/rbs-3XJPBJS3.js +0 -10
  715. package/dist/gui/red-DQ454N4M.js +0 -7
  716. package/dist/gui/reg-FCSLOXMU.js +0 -10
  717. package/dist/gui/regexp-OU4NYHVA.js +0 -7
  718. package/dist/gui/rel-GPRT753E.js +0 -10
  719. package/dist/gui/riscv-IO6X3OUS.js +0 -10
  720. package/dist/gui/ron-LAUU7JCT.js +0 -10
  721. package/dist/gui/rose-pine-FGMQPAXN.js +0 -7
  722. package/dist/gui/rose-pine-dawn-XZHKMJMS.js +0 -7
  723. package/dist/gui/rose-pine-moon-44RDFYAS.js +0 -7
  724. package/dist/gui/rosmsg-HKG52NBT.js +0 -10
  725. package/dist/gui/rst-PIASADIQ.js +0 -56
  726. package/dist/gui/ruby-Z6MF5JYI.js +0 -25
  727. package/dist/gui/rust-C45CB5ZB.js +0 -7
  728. package/dist/gui/sas-EOAR3TJ3.js +0 -14
  729. package/dist/gui/sass-KEOLMOQJ.js +0 -10
  730. package/dist/gui/scala-O3LM5FKD.js +0 -7
  731. package/dist/gui/scheme-NGQ2H462.js +0 -10
  732. package/dist/gui/scss-WAYO2YAL.js +0 -8
  733. package/dist/gui/sdbl-G5J5BQHJ.js +0 -7
  734. package/dist/gui/shaderlab-XU7645J6.js +0 -14
  735. package/dist/gui/shellscript-QPJOW65X.js +0 -7
  736. package/dist/gui/shellsession-LCJMCYFU.js +0 -14
  737. package/dist/gui/slack-dark-VD234CKF.js +0 -7
  738. package/dist/gui/slack-ochin-QY7RWW52.js +0 -7
  739. package/dist/gui/smalltalk-LMQWJTYB.js +0 -10
  740. package/dist/gui/smithy-XKBQ5TXG.js +0 -10
  741. package/dist/gui/snazzy-light-7DJMADZF.js +0 -7
  742. package/dist/gui/solarized-dark-PXF6MHWO.js +0 -7
  743. package/dist/gui/solarized-light-XQPVPM7L.js +0 -7
  744. package/dist/gui/solidity-67AFBEYM.js +0 -10
  745. package/dist/gui/soy-C25UWDWI.js +0 -16
  746. package/dist/gui/sparql-GG32TI6Q.js +0 -14
  747. package/dist/gui/splunk-Q7OG3S6M.js +0 -10
  748. package/dist/gui/sql-6F3HA23R.js +0 -7
  749. package/dist/gui/ssh-config-EK5IZW3T.js +0 -10
  750. package/dist/gui/stata-54FRWEK5.js +0 -14
  751. package/dist/gui/stylus-TKKFQVIW.js +0 -7
  752. package/dist/gui/surrealql-2O6L6FVR.js +0 -14
  753. package/dist/gui/svelte-RQW3BSQN.js +0 -26
  754. package/dist/gui/swift-XM6BATYX.js +0 -7
  755. package/dist/gui/synthwave-84-T7XO3VP6.js +0 -7
  756. package/dist/gui/system-verilog-5A7OWIS7.js +0 -7
  757. package/dist/gui/systemd-YG2GIELU.js +0 -10
  758. package/dist/gui/talonscript-PIYOSW4G.js +0 -10
  759. package/dist/gui/tasl-LSN6MJU3.js +0 -10
  760. package/dist/gui/tcl-QL7GI7GB.js +0 -10
  761. package/dist/gui/templ-LLH4QDAT.js +0 -22
  762. package/dist/gui/terraform-7ESBXUP7.js +0 -10
  763. package/dist/gui/tex-X4LXVCV7.js +0 -8
  764. package/dist/gui/tokyo-night-FBILIEZB.js +0 -7
  765. package/dist/gui/toml-ZPLDESJA.js +0 -10
  766. package/dist/gui/ts-tags-HZGRWBOR.js +0 -81
  767. package/dist/gui/tsv-DFQOAT3Y.js +0 -10
  768. package/dist/gui/tsx-HKUFCS2K.js +0 -7
  769. package/dist/gui/turtle-JNLUZA5M.js +0 -7
  770. package/dist/gui/twig-OEKA6N6I.js +0 -30
  771. package/dist/gui/typescript-TJKT3IXK.js +0 -7
  772. package/dist/gui/typespec-LYVFB2R5.js +0 -10
  773. package/dist/gui/typst-NRT4OQOK.js +0 -243
  774. package/dist/gui/v-Y4OWOLQI.js +0 -10
  775. package/dist/gui/vala-MD66CNI7.js +0 -10
  776. package/dist/gui/vb-CPQUJ3PO.js +0 -7
  777. package/dist/gui/verilog-ECIZCOEU.js +0 -7
  778. package/dist/gui/vesper-JUVJQUCS.js +0 -7
  779. package/dist/gui/vhdl-QJIATVDS.js +0 -10
  780. package/dist/gui/viml-SAWLYNSC.js +0 -10
  781. package/dist/gui/vitesse-black-44DSWBPL.js +0 -7
  782. package/dist/gui/vitesse-dark-ZB4X3SXC.js +0 -7
  783. package/dist/gui/vitesse-light-T4PKXN2B.js +0 -7
  784. package/dist/gui/vue-YZTXYZUC.js +0 -63
  785. package/dist/gui/vue-html-3OB5SOZU.js +0 -14
  786. package/dist/gui/vue-vine-ZQNB45F6.js +0 -34
  787. package/dist/gui/vyper-545OELAD.js +0 -10
  788. package/dist/gui/wasm-6SXLSWDK.js +0 -13
  789. package/dist/gui/wasm-UNG3ITYZ.js +0 -10
  790. package/dist/gui/wenyan-6MAMINLZ.js +0 -10
  791. package/dist/gui/wgsl-GTGWOC2E.js +0 -10
  792. package/dist/gui/wikitext-X3KHSBD4.js +0 -10
  793. package/dist/gui/wit-RN2FK5B5.js +0 -10
  794. package/dist/gui/wolfram-X3KENW2V.js +0 -10
  795. package/dist/gui/xml-Y333D7KT.js +0 -8
  796. package/dist/gui/xsl-ZBX7NBWE.js +0 -9
  797. package/dist/gui/yaml-HXOTARZF.js +0 -7
  798. package/dist/gui/zenscript-UJ7J7IFX.js +0 -10
  799. package/dist/gui/zig-6J4JS6G3.js +0 -7
@@ -0,0 +1,164 @@
1
+ import{b as vr,d as y,e as U,f as xe,g as J,h as an,i as Er}from"./chunk-OR5FHECQ.js";function Ar(t){return t!==null&&typeof t=="object"&&"default"in t?t.default:t}var Tr=class extends Error{constructor(t){super(`Theme "${t}" is already registered`),this.name="DuplicateThemeError"}},Rr=class extends Error{constructor(t){super(`No loader registered for theme "${t}"`),this.name="UnregisteredThemeError"}},Ir=class extends Error{constructor(t){super(`Theme "${t}" has not been resolved`),this.name="UnresolvedThemeError"}};function oi(){let t=new Map,e=new Map,n=new Map,r=0;function s(m,g){if(t.has(m))throw new Tr(m);t.set(m,g)}function o(m,g){return t.has(m)?!1:(t.set(m,g),!0)}function i(m){return t.has(m)}function a(m){let g=e.get(m);if(g!==void 0)return Promise.resolve(g);let w=n.get(m);if(w!==void 0)return w;let S=t.get(m);if(S===void 0)return Promise.reject(new Rr(m));let x=r,E=S().then(R=>{let D=Ar(R);return x===r&&e.set(m,D),n.get(m)===E&&n.delete(m),D}).catch(R=>{throw n.get(m)===E&&n.delete(m),R});return n.set(m,E),E}function l(m){return Promise.all(m.map(g=>a(g)))}function c(m,g){e.set(m,g)}function f(m){for(let[g,w]of m)c(g,w)}function u(m){return e.get(m)}function d(m){let g=[];for(let w of m){let S=e.get(w);if(S===void 0)throw new Ir(w);g.push(S)}return g}function h(m){return e.has(m)}function p(m){for(let g of m)if(!e.has(g))return!1;return!0}function b(m){let g=e.get(m);return g!==void 0?g:a(m)}function _(){r++,e.clear(),n.clear()}return{clearResolvedThemes:_,getResolvedOrResolveTheme:b,getResolvedTheme:u,getResolvedThemes:d,hasRegisteredTheme:i,hasResolvedTheme:h,hasResolvedThemes:p,registerTheme:s,registerThemeIfAbsent:o,resolveTheme:a,resolveThemes:l,seedResolvedTheme:c,seedResolvedThemes:f}}function Nr(t){let e=[],n=new Set;for(let u of ii(t.themes)){let d=Lr(u)?u.getThemes():[u];for(let h of d){if(n.has(h.name))throw new Error(`Theme collection already contains theme "${h.name}"`);n.add(h.name),e.push(h)}}let r=Object.freeze([...e]),s=Object.freeze(r.filter(u=>u.colorScheme==="light")),o=Object.freeze(r.filter(u=>u.colorScheme==="dark")),i=new Map(r.map(u=>[u.name,u])),a=Object.freeze(r.map(u=>u.name)),l=Object.freeze(s.map(u=>u.name)),c=Object.freeze(o.map(u=>u.name));function f(u){if(u==null)return r;let{colorScheme:d,collection:h}=u;return h==null?d==="light"?s:d==="dark"?o:r:r.filter(p=>p.collection!==h?!1:d==null||p.colorScheme===d)}return{getTheme(u){return i.get(u)},getThemes(u){return f(u)},getThemeNames(u){return u?.collection==null?u?.colorScheme==="light"?l:u?.colorScheme==="dark"?c:a:f(u).map(d=>d.name)},hasTheme(u){return i.has(u)},orderBy(u){return Nr({themes:r.map((d,h)=>({descriptor:d,index:h})).sort((d,h)=>{let p=u(d.descriptor,h.descriptor);return p!==0?p:d.index-h.index}).map(d=>d.descriptor)})},pick(u){let d=[],h=new Set;for(let p of u){if(h.has(p))throw new Error(`Theme collection pick already includes theme "${p}"`);h.add(p);let b=i.get(p);if(b==null)throw new Error(`Theme collection does not contain theme "${p}"`);d.push(b)}return Nr({themes:d})},registerInto(u){for(let d of r)u.registerThemeIfAbsent(d.name,d.load)}}}function ii(t){return ai(t)?[t]:t}function ai(t){return Lr(t)||li(t)}function li(t){return typeof t.name=="string"&&typeof t.load=="function"}function Lr(t){return typeof t.getThemes=="function"}var fn={};vr(fn,{createOnigurumaEngine:()=>vi,getDefaultWasmLoader:()=>ki,loadWasm:()=>Mr,setDefaultWasmLoader:()=>xi});var un=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function ci(){return 2147483648}function ui(){return typeof performance<"u"?performance.now():Date.now()}var fi=(t,e)=>t+(e-t%e)%e;async function hi(t){let e,n,r={};function s(h){n=h,r.HEAPU8=new Uint8Array(h),r.HEAPU32=new Uint32Array(h)}function o(h,p,b){r.HEAPU8.copyWithin(h,p,p+b)}function i(h){try{return e.grow(h-n.byteLength+65535>>>16),s(e.buffer),1}catch{}}function a(h){let p=r.HEAPU8.length;h=h>>>0;let b=ci();if(h>b)return!1;for(let _=1;_<=4;_*=2){let m=p*(1+.2/_);m=Math.min(m,h+100663296);let g=Math.min(b,fi(Math.max(h,m),65536));if(i(g))return!0}return!1}let l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(h,p,b=1024){let _=p+b,m=p;for(;h[m]&&!(m>=_);)++m;if(m-p>16&&h.buffer&&l)return l.decode(h.subarray(p,m));let g="";for(;p<m;){let w=h[p++];if(!(w&128)){g+=String.fromCharCode(w);continue}let S=h[p++]&63;if((w&224)===192){g+=String.fromCharCode((w&31)<<6|S);continue}let x=h[p++]&63;if((w&240)===224?w=(w&15)<<12|S<<6|x:w=(w&7)<<18|S<<12|x<<6|h[p++]&63,w<65536)g+=String.fromCharCode(w);else{let E=w-65536;g+=String.fromCharCode(55296|E>>10,56320|E&1023)}}return g}function f(h,p){return h?c(r.HEAPU8,h,p):""}let u={emscripten_get_now:ui,emscripten_memcpy_big:o,emscripten_resize_heap:a,fd_write:()=>0};async function d(){let p=await t({env:u,wasi_snapshot_preview1:u});e=p.memory,s(e.buffer),Object.assign(r,p),r.UTF8ToString=f}return await d(),r}var di=Object.defineProperty,pi=(t,e,n)=>e in t?di(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,M=(t,e,n)=>pi(t,typeof e!="symbol"?e+"":e,n),$=null;function gi(t){throw new un(t.UTF8ToString(t.getLastOnigError()))}var mt=class t{constructor(e){M(this,"utf16Length"),M(this,"utf8Length"),M(this,"utf16Value"),M(this,"utf8Value"),M(this,"utf16OffsetToUtf8"),M(this,"utf8OffsetToUtf16");let n=e.length,r=t._utf8ByteLength(e),s=r!==n,o=s?new Uint32Array(n+1):null;s&&(o[n]=r);let i=s?new Uint32Array(r+1):null;s&&(i[r]=n);let a=new Uint8Array(r),l=0;for(let c=0;c<n;c++){let f=e.charCodeAt(c),u=f,d=!1;if(f>=55296&&f<=56319&&c+1<n){let h=e.charCodeAt(c+1);h>=56320&&h<=57343&&(u=(f-55296<<10)+65536|h-56320,d=!0)}s&&(o[c]=l,d&&(o[c+1]=l),u<=127?i[l+0]=c:u<=2047?(i[l+0]=c,i[l+1]=c):u<=65535?(i[l+0]=c,i[l+1]=c,i[l+2]=c):(i[l+0]=c,i[l+1]=c,i[l+2]=c,i[l+3]=c)),u<=127?a[l++]=u:u<=2047?(a[l++]=192|(u&1984)>>>6,a[l++]=128|(u&63)>>>0):u<=65535?(a[l++]=224|(u&61440)>>>12,a[l++]=128|(u&4032)>>>6,a[l++]=128|(u&63)>>>0):(a[l++]=240|(u&1835008)>>>18,a[l++]=128|(u&258048)>>>12,a[l++]=128|(u&4032)>>>6,a[l++]=128|(u&63)>>>0),d&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=e,this.utf8Value=a,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=i}static _utf8ByteLength(e){let n=0;for(let r=0,s=e.length;r<s;r++){let o=e.charCodeAt(r),i=o,a=!1;if(o>=55296&&o<=56319&&r+1<s){let l=e.charCodeAt(r+1);l>=56320&&l<=57343&&(i=(o-55296<<10)+65536|l-56320,a=!0)}i<=127?n+=1:i<=2047?n+=2:i<=65535?n+=3:n+=4,a&&r++}return n}createString(e){let n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}},yt=class Z{constructor(e){if(M(this,"id",++Z.LAST_ID),M(this,"_onigBinding"),M(this,"content"),M(this,"utf16Length"),M(this,"utf8Length"),M(this,"utf16OffsetToUtf8"),M(this,"utf8OffsetToUtf16"),M(this,"ptr"),!$)throw new un("Must invoke loadWasm first.");this._onigBinding=$,this.content=e;let n=new mt(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Z._sharedPtrInUse?(Z._sharedPtr||(Z._sharedPtr=$.omalloc(1e4)),Z._sharedPtrInUse=!0,$.HEAPU8.set(n.utf8Value,Z._sharedPtr),this.ptr=Z._sharedPtr):this.ptr=n.createString($)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===Z._sharedPtr?Z._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};M(yt,"LAST_ID",0);M(yt,"_sharedPtr",0);M(yt,"_sharedPtrInUse",!1);var Pr=yt,cn=class{constructor(e){if(M(this,"_onigBinding"),M(this,"_ptr"),!$)throw new un("Must invoke loadWasm first.");let n=[],r=[];for(let a=0,l=e.length;a<l;a++){let c=new mt(e[a]);n[a]=c.createString($),r[a]=c.utf8Length}let s=$.omalloc(4*e.length);$.HEAPU32.set(n,s/4);let o=$.omalloc(4*e.length);$.HEAPU32.set(r,o/4);let i=$.createOnigScanner(s,o,e.length);for(let a=0,l=e.length;a<l;a++)$.ofree(n[a]);$.ofree(o),$.ofree(s),i===0&&gi($),this._onigBinding=$,this._ptr=i}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,r){let s=0;if(typeof r=="number"&&(s=r),typeof e=="string"){e=new Pr(e);let o=this._findNextMatchSync(e,n,!1,s);return e.dispose(),o}return this._findNextMatchSync(e,n,!1,s)}_findNextMatchSync(e,n,r,s){let o=this._onigBinding,i=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),s);if(i===0)return null;let a=o.HEAPU32,l=i/4,c=a[l++],f=a[l++],u=[];for(let d=0;d<f;d++){let h=e.convertUtf8OffsetToUtf16(a[l++]),p=e.convertUtf8OffsetToUtf16(a[l++]);u[d]={start:h,end:p,length:p-h}}return{index:c,captureIndices:u}}};function mi(t){return typeof t.instantiator=="function"}function yi(t){return typeof t.default=="function"}function wi(t){return typeof t.data<"u"}function bi(t){return typeof Response<"u"&&t instanceof Response}function Ci(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}var gt;function Mr(t){if(gt)return gt;async function e(){$=await hi(async n=>{let r=t;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),mi(r)?r=await r.instantiator(n):yi(r)?r=await r.default(n):(wi(r)&&(r=r.data),bi(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await _i(r)(n):r=await Si(r)(n):Ci(r)?r=await ln(r)(n):r instanceof WebAssembly.Module?r=await ln(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await ln(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return gt=e(),gt}function ln(t){return e=>WebAssembly.instantiate(t,e)}function _i(t){return e=>WebAssembly.instantiateStreaming(t,e)}function Si(t){return async e=>{let n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}var Or;function xi(t){Or=t}function ki(){return Or}async function vi(t){return t&&await Mr(t),{createScanner(e){return new cn(e.map(n=>typeof n=="string"?n:n.source))},createString(e){return new Pr(e)}}}var hn=Object.defineProperty,Ei=Object.getOwnPropertyDescriptor,Ai=Object.getOwnPropertyNames,Ti=Object.prototype.hasOwnProperty,Br=(t,e)=>{let n={};for(var r in t)hn(n,r,{get:t[r],enumerable:!0});return e||hn(n,Symbol.toStringTag,{value:"Module"}),n},$r=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(var s=Ai(e),o=0,i=s.length,a;o<i;o++)a=s[o],!Ti.call(t,a)&&a!==n&&hn(t,a,{get:(l=>e[l]).bind(null,a),enumerable:!(r=Ei(e,a))||r.enumerable});return t},Gr=(t,e,n)=>($r(t,e,"default"),n&&$r(n,e,"default"));var Ri=Br({});Gr(Ri,fn);var T=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Ii(t){return _n(t)}function _n(t){return Array.isArray(t)?Ni(t):t instanceof RegExp?t:typeof t=="object"?Li(t):t}function Ni(t){let e=[];for(let n=0,r=t.length;n<r;n++)e[n]=_n(t[n]);return e}function Li(t){let e={};for(let n in t)e[n]=_n(t[n]);return e}function qr(t,...e){return e.forEach(n=>{for(let r in n)t[r]=n[r]}),t}function Xr(t){let e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?Xr(t.substring(0,t.length-1)):t.substr(~e+1)}var dn=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,wt=class{static hasCaptures(t){return t===null?!1:(dn.lastIndex=0,dn.test(t))}static replaceCaptures(t,e,n){return t.replace(dn,(r,s,o,i)=>{let a=n[parseInt(s||o,10)];if(a){let l=e.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Jr(t,e){return t<e?-1:t>e?1:0}function Qr(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,r=e.length;if(n===r){for(let s=0;s<n;s++){let o=Jr(t[s],e[s]);if(o!==0)return o}return 0}return n-r}function Dr(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 Yr(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Zr=class{constructor(t){y(this,"cache",new Map);this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);let e=this.fn(t);return this.cache.set(t,e),e}},Xe=class{constructor(t,e,n){y(this,"_cachedMatchRoot",new Zr(t=>this._root.match(t)));this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(Oi(t),e)}static createFromParsedTheme(t,e){return Bi(t,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;let e=t.scopeName,r=this._cachedMatchRoot.get(e).find(s=>Pi(t.parent,s.parentScopes));return r?new Kr(r.fontStyle,r.foreground,r.background):null}},pn=class bt{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(let r of n)e=new bt(e,r);return e}static from(...e){let n=null;for(let r=0;r<e.length;r++)n=new bt(n,e[r]);return n}push(e){return new bt(this,e)}getSegments(){let e=this,n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let n=[],r=this;for(;r&&r!==e;)n.push(r.scopeName),r=r.parent;return r===e?n.reverse():void 0}};function Pi(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let r=e[n],s=!1;if(r===">"){if(n===e.length-1)return!1;r=e[++n],s=!0}for(;t&&!Mi(t.scopeName,r);){if(s)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Mi(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var Kr=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function Oi(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],r=0;for(let s=0,o=e.length;s<o;s++){let i=e[s];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let u=i.scope;u=u.replace(/^[,]+/,""),u=u.replace(/[,]+$/,""),a=u.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let u=i.settings.fontStyle.split(" ");for(let d=0,h=u.length;d<h;d++)switch(u[d]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof i.settings.foreground=="string"&&Dr(i.settings.foreground)&&(c=i.settings.foreground);let f=null;typeof i.settings.background=="string"&&Dr(i.settings.background)&&(f=i.settings.background);for(let u=0,d=a.length;u<d;u++){let p=a[u].trim().split(" "),b=p[p.length-1],_=null;p.length>1&&(_=p.slice(0,p.length-1),_.reverse()),n[r++]=new $i(b,_,s,l,c,f)}}return n}var $i=class{constructor(t,e,n,r,s,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=r,this.foreground=s,this.background=o}},G=(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))(G||{});function Bi(t,e){t.sort((l,c)=>{let f=Jr(l.scope,c.scope);return f!==0||(f=Qr(l.parentScopes,c.parentScopes),f!==0)?f:l.index-c.index});let n=0,r="#000000",s="#ffffff";for(;t.length>=1&&t[0].scope==="";){let l=t.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let o=new Gi(e),i=new Kr(n,o.getId(r),o.getId(s)),a=new Fi(new mn(0,null,-1,0,0),[]);for(let l=0,c=t.length;l<c;l++){let f=t[l];a.insert(0,f.scope,f.parentScopes,f.fontStyle,o.getId(f.foreground),o.getId(f.background))}return new Xe(o,i,a)}var Gi=class{constructor(t){y(this,"_isFrozen");y(this,"_lastColorId");y(this,"_id2color");y(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;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)}},Di=Object.freeze([]),mn=class es{constructor(e,n,r,s,o){y(this,"scopeDepth");y(this,"parentScopes");y(this,"fontStyle");y(this,"foreground");y(this,"background");this.scopeDepth=e,this.parentScopes=n||Di,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new es(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let r=0,s=e.length;r<s;r++)n[r]=e[r].clone();return n}acceptOverwrite(e,n,r,s){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},Fi=class yn{constructor(e,n=[],r={}){y(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let r=0,s=0;for(;e.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=e.parentScopes.length||s>=n.parentScopes.length);){let o=n.parentScopes[s].length-e.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),s,o;if(r===-1?(s=e,o=""):(s=e.substring(0,r),o=e.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(yn._cmpBySpecificity),n}insert(e,n,r,s,o,i){if(n===""){this._doInsertHere(e,r,s,o,i);return}let a=n.indexOf("."),l,c;a===-1?(l=n,c=""):(l=n.substring(0,a),c=n.substring(a+1));let f;this._children.hasOwnProperty(l)?f=this._children[l]:(f=new yn(this._mainRule.clone(),mn.cloneArr(this._rulesWithParentScopes)),this._children[l]=f),f.insert(e+1,c,r,s,o,i)}_doInsertHere(e,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(e,r,s,o);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let l=this._rulesWithParentScopes[i];if(Qr(l.parentScopes,n)===0){l.acceptOverwrite(e,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new mn(e,n,r,s,o))}},pe=class z{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){let n=z.getLanguageId(e),r=z.getTokenType(e),s=z.getFontStyle(e),o=z.getForeground(e),i=z.getBackground(e);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:o,background:i})}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,n,r,s,o,i,a){let l=z.getLanguageId(e),c=z.getTokenType(e),f=z.containsBalancedBrackets(e)?1:0,u=z.getFontStyle(e),d=z.getForeground(e),h=z.getBackground(e);return n!==0&&(l=n),r!==8&&(c=r),s!==null&&(f=s?1:0),o!==-1&&(u=o),i!==0&&(d=i),a!==0&&(h=a),(l<<0|c<<8|f<<10|u<<11|d<<15|h<<24)>>>0}};function _t(t,e){let n=[],r=Ui(t),s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let c=i();if(n.push({matcher:c,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();let l=o();return c=>!!l&&!l(c)}if(s==="("){s=r.next();let l=a();return s===")"&&(s=r.next()),l}if(Fr(s)){let l=[];do l.push(s),s=r.next();while(Fr(s));return c=>e(l,c)}return null}function i(){let l=[],c=o();for(;c;)l.push(c),c=o();return f=>l.every(u=>u(f))}function a(){let l=[],c=i();for(;c&&(l.push(c),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");c=i()}return f=>l.some(u=>u(f))}}function Fr(t){return!!t&&!!t.match(/[\w\.:]+/)}function Ui(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;let r=n[0];return n=e.exec(t),r}}}function ts(t){typeof t.dispose=="function"&&t.dispose()}var Je=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},ji=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Wi=class{constructor(){y(this,"_references",[]);y(this,"_seenReferenceKeys",new Set);y(this,"visitedRule",new Set)}get references(){return this._references}add(t){let e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},Hi=class{constructor(t,e){y(this,"seenFullScopeRequests",new Set);y(this,"seenPartialScopeRequests",new Set);y(this,"Q");this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Je(this.initialScopeName)]}processQueue(){let t=this.Q;this.Q=[];let e=new Wi;for(let n of t)zi(n,this.initialScopeName,this.repo,e);for(let n of e.references)if(n instanceof Je){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function zi(t,e,n,r){let s=n.lookup(t.scopeName);if(!s){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}let o=n.lookup(e);t instanceof Je?Ct({baseGrammar:o,selfGrammar:s},r):wn(t.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);let i=n.injections(t.scopeName);if(i)for(let a of i)r.add(new Je(a))}function wn(t,e,n){if(e.repository&&e.repository[t]){let r=e.repository[t];St([r],e,n)}}function Ct(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&St(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&St(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function St(t,e,n){for(let r of t){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let s=r.repository?qr({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&St(r.patterns,{...e,repository:s},n);let o=r.include;if(!o)continue;let i=ns(o);switch(i.kind){case 0:Ct({...e,selfGrammar:e.baseGrammar},n);break;case 1:Ct(e,n);break;case 2:wn(i.ruleName,{...e,repository:s},n);break;case 3:case 4:let a=i.scopeName===e.selfGrammar.scopeName?e.selfGrammar:i.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(a){let l={baseGrammar:e.baseGrammar,selfGrammar:a,repository:s};i.kind===4?wn(i.ruleName,l,n):Ct(l,n)}else i.kind===4?n.add(new ji(i.scopeName,i.ruleName)):n.add(new Je(i.scopeName));break}}}var Vi=class{constructor(){y(this,"kind",0)}},qi=class{constructor(){y(this,"kind",1)}},Xi=class{constructor(t){y(this,"kind",2);this.ruleName=t}},Ji=class{constructor(t){y(this,"kind",3);this.scopeName=t}},Qi=class{constructor(t,e){y(this,"kind",4);this.scopeName=t,this.ruleName=e}};function ns(t){if(t==="$base")return new Vi;if(t==="$self")return new qi;let e=t.indexOf("#");if(e===-1)return new Ji(t);if(e===0)return new Xi(t.substring(1));{let n=t.substring(0,e),r=t.substring(e+1);return new Qi(n,r)}}var Yi=/\\(\d+)/,Ur=/\\(\d+)/g,lf=Symbol("RuleId"),Zi=-1,rs=-2;var Ze=class{constructor(t,e,n,r){y(this,"$location");y(this,"id");y(this,"_nameIsCapturing");y(this,"_name");y(this,"_contentNameIsCapturing");y(this,"_contentName");this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=wt.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=wt.hasCaptures(this._contentName)}get debugName(){let t=this.$location?`${Xr(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:wt.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:wt.replaceCaptures(this._contentName,t,e)}},Ki=class extends Ze{constructor(e,n,r,s,o){super(e,n,r,s);y(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,r,s){throw new Error("Not supported!")}},ea=class extends Ze{constructor(e,n,r,s,o){super(e,n,r,null);y(this,"_match");y(this,"captures");y(this,"_cachedCompiledPatterns");this._match=new Qe(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,s){return this._getCachedCompiledPatterns(e).compileAG(e,r,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ye,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},jr=class extends Ze{constructor(e,n,r,s,o){super(e,n,r,s);y(this,"hasMissingPatterns");y(this,"patterns");y(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(let r of this.patterns)e.getRule(r).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,s){return this._getCachedCompiledPatterns(e).compileAG(e,r,s)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ye,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},bn=class extends Ze{constructor(e,n,r,s,o,i,a,l,c,f){super(e,n,r,s);y(this,"_begin");y(this,"beginCaptures");y(this,"_end");y(this,"endHasBackReferences");y(this,"endCaptures");y(this,"applyEndPatternLast");y(this,"hasMissingPatterns");y(this,"patterns");y(this,"_cachedCompiledPatterns");this._begin=new Qe(o,this.id),this.beginCaptures=i,this._end=new Qe(a||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=f.patterns,this.hasMissingPatterns=f.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,r,s){return this._getCachedCompiledPatterns(e,n).compileAG(e,r,s)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ye;for(let r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},xt=class extends Ze{constructor(e,n,r,s,o,i,a,l,c){super(e,n,r,s);y(this,"_begin");y(this,"beginCaptures");y(this,"whileCaptures");y(this,"_while");y(this,"whileHasBackReferences");y(this,"hasMissingPatterns");y(this,"patterns");y(this,"_cachedCompiledPatterns");y(this,"_cachedCompiledWhilePatterns");this._begin=new Qe(o,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new Qe(a,rs),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,s){return this._getCachedCompiledPatterns(e).compileAG(e,r,s)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ye;for(let n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,r,s){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,r,s)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ye,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"\uFFFF"),this._cachedCompiledWhilePatterns}},ss=class F{static createCaptureRule(e,n,r,s,o){return e.registerRule(i=>new Ki(n,i,r,s,o))}static getCompiledRuleId(e,n,r){return e.id||n.registerRule(s=>{if(e.id=s,e.match)return new ea(e.$vscodeTextmateLocation,e.id,e.name,e.match,F._compileCaptures(e.captures,n,r));if(typeof e.begin>"u"){e.repository&&(r=qr({},r,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new jr(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,F._compilePatterns(o,n,r))}return e.while?new xt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,F._compileCaptures(e.beginCaptures||e.captures,n,r),e.while,F._compileCaptures(e.whileCaptures||e.captures,n,r),F._compilePatterns(e.patterns,n,r)):new bn(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,F._compileCaptures(e.beginCaptures||e.captures,n,r),e.end,F._compileCaptures(e.endCaptures||e.captures,n,r),e.applyEndPatternLast,F._compilePatterns(e.patterns,n,r))}),e.id}static _compileCaptures(e,n,r){let s=[];if(e){let o=0;for(let i in e){if(i==="$vscodeTextmateLocation")continue;let a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)s[i]=null;for(let i in e){if(i==="$vscodeTextmateLocation")continue;let a=parseInt(i,10),l=0;e[i].patterns&&(l=F.getCompiledRuleId(e[i],n,r)),s[a]=F.createCaptureRule(n,e[i].$vscodeTextmateLocation,e[i].name,e[i].contentName,l)}}return s}static _compilePatterns(e,n,r){let s=[];if(e)for(let o=0,i=e.length;o<i;o++){let a=e[o],l=-1;if(a.include){let c=ns(a.include);switch(c.kind){case 0:case 1:l=F.getCompiledRuleId(r[a.include],n,r);break;case 2:let f=r[c.ruleName];f&&(l=F.getCompiledRuleId(f,n,r));break;case 3:case 4:let u=c.scopeName,d=c.kind===4?c.ruleName:null,h=n.getExternalGrammar(u,r);if(h)if(d){let p=h.repository[d];p&&(l=F.getCompiledRuleId(p,n,h.repository))}else l=F.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=F.getCompiledRuleId(a,n,r);if(l!==-1){let c=n.getRule(l),f=!1;if((c instanceof jr||c instanceof bn||c instanceof xt)&&c.hasMissingPatterns&&c.patterns.length===0&&(f=!0),f)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(e?e.length:0)!==s.length}}},Qe=class os{constructor(e,n){y(this,"source");y(this,"ruleId");y(this,"hasAnchor");y(this,"hasBackReferences");y(this,"_anchorCache");if(e&&typeof e=="string"){let r=e.length,s=0,o=[],i=!1;for(let a=0;a<r;a++)if(e.charAt(a)==="\\"&&a+1<r){let c=e.charAt(a+1);c==="z"?(o.push(e.substring(s,a)),o.push("$(?!\\n)(?<!\\n)"),s=a+2):(c==="A"||c==="G")&&(i=!0),a++}this.hasAnchor=i,s===0?this.source=e:(o.push(e.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=Yi.test(this.source):this.hasBackReferences=!1}clone(){return new os(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>e.substring(s.start,s.end));return Ur.lastIndex=0,this.source.replace(Ur,(s,o)=>Yr(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],r=[],s=[],o,i,a,l;for(o=0,i=this.source.length;o<i;o++)a=this.source.charAt(o),e[o]=a,n[o]=a,r[o]=a,s[o]=a,a==="\\"&&o+1<i&&(l=this.source.charAt(o+1),l==="A"?(e[o+1]="\uFFFF",n[o+1]="\uFFFF",r[o+1]="A",s[o+1]="A"):l==="G"?(e[o+1]="\uFFFF",n[o+1]="G",r[o+1]="\uFFFF",s[o+1]="G"):(e[o+1]=l,n[o+1]=l,r[o+1]=l,s[o+1]=l),o++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ye=class{constructor(){y(this,"_items");y(this,"_hasAnchors");y(this,"_cached");y(this,"_anchorCache");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(n=>n.source);this._cached=new Wr(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let r=this._items.map(s=>s.resolveAnchors(e,n));return new Wr(t,r,this._items.map(s=>s.ruleId))}},Wr=class{constructor(t,e,n){y(this,"scanner");this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
2
+ `)}findNextMatchSync(t,e,n){let r=this.scanner.findNextMatchSync(t,e,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},gn=class{constructor(t,e){this.languageId=t,this.tokenType=e}},re,ta=(re=class{constructor(e,n){y(this,"_defaultAttributes");y(this,"_embeddedLanguagesMatcher");y(this,"_getBasicScopeAttributes",new Zr(e=>{let n=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new gn(n,r)}));this._defaultAttributes=new gn(e,8),this._embeddedLanguagesMatcher=new na(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?re._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let n=e.match(re.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[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!")}},y(re,"_NULL_SCOPE_METADATA",new gn(0,0)),y(re,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),re),na=class{constructor(t){y(this,"values");y(this,"scopesRegExp");if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);let e=t.map(([n,r])=>Yr(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;let e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},cf={InDebugMode:typeof process<"u"&&!!process.env.VSCODE_TEXTMATE_DEBUG},is=!1,Hr=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function as(t,e,n,r,s,o,i,a){let l=e.content.length,c=!1,f=-1;if(i){let h=ra(t,e,n,r,s,o);s=h.stack,r=h.linePos,n=h.isFirstLine,f=h.anchorPosition}let u=Date.now();for(;!c;){if(a!==0&&Date.now()-u>a)return new Hr(s,!0);d()}return new Hr(s,!1);function d(){let h=sa(t,e,n,r,s,f);if(!h){o.produce(s,l),c=!0;return}let p=h.captureIndices,b=h.matchedRuleId,_=p&&p.length>0?p[0].end>r:!1;if(b===Zi){let m=s.getRule(t);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),Ve(t,e,n,s,o,m.endCaptures,p),o.produce(s,p[0].end);let g=s;if(s=s.parent,f=g.getAnchorPos(),!_&&g.getEnterPos()===r){s=g,o.produce(s,l),c=!0;return}}else{let m=t.getRule(b);o.produce(s,p[0].start);let g=s,w=m.getName(e.content,p),S=s.contentNameScopesList.pushAttributed(w,t);if(s=s.push(b,r,f,p[0].end===l,null,S,S),m instanceof bn){let x=m;Ve(t,e,n,s,o,x.beginCaptures,p),o.produce(s,p[0].end),f=p[0].end;let E=x.getContentName(e.content,p),R=S.pushAttributed(E,t);if(s=s.withContentNameScopesList(R),x.endHasBackReferences&&(s=s.withEndRule(x.getEndWithResolvedBackReferences(e.content,p))),!_&&g.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(m instanceof xt){let x=m;Ve(t,e,n,s,o,x.beginCaptures,p),o.produce(s,p[0].end),f=p[0].end;let E=x.getContentName(e.content,p),R=S.pushAttributed(E,t);if(s=s.withContentNameScopesList(R),x.whileHasBackReferences&&(s=s.withEndRule(x.getWhileWithResolvedBackReferences(e.content,p))),!_&&g.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(Ve(t,e,n,s,o,m.captures,p),o.produce(s,p[0].end),s=s.pop(),!_){s=s.safePop(),o.produce(s,l),c=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function ra(t,e,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1,a=[];for(let l=s;l;l=l.pop()){let c=l.getRule(t);c instanceof xt&&a.push({rule:c,stack:l})}for(let l=a.pop();l;l=a.pop()){let{ruleScanner:c,findOptions:f}=aa(l.rule,t,l.stack.endRule,n,r===i),u=c.findNextMatchSync(e,r,f);if(u){if(u.ruleId!==rs){s=l.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(o.produce(l.stack,u.captureIndices[0].start),Ve(t,e,n,l.stack,o,l.rule.whileCaptures,u.captureIndices),o.produce(l.stack,u.captureIndices[0].end),i=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:i,isFirstLine:n}}function sa(t,e,n,r,s,o){let i=oa(t,e,n,r,s,o),a=t.getInjections();if(a.length===0)return i;let l=ia(a,t,e,n,r,s,o);if(!l)return i;if(!i)return l;let c=i.captureIndices[0].start,f=l.captureIndices[0].start;return f<c||l.priorityMatch&&f===c?l:i}function oa(t,e,n,r,s,o){let i=s.getRule(t),{ruleScanner:a,findOptions:l}=ls(i,t,s.endRule,n,r===o),c=a.findNextMatchSync(e,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function ia(t,e,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,c,f=0,u=o.contentNameScopesList.getScopeNames();for(let d=0,h=t.length;d<h;d++){let p=t[d];if(!p.matcher(u))continue;let b=e.getRule(p.ruleId),{ruleScanner:_,findOptions:m}=ls(b,e,null,r,s===i),g=_.findNextMatchSync(n,s,m);if(!g)continue;let w=g.captureIndices[0].start;if(!(w>=a)&&(a=w,l=g.captureIndices,c=g.ruleId,f=p.priority,a===s))break}return l?{priorityMatch:f===-1,captureIndices:l,matchedRuleId:c}:null}function ls(t,e,n,r,s){if(is){let i=t.compile(e,n),a=cs(r,s);return{ruleScanner:i,findOptions:a}}return{ruleScanner:t.compileAG(e,n,r,s),findOptions:0}}function aa(t,e,n,r,s){if(is){let i=t.compileWhile(e,n),a=cs(r,s);return{ruleScanner:i,findOptions:a}}return{ruleScanner:t.compileWhileAG(e,n,r,s),findOptions:0}}function cs(t,e){let n=0;return t||(n|=1),e||(n|=4),n}function Ve(t,e,n,r,s,o,i){if(o.length===0)return;let a=e.content,l=Math.min(o.length,i.length),c=[],f=i[0].end;for(let u=0;u<l;u++){let d=o[u];if(d===null)continue;let h=i[u];if(h.length===0)continue;if(h.start>f)break;for(;c.length>0&&c[c.length-1].endPos<=h.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,h.start):s.produce(r,h.start),d.retokenizeCapturedWithRuleId){let b=d.getName(a,i),_=r.contentNameScopesList.pushAttributed(b,t),m=d.getContentName(a,i),g=_.pushAttributed(m,t),w=r.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,_,g),S=t.createOnigString(a.substring(0,h.end));as(t,S,n&&h.start===0,h.start,w,s,!1,0),ts(S);continue}let p=d.getName(a,i);if(p!==null){let _=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(p,t);c.push(new la(_,h.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var la=class{constructor(t,e){y(this,"scopes");y(this,"endPos");this.scopes=t,this.endPos=e}};function ca(t,e,n,r,s,o,i,a){return new fa(t,e,n,r,s,o,i,a)}function zr(t,e,n,r,s){let o=_t(e,kt),i=ss.getCompiledRuleId(n,r,s.repository);for(let a of o)t.push({debugSelector:e,matcher:a.matcher,ruleId:i,grammar:s,priority:a.priority})}function kt(t,e){if(e.length<t.length)return!1;let n=0;return t.every(r=>{for(let s=n;s<e.length;s++)if(ua(e[s],r))return n=s+1,!0;return!1})}function ua(t,e){if(!t)return!1;if(t===e)return!0;let n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var fa=class{constructor(t,e,n,r,s,o,i,a){y(this,"_rootId");y(this,"_lastRuleId");y(this,"_ruleId2desc");y(this,"_includedGrammars");y(this,"_grammarRepository");y(this,"_grammar");y(this,"_injections");y(this,"_basicScopeAttributesProvider");y(this,"_tokenTypeMatchers");if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new ta(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=Vr(e,null),this._injections=null,this._tokenTypeMatchers=[],s)for(let l of Object.keys(s)){let c=_t(l,kt);for(let f of c)this._tokenTypeMatchers.push({matcher:f.matcher,type:s[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(let 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(){let t={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},e=[],n=this._rootScopeName,r=t.lookup(n);if(r){let s=r.injections;if(s)for(let i in s)zr(e,i,s[i],this,r);let o=this._grammarRepository.injections(n);o&&o.forEach(i=>{let a=this.getExternalGrammar(i);if(a){let l=a.injectionSelector;l&&zr(e,l,a,this,a)}})}return e.sort((s,o)=>s.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){let e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){let n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=Vr(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){let r=this._tokenize(t,e,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(t,e,n=0){let r=this._tokenize(t,e,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(t,e,n,r){this._rootId===-1&&(this._rootId=ss.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!e||e===Cn.NULL){s=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),u=pe.set(0,c.languageId,c.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),d=this.getRule(this._rootId).getName(null,null),h;d?h=qe.createRootAndLookUpScopeName(d,u,this):h=qe.createRoot("unknown",u),e=new Cn(null,this._rootId,-1,-1,!1,null,h,h)}else s=!1,e.reset();t=t+`
3
+ `;let o=this.createOnigString(t),i=o.content.length,a=new da(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),l=as(this,o,s,0,e,a,!0,r);return ts(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Vr(t,e){return t=Ii(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 qe=class K{constructor(e,n,r){this.parent=e,this.scopePath=n,this.tokenAttributes=r}static fromExtension(e,n){let r=e,s=e?.scopePath??null;for(let o of n)s=pn.push(s,o.scopeNames),r=new K(r,s,o.encodedTokenAttributes);return r}static createRoot(e,n){return new K(null,new pn(null,e),n)}static createRootAndLookUpScopeName(e,n,r){let s=r.getMetadataForScope(e),o=new pn(null,e),i=r.themeProvider.themeMatch(o),a=K.mergeAttributes(n,s,i);return new K(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return K.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,r){let s=-1,o=0,i=0;return r!==null&&(s=r.fontStyle,o=r.foregroundId,i=r.backgroundId),pe.set(e,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return K._pushAttributed(this,e,n);let r=e.split(/ /g),s=this;for(let o of r)s=K._pushAttributed(s,o,n);return s}static _pushAttributed(e,n,r){let s=r.getMetadataForScope(n),o=e.scopePath.push(n),i=r.themeProvider.themeMatch(o),a=K.mergeAttributes(e.tokenAttributes,s,i);return new K(e,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let n=[],r=this;for(;r&&r!==e;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===e?n.reverse():void 0}},V,Cn=(V=class{constructor(e,n,r,s,o,i,a,l){y(this,"_stackElementBrand");y(this,"_enterPos");y(this,"_anchorPos");y(this,"depth");this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}equals(e){return e===null?!1:V._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?qe.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){V._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,r,s,o,i,a){return new V(this,e,n,r,s,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}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 V(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.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,n){let r=qe.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new V(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,qe.fromExtension(r,n.contentNameScopesList))}},y(V,"NULL",new V(null,0,0,0,!1,null,null,null)),V),ha=class{constructor(t,e){y(this,"balancedBracketScopes");y(this,"unbalancedBracketScopes");y(this,"allowAny",!1);this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):_t(n,kt).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>_t(n,kt).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(let e of this.unbalancedBracketScopes)if(e(t))return!1;for(let e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},da=class{constructor(t,e,n,r){y(this,"_emitBinaryTokens");y(this,"_lineText");y(this,"_tokens");y(this,"_binaryTokens");y(this,"_lastTokenEndIndex");y(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let r=t?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let o=t?.getScopeNames()??[];for(let i of this._tokenTypeOverrides)i.matcher(o)&&(r=pe.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=pe.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=e;return}let n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),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);let n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},pa=class{constructor(t,e){y(this,"_grammars",new Map);y(this,"_rawGrammars",new Map);y(this,"_injectionGrammars",new Map);y(this,"_theme");this._onigLib=e,this._theme=t}dispose(){for(let 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,n,r,s){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,ca(t,o,e,n,r,s,this,this._onigLib))}return this._grammars.get(t)}},us=class{constructor(t){y(this,"_options");y(this,"_syncRegistry");y(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new pa(Xe.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(Xe.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new ha(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,e,n,r,s){let o=new Hi(this._syncRegistry,t);for(;o.Q.length>0;)o.Q.map(i=>this._loadSingleGrammar(i.scopeName)),o.processQueue();return this._grammarForScopeName(t,e,n,r,s)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){let e=this._options.loadGrammar(t);if(e){let n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}addGrammar(t,e=[],n=0,r=null){return this._syncRegistry.addGrammar(t,e),this._grammarForScopeName(t.scopeName,n,r)}_grammarForScopeName(t,e=0,n=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(t,e,n,r,s)}},vt=Cn.NULL;function et(t,e){let n=typeof t=="string"?{}:{...t.colorReplacements},r=typeof t=="string"?t:t.name;for(let[s,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function se(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function gs(t){return Array.isArray(t)?t:[t]}async function Sn(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function tt(t){return!t||["plaintext","txt","text","plain"].includes(t)}function xn(t){return t==="ansi"||tt(t)}function nt(t){return t==="none"}function kn(t){return nt(t)}var ga=/(\r?\n)/g;function Be(t,e=!1){if(t.length===0)return[["",0]];let n=t.split(ga),r=0,s=[];for(let o=0;o<n.length;o+=2){let i=e?n[o]+(n[o+1]||""):n[o];s.push([i,r]),r+=n[o].length,r+=n[o+1]?.length||0}return s}var fs={light:"#333333",dark:"#bbbbbb"},hs={light:"#fffffe",dark:"#1e1e1e"},ds="__shiki_resolved";function Et(t){if(t?.[ds])return t;let e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||(e.type="dark"),e.colorReplacements={...e.colorReplacements},e.settings||(e.settings=[]);let{bg:n,fg:r}=e;if(!n||!r){let a=e.settings?e.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(r=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!r&&e?.colors?.["editor.foreground"]&&(r=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),r||(r=e.type==="light"?fs.light:fs.dark),n||(n=e.type==="light"?hs.light:hs.dark),e.fg=r,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let s=0,o=new Map;function i(a){if(o.has(a))return o.get(a);s+=1;let l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${l}`]?i(a):(o.set(a,l),l)}e.settings=e.settings.map(a=>{let l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),c=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!c)return a;let f={...a,settings:{...a.settings}};if(l){let u=i(a.settings.foreground);e.colorReplacements[u]=a.settings.foreground,f.settings.foreground=u}if(c){let u=i(a.settings.background);e.colorReplacements[u]=a.settings.background,f.settings.background=u}return f});for(let a of Object.keys(e.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!e.colors[a]?.startsWith("#")){let l=i(e.colors[a]);e.colorReplacements[l]=e.colors[a],e.colors[a]=l}return Object.defineProperty(e,ds,{enumerable:!1,writable:!1,value:!0}),e}async function ms(t){return[...new Set((await Promise.all(t.filter(e=>!xn(e)).map(async e=>await Sn(e).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function ys(t){return(await Promise.all(t.map(async e=>kn(e)?null:Et(await Sn(e))))).filter(e=>!!e)}function ws(t,e){if(!e)return t;if(e[t]){let n=new Set([t]);for(;e[t];){if(t=e[t],n.has(t))throw new T(`Circular alias \`${[...n].join(" -> ")} -> ${t}\``);n.add(t)}}return t}var ma=class extends us{constructor(e,n,r,s={}){super(e);y(this,"_resolver");y(this,"_themes");y(this,"_langs");y(this,"_alias");y(this,"_resolvedThemes",new Map);y(this,"_resolvedGrammars",new Map);y(this,"_langMap",new Map);y(this,"_langGraph",new Map);y(this,"_textmateThemeCache",new WeakMap);y(this,"_loadedThemesCache",null);y(this,"_loadedLanguagesCache",null);this._resolver=e,this._themes=n,this._langs=r,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let n=Et(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=Xe.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=ws(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let s=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(s.name=e.name,this._resolvedGrammars.set(e.name,s),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,n.size)for(let o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let s of e)this.resolveEmbeddedLanguages(s);let n=[...this._langGraph.entries()],r=n.filter(([s,o])=>!o);if(r.length){let s=n.filter(([o,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(a=>r.map(([l])=>l).includes(a)):!1).filter(o=>!r.includes(o));throw new T(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(let[s,o]of n)this._resolver.addLanguage(o);for(let[s,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let n=e.embeddedLanguages??e.embeddedLangs;if(n)for(let r of n)this._langGraph.set(r,this._langMap.get(r))}},ya=class{constructor(t,e){y(this,"_langs",new Map);y(this,"_scopeToLang",new Map);y(this,"_injections",new Map);y(this,"_onigLib");this._onigLib={createOnigScanner:n=>t.createScanner(n),createOnigString:n=>t.createString(n)},e.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(e=>{this._langs.set(e,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(t.scopeName)})}getInjections(t){let e=t.split("."),n=[];for(let r=1;r<=e.length;r++){let s=e.slice(0,r).join(".");n=[...n,...this._injections.get(s)||[]]}return n}},Ke=0;function vn(t){Ke+=1,t.warnings!==!1&&Ke>=10&&Ke%10===0&&console.warn(`[Shiki] ${Ke} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new T("`engine` option is required for synchronous mode");let n=(t.langs||[]).flat(1),r=(t.themes||[]).flat(1).map(Et),s=new ma(new ya(t.engine,n),r,n,t.langAlias),o;function i(g){return ws(g,t.langAlias)}function a(g){_();let w=s.getGrammar(typeof g=="string"?g:g.name);if(!w)throw new T(`Language \`${g}\` not found, you may need to load it first`);return w}function l(g){if(g==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();let w=s.getTheme(g);if(!w)throw new T(`Theme \`${g}\` not found, you may need to load it first`);return w}function c(g){_();let w=l(g);return o!==g&&(s.setTheme(w),o=g),{theme:w,colorMap:s.getColorMap()}}function f(){return _(),s.getLoadedThemes()}function u(){return _(),s.getLoadedLanguages()}function d(...g){_(),s.loadLanguages(g.flat(1))}async function h(...g){return d(await ms(g))}function p(...g){_();for(let w of g.flat(1))s.loadTheme(w)}async function b(...g){return _(),p(await ys(g))}function _(){if(e)throw new T("Shiki instance has been disposed")}function m(){e||(e=!0,s.dispose(),Ke-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:f,getLoadedLanguages:u,resolveLangAlias:i,loadLanguage:h,loadLanguageSync:d,loadTheme:b,loadThemeSync:p,dispose:m,[Symbol.dispose]:m}}async function En(t){t.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[e,n,r]=await Promise.all([ys(t.themes||[]),ms(t.langs||[]),t.engine]);return vn({...t,themes:e,langs:n,engine:r})}var bs=new WeakMap;function rt(t,e){bs.set(t,e)}function Ge(t){return bs.get(t)}var At=class Cs{constructor(...e){y(this,"_stacks",{});y(this,"lang");if(e.length===2){let[n,r]=e;this.lang=r,this._stacks=n}else{let[n,r,s]=e;this.lang=r,this._stacks={[s]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new Cs(Object.fromEntries(gs(n).map(r=>[r,vt])),e)}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return wa(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function wa(t){let e=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);let o=s?.nameScopesList?.scopeName;o&&e.push(o),s.parent&&r(s.parent)}return r(t),e}function ba(t,e){if(!(t instanceof At))throw new T("Invalid grammar state");return t.getInternalStack(e)}var Ca=/,/,_a=/ /;function An(t,e,n={}){let{theme:r=t.getLoadedThemes()[0]}=n;if(tt(t.resolveLangAlias(n.lang||"text"))||nt(r))return Be(e).map(a=>[{content:a[0],offset:a[1]}]);let{theme:s,colorMap:o}=t.setTheme(r),i=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==i.name)throw new T(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(s.name))throw new T(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Ss(e,i,s,o,n)}function _s(...t){if(t.length===2)return Ge(t[1]);let[e,n,r={}]=t,{lang:s="text",theme:o=e.getLoadedThemes()[0]}=r;if(tt(s)||nt(o))throw new T("Plain language does not have grammar state");if(s==="ansi")throw new T("ANSI language does not have grammar state");let{theme:i,colorMap:a}=e.setTheme(o),l=e.getLanguage(s);return new At(Tn(n,l,i,a,r).stateStack,l.name,i.name)}function Ss(t,e,n,r,s){let o=Tn(t,e,n,r,s),i=new At(o.stateStack,e.name,n.name);return rt(o.tokens,i),o.tokens}function Tn(t,e,n,r,s){let o=et(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500,includeExplanation:l=!1}=s,c=Be(t),f=s.grammarState?ba(s.grammarState,n.name)??vt:s.grammarContextCode!=null?Tn(s.grammarContextCode,e,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:vt,u=[],d=[];for(let h=0,p=c.length;h<p;h++){let[b,_]=c[h];if(b===""){u=[],d.push([]);continue}if(i>0&&b.length>=i){u=[],d.push([{content:b,offset:_,color:"",fontStyle:0}]);continue}let m,g,w;l&&l!=="tokenType"&&(m=e.tokenizeLine(b,f,a),g=m.tokens,w=0);let S=e.tokenizeLine2(b,f,a),x=S.tokens.length/2;for(let E=0;E<x;E++){let R=S.tokens[2*E],D=E+1<x?S.tokens[2*E+2]:b.length;if(R===D)continue;let Oe=S.tokens[2*E+1],rn=se(r[pe.getForeground(Oe)],o),sn=pe.getFontStyle(Oe),Y={content:b.substring(R,D),offset:_+R,color:rn,fontStyle:sn};if(l==="tokenType")Y.type=pe.getTokenType(Oe);else if(l){let xr=[];if(l!=="scopeName")for(let ne of n.settings){let $e;switch(typeof ne.scope){case"string":$e=ne.scope.split(Ca).map(on=>on.trim());break;case"object":$e=ne.scope;break;default:continue}xr.push({settings:ne,selectors:$e.map(on=>on.split(_a))})}Y.explanation=[];let kr=0;for(;R+kr<D;){let ne=g[w],$e=b.substring(ne.startIndex,ne.endIndex);kr+=$e.length,Y.explanation.push({content:$e,scopes:l==="scopeName"?Sa(ne.scopes):xa(xr,ne.scopes)}),w+=1}}u.push(Y)}d.push(u),u=[],f=S.ruleStack}return{tokens:d,stateStack:f}}function Sa(t){return t.map(e=>({scopeName:e}))}function xa(t,e){let n=[];for(let r=0,s=e.length;r<s;r++){let o=e[r];n[r]={scopeName:o,themeMatches:va(t,o,e.slice(0,r))}}return n}function ps(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function ka(t,e,n){if(!ps(t.at(-1),e))return!1;let r=t.length-2,s=n.length-1;for(;r>=0&&s>=0;)ps(t[r],n[s])&&(r-=1),s-=1;return r===-1}function va(t,e,n){let r=[];for(let{selectors:s,settings:o}of t)for(let i of s)if(ka(i,e,n)){r.push(o);break}return r}function Tt(t,e,n,r=An){let s=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),o=s.map(c=>{let f=r(t,e,{...n,theme:c.theme});return{tokens:f,state:Ge(f),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),i=Ea(...o.map(c=>c.tokens)),a=i[0].map((c,f)=>c.map((u,d)=>{let h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=u.explanation),i.forEach((p,b)=>{let{content:_,explanation:m,offset:g,...w}=p[f][d];h.variants[s[b].color]=w}),h})),l=o[0].state?new At(Object.fromEntries(o.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),o[0].state.lang):void 0;return l&&rt(a,l),a}function Ea(...t){let e=t.map(()=>[]),n=t.length;for(let r=0;r<t[0].length;r++){let s=t.map(l=>l[r]),o=e.map(()=>[]);e.forEach((l,c)=>l.push(o[c]));let i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){let l=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){let f=a[c];f.content.length===l?(o[c].push(f),i[c]+=1,a[c]=s[c][i[c]]):(o[c].push({...f,content:f.content.slice(0,l)}),a[c]={...f,content:f.content.slice(l),offset:f.offset+l})}}}return e}var xs=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];var oe=class{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}};oe.prototype.normal={};oe.prototype.property={};oe.prototype.space=void 0;function Rn(t,e){let n={},r={};for(let s of t)Object.assign(n,s.property),Object.assign(r,s.normal);return new oe(n,r,e)}function st(t){return t.toLowerCase()}var B=class{constructor(e,n){this.attribute=n,this.property=e}};B.prototype.attribute="";B.prototype.booleanish=!1;B.prototype.boolean=!1;B.prototype.commaOrSpaceSeparated=!1;B.prototype.commaSeparated=!1;B.prototype.defined=!1;B.prototype.mustUseProperty=!1;B.prototype.number=!1;B.prototype.overloadedBoolean=!1;B.prototype.property="";B.prototype.spaceSeparated=!1;B.prototype.space=void 0;var ot={};vr(ot,{boolean:()=>k,booleanish:()=>I,commaOrSpaceSeparated:()=>j,commaSeparated:()=>ie,number:()=>C,overloadedBoolean:()=>Rt,spaceSeparated:()=>A});var Aa=0,k=ke(),I=ke(),Rt=ke(),C=ke(),A=ke(),ie=ke(),j=ke();function ke(){return 2**++Aa}var In=Object.keys(ot),ve=class extends B{constructor(e,n,r,s){let o=-1;if(super(e,n),ks(this,"space",s),typeof r=="number")for(;++o<In.length;){let i=In[o];ks(this,In[o],(r&ot[i])===ot[i])}}};ve.prototype.defined=!0;function ks(t,e,n){n&&(t[e]=n)}function q(t){let e={},n={};for(let[r,s]of Object.entries(t.properties)){let o=new ve(r,t.transform(t.attributes||{},r),s,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),e[r]=o,n[st(r)]=r,n[st(o.attribute)]=r}return new oe(e,n,t.space)}var Nn=q({properties:{ariaActiveDescendant:null,ariaAtomic:I,ariaAutoComplete:null,ariaBusy:I,ariaChecked:I,ariaColCount:C,ariaColIndex:C,ariaColSpan:C,ariaControls:A,ariaCurrent:null,ariaDescribedBy:A,ariaDetails:null,ariaDisabled:I,ariaDropEffect:A,ariaErrorMessage:null,ariaExpanded:I,ariaFlowTo:A,ariaGrabbed:I,ariaHasPopup:null,ariaHidden:I,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:A,ariaLevel:C,ariaLive:null,ariaModal:I,ariaMultiLine:I,ariaMultiSelectable:I,ariaOrientation:null,ariaOwns:A,ariaPlaceholder:null,ariaPosInSet:C,ariaPressed:I,ariaReadOnly:I,ariaRelevant:null,ariaRequired:I,ariaRoleDescription:A,ariaRowCount:C,ariaRowIndex:C,ariaRowSpan:C,ariaSelected:I,ariaSetSize:C,ariaSort:null,ariaValueMax:C,ariaValueMin:C,ariaValueNow:C,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function It(t,e){return e in t?t[e]:e}function Nt(t,e){return It(t,e.toLowerCase())}var vs=q({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ie,acceptCharset:A,accessKey:A,action:null,allow:null,allowFullScreen:k,allowPaymentRequest:k,allowUserMedia:k,alpha:k,alt:null,as:null,async:k,autoCapitalize:null,autoComplete:A,autoFocus:k,autoPlay:k,blocking:A,capture:null,charSet:null,checked:k,cite:null,className:A,closedBy:null,colorSpace:null,cols:C,colSpan:C,command:null,commandFor:null,content:null,contentEditable:I,controls:k,controlsList:A,coords:C|ie,crossOrigin:null,data:null,dateTime:null,decoding:null,default:k,defer:k,dir:null,dirName:null,disabled:k,download:Rt,draggable:I,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:k,formTarget:null,headers:A,height:C,hidden:Rt,high:C,href:null,hrefLang:null,htmlFor:A,httpEquiv:A,id:null,imageSizes:null,imageSrcSet:null,inert:k,inputMode:null,integrity:null,is:null,isMap:k,itemId:null,itemProp:A,itemRef:A,itemScope:k,itemType:A,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:k,low:C,manifest:null,max:null,maxLength:C,media:null,method:null,min:null,minLength:C,multiple:k,muted:k,name:null,nonce:null,noModule:k,noValidate:k,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:k,optimum:C,pattern:null,ping:A,placeholder:null,playsInline:k,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:k,referrerPolicy:null,rel:A,required:k,reversed:k,rows:C,rowSpan:C,sandbox:A,scope:null,scoped:k,seamless:k,selected:k,shadowRootClonable:k,shadowRootCustomElementRegistry:k,shadowRootDelegatesFocus:k,shadowRootMode:null,shadowRootSerializable:k,shape:null,size:C,sizes:null,slot:null,span:C,spellCheck:I,src:null,srcDoc:null,srcLang:null,srcSet:null,start:C,step:null,style:null,tabIndex:C,target:null,title:null,translate:null,type:null,typeMustMatch:k,useMap:null,value:I,width:C,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:A,axis:null,background:null,bgColor:null,border:C,borderColor:null,bottomMargin:C,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:k,declare:k,event:null,face:null,frame:null,frameBorder:null,hSpace:C,leftMargin:C,link:null,longDesc:null,lowSrc:null,marginHeight:C,marginWidth:C,noResize:k,noHref:k,noShade:k,noWrap:k,object:null,profile:null,prompt:null,rev:null,rightMargin:C,rules:null,scheme:null,scrolling:I,standby:null,summary:null,text:null,topMargin:C,valueType:null,version:null,vAlign:null,vLink:null,vSpace:C,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:k,disablePictureInPicture:k,disableRemotePlayback:k,exportParts:ie,part:A,prefix:null,property:null,results:C,security:null,unselectable:null},space:"html",transform:Nt});var Es=q({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:j,accentHeight:C,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:C,amplitude:C,arabicForm:null,ascent:C,attributeName:null,attributeType:null,azimuth:C,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:C,by:null,calcMode:null,capHeight:C,className:A,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:C,diffuseConstant:C,direction:null,display:null,dur:null,divisor:C,dominantBaseline:null,download:k,dx:null,dy:null,edgeMode:null,editable:null,elevation:C,enableBackground:null,end:null,event:null,exponent:C,externalResourcesRequired:null,fill:null,fillOpacity:C,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ie,g2:ie,glyphName:ie,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:C,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:C,horizOriginX:C,horizOriginY:C,id:null,ideographic:C,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:C,k:C,k1:C,k2:C,k3:C,k4:C,kernelMatrix:j,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:C,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:C,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:C,overlineThickness:C,paintOrder:null,panose1:null,path:null,pathLength:C,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:A,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:C,pointsAtY:C,pointsAtZ:C,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:j,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:j,rev:j,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:j,requiredFeatures:j,requiredFonts:j,requiredFormats:j,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:C,specularExponent:C,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:C,strikethroughThickness:C,string:null,stroke:null,strokeDashArray:j,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:C,strokeOpacity:C,strokeWidth:null,style:null,surfaceScale:C,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:j,tabIndex:C,tableValues:null,target:null,targetX:C,targetY:C,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:j,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:C,underlineThickness:C,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:C,values:null,vAlphabetic:C,vMathematical:C,vectorEffect:null,vHanging:C,vIdeographic:C,version:null,vertAdvY:C,vertOriginX:C,vertOriginY:C,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:C,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:It});var Ln=q({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}});var Pn=q({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Nt});var Mn=q({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}});var Ta={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Ra=/[A-Z]/g,As=/-[a-z]/g,Ia=/^data[-\w.:]+$/i;function On(t,e){let n=st(e),r=e,s=B;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ia.test(e)){if(e.charAt(4)==="-"){let o=e.slice(5).replace(As,La);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=e.slice(4);if(!As.test(o)){let i=o.replace(Ra,Na);i.charAt(0)!=="-"&&(i="-"+i),e="data"+i}}s=ve}return new s(r,e)}function Na(t){return"-"+t.toLowerCase()}function La(t){return t.charAt(1).toUpperCase()}var Ts=Rn([Nn,vs,Ln,Pn,Mn],"html"),Lt=Rn([Nn,Es,Ln,Pn,Mn],"svg");var Rs={}.hasOwnProperty;function Is(t,e){let n=e||{};function r(s,...o){let i=r.invalid,a=r.handlers;if(s&&Rs.call(s,t)){let l=String(s[t]);i=Rs.call(a,l)?a[l]:r.unknown}if(i)return i.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Pa=/["&'<>`]/g,Ma=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Oa=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,$a=/[|\\{}()[\]^$+*?.]/g,Ns=new WeakMap;function Ls(t,e){if(t=t.replace(e.subset?Ba(e.subset):Pa,r),e.subset||e.escapeOnly)return t;return t.replace(Ma,n).replace(Oa,r);function n(s,o,i){return e.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),e)}function r(s,o,i){return e.format(s.charCodeAt(0),i.charCodeAt(o+1),e)}}function Ba(t){let e=Ns.get(t);return e||(e=Ga(t),Ns.set(t,e)),e}function Ga(t){let e=[],n=-1;for(;++n<t.length;)e.push(t[n].replace($a,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}var Da=/[\dA-Fa-f]/;function Ps(t,e,n){let r="&#x"+t.toString(16).toUpperCase();return n&&e&&!Da.test(String.fromCharCode(e))?r:r+";"}var Fa=/\d/;function Ms(t,e,n){let r="&#"+String(t);return n&&e&&!Fa.test(String.fromCharCode(e))?r:r+";"}var Os=["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"];var Pt={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var $s=["cent","copy","divide","gt","lt","not","para","times"];var Bs={}.hasOwnProperty,$n={},Mt;for(Mt in Pt)Bs.call(Pt,Mt)&&($n[Pt[Mt]]=Mt);var Ua=/[^\dA-Za-z]/;function Gs(t,e,n,r){let s=String.fromCharCode(t);if(Bs.call($n,s)){let o=$n[s],i="&"+o;return n&&Os.includes(o)&&!$s.includes(o)&&(!r||e&&e!==61&&Ua.test(String.fromCharCode(e)))?i:i+";"}return""}function Ds(t,e,n){let r=Ps(t,e,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=Gs(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){let o=Ms(t,e,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function ae(t,e){return Ls(t,Object.assign({format:Ds},e))}var ja=/^>|^->|<!--|-->|--!>|<!-$/g,Wa=[">"],Ha=["<",">"];function Fs(t,e,n,r){return r.settings.bogusComments?"<?"+ae(t.value,Object.assign({},r.settings.characterReferences,{subset:Wa}))+">":"<!--"+t.value.replace(ja,s)+"-->";function s(o){return ae(o,Object.assign({},r.settings.characterReferences,{subset:Ha}))}}function Us(t,e,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Bn(t,e){let n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(e);for(;s!==-1;)r++,s=n.indexOf(e,s+e.length);return r}function js(t,e){let n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Ws(t){return t.join(" ").trim()}var za=/[ \t\n\f\r]/g;function Ee(t){return typeof t=="object"?t.type==="text"?Hs(t.value):!1:Hs(t)}function Hs(t){return t.replace(za,"")===""}var N=zs(1),Gn=zs(-1),Va=[];function zs(t){return e;function e(n,r,s){let o=n?n.children:Va,i=(r||0)+t,a=o[i];if(!s)for(;a&&Ee(a);)i+=t,a=o[i];return a}}var qa={}.hasOwnProperty;function Ot(t){return e;function e(n,r,s){return qa.call(t,n.tagName)&&t[n.tagName](n,r,s)}}var it=Ot({body:Ja,caption:Dn,colgroup:Dn,dd:Ka,dt:Za,head:Dn,html:Xa,li:Ya,optgroup:el,option:tl,p:Qa,rp:Vs,rt:Vs,tbody:rl,td:qs,tfoot:sl,th:qs,thead:nl,tr:ol});function Dn(t,e,n){let r=N(n,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ee(r.value.charAt(0)))}function Xa(t,e,n){let r=N(n,e);return!r||r.type!=="comment"}function Ja(t,e,n){let r=N(n,e);return!r||r.type!=="comment"}function Qa(t,e,n){let r=N(n,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function Ya(t,e,n){let r=N(n,e);return!r||r.type==="element"&&r.tagName==="li"}function Za(t,e,n){let r=N(n,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Ka(t,e,n){let r=N(n,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Vs(t,e,n){let r=N(n,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function el(t,e,n){let r=N(n,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function tl(t,e,n){let r=N(n,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function nl(t,e,n){let r=N(n,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function rl(t,e,n){let r=N(n,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function sl(t,e,n){return!N(n,e)}function ol(t,e,n){let r=N(n,e);return!r||r.type==="element"&&r.tagName==="tr"}function qs(t,e,n){let r=N(n,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}var Xs=Ot({body:ll,colgroup:cl,head:al,html:il,tbody:ul});function il(t){let e=N(t,-1);return!e||e.type!=="comment"}function al(t){let e=new Set;for(let r of t.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}let n=t.children[0];return!n||n.type==="element"}function ll(t){let e=N(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Ee(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function cl(t,e,n){let r=Gn(n,e),s=N(t,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&it(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function ul(t,e,n){let r=Gn(n,e),s=N(t,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&it(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}var $t={name:[[`
4
+ \f\r &/=>`.split(""),`
5
+ \f\r "&'/=>\``.split("")],[`\0
6
+ \f\r "&'/<=>`.split(""),`\0
7
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
8
+ \f\r &>`.split(""),`\0
9
+ \f\r "&'<=>\``.split("")],[`\0
10
+ \f\r "&'<=>\``.split(""),`\0
11
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Js(t,e,n,r){let s=r.schema,o=s.space==="svg"?!1:r.settings.omitOptionalTags,i=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(t.tagName.toLowerCase()),a=[],l;s.space==="html"&&t.tagName==="svg"&&(r.schema=Lt);let c=fl(r,t.properties),f=r.all(s.space==="html"&&t.tagName==="template"?t.content:t);return r.schema=s,f&&(i=!1),(c||!o||!Xs(t,e,n))&&(a.push("<",t.tagName,c?" "+c:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(f),!i&&(!o||!it(t,e,n))&&a.push("</"+t.tagName+">"),a.join("")}function fl(t,e){let n=[],r=-1,s;if(e){for(s in e)if(e[s]!==null&&e[s]!==void 0){let o=hl(t,s,e[s]);o&&n.push(o)}}for(;++r<n.length;){let o=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function hl(t,e,n){let r=On(t.schema,e),s=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1,i=t.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";let l=ae(r.attribute,Object.assign({},t.settings.characterReferences,{subset:$t.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?js:Ws)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?l:(t.settings.preferUnquoted&&(a=ae(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:$t.unquoted[s][o]}))),a!==n&&(t.settings.quoteSmart&&Bn(n,i)>Bn(n,t.alternative)&&(i=t.alternative),a=i+ae(n,Object.assign({},t.settings.characterReferences,{subset:(i==="'"?$t.single:$t.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}var dl=["<","&"];function Bt(t,e,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:ae(t.value,Object.assign({},r.settings.characterReferences,{subset:dl}))}function Qs(t,e,n,r){return r.settings.allowDangerousHtml?t.value:Bt(t,e,n,r)}function Ys(t,e,n,r){return r.all(t)}var Zs=Is("type",{invalid:pl,unknown:gl,handlers:{comment:Fs,doctype:Us,element:Js,raw:Qs,root:Ys,text:Bt}});function pl(t){throw new Error("Expected node, not `"+t+"`")}function gl(t){let e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}var ml={},yl={},wl=[];function Fn(t,e){let n=e||ml,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:bl,all:Cl,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||xs,characterReferences:n.characterReferences||yl,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Lt:Ts,quote:r,alternative:s}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function bl(t,e,n){return Zs(t,e,n,this)}function Cl(t){let e=[],n=t&&t.children||wl,r=-1;for(;++r<n.length;)e[r]=this.one(n[r],r,t);return e.join("")}var Ks=/\s+/g;function no(t,e){var r;if(!e)return t;t.properties||(t.properties={}),(r=t.properties).class||(r.class=[]),typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(Ks)),Array.isArray(t.properties.class)||(t.properties.class=[]);let n=Array.isArray(e)?e:e.split(Ks);for(let s of n)s&&!t.properties.class.includes(s)&&t.properties.class.push(s);return t}var _l=/:?lang=["']([^"']+)["']/g,Sl=/(?:```|~~~)([\w-]+)/g,xl=/\\begin\{([\w-]+)\}/g,kl=/<script\s+(?:type|lang)=["']([^"']+)["']/gi,vl=/^\s*---\r?\n[\s\S]*?\r?\n---(?:\r?\n|\s*$)/;function El(t){let e=Be(t,!0).map(([s])=>s);function n(s){if(s===t.length)return{line:e.length-1,character:e.at(-1).length};let o=s,i=0;for(let a of e){if(o<a.length)break;o-=a.length,i++}return{line:i,character:o}}function r(s,o){let i=0;for(let a=0;a<s;a++)i+=e[a].length;return i+=o,i}return{lines:e,indexToPos:n,posToIndex:r}}function cp(t,e,n){let r=new Set;for(let o of t.matchAll(_l)){let i=o[1].toLowerCase().trim();i&&r.add(i)}for(let o of t.matchAll(Sl)){let i=o[1].toLowerCase().trim();i&&r.add(i)}for(let o of t.matchAll(xl)){let i=o[1].toLowerCase().trim();i&&r.add(i)}for(let o of t.matchAll(kl)){let i=o[1].toLowerCase().trim(),a=i.includes("/")?i.split("/").pop():i;a&&r.add(a)}if(vl.test(t)&&r.add("yaml"),!n)return[...r];let s=n.getBundledLanguages();return[...r].filter(o=>o&&s[o])}var Al=["color","background-color"];function Tl(t,e){let n=0,r=[];for(let s of e)s>n&&r.push({...t,content:t.content.slice(n,s),offset:t.offset+n}),n=s;return n<t.content.length&&r.push({...t,content:t.content.slice(n),offset:t.offset+n}),r}function Rl(t,e){let n=0,r=t.length;for(;n<r;){let s=n+(r-n>>1);t[s]<=e?n=s+1:r=s}return n}function Il(t,e){let n=[...e instanceof Set?e:new Set(e)].sort((r,s)=>r-s);return n.length?t.map(r=>r.flatMap(s=>{let o=s.offset+s.content.length,i=Rl(n,s.offset),a=i;for(;a<n.length&&n[a]<o;)a++;if(i===a)return s;let l=n.slice(i,a);for(let c=0;c<l.length;c++)l[c]-=s.offset;return Tl(s,l)})):t}function Nl(t,e,n,r,s="css-vars"){let o={content:t.content,explanation:t.explanation,offset:t.offset},i=e.map(f=>Gt(t.variants[f])),a=new Set(i.flatMap(f=>Object.keys(f))),l={},c=(f,u)=>{let d=u==="color"?"":u==="background-color"?"-bg":`-${u}`;return n+e[f]+(u==="color"?"":d)};return i.forEach((f,u)=>{for(let d of a){let h=f[d]||"inherit";if(u===0&&r&&Al.includes(d))if(r==="light-dark()"&&i.length>1){let p=e.findIndex(g=>g==="light"),b=e.findIndex(g=>g==="dark");if(p===-1||b===-1)throw new T('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let _=i[p][d]||"inherit",m=i[b][d]||"inherit";l[d]=`light-dark(${_}, ${m})`,s==="css-vars"&&(l[c(u,d)]=h)}else l[d]=h;else s==="css-vars"&&(l[c(u,d)]=h)}}),o.htmlStyle=l,o}function Gt(t){let e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&G.Italic&&(e["font-style"]="italic"),t.fontStyle&G.Bold&&(e["font-weight"]="bold");let n=[];t.fontStyle&G.Underline&&n.push("underline"),t.fontStyle&G.Strikethrough&&n.push("line-through"),n.length&&(e["text-decoration"]=n.join(" "))}return e}function jn(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}function Ll(){let t=new WeakMap;function e(n){if(!t.has(n.meta)){let s=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new T(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...r.indexToPos(i),offset:i}}else{let a=r.lines[i.line];if(a===void 0)throw new T(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${r.lines.length}`);let l=i.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new T(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,character:l,offset:r.posToIndex(i.line,l)}}},r=El(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:s(i.start),end:s(i.end)}));Pl(o),t.set(n.meta,{decorations:o,converter:r,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(this.options.decorations?.length)return Il(n,e(this).decorations.flatMap(r=>[r.start.offset,r.end.offset]))},code(n){if(!this.options.decorations?.length)return;let r=e(this),s=[...n.children].filter(f=>f.type==="element"&&f.tagName==="span");if(s.length!==r.converter.lines.length)throw new T(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(f,u,d,h){let p=s[f],b="",_=-1,m=-1;if(u===0&&(_=0),d===0&&(m=0),d===Number.POSITIVE_INFINITY&&(m=p.children.length),_===-1||m===-1)for(let w=0;w<p.children.length;w++)b+=ro(p.children[w]),_===-1&&b.length===u&&(_=w+1),m===-1&&b.length===d&&(m=w+1);if(_===-1)throw new T(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(m===-1)throw new T(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);let g=p.children.slice(_,m);if(!h.alwaysWrap&&g.length===p.children.length)a(p,h,"line");else if(!h.alwaysWrap&&g.length===1&&g[0].type==="element")a(g[0],h,"token");else{let w={type:"element",tagName:"span",properties:{},children:g};a(w,h,"wrapper"),p.children.splice(_,g.length,w)}}function i(f,u){s[f]=a(s[f],u,"line")}function a(f,u,d){let h=u.properties||{},p=u.transform||(b=>b);return f.tagName=u.tagName||"span",f.properties={...f.properties,...h,class:f.properties.class},u.properties?.class&&no(f,u.properties.class),f=p(f,d)||f,f}let l=[],c=r.decorations.sort((f,u)=>u.start.offset-f.start.offset||f.end.offset-u.end.offset);for(let f of c){let{start:u,end:d}=f;if(u.line===d.line)o(u.line,u.character,d.character,f);else if(u.line<d.line){o(u.line,u.character,Number.POSITIVE_INFINITY,f);for(let h=u.line+1;h<d.line;h++)l.unshift(()=>i(h,f));o(d.line,0,d.character,f)}}l.forEach(f=>f())}}}function Pl(t){for(let e=0;e<t.length;e++){let n=t[e];if(n.start.offset>n.end.offset)throw new T(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=e+1;r<t.length;r++){let s=t[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,i=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||i||a||l){if(o&&i||a&&l||a&&n.start.offset===n.end.offset||i&&s.start.offset===s.end.offset)continue;throw new T(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function ro(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(ro).join(""):""}var Ml=[Ll()];function Dt(t){let e=Ol(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Ml]}function Ol(t){let e=[],n=[],r=[];for(let s of t)switch(s.enforce){case"pre":e.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:e,post:n,normal:r}}var Ae=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Un={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function $l(t,e){let n=t.indexOf("\x1B",e);if(n!==-1&&t[n+1]==="["){let r=t.indexOf("m",n);if(r!==-1)return{sequence:t.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:t.length}}function eo(t){let e=t.shift();if(e==="2"){let n=t.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(e==="5"){let n=t.shift();if(n)return{type:"table",index:Number(n)}}}function Bl(t){let e=[];for(;t.length>0;){let n=t.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)e.push({type:"resetAll"});else if(r<=9)Un[r]&&e.push({type:"setDecoration",value:Un[r]});else if(r<=29){let s=Un[r-20];s&&(e.push({type:"resetDecoration",value:s}),s==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Ae[r-30]}});else if(r===38){let s=eo(t);s&&e.push({type:"setForegroundColor",value:s})}else if(r===39)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Ae[r-40]}});else if(r===48){let s=eo(t);s&&e.push({type:"setBackgroundColor",value:s})}else r===49?e.push({type:"resetBackgroundColor"}):r===53?e.push({type:"setDecoration",value:"overline"}):r===55?e.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Ae[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Ae[r-100+8]}})}return e}function Gl(){let t=null,e=null,n=new Set;return{parse(r){let s=[],o=0;do{let i=$l(r,o),a=i.sequence?r.substring(o,i.startPosition):r.substring(o);if(a.length>0&&s.push({value:a,foreground:t,background:e,decorations:new Set(n)}),i.sequence){let l=Bl(i.sequence);for(let c of l)c.type==="resetAll"?(t=null,e=null,n.clear()):c.type==="resetForegroundColor"?t=null:c.type==="resetBackgroundColor"?e=null:c.type==="resetDecoration"&&n.delete(c.value);for(let c of l)c.type==="setForegroundColor"?t=c.value:c.type==="setBackgroundColor"?e=c.value:c.type==="setDecoration"&&n.add(c.value)}o=i.position}while(o<r.length);return s}}}var Dl={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Fl(t=Dl){function e(a){return t[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let c=0;c<Ae.length;c++)r.push(e(Ae[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let f=0;f<6;f++)for(let u=0;u<6;u++)r.push(n([a[c],a[f],a[u]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(a){return s()[a]}function i(a){switch(a.type){case"named":return e(a.name);case"rgb":return n(a.rgb);case"table":return o(a.index)}}return{value:i}}var Ul=/#([0-9a-f]{3,8})/i,jl=/var\((--[\w-]+-ansi-[\w-]+)\)/,Wl={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Hl(t,e,n){let r=et(t,n),s=Be(e),o=Fl(Object.fromEntries(Ae.map(a=>{let l=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`;return[a,t.colors?.[l]||Wl[a]]}))),i=Gl();return s.map(a=>i.parse(a[0]).map(l=>{let c,f;l.decorations.has("reverse")?(c=l.background?o.value(l.background):t.bg,f=l.foreground?o.value(l.foreground):t.fg):(c=l.foreground?o.value(l.foreground):t.fg,f=l.background?o.value(l.background):void 0),c=se(c,r),f=se(f,r),l.decorations.has("dim")&&(c=zl(c));let u=G.None;return l.decorations.has("bold")&&(u|=G.Bold),l.decorations.has("italic")&&(u|=G.Italic),l.decorations.has("underline")&&(u|=G.Underline),l.decorations.has("strikethrough")&&(u|=G.Strikethrough),{content:l.value,offset:a[1],color:c,bgColor:f,fontStyle:u}}))}function zl(t){let e=t.match(Ul);if(e){let r=e[1];if(r.length===8){let s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){let s=r[0],o=r[1],i=r[2],a=r[3];return`#${s}${s}${o}${o}${i}${i}${Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0")}`}else if(r.length===3){let s=r[0],o=r[1],i=r[2];return`#${s}${s}${o}${o}${i}${i}80`}}}let n=t.match(jl);return n?`var(${n[1]}-dim)`:t}function Wn(t,e,n={}){let r=t.resolveLangAlias(n.lang||"text"),{theme:s=t.getLoadedThemes()[0]}=n;if(!tt(r)&&!nt(s)&&r==="ansi"){let{theme:o}=t.setTheme(s);return Hl(o,e,n)}return An(t,e,n)}function Ft(t,e,n){let r,s,o,i,a,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:f="--shiki-",colorsRendering:u="css-vars"}=n,d=Object.entries(n.themes).filter(m=>m[1]).map(m=>({color:m[0],theme:m[1]})).sort((m,g)=>m.color===c?-1:g.color===c?1:0);if(d.length===0)throw new T("`themes` option must not be empty");let h=Tt(t,e,n,Wn);if(l=Ge(h),c&&c!=="light-dark()"&&!d.some(m=>m.color===c))throw new T(`\`themes\` option must contain the defaultColor key \`${c}\``);let p=d.map(m=>t.getTheme(m.theme)),b=d.map(m=>m.color);o=h.map(m=>m.map(g=>Nl(g,b,f,c,u))),l&&rt(o,l);let _=d.map(m=>et(m.theme,n));s=to(d,p,_,f,c,"fg",u),r=to(d,p,_,f,c,"bg",u),i=`shiki-themes ${p.map(m=>m.name).join(" ")}`,a=c?void 0:[s,r].join(";")}else if("theme"in n){let c=et(n.theme,n);o=Wn(t,e,n);let f=t.getTheme(n.theme);r=se(f.bg,c),s=se(f.fg,c),i=f.name,l=Ge(o)}else throw new T("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function to(t,e,n,r,s,o,i){return t.map((a,l)=>{let c=se(e[l][o],n[l])||"inherit",f=`${r+a.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&s){if(s==="light-dark()"&&t.length>1){let u=t.findIndex(h=>h.color==="light"),d=t.findIndex(h=>h.color==="dark");if(u===-1||d===-1)throw new T('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${se(e[u][o],n[u])||"inherit"}, ${se(e[d][o],n[d])||"inherit"});${f}`}return c}return i==="css-vars"?f:null}).filter(a=>!!a).join(";")}var so=/^\s+$/,Vl=/^(\s*)(.*?)(\s*)$/;function Ut(t,e,n,r={meta:{},options:n,codeToHast:(s,o)=>Ut(t,s,o),codeToTokens:(s,o)=>Ft(t,s,o)}){let s=e;for(let p of Dt(n))s=p.preprocess?.call(r,s,n)||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:c,grammarState:f}=Ft(t,s,n),{mergeWhitespaces:u=!0,mergeSameStyleTokens:d=!1}=n;u===!0?o=Xl(o):u==="never"&&(o=Jl(o)),d&&(o=Ql(o));let h={...r,get source(){return s}};for(let p of Dt(n))o=p.tokens?.call(h,o)||o;return ql(o,{...n,fg:i,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},h,f)}function ql(t,e,n,r=Ge(t)){let s=Dt(e),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=e,c={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?c.style=e.rootStyle:c.style=`background-color:${e.bg};color:${e.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(let[b,_]of Object.entries(e.meta||{}))b.startsWith("_")||(c[b]=_);let f={type:"element",tagName:"pre",properties:c,children:[],data:e.data},u={type:"element",tagName:"code",properties:{},children:o},d=[],h={...n,structure:a,addClassToHast:no,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return i},get pre(){return f},get code(){return u},get lines(){return d}};if(t.forEach((b,_)=>{_&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
12
+ `}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(let w of b){let S={type:"element",tagName:"span",properties:{...w.htmlAttrs},children:[{type:"text",value:w.content}]},x=jn(w.htmlStyle||Gt(w));x&&(S.properties.style=x);for(let E of s)S=E?.span?.call(h,S,_+1,g,m,w)||S;a==="inline"?i.children.push(S):a==="classic"&&m.children.push(S),g+=w.content.length}if(a==="classic"){for(let w of s)m=w?.line?.call(h,m,_+1)||m;d.push(m),o.push(m)}else a==="inline"&&d.push(m)}),a==="classic"){for(let b of s)u=b?.code?.call(h,u)||u;f.children.push(u);for(let b of s)f=b?.pre?.call(h,f)||f;i.children.push(f)}else if(a==="inline"){let b=[],_={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let g of i.children)g.type==="element"&&g.tagName==="br"?(b.push(_),_={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(g.type==="element"||g.type==="text")&&_.children.push(g);b.push(_);let m={type:"element",tagName:"code",properties:{},children:b};for(let g of s)m=g?.code?.call(h,m)||m;i.children=[];for(let g=0;g<m.children.length;g++){g>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});let w=m.children[g];w.type==="element"&&i.children.push(...w.children)}}let p=i;for(let b of s)p=b?.root?.call(h,p)||p;return r&&rt(p,r),p}function Xl(t){return t.map(e=>{let n=[],r="",s;return e.forEach((o,i)=>{let a=!(o.fontStyle&&(o.fontStyle&G.Underline||o.fontStyle&G.Strikethrough));a&&so.test(o.content)&&e[i+1]?(s===void 0&&(s=o.offset),r+=o.content):r?(a?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=void 0,r=""):n.push(o)}),n})}function Jl(t){return t.map(e=>e.flatMap(n=>{if(so.test(n.content))return n;let r=n.content.match(Vl);if(!r)return n;let[,s,o,i]=r;if(!s&&!i)return n;let a=[{...n,offset:n.offset+s.length,content:o}];return s&&a.unshift({content:s,offset:n.offset}),i&&a.push({content:i,offset:n.offset+s.length+o.length}),a}))}function Ql(t){return t.map(e=>{let n=[];for(let r of e){if(n.length===0){n.push({...r});continue}let s=n.at(-1),o=jn(s.htmlStyle||Gt(s)),i=jn(r.htmlStyle||Gt(r)),a=s.fontStyle&&(s.fontStyle&G.Underline||s.fontStyle&G.Strikethrough),l=r.fontStyle&&(r.fontStyle&G.Underline||r.fontStyle&G.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}var Yl=Fn;function Zl(t,e,n){let r={meta:{},options:n,codeToHast:(o,i)=>Ut(t,o,i),codeToTokens:(o,i)=>Ft(t,o,i)},s=Yl(Ut(t,e,n,r));for(let o of Dt(n))s=o.postprocess?.call(r,s,n)||s;return s}async function Kl(t){let e=await En(t);return{getLastGrammarState:(...n)=>_s(e,...n),codeToTokensBase:(n,r)=>Wn(e,n,r),codeToTokensWithThemes:(n,r)=>Tt(e,n,r),codeToTokens:(n,r)=>Ft(e,n,r),codeToHast:(n,r)=>Ut(e,n,r),codeToHtml:(n,r)=>Zl(e,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function up(t){let e=t.langs,n=t.themes,r=t.engine;async function s(o){function i(u){if(typeof u=="string"){if(u=o.langAlias?.[u]||u,xn(u))return[];let d=e[u];if(!d)throw new T(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return d}return u}function a(u){if(kn(u))return"none";if(typeof u=="string"){let d=n[u];if(!d)throw new T(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return d}return u}let l=(o.themes??[]).map(u=>a(u)),c=(o.langs??[]).map(u=>i(u)),f=await Kl({engine:o.engine??r(),...o,themes:l,langs:c});return{...f,loadLanguage(...u){return f.loadLanguage(...u.map(i))},loadTheme(...u){return f.loadTheme(...u.map(a))},getBundledLanguages(){return e},getBundledThemes(){return n}}}return s}function ec(t){let e;async function n(r={}){if(e){let s=await e;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}else{e=t({...r,themes:[],langs:[]});let s=await e;return await Promise.all([s.loadTheme(...r.themes||[]),s.loadLanguage(...r.langs||[])]),s}}return n}function fp(t,e){let n=ec(t);async function r(s,o){let i=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),a=await e?.guessEmbeddedLanguages?.(s,o.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(s){return n(s)},async codeToHtml(s,o){return(await r(s,o)).codeToHtml(s,o)},async codeToHast(s,o){return(await r(s,o)).codeToHast(s,o)},async codeToTokens(s,o){return(await r(s,o)).codeToTokens(s,o)},async codeToTokensBase(s,o){return(await r(s,o)).codeToTokensBase(s,o)},async codeToTokensWithThemes(s,o){return(await r(s,o)).codeToTokensWithThemes(s,o)},async getLastGrammarState(s,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(s,o)}}}var oo=class{constructor(t,e={}){y(this,"patterns");y(this,"options");y(this,"regexps");this.patterns=t,this.options=e;let{forgiving:n=!1,cache:r,regexConstructor:s}=e;if(!s)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(o=>{if(typeof o!="string")return o;let i=r?.get(o);if(i){if(i instanceof RegExp)return i;if(n)return null;throw i}try{let a=s(o);return r?.set(o,a),a}catch(a){if(r?.set(o,a),n)return null;throw a}})}findNextMatchSync(t,e,n){let r=typeof t=="string"?t:t.content,s=[];function o(i,a,l=0){return{index:i,captureIndices:a.indices.map(c=>c==null?{start:4294967295,end:4294967295,length:0}:{start:c[0]+l,end:c[1]+l,length:c[1]-c[0]})}}for(let i=0;i<this.regexps.length;i++){let a=this.regexps[i];if(a)try{a.lastIndex=e;let l=a.exec(r);if(!l)continue;if(l.index===e)return o(i,l,0);s.push([i,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(s.length){let i=Math.min(...s.map(a=>a[1].index));for(let[a,l,c]of s)if(l.index===i)return o(a,l,c)}return null}};function ge(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function io(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}var at=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),P=String.raw;function le(t,e){if(t==null)throw new Error(e??"Value expected");return t}var ho=P`\[\^?`,po=`c.? | C(?:-.?)?|${P`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${P`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${P`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${P`o\{[^\}]*\}?`}|${P`\d{1,3}`}`,zn=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,jt=new RegExp(P`
13
+ \\ (?:
14
+ ${po}
15
+ | [gk]<[^>]*>?
16
+ | [gk]'[^']*'?
17
+ | .
18
+ )
19
+ | \( (?:
20
+ \? (?:
21
+ [:=!>({]
22
+ | <[=!]
23
+ | <[^>]*>
24
+ | '[^']*'
25
+ | ~\|?
26
+ | #(?:[^)\\]|\\.?)*
27
+ | [^:)]*[:)]
28
+ )?
29
+ | \*[^\)]*\)?
30
+ )?
31
+ | (?:${zn.source})+
32
+ | ${ho}
33
+ | .
34
+ `.replace(/\s+/g,""),"gsu"),Hn=new RegExp(P`
35
+ \\ (?:
36
+ ${po}
37
+ | .
38
+ )
39
+ | \[:(?:\^?\p{Alpha}+|\^):\]
40
+ | ${ho}
41
+ | &&
42
+ | .
43
+ `.replace(/\s+/g,""),"gsu");function go(t,e={}){let n={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");let r=bc(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(u){s.push(u)},replaceCurrentModX(u){s[s.length-1]=u},singleline:n.rules.singleline},i=[],a;for(jt.lastIndex=0;a=jt.exec(t);){let u=tc(o,t,a[0],jt.lastIndex);u.tokens?i.push(...u.tokens):u.token&&i.push(u.token),u.lastIndex!==void 0&&(jt.lastIndex=u.lastIndex)}let l=[],c=0;i.filter(u=>u.type==="GroupOpen").forEach(u=>{u.kind==="capturing"?u.number=++c:u.raw==="("&&l.push(u)}),c||l.forEach((u,d)=>{u.kind="capturing",u.number=d+1});let f=c||l.length;return{tokens:i.map(u=>u.type==="EscapedNumber"?_c(u,f):u).flat(),flags:r}}function tc(t,e,n,r){let[s,o]=n;if(n==="["||n==="[^"){let i=nc(e,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:ao(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:hc(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:yo(n)}}if(o==="K")return{token:wo("keep",n)};if(o==="N"||o==="R")return{token:Te("newline",n,{negate:o==="N"})};if(o==="O")return{token:Te("any",n)};if(o==="X")return{token:Te("text_segment",n)};let i=mo(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:mc(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(e[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:gc(n,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,n==="("&&!t.captureGroup||n==="(?:")return{token:De("group",n)};if(n==="(?>")return{token:De("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:De(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&t.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:De("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:De("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:cc(n)}}if(t.getCurrentModX()){if(n==="#"){let i=e.indexOf(`
44
+ `,r);return{lastIndex:i===-1?e.length:i}}if(/^\s$/.test(n)){let i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(e)?i.lastIndex:r}}}if(n===".")return{token:Te("dot",n)};if(n==="^"||n==="$"){let i=t.singleline?{"^":P`\A`,$:P`\Z`}[n]:n;return{token:ao(i,n)}}return n==="|"?{token:sc(n)}:zn.test(n)?{tokens:Sc(n)}:{token:ce(ge(n),n)}}function nc(t,e,n){let r=[lo(e[1]==="^",e)],s=1,o;for(Hn.lastIndex=n;o=Hn.exec(t);){let i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(lo(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(ce(93,i));else if(s--,r.push(oc(i)),!s)break}else{let a=rc(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:Hn.lastIndex||t.length}}function rc(t){if(t[0]==="\\")return mo(t,{inCharClass:!0});if(t[0]==="["){let e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!at.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return Te("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?ic(t):t==="&&"?ac(t):ce(ge(t),t)}function mo(t,{inCharClass:e}){let n=t[1];if(n==="c"||n==="C")return pc(t);if("dDhHsSwW".includes(n))return yc(t);if(t.startsWith(P`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return wc(t)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(t))try{let r=t.split(/\\x/).slice(1).map(i=>parseInt(i,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...s].map(i=>{let a=[...o.encode(i)].map(l=>`\\x${l.toString(16)}`).join("");return ce(ge(i),a)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return ce(Cc(t),t);if(co.has(n))return ce(co.get(n),t);if(/\d/.test(n))return lc(e,t);if(t==="\\")throw new Error(P`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return ce(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function sc(t){return{type:"Alternator",raw:t}}function ao(t,e){return{type:"Assertion",kind:t,raw:e}}function yo(t){return{type:"Backreference",raw:t}}function ce(t,e){return{type:"Character",value:t,raw:e}}function oc(t){return{type:"CharacterClassClose",raw:t}}function ic(t){return{type:"CharacterClassHyphen",raw:t}}function ac(t){return{type:"CharacterClassIntersector",raw:t}}function lo(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function Te(t,e,n={}){return{type:"CharacterSet",kind:t,...n,raw:e}}function wo(t,e,n={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:le(n.flags),raw:e}}function lc(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function cc(t){return{type:"GroupClose",raw:t}}function De(t,e,n={}){return{type:"GroupOpen",kind:t,...n,raw:e}}function uc(t,e,n,r){return{type:"NamedCallout",kind:t,tag:e,arguments:n,raw:r}}function fc(t,e,n,r){return{type:"Quantifier",kind:t,min:e,max:n,raw:r}}function hc(t){return{type:"Subroutine",raw:t}}var dc=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),co=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function pc(t){let e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return ce(ge(e.toUpperCase())-64,t)}function gc(t,e){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;r??(r="");let s=(e.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=fo(n),i=fo(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),t.endsWith(")"))return e.replaceCurrentModX(s),wo("flags",t,{flags:a});if(t.endsWith(":"))return e.pushModX(s),e.numOpenGroups++,De("group",t,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${t}"`)}function mc(t){let e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);let{name:n,tag:r,args:s}=e.groups;if(!n)throw new Error(`Invalid named callout "${t}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);let o=s?s.split(",").filter(f=>f!=="").map(f=>/^[+-]?\d+$/.test(f)?+f:f):[],[i,a,l]=o,c=dc.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${a}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof a=="number"||!/^(?:[<>!=]=|[<>])$/.test(a))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${a}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return uc(c,r??null,s?.split(",")??null,t)}function uo(t){let e=null,n,r;if(t[0]==="{"){let{minStr:s,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,i=1e5;if(+s>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+s,r=o===void 0?+s:o===""?1/0:+o,n>r&&(e="possessive",[n,r]=[r,n]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else n=t[0]==="+"?1:0,r=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return fc(e,n,r,t)}function yc(t){let e=t[1].toLowerCase();return Te({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function wc(t){let{p:e,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return Te("property",t,{value:r,negate:e==="P"&&!n||e==="p"&&!!n})}function fo(t){let e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function bc(t){let e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<t.length;n++){let r=t[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(t.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[n+2]==="g"?"grapheme":"word",n+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return e}function Cc(t){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(t))throw new Error(`Incomplete or invalid escape "${t}"`);let e=t[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function _c(t,e){let{raw:n,inCharClass:r}=t,s=n.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=e))return[yo(n)];let o=[],i=s.match(/^[0-7]+|\d/g);for(let a=0;a<i.length;a++){let l=i[a],c;if(a===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(P`Octal encoded byte above 177 unsupported "${n}"`)}else c=ge(l);o.push(ce(c,(a===0?"\\":"")+l))}return o}function Sc(t){let e=[],n=new RegExp(zn,"gy"),r;for(;r=n.exec(t);){let s=r[0];if(s[0]==="{"){let o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(s);if(o){let{min:i,max:a}=o.groups;if(+i>+a&&s.endsWith("?")){n.lastIndex--,e.push(uo(s.slice(0,-1)));continue}}}e.push(uo(s))}return e}function Wt(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;let n=t.body[0];return!e||Object.keys(e).every(r=>e[r]===n[r])}function bo(t){return xc.has(t.type)}var xc=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function zt(t,e={}){let n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},r=go(t,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(d,h)=>{let p=r.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,p.type){case"Alternator":return ue();case"Assertion":return kc(p);case"Backreference":return vc(p,o);case"Character":return Fe(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return Ec(p,o,h);case"CharacterClassOpen":return Ac(p,o,h);case"CharacterSet":return Tc(p,o);case"Directive":return Mc(p.kind,{flags:p.flags});case"GroupOpen":return Rc(p,o,h);case"NamedCallout":return $c(p.kind,p.tag,p.arguments);case"Quantifier":return Ic(p,o);case"Subroutine":return Nc(p,o);default:throw new Error(`Unexpected token type "${p.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},i=Gc(Oc(r.flags)),a=i.body[0];for(;o.nextIndex<r.tokens.length;){let d=s(a,{});d.type==="Alternative"?(i.body.push(d),a=d):a.body.push(d)}let{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:f,subroutines:u}=o;if(c&&f.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:d}of u)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined");d&&(l[d-1].isSubroutined=!0)}else if(f.has(d)){if(f.get(d).length>1)throw new Error(P`Subroutine uses a duplicate group name "\g<${d}>"`);f.get(d)[0].isSubroutined=!0}else throw new Error(P`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function kc({kind:t}){return Vt(le({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[t],`Unexpected assertion kind "${t}"`),{negate:t===P`\B`||t===P`\Y`})}function vc({raw:t},e){let n=/^\\k[<']/.test(t),r=n?t.slice(3,-1):t.slice(1),s=(o,i=!1)=>{let a=e.capturingGroups.length,l=!1;if(o>a)if(e.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,Ht(i?a+1-o:o,{orphan:l})};if(n){let o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${t}"`);return Ht(r)}return s(+r)}function Ec(t,e,n){let{tokens:r,walk:s}=e,o=e.parent,i=o.body.at(-1),a=r[e.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&a&&a.type!=="CharacterClassOpen"&&a.type!=="CharacterClassClose"&&a.type!=="CharacterClassIntersector"){let l=s(o,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&l.type==="Character")return o.body.pop(),Pc(i,l);throw new Error("Invalid character class range")}return Fe(ge("-"))}function Ac({negate:t},e,n){let{tokens:r,walk:s}=e,o=[lt()],i=r[e.nextIndex],a=So(i);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")o.push(lt()),e.nextIndex++;else{let c=o.at(-1);c.body.push(s(c,n))}a=So(r[e.nextIndex],i)}let l=lt({negate:t});return o.length===1?l.body=o[0].body:(l.kind="intersection",l.body=o.map(c=>c.body.length===1?c.body[0]:c)),e.nextIndex++,l}function Tc({kind:t,negate:e,value:n},r){let{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(t==="property"){let a=Ue(n);if(at.has(a)&&!i?.has(a))t="posix",n=a;else return Re(n,{negate:e,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return t==="posix"?Bc(n,{negate:e}):qt(t,{negate:e})}function Rc(t,e,n){let{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=e,l=Dc(t),c=l.type==="AbsenceFunction",f=_o(l),u=f&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&io(o,l.name,[]).push(l)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=xo(r[e.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(ue()),e.nextIndex++;else{let h=l.body.at(-1),p=a(h,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||f,isInNegLookbehind:n.isInNegLookbehind||u});if(h.body.push(p),(f||n.isInLookbehind)&&!i){let b="Lookbehind includes a pattern not allowed by Oniguruma";if(u||n.isInNegLookbehind){if(Co(p)||p.type==="CapturingGroup")throw new Error(b)}else if(Co(p)||_o(p)&&p.negate)throw new Error(b)}}d=xo(r[e.nextIndex])}return e.nextIndex++,l}function Ic({kind:t,min:e,max:n},r){let s=r.parent,o=s.body.at(-1);if(!o||!bo(o))throw new Error("Quantifier requires a repeatable token");let i=qn(t,e,n,o);return s.body.pop(),i}function Nc({raw:t},e){let{capturingGroups:n,subroutines:r}=e,s=t.slice(3,-1),o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){let a=+o.groups.num,l=n.length;if(e.hasNumberedRef=!0,s={"":a,"+":l+a,"-":l+1-a}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);let i=Xn(s);return r.push(i),i}function Lc(t,e){if(t!=="repeater")throw new Error(`Unexpected absence function kind "${t}"`);return{type:"AbsenceFunction",kind:t,body:ct(e?.body)}}function ue(t){return{type:"Alternative",body:ko(t?.body)}}function Vt(t,e){let n={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(n.negate=!!e?.negate),n}function Ht(t,e){let n=!!e?.orphan;return{type:"Backreference",ref:t,...n&&{orphan:n}}}function Vn(t,e){let n={name:void 0,isSubroutined:!1,...e};if(n.name!==void 0&&!Fc(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:ct(e?.body)}}function Fe(t,e){let n={useLastValid:!1,...e};if(t>1114111){let r=t.toString(16);if(n.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:t}}function lt(t){let e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:ko(t?.body)}}function Pc(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function qt(t,e){let n=!!e?.negate,r={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(r.negate=n),(t==="text_segment"||t==="newline"&&!n)&&(r.variableLength=!0),r}function Mc(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:le(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function Oc(t){return{type:"Flags",...t}}function H(t){let e=t?.atomic,n=t?.flags;if(e&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...n&&{flags:n},body:ct(t?.body)}}function me(t){let e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:ct(t?.body)}}function $c(t,e,n){return{type:"NamedCallout",kind:t,tag:e,arguments:n}}function Bc(t,e){let n=!!e?.negate;if(!at.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:n}}function qn(t,e,n,r){if(e>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:n,body:r}}function Gc(t,e){return{type:"Regex",body:ct(e?.body),flags:t}}function Xn(t){return{type:"Subroutine",ref:t}}function Re(t,e){let n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e},r=n.unicodePropertyMap?.get(Ue(t));if(!r){if(n.normalizeUnknownPropertyNames)r=Uc(t);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(P`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:r??t,negate:n.negate}}function Dc({flags:t,kind:e,name:n,negate:r,number:s}){switch(e){case"absence_repeater":return Lc("repeater");case"atomic":return H({atomic:!0});case"capturing":return Vn(s,{name:n});case"group":return H({flags:t});case"lookahead":case"lookbehind":return me({behind:e==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${e}"`)}}function ct(t){if(t===void 0)t=[ue()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function ko(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function Co(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function _o(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function Fc(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function Uc(t){return t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function Ue(t){return t.replace(/[- _]+/g,"").toLowerCase()}function So(t,e){let n=e;return le(t,`Unclosed character class${n?.type==="Character"&&n.value===93&&n.raw==="]"?' (started with "]")':""}`)}function xo(t){return le(t,"Unclosed group")}function Ie(t,e,n=null){function r(o,i){for(let a=0;a<o.length;a++){let l=s(o[a],i,a,o);a=Math.max(-1,a+l)}}function s(o,i=null,a=null,l=null){let c=0,f=!1,u={node:o,parent:i,key:a,container:l,root:t,remove(){Xt(l).splice(Math.max(0,je(a)+c),1),c--,f=!0},removeAllNextSiblings(){return Xt(l).splice(je(a)+1)},removeAllPrevSiblings(){let m=je(a)+c;return c-=m,Xt(l).splice(0,Math.max(0,m))},replaceWith(m,g={}){let w=!!g.traverse;l?l[Math.max(0,je(a)+c)]=m:le(i,"Can't replace root node")[a]=m,w&&s(m,i,a,l),f=!0},replaceWithMultiple(m,g={}){let w=!!g.traverse;if(Xt(l).splice(Math.max(0,je(a)+c),1,...m),c+=m.length-1,w){let S=0;for(let x=0;x<m.length;x++)S+=s(m[x],i,je(a)+x+S,l)}f=!0},skip(){f=!0}},{type:d}=o,h=e["*"],p=e[d],b=typeof h=="function"?h:h?.enter,_=typeof p=="function"?p:p?.enter;if(b?.(u,n),_?.(u,n),!f)switch(d){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":s(o.min,o,"min"),s(o.max,o,"max");break;case"Quantifier":s(o.body,o,"body");break;case"Regex":r(o.body,o),s(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return p?.exit?.(u,n),h?.exit?.(u,n),c}return s(t),t}function Xt(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function je(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}var vo=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Eo(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function Ao(t,e,n,r){return t.slice(0,e)+r+t.slice(e+n.length)}var W=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ut(t,e,n,r){let s=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1],i=0,a="";for(let l of t.matchAll(s)){let{0:c,groups:{$skip:f}}=l;if(!f&&(!r||r===W.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?W.CHAR_CLASS:W.DEFAULT,negated:o[o.length-1]}):a+=n;continue}c[0]==="["?(i++,o.push(c[1]==="^")):c==="]"&&i&&(i--,o.pop()),a+=c}return a}function Jn(t,e,n,r){ut(t,e,n,r)}function jc(t,e,n=0,r){if(!new RegExp(e,"su").test(t))return null;let s=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=n;let o=0,i;for(;i=s.exec(t);){let{0:a,groups:{$skip:l}}=i;if(!l&&(!r||r===W.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function ft(t,e,n){return!!jc(t,e,0,n)}function To(t,e){let n=/\\?./gsu;n.lastIndex=e;let r=t.length,s=0,o=1,i;for(;i=n.exec(t);){let[a]=i;if(a==="[")s++;else if(s)a==="]"&&s--;else if(a==="(")o++;else if(a===")"&&(o--,!o)){r=i.index;break}}return t.slice(e,r)}var Ro=new RegExp(String.raw`(?<noncapturingStart>${vo})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Yn(t,e){let n=e?.hiddenCaptures??[],r=e?.captureTransfers??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:r,hiddenCaptures:n};let s="(?>",o="(?:(?=(",i=[0],a=[],l=0,c=0,f=NaN,u;do{u=!1;let d=0,h=0,p=!1,b;for(Ro.lastIndex=Number.isNaN(f)?0:f+o.length;b=Ro.exec(t);){let{0:_,index:m,groups:{capturingStart:g,noncapturingStart:w}}=b;if(_==="[")d++;else if(d)_==="]"&&d--;else if(_===s&&!p)f=m,p=!0;else if(p&&w)h++;else if(g)p?h++:(l++,i.push(l+c));else if(_===")"&&p){if(!h){c++;let S=l+c;if(t=`${t.slice(0,f)}${o}${t.slice(f+s.length,m)}))<$$${S}>)${t.slice(m+1)}`,u=!0,a.push(S),Eo(n,S),r.size){let x=new Map;r.forEach((E,R)=>{x.set(R>=S?R+1:R,E.map(D=>D>=S?D+1:D))}),r=x}break}h--}}}while(u);return n.push(...a),t=ut(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:p}})=>{if(h){let b=+h;if(b>i.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${i[b]}`}return`\\${p}`},W.DEFAULT),{pattern:t,captureTransfers:r,hiddenCaptures:n}}var Io=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Qn=new RegExp(String.raw`
45
+ \\(?: \d+
46
+ | c[A-Za-z]
47
+ | [gk]<[^>]+>
48
+ | [pPu]\{[^\}]+\}
49
+ | u[A-Fa-f\d]{4}
50
+ | x[A-Fa-f\d]{2}
51
+ )
52
+ | \((?: \? (?: [:=!>]
53
+ | <(?:[=!]|[^>]+>)
54
+ | [A-Za-z\-]+:
55
+ | \(DEFINE\)
56
+ ))?
57
+ | (?<qBase>${Io})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
58
+ | \\?.
59
+ `.replace(/\s+/g,""),"gsu");function Zn(t){if(!new RegExp(`${Io}\\+`).test(t))return{pattern:t};let e=[],n=null,r=null,s="",o=0,i;for(Qn.lastIndex=0;i=Qn.exec(t);){let{0:a,index:l,groups:{qBase:c,qMod:f,invalidQ:u}}=i;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(f==="+"&&s&&!s.startsWith("(")){if(u)throw new Error(`Invalid quantifier "${a}"`);let d=-1;if(/^\{\d+\}$/.test(c))t=Ao(t,l+c.length,f,"");else{if(s===")"||s==="]"){let h=s===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${s}"`);t=`${t.slice(0,h)}(?>${t.slice(h,l)}${c})${t.slice(l+a.length)}`}else t=`${t.slice(0,l-s.length)}(?>${s}${c})${t.slice(l+a.length)}`;d+=4}Qn.lastIndex+=d}else a[0]==="("?e.push(l):a===")"&&(n=e.length?e.pop():null);s=a}return{pattern:t}}var X=String.raw,Wc=X`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,er=X`\(\?R=(?<rDepth>[^\)]+)\)|${Wc}`,Jt=X`\(\?<(?![=!])(?<captureName>[^>]+)>`,Oo=X`${Jt}|(?<unnamed>\()(?!\?)`,Ne=new RegExp(X`${Jt}|${er}|\(\?|\\?.`,"gsu"),Kn="Cannot use multiple overlapping recursions";function $o(t,e){let{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...e},s=e?.captureTransfers??new Map;if(!new RegExp(er,"su").test(t))return{pattern:t,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&ft(t,X`\(\?\(DEFINE\)`,W.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let o=[],i=ft(t,X`\\[1-9]`,W.DEFAULT),a=new Map,l=[],c=!1,f=0,u=0,d;for(Ne.lastIndex=0;d=Ne.exec(t);){let{0:h,groups:{captureName:p,rDepth:b,gRNameOrNum:_,gRDepth:m}}=d;if(h==="[")f++;else if(f)h==="]"&&f--;else if(b){if(No(b),c)throw new Error(Kn);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let g=t.slice(0,d.index),w=t.slice(Ne.lastIndex);if(ft(w,er,W.DEFAULT))throw new Error(Kn);let S=+b-1;t=Lo(g,w,S,!1,n,o,u),s=Mo(s,g,S,o.length,0,u);break}else if(_){No(m);let g=!1;for(let Y of l)if(Y.name===_||Y.num===+_){if(g=!0,Y.hasRecursedWithin)throw new Error(Kn);break}if(!g)throw new Error(X`Recursive \g cannot be used outside the referenced group "${r==="external"?_:X`\g<${_}&R=${m}>`}"`);let w=a.get(_),S=To(t,w);if(i&&ft(S,X`${Jt}|\((?!\?)`,W.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let x=t.slice(w,d.index),E=S.slice(x.length+h.length),R=o.length,D=+m-1,Oe=Lo(x,E,D,!0,n,o,u);s=Mo(s,x,D,o.length-R,R,u);let rn=t.slice(0,w),sn=t.slice(w+S.length);t=`${rn}${Oe}${sn}`,Ne.lastIndex+=Oe.length-h.length-x.length-E.length,l.forEach(Y=>Y.hasRecursedWithin=!0),c=!0}else if(p)u++,a.set(String(u),Ne.lastIndex),a.set(p,Ne.lastIndex),l.push({num:u,name:p});else if(h[0]==="("){let g=h==="(";g&&(u++,a.set(String(u),Ne.lastIndex)),l.push(g?{num:u}:{})}else h===")"&&l.pop()}return n.push(...o),{pattern:t,captureTransfers:s,hiddenCaptures:n}}function No(t){let e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function Lo(t,e,n,r,s,o,i){let a=new Set;r&&Jn(t+e,Jt,({groups:{captureName:c}})=>{a.add(c)},W.DEFAULT);let l=[n,r?a:null,s,o,i];return`${t}${Po(`(?:${t}`,"forward",...l)}(?:)${Po(`${e})`,"backward",...l)}${e}`}function Po(t,e,n,r,s,o,i){let l=f=>e==="forward"?f+2:n-f+2-1,c="";for(let f=0;f<n;f++){let u=l(f);c+=ut(t,X`${Oo}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:b}})=>{if(b&&r&&!r.has(b))return d;let _=`_$${u}`;if(p||h){let m=i+o.length+1;return o.push(m),Hc(s,m),p?d:`(?<${h}${_}>`}return X`\k<${b}${_}>`},W.DEFAULT)}return c}function Hc(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function Mo(t,e,n,r,s,o){if(t.size&&r){let i=0;Jn(e,Oo,()=>i++,W.DEFAULT);let a=o-i+s,l=new Map;return t.forEach((c,f)=>{let u=(r-i*n)/n,d=i*n,h=f>a+i?f+r:f,p=[];for(let b of c)if(b<=a)p.push(b);else if(b>a+i+u)p.push(b+r);else if(b<=a+i)for(let _=0;_<=n;_++)p.push(b+i*_);else for(let _=0;_<=n;_++)p.push(b+d+u*_);l.set(h,p)}),l}return t}var O=String.fromCodePoint,v=String.raw,Q={},Yt=globalThis.RegExp;Q.flagGroups=(()=>{try{new Yt("(?i:)")}catch{return!1}return!0})();Q.unicodeSets=(()=>{try{new Yt("[[]]","v")}catch{return!1}return!0})();Q.bugFlagVLiteralHyphenIsRange=Q.unicodeSets?(()=>{try{new Yt(v`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Q.bugNestedClassIgnoresNegation=Q.unicodeSets&&new Yt("[[^a]]","v").test("a");function Qt(t,{enable:e,disable:n}){return{dotAll:!n?.dotAll&&!!(e?.dotAll||t.dotAll),ignoreCase:!n?.ignoreCase&&!!(e?.ignoreCase||t.ignoreCase)}}function ht(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}function or(t,e){return Bo[t]>=Bo[e]}function zc(t,e){if(t==null)throw new Error(e??"Value expected");return t}var Bo={ES2025:2025,ES2024:2024,ES2018:2018},Vc={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function jo(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");if(t.target!==void 0&&!Vc[t.target])throw new Error(`Unexpected target "${t.target}"`);let e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=Q.flagGroups?"ES2025":Q.unicodeSets?"ES2024":"ES2018"),e}var qc="[ -\r ]",Xc=new Set([O(304),O(305)]),fe=v`[\p{L}\p{M}\p{N}\p{Pc}]`;function Wo(t){if(Xc.has(t))return[t];let e=new Set,n=t.toLowerCase(),r=n.toUpperCase(),s=Yc.get(n),o=Jc.get(n),i=Qc.get(n);return[...r].length===1&&e.add(r),i&&e.add(i),s&&e.add(s),e.add(n),o&&e.add(o),[...e]}var ar=new Map(`C Other
60
+ Cc Control cntrl
61
+ Cf Format
62
+ Cn Unassigned
63
+ Co Private_Use
64
+ Cs Surrogate
65
+ L Letter
66
+ LC Cased_Letter
67
+ Ll Lowercase_Letter
68
+ Lm Modifier_Letter
69
+ Lo Other_Letter
70
+ Lt Titlecase_Letter
71
+ Lu Uppercase_Letter
72
+ M Mark Combining_Mark
73
+ Mc Spacing_Mark
74
+ Me Enclosing_Mark
75
+ Mn Nonspacing_Mark
76
+ N Number
77
+ Nd Decimal_Number digit
78
+ Nl Letter_Number
79
+ No Other_Number
80
+ P Punctuation punct
81
+ Pc Connector_Punctuation
82
+ Pd Dash_Punctuation
83
+ Pe Close_Punctuation
84
+ Pf Final_Punctuation
85
+ Pi Initial_Punctuation
86
+ Po Other_Punctuation
87
+ Ps Open_Punctuation
88
+ S Symbol
89
+ Sc Currency_Symbol
90
+ Sk Modifier_Symbol
91
+ Sm Math_Symbol
92
+ So Other_Symbol
93
+ Z Separator
94
+ Zl Line_Separator
95
+ Zp Paragraph_Separator
96
+ Zs Space_Separator
97
+ ASCII
98
+ ASCII_Hex_Digit AHex
99
+ Alphabetic Alpha
100
+ Any
101
+ Assigned
102
+ Bidi_Control Bidi_C
103
+ Bidi_Mirrored Bidi_M
104
+ Case_Ignorable CI
105
+ Cased
106
+ Changes_When_Casefolded CWCF
107
+ Changes_When_Casemapped CWCM
108
+ Changes_When_Lowercased CWL
109
+ Changes_When_NFKC_Casefolded CWKCF
110
+ Changes_When_Titlecased CWT
111
+ Changes_When_Uppercased CWU
112
+ Dash
113
+ Default_Ignorable_Code_Point DI
114
+ Deprecated Dep
115
+ Diacritic Dia
116
+ Emoji
117
+ Emoji_Component EComp
118
+ Emoji_Modifier EMod
119
+ Emoji_Modifier_Base EBase
120
+ Emoji_Presentation EPres
121
+ Extended_Pictographic ExtPict
122
+ Extender Ext
123
+ Grapheme_Base Gr_Base
124
+ Grapheme_Extend Gr_Ext
125
+ Hex_Digit Hex
126
+ IDS_Binary_Operator IDSB
127
+ IDS_Trinary_Operator IDST
128
+ ID_Continue IDC
129
+ ID_Start IDS
130
+ Ideographic Ideo
131
+ Join_Control Join_C
132
+ Logical_Order_Exception LOE
133
+ Lowercase Lower
134
+ Math
135
+ Noncharacter_Code_Point NChar
136
+ Pattern_Syntax Pat_Syn
137
+ Pattern_White_Space Pat_WS
138
+ Quotation_Mark QMark
139
+ Radical
140
+ Regional_Indicator RI
141
+ Sentence_Terminal STerm
142
+ Soft_Dotted SD
143
+ Terminal_Punctuation Term
144
+ Unified_Ideograph UIdeo
145
+ Uppercase Upper
146
+ Variation_Selector VS
147
+ White_Space space
148
+ XID_Continue XIDC
149
+ XID_Start XIDS`.split(/\s/).map(t=>[Ue(t),t])),Jc=new Map([["s",O(383)],[O(383),"s"]]),Qc=new Map([[O(223),O(7838)],[O(107),O(8490)],[O(229),O(8491)],[O(969),O(8486)]]),Yc=new Map([ye(453),ye(456),ye(459),ye(498),...tr(8072,8079),...tr(8088,8095),...tr(8104,8111),ye(8124),ye(8140),ye(8188)]),Zc=new Map([["alnum",v`[\p{Alpha}\p{Nd}]`],["alpha",v`\p{Alpha}`],["ascii",v`\p{ASCII}`],["blank",v`[\p{Zs}\t]`],["cntrl",v`\p{Cc}`],["digit",v`\p{Nd}`],["graph",v`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",v`\p{Lower}`],["print",v`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",v`[\p{P}\p{S}]`],["space",v`\p{space}`],["upper",v`\p{Upper}`],["word",v`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",v`\p{AHex}`]]);function Kc(t,e){let n=[];for(let r=t;r<=e;r++)n.push(r);return n}function ye(t){let e=O(t);return[e.toLowerCase(),e]}function tr(t,e){return Kc(t,e).map(n=>ye(n))}var Ho=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function eu(t,e){let n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};zo(t);let r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:or(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};Ie(t,tu,r);let s={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};Ie(t,nu,o);let i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Ie(t,ru,i),t._originMap=o.groupOriginByCopy,t._strategy=r.strategy,t}var tu={AbsenceFunction({node:t,parent:e,replaceWith:n}){let{body:r,kind:s}=t;if(s==="repeater"){let o=H();o.body[0].body.push(me({negate:!0,body:r}),Re("Any"));let i=H();i.body[0].body.push(qn("greedy",0,1/0,o)),n(L(i,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:n},{flagDirectivesByAlt:r}){let s=t.body.filter(o=>o.kind==="flags");for(let o=n+1;o<e.body.length;o++){let i=e.body[o];ht(r,i,[]).push(...s)}},exit({node:t},{flagDirectivesByAlt:e}){if(e.get(t)?.length){let n=qo(e.get(t));if(n){let r=H({flags:n});r.body[0].body=t.body,t.body=[L(r,t)]}}}},Assertion({node:t,parent:e,key:n,container:r,root:s,remove:o,replaceWith:i},a){let{kind:l,negate:c}=t,{asciiWordBoundaries:f,avoidSubclass:u,supportedGNodes:d,wordIsAscii:h}=a;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")i(L(me({body:[ue({body:[Vt("string_end")]}),ue({body:[Fe(10)]})]}),e));else if(l==="line_start")i(L(he(v`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(l==="search_start")if(d.has(t))s.flags.sticky=!0,o();else{let p=r[n-1];if(p&&cu(p))i(L(me({negate:!0}),e));else{if(u)throw new Error(v`Uses "\G" in a way that requires a subclass`);i(we(Vt("string_start"),e)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(L(he(v`(?=\n?\z)`),e));else if(l==="word_boundary"){if(!h&&!f){let p=`(?:(?<=${fe})(?!${fe})|(?<!${fe})(?=${fe}))`,b=`(?:(?<=${fe})(?=${fe})|(?<!${fe})(?!${fe}))`;i(L(he(c?b:p),e))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!rr(n)&&(n=nr(n,e),t.ref=n)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:n}){let{name:r}=t;r&&!rr(r)&&(r=nr(r,e),t.name=r),n.set(t.number,t),r&&n.set(r,t)},CharacterClassRange({node:t,parent:e,replaceWith:n}){if(e.kind==="intersection"){let r=lt({body:[t]});n(L(r,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:a}){let{kind:l,negate:c,value:f}=t;if(o&&(l==="digit"||f==="digit")){n(we(qt("digit",{negate:c}),e));return}if(i&&(l==="space"||f==="space")){n(L(sr(he(qc),c),e));return}if(a&&(l==="word"||f==="word")){n(we(qt("word",{negate:c}),e));return}if(l==="any")n(we(Re("Any"),e));else if(l==="digit")n(we(Re("Nd",{negate:c}),e));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(v`Use of "\X" requires non-strict accuracy`);let u="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=v`\p{RI}{2}|${u}(?:\u200D${u})*`;n(L(he(v`(?>\r\n|${s?v`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(l==="hex")n(we(Re("AHex",{negate:c}),e));else if(l==="newline")n(L(he(c?`[^
150
+ ]`:`(?>\r
151
+ ?|[
152
+ \v\f\x85\u2028\u2029])`),e));else if(l==="posix")if(!s&&(f==="graph"||f==="print")){if(r==="strict")throw new Error(`POSIX class "${f}" requires min target ES2024 or non-strict accuracy`);let u={graph:"!-~",print:" -~"}[f];c&&(u=`\0-${O(u.codePointAt(0)-1)}${O(u.codePointAt(2)+1)}-\u{10FFFF}`),n(L(he(`[${u}]`),e))}else n(L(sr(he(Zc.get(f)),c),e));else if(l==="property")ar.has(Ue(f))||(t.key="sc");else if(l==="space")n(we(Re("space",{negate:c}),e));else if(l==="word")n(L(sr(he(fe),c),e));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:t,parent:e,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:i}){let{kind:a,flags:l}=t;if(a==="flags")if(!l.enable&&!l.disable)r();else{let c=H({flags:l});c.body[0].body=i(),s(L(c,e),{traverse:!0})}else if(a==="keep"){let c=n.body[0],u=n.body.length===1&&Wt(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(e.parent!==u||u.body.length>1)throw new Error(v`Uses "\K" in a way that's unsupported`);let d=me({behind:!0});d.body[0].body=o(),s(L(d,e))}else throw new Error(`Unexpected directive kind "${a}"`)},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(n=>delete t[n]),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;let{enable:e,disable:n}=t.flags;e?.extended&&delete e.extended,n?.extended&&delete n.extended,e?.dotAll&&n?.dotAll&&delete e.dotAll,e?.ignoreCase&&n?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,n&&!Object.keys(n).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){let{kind:n}=t;n==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:n}){let{kind:r}=t;if(r==="fail")n(L(me({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){let e=H();e.body[0].body.push(t.body),t.body=L(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){let n=[],r=!1,s=!1;for(let o of t.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{let i=Jo(o.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):s=!0}r&&!s&&n.forEach(o=>e.add(o))},exit(t,{accuracy:e,passedLookbehind:n,strategy:r}){if(e==="strict"&&n&&r)throw new Error(v`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!rr(n)&&(n=nr(n,e),t.ref=n)}},nu={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:n}){let{orphan:r,ref:s}=t;r||n.set(t,[...e.get(s).map(({node:o})=>o)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:n,skip:r},{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:a,reffedNodesByReferencer:l}){let c=s.get(t);if(c&&a.has(t.number)){let u=we(Go(t.number),e);l.set(u,a.get(t.number)),n(u);return}a.set(t.number,t),i.set(t.number,[]),t.name&&ht(i,t.name,[]);let f=i.get(t.name??t.number);for(let u=0;u<f.length;u++){let d=f[u];if(c===d.node||c&&c===d.origin||t===d.origin){f.splice(u,1);break}}if(i.get(t.number).push({node:t,origin:c}),t.name&&i.get(t.name).push({node:t,origin:c}),t.name){let u=ht(o,t.name,new Map),d=!1;if(c)d=!0;else for(let h of u.values())if(!h.hasDuplicateNameToRemove){d=!0;break}o.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:d})}},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=Qt(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:n},r){let{isRecursive:s,ref:o}=t;if(s){let f=e;for(;(f=f.parent)&&!(f.type==="CapturingGroup"&&(f.name===o||f.number===o)););r.reffedNodesByReferencer.set(t,f);return}let i=r.subroutineRefMap.get(o),a=o===0,l=a?Go(0):Vo(i,r.groupOriginByCopy,null),c=l;if(!a){let f=qo(iu(i,d=>d.type==="Group"&&!!d.flags)),u=f?Qt(r.globalFlags,f):r.globalFlags;su(u,r.currentFlags)||(c=H({flags:au(u)}),c.body[0].body.push(l))}n(L(c,e),{traverse:!a})}},ru={Backreference({node:t,parent:e,replaceWith:n},r){if(t.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,t.ref);return}let o=r.reffedNodesByReferencer.get(t).filter(i=>ou(i,t));if(!o.length)n(L(me({negate:!0}),e));else if(o.length>1){let i=H({atomic:!0,body:o.reverse().map(a=>ue({body:[Ht(a.number)]}))});n(L(i,e))}else t.ref=o[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){let n=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let r=0;r<n;r++){let s=Vn();t.body.at(-1).body.push(s)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function zo(t){Ie(t,{"*"({node:e,parent:n}){e.parent=n}})}function su(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function ou(t,e){let n=e;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===t)return!1;let r=Xo(n.parent);for(let s of r){if(s===n)break;if(s===t||Qo(s,t))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Vo(t,e,n,r){let s=Array.isArray(t)?[]:{};for(let[o,i]of Object.entries(t))o==="parent"?s.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?s[o]=Vo(i,e,s,n):(o==="type"&&i==="CapturingGroup"&&e.set(s,e.get(t)??t),s[o]=i);return s}function Go(t){let e=Xn(t);return e.isRecursive=!0,e}function iu(t,e){let n=[];for(;t=t.parent;)(!e||e(t))&&n.push(t);return n}function nr(t,e){if(e.has(t))return e.get(t);let n=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,n),n}function qo(t){let e=["dotAll","ignoreCase"],n={enable:{},disable:{}};return t.forEach(({flags:r})=>{e.forEach(s=>{r.enable?.[s]&&(delete n.disable[s],n.enable[s]=!0),r.disable?.[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function au({dotAll:t,ignoreCase:e}){let n={};return(t||e)&&(n.enable={},t&&(n.enable.dotAll=!0),e&&(n.enable.ignoreCase=!0)),(!t||!e)&&(n.disable={},!t&&(n.disable.dotAll=!0),!e&&(n.disable.ignoreCase=!0)),n}function Xo(t){if(!t)throw new Error("Node expected");let{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function Jo(t){let e=t.find(n=>n.kind==="search_start"||uu(n,{negate:!1})||!lu(n));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"){let n=[];for(let r of e.body){let s=Jo(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function Qo(t,e){let n=Xo(t)??[];for(let r of n)if(r===e||Qo(r,e))return!0;return!1}function lu({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function cu(t){let e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function uu(t,e){let n={negate:null,...e};return t.type==="LookaroundAssertion"&&(n.negate===null||t.negate===n.negate)&&t.body.length===1&&Wt(t.body[0],{type:"Assertion",kind:"search_start"})}function rr(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function he(t,e){let r=zt(t,{...e,unicodePropertyMap:ar}).body;return r.length>1||r[0].body.length>1?H({body:r}):r[0].body[0]}function sr(t,e){return t.negate=e,t}function we(t,e){return t.parent=e,t}function L(t,e){return zo(t),t.parent=e,t}function fu(t,e){let n=jo(e),r=or(n.target,"ES2024"),s=or(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!s){let h=[t.flags.ignoreCase];Ie(t,hu,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(p){h.push(p)},setHasCasedChar(){h.at(-1)?i=!0:a=!0}})}let l={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||i)&&!a)},c=t,f={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:t._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&a),useFlagMods:s,useFlagV:r,verbose:n.verbose};function u(h){return f.lastNode=c,c=h,zc(du[h.type],`Unexpected node type "${h.type}"`)(h,f,u)}let d={pattern:t.body.map(u).join("|"),flags:u(t.flags),options:{...t.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],f.captureMap.forEach((h,p)=>{h.hidden&&d._hiddenCaptures.push(p),h.transferTo&&ht(d._captureTransfers,h.transferTo,[]).push(p)}),d}var hu={"*":{enter({node:t},e){if(Fo(t)){let n=e.getCurrentModI();e.pushModI(t.flags?Qt({ignoreCase:n},t.flags).ignoreCase:n)}},exit({node:t},e){Fo(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){lr(O(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},n){e(),Yo(t,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&Ho.has(t.value)&&e.setHasCasedChar()}},du={Alternative({body:t},e,n){return t.map(n).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?v`\B`:v`\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,n){let{body:r,name:s,number:o}=t,i={ignoreCase:e.currentFlags.ignoreCase},a=e.originMap.get(t);return a&&(i.hidden=!0,o>a.number&&(i.transferTo=a.number)),e.captureMap.set(o,i),`(${s?`?<${s}>`:""}${r.map(n).join("|")})`},Character({value:t},e){let n=O(t),r=We(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(r!==n)return r;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&lr(n)){let s=Wo(n);return e.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n},CharacterClass(t,e,n){let{kind:r,negate:s,parent:o}=t,{body:i}=t;if(r==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Q.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&i.some(Uo)&&(i=[Fe(45),...i.filter(c=>!Uo(c))]);let a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||Q.bugNestedClassIgnoresNegation)&&!s){let f=i.filter(u=>u.type==="CharacterClass"&&u.kind==="union"&&u.negate);if(f.length){let u=H(),d=u.body[0];return u.parent=o,d.parent=u,i=i.filter(h=>!f.includes(h)),t.body=i,i.length?(t.parent=d,d.body.push(t)):u.body.pop(),f.forEach(h=>{let p=ue({body:[h]});h.parent=p,p.parent=u,u.body.push(p)}),n(u)}}e.inCharClass=!0;let c=a();return e.inCharClass=!1,c}let l=i[0];if(r==="union"&&!s&&l&&((!e.useFlagV||!e.verbose)&&o.kind==="union"&&!(Q.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&o.kind==="intersection"&&i.length===1&&l.type!=="CharacterClassRange"))return i.map(n).join("");if(!e.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return a()},CharacterClassRange(t,e){let n=t.min.value,r=t.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},o=We(n,s),i=We(r,s),a=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){let l=Yo(t);wu(l).forEach(f=>{a.add(Array.isArray(f)?`${We(f[0],s)}-${We(f[1],s)}`:We(f,s))})}return`${o}-${i}${[...a].join("")}`},CharacterSet({kind:t,negate:e,value:n,key:r},s){if(t==="dot")return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":v`[^\n]`;if(t==="digit")return e?v`\D`:v`\d`;if(t==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&Ho.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${e?v`\P`:v`\p`}{${r?`${r}=`:""}${n}}`}if(t==="word")return e?v`\W`:v`\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:n,parent:r},s,o){let i=s.currentFlags;n&&(s.currentFlags=Qt(i,n));let a=e.map(o).join("|"),l=!s.verbose&&e.length===1&&r.type!=="Quantifier"&&!t&&(!s.useFlagMods||!n)?a:`(?${bu(t,n,s.useFlagMods)}${a})`;return s.currentFlags=i,l},LookaroundAssertion({body:t,kind:e,negate:n},r,s){return`(?${`${e==="lookahead"?"":"<"}${n?"!":"="}`}${t.map(s).join("|")})`},Quantifier(t,e,n){return n(t.body)+Cu(t)},Subroutine({isRecursive:t,ref:e},n){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");let r=n.recursionLimit;return e===0?`(?R=${r})`:v`\g<${e}&R=${r}>`}},pu=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),gu=new Set(["-","\\","]","^","["]),mu=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Do=new Map([[9,v`\t`],[10,v`\n`],[11,v`\v`],[12,v`\f`],[13,v`\r`],[8232,v`\u2028`],[8233,v`\u2029`],[65279,v`\uFEFF`]]),yu=/^\p{Cased}$/u;function lr(t){return yu.test(t)}function Yo(t,e){let n=!!e?.firstOnly,r=t.min.value,s=t.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let i=r;i<=s;i++){let a=O(i);if(!lr(a))continue;let l=Wo(a).filter(c=>{let f=c.codePointAt(0);return f<r||f>s});if(l.length&&(o.push(...l),n))break}return o}function We(t,{escDigit:e,inCharClass:n,useFlagV:r}){if(Do.has(t))return Do.get(t);if(t<32||t>126&&t<160||t>262143||e&&_u(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;let s=n?r?mu:gu:pu,o=O(t);return(s.has(o)?"\\":"")+o}function wu(t){let e=t.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[],r=null;for(let s=0;s<e.length;s++)e[s+1]===e[s]+1?r??(r=e[s]):r===null?n.push(e[s]):(n.push([r,e[s]]),r=null);return n}function bu(t,e,n){if(t)return">";let r="";if(e&&n){let{enable:s,disable:o}=e;r=(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function Cu({kind:t,max:e,min:n}){let r;return!n&&e===1?r="?":!n&&e===1/0?r="*":n===1&&e===1/0?r="+":n===e?r=`{${n}}`:r=`{${n},${e===1/0?"":e}}`,r+{greedy:"",lazy:"?",possessive:"+"}[t]}function Fo({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function _u(t){return t>47&&t<58}function Uo({type:t,value:e}){return t==="Character"&&e===45}var be,de,Le,Ce,Pe,dt,ir,_e,Su=(_e=class extends RegExp{constructor(n,r,s){var e=(...Qp)=>(super(...Qp),xe(this,dt),xe(this,be,new Map),xe(this,de,null),xe(this,Le),xe(this,Ce,null),xe(this,Pe,null),y(this,"rawOptions",{}),this);let o=!!s?.lazyCompile;if(n instanceof RegExp){if(s)throw new Error("Cannot provide options when copying a regexp");let i=n;e(i,r),J(this,Le,i.source),i instanceof _e&&(J(this,be,U(i,be)),J(this,Ce,U(i,Ce)),J(this,Pe,U(i,Pe)),this.rawOptions=i.rawOptions)}else{let i={hiddenCaptures:[],strategy:null,transfers:[],...s};e(o?"":n,r),J(this,Le,n),J(this,be,ku(i.hiddenCaptures,i.transfers)),J(this,Pe,i.strategy),this.rawOptions=s??{}}o||J(this,de,this)}get source(){return U(this,Le)||"(?:)"}exec(n){if(!U(this,de)){let{lazyCompile:o,...i}=this.rawOptions;J(this,de,new _e(U(this,Le),this.flags,i))}let r=this.global||this.sticky,s=this.lastIndex;if(U(this,Pe)==="clip_search"&&r&&s){this.lastIndex=0;let o=an(this,dt,ir).call(this,n.slice(s));return o&&(xu(o,s,n,this.hasIndices),this.lastIndex+=s),o}return an(this,dt,ir).call(this,n)}},be=new WeakMap,de=new WeakMap,Le=new WeakMap,Ce=new WeakMap,Pe=new WeakMap,dt=new WeakSet,ir=function(n){U(this,de).lastIndex=this.lastIndex;let r=Er(_e.prototype,this,"exec").call(U(this,de),n);if(this.lastIndex=U(this,de).lastIndex,!r||!U(this,be).size)return r;let s=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);let i=[0];for(let a=1;a<s.length;a++){let{hidden:l,transferTo:c}=U(this,be).get(a)??{};if(l?i.push(null):(i.push(r.length),r.push(s[a]),this.hasIndices&&r.indices.push(o[a])),c&&s[a]!==void 0){let f=i[c];if(!f)throw new Error(`Invalid capture transfer to "${f}"`);if(r[f]=s[a],this.hasIndices&&(r.indices[f]=o[a]),r.groups){U(this,Ce)||J(this,Ce,vu(this.source));let u=U(this,Ce).get(c);u&&(r.groups[u]=s[a],this.hasIndices&&(r.indices.groups[u]=o[a]))}}}return r},_e);function xu(t,e,n,r){if(t.index+=e,t.input=n,r){let s=t.indices;for(let i=0;i<s.length;i++){let a=s[i];a&&(s[i]=[a[0]+e,a[1]+e])}let o=s.groups;o&&Object.keys(o).forEach(i=>{let a=o[i];a&&(o[i]=[a[0]+e,a[1]+e])})}}function ku(t,e){let n=new Map;for(let r of t)n.set(r,{hidden:!0});for(let[r,s]of e)for(let o of s)ht(n,o,{}).transferTo=r;return n}function vu(t){let e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map,r=0,s=0,o;for(;o=e.exec(t);){let{0:i,groups:{capture:a,name:l}}=o;i==="["?r++:r?i==="]"&&r--:a&&(s++,l&&n.set(s,l))}return n}function Zo(t,e){let n=Eu(t,e);return n.options?new Su(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Eu(t,e){let n=jo(e),r=zt(t,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:ar}),s=eu(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=fu(s,n),i=$o(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=Zn(i.pattern),l=Yn(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),c={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{let f=l.hiddenCaptures.sort((p,b)=>p-b),u=Array.from(l.captureTransfers),d=s._strategy,h=c.pattern.length>=n.lazyCompileLength;(f.length||u.length||d||h)&&(c.options={...f.length&&{hiddenCaptures:f},...u.length&&{transfers:u},...d&&{strategy:d},...h&&{lazyCompile:h}})}return c}function Ko(t,e){return Zo(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function Au(t={}){let e={target:"auto",cache:new Map,...t};return e.regexConstructor||(e.regexConstructor=n=>Ko(n,{target:e.target})),{createScanner(n){return new oo(n,e)},createString(n){return{content:n}}}}var rg=Symbol("highlighted-lines");function sg(t={}){let{classPrefix:e="__shiki_",classSuffix:n="",classReplacer:r=a=>a}=t,s=new Map;function o(a){return Object.entries(a).map(([l,c])=>`${l}:${c}`).join(";")}function i(a){let l=typeof a=="string"?a:o(a),c=e+Tu(l)+n;return c=r(c),s.has(c)||s.set(c,typeof a=="string"?a:{...a}),c}return{name:"@shikijs/transformers:style-to-class",pre(a){if(!a.properties.style)return;let l=i(a.properties.style);delete a.properties.style,this.addClassToHast(a,l)},tokens(a){for(let l of a)for(let c of l){if(!c.htmlStyle)continue;let f=i(c.htmlStyle);c.htmlStyle={},c.htmlAttrs||(c.htmlAttrs={}),c.htmlAttrs.class?c.htmlAttrs.class+=` ${f}`:c.htmlAttrs.class=f}},getClassRegistry(){return s},getCSS(){let a="";for(let[l,c]of s.entries())a+=`.${l}{${typeof c=="string"?c:o(c)}}`;return a},clearRegistry(){s.clear()}}}function Tu(t,e=0){let n=3735928559^e,r=1103547991^e;for(let s=0,o;s<t.length;s++)o=t.charCodeAt(s),n=Math.imul(n^o,2654435761),r=Math.imul(r^o,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36).slice(0,6)}var Ru=/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i,Iu=/^0(?:\.0+)?%?$/;function Nu(t){let e=t.indexOf("(");if(e<=0||!t.endsWith(")"))return;let n=t.slice(0,e).trim();if(!/^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)$/i.test(n))return;let r=t.slice(e+1,-1).trim();if(r.length===0)return;let s=r.lastIndexOf("/");if(s!==-1)return r.slice(s+1).trim();if(/^(?:rgba|hsla)$/i.test(n)){let o=r.split(",");if(o.length===4)return o[3]?.trim()}}function Lu(t){let e=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})\b/i.exec(t.trim());if(e==null)return null;let n=e[1],r,s=1;return n.length===3?r=n.split("").map(o=>o+o).join(""):n.length===6?r=n:(r=n.slice(0,6),s=parseInt(n.slice(6,8),16)/255),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16),s]}function cr(t){if(t==null)return null;let e=Lu(t);if(e==null)return null;let n=e[0]/255,r=e[1]/255,s=e[2]/255,o=i=>i<=.03928?i/12.92:((i+.055)/1.055)**2.4;return .2126*o(n)+.7152*o(r)+.0722*o(s)}function ur(t){if(t==null)return!1;let e=t.trim().toLowerCase();if(e==="transparent"||Ru.test(e))return!0;let n=Nu(e);return n!=null&&Iu.test(n)}function ei(t,e,n){if(e==null||n==null)return!1;let r=cr(t),s=cr(e),o=cr(n);return r==null||s==null||o==null?!1:Math.abs(r-o)<Math.abs(r-s)}var ti=new WeakMap;function Pu(t){let e=ti.get(t);if(e!=null)return e;let n=t.colors??{},r={...n},s=n["editor.background"]??t.bg,o=n["editor.foreground"]??t.fg,i=n["sideBar.background"]??s,a=n["sideBar.foreground"]??o;ee(r,"editor.background",s),ee(r,"editor.foreground",o),ee(r,"sideBar.background",i),ee(r,"sideBar.foreground",a),ee(r,"input.background",n["input.background"]??i),ee(r,"sideBarSectionHeader.foreground",n["sideBarSectionHeader.foreground"]??a),ee(r,"list.activeSelectionForeground",n["list.activeSelectionForeground"]??a),ee(r,"gitDecoration.addedResourceForeground",fr(n["gitDecoration.addedResourceForeground"],n["terminal.ansiGreen"],n["editorGutter.addedBackground"])),ee(r,"gitDecoration.modifiedResourceForeground",fr(n["gitDecoration.modifiedResourceForeground"],n["terminal.ansiBlue"],n["editorGutter.modifiedBackground"])),ee(r,"gitDecoration.deletedResourceForeground",fr(n["gitDecoration.deletedResourceForeground"],n["terminal.ansiRed"],n["editorGutter.deletedBackground"]));let l=(ur(n["list.focusOutline"])?void 0:n["list.focusOutline"])??(ur(n.focusBorder)?void 0:n.focusBorder);l!=null?r["list.focusOutline"]=l:delete r["list.focusOutline"];let c=n["list.hoverBackground"];c!=null&&(Mu(c,i)||ei(c,i,a))&&delete r["list.hoverBackground"];let f=Object.freeze({...t,colors:Object.freeze(r)});return ti.set(t,f),f}function ee(t,e,n){n!=null&&n!==""&&(t[e]=n)}function fr(...t){for(let e of t)if(e!=null&&e!=="")return e}function Mu(t,e){return e!=null&&t.toLowerCase()===e.toLowerCase()}var te=class{diff(e,n,r={}){let s;typeof r=="function"?(s=r,r={}):"callback"in r&&(s=r.callback);let o=this.castInput(e,r),i=this.castInput(n,r),a=this.removeEmpty(this.tokenize(o,r)),l=this.removeEmpty(this.tokenize(i,r));return this.diffWithOptionsObj(a,l,r,s)}diffWithOptionsObj(e,n,r,s){var o;let i=g=>{if(g=this.postProcess(g,r),s){setTimeout(function(){s(g)},0);return}else return g},a=n.length,l=e.length,c=1,f=a+l;r.maxEditLength!=null&&(f=Math.min(f,r.maxEditLength));let u=(o=r.timeout)!==null&&o!==void 0?o:1/0,d=Date.now()+u,h=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(h[0],n,e,0,r);if(h[0].oldPos+1>=l&&p+1>=a)return i(this.buildValues(h[0].lastComponent,n,e));let b=-1/0,_=1/0,m=()=>{for(let g=Math.max(b,-c);g<=Math.min(_,c);g+=2){let w,S=h[g-1],x=h[g+1];S&&(h[g-1]=void 0);let E=!1;if(x){let D=x.oldPos-g;E=x&&0<=D&&D<a}let R=S&&S.oldPos+1<l;if(!E&&!R){h[g]=void 0;continue}if(!R||E&&S.oldPos<x.oldPos?w=this.addToPath(x,!0,!1,0,r):w=this.addToPath(S,!1,!0,1,r),p=this.extractCommon(w,n,e,g,r),w.oldPos+1>=l&&p+1>=a)return i(this.buildValues(w.lastComponent,n,e))||!0;h[g]=w,w.oldPos+1>=l&&(_=Math.min(_,g-1)),p+1>=a&&(b=Math.max(b,g+1))}c++};if(s)(function g(){setTimeout(function(){if(c>f||Date.now()>d)return s(void 0);m()||g()},0)})();else for(;c<=f&&Date.now()<=d;){let g=m();if(g)return g}}addToPath(e,n,r,s,o){let i=e.lastComponent;return i&&!o.oneChangePerToken&&i.added===n&&i.removed===r?{oldPos:e.oldPos+s,lastComponent:{count:i.count+1,added:n,removed:r,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+s,lastComponent:{count:1,added:n,removed:r,previousComponent:i}}}extractCommon(e,n,r,s,o){let i=n.length,a=r.length,l=e.oldPos,c=l-s,f=0;for(;c+1<i&&l+1<a&&this.equals(r[l+1],n[c+1],o);)c++,l++,f++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return f&&!o.oneChangePerToken&&(e.lastComponent={count:f,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,c}equals(e,n,r){return r.comparator?r.comparator(e,n):e===n||!!r.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){let n=[];for(let r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,r){let s=[],o;for(;e;)s.push(e),o=e.previousComponent,delete e.previousComponent,e=o;s.reverse();let i=s.length,a=0,l=0,c=0;for(;a<i;a++){let f=s[a];if(f.removed)f.value=this.join(r.slice(c,c+f.count)),c+=f.count;else{if(!f.added&&this.useLongestToken){let u=n.slice(l,l+f.count);u=u.map(function(d,h){let p=r[c+h];return p.length>d.length?p:d}),f.value=this.join(u)}else f.value=this.join(n.slice(l,l+f.count));l+=f.count,f.added||(c+=f.count)}}return s}};var hr=class extends te{},ni=new hr;function Ou(t,e,n){return ni.diff(t,e,n)}function dr(t,e){let n;for(n=0;n<t.length&&n<e.length;n++)if(t[n]!=e[n])return t.slice(0,n);return t.slice(0,n)}function pr(t,e){let n;if(!t||!e||t[t.length-1]!=e[e.length-1])return"";for(n=0;n<t.length&&n<e.length;n++)if(t[t.length-(n+1)]!=e[e.length-(n+1)])return t.slice(-n);return t.slice(-n)}function Zt(t,e,n){if(t.slice(0,e.length)!=e)throw Error(`string ${JSON.stringify(t)} doesn't start with prefix ${JSON.stringify(e)}; this is a bug`);return n+t.slice(e.length)}function Kt(t,e,n){if(!e)return t+n;if(t.slice(-e.length)!=e)throw Error(`string ${JSON.stringify(t)} doesn't end with suffix ${JSON.stringify(e)}; this is a bug`);return t.slice(0,-e.length)+n}function He(t,e){return Zt(t,e,"")}function pt(t,e){return Kt(t,e,"")}function gr(t,e){return e.slice(0,$u(t,e))}function $u(t,e){let n=0;t.length>e.length&&(n=t.length-e.length);let r=e.length;t.length<e.length&&(r=t.length);let s=Array(r),o=0;s[0]=0;for(let i=1;i<r;i++){for(e[i]==e[o]?s[i]=s[o]:s[i]=o;o>0&&e[i]!=e[o];)o=s[o];e[i]==e[o]&&o++}o=0;for(let i=n;i<t.length;i++){for(;o>0&&t[i]!=e[o];)o=s[o];t[i]==e[o]&&o++}return o}function mr(t,e){let n=[];for(let r of Array.from(e.segment(t))){let s=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(s)?n[n.length-1]+=s:n.push(s)}return n}function en(t,e){if(e)return ze(t,e)[1];let n;for(n=t.length-1;n>=0&&t[n].match(/\s/);n--);return t.substring(n+1)}function Me(t,e){if(e)return ze(t,e)[0];let n=t.match(/^\s*/);return n?n[0]:""}function ze(t,e){if(!e)return[Me(t),en(t)];if(e.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');let n=mr(t,e),r=n[0],s=n[n.length-1],o=/\s/.test(r)?r:"",i=/\s/.test(s)?s:"";return[o,i]}var tn="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Bu=new RegExp(`[${tn}]+|\\s+|[^${tn}]`,"ug"),yr=class extends te{equals(e,n,r){return r.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e.trim()===n.trim()}tokenize(e,n={}){let r;if(n.intlSegmenter){let i=n.intlSegmenter;if(i.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=mr(e,i)}else r=e.match(Bu)||[];let s=[],o=null;return r.forEach(i=>{/\s/.test(i)?o==null?s.push(i):s.push(s.pop()+i):o!=null&&/\s/.test(o)?s[s.length-1]==o?s.push(s.pop()+i):s.push(o+i):s.push(i),o=i}),s}join(e){return e.map((n,r)=>r==0?n:n.replace(/^\s+/,"")).join("")}postProcess(e,n){if(!e||n.oneChangePerToken)return e;let r=null,s=null,o=null;return e.forEach(i=>{i.added?s=i:i.removed?o=i:((s||o)&&ri(r,o,s,i,n.intlSegmenter),r=i,s=null,o=null)}),(s||o)&&ri(r,o,s,null,n.intlSegmenter),e}},Gu=new yr;function ri(t,e,n,r,s){if(e&&n){let[o,i]=ze(e.value,s),[a,l]=ze(n.value,s);if(t){let c=dr(o,a);t.value=Kt(t.value,a,c),e.value=He(e.value,c),n.value=He(n.value,c)}if(r){let c=pr(i,l);r.value=Zt(r.value,l,c),e.value=pt(e.value,c),n.value=pt(n.value,c)}}else if(n){if(t){let o=Me(n.value,s);n.value=n.value.substring(o.length)}if(r){let o=Me(r.value,s);r.value=r.value.substring(o.length)}}else if(t&&r){let o=Me(r.value,s),[i,a]=ze(e.value,s),l=dr(o,i);e.value=He(e.value,l);let c=pr(He(o,l),a);e.value=pt(e.value,c),r.value=Zt(r.value,o,c),t.value=Kt(t.value,o,o.slice(0,o.length-c.length))}else if(r){let o=Me(r.value,s),i=en(e.value,s),a=gr(i,o);e.value=pt(e.value,a)}else if(t){let o=en(t.value,s),i=Me(e.value,s),a=gr(o,i);e.value=He(e.value,a)}}var wr=class extends te{tokenize(e){let n=new RegExp(`(\\r?\\n)|[${tn}]+|[^\\S\\n\\r]+|[^${tn}]`,"ug");return e.match(n)||[]}},si=new wr;function Du(t,e,n){return si.diff(t,e,n)}var br=class extends te{constructor(){super(...arguments),this.tokenize=Uu}equals(e,n,r){return r.ignoreWhitespace?((!r.newlineIsToken||!e.includes(`
153
+ `))&&(e=e.trim()),(!r.newlineIsToken||!n.includes(`
154
+ `))&&(n=n.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(e.endsWith(`
155
+ `)&&(e=e.slice(0,-1)),n.endsWith(`
156
+ `)&&(n=n.slice(0,-1))),super.equals(e,n,r)}},Fu=new br;function Cr(t,e,n){return Fu.diff(t,e,n)}function Uu(t,e){e.stripTrailingCr&&(t=t.replace(/\r\n/g,`
157
+ `));let n=[],r=t.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let s=0;s<r.length;s++){let o=r[s];s%2&&!e.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n}function ju(t){for(let e=0;e<t.length;e++)if(t[e]<" "||t[e]>"~"||t[e]==='"'||t[e]==="\\")return!0;return!1}function Se(t){if(!ju(t))return t;let e='"',n=new TextEncoder().encode(t),r=0;for(;r<n.length;){let s=n[r];s===7?e+="\\a":s===8?e+="\\b":s===9?e+="\\t":s===10?e+="\\n":s===11?e+="\\v":s===12?e+="\\f":s===13?e+="\\r":s===34?e+='\\"':s===92?e+="\\\\":s>=32&&s<=126?e+=String.fromCharCode(s):e+="\\"+s.toString(8).padStart(3,"0"),r++}return e+='"',e}var _r={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Sr(t,e,n,r,s,o,i){let a;i?typeof i=="function"?a={callback:i}:a=i:a={},typeof a.context>"u"&&(a.context=4);let l=a.context;if(a.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(a.callback){let{callback:f}=a;Cr(n,r,Object.assign(Object.assign({},a),{callback:u=>{let d=c(u);f(d)}}))}else return c(Cr(n,r,a));function c(f){if(!f)return;f.push({value:"",lines:[]});function u(g){return g.map(function(w){return" "+w})}let d=[],h=0,p=0,b=[],_=1,m=1;for(let g=0;g<f.length;g++){let w=f[g],S=w.lines||Hu(w.value);if(w.lines=S,w.added||w.removed){if(!h){let x=f[g-1];h=_,p=m,x&&(b=l>0?u(x.lines.slice(-l)):[],h-=b.length,p-=b.length)}for(let x of S)b.push((w.added?"+":"-")+x);w.added?m+=S.length:_+=S.length}else{if(h)if(S.length<=l*2&&g<f.length-2)for(let x of u(S))b.push(x);else{let x=Math.min(S.length,l);for(let R of u(S.slice(0,x)))b.push(R);let E={oldStart:h,oldLines:_-h+x,newStart:p,newLines:m-p+x,lines:b};d.push(E),h=0,p=0,b=[]}_+=S.length,m+=S.length}}for(let g of d)for(let w=0;w<g.lines.length;w++)g.lines[w].endsWith(`
158
+ `)?g.lines[w]=g.lines[w].slice(0,-1):(g.lines.splice(w+1,0,"\"),w++);return{oldFileName:t,newFileName:e,oldHeader:s,newHeader:o,hunks:d}}}function nn(t,e){var n,r,s,o,i,a;if(e||(e=_r),Array.isArray(t)){if(t.length>1&&!e.includeFileHeaders&&!t.every(f=>f.isGit))throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return t.map(f=>nn(f,e)).join(`
159
+ `)}let l=[];if(t.isGit){if(e=_r,!t.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!t.newFileName)throw new Error("newFileName must be specified for Git patches");let f=t.oldFileName,u=t.newFileName;t.isCreate&&f==="/dev/null"?f=u.replace(/^b\//,"a/"):t.isDelete&&u==="/dev/null"&&(u=f.replace(/^a\//,"b/")),l.push("diff --git "+Se(f)+" "+Se(u)),t.isDelete&&l.push("deleted file mode "+((n=t.oldMode)!==null&&n!==void 0?n:"100644")),t.isCreate&&l.push("new file mode "+((r=t.newMode)!==null&&r!==void 0?r:"100644")),t.oldMode&&t.newMode&&!t.isDelete&&!t.isCreate&&(l.push("old mode "+t.oldMode),l.push("new mode "+t.newMode)),t.isRename&&(l.push("rename from "+Se(((s=t.oldFileName)!==null&&s!==void 0?s:"").replace(/^a\//,""))),l.push("rename to "+Se(((o=t.newFileName)!==null&&o!==void 0?o:"").replace(/^b\//,"")))),t.isCopy&&(l.push("copy from "+Se(((i=t.oldFileName)!==null&&i!==void 0?i:"").replace(/^a\//,""))),l.push("copy to "+Se(((a=t.newFileName)!==null&&a!==void 0?a:"").replace(/^b\//,""))))}else e.includeIndex&&t.oldFileName==t.newFileName&&t.oldFileName!==void 0&&l.push("Index: "+t.oldFileName),e.includeUnderline&&l.push("===================================================================");let c=t.hunks.length>0;e.includeFileHeaders&&t.oldFileName!==void 0&&t.newFileName!==void 0&&(!t.isGit||c)&&(l.push("--- "+Se(t.oldFileName)+(t.oldHeader?" "+t.oldHeader:"")),l.push("+++ "+Se(t.newFileName)+(t.newHeader?" "+t.newHeader:"")));for(let f=0;f<t.hunks.length;f++){let u=t.hunks[f],d=u.oldLines===0?u.oldStart-1:u.oldStart,h=u.newLines===0?u.newStart-1:u.newStart;l.push("@@ -"+d+","+u.oldLines+" +"+h+","+u.newLines+" @@");for(let p of u.lines)l.push(p)}return l.join(`
160
+ `)+`
161
+ `}function Wu(t,e,n,r,s,o,i){if(typeof i=="function"&&(i={callback:i}),i?.callback){let{callback:a}=i;Sr(t,e,n,r,s,o,Object.assign(Object.assign({},i),{callback:l=>{a(l?nn(l,i.headerOptions):void 0)}}))}else{let a=Sr(t,e,n,r,s,o,i);return a?nn(a,i?.headerOptions):void 0}}function Hu(t){let e=t.endsWith(`
162
+ `),n=t.split(`
163
+ `).map(r=>r+`
164
+ `);return e?n.pop():n.push(n.pop().slice(0,-1)),n}export{Nr as a,Ar as b,Tr as c,oi as d,vi as e,Ri as f,Et as g,Ta as h,On as i,Ts as j,Lt as k,Bn as l,js as m,Ws as n,Ee as o,Fn as p,cp as q,Kl as r,up as s,fp as t,Au as u,sg as v,Pu as w,Ou as x,Du as y,Wu as z};