@ghfs/cli 0.0.4 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/dist/cli.mjs +132 -3068
  2. package/dist/dir.d.mts +4 -0
  3. package/dist/dir.mjs +5 -0
  4. package/dist/{factory-DYHQBeCz.mjs → factory-DmX3S7tf.mjs} +350 -5
  5. package/dist/index.d.mts +2 -195
  6. package/dist/index.mjs +1 -1
  7. package/dist/provider-DCIsHVeA.d.mts +249 -0
  8. package/dist/server/index.d.mts +330 -0
  9. package/dist/server/index.mjs +2 -0
  10. package/dist/server-BwSU4kqr.mjs +3518 -0
  11. package/dist/ui/200.html +1 -1
  12. package/dist/ui/404.html +1 -1
  13. package/dist/ui/_nuxt/2UxHyX5q.js +1 -0
  14. package/dist/ui/_nuxt/32ctXXKs.js +1 -0
  15. package/dist/ui/_nuxt/3e1v2bzS.js +1 -0
  16. package/dist/ui/_nuxt/4A_iFExJ.js +1 -0
  17. package/dist/ui/_nuxt/5VeTt0Ye.js +1 -0
  18. package/dist/ui/_nuxt/5i3qLPDT.js +1 -0
  19. package/dist/ui/_nuxt/85-TOEBH.js +1 -0
  20. package/dist/ui/_nuxt/8syuri0t.js +1 -0
  21. package/dist/ui/_nuxt/B0m2ddpp.js +1 -0
  22. package/dist/ui/_nuxt/B1dDrJ26.js +1 -0
  23. package/dist/ui/_nuxt/B1yitclQ.js +1 -0
  24. package/dist/ui/_nuxt/B5q1GTce.js +1 -0
  25. package/dist/ui/_nuxt/B6aJPvgy.js +1 -0
  26. package/dist/ui/_nuxt/B6eN_cS4.js +1 -0
  27. package/dist/ui/_nuxt/B7c-h3xW.js +1 -0
  28. package/dist/ui/_nuxt/B7mTdjB0.js +1 -0
  29. package/dist/ui/_nuxt/BA47KaF1.js +1 -0
  30. package/dist/ui/_nuxt/BBf5iR-q.js +1 -0
  31. package/dist/ui/_nuxt/BEDo0Tqx.js +1 -0
  32. package/dist/ui/_nuxt/BERRCDM3.js +1 -0
  33. package/dist/ui/_nuxt/BETggiCN.js +1 -0
  34. package/dist/ui/_nuxt/BEwlwnbL.js +1 -0
  35. package/dist/ui/_nuxt/BFfxhgS-.js +1 -0
  36. package/dist/ui/_nuxt/BGJmEYvX.js +1 -0
  37. package/dist/ui/_nuxt/BH7IYjvW.js +1 -0
  38. package/dist/ui/_nuxt/BIGW1oBm.js +1 -0
  39. package/dist/ui/_nuxt/BIv1doCn.js +1 -0
  40. package/dist/ui/_nuxt/BJDFO7_C.js +1 -0
  41. package/dist/ui/_nuxt/BLtJtn59.js +1 -0
  42. package/dist/ui/_nuxt/BM1_JUlF.js +1 -0
  43. package/dist/ui/_nuxt/BMWR74SV.js +1 -0
  44. package/dist/ui/_nuxt/BPQ3VLAy.js +1 -0
  45. package/dist/ui/_nuxt/BQ8w6xss.js +1 -0
  46. package/dist/ui/_nuxt/BRHolxvo.js +1 -0
  47. package/dist/ui/_nuxt/BRZ36xJF.js +1 -0
  48. package/dist/ui/_nuxt/BTJTHyun.js +1 -0
  49. package/dist/ui/_nuxt/BTifaqeh.js +1 -0
  50. package/dist/ui/_nuxt/BUtzH8cE.js +1 -0
  51. package/dist/ui/_nuxt/BUw7H-hv.js +1 -0
  52. package/dist/ui/_nuxt/BV7otONQ.js +1 -0
  53. package/dist/ui/_nuxt/BVQ-GDCI.js +1 -0
  54. package/dist/ui/_nuxt/BVkGXMyj.js +1 -0
  55. package/dist/ui/_nuxt/BWvSN4gD.js +1 -0
  56. package/dist/ui/_nuxt/BXkSAIEj.js +1 -0
  57. package/dist/ui/_nuxt/BYunw83y.js +1 -0
  58. package/dist/ui/_nuxt/BZvkOJ9d.js +1 -0
  59. package/dist/ui/_nuxt/B_m7g4N7.js +1 -0
  60. package/dist/ui/_nuxt/BcOcwvcX.js +1 -0
  61. package/dist/ui/_nuxt/BcVCzyr7.js +1 -0
  62. package/dist/ui/_nuxt/BcllPdc-.js +1 -0
  63. package/dist/ui/_nuxt/BdImnpbu.js +1 -0
  64. package/dist/ui/_nuxt/BdnUsdx6.js +1 -0
  65. package/dist/ui/_nuxt/BeJSdlF9.js +1 -0
  66. package/dist/ui/_nuxt/BfHTSMKl.js +1 -0
  67. package/dist/ui/_nuxt/BfSCyJF4.js +1 -0
  68. package/dist/ui/_nuxt/BfjtVDDH.js +1 -0
  69. package/dist/ui/_nuxt/BgDCqdQA.js +1 -0
  70. package/dist/ui/_nuxt/BhOHFoWU.js +1 -0
  71. package/dist/ui/_nuxt/BhrAK1vL.js +1 -0
  72. package/dist/ui/_nuxt/BkioyH1T.js +1 -0
  73. package/dist/ui/_nuxt/Bkuqu6BP.js +1 -0
  74. package/dist/ui/_nuxt/BmXAJ9_W.js +1 -0
  75. package/dist/ui/_nuxt/Bmn6On1c.js +1 -0
  76. package/dist/ui/_nuxt/Bp3cYrEr.js +1 -0
  77. package/dist/ui/_nuxt/Bp6g37R7.js +1 -0
  78. package/dist/ui/_nuxt/BqNa2AkI.js +1 -0
  79. package/dist/ui/_nuxt/BqTXFGrv.js +1 -0
  80. package/dist/ui/_nuxt/BqYA7rlc.js +1 -0
  81. package/dist/ui/_nuxt/Br6cN0cg.js +1 -0
  82. package/dist/ui/_nuxt/BsS91CYL.js +1 -0
  83. package/dist/ui/_nuxt/BshV_Xbc.js +1 -0
  84. package/dist/ui/_nuxt/BspZqrRM.js +1 -0
  85. package/dist/ui/_nuxt/BtCnVYZw.js +1 -0
  86. package/dist/ui/_nuxt/BtOb2qkB.js +1 -0
  87. package/dist/ui/_nuxt/BthQWCQV.js +1 -0
  88. package/dist/ui/_nuxt/BtqSS_iP.js +1 -0
  89. package/dist/ui/_nuxt/Buea-lGh.js +1 -0
  90. package/dist/ui/_nuxt/Bv_4Rxtq.js +1 -0
  91. package/dist/ui/_nuxt/BvzEVeQv.js +1 -0
  92. package/dist/ui/_nuxt/Bw305WKR.js +1 -0
  93. package/dist/ui/_nuxt/BxgE0vQu.js +1 -0
  94. package/dist/ui/_nuxt/BzJJZx-M.js +1 -0
  95. package/dist/ui/_nuxt/C-HG3fhB.js +1 -0
  96. package/dist/ui/_nuxt/C-SQnVFl.js +1 -0
  97. package/dist/ui/_nuxt/C0HS_06l.js +1 -0
  98. package/dist/ui/_nuxt/C0hk2d4L.js +1 -0
  99. package/dist/ui/_nuxt/C151Ov-r.js +1 -0
  100. package/dist/ui/_nuxt/C27-OAKa.js +1 -0
  101. package/dist/ui/_nuxt/C2t-YnRu.js +1 -0
  102. package/dist/ui/_nuxt/C39BiMTA.js +1 -0
  103. package/dist/ui/_nuxt/C3B-1QV4.js +1 -0
  104. package/dist/ui/_nuxt/C3Wv6jpd.js +1 -0
  105. package/dist/ui/_nuxt/C3mMm8J8.js +1 -0
  106. package/dist/ui/_nuxt/C4EeE6gA.js +1 -0
  107. package/dist/ui/_nuxt/C4IJs8-o.js +1 -0
  108. package/dist/ui/_nuxt/C4gqWexZ.js +1 -0
  109. package/dist/ui/_nuxt/C4zNGwhW.js +1 -0
  110. package/dist/ui/_nuxt/C5BYcBs_.js +1 -0
  111. package/dist/ui/_nuxt/C5YyOfLZ.js +1 -0
  112. package/dist/ui/_nuxt/C7UmGho8.js +1 -0
  113. package/dist/ui/_nuxt/C7zT0LnQ.js +1 -0
  114. package/dist/ui/_nuxt/C8M2exoo.js +1 -0
  115. package/dist/ui/_nuxt/C8lEn-DE.js +1 -0
  116. package/dist/ui/_nuxt/C98Dy4si.js +1 -0
  117. package/dist/ui/_nuxt/C9dUb6Cb.js +1 -0
  118. package/dist/ui/_nuxt/C9oPPf7i.js +1 -0
  119. package/dist/ui/_nuxt/C9tS-k6U.js +1 -0
  120. package/dist/ui/_nuxt/CAFt9gP4.js +1 -0
  121. package/dist/ui/_nuxt/CANp3yme.js +1 -0
  122. package/dist/ui/_nuxt/CBaQQc7g.js +1 -0
  123. package/dist/ui/_nuxt/CDBrVQLm.js +1 -0
  124. package/dist/ui/_nuxt/CDVJQ6XC.js +1 -0
  125. package/dist/ui/_nuxt/CDx5xZoG.js +1 -0
  126. package/dist/ui/_nuxt/CEL-wOlO.js +1 -0
  127. package/dist/ui/_nuxt/CEu0bR-o.js +1 -0
  128. package/dist/ui/_nuxt/CFHQjOhq.js +1 -0
  129. package/dist/ui/_nuxt/CFbOZP3I.js +75 -0
  130. package/dist/ui/_nuxt/CG6Dc4jp.js +1 -0
  131. package/dist/ui/_nuxt/CG8Ifv2g.js +1 -0
  132. package/dist/ui/_nuxt/CH1njM8p.js +1 -0
  133. package/dist/ui/_nuxt/CHLpvVh8.js +1 -0
  134. package/dist/ui/_nuxt/CHM0blh-.js +1 -0
  135. package/dist/ui/_nuxt/CJc9bBzg.js +1 -0
  136. package/dist/ui/_nuxt/CKIfxQSi.js +1 -0
  137. package/dist/ui/_nuxt/CLj8gQPS.js +1 -0
  138. package/dist/ui/_nuxt/CLxacb5B.js +1 -0
  139. package/dist/ui/_nuxt/CMTm3GFP.js +1 -0
  140. package/dist/ui/_nuxt/CO1LY3CK.js +1 -0
  141. package/dist/ui/_nuxt/COcwbKMJ.js +1 -0
  142. package/dist/ui/_nuxt/COkxafJQ.js +1 -0
  143. package/dist/ui/_nuxt/COt5Ahok.js +1 -0
  144. package/dist/ui/_nuxt/CRBrlGZW.js +1 -0
  145. package/dist/ui/_nuxt/CS3Unz2-.js +1 -0
  146. package/dist/ui/_nuxt/CSXwinHm.js +1 -0
  147. package/dist/ui/_nuxt/CTRr51gU.js +1 -0
  148. package/dist/ui/_nuxt/CUuTKBJd.js +1 -0
  149. package/dist/ui/_nuxt/CVO1_9PV.js +1 -0
  150. package/dist/ui/_nuxt/CVdnzihN.js +1 -0
  151. package/dist/ui/_nuxt/CXtECtnM.js +1 -0
  152. package/dist/ui/_nuxt/CXvaQtF9.js +1 -0
  153. package/dist/ui/_nuxt/CYsAdtH9.js +1 -0
  154. package/dist/ui/_nuxt/CafNBF8u.js +1 -0
  155. package/dist/ui/_nuxt/CbFg5uaA.js +1 -0
  156. package/dist/ui/_nuxt/CbfX1IO0.js +1 -0
  157. package/dist/ui/_nuxt/CcsQSqEB.js +1 -0
  158. package/dist/ui/_nuxt/CeAyd5Ju.js +1 -0
  159. package/dist/ui/_nuxt/CeZK1NFH.js +1 -0
  160. package/dist/ui/_nuxt/CenWIFCC.js +1 -0
  161. package/dist/ui/_nuxt/CfQXZHmo.js +1 -0
  162. package/dist/ui/_nuxt/Cg-RD9OK.js +1 -0
  163. package/dist/ui/_nuxt/ChMvpjG-.js +1 -0
  164. package/dist/ui/_nuxt/Cj5Yp3dK.js +1 -0
  165. package/dist/ui/_nuxt/CkByrt1z.js +1 -0
  166. package/dist/ui/_nuxt/CkXjmgJE.js +1 -0
  167. package/dist/ui/_nuxt/CklMAg4u.js +1 -0
  168. package/dist/ui/_nuxt/Cmh6b_Ma.js +1 -0
  169. package/dist/ui/_nuxt/CnnmHF94.js +1 -0
  170. package/dist/ui/_nuxt/CnsnAmq5.js +1 -0
  171. package/dist/ui/_nuxt/Co6uUVPk.js +1 -0
  172. package/dist/ui/_nuxt/CoDkCxhg.js +1 -0
  173. package/dist/ui/_nuxt/Cp-IABpG.js +1 -0
  174. package/dist/ui/_nuxt/Cp8Y5tLI.js +1 -0
  175. package/dist/ui/_nuxt/Cq5zzVJU.js +1 -0
  176. package/dist/ui/_nuxt/CquLrc37.js +1 -0
  177. package/dist/ui/_nuxt/Cs0ovY-E.js +1 -0
  178. package/dist/ui/_nuxt/CsfeWuGM.js +1 -0
  179. package/dist/ui/_nuxt/Csfq5Kiy.js +1 -0
  180. package/dist/ui/_nuxt/CuPHTKiy.js +1 -0
  181. package/dist/ui/_nuxt/CufHLc7y.js +1 -0
  182. package/dist/ui/_nuxt/Cuk6v7N8.js +1 -0
  183. package/dist/ui/_nuxt/Cvjx9yec.js +1 -0
  184. package/dist/ui/_nuxt/CwoSXNpI.js +1 -0
  185. package/dist/ui/_nuxt/CxGSJlkm.js +1 -0
  186. package/dist/ui/_nuxt/CxbxFI8M.js +1 -0
  187. package/dist/ui/_nuxt/CyktbL80.js +1 -0
  188. package/dist/ui/_nuxt/CylS5w8V.js +1 -0
  189. package/dist/ui/_nuxt/Cz2AlsmD.js +1 -0
  190. package/dist/ui/_nuxt/CzTSHFRz.js +1 -0
  191. package/dist/ui/_nuxt/D-2ljcwZ.js +1 -0
  192. package/dist/ui/_nuxt/D0YGMca9.js +1 -0
  193. package/dist/ui/_nuxt/D0r3Knsf.js +1 -0
  194. package/dist/ui/_nuxt/D17OF-Vu.js +1 -0
  195. package/dist/ui/_nuxt/D1j8_8rp.js +1 -0
  196. package/dist/ui/_nuxt/D2j5LXpq.js +1 -0
  197. package/dist/ui/_nuxt/D3apom_0.js +1 -0
  198. package/dist/ui/_nuxt/D3lLCCz7.js +1 -0
  199. package/dist/ui/_nuxt/D4Qn4bBI.js +1 -0
  200. package/dist/ui/_nuxt/D4_iv3hh.js +1 -0
  201. package/dist/ui/_nuxt/D4h5O-jR.js +1 -0
  202. package/dist/ui/_nuxt/D5-asLiD.js +1 -0
  203. package/dist/ui/_nuxt/D53aC0YG.js +1 -0
  204. package/dist/ui/_nuxt/D5KoaKCx.js +1 -0
  205. package/dist/ui/_nuxt/D7o27uSR.js +1 -0
  206. package/dist/ui/_nuxt/D7oLnXFd.js +1 -0
  207. package/dist/ui/_nuxt/D82EKSYY.js +1 -0
  208. package/dist/ui/_nuxt/D82vCrfD.js +1 -0
  209. package/dist/ui/_nuxt/D87Tk5Gz.js +1 -0
  210. package/dist/ui/_nuxt/D8_7TLub.js +1 -0
  211. package/dist/ui/_nuxt/D8l8udqQ.js +1 -0
  212. package/dist/ui/_nuxt/D8rZpOte.js +1 -0
  213. package/dist/ui/_nuxt/D93ZcfNL.js +1 -0
  214. package/dist/ui/_nuxt/D97Zzqfu.js +1 -0
  215. package/dist/ui/_nuxt/DAi9KRSo.js +1 -0
  216. package/dist/ui/_nuxt/DElX3lK9.js +153 -0
  217. package/dist/ui/_nuxt/DFQXde-d.js +1 -0
  218. package/dist/ui/_nuxt/DFWUc33u.js +1 -0
  219. package/dist/ui/_nuxt/DFXneXwc.js +1 -0
  220. package/dist/ui/_nuxt/DGztddWO.js +1 -0
  221. package/dist/ui/_nuxt/DH5Ifo-i.js +1 -0
  222. package/dist/ui/_nuxt/DHCkPAjA.js +1 -0
  223. package/dist/ui/_nuxt/DHJKELXO.js +1 -0
  224. package/dist/ui/_nuxt/DHQR4-dF.js +1 -0
  225. package/dist/ui/_nuxt/DM8c43g1.js +1 -0
  226. package/dist/ui/_nuxt/DMk3OuwW.js +1 -0
  227. package/dist/ui/_nuxt/DMzUqQB5.js +1 -0
  228. package/dist/ui/_nuxt/DN-Z_aST.js +1 -0
  229. package/dist/ui/_nuxt/DQyhUUbL.js +1 -0
  230. package/dist/ui/_nuxt/DRg8JJMk.js +1 -0
  231. package/dist/ui/_nuxt/DRw_LuNl.js +1 -0
  232. package/dist/ui/_nuxt/DSSpBswy.js +1 -0
  233. package/dist/ui/_nuxt/DT3CNIhV.js +1 -0
  234. package/dist/ui/_nuxt/DU1UobuO.js +1 -0
  235. package/dist/ui/_nuxt/DUszq2jm.js +1 -0
  236. package/dist/ui/_nuxt/DV7GczEv.js +1 -0
  237. package/dist/ui/_nuxt/DVFEvuxE.js +1 -0
  238. package/dist/ui/_nuxt/DVMEJ2y_.js +1 -0
  239. package/dist/ui/_nuxt/DVxCFoDh.js +1 -0
  240. package/dist/ui/_nuxt/DWX1VroF.js +1 -0
  241. package/dist/ui/_nuxt/DWedfzmr.js +1 -0
  242. package/dist/ui/_nuxt/DWrx1Km3.js +1 -0
  243. package/dist/ui/_nuxt/DXbdFlpD.js +1 -0
  244. package/dist/ui/_nuxt/DXmwc3jG.js +1 -0
  245. package/dist/ui/_nuxt/DXvB9xmW.js +1 -0
  246. package/dist/ui/_nuxt/DYE7WIF3.js +1 -0
  247. package/dist/ui/_nuxt/DZ9PSxVF.js +1 -0
  248. package/dist/ui/_nuxt/DZxFcAj9.js +1 -0
  249. package/dist/ui/_nuxt/D_Q5rh1f.js +1 -0
  250. package/dist/ui/_nuxt/Da5cRb03.js +1 -0
  251. package/dist/ui/_nuxt/DbWOdLaN.js +1 -0
  252. package/dist/ui/_nuxt/Dc-5oQ3p.js +1 -0
  253. package/dist/ui/_nuxt/DcWK9jms.js +1 -0
  254. package/dist/ui/_nuxt/DcaNXYhu.js +1 -0
  255. package/dist/ui/_nuxt/Dd19v3D-.js +1 -0
  256. package/dist/ui/_nuxt/DdkO51Og.js +1 -0
  257. package/dist/ui/_nuxt/Ddv68eIx.js +1 -0
  258. package/dist/ui/_nuxt/Des-eS-w.js +1 -0
  259. package/dist/ui/_nuxt/Df6bDoY_.js +1 -0
  260. package/dist/ui/_nuxt/DfNjGIrv.js +1 -0
  261. package/dist/ui/_nuxt/DhaVEd23.js +1 -0
  262. package/dist/ui/_nuxt/DjAJT7YJ.js +1 -0
  263. package/dist/ui/_nuxt/DkFqJrB1.js +1 -0
  264. package/dist/ui/_nuxt/DkwncUOv.js +1 -0
  265. package/dist/ui/_nuxt/DlAUqK2U.js +1 -0
  266. package/dist/ui/_nuxt/DnF83RMp.js +1 -0
  267. package/dist/ui/_nuxt/DnULxvSX.js +1 -0
  268. package/dist/ui/_nuxt/Dpen1YoG.js +1 -0
  269. package/dist/ui/_nuxt/Dph4kLrZ.js +1 -0
  270. package/dist/ui/_nuxt/DqQDbK_p.js +1 -0
  271. package/dist/ui/_nuxt/DqwNpetd.js +1 -0
  272. package/dist/ui/_nuxt/DsOJ9woJ.js +1 -0
  273. package/dist/ui/_nuxt/Dspwwk_N.js +1 -0
  274. package/dist/ui/_nuxt/Dx-B1_4e.js +1 -0
  275. package/dist/ui/_nuxt/DyxjwDmM.js +1 -0
  276. package/dist/ui/_nuxt/E3gJ1_iC.js +1 -0
  277. package/dist/ui/_nuxt/GsRaNv29.js +1 -0
  278. package/dist/ui/_nuxt/IF9eRakj.js +1 -0
  279. package/dist/ui/_nuxt/IeuSbFQv.js +1 -0
  280. package/dist/ui/_nuxt/JZbLTBME.js +1 -0
  281. package/dist/ui/_nuxt/L9t79GZl.js +1 -0
  282. package/dist/ui/_nuxt/MzD3tlZU.js +1 -0
  283. package/dist/ui/_nuxt/P80f7IUj.js +1 -0
  284. package/dist/ui/_nuxt/Pmp26Uib.js +1 -0
  285. package/dist/ui/_nuxt/QIJgUcNo.js +1 -0
  286. package/dist/ui/_nuxt/VOosw3JB.js +1 -0
  287. package/dist/ui/_nuxt/Ve4PFQV2.js +1 -0
  288. package/dist/ui/_nuxt/W9tJ9s81.js +1 -0
  289. package/dist/ui/_nuxt/Yzrsuije.js +1 -0
  290. package/dist/ui/_nuxt/_H4v1dQx.js +1 -0
  291. package/dist/ui/_nuxt/_ykCGR6B.js +1 -0
  292. package/dist/ui/_nuxt/bCR0ucgS.js +1 -0
  293. package/dist/ui/_nuxt/bE4Kk8sk.js +1 -0
  294. package/dist/ui/_nuxt/bN70gL4F.js +1 -0
  295. package/dist/ui/_nuxt/builds/latest.json +1 -1
  296. package/dist/ui/_nuxt/builds/meta/12d68071-f4db-447f-b929-9033d66eadc3.json +1 -0
  297. package/dist/ui/_nuxt/dwOrl1Do.js +1 -0
  298. package/dist/ui/_nuxt/entry.DfrFFNxd.css +1 -0
  299. package/dist/ui/_nuxt/eo99z4R2.js +1 -0
  300. package/dist/ui/_nuxt/error-404.C93cll2q.css +1 -0
  301. package/dist/ui/_nuxt/error-500.CPQqaJsC.css +1 -0
  302. package/dist/ui/_nuxt/fuZLfV_i.js +1 -0
  303. package/dist/ui/_nuxt/g9-lgVsj.js +1 -0
  304. package/dist/ui/_nuxt/gcz8RCvz.js +1 -0
  305. package/dist/ui/_nuxt/hJgmCMqR.js +1 -0
  306. package/dist/ui/_nuxt/hegEt444.js +1 -0
  307. package/dist/ui/_nuxt/k_qm7-4y.js +1 -0
  308. package/dist/ui/_nuxt/lBpI9LM0.js +1 -0
  309. package/dist/ui/_nuxt/lXgVvXCa.js +1 -0
  310. package/dist/ui/_nuxt/mWjccvbQ.js +1 -0
  311. package/dist/ui/_nuxt/n2N0HUVH.js +1 -0
  312. package/dist/ui/_nuxt/oH_c3LbQ.js +1 -0
  313. package/dist/ui/_nuxt/qdsjHGoJ.js +1 -0
  314. package/dist/ui/_nuxt/rGO070M0.js +1 -0
  315. package/dist/ui/_nuxt/rZm6bMo-.js +1 -0
  316. package/dist/ui/_nuxt/rgL8RFrC.js +1 -0
  317. package/dist/ui/_nuxt/u5AG7uiY.js +1 -0
  318. package/dist/ui/_nuxt/uYugtg8r.js +1 -0
  319. package/dist/ui/_nuxt/vE_lwT2v.js +1 -0
  320. package/dist/ui/_nuxt/vGWfd6FD.js +1 -0
  321. package/dist/ui/_nuxt/wDzz0qaB.js +1 -0
  322. package/dist/ui/_nuxt/wEQ09or8.js +1 -0
  323. package/dist/ui/_nuxt/yv6CvBhz.js +1 -0
  324. package/dist/ui/index.html +1 -1
  325. package/package.json +21 -22
  326. package/dist/ui/_nuxt/BR_H8Y5I.js +0 -3
  327. package/dist/ui/_nuxt/Cr8ZhsI1.js +0 -3
  328. package/dist/ui/_nuxt/D7-M_06k.js +0 -1
  329. package/dist/ui/_nuxt/DFs1tY5L.js +0 -2
  330. package/dist/ui/_nuxt/DSg5v247.js +0 -1
  331. package/dist/ui/_nuxt/_eJq5waD.js +0 -1
  332. package/dist/ui/_nuxt/builds/meta/560d1a3b-6050-40f3-af12-eecaef34ee9e.json +0 -1
  333. package/dist/ui/_nuxt/entry.CpgMGkX_.css +0 -1
  334. package/dist/ui/_nuxt/error-404.Cl81wDDB.css +0 -1
  335. package/dist/ui/_nuxt/error-500.eY3F7Rvm.css +0 -1
@@ -0,0 +1,153 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BshV_Xbc.js","./DSSpBswy.js","./wDzz0qaB.js","./CLj8gQPS.js","./DMk3OuwW.js","./DT3CNIhV.js","./rgL8RFrC.js","./BGJmEYvX.js","./CylS5w8V.js","./Cp-IABpG.js","./BUtzH8cE.js","./BPQ3VLAy.js","./CXtECtnM.js","./COt5Ahok.js","./CRBrlGZW.js","./Cp8Y5tLI.js","./BLtJtn59.js","./CquLrc37.js","./DVxCFoDh.js","./CO1LY3CK.js","./B6aJPvgy.js","./lBpI9LM0.js","./CxbxFI8M.js","./Bp3cYrEr.js","./CDVJQ6XC.js","./DZxFcAj9.js","./BIGW1oBm.js","./CANp3yme.js","./Yzrsuije.js","./BfSCyJF4.js","./BqNa2AkI.js","./CeZK1NFH.js","./D8rZpOte.js","./8syuri0t.js","./D2j5LXpq.js","./C9oPPf7i.js","./g9-lgVsj.js","./CnsnAmq5.js","./Buea-lGh.js","./CuPHTKiy.js","./Cvjx9yec.js","./B7c-h3xW.js","./BxgE0vQu.js","./BTifaqeh.js","./CenWIFCC.js","./DkwncUOv.js","./C5YyOfLZ.js","./CxGSJlkm.js","./D97Zzqfu.js","./CSXwinHm.js","./DZ9PSxVF.js","./CDBrVQLm.js","./DnF83RMp.js","./CcsQSqEB.js","./CufHLc7y.js","./CYsAdtH9.js","./fuZLfV_i.js","./DWrx1Km3.js","./CzTSHFRz.js","./5VeTt0Ye.js","./Br6cN0cg.js","./W9tJ9s81.js","./Dspwwk_N.js","./JZbLTBME.js","./B6eN_cS4.js","./oH_c3LbQ.js","./C5BYcBs_.js","./DcWK9jms.js","./CBaQQc7g.js","./B1dDrJ26.js","./BeJSdlF9.js","./BcllPdc-.js","./vE_lwT2v.js","./Dph4kLrZ.js","./D3apom_0.js","./BhrAK1vL.js","./Dc-5oQ3p.js","./BVQ-GDCI.js","./DbWOdLaN.js","./COcwbKMJ.js","./DWX1VroF.js","./D1j8_8rp.js","./CG8Ifv2g.js","./BqTXFGrv.js","./D3lLCCz7.js","./Cq5zzVJU.js","./Cs0ovY-E.js","./BRZ36xJF.js","./BsS91CYL.js","./DM8c43g1.js","./BH7IYjvW.js","./DhaVEd23.js","./BVkGXMyj.js","./C27-OAKa.js","./C7UmGho8.js","./DN-Z_aST.js","./DfNjGIrv.js","./DqQDbK_p.js","./B5q1GTce.js","./BEDo0Tqx.js","./yv6CvBhz.js"])))=>i.map(i=>d[i]);
2
+ import{_ as c}from"./CFbOZP3I.js";var Pt=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,Oi=Object.getOwnPropertyNames,xi=Object.prototype.hasOwnProperty,Jt=(e,t)=>{let r={};for(var n in e)Pt(r,n,{get:e[n],enumerable:!0});return Pt(r,Symbol.toStringTag,{value:"Module"}),r},Di=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=Oi(t),o=0,a=i.length,s;o<a;o++)s=i[o],!xi.call(e,s)&&s!==r&&Pt(e,s,{get:(l=>t[l]).bind(null,s),enumerable:!(n=Pi(t,s))||n.enumerable});return e},ln=(e,t,r)=>(Di(e,t,"default"),r);const rt=[{id:"abap",name:"ABAP",import:(()=>c(()=>import("./BdImnpbu.js"),[],import.meta.url))},{id:"actionscript-3",name:"ActionScript",import:(()=>c(()=>import("./CoDkCxhg.js"),[],import.meta.url))},{id:"ada",name:"Ada",import:(()=>c(()=>import("./bCR0ucgS.js"),[],import.meta.url))},{id:"angular-html",name:"Angular HTML",import:(()=>c(()=>import("./BshV_Xbc.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>c(()=>import("./DMk3OuwW.js"),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:"apache",name:"Apache Conf",import:(()=>c(()=>import("./Pmp26Uib.js"),[],import.meta.url))},{id:"apex",name:"Apex",import:(()=>c(()=>import("./D8_7TLub.js"),[],import.meta.url))},{id:"apl",name:"APL",import:(()=>c(()=>import("./rgL8RFrC.js"),__vite__mapDeps([6,1,2,3,7,8,9]),import.meta.url))},{id:"applescript",name:"AppleScript",import:(()=>c(()=>import("./Co6uUVPk.js"),[],import.meta.url))},{id:"ara",name:"Ara",import:(()=>c(()=>import("./BRHolxvo.js"),[],import.meta.url))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>c(()=>import("./Ve4PFQV2.js"),[],import.meta.url))},{id:"asm",name:"Assembly",import:(()=>c(()=>import("./D_Q5rh1f.js"),[],import.meta.url))},{id:"astro",name:"Astro",import:(()=>c(()=>import("./BUtzH8cE.js"),__vite__mapDeps([10,9,2,11,3,12,13]),import.meta.url))},{id:"awk",name:"AWK",import:(()=>c(()=>import("./DMzUqQB5.js"),[],import.meta.url))},{id:"ballerina",name:"Ballerina",import:(()=>c(()=>import("./BFfxhgS-.js"),[],import.meta.url))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>c(()=>import("./BkioyH1T.js"),[],import.meta.url))},{id:"beancount",name:"Beancount",import:(()=>c(()=>import("./k_qm7-4y.js"),[],import.meta.url))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>c(()=>import("./uYugtg8r.js"),[],import.meta.url))},{id:"bibtex",name:"BibTeX",import:(()=>c(()=>import("./CHM0blh-.js"),[],import.meta.url))},{id:"bicep",name:"Bicep",import:(()=>c(()=>import("./Bmn6On1c.js"),[],import.meta.url))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>c(()=>import("./BIv1doCn.js"),[],import.meta.url))},{id:"blade",name:"Blade",import:(()=>c(()=>import("./CRBrlGZW.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]),import.meta.url))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>c(()=>import("./CquLrc37.js"),__vite__mapDeps([17,18]),import.meta.url))},{id:"c",name:"C",import:(()=>c(()=>import("./BIGW1oBm.js"),[],import.meta.url))},{id:"c3",name:"C3",import:(()=>c(()=>import("./eo99z4R2.js"),[],import.meta.url))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>c(()=>import("./Bv_4Rxtq.js"),[],import.meta.url))},{id:"cairo",name:"Cairo",import:(()=>c(()=>import("./CO1LY3CK.js"),__vite__mapDeps([19,20]),import.meta.url))},{id:"clarity",name:"Clarity",import:(()=>c(()=>import("./D53aC0YG.js"),[],import.meta.url))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>c(()=>import("./P80f7IUj.js"),[],import.meta.url))},{id:"cmake",name:"CMake",import:(()=>c(()=>import("./D1j8_8rp.js"),[],import.meta.url))},{id:"cobol",name:"COBOL",import:(()=>c(()=>import("./lBpI9LM0.js"),__vite__mapDeps([21,1,2,3,8]),import.meta.url))},{id:"codeowners",name:"CODEOWNERS",import:(()=>c(()=>import("./Bp6g37R7.js"),[],import.meta.url))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>c(()=>import("./DsOJ9woJ.js"),[],import.meta.url))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>c(()=>import("./CxbxFI8M.js"),__vite__mapDeps([22,2]),import.meta.url))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>c(()=>import("./Cg-RD9OK.js"),[],import.meta.url))},{id:"coq",name:"Coq",import:(()=>c(()=>import("./DkFqJrB1.js"),[],import.meta.url))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>c(()=>import("./Bp3cYrEr.js"),__vite__mapDeps([23,24,25,26,16]),import.meta.url))},{id:"crystal",name:"Crystal",import:(()=>c(()=>import("./CANp3yme.js"),__vite__mapDeps([27,1,2,3,16,26,28]),import.meta.url))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>c(()=>import("./COcwbKMJ.js"),[],import.meta.url))},{id:"css",name:"CSS",import:(()=>c(()=>import("./CLj8gQPS.js"),[],import.meta.url))},{id:"csv",name:"CSV",import:(()=>c(()=>import("./fuZLfV_i.js"),[],import.meta.url))},{id:"cue",name:"CUE",import:(()=>c(()=>import("./D82EKSYY.js"),[],import.meta.url))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>c(()=>import("./COkxafJQ.js"),[],import.meta.url))},{id:"d",name:"D",import:(()=>c(()=>import("./85-TOEBH.js"),[],import.meta.url))},{id:"dart",name:"Dart",import:(()=>c(()=>import("./bE4Kk8sk.js"),[],import.meta.url))},{id:"dax",name:"DAX",import:(()=>c(()=>import("./CEL-wOlO.js"),[],import.meta.url))},{id:"desktop",name:"Desktop",import:(()=>c(()=>import("./BmXAJ9_W.js"),[],import.meta.url))},{id:"diff",name:"Diff",import:(()=>c(()=>import("./D97Zzqfu.js"),[],import.meta.url))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>c(()=>import("./BcOcwvcX.js"),[],import.meta.url))},{id:"dotenv",name:"dotEnv",import:(()=>c(()=>import("./Da5cRb03.js"),[],import.meta.url))},{id:"dream-maker",name:"Dream Maker",import:(()=>c(()=>import("./BtqSS_iP.js"),[],import.meta.url))},{id:"edge",name:"Edge",import:(()=>c(()=>import("./BfSCyJF4.js"),__vite__mapDeps([29,11,1,2,3,15]),import.meta.url))},{id:"elixir",name:"Elixir",import:(()=>c(()=>import("./BqNa2AkI.js"),__vite__mapDeps([30,1,2,3]),import.meta.url))},{id:"elm",name:"Elm",import:(()=>c(()=>import("./CeZK1NFH.js"),__vite__mapDeps([31,25,26]),import.meta.url))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>c(()=>import("./CXvaQtF9.js"),[],import.meta.url))},{id:"erb",name:"ERB",import:(()=>c(()=>import("./D8rZpOte.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>c(()=>import("./CuPHTKiy.js"),__vite__mapDeps([39,40]),import.meta.url))},{id:"fennel",name:"Fennel",import:(()=>c(()=>import("./BYunw83y.js"),[],import.meta.url))},{id:"fish",name:"Fish",import:(()=>c(()=>import("./BvzEVeQv.js"),[],import.meta.url))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>c(()=>import("./C4IJs8-o.js"),[],import.meta.url))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>c(()=>import("./B7c-h3xW.js"),__vite__mapDeps([41,42]),import.meta.url))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>c(()=>import("./BxgE0vQu.js"),[],import.meta.url))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>c(()=>import("./BTifaqeh.js"),__vite__mapDeps([43,40]),import.meta.url))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>c(()=>import("./CenWIFCC.js"),__vite__mapDeps([44,45,46]),import.meta.url))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>c(()=>import("./C5YyOfLZ.js"),[],import.meta.url))},{id:"gdshader",name:"GDShader",import:(()=>c(()=>import("./DkwncUOv.js"),[],import.meta.url))},{id:"genie",name:"Genie",import:(()=>c(()=>import("./D0YGMca9.js"),[],import.meta.url))},{id:"gherkin",name:"Gherkin",import:(()=>c(()=>import("./DyxjwDmM.js"),[],import.meta.url))},{id:"git-commit",name:"Git Commit Message",import:(()=>c(()=>import("./CxGSJlkm.js"),__vite__mapDeps([47,48]),import.meta.url))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>c(()=>import("./CSXwinHm.js"),__vite__mapDeps([49,28]),import.meta.url))},{id:"gleam",name:"Gleam",import:(()=>c(()=>import("./BspZqrRM.js"),[],import.meta.url))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>c(()=>import("./DZ9PSxVF.js"),__vite__mapDeps([50,2,11,3,1]),import.meta.url))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>c(()=>import("./CDBrVQLm.js"),__vite__mapDeps([51,11,3,2,1]),import.meta.url))},{id:"glsl",name:"GLSL",import:(()=>c(()=>import("./DZxFcAj9.js"),__vite__mapDeps([25,26]),import.meta.url))},{id:"gn",name:"GN",import:(()=>c(()=>import("./n2N0HUVH.js"),[],import.meta.url))},{id:"gnuplot",name:"Gnuplot",import:(()=>c(()=>import("./DdkO51Og.js"),[],import.meta.url))},{id:"go",name:"Go",import:(()=>c(()=>import("./C27-OAKa.js"),[],import.meta.url))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>c(()=>import("./C9oPPf7i.js"),__vite__mapDeps([35,2,11,36,13]),import.meta.url))},{id:"groovy",name:"Groovy",import:(()=>c(()=>import("./gcz8RCvz.js"),[],import.meta.url))},{id:"hack",name:"Hack",import:(()=>c(()=>import("./DnF83RMp.js"),__vite__mapDeps([52,1,2,3,16]),import.meta.url))},{id:"haml",name:"Ruby Haml",import:(()=>c(()=>import("./D2j5LXpq.js"),__vite__mapDeps([34,2,3]),import.meta.url))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>c(()=>import("./CcsQSqEB.js"),__vite__mapDeps([53,1,2,3,38]),import.meta.url))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>c(()=>import("./Df6bDoY_.js"),[],import.meta.url))},{id:"haxe",name:"Haxe",import:(()=>c(()=>import("./CzTSHFRz.js"),[],import.meta.url))},{id:"hcl",name:"HashiCorp HCL",import:(()=>c(()=>import("./BWvSN4gD.js"),[],import.meta.url))},{id:"hjson",name:"Hjson",import:(()=>c(()=>import("./D5-asLiD.js"),[],import.meta.url))},{id:"hlsl",name:"HLSL",import:(()=>c(()=>import("./D3lLCCz7.js"),[],import.meta.url))},{id:"html",name:"HTML",import:(()=>c(()=>import("./DSSpBswy.js"),__vite__mapDeps([1,2,3]),import.meta.url))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>c(()=>import("./Cp8Y5tLI.js"),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:"http",name:"HTTP",import:(()=>c(()=>import("./CufHLc7y.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]),import.meta.url))},{id:"hurl",name:"Hurl",import:(()=>c(()=>import("./CYsAdtH9.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]),import.meta.url))},{id:"hxml",name:"HXML",import:(()=>c(()=>import("./DWrx1Km3.js"),__vite__mapDeps([57,58]),import.meta.url))},{id:"hy",name:"Hy",import:(()=>c(()=>import("./DFXneXwc.js"),[],import.meta.url))},{id:"imba",name:"Imba",import:(()=>c(()=>import("./DGztddWO.js"),[],import.meta.url))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>c(()=>import("./BEwlwnbL.js"),[],import.meta.url))},{id:"java",name:"Java",import:(()=>c(()=>import("./CylS5w8V.js"),[],import.meta.url))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>c(()=>import("./wDzz0qaB.js"),[],import.meta.url))},{id:"jinja",name:"Jinja",import:(()=>c(()=>import("./5VeTt0Ye.js"),__vite__mapDeps([59,1,2,3]),import.meta.url))},{id:"jison",name:"Jison",import:(()=>c(()=>import("./Br6cN0cg.js"),__vite__mapDeps([60,2]),import.meta.url))},{id:"json",name:"JSON",import:(()=>c(()=>import("./Cp-IABpG.js"),[],import.meta.url))},{id:"json5",name:"JSON5",import:(()=>c(()=>import("./C9tS-k6U.js"),[],import.meta.url))},{id:"jsonc",name:"JSON with Comments",import:(()=>c(()=>import("./Des-eS-w.js"),[],import.meta.url))},{id:"jsonl",name:"JSON Lines",import:(()=>c(()=>import("./DcaNXYhu.js"),[],import.meta.url))},{id:"jsonnet",name:"Jsonnet",import:(()=>c(()=>import("./DFQXde-d.js"),[],import.meta.url))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>c(()=>import("./C2t-YnRu.js"),[],import.meta.url))},{id:"jsx",name:"JSX",import:(()=>c(()=>import("./g9-lgVsj.js"),[],import.meta.url))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>c(()=>import("./W9tJ9s81.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]),import.meta.url))},{id:"just",name:"Just",import:(()=>c(()=>import("./JZbLTBME.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38]),import.meta.url))},{id:"kdl",name:"KDL",import:(()=>c(()=>import("./DV7GczEv.js"),[],import.meta.url))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>c(()=>import("./BdnUsdx6.js"),[],import.meta.url))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>c(()=>import("./wEQ09or8.js"),[],import.meta.url))},{id:"latex",name:"LaTeX",import:(()=>c(()=>import("./oH_c3LbQ.js"),__vite__mapDeps([65,66,62]),import.meta.url))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>c(()=>import("./BZvkOJ9d.js"),[],import.meta.url))},{id:"less",name:"Less",import:(()=>c(()=>import("./B1dDrJ26.js"),[],import.meta.url))},{id:"liquid",name:"Liquid",import:(()=>c(()=>import("./DcWK9jms.js"),__vite__mapDeps([67,1,2,3,9]),import.meta.url))},{id:"llvm",name:"LLVM IR",import:(()=>c(()=>import("./DjAJT7YJ.js"),[],import.meta.url))},{id:"log",name:"Log file",import:(()=>c(()=>import("./2UxHyX5q.js"),[],import.meta.url))},{id:"logo",name:"Logo",import:(()=>c(()=>import("./BtOb2qkB.js"),[],import.meta.url))},{id:"lua",name:"Lua",import:(()=>c(()=>import("./CnsnAmq5.js"),__vite__mapDeps([37,26]),import.meta.url))},{id:"luau",name:"Luau",import:(()=>c(()=>import("./C-HG3fhB.js"),[],import.meta.url))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>c(()=>import("./CHLpvVh8.js"),[],import.meta.url))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>c(()=>import("./Cvjx9yec.js"),[],import.meta.url))},{id:"marko",name:"Marko",import:(()=>c(()=>import("./CBaQQc7g.js"),__vite__mapDeps([68,3,69,5,11]),import.meta.url))},{id:"matlab",name:"MATLAB",import:(()=>c(()=>import("./D7o27uSR.js"),[],import.meta.url))},{id:"mdc",name:"MDC",import:(()=>c(()=>import("./BeJSdlF9.js"),__vite__mapDeps([70,40,38,15,1,2,3]),import.meta.url))},{id:"mdx",name:"MDX",import:(()=>c(()=>import("./Cmh6b_Ma.js"),[],import.meta.url))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>c(()=>import("./mWjccvbQ.js"),[],import.meta.url))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>c(()=>import("./CKIfxQSi.js"),[],import.meta.url))},{id:"mojo",name:"Mojo",import:(()=>c(()=>import("./rZm6bMo-.js"),[],import.meta.url))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>c(()=>import("./_H4v1dQx.js"),[],import.meta.url))},{id:"move",name:"Move",import:(()=>c(()=>import("./IF9eRakj.js"),[],import.meta.url))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>c(()=>import("./DRg8JJMk.js"),[],import.meta.url))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>c(()=>import("./BcllPdc-.js"),__vite__mapDeps([71,72]),import.meta.url))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>c(()=>import("./vE_lwT2v.js"),[],import.meta.url))},{id:"nginx",name:"Nginx",import:(()=>c(()=>import("./Dph4kLrZ.js"),__vite__mapDeps([73,37,26]),import.meta.url))},{id:"nim",name:"Nim",import:(()=>c(()=>import("./D3apom_0.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40]),import.meta.url))},{id:"nix",name:"Nix",import:(()=>c(()=>import("./CwoSXNpI.js"),[],import.meta.url))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>c(()=>import("./Cz2AlsmD.js"),[],import.meta.url))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>c(()=>import("./DXmwc3jG.js"),[],import.meta.url))},{id:"objective-cpp",name:"Objective-C++",import:(()=>c(()=>import("./CLxacb5B.js"),[],import.meta.url))},{id:"ocaml",name:"OCaml",import:(()=>c(()=>import("./C0hk2d4L.js"),[],import.meta.url))},{id:"odin",name:"Odin",import:(()=>c(()=>import("./BBf5iR-q.js"),[],import.meta.url))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>c(()=>import("./C4EeE6gA.js"),[],import.meta.url))},{id:"pascal",name:"Pascal",import:(()=>c(()=>import("./D93ZcfNL.js"),[],import.meta.url))},{id:"perl",name:"Perl",import:(()=>c(()=>import("./B6eN_cS4.js"),__vite__mapDeps([64,1,2,3,7,8,16]),import.meta.url))},{id:"php",name:"PHP",import:(()=>c(()=>import("./BhrAK1vL.js"),__vite__mapDeps([75,1,2,3,7,8,16,9]),import.meta.url))},{id:"pkl",name:"Pkl",import:(()=>c(()=>import("./u5AG7uiY.js"),[],import.meta.url))},{id:"plsql",name:"PL/SQL",import:(()=>c(()=>import("./ChMvpjG-.js"),[],import.meta.url))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>c(()=>import("./BTJTHyun.js"),[],import.meta.url))},{id:"polar",name:"Polar",import:(()=>c(()=>import("./C0HS_06l.js"),[],import.meta.url))},{id:"postcss",name:"PostCSS",import:(()=>c(()=>import("./CXtECtnM.js"),[],import.meta.url))},{id:"powerquery",name:"PowerQuery",import:(()=>c(()=>import("./CEu0bR-o.js"),[],import.meta.url))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>c(()=>import("./Dpen1YoG.js"),[],import.meta.url))},{id:"prisma",name:"Prisma",import:(()=>c(()=>import("./Dd19v3D-.js"),[],import.meta.url))},{id:"prolog",name:"Prolog",import:(()=>c(()=>import("./CbFg5uaA.js"),[],import.meta.url))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>c(()=>import("./C7zT0LnQ.js"),[],import.meta.url))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>c(()=>import("./Dc-5oQ3p.js"),__vite__mapDeps([76,2,3,1]),import.meta.url))},{id:"puppet",name:"Puppet",import:(()=>c(()=>import("./BMWR74SV.js"),[],import.meta.url))},{id:"purescript",name:"PureScript",import:(()=>c(()=>import("./CklMAg4u.js"),[],import.meta.url))},{id:"python",name:"Python",aliases:["py"],import:(()=>c(()=>import("./B6aJPvgy.js"),[],import.meta.url))},{id:"qml",name:"QML",import:(()=>c(()=>import("./BVQ-GDCI.js"),__vite__mapDeps([77,2]),import.meta.url))},{id:"qmldir",name:"QML Directory",import:(()=>c(()=>import("./C8lEn-DE.js"),[],import.meta.url))},{id:"qss",name:"Qt Style Sheets",import:(()=>c(()=>import("./IeuSbFQv.js"),[],import.meta.url))},{id:"r",name:"R",import:(()=>c(()=>import("./Dspwwk_N.js"),[],import.meta.url))},{id:"racket",name:"Racket",import:(()=>c(()=>import("./BqYA7rlc.js"),[],import.meta.url))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>c(()=>import("./DXvB9xmW.js"),[],import.meta.url))},{id:"razor",name:"ASP.NET Razor",import:(()=>c(()=>import("./DbWOdLaN.js"),__vite__mapDeps([78,1,2,3,79]),import.meta.url))},{id:"reg",name:"Windows Registry Script",import:(()=>c(()=>import("./C-SQnVFl.js"),[],import.meta.url))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>c(()=>import("./CDVJQ6XC.js"),[],import.meta.url))},{id:"rel",name:"Rel",import:(()=>c(()=>import("./C3B-1QV4.js"),[],import.meta.url))},{id:"riscv",name:"RISC-V",import:(()=>c(()=>import("./BM1_JUlF.js"),[],import.meta.url))},{id:"ron",name:"RON",import:(()=>c(()=>import("./D8l8udqQ.js"),[],import.meta.url))},{id:"rosmsg",name:"ROS Interface",import:(()=>c(()=>import("./BJDFO7_C.js"),[],import.meta.url))},{id:"rst",name:"reStructuredText",import:(()=>c(()=>import("./DWX1VroF.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37]),import.meta.url))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>c(()=>import("./8syuri0t.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>c(()=>import("./B1yitclQ.js"),[],import.meta.url))},{id:"sas",name:"SAS",import:(()=>c(()=>import("./CG8Ifv2g.js"),__vite__mapDeps([82,16]),import.meta.url))},{id:"sass",name:"Sass",import:(()=>c(()=>import("./Cj5Yp3dK.js"),[],import.meta.url))},{id:"scala",name:"Scala",import:(()=>c(()=>import("./C151Ov-r.js"),[],import.meta.url))},{id:"scheme",name:"Scheme",import:(()=>c(()=>import("./C98Dy4si.js"),[],import.meta.url))},{id:"scss",name:"SCSS",import:(()=>c(()=>import("./DT3CNIhV.js"),__vite__mapDeps([5,3]),import.meta.url))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>c(()=>import("./DVxCFoDh.js"),[],import.meta.url))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>c(()=>import("./BqTXFGrv.js"),__vite__mapDeps([83,84]),import.meta.url))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>c(()=>import("./Yzrsuije.js"),[],import.meta.url))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>c(()=>import("./Cq5zzVJU.js"),__vite__mapDeps([85,28]),import.meta.url))},{id:"smalltalk",name:"Smalltalk",import:(()=>c(()=>import("./BERRCDM3.js"),[],import.meta.url))},{id:"solidity",name:"Solidity",import:(()=>c(()=>import("./rGO070M0.js"),[],import.meta.url))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>c(()=>import("./Cs0ovY-E.js"),__vite__mapDeps([86,1,2,3]),import.meta.url))},{id:"sparql",name:"SPARQL",import:(()=>c(()=>import("./BRZ36xJF.js"),__vite__mapDeps([87,88]),import.meta.url))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>c(()=>import("./BtCnVYZw.js"),[],import.meta.url))},{id:"sql",name:"SQL",import:(()=>c(()=>import("./BLtJtn59.js"),[],import.meta.url))},{id:"ssh-config",name:"SSH Config",import:(()=>c(()=>import("./_ykCGR6B.js"),[],import.meta.url))},{id:"stata",name:"Stata",import:(()=>c(()=>import("./DM8c43g1.js"),__vite__mapDeps([89,16]),import.meta.url))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>c(()=>import("./BEDo0Tqx.js"),[],import.meta.url))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>c(()=>import("./BH7IYjvW.js"),__vite__mapDeps([90,2]),import.meta.url))},{id:"svelte",name:"Svelte",import:(()=>c(()=>import("./DhaVEd23.js"),__vite__mapDeps([91,2,11,3,12]),import.meta.url))},{id:"swift",name:"Swift",import:(()=>c(()=>import("./D82vCrfD.js"),[],import.meta.url))},{id:"system-verilog",name:"SystemVerilog",import:(()=>c(()=>import("./CnnmHF94.js"),[],import.meta.url))},{id:"systemd",name:"Systemd Units",import:(()=>c(()=>import("./4A_iFExJ.js"),[],import.meta.url))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>c(()=>import("./CkByrt1z.js"),[],import.meta.url))},{id:"tasl",name:"Tasl",import:(()=>c(()=>import("./QIJgUcNo.js"),[],import.meta.url))},{id:"tcl",name:"Tcl",import:(()=>c(()=>import("./dwOrl1Do.js"),[],import.meta.url))},{id:"templ",name:"Templ",import:(()=>c(()=>import("./BVkGXMyj.js"),__vite__mapDeps([92,93,2,3]),import.meta.url))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>c(()=>import("./BETggiCN.js"),[],import.meta.url))},{id:"tex",name:"TeX",import:(()=>c(()=>import("./C5BYcBs_.js"),__vite__mapDeps([66,62]),import.meta.url))},{id:"toml",name:"TOML",import:(()=>c(()=>import("./vGWfd6FD.js"),[],import.meta.url))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>c(()=>import("./C7UmGho8.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8]),import.meta.url))},{id:"tsv",name:"TSV",import:(()=>c(()=>import("./B_m7g4N7.js"),[],import.meta.url))},{id:"tsx",name:"TSX",import:(()=>c(()=>import("./COt5Ahok.js"),[],import.meta.url))},{id:"turtle",name:"Turtle",import:(()=>c(()=>import("./BsS91CYL.js"),[],import.meta.url))},{id:"twig",name:"Twig",import:(()=>c(()=>import("./DN-Z_aST.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]),import.meta.url))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>c(()=>import("./BPQ3VLAy.js"),[],import.meta.url))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>c(()=>import("./CAFt9gP4.js"),[],import.meta.url))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>c(()=>import("./DHCkPAjA.js"),[],import.meta.url))},{id:"v",name:"V",import:(()=>c(()=>import("./BcVCzyr7.js"),[],import.meta.url))},{id:"vala",name:"Vala",import:(()=>c(()=>import("./CsfeWuGM.js"),[],import.meta.url))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>c(()=>import("./D17OF-Vu.js"),[],import.meta.url))},{id:"verilog",name:"Verilog",import:(()=>c(()=>import("./BQ8w6xss.js"),[],import.meta.url))},{id:"vhdl",name:"VHDL",import:(()=>c(()=>import("./CeAyd5Ju.js"),[],import.meta.url))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>c(()=>import("./CJc9bBzg.js"),[],import.meta.url))},{id:"vue",name:"Vue",import:(()=>c(()=>import("./DfNjGIrv.js"),__vite__mapDeps([96,3,2,11,9,1,15]),import.meta.url))},{id:"vue-html",name:"Vue HTML",import:(()=>c(()=>import("./DqQDbK_p.js"),__vite__mapDeps([97,2]),import.meta.url))},{id:"vue-vine",name:"Vue Vine",import:(()=>c(()=>import("./B5q1GTce.js"),__vite__mapDeps([98,3,5,69,99,12,2]),import.meta.url))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>c(()=>import("./CDx5xZoG.js"),[],import.meta.url))},{id:"wasm",name:"WebAssembly",import:(()=>c(()=>import("./MzD3tlZU.js"),[],import.meta.url))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>c(()=>import("./BV7otONQ.js"),[],import.meta.url))},{id:"wgsl",name:"WGSL",import:(()=>c(()=>import("./Dx-B1_4e.js"),[],import.meta.url))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>c(()=>import("./BhOHFoWU.js"),[],import.meta.url))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>c(()=>import("./5i3qLPDT.js"),[],import.meta.url))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>c(()=>import("./lXgVvXCa.js"),[],import.meta.url))},{id:"xml",name:"XML",import:(()=>c(()=>import("./BGJmEYvX.js"),__vite__mapDeps([7,8]),import.meta.url))},{id:"xsl",name:"XSL",import:(()=>c(()=>import("./yv6CvBhz.js"),__vite__mapDeps([100,7,8]),import.meta.url))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>c(()=>import("./Buea-lGh.js"),[],import.meta.url))},{id:"zenscript",name:"ZenScript",import:(()=>c(()=>import("./DVFEvuxE.js"),[],import.meta.url))},{id:"zig",name:"Zig",import:(()=>c(()=>import("./VOosw3JB.js"),[],import.meta.url))}],Zt=Object.fromEntries(rt.map(e=>[e.id,e.import])),Yt=Object.fromEntries(rt.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),er={...Zt,...Yt},tr=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>c(()=>import("./C4gqWexZ.js"),[],import.meta.url))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>c(()=>import("./D-2ljcwZ.js"),[],import.meta.url))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>c(()=>import("./DYE7WIF3.js"),[],import.meta.url))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>c(()=>import("./BA47KaF1.js"),[],import.meta.url))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>c(()=>import("./32ctXXKs.js"),[],import.meta.url))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>c(()=>import("./DFWUc33u.js"),[],import.meta.url))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>c(()=>import("./C9dUb6Cb.js"),[],import.meta.url))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>c(()=>import("./DQyhUUbL.js"),[],import.meta.url))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>c(()=>import("./D87Tk5Gz.js"),[],import.meta.url))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>c(()=>import("./C3mMm8J8.js"),[],import.meta.url))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>c(()=>import("./BzJJZx-M.js"),[],import.meta.url))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>c(()=>import("./BXkSAIEj.js"),[],import.meta.url))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>c(()=>import("./BgDCqdQA.js"),[],import.meta.url))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>c(()=>import("./C8M2exoo.js"),[],import.meta.url))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>c(()=>import("./DHJKELXO.js"),[],import.meta.url))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>c(()=>import("./Cuk6v7N8.js"),[],import.meta.url))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>c(()=>import("./DH5Ifo-i.js"),[],import.meta.url))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>c(()=>import("./E3gJ1_iC.js"),[],import.meta.url))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>c(()=>import("./DAi9KRSo.js"),[],import.meta.url))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>c(()=>import("./D7oLnXFd.js"),[],import.meta.url))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>c(()=>import("./BfjtVDDH.js"),[],import.meta.url))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>c(()=>import("./CFHQjOhq.js"),[],import.meta.url))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>c(()=>import("./GsRaNv29.js"),[],import.meta.url))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>c(()=>import("./CVdnzihN.js"),[],import.meta.url))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>c(()=>import("./CH1njM8p.js"),[],import.meta.url))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>c(()=>import("./DRw_LuNl.js"),[],import.meta.url))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>c(()=>import("./hJgmCMqR.js"),[],import.meta.url))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>c(()=>import("./BUw7H-hv.js"),[],import.meta.url))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>c(()=>import("./CUuTKBJd.js"),[],import.meta.url))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>c(()=>import("./DnULxvSX.js"),[],import.meta.url))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>c(()=>import("./CkXjmgJE.js"),[],import.meta.url))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>c(()=>import("./CfQXZHmo.js"),[],import.meta.url))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>c(()=>import("./DWedfzmr.js"),[],import.meta.url))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>c(()=>import("./DUszq2jm.js"),[],import.meta.url))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>c(()=>import("./B7mTdjB0.js"),[],import.meta.url))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>c(()=>import("./D5KoaKCx.js"),[],import.meta.url))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>c(()=>import("./BfHTSMKl.js"),[],import.meta.url))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>c(()=>import("./B0m2ddpp.js"),[],import.meta.url))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>c(()=>import("./CyktbL80.js"),[],import.meta.url))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>c(()=>import("./Csfq5Kiy.js"),[],import.meta.url))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>c(()=>import("./CafNBF8u.js"),[],import.meta.url))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>c(()=>import("./CTRr51gU.js"),[],import.meta.url))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>c(()=>import("./D4h5O-jR.js"),[],import.meta.url))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>c(()=>import("./C39BiMTA.js"),[],import.meta.url))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>c(()=>import("./CMTm3GFP.js"),[],import.meta.url))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>c(()=>import("./Ddv68eIx.js"),[],import.meta.url))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>c(()=>import("./DVMEJ2y_.js"),[],import.meta.url))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>c(()=>import("./C3Wv6jpd.js"),[],import.meta.url))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>c(()=>import("./3e1v2bzS.js"),[],import.meta.url))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>c(()=>import("./CS3Unz2-.js"),[],import.meta.url))},{id:"red",displayName:"Red",type:"dark",import:(()=>c(()=>import("./bN70gL4F.js"),[],import.meta.url))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>c(()=>import("./qdsjHGoJ.js"),[],import.meta.url))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>c(()=>import("./DHQR4-dF.js"),[],import.meta.url))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>c(()=>import("./D4_iv3hh.js"),[],import.meta.url))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>c(()=>import("./BthQWCQV.js"),[],import.meta.url))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>c(()=>import("./DqwNpetd.js"),[],import.meta.url))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>c(()=>import("./Bw305WKR.js"),[],import.meta.url))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>c(()=>import("./DXbdFlpD.js"),[],import.meta.url))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>c(()=>import("./L9t79GZl.js"),[],import.meta.url))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>c(()=>import("./CbfX1IO0.js"),[],import.meta.url))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>c(()=>import("./hegEt444.js"),[],import.meta.url))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>c(()=>import("./DU1UobuO.js"),[],import.meta.url))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>c(()=>import("./Bkuqu6BP.js"),[],import.meta.url))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>c(()=>import("./D0r3Knsf.js"),[],import.meta.url))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>c(()=>import("./CVO1_9PV.js"),[],import.meta.url))}],rr=Object.fromEntries(tr.map(e=>[e.id,e.import]));var nr=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Ni(){return 2147483648}function Vi(){return typeof performance<"u"?performance.now():Date.now()}const $i=(e,t)=>e+(t-e%t)%t;async function Mi(e){let t,r;const n={};function i(d){r=d,n.HEAPU8=new Uint8Array(d),n.HEAPU32=new Uint32Array(d)}function o(d,f,b){n.HEAPU8.copyWithin(d,f,f+b)}function a(d){try{return t.grow(d-r.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(d){const f=n.HEAPU8.length;d=d>>>0;const b=Ni();if(d>b)return!1;for(let E=1;E<=4;E*=2){let g=f*(1+.2/E);g=Math.min(g,d+100663296);const _=Math.min(b,$i(Math.max(d,g),65536));if(a(_))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(d,f,b=1024){const E=f+b;let g=f;for(;d[g]&&!(g>=E);)++g;if(g-f>16&&d.buffer&&l)return l.decode(d.subarray(f,g));let _="";for(;f<g;){let w=d[f++];if(!(w&128)){_+=String.fromCharCode(w);continue}const A=d[f++]&63;if((w&224)===192){_+=String.fromCharCode((w&31)<<6|A);continue}const S=d[f++]&63;if((w&240)===224?w=(w&15)<<12|A<<6|S:w=(w&7)<<18|A<<12|S<<6|d[f++]&63,w<65536)_+=String.fromCharCode(w);else{const x=w-65536;_+=String.fromCharCode(55296|x>>10,56320|x&1023)}}return _}function m(d,f){return d?u(n.HEAPU8,d,f):""}const p={emscripten_get_now:Vi,emscripten_memcpy_big:o,emscripten_resize_heap:s,fd_write:()=>0};async function h(){const f=await e({env:p,wasi_snapshot_preview1:p});t=f.memory,i(t.buffer),Object.assign(n,f),n.UTF8ToString=m}return await h(),n}var Gi=Object.defineProperty,Bi=(e,t,r)=>t in e?Gi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t,r)=>Bi(e,typeof t!="symbol"?t+"":t,r);let D=null;function Ui(e){throw new nr(e.UTF8ToString(e.getLastOnigError()))}class nt{constructor(t){T(this,"utf16Length"),T(this,"utf8Length"),T(this,"utf16Value"),T(this,"utf8Value"),T(this,"utf16OffsetToUtf8"),T(this,"utf8OffsetToUtf16");const r=t.length,n=nt._utf8ByteLength(t),i=n!==r,o=i?new Uint32Array(r+1):null;i&&(o[r]=n);const a=i?new Uint32Array(n+1):null;i&&(a[n]=r);const s=new Uint8Array(n);let l=0;for(let u=0;u<r;u++){const m=t.charCodeAt(u);let p=m,h=!1;if(m>=55296&&m<=56319&&u+1<r){const d=t.charCodeAt(u+1);d>=56320&&d<=57343&&(p=(m-55296<<10)+65536|d-56320,h=!0)}i&&(o[u]=l,h&&(o[u+1]=l),p<=127?a[l+0]=u:p<=2047?(a[l+0]=u,a[l+1]=u):p<=65535?(a[l+0]=u,a[l+1]=u,a[l+2]=u):(a[l+0]=u,a[l+1]=u,a[l+2]=u,a[l+3]=u)),p<=127?s[l++]=p:p<=2047?(s[l++]=192|(p&1984)>>>6,s[l++]=128|(p&63)>>>0):p<=65535?(s[l++]=224|(p&61440)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0):(s[l++]=240|(p&1835008)>>>18,s[l++]=128|(p&258048)>>>12,s[l++]=128|(p&4032)>>>6,s[l++]=128|(p&63)>>>0),h&&u++}this.utf16Length=r,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=a}static _utf8ByteLength(t){let r=0;for(let n=0,i=t.length;n<i;n++){const o=t.charCodeAt(n);let a=o,s=!1;if(o>=55296&&o<=56319&&n+1<i){const l=t.charCodeAt(n+1);l>=56320&&l<=57343&&(a=(o-55296<<10)+65536|l-56320,s=!0)}a<=127?r+=1:a<=2047?r+=2:a<=65535?r+=3:r+=4,s&&n++}return r}createString(t){const r=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,r),r}}const it=class z{constructor(t){if(T(this,"id",++z.LAST_ID),T(this,"_onigBinding"),T(this,"content"),T(this,"utf16Length"),T(this,"utf8Length"),T(this,"utf16OffsetToUtf8"),T(this,"utf8OffsetToUtf16"),T(this,"ptr"),!D)throw new nr("Must invoke loadWasm first.");this._onigBinding=D,this.content=t;const r=new nt(t);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!z._sharedPtrInUse?(z._sharedPtr||(z._sharedPtr=D.omalloc(1e4)),z._sharedPtrInUse=!0,D.HEAPU8.set(r.utf8Value,z._sharedPtr),this.ptr=z._sharedPtr):this.ptr=r.createString(D)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===z._sharedPtr?z._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};T(it,"LAST_ID",0);T(it,"_sharedPtr",0);T(it,"_sharedPtrInUse",!1);let un=it;class Fi{constructor(t){if(T(this,"_onigBinding"),T(this,"_ptr"),!D)throw new nr("Must invoke loadWasm first.");const r=[],n=[];for(let s=0,l=t.length;s<l;s++){const u=new nt(t[s]);r[s]=u.createString(D),n[s]=u.utf8Length}const i=D.omalloc(4*t.length);D.HEAPU32.set(r,i/4);const o=D.omalloc(4*t.length);D.HEAPU32.set(n,o/4);const a=D.createOnigScanner(i,o,t.length);for(let s=0,l=t.length;s<l;s++)D.ofree(r[s]);D.ofree(o),D.ofree(i),a===0&&Ui(D),this._onigBinding=D,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,r,n){let i=0;if(typeof n=="number"&&(i=n),typeof t=="string"){t=new un(t);const o=this._findNextMatchSync(t,r,!1,i);return t.dispose(),o}return this._findNextMatchSync(t,r,!1,i)}_findNextMatchSync(t,r,n,i){const o=this._onigBinding,a=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(r),i);if(a===0)return null;const s=o.HEAPU32;let l=a/4;const u=s[l++],m=s[l++],p=[];for(let h=0;h<m;h++){const d=t.convertUtf8OffsetToUtf16(s[l++]),f=t.convertUtf8OffsetToUtf16(s[l++]);p[h]={start:d,end:f,length:f-d}}return{index:u,captureIndices:p}}}function ji(e){return typeof e.instantiator=="function"}function Hi(e){return typeof e.default=="function"}function Wi(e){return typeof e.data<"u"}function zi(e){return typeof Response<"u"&&e instanceof Response}function qi(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Ne;function ir(e){if(Ne)return Ne;async function t(){D=await Mi(async r=>{let n=e;return n=await n,typeof n=="function"&&(n=await n(r)),typeof n=="function"&&(n=await n(r)),ji(n)?n=await n.instantiator(r):Hi(n)?n=await n.default(r):(Wi(n)&&(n=n.data),zi(n)?typeof WebAssembly.instantiateStreaming=="function"?n=await Xi(n)(r):n=await Ki(n)(r):qi(n)?n=await gt(n)(r):n instanceof WebAssembly.Module?n=await gt(n)(r):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await gt(n.default)(r))),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}return Ne=t(),Ne}function gt(e){return t=>WebAssembly.instantiate(e,t)}function Xi(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ki(e){return async t=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,t)}}let cn;function Qi(e){cn=e}function Ji(){return cn}async function pn(e){return e&&await ir(e),{createScanner(t){return new Fi(t.map(r=>typeof r=="string"?r:r.source))},createString(t){return new un(t)}}}const Zi=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:pn,getDefaultWasmLoader:Ji,loadWasm:ir,setDefaultWasmLoader:Qi},Symbol.toStringTag,{value:"Module"}));var mn=Jt({});ln(mn,Zi);var k=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Yi(e){return or(e)}function or(e){return Array.isArray(e)?eo(e):e instanceof RegExp?e:typeof e=="object"?to(e):e}function eo(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=or(e[r]);return t}function to(e){let t={};for(let r in e)t[r]=or(e[r]);return t}function dn(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function hn(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?hn(e.substring(0,e.length-1)):e.substr(~t+1)}var _t=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ve=class{static hasCaptures(e){return e===null?!1:(_t.lastIndex=0,_t.test(e))}static replaceCaptures(e,t,r){return e.replace(_t,(n,i,o,a)=>{let s=r[parseInt(i||o,10)];if(s){let l=t.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function fn(e,t){return e<t?-1:e>t?1:0}function gn(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let i=0;i<r;i++){let o=fn(e[i],t[i]);if(o!==0)return o}return 0}return r-n}function Er(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function _n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var yn=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},We=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(io(e),t)}static createFromParsedTheme(e,t){return ao(e,t)}_cachedMatchRoot=new yn(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,n=this._cachedMatchRoot.get(t).find(i=>ro(e.parent,i.parentScopes));return n?new En(n.fontStyle,n.foreground,n.background):null}},yt=class Fe{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(const n of r)t=new Fe(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new Fe(r,t[n]);return r}push(t){return new Fe(this,t)}getSegments(){let t=this;const r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function ro(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],i=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],i=!0}for(;e&&!no(e.scopeName,n);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function no(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var En=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function io(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let i=0,o=t.length;i<o;i++){let a=t[i];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let p=a.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),s=p.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let p=a.settings.fontStyle.split(" ");for(let h=0,d=p.length;h<d;h++)switch(p[h]){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 u=null;typeof a.settings.foreground=="string"&&Er(a.settings.foreground)&&(u=a.settings.foreground);let m=null;typeof a.settings.background=="string"&&Er(a.settings.background)&&(m=a.settings.background);for(let p=0,h=s.length;p<h;p++){let f=s[p].trim().split(" "),b=f[f.length-1],E=null;f.length>1&&(E=f.slice(0,f.length-1),E.reverse()),r[n++]=new oo(b,E,i,l,u,m)}}return r}var oo=class{constructor(e,t,r,n,i,o){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=i,this.background=o}},$=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))($||{});function ao(e,t){e.sort((l,u)=>{let m=fn(l.scope,u.scope);return m!==0||(m=gn(l.parentScopes,u.parentScopes),m!==0)?m:l.index-u.index});let r=0,n="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(i=l.background)}let o=new so(t),a=new En(r,o.getId(n),o.getId(i)),s=new uo(new Ot(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let m=e[l];s.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new We(o,a,s)}var so=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},lo=Object.freeze([]),Ot=class bn{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,n,i,o){this.scopeDepth=t,this.parentScopes=r||lo,this.fontStyle=n,this.foreground=i,this.background=o}clone(){return new bn(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,i=t.length;n<i;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),i!==0&&(this.background=i)}},uo=class xt{constructor(t,r=[],n={}){this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,i=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[i]===">"&&i++,!(n>=t.parentScopes.length||i>=r.parentScopes.length);){const o=r.parentScopes[i].length-t.parentScopes[n].length;if(o!==0)return o;n++,i++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),i,o;if(n===-1?(i=t,o=""):(i=t.substring(0,n),o=t.substring(n+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(xt._cmpBySpecificity),r}insert(t,r,n,i,o,a){if(r===""){this._doInsertHere(t,n,i,o,a);return}let s=r.indexOf("."),l,u;s===-1?(l=r,u=""):(l=r.substring(0,s),u=r.substring(s+1));let m;this._children.hasOwnProperty(l)?m=this._children[l]:(m=new xt(this._mainRule.clone(),Ot.cloneArr(this._rulesWithParentScopes)),this._children[l]=m),m.insert(t+1,u,n,i,o,a)}_doInsertHere(t,r,n,i,o){if(r===null){this._mainRule.acceptOverwrite(t,n,i,o);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let l=this._rulesWithParentScopes[a];if(gn(l.parentScopes,r)===0){l.acceptOverwrite(t,n,i,o);return}}n===-1&&(n=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Ot(t,r,n,i,o))}},_e=class U{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const r=U.getLanguageId(t),n=U.getTokenType(t),i=U.getFontStyle(t),o=U.getForeground(t),a=U.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:a})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,i,o,a,s){let l=U.getLanguageId(t),u=U.getTokenType(t),m=U.containsBalancedBrackets(t)?1:0,p=U.getFontStyle(t),h=U.getForeground(t),d=U.getBackground(t);return r!==0&&(l=r),n!==8&&(u=n),i!==null&&(m=i?1:0),o!==-1&&(p=o),a!==0&&(h=a),s!==0&&(d=s),(l<<0|u<<8|m<<10|p<<11|h<<15|d<<24)>>>0}};function ze(e,t){const r=[],n=co(e);let i=n.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=n.next()}let u=a();if(r.push({matcher:u,priority:l}),i!==",")break;i=n.next()}return r;function o(){if(i==="-"){i=n.next();const l=o();return u=>!!l&&!l(u)}if(i==="("){i=n.next();const l=s();return i===")"&&(i=n.next()),l}if(br(i)){const l=[];do l.push(i),i=n.next();while(br(i));return u=>t(l,u)}return null}function a(){const l=[];let u=o();for(;u;)l.push(u),u=o();return m=>l.every(p=>p(m))}function s(){const l=[];let u=a();for(;u&&(l.push(u),i==="|"||i===",");){do i=n.next();while(i==="|"||i===",");u=a()}return m=>l.some(p=>p(m))}}function br(e){return!!e&&!!e.match(/[\w\.:]+/)}function co(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;const n=r[0];return r=t.exec(e),n}}}function wn(e){typeof e.dispose=="function"&&e.dispose()}var Le=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},po=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},mo=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},ho=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Le(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new mo;for(const r of e)fo(r,this.initialScopeName,this.repo,t);for(const r of t.references)if(r instanceof Le){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function fo(e,t,r,n){const i=r.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=r.lookup(t);e instanceof Le?je({baseGrammar:o,selfGrammar:i},n):Dt(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},n);const a=r.injections(e.scopeName);if(a)for(const s of a)n.add(new Le(s))}function Dt(e,t,r){if(t.repository&&t.repository[e]){const n=t.repository[e];qe([n],t,r)}}function je(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&qe(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&qe(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function qe(e,t,r){for(const n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);const i=n.repository?dn({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&qe(n.patterns,{...t,repository:i},r);const o=n.include;if(!o)continue;const a=vn(o);switch(a.kind){case 0:je({...t,selfGrammar:t.baseGrammar},r);break;case 1:je(t,r);break;case 2:Dt(a.ruleName,{...t,repository:i},r);break;case 3:case 4:const s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:i};a.kind===4?Dt(a.ruleName,l,r):je(l,r)}else a.kind===4?r.add(new po(a.scopeName,a.ruleName)):r.add(new Le(a.scopeName));break}}}var go=class{kind=0},_o=class{kind=1},yo=class{constructor(e){this.ruleName=e}kind=2},Eo=class{constructor(e){this.scopeName=e}kind=3},bo=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function vn(e){if(e==="$base")return new go;if(e==="$self")return new _o;const t=e.indexOf("#");if(t===-1)return new Eo(e);if(t===0)return new yo(e.substring(1));{const r=e.substring(0,t),n=e.substring(t+1);return new bo(r,n)}}var wo=/\\(\d+)/,wr=/\\(\d+)/g,vo=-1,Cn=-2;var Pe=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=Ve.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=Ve.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${hn(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Ve.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ve.replaceCaptures(this._contentName,e,t)}},Co=class extends Pe{retokenizeCapturedWithRuleId;constructor(e,t,r,n,i){super(e,t,r,n),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},Ao=class extends Pe{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,null),this._match=new ke(n,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ie,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vr=class extends Pe{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i){super(e,t,r,n),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ie,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Nt=class extends Pe{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,i,o,a,s,l,u){super(e,t,r,n),this._begin=new ke(i,this.id),this.beginCaptures=o,this._end=new ke(a||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ie;for(const 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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Xe=class extends Pe{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,i,o,a,s,l){super(e,t,r,n),this._begin=new ke(i,this.id),this.beginCaptures=o,this.whileCaptures=s,this._while=new ke(a,Cn),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ie;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ie,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},An=class V{static createCaptureRule(t,r,n,i,o){return t.registerRule(a=>new Co(r,a,n,i,o))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(i=>{if(t.id=i,t.match)return new Ao(t.$vscodeTextmateLocation,t.id,t.name,t.match,V._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=dn({},n,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new vr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,V._compilePatterns(o,r,n))}return t.while?new Xe(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,V._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,V._compileCaptures(t.whileCaptures||t.captures,r,n),V._compilePatterns(t.patterns,r,n)):new Nt(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,V._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,V._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,V._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let i=[];if(t){let o=0;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);s>o&&(o=s)}for(let a=0;a<=o;a++)i[a]=null;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const s=parseInt(a,10);let l=0;t[a].patterns&&(l=V.getCompiledRuleId(t[a],r,n)),i[s]=V.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,l)}}return i}static _compilePatterns(t,r,n){let i=[];if(t)for(let o=0,a=t.length;o<a;o++){const s=t[o];let l=-1;if(s.include){const u=vn(s.include);switch(u.kind){case 0:case 1:l=V.getCompiledRuleId(n[s.include],r,n);break;case 2:let m=n[u.ruleName];m&&(l=V.getCompiledRuleId(m,r,n));break;case 3:case 4:const p=u.scopeName,h=u.kind===4?u.ruleName:null,d=r.getExternalGrammar(p,n);if(d)if(h){let f=d.repository[h];f&&(l=V.getCompiledRuleId(f,r,d.repository))}else l=V.getCompiledRuleId(d.repository.$self,r,d.repository);break}}else l=V.getCompiledRuleId(s,r,n);if(l!==-1){const u=r.getRule(l);let m=!1;if((u instanceof vr||u instanceof Nt||u instanceof Xe)&&u.hasMissingPatterns&&u.patterns.length===0&&(m=!0),m)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},ke=class Sn{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,r){if(t&&typeof t=="string"){const n=t.length;let i=0,o=[],a=!1;for(let s=0;s<n;s++)if(t.charAt(s)==="\\"&&s+1<n){const u=t.charAt(s+1);u==="z"?(o.push(t.substring(i,s)),o.push("$(?!\\n)(?<!\\n)"),i=s+2):(u==="A"||u==="G")&&(a=!0),s++}this.hasAnchor=a,i===0?this.source=t:(o.push(t.substring(i,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=wo.test(this.source):this.hasBackReferences=!1}clone(){return new Sn(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(i=>t.substring(i.start,i.end));return wr.lastIndex=0,this.source.replace(wr,(i,o)=>_n(n[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 t=[],r=[],n=[],i=[],o,a,s,l;for(o=0,a=this.source.length;o<a;o++)s=this.source.charAt(o),t[o]=s,r[o]=s,n[o]=s,i[o]=s,s==="\\"&&o+1<a&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="￿",r[o+1]="￿",n[o+1]="A",i[o+1]="A"):l==="G"?(t[o+1]="￿",r[o+1]="G",n[o+1]="￿",i[o+1]="G"):(t[o+1]=l,r[o+1]=l,n[o+1]=l,i[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ie=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new Cr(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(i=>i.resolveAnchors(t,r));return new Cr(e,n,this._items.map(i=>i.ruleId))}},Cr=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
3
+ `)}findNextMatchSync(e,t,r){const n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},Et=class{constructor(e,t){this.languageId=e,this.tokenType=t}},So=class Vt{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new Et(t,8),this._embeddedLanguagesMatcher=new Lo(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Vt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Et(0,0);_getBasicScopeAttributes=new yn(t=>{const r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new Et(r,n)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const r=t.match(Vt.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Lo=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([r,n])=>_n(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Ar=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Ln(e,t,r,n,i,o,a,s){const l=t.content.length;let u=!1,m=-1;if(a){const d=ko(e,t,r,n,i,o);i=d.stack,n=d.linePos,r=d.isFirstLine,m=d.anchorPosition}const p=Date.now();for(;!u;){if(s!==0&&Date.now()-p>s)return new Ar(i,!0);h()}return new Ar(i,!1);function h(){const d=Io(e,t,r,n,i,m);if(!d){o.produce(i,l),u=!0;return}const f=d.captureIndices,b=d.matchedRuleId,E=f&&f.length>0?f[0].end>n:!1;if(b===vo){const g=i.getRule(e);o.produce(i,f[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ce(e,t,r,i,o,g.endCaptures,f),o.produce(i,f[0].end);const _=i;if(i=i.parent,m=_.getAnchorPos(),!E&&_.getEnterPos()===n){i=_,o.produce(i,l),u=!0;return}}else{const g=e.getRule(b);o.produce(i,f[0].start);const _=i,w=g.getName(t.content,f),A=i.contentNameScopesList.pushAttributed(w,e);if(i=i.push(b,n,m,f[0].end===l,null,A,A),g instanceof Nt){const S=g;Ce(e,t,r,i,o,S.beginCaptures,f),o.produce(i,f[0].end),m=f[0].end;const x=S.getContentName(t.content,f),M=A.pushAttributed(x,e);if(i=i.withContentNameScopesList(M),S.endHasBackReferences&&(i=i.withEndRule(S.getEndWithResolvedBackReferences(t.content,f))),!E&&_.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(g instanceof Xe){const S=g;Ce(e,t,r,i,o,S.beginCaptures,f),o.produce(i,f[0].end),m=f[0].end;const x=S.getContentName(t.content,f),M=A.pushAttributed(x,e);if(i=i.withContentNameScopesList(M),S.whileHasBackReferences&&(i=i.withEndRule(S.getWhileWithResolvedBackReferences(t.content,f))),!E&&_.hasSameRuleAs(i)){i=i.pop(),o.produce(i,l),u=!0;return}}else if(Ce(e,t,r,i,o,g.captures,f),o.produce(i,f[0].end),i=i.pop(),!E){i=i.safePop(),o.produce(i,l),u=!0;return}}f[0].end>n&&(n=f[0].end,r=!1)}}function ko(e,t,r,n,i,o){let a=i.beginRuleCapturedEOL?0:-1;const s=[];for(let l=i;l;l=l.pop()){const u=l.getRule(e);u instanceof Xe&&s.push({rule:u,stack:l})}for(let l=s.pop();l;l=s.pop()){const{ruleScanner:u,findOptions:m}=Po(l.rule,e,l.stack.endRule,r,n===a),p=u.findNextMatchSync(t,n,m);if(p){if(p.ruleId!==Cn){i=l.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(l.stack,p.captureIndices[0].start),Ce(e,t,r,l.stack,o,l.rule.whileCaptures,p.captureIndices),o.produce(l.stack,p.captureIndices[0].end),a=p.captureIndices[0].end,p.captureIndices[0].end>n&&(n=p.captureIndices[0].end,r=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:n,anchorPosition:a,isFirstLine:r}}function Io(e,t,r,n,i,o){const a=Ro(e,t,r,n,i,o),s=e.getInjections();if(s.length===0)return a;const l=To(s,e,t,r,n,i,o);if(!l)return a;if(!a)return l;const u=a.captureIndices[0].start,m=l.captureIndices[0].start;return m<u||l.priorityMatch&&m===u?l:a}function Ro(e,t,r,n,i,o){const a=i.getRule(e),{ruleScanner:s,findOptions:l}=kn(a,e,i.endRule,r,n===o),u=s.findNextMatchSync(t,n,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function To(e,t,r,n,i,o,a){let s=Number.MAX_VALUE,l=null,u,m=0;const p=o.contentNameScopesList.getScopeNames();for(let h=0,d=e.length;h<d;h++){const f=e[h];if(!f.matcher(p))continue;const b=t.getRule(f.ruleId),{ruleScanner:E,findOptions:g}=kn(b,t,null,n,i===a),_=E.findNextMatchSync(r,i,g);if(!_)continue;const w=_.captureIndices[0].start;if(!(w>=s)&&(s=w,l=_.captureIndices,u=_.ruleId,m=f.priority,s===i))break}return l?{priorityMatch:m===-1,captureIndices:l,matchedRuleId:u}:null}function kn(e,t,r,n,i){return{ruleScanner:e.compileAG(t,r,n,i),findOptions:0}}function Po(e,t,r,n,i){return{ruleScanner:e.compileWhileAG(t,r,n,i),findOptions:0}}function Ce(e,t,r,n,i,o,a){if(o.length===0)return;const s=t.content,l=Math.min(o.length,a.length),u=[],m=a[0].end;for(let p=0;p<l;p++){const h=o[p];if(h===null)continue;const d=a[p];if(d.length===0)continue;if(d.start>m)break;for(;u.length>0&&u[u.length-1].endPos<=d.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,d.start):i.produce(n,d.start),h.retokenizeCapturedWithRuleId){const b=h.getName(s,a),E=n.contentNameScopesList.pushAttributed(b,e),g=h.getContentName(s,a),_=E.pushAttributed(g,e),w=n.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,E,_),A=e.createOnigString(s.substring(0,d.end));Ln(e,A,r&&d.start===0,d.start,w,i,!1,0),wn(A);continue}const f=h.getName(s,a);if(f!==null){const E=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(f,e);u.push(new Oo(E,d.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Oo=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function xo(e,t,r,n,i,o,a,s){return new No(e,t,r,n,i,o,a,s)}function Sr(e,t,r,n,i){const o=ze(t,Ke),a=An.getCompiledRuleId(r,n,i.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:a,grammar:i,priority:s.priority})}function Ke(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let i=r;i<t.length;i++)if(Do(t[i],n))return r=i+1,!0;return!1})}function Do(e,t){if(!e)return!1;if(e===t)return!0;const r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var No=class{constructor(e,t,r,n,i,o,a,s){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new So(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=Lr(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const u=ze(l,Ke);for(const m of u)this._tokenTypeMatchers.push({matcher:m.matcher,type:i[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){const i=n.injections;if(i)for(let a in i)Sr(t,a,i[a],this,n);const o=this._grammarRepository.injections(r);o&&o.forEach(a=>{const s=this.getExternalGrammar(a);if(s){const l=s.injectionSelector;l&&Sr(t,l,s,this,s)}})}return t.sort((i,o)=>i.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Lr(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){const n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){const n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=An.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===$t.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),p=_e.set(0,u.languageId,u.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),h=this.getRule(this._rootId).getName(null,null);let d;h?d=Ae.createRootAndLookUpScopeName(h,p,this):d=Ae.createRoot("unknown",p),t=new $t(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,t.reset();e=e+`
4
+ `;const o=this.createOnigString(e),a=o.content.length,s=new $o(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Ln(this,o,i,0,t,s,!0,n);return wn(o),{lineLength:a,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Lr(e,t){return e=Yi(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Ae=class q{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,i=t?.scopePath??null;for(const o of r)i=yt.push(i,o.scopeNames),n=new q(n,i,o.encodedTokenAttributes);return n}static createRoot(t,r){return new q(null,new yt(null,t),r)}static createRootAndLookUpScopeName(t,r,n){const i=n.getMetadataForScope(t),o=new yt(null,t),a=n.themeProvider.themeMatch(o),s=q.mergeAttributes(r,i,a);return new q(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return q.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let i=-1,o=0,a=0;return n!==null&&(i=n.fontStyle,o=n.foregroundId,a=n.backgroundId),_e.set(t,r.languageId,r.tokenType,null,i,o,a)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return q._pushAttributed(this,t,r);const n=t.split(/ /g);let i=this;for(const o of n)i=q._pushAttributed(i,o,r);return i}static _pushAttributed(t,r,n){const i=n.getMetadataForScope(r),o=t.scopePath.push(r),a=n.themeProvider.themeMatch(o),s=q.mergeAttributes(t.tokenAttributes,i,a);return new q(t,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const r=[];let n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===t?r.reverse():void 0}},$t=class ie{constructor(t,r,n,i,o,a,s,l){this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new ie(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:ie._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?Ae.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ie._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,i,o,a,s){return new ie(this,t,r,n,i,o,a,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ie(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){const n=Ae.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new ie(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,Ae.fromExtension(n,r.contentNameScopesList))}},Vo=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ze(r,Ke).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>ze(r,Ke).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},$o=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(o)&&(n=_e.set(n,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(o))}if(i&&(n=_e.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let n=0,i=this._binaryTokens.length;n<i;n++)r[n]=this._binaryTokens[n];return r}},Mo=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,i){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,xo(e,o,t,r,n,i,this,this._onigLib))}return this._grammars.get(e)}},Go=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Mo(We.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,r){this._syncRegistry.setTheme(We.createFromRawTheme(t,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,r,n){return this.loadGrammarWithConfiguration(t,r,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,r,n){return this._loadGrammar(t,r,n.embeddedLanguages,n.tokenTypes,new Vo(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,r,n,i,o){const a=new ho(this._syncRegistry,t);for(;a.Q.length>0;)a.Q.map(s=>this._loadSingleGrammar(s.scopeName)),a.processQueue();return this._grammarForScopeName(t,r,n,i,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const r=this._options.loadGrammar(t);if(r){const n=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(r,n)}}addGrammar(t,r=[],n=0,i=null){return this._syncRegistry.addGrammar(t,r),this._grammarForScopeName(t.scopeName,n,i)}_grammarForScopeName(t,r=0,n=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(t,r,n,i,o)}},Mt=$t.NULL;function Qe(e,t){const r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(const[i,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?r[i]=o:i===n&&Object.assign(r,o);return r}function re(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Bo(e){return Array.isArray(e)?e:[e]}async function In(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function ot(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Rn(e){return e==="ansi"||ot(e)}function at(e){return e==="none"}function Tn(e){return at(e)}function st(e,t=!1){if(e.length===0)return[["",0]];const r=e.split(/(\r?\n)/g);let n=0;const i=[];for(let o=0;o<r.length;o+=2){const a=t?r[o]+(r[o+1]||""):r[o];i.push([a,n]),n+=r[o].length,n+=r[o+1]?.length||0}return i}const kr={light:"#333333",dark:"#bbbbbb"},Ir={light:"#fffffe",dark:"#1e1e1e"},Rr="__shiki_resolved";function ar(e){if(e?.[Rr])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){const s=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(n=s.settings.foreground),s?.settings?.background&&(r=s.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?kr.light:kr.dark),r||(r=t.type==="light"?Ir.light:Ir.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const o=new Map;function a(s){if(o.has(s))return o.get(s);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?a(s):(o.set(s,l),l)}t.settings=t.settings.map(s=>{const l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),u=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!u)return s;const m={...s,settings:{...s.settings}};if(l){const p=a(s.settings.foreground);t.colorReplacements[p]=s.settings.foreground,m.settings.foreground=p}if(u){const p=a(s.settings.background);t.colorReplacements[p]=s.settings.background,m.settings.background=p}return m});for(const s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){const l=a(t.colors[s]);t.colorReplacements[l]=t.colors[s],t.colors[s]=l}return Object.defineProperty(t,Rr,{enumerable:!1,writable:!1,value:!0}),t}async function Pn(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Rn(t)).map(async t=>await In(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function On(e){return(await Promise.all(e.map(async t=>Tn(t)?null:ar(await In(t))))).filter(t=>!!t)}function xn(e,t){if(!t)return e;if(t[e]){const r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new k(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var Uo=class extends Go{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const t=ar(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=We.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=xn(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const t=new Set([...this._langMap.values()].filter(i=>i.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(i=>{this._alias[i]=e.name}),this._loadedLanguagesCache=null,t.size)for(const i of t)this._resolvedGrammars.delete(i.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(i.scopeName),this._syncRegistry?._grammars?.delete(i.scopeName),this.loadLanguage(this._langMap.get(i.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const n of e)this.resolveEmbeddedLanguages(n);const t=Array.from(this._langGraph.entries()),r=t.filter(([n,i])=>!i);if(r.length){const n=t.filter(([i,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(a=>r.map(([s])=>s).includes(a)):!1).filter(i=>!r.includes(i));throw new k(`Missing languages ${r.map(([i])=>`\`${i}\``).join(", ")}, required by ${n.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[n,i]of t)this._resolver.addLanguage(i);for(const[n,i]of t)this.loadLanguage(i)}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);const t=e.embeddedLanguages??e.embeddedLangs;if(t)for(const r of t)this._langGraph.set(r,this._langMap.get(r))}},Fo=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let r=[];for(let n=1;n<=t.length;n++){const i=t.slice(0,n).join(".");r=[...r,...this._injections.get(i)||[]]}return r}};let ve=0;function jo(e){ve+=1,e.warnings!==!1&&ve>=10&&ve%10===0&&console.warn(`[Shiki] ${ve} 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 t=!1;if(!e.engine)throw new k("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(ar),i=new Uo(new Fo(e.engine,r),n,r,e.langAlias);let o;function a(_){return xn(_,e.langAlias)}function s(_){E();const w=i.getGrammar(typeof _=="string"?_:_.name);if(!w)throw new k(`Language \`${_}\` not found, you may need to load it first`);return w}function l(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};E();const w=i.getTheme(_);if(!w)throw new k(`Theme \`${_}\` not found, you may need to load it first`);return w}function u(_){E();const w=l(_);return o!==_&&(i.setTheme(w),o=_),{theme:w,colorMap:i.getColorMap()}}function m(){return E(),i.getLoadedThemes()}function p(){return E(),i.getLoadedLanguages()}function h(..._){E(),i.loadLanguages(_.flat(1))}async function d(..._){return h(await Pn(_))}function f(..._){E();for(const w of _.flat(1))i.loadTheme(w)}async function b(..._){return E(),f(await On(_))}function E(){if(t)throw new k("Shiki instance has been disposed")}function g(){t||(t=!0,i.dispose(),ve-=1)}return{setTheme:u,getTheme:l,getLanguage:s,getLoadedThemes:m,getLoadedLanguages:p,resolveLangAlias:a,loadLanguage:d,loadLanguageSync:h,loadTheme:b,loadThemeSync:f,dispose:g,[Symbol.dispose]:g}}async function Ho(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,r,n]=await Promise.all([On(e.themes||[]),Pn(e.langs||[]),e.engine]);return jo({...e,themes:t,langs:r,engine:n})}const Dn=new WeakMap;function lt(e,t){Dn.set(e,t)}function Re(e){return Dn.get(e)}var ut=class Nn{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new Nn(Object.fromEntries(Bo(r).map(n=>[n,Mt])),t)}constructor(...t){if(t.length===2){const[r,n]=t;this.lang=n,this._stacks=r}else{const[r,n,i]=t;this.lang=n,this._stacks={[i]:r}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Wo(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Wo(e){const t=[],r=new Set;function n(i){if(r.has(i))return;r.add(i);const o=i?.nameScopesList?.scopeName;o&&t.push(o),i.parent&&n(i.parent)}return n(e),t}function zo(e,t){if(!(e instanceof ut))throw new k("Invalid grammar state");return e.getInternalStack(t)}function Vn(e,t,r={}){const{theme:n=e.getLoadedThemes()[0]}=r;if(ot(e.resolveLangAlias(r.lang||"text"))||at(n))return st(t).map(s=>[{content:s[0],offset:s[1]}]);const{theme:i,colorMap:o}=e.setTheme(n),a=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==a.name)throw new k(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${a.name}"`);if(!r.grammarState.themes.includes(i.name))throw new k(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Xo(t,a,i,o,r)}function qo(...e){if(e.length===2)return Re(e[1]);const[t,r,n={}]=e,{lang:i="text",theme:o=t.getLoadedThemes()[0]}=n;if(ot(i)||at(o))throw new k("Plain language does not have grammar state");if(i==="ansi")throw new k("ANSI language does not have grammar state");const{theme:a,colorMap:s}=t.setTheme(o),l=t.getLanguage(i);return new ut(sr(r,l,a,s,n).stateStack,l.name,a.name)}function Xo(e,t,r,n,i){const o=sr(e,t,r,n,i),a=new ut(o.stateStack,t.name,r.name);return lt(o.tokens,a),o.tokens}function sr(e,t,r,n,i){const o=Qe(r,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=i,l=st(e);let u=i.grammarState?zo(i.grammarState,r.name)??Mt:i.grammarContextCode!=null?sr(i.grammarContextCode,t,r,n,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Mt,m=[];const p=[];for(let h=0,d=l.length;h<d;h++){const[f,b]=l[h];if(f===""){m=[],p.push([]);continue}if(a>0&&f.length>=a){m=[],p.push([{content:f,offset:b,color:"",fontStyle:0}]);continue}let E,g,_;i.includeExplanation&&(E=t.tokenizeLine(f,u,s),g=E.tokens,_=0);const w=t.tokenizeLine2(f,u,s),A=w.tokens.length/2;for(let S=0;S<A;S++){const x=w.tokens[2*S],M=S+1<A?w.tokens[2*S+2]:f.length;if(x===M)continue;const X=w.tokens[2*S+1],De=re(n[_e.getForeground(X)],o),ht=_e.getFontStyle(X),we={content:f.substring(x,M),offset:b+x,color:De,fontStyle:ht};if(i.includeExplanation){const Y=[];if(i.includeExplanation!=="scopeName")for(const K of r.settings){let ce;switch(typeof K.scope){case"string":ce=K.scope.split(/,/).map(ft=>ft.trim());break;case"object":ce=K.scope;break;default:continue}Y.push({settings:K,selectors:ce.map(ft=>ft.split(/ /))})}we.explanation=[];let yr=0;for(;x+yr<M;){const K=g[_],ce=f.substring(K.startIndex,K.endIndex);yr+=ce.length,we.explanation.push({content:ce,scopes:i.includeExplanation==="scopeName"?Ko(K.scopes):Qo(Y,K.scopes)}),_+=1}}m.push(we)}p.push(m),m=[],u=w.ruleStack}return{tokens:p,stateStack:u}}function Ko(e){return e.map(t=>({scopeName:t}))}function Qo(e,t){const r=[];for(let n=0,i=t.length;n<i;n++){const o=t[n];r[n]={scopeName:o,themeMatches:Zo(e,o,t.slice(0,n))}}return r}function Tr(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Jo(e,t,r){if(!Tr(e[e.length-1],t))return!1;let n=e.length-2,i=r.length-1;for(;n>=0&&i>=0;)Tr(e[n],r[i])&&(n-=1),i-=1;return n===-1}function Zo(e,t,r){const n=[];for(const{selectors:i,settings:o}of e)for(const a of i)if(Jo(a,t,r)){n.push(o);break}return n}function $n(e,t,r,n=Vn){const i=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=i.map(u=>{const m=n(e,t,{...r,theme:u.theme});return{tokens:m,state:Re(m),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),a=Yo(...o.map(u=>u.tokens)),s=a[0].map((u,m)=>u.map((p,h)=>{const d={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in r&&r.includeExplanation&&(d.explanation=p.explanation),a.forEach((f,b)=>{const{content:E,explanation:g,offset:_,...w}=f[m][h];d.variants[i[b].color]=w}),d})),l=o[0].state?new ut(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&lt(s,l),s}function Yo(...e){const t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){const i=e.map(l=>l[n]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const a=i.map(()=>0),s=i.map(l=>l[0]);for(;s.every(l=>l);){const l=Math.min(...s.map(u=>u.content.length));for(let u=0;u<r;u++){const m=s[u];m.content.length===l?(o[u].push(m),a[u]+=1,s[u]=i[u][a[u]]):(o[u].push({...m,content:m.content.slice(0,l)}),s[u]={...m,content:m.content.slice(l),offset:m.offset+l})}}}return t}const ea=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Oe{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Oe.prototype.normal={};Oe.prototype.property={};Oe.prototype.space=void 0;function Mn(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Oe(r,n,t)}function Gt(e){return e.toLowerCase()}class G{constructor(t,r){this.attribute=r,this.property=t}}G.prototype.attribute="";G.prototype.booleanish=!1;G.prototype.boolean=!1;G.prototype.commaOrSpaceSeparated=!1;G.prototype.commaSeparated=!1;G.prototype.defined=!1;G.prototype.mustUseProperty=!1;G.prototype.number=!1;G.prototype.overloadedBoolean=!1;G.prototype.property="";G.prototype.spaceSeparated=!1;G.prototype.space=void 0;let ta=0;const C=ue(),R=ue(),Bt=ue(),y=ue(),L=ue(),fe=ue(),B=ue();function ue(){return 2**++ta}const Ut=Object.freeze(Object.defineProperty({__proto__:null,boolean:C,booleanish:R,commaOrSpaceSeparated:B,commaSeparated:fe,number:y,overloadedBoolean:Bt,spaceSeparated:L},Symbol.toStringTag,{value:"Module"})),bt=Object.keys(Ut);class lr extends G{constructor(t,r,n,i){let o=-1;if(super(t,r),Pr(this,"space",i),typeof n=="number")for(;++o<bt.length;){const a=bt[o];Pr(this,bt[o],(n&Ut[a])===Ut[a])}}}lr.prototype.defined=!0;function Pr(e,t,r){r&&(e[t]=r)}function ye(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const o=new lr(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Gt(n)]=n,r[Gt(o.attribute)]=n}return new Oe(t,r,e.space)}const Gn=ye({properties:{ariaActiveDescendant:null,ariaAtomic:R,ariaAutoComplete:null,ariaBusy:R,ariaChecked:R,ariaColCount:y,ariaColIndex:y,ariaColSpan:y,ariaControls:L,ariaCurrent:null,ariaDescribedBy:L,ariaDetails:null,ariaDisabled:R,ariaDropEffect:L,ariaErrorMessage:null,ariaExpanded:R,ariaFlowTo:L,ariaGrabbed:R,ariaHasPopup:null,ariaHidden:R,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:L,ariaLevel:y,ariaLive:null,ariaModal:R,ariaMultiLine:R,ariaMultiSelectable:R,ariaOrientation:null,ariaOwns:L,ariaPlaceholder:null,ariaPosInSet:y,ariaPressed:R,ariaReadOnly:R,ariaRelevant:null,ariaRequired:R,ariaRoleDescription:L,ariaRowCount:y,ariaRowIndex:y,ariaRowSpan:y,ariaSelected:R,ariaSetSize:y,ariaSort:null,ariaValueMax:y,ariaValueMin:y,ariaValueNow:y,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Bn(e,t){return t in e?e[t]:t}function Un(e,t){return Bn(e,t.toLowerCase())}const ra=ye({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fe,acceptCharset:L,accessKey:L,action:null,allow:null,allowFullScreen:C,allowPaymentRequest:C,allowUserMedia:C,alt:null,as:null,async:C,autoCapitalize:null,autoComplete:L,autoFocus:C,autoPlay:C,blocking:L,capture:null,charSet:null,checked:C,cite:null,className:L,cols:y,colSpan:null,content:null,contentEditable:R,controls:C,controlsList:L,coords:y|fe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:C,defer:C,dir:null,dirName:null,disabled:C,download:Bt,draggable:R,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:C,formTarget:null,headers:L,height:y,hidden:Bt,high:y,href:null,hrefLang:null,htmlFor:L,httpEquiv:L,id:null,imageSizes:null,imageSrcSet:null,inert:C,inputMode:null,integrity:null,is:null,isMap:C,itemId:null,itemProp:L,itemRef:L,itemScope:C,itemType:L,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:C,low:y,manifest:null,max:null,maxLength:y,media:null,method:null,min:null,minLength:y,multiple:C,muted:C,name:null,nonce:null,noModule:C,noValidate:C,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:C,optimum:y,pattern:null,ping:L,placeholder:null,playsInline:C,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:C,referrerPolicy:null,rel:L,required:C,reversed:C,rows:y,rowSpan:y,sandbox:L,scope:null,scoped:C,seamless:C,selected:C,shadowRootClonable:C,shadowRootDelegatesFocus:C,shadowRootMode:null,shape:null,size:y,sizes:null,slot:null,span:y,spellCheck:R,src:null,srcDoc:null,srcLang:null,srcSet:null,start:y,step:null,style:null,tabIndex:y,target:null,title:null,translate:null,type:null,typeMustMatch:C,useMap:null,value:R,width:y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:L,axis:null,background:null,bgColor:null,border:y,borderColor:null,bottomMargin:y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:C,declare:C,event:null,face:null,frame:null,frameBorder:null,hSpace:y,leftMargin:y,link:null,longDesc:null,lowSrc:null,marginHeight:y,marginWidth:y,noResize:C,noHref:C,noShade:C,noWrap:C,object:null,profile:null,prompt:null,rev:null,rightMargin:y,rules:null,scheme:null,scrolling:R,standby:null,summary:null,text:null,topMargin:y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:C,disableRemotePlayback:C,prefix:null,property:null,results:y,security:null,unselectable:null},space:"html",transform:Un}),na=ye({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",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:B,accentHeight:y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:y,amplitude:y,arabicForm:null,ascent:y,attributeName:null,attributeType:null,azimuth:y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:y,by:null,calcMode:null,capHeight:y,className:L,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:y,diffuseConstant:y,direction:null,display:null,dur:null,divisor:y,dominantBaseline:null,download:C,dx:null,dy:null,edgeMode:null,editable:null,elevation:y,enableBackground:null,end:null,event:null,exponent:y,externalResourcesRequired:null,fill:null,fillOpacity:y,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:fe,g2:fe,glyphName:fe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:y,horizOriginX:y,horizOriginY:y,id:null,ideographic:y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:y,k:y,k1:y,k2:y,k3:y,k4:y,kernelMatrix:B,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:y,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:y,overlineThickness:y,paintOrder:null,panose1:null,path:null,pathLength:y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:L,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:y,pointsAtY:y,pointsAtZ:y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:B,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:B,rev:B,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:B,requiredFeatures:B,requiredFonts:B,requiredFormats:B,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:y,specularExponent:y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:y,strikethroughThickness:y,string:null,stroke:null,strokeDashArray:B,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:y,strokeOpacity:y,strokeWidth:null,style:null,surfaceScale:y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:B,tabIndex:y,tableValues:null,target:null,targetX:y,targetY:y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:B,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:y,underlineThickness:y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:y,values:null,vAlphabetic:y,vMathematical:y,vectorEffect:null,vHanging:y,vIdeographic:y,version:null,vertAdvY:y,vertOriginX:y,vertOriginY:y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Bn}),Fn=ye({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),jn=ye({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Un}),Hn=ye({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ia=/[A-Z]/g,Or=/-[a-z]/g,oa=/^data[-\w.:]+$/i;function aa(e,t){const r=Gt(t);let n=t,i=G;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&oa.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Or,la);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Or.test(o)){let a=o.replace(ia,sa);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=lr}return new i(n,t)}function sa(e){return"-"+e.toLowerCase()}function la(e){return e.charAt(1).toUpperCase()}const ua=Mn([Gn,ra,Fn,jn,Hn],"html"),Wn=Mn([Gn,na,Fn,jn,Hn],"svg"),xr={}.hasOwnProperty;function ca(e,t){const r=t||{};function n(i,...o){let a=n.invalid;const s=n.handlers;if(i&&xr.call(i,e)){const l=String(i[e]);a=xr.call(s,l)?s[l]:n.unknown}if(a)return a.call(this,i,...o)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const pa=/["&'<>`]/g,ma=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,da=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,ha=/[|\\{}()[\]^$+*?.]/g,Dr=new WeakMap;function fa(e,t){if(e=e.replace(t.subset?ga(t.subset):pa,n),t.subset||t.escapeOnly)return e;return e.replace(ma,r).replace(da,n);function r(i,o,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(o+2),t)}function n(i,o,a){return t.format(i.charCodeAt(0),a.charCodeAt(o+1),t)}}function ga(e){let t=Dr.get(e);return t||(t=_a(e),Dr.set(e,t)),t}function _a(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(ha,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const ya=/[\dA-Fa-f]/;function Ea(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!ya.test(String.fromCharCode(t))?n:n+";"}const ba=/\d/;function wa(e,t,r){const n="&#"+String(e);return r&&t&&!ba.test(String.fromCharCode(t))?n:n+";"}const va=["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"],wt={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Ca=["cent","copy","divide","gt","lt","not","para","times"],zn={}.hasOwnProperty,Ft={};let $e;for($e in wt)zn.call(wt,$e)&&(Ft[wt[$e]]=$e);const Aa=/[^\dA-Za-z]/;function Sa(e,t,r,n){const i=String.fromCharCode(e);if(zn.call(Ft,i)){const o=Ft[i],a="&"+o;return r&&va.includes(o)&&!Ca.includes(o)&&(!n||t&&t!==61&&Aa.test(String.fromCharCode(t)))?a:a+";"}return""}function La(e,t,r){let n=Ea(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=Sa(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const o=wa(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function ge(e,t){return fa(e,Object.assign({format:La},t))}const ka=/^>|^->|<!--|-->|--!>|<!-$/g,Ia=[">"],Ra=["<",">"];function Ta(e,t,r,n){return n.settings.bogusComments?"<?"+ge(e.value,Object.assign({},n.settings.characterReferences,{subset:Ia}))+">":"<!--"+e.value.replace(ka,i)+"-->";function i(o){return ge(o,Object.assign({},n.settings.characterReferences,{subset:Ra}))}}function Pa(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function Nr(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function Oa(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function xa(e){return e.join(" ").trim()}const Da=/[ \t\n\f\r]/g;function ur(e){return typeof e=="object"?e.type==="text"?Vr(e.value):!1:Vr(e)}function Vr(e){return e.replace(Da,"")===""}const O=Xn(1),qn=Xn(-1),Na=[];function Xn(e){return t;function t(r,n,i){const o=r?r.children:Na;let a=(n||0)+e,s=o[a];if(!i)for(;s&&ur(s);)a+=e,s=o[a];return s}}const Va={}.hasOwnProperty;function Kn(e){return t;function t(r,n,i){return Va.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const cr=Kn({body:Ma,caption:vt,colgroup:vt,dd:Fa,dt:Ua,head:vt,html:$a,li:Ba,optgroup:ja,option:Ha,p:Ga,rp:$r,rt:$r,tbody:za,td:Mr,tfoot:qa,th:Mr,thead:Wa,tr:Xa});function vt(e,t,r){const n=O(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ur(n.value.charAt(0)))}function $a(e,t,r){const n=O(r,t);return!n||n.type!=="comment"}function Ma(e,t,r){const n=O(r,t);return!n||n.type!=="comment"}function Ga(e,t,r){const n=O(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function Ba(e,t,r){const n=O(r,t);return!n||n.type==="element"&&n.tagName==="li"}function Ua(e,t,r){const n=O(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function Fa(e,t,r){const n=O(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function $r(e,t,r){const n=O(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function ja(e,t,r){const n=O(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function Ha(e,t,r){const n=O(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function Wa(e,t,r){const n=O(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function za(e,t,r){const n=O(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function qa(e,t,r){return!O(r,t)}function Xa(e,t,r){const n=O(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function Mr(e,t,r){const n=O(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const Ka=Kn({body:Za,colgroup:Ya,head:Ja,html:Qa,tbody:es});function Qa(e){const t=O(e,-1);return!t||t.type!=="comment"}function Ja(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function Za(e){const t=O(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ur(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Ya(e,t,r){const n=qn(r,t),i=O(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&cr(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function es(e,t,r){const n=qn(r,t),i=O(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&cr(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Me={name:[[`
5
+ \f\r &/=>`.split(""),`
6
+ \f\r "&'/=>\``.split("")],[`\0
7
+ \f\r "&'/<=>`.split(""),`\0
8
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
9
+ \f\r &>`.split(""),`\0
10
+ \f\r "&'<=>\``.split("")],[`\0
11
+ \f\r "&'<=>\``.split(""),`\0
12
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function ts(e,t,r,n){const i=n.schema,o=i.space==="svg"?!1:n.settings.omitOptionalTags;let a=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=Wn);const u=rs(n,e.properties),m=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,m&&(a=!1),(u||!o||!Ka(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),a&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(m),!a&&(!o||!cr(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function rs(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const o=ns(e,i,t[i]);o&&r.push(o)}}for(;++n<r.length;){const o=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function ns(e,t,r){const n=aa(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let a=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=ge(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Me.name[i][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?Oa:xa)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=ge(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Me.unquoted[i][o]}))),s!==r&&(e.settings.quoteSmart&&Nr(r,a)>Nr(r,e.alternative)&&(a=e.alternative),s=a+ge(r,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?Me.single:Me.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}const is=["<","&"];function Qn(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:ge(e.value,Object.assign({},n.settings.characterReferences,{subset:is}))}function os(e,t,r,n){return n.settings.allowDangerousHtml?e.value:Qn(e,t,r,n)}function as(e,t,r,n){return n.all(e)}const ss=ca("type",{invalid:ls,unknown:us,handlers:{comment:Ta,doctype:Pa,element:ts,raw:os,root:as,text:Qn}});function ls(e){throw new Error("Expected node, not `"+e+"`")}function us(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const cs={},ps={},ms=[];function ds(e,t){const r=t||cs,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:hs,all:fs,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||ea,characterReferences:r.characterReferences||ps,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Wn:ua,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function hs(e,t,r){return ss(e,t,r,this)}function fs(e){const t=[],r=e&&e.children||ms;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function Jn(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(t)?t:t.split(/\s+/g);for(const n of r)n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function gs(e){const t=st(e,!0).map(([i])=>i);function r(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=i,a=0;for(const s of t){if(o<s.length)break;o-=s.length,a++}return{line:a,character:o}}function n(i,o){let a=0;for(let s=0;s<i;s++)a+=t[s].length;return a+=o,a}return{lines:t,indexToPos:r,posToIndex:n}}function _s(e,t,r){const n=new Set;for(const o of e.matchAll(/:?lang=["']([^"']+)["']/g)){const a=o[1].toLowerCase().trim();a&&n.add(a)}for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g)){const a=o[1].toLowerCase().trim();a&&n.add(a)}for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g)){const a=o[1].toLowerCase().trim();a&&n.add(a)}for(const o of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const a=o[1].toLowerCase().trim(),s=a.includes("/")?a.split("/").pop():a;s&&n.add(s)}if(!r)return Array.from(n);const i=r.getBundledLanguages();return Array.from(n).filter(o=>o&&i[o])}const pr="light-dark()",ys=["color","background-color"];function Es(e,t){let r=0;const n=[];for(const i of t)i>r&&n.push({...e,content:e.content.slice(r,i),offset:e.offset+r}),r=i;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function bs(e,t){const r=Array.from(t instanceof Set?t:new Set(t)).sort((n,i)=>n-i);return r.length?e.map(n=>n.flatMap(i=>{const o=r.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,s)=>a-s);return o.length?Es(i,o):i})):e}function ws(e,t,r,n,i="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(m=>Je(e.variants[m])),s=new Set(a.flatMap(m=>Object.keys(m))),l={},u=(m,p)=>{const h=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return r+t[m]+(p==="color"?"":h)};return a.forEach((m,p)=>{for(const h of s){const d=m[h]||"inherit";if(p===0&&n&&ys.includes(h))if(n===pr&&a.length>1){const f=t.findIndex(E=>E==="light"),b=t.findIndex(E=>E==="dark");if(f===-1||b===-1)throw new k('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[h]=`light-dark(${a[f][h]||"inherit"}, ${a[b][h]||"inherit"})`,i==="css-vars"&&(l[u(p,h)]=d)}else l[h]=d;else i==="css-vars"&&(l[u(p,h)]=d)}}),o.htmlStyle=l,o}function Je(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&$.Italic&&(t["font-style"]="italic"),e.fontStyle&$.Bold&&(t["font-weight"]="bold");const r=[];e.fontStyle&$.Underline&&r.push("underline"),e.fontStyle&$.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function jt(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function vs(){const e=new WeakMap;function t(r){if(!e.has(r.meta)){let i=function(a){if(typeof a=="number"){if(a<0||a>r.source.length)throw new k(`Invalid decoration offset: ${a}. Code length: ${r.source.length}`);return{...n.indexToPos(a),offset:a}}else{const s=n.lines[a.line];if(s===void 0)throw new k(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${n.lines.length}`);let l=a.character;if(l<0&&(l=s.length+l),l<0||l>s.length)throw new k(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${s.length}`);return{...a,character:l,offset:n.posToIndex(a.line,l)}}};const n=gs(r.source),o=(r.options.decorations||[]).map(a=>({...a,start:i(a.start),end:i(a.end)}));Cs(o),e.set(r.meta,{decorations:o,converter:n,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(this.options.decorations?.length)return bs(r,t(this).decorations.flatMap(n=>[n.start.offset,n.end.offset]))},code(r){if(!this.options.decorations?.length)return;const n=t(this),i=Array.from(r.children).filter(m=>m.type==="element"&&m.tagName==="span");if(i.length!==n.converter.lines.length)throw new k(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(m,p,h,d){const f=i[m];let b="",E=-1,g=-1;if(p===0&&(E=0),h===0&&(g=0),h===Number.POSITIVE_INFINITY&&(g=f.children.length),E===-1||g===-1)for(let w=0;w<f.children.length;w++)b+=Zn(f.children[w]),E===-1&&b.length===p&&(E=w+1),g===-1&&b.length===h&&(g=w+1);if(E===-1)throw new k(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);if(g===-1)throw new k(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);const _=f.children.slice(E,g);if(!d.alwaysWrap&&_.length===f.children.length)s(f,d,"line");else if(!d.alwaysWrap&&_.length===1&&_[0].type==="element")s(_[0],d,"token");else{const w={type:"element",tagName:"span",properties:{},children:_};s(w,d,"wrapper"),f.children.splice(E,_.length,w)}}function a(m,p){i[m]=s(i[m],p,"line")}function s(m,p,h){const d=p.properties||{},f=p.transform||(b=>b);return m.tagName=p.tagName||"span",m.properties={...m.properties,...d,class:m.properties.class},p.properties?.class&&Jn(m,p.properties.class),m=f(m,h)||m,m}const l=[],u=n.decorations.sort((m,p)=>p.start.offset-m.start.offset||m.end.offset-p.end.offset);for(const m of u){const{start:p,end:h}=m;if(p.line===h.line)o(p.line,p.character,h.character,m);else if(p.line<h.line){o(p.line,p.character,Number.POSITIVE_INFINITY,m);for(let d=p.line+1;d<h.line;d++)l.unshift(()=>a(d,m));o(h.line,0,h.character,m)}}l.forEach(m=>m())}}}function Cs(e){for(let t=0;t<e.length;t++){const r=e[t];if(r.start.offset>r.end.offset)throw new k(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){const i=e[n],o=r.start.offset<=i.start.offset&&i.start.offset<r.end.offset,a=r.start.offset<i.end.offset&&i.end.offset<=r.end.offset,s=i.start.offset<=r.start.offset&&r.start.offset<i.end.offset,l=i.start.offset<r.end.offset&&r.end.offset<=i.end.offset;if(o||a||s||l){if(o&&a||s&&l||s&&r.start.offset===r.end.offset||a&&i.start.offset===i.end.offset)continue;throw new k(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function Zn(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Zn).join(""):""}const As=[vs()];function Ze(e){const t=Ss(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...As]}function Ss(e){const t=[],r=[],n=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":r.push(i);break;default:n.push(i)}return{pre:t,post:r,normal:n}}var ae=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Ct={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ls(e,t){const r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){const n=e.indexOf("m",r);if(n!==-1)return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function Gr(e){const t=e.shift();if(t==="2"){const r=e.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){const r=e.shift();if(r)return{type:"table",index:Number(r)}}}function ks(e){const t=[];for(;e.length>0;){const r=e.shift();if(!r)continue;const n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)Ct[n]&&t.push({type:"setDecoration",value:Ct[n]});else if(n<=29){const i=Ct[n-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ae[n-30]}});else if(n===38){const i=Gr(e);i&&t.push({type:"setForegroundColor",value:i})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ae[n-40]}});else if(n===48){const i=Gr(e);i&&t.push({type:"setBackgroundColor",value:i})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ae[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ae[n-100+8]}})}return t}function Is(){let e=null,t=null,r=new Set;return{parse(n){const i=[];let o=0;do{const a=Ls(n,o),s=a.sequence?n.substring(o,a.startPosition):n.substring(o);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(r)}),a.sequence){const l=ks(a.sequence);for(const u of l)u.type==="resetAll"?(e=null,t=null,r.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&r.delete(u.value);for(const u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&r.add(u.value)}o=a.position}while(o<n.length);return i}}}var Rs={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 Ts(e=Rs){function t(s){return e[s]}function r(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function i(){if(n)return n;n=[];for(let u=0;u<ae.length;u++)n.push(t(ae[u]));let s=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let m=0;m<6;m++)for(let p=0;p<6;p++)n.push(r([s[u],s[m],s[p]]));let l=8;for(let u=0;u<24;u++,l+=10)n.push(r([l,l,l]));return n}function o(s){return i()[s]}function a(s){switch(s.type){case"named":return t(s.name);case"rgb":return r(s.rgb);case"table":return o(s.index)}}return{value:a}}const Ps={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 Os(e,t,r){const n=Qe(e,r),i=st(t),o=Ts(Object.fromEntries(ae.map(s=>{const l=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,e.colors?.[l]||Ps[s]]}))),a=Is();return i.map(s=>a.parse(s[0]).map(l=>{let u,m;l.decorations.has("reverse")?(u=l.background?o.value(l.background):e.bg,m=l.foreground?o.value(l.foreground):e.fg):(u=l.foreground?o.value(l.foreground):e.fg,m=l.background?o.value(l.background):void 0),u=re(u,n),m=re(m,n),l.decorations.has("dim")&&(u=xs(u));let p=$.None;return l.decorations.has("bold")&&(p|=$.Bold),l.decorations.has("italic")&&(p|=$.Italic),l.decorations.has("underline")&&(p|=$.Underline),l.decorations.has("strikethrough")&&(p|=$.Strikethrough),{content:l.value,offset:s[1],color:u,bgColor:m,fontStyle:p}}))}function xs(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const n=t[1];if(n.length===8){const i=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${i}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){const i=n[0],o=n[1],a=n[2],s=n[3];return`#${i}${i}${o}${o}${a}${a}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}else if(n.length===3){const i=n[0],o=n[1],a=n[2];return`#${i}${i}${o}${o}${a}${a}80`}}}const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function Ht(e,t,r={}){const n=e.resolveLangAlias(r.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=r;if(!ot(n)&&!at(i)&&n==="ansi"){const{theme:o}=e.setTheme(i);return Os(o,t,r)}return Vn(e,t,r)}function Ye(e,t,r){let n,i,o,a,s,l;if("themes"in r){const{defaultColor:u="light",cssVariablePrefix:m="--shiki-",colorsRendering:p="css-vars"}=r,h=Object.entries(r.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,_)=>g.color===u?-1:_.color===u?1:0);if(h.length===0)throw new k("`themes` option must not be empty");const d=$n(e,t,r,Ht);if(l=Re(d),u&&pr!==u&&!h.find(g=>g.color===u))throw new k(`\`themes\` option must contain the defaultColor key \`${u}\``);const f=h.map(g=>e.getTheme(g.theme)),b=h.map(g=>g.color);o=d.map(g=>g.map(_=>ws(_,b,m,u,p))),l&&lt(o,l);const E=h.map(g=>Qe(g.theme,r));i=Br(h,f,E,m,u,"fg",p),n=Br(h,f,E,m,u,"bg",p),a=`shiki-themes ${f.map(g=>g.name).join(" ")}`,s=u?void 0:[i,n].join(";")}else if("theme"in r){const u=Qe(r.theme,r);o=Ht(e,t,r);const m=e.getTheme(r.theme);n=re(m.bg,u),i=re(m.fg,u),a=m.name,l=Re(o)}else throw new k("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:n,themeName:a,rootStyle:s,grammarState:l}}function Br(e,t,r,n,i,o,a){return e.map((s,l)=>{const u=re(t[l][o],r[l])||"inherit",m=`${n+s.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&i){if(i===pr&&e.length>1){const p=e.findIndex(d=>d.color==="light"),h=e.findIndex(d=>d.color==="dark");if(p===-1||h===-1)throw new k('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${re(t[p][o],r[p])||"inherit"}, ${re(t[h][o],r[h])||"inherit"});${m}`}return u}return a==="css-vars"?m:null}).filter(s=>!!s).join(";")}function et(e,t,r,n={meta:{},options:r,codeToHast:(i,o)=>et(e,i,o),codeToTokens:(i,o)=>Ye(e,i,o)}){let i=t;for(const f of Ze(r))i=f.preprocess?.call(n,i,r)||i;let{tokens:o,fg:a,bg:s,themeName:l,rootStyle:u,grammarState:m}=Ye(e,i,r);const{mergeWhitespaces:p=!0,mergeSameStyleTokens:h=!1}=r;p===!0?o=Ns(o):p==="never"&&(o=Vs(o)),h&&(o=$s(o));const d={...n,get source(){return i}};for(const f of Ze(r))o=f.tokens?.call(d,o)||o;return Ds(o,{...r,fg:a,bg:s,themeName:l,rootStyle:r.rootStyle===!1?!1:r.rootStyle??u},d,m)}function Ds(e,t,r,n=Re(e)){const i=Ze(t),o=[],a={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(const[b,E]of Object.entries(t.meta||{}))b.startsWith("_")||(u[b]=E);let m={type:"element",tagName:"pre",properties:u,children:[],data:t.data},p={type:"element",tagName:"code",properties:{},children:o};const h=[],d={...r,structure:s,addClassToHast:Jn,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return m},get code(){return p},get lines(){return h}};if(e.forEach((b,E)=>{E&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:`
13
+ `}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const w of b){let A={type:"element",tagName:"span",properties:{...w.htmlAttrs},children:[{type:"text",value:w.content}]};const S=jt(w.htmlStyle||Je(w));S&&(A.properties.style=S);for(const x of i)A=x?.span?.call(d,A,E+1,_,g,w)||A;s==="inline"?a.children.push(A):s==="classic"&&g.children.push(A),_+=w.content.length}if(s==="classic"){for(const w of i)g=w?.line?.call(d,g,E+1)||g;h.push(g),o.push(g)}else s==="inline"&&h.push(g)}),s==="classic"){for(const b of i)p=b?.code?.call(d,p)||p;m.children.push(p);for(const b of i)m=b?.pre?.call(d,m)||m;a.children.push(m)}else if(s==="inline"){const b=[];let E={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const _ of a.children)_.type==="element"&&_.tagName==="br"?(b.push(E),E={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(_.type==="element"||_.type==="text")&&E.children.push(_);b.push(E);let g={type:"element",tagName:"code",properties:{},children:b};for(const _ of i)g=_?.code?.call(d,g)||g;a.children=[];for(let _=0;_<g.children.length;_++){_>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const w=g.children[_];w.type==="element"&&a.children.push(...w.children)}}let f=a;for(const b of i)f=b?.root?.call(d,f)||f;return n&&lt(f,n),f}function Ns(e){return e.map(t=>{const r=[];let n="",i;return t.forEach((o,a)=>{const s=!(o.fontStyle&&(o.fontStyle&$.Underline||o.fontStyle&$.Strikethrough));s&&o.content.match(/^\s+$/)&&t[a+1]?(i===void 0&&(i=o.offset),n+=o.content):n?(s?r.push({...o,offset:i,content:n+o.content}):r.push({content:n,offset:i},o),i=void 0,n=""):r.push(o)}),r})}function Vs(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;const[,i,o,a]=n;if(!i&&!a)return r;const s=[{...r,offset:r.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:r.offset}),a&&s.push({content:a,offset:r.offset+i.length+o.length}),s}))}function $s(e){return e.map(t=>{const r=[];for(const n of t){if(r.length===0){r.push({...n});continue}const i=r[r.length-1],o=jt(i.htmlStyle||Je(i)),a=jt(n.htmlStyle||Je(n)),s=i.fontStyle&&(i.fontStyle&$.Underline||i.fontStyle&$.Strikethrough),l=n.fontStyle&&(n.fontStyle&$.Underline||n.fontStyle&$.Strikethrough);!s&&!l&&o===a?i.content+=n.content:r.push({...n})}return r})}const Ms=ds;function Gs(e,t,r){const n={meta:{},options:r,codeToHast:(o,a)=>et(e,o,a),codeToTokens:(o,a)=>Ye(e,o,a)};let i=Ms(et(e,t,r,n));for(const o of Ze(r))i=o.postprocess?.call(n,i,r)||i;return i}async function Bs(e){const t=await Ho(e);return{getLastGrammarState:(...r)=>qo(t,...r),codeToTokensBase:(r,n)=>Ht(t,r,n),codeToTokensWithThemes:(r,n)=>$n(t,r,n),codeToTokens:(r,n)=>Ye(t,r,n),codeToHast:(r,n)=>et(t,r,n),codeToHtml:(r,n)=>Gs(t,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Us(e){const t=e.langs,r=e.themes,n=e.engine;async function i(o){function a(p){if(typeof p=="string"){if(p=o.langAlias?.[p]||p,Rn(p))return[];const h=t[p];if(!h)throw new k(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return h}return p}function s(p){if(Tn(p))return"none";if(typeof p=="string"){const h=r[p];if(!h)throw new k(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return h}return p}const l=(o.themes??[]).map(p=>s(p)),u=(o.langs??[]).map(p=>a(p)),m=await Bs({engine:o.engine??n(),...o,themes:l,langs:u});return{...m,loadLanguage(...p){return m.loadLanguage(...p.map(a))},loadTheme(...p){return m.loadTheme(...p.map(s))},getBundledLanguages(){return t},getBundledThemes(){return r}}}return i}function Fs(e){let t;async function r(n={}){if(t){const i=await t;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}else{t=e({...n,themes:[],langs:[]});const i=await t;return await Promise.all([i.loadTheme(...n.themes||[]),i.loadLanguage(...n.langs||[])]),i}}return r}function js(e,t){const r=Fs(e);async function n(i,o){const a=await r({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),s=await t?.guessEmbeddedLanguages?.(i,o.lang,a);return s&&await a.loadLanguage(...s),a}return{getSingletonHighlighter(i){return r(i)},async codeToHtml(i,o){return(await n(i,o)).codeToHtml(i,o)},async codeToHast(i,o){return(await n(i,o)).codeToHast(i,o)},async codeToTokens(i,o){return(await n(i,o)).codeToTokens(i,o)},async codeToTokensBase(i,o){return(await n(i,o)).codeToTokensBase(i,o)},async codeToTokensWithThemes(i,o){return(await n(i,o)).codeToTokensWithThemes(i,o)},async getLastGrammarState(i,o){return(await r({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(i,o)}}}var Hs=Jt({bundledLanguages:()=>er,bundledLanguagesAlias:()=>Yt,bundledLanguagesBase:()=>Zt,bundledLanguagesInfo:()=>rt,bundledThemes:()=>rr,bundledThemesInfo:()=>tr,codeToHast:()=>ei,codeToHtml:()=>Yn,codeToTokens:()=>ti,codeToTokensBase:()=>ri,codeToTokensWithThemes:()=>ni,createHighlighter:()=>mr,getLastGrammarState:()=>oi,getSingletonHighlighter:()=>ii});const mr=Us({langs:er,themes:rr,engine:()=>(0,mn.createOnigurumaEngine)(c(()=>import("./CG6Dc4jp.js"),[],import.meta.url))}),{codeToHtml:Yn,codeToHast:ei,codeToTokens:ti,codeToTokensBase:ri,codeToTokensWithThemes:ni,getSingletonHighlighter:ii,getLastGrammarState:oi}=js(mr,{guessEmbeddedLanguages:_s}),Ur=4294967295;var Ws=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;const{forgiving:r=!1,cache:n,regexConstructor:i}=t;if(!i)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;const a=n?.get(o);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const s=i(o);return n?.set(o,s),s}catch(s){if(n?.set(o,s),r)return null;throw s}})}findNextMatchSync(e,t,r){const n=typeof e=="string"?e:e.content,i=[];function o(a,s,l=0){return{index:a,captureIndices:s.indices.map(u=>u==null?{start:Ur,end:Ur,length:0}:{start:u[0]+l,end:u[1]+l,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){const s=this.regexps[a];if(s)try{s.lastIndex=t;const l=s.exec(n);if(!l)continue;if(l.index===t)return o(a,l,0);i.push([a,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(i.length){const a=Math.min(...i.map(s=>s[1].index));for(const[s,l,u]of i)if(l.index===a)return o(s,l,u)}return null}};function Ee(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function zs(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}const dr=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),N=String.raw;function be(e,t){if(e==null)throw new Error(t??"Value expected");return e}const ai=N`\[\^?`,si=`c.? | C(?:-.?)?|${N`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${N`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${N`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${N`o\{[^\}]*\}?`}|${N`\d{1,3}`}`,hr=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ge=new RegExp(N`
14
+ \\ (?:
15
+ ${si}
16
+ | [gk]<[^>]*>?
17
+ | [gk]'[^']*'?
18
+ | .
19
+ )
20
+ | \( (?:
21
+ \? (?:
22
+ [:=!>({]
23
+ | <[=!]
24
+ | <[^>]*>
25
+ | '[^']*'
26
+ | ~\|?
27
+ | #(?:[^)\\]|\\.?)*
28
+ | [^:)]*[:)]
29
+ )?
30
+ | \*[^\)]*\)?
31
+ )?
32
+ | (?:${hr.source})+
33
+ | ${ai}
34
+ | .
35
+ `.replace(/\s+/g,""),"gsu"),At=new RegExp(N`
36
+ \\ (?:
37
+ ${si}
38
+ | .
39
+ )
40
+ | \[:(?:\^?\p{Alpha}+|\^):\]
41
+ | ${ai}
42
+ | &&
43
+ | .
44
+ `.replace(/\s+/g,""),"gsu");function qs(e,t={}){const r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const n=ml(r.flags),i=[n.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX(){return i.at(-1)},numOpenGroups:0,popModX(){i.pop()},pushModX(p){i.push(p)},replaceCurrentModX(p){i[i.length-1]=p},singleline:r.rules.singleline};let a=[],s;for(Ge.lastIndex=0;s=Ge.exec(e);){const p=Xs(o,e,s[0],Ge.lastIndex);p.tokens?a.push(...p.tokens):p.token&&a.push(p.token),p.lastIndex!==void 0&&(Ge.lastIndex=p.lastIndex)}const l=[];let u=0;a.filter(p=>p.type==="GroupOpen").forEach(p=>{p.kind==="capturing"?p.number=++u:p.raw==="("&&l.push(p)}),u||l.forEach((p,h)=>{p.kind="capturing",p.number=h+1});const m=u||l.length;return{tokens:a.map(p=>p.type==="EscapedNumber"?hl(p,m):p).flat(),flags:n}}function Xs(e,t,r,n){const[i,o]=r;if(r==="["||r==="[^"){const a=Ks(t,r,n);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(i==="\\"){if("AbBGyYzZ".includes(o))return{token:Fr(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:ol(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:ui(r)}}if(o==="K")return{token:ci("keep",r)};if(o==="N"||o==="R")return{token:se("newline",r,{negate:o==="N"})};if(o==="O")return{token:se("any",r)};if(o==="X")return{token:se("text_segment",r)};const a=li(r,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(i==="("){if(o==="*")return{token:ul(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:ll(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:de("group",r)};if(r==="(?>")return{token:de("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:de(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:de("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:de("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:rl(r)}}if(e.getCurrentModX()){if(r==="#"){const a=t.indexOf(`
45
+ `,n);return{lastIndex:a===-1?t.length:a}}if(/^\s$/.test(r)){const a=/\s+/y;return a.lastIndex=n,{lastIndex:a.exec(t)?a.lastIndex:n}}}if(r===".")return{token:se("dot",r)};if(r==="^"||r==="$"){const a=e.singleline?{"^":N`\A`,$:N`\Z`}[r]:r;return{token:Fr(a,r)}}return r==="|"?{token:Js(r)}:hr.test(r)?{tokens:fl(r)}:{token:Z(Ee(r),r)}}function Ks(e,t,r){const n=[jr(t[1]==="^",t)];let i=1,o;for(At.lastIndex=r;o=At.exec(e);){const a=o[0];if(a[0]==="["&&a[1]!==":")i++,n.push(jr(a[1]==="^",a));else if(a==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(Z(93,a));else if(i--,n.push(Zs(a)),!i)break}else{const s=Qs(a);Array.isArray(s)?n.push(...s):n.push(s)}}return{tokens:n,lastIndex:At.lastIndex||e.length}}function Qs(e){if(e[0]==="\\")return li(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!dr.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return se("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Ys(e):e==="&&"?el(e):Z(Ee(e),e)}function li(e,{inCharClass:t}){const r=e[1];if(r==="c"||r==="C")return sl(e);if("dDhHsSwW".includes(r))return cl(e);if(e.startsWith(N`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return pl(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const n=e.split(/\\x/).slice(1).map(a=>parseInt(a,16)),i=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),o=new TextEncoder;return[...i].map(a=>{const s=[...o.encode(a)].map(l=>`\\x${l.toString(16)}`).join("");return Z(Ee(a),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return Z(dl(e),e);if(Hr.has(r))return Z(Hr.get(r),e);if(/\d/.test(r))return tl(t,e);if(e==="\\")throw new Error(N`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Z(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function Js(e){return{type:"Alternator",raw:e}}function Fr(e,t){return{type:"Assertion",kind:e,raw:t}}function ui(e){return{type:"Backreference",raw:e}}function Z(e,t){return{type:"Character",value:e,raw:t}}function Zs(e){return{type:"CharacterClassClose",raw:e}}function Ys(e){return{type:"CharacterClassHyphen",raw:e}}function el(e){return{type:"CharacterClassIntersector",raw:e}}function jr(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function se(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function ci(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:be(r.flags),raw:t}}function tl(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function rl(e){return{type:"GroupClose",raw:e}}function de(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function nl(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function il(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function ol(e){return{type:"Subroutine",raw:e}}const al=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Hr=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function sl(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Z(Ee(t.toUpperCase())-64,e)}function ll(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";const i=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),o=zr(r),a=zr(n),s={};if(o&&(s.enable=o),a&&(s.disable=a),e.endsWith(")"))return t.replaceCurrentModX(i),ci("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(i),t.numOpenGroups++,de("group",e,{...(o||a)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function ul(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:r,tag:n,args:i}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=i?i.split(",").filter(m=>m!=="").map(m=>/^[+-]?\d+$/.test(m)?+m:m):[],[a,s,l]=o,u=al.has(r)?r.toLowerCase():"custom";switch(u){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 a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(o.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);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 a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);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 "${r}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return nl(u,n??null,i?.split(",")??null,e)}function Wr(e){let t=null,r,n;if(e[0]==="{"){const{minStr:i,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,a=1e5;if(+i>a||o&&+o>a)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+i,n=o===void 0?+i:o===""?1/0:+o,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return il(t,r,n,e)}function cl(e){const t=e[1].toLowerCase();return se({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function pl(e){const{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return se("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}function zr(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function ml(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){const n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}function dl(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function hl(e,t){const{raw:r,inCharClass:n}=e,i=r.slice(1);if(!n&&(i!=="0"&&i.length===1||i[0]!=="0"&&+i<=t))return[ui(r)];const o=[],a=i.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){const l=a[s];let u;if(s===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(N`Octal encoded byte above 177 unsupported "${r}"`)}else u=Ee(l);o.push(Z(u,(s===0?"\\":"")+l))}return o}function fl(e){const t=[],r=new RegExp(hr,"gy");let n;for(;n=r.exec(e);){const i=n[0];if(i[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(i);if(o){const{min:a,max:s}=o.groups;if(+a>+s&&i.endsWith("?")){r.lastIndex--,t.push(Wr(i.slice(0,-1)));continue}}}t.push(Wr(i))}return t}function pi(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}function gl(e){return _l.has(e.type)}const _l=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function mi(e,t={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=qs(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),i=(h,d)=>{const f=n.tokens[o.nextIndex];switch(o.parent=h,o.nextIndex++,f.type){case"Alternator":return le();case"Assertion":return yl(f);case"Backreference":return El(f,o);case"Character":return ct(f.value,{useLastValid:!!d.isCheckingRangeEnd});case"CharacterClassHyphen":return bl(f,o,d);case"CharacterClassOpen":return wl(f,o,d);case"CharacterSet":return vl(f,o);case"Directive":return Il(f.kind,{flags:f.flags});case"GroupOpen":return Cl(f,o,d);case"NamedCallout":return Tl(f.kind,f.tag,f.arguments);case"Quantifier":return Al(f,o);case"Subroutine":return Sl(f,o);default:throw new Error(`Unexpected token type "${f.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:i},a=Ol(Rl(n.flags));let s=a.body[0];for(;o.nextIndex<n.tokens.length;){const h=i(s,{});h.type==="Alternative"?(a.body.push(h),s=h):s.body.push(h)}const{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:m,subroutines:p}=o;if(u&&m.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:h}of p)if(typeof h=="number"){if(h>l.length)throw new Error("Subroutine uses a group number that's not defined");h&&(l[h-1].isSubroutined=!0)}else if(m.has(h)){if(m.get(h).length>1)throw new Error(N`Subroutine uses a duplicate group name "\g<${h}>"`);m.get(h)[0].isSubroutined=!0}else throw new Error(N`Subroutine uses a group name that's not defined "\g<${h}>"`);return a}function yl({kind:e}){return Wt(be({"^":"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"}[e],`Unexpected assertion kind "${e}"`),{negate:e===N`\B`||e===N`\Y`})}function El({raw:e},t){const r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),i=(o,a=!1)=>{const s=t.capturingGroups.length;let l=!1;if(o>s)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,zt(a?s+1-o:o,{orphan:l})};if(r){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(o)return i(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return zt(n)}return i(+n)}function bl(e,t,r){const{tokens:n,walk:i}=t,o=t.parent,a=o.body.at(-1),s=n[t.nextIndex];if(!r.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){const l=i(o,{...r,isCheckingRangeEnd:!0});if(a.type==="Character"&&l.type==="Character")return o.body.pop(),kl(a,l);throw new Error("Invalid character class range")}return ct(Ee("-"))}function wl({negate:e},t,r){const{tokens:n,walk:i}=t,o=[He()],a=n[t.nextIndex];let s=Kr(a);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")o.push(He()),t.nextIndex++;else{const u=o.at(-1);u.body.push(i(u,r))}s=Kr(n[t.nextIndex],a)}const l=He({negate:e});return o.length===1?l.body=o[0].body:(l.kind="intersection",l.body=o.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function vl({kind:e,negate:t,value:r},n){const{normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a}=n;if(e==="property"){const s=pt(r);if(dr.has(s)&&!a?.has(s))e="posix",r=s;else return he(r,{negate:t,normalizeUnknownPropertyNames:i,skipPropertyNameValidation:o,unicodePropertyMap:a})}return e==="posix"?Pl(r,{negate:t}):qt(e,{negate:t})}function Cl(e,t,r){const{tokens:n,capturingGroups:i,namedGroupsByName:o,skipLookbehindValidation:a,walk:s}=t,l=xl(e),u=l.type==="AbsenceFunction",m=Xr(l),p=m&&l.negate;if(l.type==="CapturingGroup"&&(i.push(l),l.name&&zs(o,l.name,[]).push(l)),u&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let h=Qr(n[t.nextIndex]);for(;h.type!=="GroupClose";){if(h.type==="Alternator")l.body.push(le()),t.nextIndex++;else{const d=l.body.at(-1),f=s(d,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||m,isInNegLookbehind:r.isInNegLookbehind||p});if(d.body.push(f),(m||r.isInLookbehind)&&!a){const b="Lookbehind includes a pattern not allowed by Oniguruma";if(p||r.isInNegLookbehind){if(qr(f)||f.type==="CapturingGroup")throw new Error(b)}else if(qr(f)||Xr(f)&&f.negate)throw new Error(b)}}h=Qr(n[t.nextIndex])}return t.nextIndex++,l}function Al({kind:e,min:t,max:r},n){const i=n.parent,o=i.body.at(-1);if(!o||!gl(o))throw new Error("Quantifier requires a repeatable token");const a=hi(e,t,r,o);return i.body.pop(),a}function Sl({raw:e},t){const{capturingGroups:r,subroutines:n}=t;let i=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);if(o){const s=+o.groups.num,l=r.length;if(t.hasNumberedRef=!0,i={"":s,"+":l+s,"-":l+1-s}[o.groups.sign],i<1)throw new Error("Invalid subroutine number")}else i==="0"&&(i=0);const a=fi(i);return n.push(a),a}function Ll(e,t){return{type:"AbsenceFunction",kind:e,body:xe(t?.body)}}function le(e){return{type:"Alternative",body:gi(e?.body)}}function Wt(e,t){const r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function zt(e,t){const r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function di(e,t){const r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!Dl(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:xe(t?.body)}}function ct(e,t){const r={useLastValid:!1,...t};if(e>1114111){const n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}function He(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:gi(e?.body)}}function kl(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function qt(e,t){const r=!!t?.negate,n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}function Il(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:be(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function Rl(e){return{type:"Flags",...e}}function H(e){const t=e?.atomic,r=e?.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:xe(e?.body)}}function oe(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:xe(e?.body)}}function Tl(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function Pl(e,t){const r=!!t?.negate;if(!dr.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function hi(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function Ol(e,t){return{type:"Regex",body:xe(t?.body),flags:e}}function fi(e){return{type:"Subroutine",ref:e}}function he(e,t){const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let n=r.unicodePropertyMap?.get(pt(e));if(!n){if(r.normalizeUnknownPropertyNames)n=Nl(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(N`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function xl({flags:e,kind:t,name:r,negate:n,number:i}){switch(t){case"absence_repeater":return Ll("repeater");case"atomic":return H({atomic:!0});case"capturing":return di(i,{name:r});case"group":return H({flags:e});case"lookahead":case"lookbehind":return oe({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}function xe(e){if(e===void 0)e=[le()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function gi(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function qr(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function Xr(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Dl(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Nl(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function pt(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Kr(e,t){const r=t;return be(e,`Unclosed character class${r?.type==="Character"&&r.value===93&&r.raw==="]"?' (started with "]")':""}`)}function Qr(e){return be(e,"Unclosed group")}function Se(e,t,r=null){function n(o,a){for(let s=0;s<o.length;s++){const l=i(o[s],a,s,o);s=Math.max(-1,s+l)}}function i(o,a=null,s=null,l=null){let u=0,m=!1;const p={node:o,parent:a,key:s,container:l,root:e,remove(){Be(l).splice(Math.max(0,pe(s)+u),1),u--,m=!0},removeAllNextSiblings(){return Be(l).splice(pe(s)+1)},removeAllPrevSiblings(){const g=pe(s)+u;return u-=g,Be(l).splice(0,Math.max(0,g))},replaceWith(g,_={}){const w=!!_.traverse;l?l[Math.max(0,pe(s)+u)]=g:be(a,"Can't replace root node")[s]=g,w&&i(g,a,s,l),m=!0},replaceWithMultiple(g,_={}){const w=!!_.traverse;if(Be(l).splice(Math.max(0,pe(s)+u),1,...g),u+=g.length-1,w){let A=0;for(let S=0;S<g.length;S++)A+=i(g[S],a,pe(s)+S+A,l)}m=!0},skip(){m=!0}},{type:h}=o,d=t["*"],f=t[h],b=typeof d=="function"?d:d?.enter,E=typeof f=="function"?f:f?.enter;if(b?.(p,r),E?.(p,r),!m)switch(h){case"AbsenceFunction":case"Alternative":case"CapturingGroup":case"CharacterClass":case"Group":case"LookaroundAssertion":n(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":i(o.min,o,"min"),i(o.max,o,"max");break;case"Quantifier":i(o.body,o,"body");break;case"Regex":n(o.body,o),i(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${h}"`)}return f?.exit?.(p,r),d?.exit?.(p,r),u}return i(e),e}function Be(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function pe(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const Vl=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function $l(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function Ml(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}const j=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function fr(e,t,r,n){const i=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let a=0,s="";for(const l of e.matchAll(i)){const{0:u,groups:{$skip:m}}=l;if(!m&&(!n||n===j.DEFAULT==!a)){r instanceof Function?s+=r(l,{context:a?j.CHAR_CLASS:j.DEFAULT,negated:o[o.length-1]}):s+=r;continue}u[0]==="["?(a++,o.push(u[1]==="^")):u==="]"&&a&&(a--,o.pop()),s+=u}return s}function _i(e,t,r,n){fr(e,t,r,n)}function Gl(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;const i=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");i.lastIndex=r;let o=0,a;for(;a=i.exec(e);){const{0:s,groups:{$skip:l}}=a;if(!l&&(!n||n===j.DEFAULT==!o))return a;s==="["?o++:s==="]"&&o&&o--,i.lastIndex==a.index&&i.lastIndex++}return null}function Ue(e,t,r){return!!Gl(e,t,0,r)}function Bl(e,t){const r=/\\?./gsu;r.lastIndex=t;let n=e.length,i=0,o=1,a;for(;a=r.exec(e);){const[s]=a;if(s==="[")i++;else if(i)s==="]"&&i--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){n=a.index;break}}return e.slice(t,n)}const Jr=new RegExp(String.raw`(?<noncapturingStart>${Vl})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Ul(e,t){const r=t?.hiddenCaptures??[];let n=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};const i="(?>",o="(?:(?=(",a=[0],s=[];let l=0,u=0,m=NaN,p;do{p=!1;let h=0,d=0,f=!1,b;for(Jr.lastIndex=Number.isNaN(m)?0:m+o.length;b=Jr.exec(e);){const{0:E,index:g,groups:{capturingStart:_,noncapturingStart:w}}=b;if(E==="[")h++;else if(h)E==="]"&&h--;else if(E===i&&!f)m=g,f=!0;else if(f&&w)d++;else if(_)f?d++:(l++,a.push(l+u));else if(E===")"&&f){if(!d){u++;const A=l+u;if(e=`${e.slice(0,m)}${o}${e.slice(m+i.length,g)}))<$$${A}>)${e.slice(g+1)}`,p=!0,s.push(A),$l(r,A),n.size){const S=new Map;n.forEach((x,M)=>{S.set(M>=A?M+1:M,x.map(X=>X>=A?X+1:X))}),n=S}break}d--}}}while(p);return r.push(...s),e=fr(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:d,wrappedBackrefNum:f}})=>{if(d){const b=+d;if(b>a.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${a[b]}`}return`\\${f}`},j.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}const yi=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,St=new RegExp(String.raw`
46
+ \\(?: \d+
47
+ | c[A-Za-z]
48
+ | [gk]<[^>]+>
49
+ | [pPu]\{[^\}]+\}
50
+ | u[A-Fa-f\d]{4}
51
+ | x[A-Fa-f\d]{2}
52
+ )
53
+ | \((?: \? (?: [:=!>]
54
+ | <(?:[=!]|[^>]+>)
55
+ | [A-Za-z\-]+:
56
+ | \(DEFINE\)
57
+ ))?
58
+ | (?<qBase>${yi})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
59
+ | \\?.
60
+ `.replace(/\s+/g,""),"gsu");function Fl(e){if(!new RegExp(`${yi}\\+`).test(e))return{pattern:e};const t=[];let r=null,n=null,i="",o=0,a;for(St.lastIndex=0;a=St.exec(e);){const{0:s,index:l,groups:{qBase:u,qMod:m,invalidQ:p}}=a;if(s==="[")o||(n=l),o++;else if(s==="]")o?o--:n=null;else if(!o)if(m==="+"&&i&&!i.startsWith("(")){if(p)throw new Error(`Invalid quantifier "${s}"`);let h=-1;if(/^\{\d+\}$/.test(u))e=Ml(e,l+u.length,m,"");else{if(i===")"||i==="]"){const d=i===")"?r:n;if(d===null)throw new Error(`Invalid unmatched "${i}"`);e=`${e.slice(0,d)}(?>${e.slice(d,l)}${u})${e.slice(l+s.length)}`}else e=`${e.slice(0,l-i.length)}(?>${i}${u})${e.slice(l+s.length)}`;h+=4}St.lastIndex+=h}else s[0]==="("?t.push(l):s===")"&&(r=t.length?t.pop():null);i=s}return{pattern:e}}const F=String.raw,jl=F`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Xt=F`\(\?R=(?<rDepth>[^\)]+)\)|${jl}`,mt=F`\(\?<(?![=!])(?<captureName>[^>]+)>`,Ei=F`${mt}|(?<unnamed>\()(?!\?)`,ne=new RegExp(F`${mt}|${Xt}|\(\?|\\?.`,"gsu"),Lt="Cannot use multiple overlapping recursions";function Hl(e,t){const{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t};let i=t?.captureTransfers??new Map;if(!new RegExp(Xt,"su").test(e))return{pattern:e,captureTransfers:i,hiddenCaptures:r};if(n==="plugin"&&Ue(e,F`\(\?\(DEFINE\)`,j.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],a=Ue(e,F`\\[1-9]`,j.DEFAULT),s=new Map,l=[];let u=!1,m=0,p=0,h;for(ne.lastIndex=0;h=ne.exec(e);){const{0:d,groups:{captureName:f,rDepth:b,gRNameOrNum:E,gRDepth:g}}=h;if(d==="[")m++;else if(m)d==="]"&&m--;else if(b){if(Zr(b),u)throw new Error(Lt);if(a)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const _=e.slice(0,h.index),w=e.slice(ne.lastIndex);if(Ue(w,Xt,j.DEFAULT))throw new Error(Lt);const A=+b-1;e=Yr(_,w,A,!1,r,o,p),i=tn(i,_,A,o.length,0,p);break}else if(E){Zr(g);let _=!1;for(const Y of l)if(Y.name===E||Y.num===+E){if(_=!0,Y.hasRecursedWithin)throw new Error(Lt);break}if(!_)throw new Error(F`Recursive \g cannot be used outside the referenced group "${n==="external"?E:F`\g<${E}&R=${g}>`}"`);const w=s.get(E),A=Bl(e,w);if(a&&Ue(A,F`${mt}|\((?!\?)`,j.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const S=e.slice(w,h.index),x=A.slice(S.length+d.length),M=o.length,X=+g-1,De=Yr(S,x,X,!0,r,o,p);i=tn(i,S,X,o.length-M,M,p);const ht=e.slice(0,w),we=e.slice(w+A.length);e=`${ht}${De}${we}`,ne.lastIndex+=De.length-d.length-S.length-x.length,l.forEach(Y=>Y.hasRecursedWithin=!0),u=!0}else if(f)p++,s.set(String(p),ne.lastIndex),s.set(f,ne.lastIndex),l.push({num:p,name:f});else if(d[0]==="("){const _=d==="(";_&&(p++,s.set(String(p),ne.lastIndex)),l.push(_?{num:p}:{})}else d===")"&&l.pop()}return r.push(...o),{pattern:e,captureTransfers:i,hiddenCaptures:r}}function Zr(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Yr(e,t,r,n,i,o,a){const s=new Set;n&&_i(e+t,mt,({groups:{captureName:u}})=>{s.add(u)},j.DEFAULT);const l=[r,n?s:null,i,o,a];return`${e}${en(`(?:${e}`,"forward",...l)}(?:)${en(`${t})`,"backward",...l)}${t}`}function en(e,t,r,n,i,o,a){const l=m=>t==="forward"?m+2:r-m+2-1;let u="";for(let m=0;m<r;m++){const p=l(m);u+=fr(e,F`${Ei}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:d,unnamed:f,backref:b}})=>{if(b&&n&&!n.has(b))return h;const E=`_$${p}`;if(f||d){const g=a+o.length+1;return o.push(g),Wl(i,g),f?h:`(?<${d}${E}>`}return F`\k<${b}${E}>`},j.DEFAULT)}return u}function Wl(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function tn(e,t,r,n,i,o){if(e.size&&n){let a=0;_i(t,Ei,()=>a++,j.DEFAULT);const s=o-a+i,l=new Map;return e.forEach((u,m)=>{const p=(n-a*r)/r,h=a*r,d=m>s+a?m+n:m,f=[];for(const b of u)if(b<=s)f.push(b);else if(b>s+a+p)f.push(b+n);else if(b<=s+a)for(let E=0;E<=r;E++)f.push(b+a*E);else for(let E=0;E<=r;E++)f.push(b+h+p*E);l.set(d,f)}),l}return e}var P=String.fromCodePoint,v=String.raw,W={},dt=globalThis.RegExp;W.flagGroups=(()=>{try{new dt("(?i:)")}catch{return!1}return!0})();W.unicodeSets=(()=>{try{new dt("[[]]","v")}catch{return!1}return!0})();W.bugFlagVLiteralHyphenIsRange=W.unicodeSets?(()=>{try{new dt(v`[\d\-a]`,"v")}catch{return!0}return!1})():!1;W.bugNestedClassIgnoresNegation=W.unicodeSets&&new dt("[[^a]]","v").test("a");function tt(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Te(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function Kt(e,t){return rn[e]>=rn[t]}function zl(e,t){if(e==null)throw new Error(t??"Value expected");return e}var rn={ES2025:2025,ES2024:2024,ES2018:2018},ql={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function bi(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!ql[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=W.flagGroups?"ES2025":W.unicodeSets?"ES2024":"ES2018"),t}var Xl="[ -\r ]",Kl=new Set([P(304),P(305)]),Q=v`[\p{L}\p{M}\p{N}\p{Pc}]`;function wi(e){if(Kl.has(e))return[e];const t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),i=Zl.get(r),o=Ql.get(r),a=Jl.get(r);return[...n].length===1&&t.add(n),a&&t.add(a),i&&t.add(i),t.add(r),o&&t.add(o),[...t]}var gr=new Map(`C Other
61
+ Cc Control cntrl
62
+ Cf Format
63
+ Cn Unassigned
64
+ Co Private_Use
65
+ Cs Surrogate
66
+ L Letter
67
+ LC Cased_Letter
68
+ Ll Lowercase_Letter
69
+ Lm Modifier_Letter
70
+ Lo Other_Letter
71
+ Lt Titlecase_Letter
72
+ Lu Uppercase_Letter
73
+ M Mark Combining_Mark
74
+ Mc Spacing_Mark
75
+ Me Enclosing_Mark
76
+ Mn Nonspacing_Mark
77
+ N Number
78
+ Nd Decimal_Number digit
79
+ Nl Letter_Number
80
+ No Other_Number
81
+ P Punctuation punct
82
+ Pc Connector_Punctuation
83
+ Pd Dash_Punctuation
84
+ Pe Close_Punctuation
85
+ Pf Final_Punctuation
86
+ Pi Initial_Punctuation
87
+ Po Other_Punctuation
88
+ Ps Open_Punctuation
89
+ S Symbol
90
+ Sc Currency_Symbol
91
+ Sk Modifier_Symbol
92
+ Sm Math_Symbol
93
+ So Other_Symbol
94
+ Z Separator
95
+ Zl Line_Separator
96
+ Zp Paragraph_Separator
97
+ Zs Space_Separator
98
+ ASCII
99
+ ASCII_Hex_Digit AHex
100
+ Alphabetic Alpha
101
+ Any
102
+ Assigned
103
+ Bidi_Control Bidi_C
104
+ Bidi_Mirrored Bidi_M
105
+ Case_Ignorable CI
106
+ Cased
107
+ Changes_When_Casefolded CWCF
108
+ Changes_When_Casemapped CWCM
109
+ Changes_When_Lowercased CWL
110
+ Changes_When_NFKC_Casefolded CWKCF
111
+ Changes_When_Titlecased CWT
112
+ Changes_When_Uppercased CWU
113
+ Dash
114
+ Default_Ignorable_Code_Point DI
115
+ Deprecated Dep
116
+ Diacritic Dia
117
+ Emoji
118
+ Emoji_Component EComp
119
+ Emoji_Modifier EMod
120
+ Emoji_Modifier_Base EBase
121
+ Emoji_Presentation EPres
122
+ Extended_Pictographic ExtPict
123
+ Extender Ext
124
+ Grapheme_Base Gr_Base
125
+ Grapheme_Extend Gr_Ext
126
+ Hex_Digit Hex
127
+ IDS_Binary_Operator IDSB
128
+ IDS_Trinary_Operator IDST
129
+ ID_Continue IDC
130
+ ID_Start IDS
131
+ Ideographic Ideo
132
+ Join_Control Join_C
133
+ Logical_Order_Exception LOE
134
+ Lowercase Lower
135
+ Math
136
+ Noncharacter_Code_Point NChar
137
+ Pattern_Syntax Pat_Syn
138
+ Pattern_White_Space Pat_WS
139
+ Quotation_Mark QMark
140
+ Radical
141
+ Regional_Indicator RI
142
+ Sentence_Terminal STerm
143
+ Soft_Dotted SD
144
+ Terminal_Punctuation Term
145
+ Unified_Ideograph UIdeo
146
+ Uppercase Upper
147
+ Variation_Selector VS
148
+ White_Space space
149
+ XID_Continue XIDC
150
+ XID_Start XIDS`.split(/\s/).map(e=>[pt(e),e])),Ql=new Map([["s",P(383)],[P(383),"s"]]),Jl=new Map([[P(223),P(7838)],[P(107),P(8490)],[P(229),P(8491)],[P(969),P(8486)]]),Zl=new Map([ee(453),ee(456),ee(459),ee(498),...kt(8072,8079),...kt(8088,8095),...kt(8104,8111),ee(8124),ee(8140),ee(8188)]),Yl=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 eu(e,t){const r=[];for(let n=e;n<=t;n++)r.push(n);return r}function ee(e){const t=P(e);return[t.toLowerCase(),t]}function kt(e,t){return eu(e,t).map(r=>ee(r))}var vi=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function tu(e,t){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Ci(e);const n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Kt(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Se(e,ru,n);const i={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:i,prevFlags:null,globalFlags:i,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};Se(e,nu,o);const a={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Se(e,iu,a),e._originMap=o.groupOriginByCopy,e._strategy=n.strategy,e}var ru={AbsenceFunction({node:e,parent:t,replaceWith:r}){const{body:n,kind:i}=e;if(i==="repeater"){const o=H();o.body[0].body.push(oe({negate:!0,body:n}),he("Any"));const a=H();a.body[0].body.push(hi("greedy",0,1/0,o)),r(I(a,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){const i=e.body.filter(o=>o.kind==="flags");for(let o=r+1;o<t.body.length;o++){const a=t.body[o];Te(n,a,[]).push(...i)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const r=Si(t.get(e));if(r){const n=H({flags:r});n.body[0].body=e.body,e.body=[I(n,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:i,remove:o,replaceWith:a},s){const{kind:l,negate:u}=e,{asciiWordBoundaries:m,avoidSubclass:p,supportedGNodes:h,wordIsAscii:d}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")a(I(oe({body:[le({body:[Wt("string_end")]}),le({body:[ct(10)]})]}),t));else if(l==="line_start")a(I(J(v`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(h.has(e))i.flags.sticky=!0,o();else{const f=n[r-1];if(f&&cu(f))a(I(oe({negate:!0}),t));else{if(p)throw new Error(v`Uses "\G" in a way that requires a subclass`);a(te(Wt("string_start"),t)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")a(I(J(v`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!d&&!m){const f=`(?:(?<=${Q})(?!${Q})|(?<!${Q})(?=${Q}))`,b=`(?:(?<=${Q})(?=${Q})|(?<!${Q})(?!${Q}))`;a(I(J(u?b:f),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Rt(r)&&(r=It(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!Rt(n)&&(n=It(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){const n=He({body:[e]});r(I(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:i,digitIsAscii:o,spaceIsAscii:a,wordIsAscii:s}){const{kind:l,negate:u,value:m}=e;if(o&&(l==="digit"||m==="digit")){r(te(qt("digit",{negate:u}),t));return}if(a&&(l==="space"||m==="space")){r(I(Tt(J(Xl),u),t));return}if(s&&(l==="word"||m==="word")){r(te(qt("word",{negate:u}),t));return}if(l==="any")r(te(he("Any"),t));else if(l==="digit")r(te(he("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(n==="strict")throw new Error(v`Use of "\X" requires non-strict accuracy`);const p="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",h=v`\p{RI}{2}|${p}(?:\u200D${p})*`;r(I(J(v`(?>\r\n|${i?v`\p{RGI_Emoji}`:h}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")r(te(he("AHex",{negate:u}),t));else if(l==="newline")r(I(J(u?`[^
151
+ ]`:`(?>\r
152
+ ?|[
153
+ \v\f…\u2028\u2029])`),t));else if(l==="posix")if(!i&&(m==="graph"||m==="print")){if(n==="strict")throw new Error(`POSIX class "${m}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[m];u&&(p=`\0-${P(p.codePointAt(0)-1)}${P(p.codePointAt(2)+1)}-􏿿`),r(I(J(`[${p}]`),t))}else r(I(Tt(J(Yl.get(m)),u),t));else if(l==="property")gr.has(pt(m))||(e.key="sc");else if(l==="space")r(te(he("space",{negate:u}),t));else if(l==="word")r(I(Tt(J(Q),u),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:i,removeAllPrevSiblings:o,removeAllNextSiblings:a}){const{kind:s,flags:l}=e;if(s==="flags")if(!l.enable&&!l.disable)n();else{const u=H({flags:l});u.body[0].body=a(),i(I(u,t),{traverse:!0})}else if(s==="keep"){const u=r.body[0],p=r.body.length===1&&pi(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:r;if(t.parent!==p||p.body.length>1)throw new Error(v`Uses "\K" in a way that's unsupported`);const h=oe({behind:!0});h.body[0].body=o(),i(I(h,t))}else throw new Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){const{kind:n}=e;if(n==="fail")r(I(oe({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=H();t.body[0].body.push(e.body),e.body=I(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const r=[];let n=!1,i=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const a=ki(o.body);a?(n=!0,Array.isArray(a)?r.push(...a):r.push(a)):i=!0}n&&!i&&r.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(v`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!Rt(r)&&(r=It(r,t),e.ref=r)}},nu={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){const{orphan:n,ref:i}=e;n||r.set(e,[...t.get(i).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:i,groupsByName:o,multiplexCapturesToLeftByRef:a,openRefs:s,reffedNodesByReferencer:l}){const u=i.get(e);if(u&&s.has(e.number)){const p=te(nn(e.number),t);l.set(p,s.get(e.number)),r(p);return}s.set(e.number,e),a.set(e.number,[]),e.name&&Te(a,e.name,[]);const m=a.get(e.name??e.number);for(let p=0;p<m.length;p++){const h=m[p];if(u===h.node||u&&u===h.origin||e===h.origin){m.splice(p,1);break}}if(a.get(e.number).push({node:e,origin:u}),e.name&&a.get(e.name).push({node:e,origin:u}),e.name){const p=Te(o,e.name,new Map);let h=!1;if(u)h=!0;else for(const d of p.values())if(!d.hasDuplicateNameToRemove){h=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:h})}},exit({node:e},{openRefs:t}){t.get(e.number)===e&&t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=tt(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){const{isRecursive:i,ref:o}=e;if(i){let m=t;for(;(m=m.parent)&&!(m.type==="CapturingGroup"&&(m.name===o||m.number===o)););n.reffedNodesByReferencer.set(e,m);return}const a=n.subroutineRefMap.get(o),s=o===0,l=s?nn(0):Ai(a,n.groupOriginByCopy,null);let u=l;if(!s){const m=Si(su(a,h=>h.type==="Group"&&!!h.flags)),p=m?tt(n.globalFlags,m):n.globalFlags;ou(p,n.currentFlags)||(u=H({flags:lu(p)}),u.body[0].body.push(l))}r(I(u,t),{traverse:!s})}},iu={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}const o=n.reffedNodesByReferencer.get(e).filter(a=>au(a,e));if(!o.length)r(I(oe({negate:!0}),t));else if(o.length>1){const a=H({atomic:!0,body:o.reverse().map(s=>le({body:[zt(s.number)]}))});r(I(a,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){const i=di();e.body.at(-1).body.push(i)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Ci(e){Se(e,{"*"({node:t,parent:r}){t.parent=r}})}function ou(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function au(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;const n=Li(r.parent);for(const i of n){if(i===r)break;if(i===e||Ii(i,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function Ai(e,t,r,n){const i=Array.isArray(e)?[]:{};for(const[o,a]of Object.entries(e))o==="parent"?i.parent=Array.isArray(r)?n:r:a&&typeof a=="object"?i[o]=Ai(a,t,i,r):(o==="type"&&a==="CapturingGroup"&&t.set(i,t.get(e)??e),i[o]=a);return i}function nn(e){const t=fi(e);return t.isRecursive=!0,t}function su(e,t){const r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function It(e,t){if(t.has(e))return t.get(e);const r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function Si(e){const t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(i=>{n.enable?.[i]&&(delete r.disable[i],r.enable[i]=!0),n.disable?.[i]&&(r.disable[i]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function lu({dotAll:e,ignoreCase:t}){const r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function Li(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function ki(e){const t=e.find(r=>r.kind==="search_start"||pu(r,{negate:!1})||!uu(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const r=[];for(const n of t.body){const i=ki(n.body);if(!i)return null;Array.isArray(i)?r.push(...i):r.push(i)}return r}return null}function Ii(e,t){const r=Li(e)??[];for(const n of r)if(n===t||Ii(n,t))return!0;return!1}function uu({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function cu(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function pu(e,t){const r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&pi(e.body[0],{type:"Assertion",kind:"search_start"})}function Rt(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function J(e,t){const n=mi(e,{...t,unicodePropertyMap:gr}).body;return n.length>1||n[0].body.length>1?H({body:n}):n[0].body[0]}function Tt(e,t){return e.negate=t,e}function te(e,t){return e.parent=t,e}function I(e,t){return Ci(e),e.parent=t,e}function mu(e,t){const r=bi(t),n=Kt(r.target,"ES2024"),i=Kt(r.target,"ES2025"),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,s=null;if(!i){const d=[e.flags.ignoreCase];Se(e,du,{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(f){d.push(f)},setHasCasedChar(){d.at(-1)?a=!0:s=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!s)};let u=e;const m={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!i&&a&&s),useFlagMods:i,useFlagV:n,verbose:r.verbose};function p(d){return m.lastNode=u,u=d,zl(hu[d.type],`Unexpected node type "${d.type}"`)(d,m,p)}const h={pattern:e.body.map(p).join("|"),flags:p(e.flags),options:{...e.options}};return n||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],m.captureMap.forEach((d,f)=>{d.hidden&&h._hiddenCaptures.push(f),d.transferTo&&Te(h._captureTransfers,d.transferTo,[]).push(f)}),h}var du={"*":{enter({node:e},t){if(an(e)){const r=t.getCurrentModI();t.pushModI(e.flags?tt({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){an(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){_r(P(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),Ri(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&vi.has(e.value)&&t.setHasCasedChar()}},hu={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?v`\B`:v`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){const{body:n,name:i,number:o}=e,a={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(a.hidden=!0,o>s.number&&(a.transferTo=s.number)),t.captureMap.set(o,a),`(${i?`?<${i}>`:""}${n.map(r).join("|")})`},Character({value:e},t){const r=P(e),n=me(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&_r(r)){const i=wi(r);return t.inCharClass?i.join(""):i.length>1?`[${i.join("")}]`:i[0]}return r},CharacterClass(e,t,r){const{kind:n,negate:i,parent:o}=e;let{body:a}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");W.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&a.some(sn)&&(a=[ct(45),...a.filter(u=>!sn(u))]);const s=()=>`[${i?"^":""}${a.map(r).join(n==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||W.bugNestedClassIgnoresNegation)&&!i){const m=a.filter(p=>p.type==="CharacterClass"&&p.kind==="union"&&p.negate);if(m.length){const p=H(),h=p.body[0];return p.parent=o,h.parent=p,a=a.filter(d=>!m.includes(d)),e.body=a,a.length?(e.parent=h,h.body.push(e)):p.body.pop(),m.forEach(d=>{const f=le({body:[d]});d.parent=f,f.parent=p,p.body.push(f)}),r(p)}}t.inCharClass=!0;const u=s();return t.inCharClass=!1,u}const l=a[0];if(n==="union"&&!i&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(W.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&a.length===1&&l.type!=="CharacterClassRange"))return a.map(r).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){const r=e.min.value,n=e.max.value,i={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=me(r,i),a=me(n,i),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Ri(e);Eu(l).forEach(m=>{s.add(Array.isArray(m)?`${me(m[0],i)}-${me(m[1],i)}`:me(m,i))})}return`${o}-${a}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},i){if(e==="dot")return i.currentFlags.dotAll?i.appliedGlobalFlags.dotAll||i.useFlagMods?".":"[^]":v`[^\n]`;if(e==="digit")return t?v`\D`:v`\d`;if(e==="property"){if(i.useAppliedIgnoreCase&&i.currentFlags.ignoreCase&&vi.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?v`\P`:v`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?v`\W`:v`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},i,o){const a=i.currentFlags;r&&(i.currentFlags=tt(a,r));const s=t.map(o).join("|"),l=!i.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!i.useFlagMods||!r)?s:`(?${bu(e,r,i.useFlagMods)}${s})`;return i.currentFlags=a,l},LookaroundAssertion({body:e,kind:t,negate:r},n,i){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(i).join("|")})`},Quantifier(e,t,r){return r(e.body)+wu(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const n=r.recursionLimit;return t===0?`(?R=${n})`:v`\g<${t}&R=${n}>`}},fu=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),gu=new Set(["-","\\","]","^","["]),_u=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),on=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=new RegExp("^\\p{Cased}$","u");function _r(e){return yu.test(e)}function Ri(e,t){const r=!!t?.firstOnly,n=e.min.value,i=e.max.value,o=[];if(n<65&&(i===65535||i>=131071)||n===65536&&i>=131071)return o;for(let a=n;a<=i;a++){const s=P(a);if(!_r(s))continue;const l=wi(s).filter(u=>{const m=u.codePointAt(0);return m<n||m>i});if(l.length&&(o.push(...l),r))break}return o}function me(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(on.has(e))return on.get(e);if(e<32||e>126&&e<160||e>262143||t&&vu(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const i=r?n?_u:gu:fu,o=P(e);return(i.has(o)?"\\":"")+o}function Eu(e){const t=e.map(i=>i.codePointAt(0)).sort((i,o)=>i-o),r=[];let n=null;for(let i=0;i<t.length;i++)t[i+1]===t[i]+1?n??=t[i]:n===null?r.push(t[i]):(r.push([n,t[i]]),n=null);return r}function bu(e,t,r){if(e)return">";let n="";if(t&&r){const{enable:i,disable:o}=t;n=(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${n}:`}function wu({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}function an({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function vu(e){return e>47&&e<58}function sn({type:e,value:t}){return e==="Character"&&t===45}var Cu=class Qt extends RegExp{#t=new Map;#e=null;#n;#r=null;#i=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,n){const i=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,r),this.#n=o.source,o instanceof Qt&&(this.#t=o.#t,this.#r=o.#r,this.#i=o.#i,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...n};super(i?"":t,r),this.#n=t,this.#t=Su(o.hiddenCaptures,o.transfers),this.#i=o.strategy,this.rawOptions=n??{}}i||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:i,...o}=this.rawOptions;this.#e=new Qt(this.#n,this.flags,o)}const r=this.global||this.sticky,n=this.lastIndex;if(this.#i==="clip_search"&&r&&n){this.lastIndex=0;const i=this.#o(t.slice(n));return i&&(Au(i,n,t,this.hasIndices),this.lastIndex+=n),i}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;const r=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;const n=[...r];r.length=1;let i;this.hasIndices&&(i=[...r.indices],r.indices.length=1);const o=[0];for(let a=1;a<n.length;a++){const{hidden:s,transferTo:l}=this.#t.get(a)??{};if(s?o.push(null):(o.push(r.length),r.push(n[a]),this.hasIndices&&r.indices.push(i[a])),l&&n[a]!==void 0){const u=o[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=n[a],this.hasIndices&&(r.indices[u]=i[a]),r.groups){this.#r||(this.#r=Lu(this.source));const m=this.#r.get(l);m&&(r.groups[m]=n[a],this.hasIndices&&(r.indices.groups[m]=i[a]))}}}return r}};function Au(e,t,r,n){if(e.index+=t,e.input=r,n){const i=e.indices;for(let a=0;a<i.length;a++){const s=i[a];s&&(i[a]=[s[0]+t,s[1]+t])}const o=i.groups;o&&Object.keys(o).forEach(a=>{const s=o[a];s&&(o[a]=[s[0]+t,s[1]+t])})}}function Su(e,t){const r=new Map;for(const n of e)r.set(n,{hidden:!0});for(const[n,i]of t)for(const o of i)Te(r,o,{}).transferTo=n;return r}function Lu(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let n=0,i=0,o;for(;o=t.exec(e);){const{0:a,groups:{capture:s,name:l}}=o;a==="["?n++:n?a==="]"&&n--:s&&(i++,l&&r.set(i,l))}return r}function ku(e,t){const r=Iu(e,t);return r.options?new Cu(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function Iu(e,t){const r=bi(t),n=mi(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:gr}),i=tu(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),o=mu(i,r),a=Hl(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),s=Fl(a.pattern),l=Ul(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),u={pattern:l.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const m=l.hiddenCaptures.sort((f,b)=>f-b),p=Array.from(l.captureTransfers),h=i._strategy,d=u.pattern.length>=r.lazyCompileLength;(m.length||p.length||h||d)&&(u.options={...m.length&&{hiddenCaptures:m},...p.length&&{transfers:p},...h&&{strategy:h},...d&&{lazyCompile:d}})}return u}function Ti(e,t){return ku(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function Ru(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=r=>Ti(r,{target:t.target}),{createScanner(r){return new Ws(r,t)},createString(r){return{content:r}}}}var Tu=Jt({bundledLanguages:()=>er,bundledLanguagesAlias:()=>Yt,bundledLanguagesBase:()=>Zt,bundledLanguagesInfo:()=>rt,bundledThemes:()=>rr,bundledThemesInfo:()=>tr,codeToHast:()=>ei,codeToHtml:()=>Yn,codeToTokens:()=>ti,codeToTokensBase:()=>ri,codeToTokensWithThemes:()=>ni,createHighlighter:()=>mr,createJavaScriptRegexEngine:()=>Ru,createOnigurumaEngine:()=>pn,defaultJavaScriptRegexConstructor:()=>Ti,getLastGrammarState:()=>oi,getSingletonHighlighter:()=>ii,loadWasm:()=>ir});ln(Tu,Hs);export{k as ShikiError,Jn as addClassToHast,re as applyColorReplacements,er as bundledLanguages,Yt as bundledLanguagesAlias,Zt as bundledLanguagesBase,rt as bundledLanguagesInfo,rr as bundledThemes,tr as bundledThemesInfo,ei as codeToHast,Yn as codeToHtml,ti as codeToTokens,ri as codeToTokensBase,ni as codeToTokensWithThemes,Us as createBundledHighlighter,mr as createHighlighter,Bs as createHighlighterCore,Ru as createJavaScriptRegexEngine,pn as createOnigurumaEngine,gs as createPositionConverter,jo as createShikiPrimitive,Ho as createShikiPrimitiveAsync,js as createSingletonShorthands,Ti as defaultJavaScriptRegexConstructor,ws as flatTokenVariants,oi as getLastGrammarState,ii as getSingletonHighlighter,Je as getTokenStyleObject,_s as guessEmbeddedLanguages,Ms as hastToHtml,at as isNoneTheme,ot as isPlainLang,Rn as isSpecialLang,Tn as isSpecialTheme,ir as loadWasm,Fs as makeSingletonHighlighter,In as normalizeGetter,ar as normalizeTheme,Qe as resolveColorReplacements,st as splitLines,Es as splitToken,bs as splitTokens,jt as stringifyTokenStyle,Bo as toArray,Os as tokenizeAnsiWithTheme,Xo as tokenizeWithTheme,Ds as tokensToHast,vs as transformerDecorations};