@arcadeai/design-system 3.39.0 → 3.39.2

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 (425) hide show
  1. package/dist/CompositeItem-CniPsjzP.js +30 -0
  2. package/dist/CompositeList-yq5K_yj6.js +81 -0
  3. package/dist/CompositeRoot-Dy-5A-Je.js +206 -0
  4. package/dist/DialogRoot-DDokfJcO.js +57 -0
  5. package/dist/DialogTrigger-CFUE8YsM.js +402 -0
  6. package/dist/DirectionContext-BSOheMwC.js +10 -0
  7. package/dist/FieldItemContext-CF2fRwBC.js +12 -0
  8. package/dist/FloatingPortalLite-BHsRx4XN.js +29 -0
  9. package/dist/InternalBackdrop-BVEfe6O1.js +610 -0
  10. package/dist/LabelableContext-Dzw1DWuj.js +171 -0
  11. package/dist/Separator-CswSYAXX.js +25 -0
  12. package/dist/ToolbarRootContext-D7EsmJ5f.js +10 -0
  13. package/dist/andromeeda-B-gfN00q.js +4 -0
  14. package/dist/angular-html-dA1qUKRV.js +32 -0
  15. package/dist/angular-ts-CXyBC0vY.js +21 -0
  16. package/dist/apl-CjNiDgad.js +3 -3
  17. package/dist/assets/icons/telegram.js +10 -0
  18. package/dist/assets/images/arcade-grid.d.ts.map +1 -1
  19. package/dist/assets/images/arcade-grid.js +1 -0
  20. package/dist/assets/index.css +1 -1
  21. package/dist/assets/tokens.css +1 -1
  22. package/dist/assets/variables.css +1 -1
  23. package/dist/astro--3ZkKqYU.js +18 -0
  24. package/dist/astro-CFFExE8Q.js +5 -5
  25. package/dist/aurora-x-B56eICma.js +4 -0
  26. package/dist/ayu-dark-DJSOaKig.js +4 -0
  27. package/dist/ayu-light-BPfFt4v-.js +4 -0
  28. package/dist/ayu-mirage-DmPLRBj7.js +4 -0
  29. package/dist/blade-BoRuQEEj.js +20 -0
  30. package/dist/blade-D0HyNvCw.js +4 -4
  31. package/dist/c-C4SM8H98.js +6 -0
  32. package/dist/cairo-DM6WF2e3.js +1 -1
  33. package/dist/{calendar-DreAgQKY.js → calendar-CLEnvrbp.js} +483 -482
  34. package/dist/catppuccin-frappe-CA5k7W3u.js +4 -0
  35. package/dist/catppuccin-latte-CYfkUW5v.js +4 -0
  36. package/dist/catppuccin-macchiato-BOj_4I3g.js +4 -0
  37. package/dist/catppuccin-mocha-BXpUXme4.js +4 -0
  38. package/dist/clamp-BxE4ZAuA.js +17 -0
  39. package/dist/cobol-HihOMwht.js +1 -1
  40. package/dist/coffee-D8Swy5yR.js +8 -0
  41. package/dist/components/index.js +665 -644
  42. package/dist/components/ui/atoms/accordion.d.ts +9 -7
  43. package/dist/components/ui/atoms/accordion.d.ts.map +1 -1
  44. package/dist/components/ui/atoms/accordion.js +454 -243
  45. package/dist/components/ui/atoms/alert-dialog.d.ts +13 -9
  46. package/dist/components/ui/atoms/alert-dialog.d.ts.map +1 -1
  47. package/dist/components/ui/atoms/alert-dialog.js +149 -183
  48. package/dist/components/ui/atoms/alert.d.ts +2 -1
  49. package/dist/components/ui/atoms/alert.d.ts.map +1 -1
  50. package/dist/components/ui/atoms/alert.js +36 -25
  51. package/dist/components/ui/atoms/avatar.d.ts +10 -5
  52. package/dist/components/ui/atoms/avatar.d.ts.map +1 -1
  53. package/dist/components/ui/atoms/avatar.js +198 -205
  54. package/dist/components/ui/atoms/badge.d.ts +4 -5
  55. package/dist/components/ui/atoms/badge.d.ts.map +1 -1
  56. package/dist/components/ui/atoms/badge.js +31 -22
  57. package/dist/components/ui/atoms/breadcrumb.d.ts +4 -5
  58. package/dist/components/ui/atoms/breadcrumb.d.ts.map +1 -1
  59. package/dist/components/ui/atoms/breadcrumb.js +46 -29
  60. package/dist/components/ui/atoms/button.d.ts +4 -6
  61. package/dist/components/ui/atoms/button.d.ts.map +1 -1
  62. package/dist/components/ui/atoms/button.js +59 -28
  63. package/dist/components/ui/atoms/byoc-badge.d.ts +2 -2
  64. package/dist/components/ui/atoms/byoc-badge.d.ts.map +1 -1
  65. package/dist/components/ui/atoms/byoc-badge.js +14 -8
  66. package/dist/components/ui/atoms/calendar.d.ts +6 -16
  67. package/dist/components/ui/atoms/calendar.d.ts.map +1 -1
  68. package/dist/components/ui/atoms/calendar.js +1 -1
  69. package/dist/components/ui/atoms/card.d.ts +4 -2
  70. package/dist/components/ui/atoms/card.d.ts.map +1 -1
  71. package/dist/components/ui/atoms/card.js +46 -35
  72. package/dist/components/ui/atoms/chart.d.ts +24 -48
  73. package/dist/components/ui/atoms/chart.d.ts.map +1 -1
  74. package/dist/components/ui/atoms/chart.js +179 -148
  75. package/dist/components/ui/atoms/checkbox.d.ts +2 -3
  76. package/dist/components/ui/atoms/checkbox.d.ts.map +1 -1
  77. package/dist/components/ui/atoms/checkbox.js +269 -249
  78. package/dist/components/ui/atoms/code-block.js +1 -1
  79. package/dist/components/ui/atoms/collapsible.d.ts +5 -5
  80. package/dist/components/ui/atoms/collapsible.d.ts.map +1 -1
  81. package/dist/components/ui/atoms/collapsible.js +208 -23
  82. package/dist/components/ui/atoms/command.d.ts +4 -3
  83. package/dist/components/ui/atoms/command.d.ts.map +1 -1
  84. package/dist/components/ui/atoms/command.js +1655 -348
  85. package/dist/components/ui/atoms/dialog.d.ts +12 -10
  86. package/dist/components/ui/atoms/dialog.d.ts.map +1 -1
  87. package/dist/components/ui/atoms/dialog.js +91 -80
  88. package/dist/components/ui/atoms/dropdown-menu.d.ts +21 -17
  89. package/dist/components/ui/atoms/dropdown-menu.d.ts.map +1 -1
  90. package/dist/components/ui/atoms/dropdown-menu.js +1507 -899
  91. package/dist/components/ui/atoms/form.d.ts +5 -3
  92. package/dist/components/ui/atoms/form.d.ts.map +1 -1
  93. package/dist/components/ui/atoms/form.js +36 -42
  94. package/dist/components/ui/atoms/hover-card.d.ts +5 -6
  95. package/dist/components/ui/atoms/hover-card.d.ts.map +1 -1
  96. package/dist/components/ui/atoms/hover-card.js +355 -193
  97. package/dist/components/ui/atoms/icons/index.d.ts +1 -0
  98. package/dist/components/ui/atoms/icons/index.d.ts.map +1 -1
  99. package/dist/components/ui/atoms/icons/index.js +58 -56
  100. package/dist/components/ui/atoms/icons/telegram.d.ts +4 -0
  101. package/dist/components/ui/atoms/icons/telegram.d.ts.map +1 -0
  102. package/dist/components/ui/atoms/icons/telegram.js +37 -0
  103. package/dist/components/ui/atoms/index.d.ts +1 -0
  104. package/dist/components/ui/atoms/index.d.ts.map +1 -1
  105. package/dist/components/ui/atoms/index.js +566 -545
  106. package/dist/components/ui/atoms/input-group.d.ts +20 -0
  107. package/dist/components/ui/atoms/input-group.d.ts.map +1 -0
  108. package/dist/components/ui/atoms/input-group.js +136 -0
  109. package/dist/components/ui/atoms/input.d.ts.map +1 -1
  110. package/dist/components/ui/atoms/input.js +113 -13
  111. package/dist/components/ui/atoms/label.d.ts +1 -2
  112. package/dist/components/ui/atoms/label.d.ts.map +1 -1
  113. package/dist/components/ui/atoms/label.js +18 -31
  114. package/dist/components/ui/atoms/markdown.js +1 -1
  115. package/dist/components/ui/atoms/mobile-tooltip.js +4 -3
  116. package/dist/components/ui/atoms/popover.d.ts +8 -6
  117. package/dist/components/ui/atoms/popover.d.ts.map +1 -1
  118. package/dist/components/ui/atoms/popover.js +617 -245
  119. package/dist/components/ui/atoms/pro-badge.js +1 -1
  120. package/dist/components/ui/atoms/progress.d.ts +7 -4
  121. package/dist/components/ui/atoms/progress.d.ts.map +1 -1
  122. package/dist/components/ui/atoms/progress.js +236 -92
  123. package/dist/components/ui/atoms/radio-group.d.ts +4 -4
  124. package/dist/components/ui/atoms/radio-group.d.ts.map +1 -1
  125. package/dist/components/ui/atoms/radio-group.js +355 -251
  126. package/dist/components/ui/atoms/resizable.d.ts +3 -4
  127. package/dist/components/ui/atoms/resizable.d.ts.map +1 -1
  128. package/dist/components/ui/atoms/resizable.js +25 -27
  129. package/dist/components/ui/atoms/scroll-area.d.ts +5 -5
  130. package/dist/components/ui/atoms/scroll-area.d.ts.map +1 -1
  131. package/dist/components/ui/atoms/scroll-area.js +611 -526
  132. package/dist/components/ui/atoms/scroll-button.d.ts.map +1 -1
  133. package/dist/components/ui/atoms/scroll-button.js +27 -22
  134. package/dist/components/ui/atoms/select.d.ts +11 -11
  135. package/dist/components/ui/atoms/select.d.ts.map +1 -1
  136. package/dist/components/ui/atoms/select.js +1525 -889
  137. package/dist/components/ui/atoms/separator.d.ts +2 -3
  138. package/dist/components/ui/atoms/separator.d.ts.map +1 -1
  139. package/dist/components/ui/atoms/separator.js +16 -35
  140. package/dist/components/ui/atoms/sheet.d.ts +9 -9
  141. package/dist/components/ui/atoms/sheet.d.ts.map +1 -1
  142. package/dist/components/ui/atoms/sheet.js +65 -64
  143. package/dist/components/ui/atoms/sidebar.d.ts +9 -15
  144. package/dist/components/ui/atoms/sidebar.d.ts.map +1 -1
  145. package/dist/components/ui/atoms/sidebar.js +288 -283
  146. package/dist/components/ui/atoms/skeleton.js +4 -4
  147. package/dist/components/ui/atoms/slider.d.ts +2 -3
  148. package/dist/components/ui/atoms/slider.d.ts.map +1 -1
  149. package/dist/components/ui/atoms/slider.js +886 -440
  150. package/dist/components/ui/atoms/switch.d.ts +4 -5
  151. package/dist/components/ui/atoms/switch.d.ts.map +1 -1
  152. package/dist/components/ui/atoms/switch.js +218 -151
  153. package/dist/components/ui/atoms/table.d.ts +2 -4
  154. package/dist/components/ui/atoms/table.d.ts.map +1 -1
  155. package/dist/components/ui/atoms/table.js +35 -36
  156. package/dist/components/ui/atoms/tabs.d.ts +11 -7
  157. package/dist/components/ui/atoms/tabs.d.ts.map +1 -1
  158. package/dist/components/ui/atoms/tabs.js +492 -186
  159. package/dist/components/ui/atoms/textarea.d.ts.map +1 -1
  160. package/dist/components/ui/atoms/textarea.js +7 -7
  161. package/dist/components/ui/atoms/toggle.d.ts +2 -3
  162. package/dist/components/ui/atoms/toggle.d.ts.map +1 -1
  163. package/dist/components/ui/atoms/toggle.js +92 -45
  164. package/dist/components/ui/atoms/tooltip.d.ts +6 -9
  165. package/dist/components/ui/atoms/tooltip.d.ts.map +1 -1
  166. package/dist/components/ui/atoms/tooltip.js +625 -343
  167. package/dist/components/ui/atoms/view-tools-control.js +16 -15
  168. package/dist/components/ui/atoms/virtualized-grid.d.ts +11 -4
  169. package/dist/components/ui/atoms/virtualized-grid.d.ts.map +1 -1
  170. package/dist/components/ui/atoms/virtualized-grid.js +365 -333
  171. package/dist/components/ui/index.js +665 -644
  172. package/dist/components/ui/molecules/chat-history-item.d.ts.map +1 -1
  173. package/dist/components/ui/molecules/chat-history-item.js +47 -40
  174. package/dist/components/ui/molecules/command-bar.js +1 -1
  175. package/dist/components/ui/molecules/confirm-popover.d.ts +2 -2
  176. package/dist/components/ui/molecules/confirm-popover.d.ts.map +1 -1
  177. package/dist/components/ui/molecules/confirm-popover.js +26 -24
  178. package/dist/components/ui/molecules/date-time-picker.d.ts.map +1 -1
  179. package/dist/components/ui/molecules/date-time-picker.js +17 -11
  180. package/dist/components/ui/molecules/index.js +1 -1
  181. package/dist/components/ui/molecules/message.d.ts +2 -3
  182. package/dist/components/ui/molecules/message.d.ts.map +1 -1
  183. package/dist/components/ui/molecules/message.js +10 -16
  184. package/dist/components/ui/molecules/prompt-input.d.ts +1 -1
  185. package/dist/components/ui/molecules/prompt-input.d.ts.map +1 -1
  186. package/dist/components/ui/molecules/prompt-input.js +21 -22
  187. package/dist/components/ui/molecules/requirement-badges.d.ts.map +1 -1
  188. package/dist/components/ui/molecules/requirement-badges.js +3 -3
  189. package/dist/components/ui/molecules/steps-progress.js +1 -0
  190. package/dist/components/ui/molecules/tool-call-accordion.js +1 -0
  191. package/dist/components/ui/molecules/tool-card.d.ts.map +1 -1
  192. package/dist/components/ui/molecules/tool-card.js +60 -47
  193. package/dist/components/ui/molecules/toolkit-card.d.ts.map +1 -1
  194. package/dist/components/ui/molecules/toolkit-card.js +1 -1
  195. package/dist/components/ui/molecules/user-nav.d.ts.map +1 -1
  196. package/dist/components/ui/molecules/user-nav.js +62 -57
  197. package/dist/components/ui/templates/auth-template.js +5 -5
  198. package/dist/composite-BASdnlNo.js +220 -0
  199. package/dist/composite-BSpUD7nI.js +66 -0
  200. package/dist/cpp-CA4iM_wM.js +18 -0
  201. package/dist/createBaseUIEventDetails-CqidROtw.js +55 -0
  202. package/dist/crystal-CRJyc4G-.js +4 -4
  203. package/dist/css-M7EaDHN_.js +6 -0
  204. package/dist/csv-B7yqA61e.js +6 -0
  205. package/dist/dark-plus-B4vfALTw.js +4 -0
  206. package/dist/detectBrowser-Dn2N72k1.js +42 -0
  207. package/dist/dracula-Cb59ZzY3.js +4 -0
  208. package/dist/dracula-soft-aaEmszbU.js +4 -0
  209. package/dist/edge-BYQkOzbF.js +1 -1
  210. package/dist/element-DSo91iOi.js +88 -0
  211. package/dist/elm-BtNbw_Cd.js +1 -1
  212. package/dist/erlang-DNcDT8Hi.js +1 -1
  213. package/dist/event-BCa0Un_3.js +30 -0
  214. package/dist/everforest-dark-CLp_21RJ.js +4 -0
  215. package/dist/everforest-light-CZ0NCAAv.js +4 -0
  216. package/dist/floating-ui.utils-48URp89E.js +126 -0
  217. package/dist/floating-ui.utils.dom-jr2suqy2.js +135 -0
  218. package/dist/fsharp-CYOiIVNx.js +1 -1
  219. package/dist/getDisabledMountTransitionStyles-fmnaQYVj.js +1539 -0
  220. package/dist/getPseudoElementBounds-B4_miSEJ.js +364 -0
  221. package/dist/git-rebase-ZWUFO_T4.js +1 -1
  222. package/dist/github-dark-BD3lImVS.js +4 -0
  223. package/dist/github-dark-default-ID_nBUwl.js +4 -0
  224. package/dist/github-dark-dimmed-Cw4rFgde.js +4 -0
  225. package/dist/github-dark-high-contrast-DSby9de8.js +4 -0
  226. package/dist/github-light-W396yAFe.js +4 -0
  227. package/dist/github-light-default-DCAQ2px1.js +4 -0
  228. package/dist/github-light-high-contrast-ChWJGEvx.js +4 -0
  229. package/dist/glimmer-js-DkxNrfPT.js +2 -2
  230. package/dist/glimmer-ts-D6YZEmK_.js +2 -2
  231. package/dist/glsl-CgdqkyFp.js +8 -0
  232. package/dist/graphql-Bv26LTzG.js +14 -0
  233. package/dist/gruvbox-dark-hard-BC1GRqFa.js +4 -0
  234. package/dist/gruvbox-dark-medium-COLy2cDY.js +4 -0
  235. package/dist/gruvbox-dark-soft-B8MALL4f.js +4 -0
  236. package/dist/gruvbox-light-hard-Bzxr_AnB.js +4 -0
  237. package/dist/gruvbox-light-medium-D2fqu3Kj.js +4 -0
  238. package/dist/gruvbox-light-soft-atzRH3-n.js +4 -0
  239. package/dist/hack-ItRNKiEb.js +1 -1
  240. package/dist/haml-B1t5q1Sv.js +10 -0
  241. package/dist/haml-NZLVzu_R.js +1 -1
  242. package/dist/handlebars-B2fb61mr.js +14 -0
  243. package/dist/handlebars-mxStpSE7.js +2 -2
  244. package/dist/highlighted-body-OFNGDK62-Df6AJMbs.js +20 -0
  245. package/dist/hooks/use-mobile.d.ts.map +1 -1
  246. package/dist/hooks/use-mobile.js +11 -12
  247. package/dist/horizon-PFtq58ZB.js +4 -0
  248. package/dist/horizon-bright-2WzHy-Vo.js +4 -0
  249. package/dist/houston-BEqUWhHr.js +4 -0
  250. package/dist/html-B50bmoVb.js +1 -1
  251. package/dist/html-CPZ3oZQ7.js +10 -0
  252. package/dist/html-derivative-B2qv7eyt.js +8 -0
  253. package/dist/http-BQ2t9cn1.js +14 -0
  254. package/dist/hurl-RyCMCa80.js +12 -0
  255. package/dist/imba-DpB-wtPB.js +6 -0
  256. package/dist/index-3rscXtm3.js +4708 -0
  257. package/dist/inertValue-kpZZDBEy.js +7 -0
  258. package/dist/integrations/rhf/index.js +6 -5
  259. package/dist/isElementDisabled-Cbd8W9kH.js +6 -0
  260. package/dist/java-CbphP4lz.js +6 -0
  261. package/dist/javascript-CgYd5l7W.js +6 -0
  262. package/dist/jinja-DFCUirAg.js +11 -0
  263. package/dist/jison-CTEI_s6O.js +8 -0
  264. package/dist/json-B5-prx4F.js +6 -0
  265. package/dist/json5-CZ8R1oUY.js +6 -0
  266. package/dist/jsonc-DMboCKBJ.js +6 -0
  267. package/dist/jsonl-YgIUi4Dg.js +6 -0
  268. package/dist/jsx-D4q4E1UD.js +6 -0
  269. package/dist/julia-2ubi2n9a.js +16 -0
  270. package/dist/just-CEK2SJ_k.js +4 -4
  271. package/dist/kanagawa-dragon-DuYaOBBk.js +4 -0
  272. package/dist/kanagawa-lotus-CyjAihYC.js +4 -0
  273. package/dist/kanagawa-wave-BVdXUMj5.js +4 -0
  274. package/dist/laserwave-B_2VVKNJ.js +4 -0
  275. package/dist/less-MoGo8xoS.js +6 -0
  276. package/dist/light-plus-IB4fPeJj.js +4 -0
  277. package/dist/liquid-CHzkx3jT.js +2 -2
  278. package/dist/lua-Bp3IRv7I.js +1 -1
  279. package/dist/main.js +691 -670
  280. package/dist/markdown-B-zRtm0x.js +6 -0
  281. package/dist/{markdown-D0xxRbwP.js → markdown-B71Eurda.js} +10329 -8108
  282. package/dist/marko-BlmC3dqW.js +14 -0
  283. package/dist/marko-CJBA24Ri.js +2 -2
  284. package/dist/material-theme-CjsSdYF2.js +4 -0
  285. package/dist/material-theme-darker-DEk0vgdS.js +4 -0
  286. package/dist/material-theme-lighter-DEVB_7K5.js +4 -0
  287. package/dist/material-theme-ocean-DK6jm24j.js +4 -0
  288. package/dist/material-theme-palenight-CNkXNpHv.js +4 -0
  289. package/dist/mdc-C9YSUwVC.js +2 -2
  290. package/dist/mdc-CLNk3q28.js +12 -0
  291. package/dist/mdx-CiUWpBB_.js +6 -0
  292. package/dist/mermaid-GHXKKRXX-BkplG-MI.js +5 -0
  293. package/dist/metadata/toolkit-icons.d.ts.map +1 -1
  294. package/dist/metadata/toolkit-icons.js +40 -38
  295. package/dist/metadata/toolkits.d.ts.map +1 -1
  296. package/dist/metadata/toolkits.js +13 -0
  297. package/dist/min-dark-CJcHUHwu.js +4 -0
  298. package/dist/min-light-BAN2UR75.js +4 -0
  299. package/dist/monokai-BbXwpjKl.js +4 -0
  300. package/dist/night-owl-csViJ7u4.js +4 -0
  301. package/dist/night-owl-light-BC-NuMC3.js +4 -0
  302. package/dist/nim-QAjRdh9w.js +5 -5
  303. package/dist/nord-B8Sq-VQ0.js +4 -0
  304. package/dist/one-dark-pro-DTdrcl-J.js +4 -0
  305. package/dist/one-light-kPHTChCU.js +4 -0
  306. package/dist/owner-rKN292Q9.js +6 -0
  307. package/dist/perl-DkVrgJBg.js +3 -3
  308. package/dist/php-BIzsF_5x.js +4 -4
  309. package/dist/php-Kn-vgdBD.js +18 -0
  310. package/dist/plastic-DDweBgVs.js +4 -0
  311. package/dist/poimandres-Dqvs16BQ.js +4 -0
  312. package/dist/popupStateMapping-BT9Y_jIq.js +1849 -0
  313. package/dist/postcss-CwL8bLZI.js +6 -0
  314. package/dist/pug-CTOOvSEH.js +12 -0
  315. package/dist/pug-XOw9Q1Ho.js +1 -1
  316. package/dist/python-jjYlTiSH.js +6 -0
  317. package/dist/qml-rTNXsquU.js +1 -1
  318. package/dist/r-C8zl4zMO.js +6 -0
  319. package/dist/react-resizable-panels-BqIpIFl2.js +2017 -0
  320. package/dist/red-DBDwQkX-.js +4 -0
  321. package/dist/regexp-Dpy_RgoJ.js +6 -0
  322. package/dist/resolveAriaLabelledBy-B5vw-szP.js +11 -0
  323. package/dist/rose-pine-DGHrTu7e.js +4 -0
  324. package/dist/rose-pine-dawn-DfRVdapG.js +4 -0
  325. package/dist/rose-pine-moon-DFpJm5Rd.js +4 -0
  326. package/dist/rst-DM32Wy3O.js +5 -5
  327. package/dist/ruby-BeqCs27h.js +8 -8
  328. package/dist/safePolygon-CJcmMc0u.js +389 -0
  329. package/dist/safeReact-DKq-628G.js +7 -0
  330. package/dist/sas-fpEvgATw.js +1 -1
  331. package/dist/sass-BmupNt-w.js +6 -0
  332. package/dist/scss-BZYVIVaN.js +8 -0
  333. package/dist/serializeValue-BebmSzW3.js +14 -0
  334. package/dist/shellscript-fMxXshxv.js +6 -0
  335. package/dist/shellsession-DiDJNQdy.js +1 -1
  336. package/dist/slack-dark-noeC6QPl.js +4 -0
  337. package/dist/slack-ochin-3_2idqLR.js +4 -0
  338. package/dist/snazzy-light-B9cV359v.js +4 -0
  339. package/dist/solarized-dark-B6X0ILWr.js +4 -0
  340. package/dist/solarized-light-LxOemn3c.js +4 -0
  341. package/dist/sql-D30Zid36.js +6 -0
  342. package/dist/stata-B8c5fTjX.js +1 -1
  343. package/dist/styles-DU5BO7fS.js +16 -0
  344. package/dist/stylus-BoBcEBjx.js +6 -0
  345. package/dist/surrealql-CQi7GQN7.js +1 -1
  346. package/dist/svelte-b9PAcyUe.js +14 -0
  347. package/dist/svelte-rYri41WT.js +3 -3
  348. package/dist/synthwave-84-DzQeMpV0.js +4 -0
  349. package/dist/templ-Crs9Ui8q.js +1 -1
  350. package/dist/tex-AHxmLTL0.js +1 -1
  351. package/dist/tokyo-night-CLM-V_Re.js +4 -0
  352. package/dist/{toolkit-card-CB1oiaei.js → toolkit-card-DhpOY80l.js} +56 -36
  353. package/dist/ts-tags-CP1b-4Z2.js +41 -0
  354. package/dist/ts-tags-ioVe2PKw.js +5 -5
  355. package/dist/tsx-QNpb2qLW.js +6 -0
  356. package/dist/twig-DwV2Fi4L.js +2 -2
  357. package/dist/typescript-AhniRyfZ.js +6 -0
  358. package/dist/useAnimationFrame-DIc6eFHa.js +69 -0
  359. package/dist/useAriaLabelledBy-VklrCmKp.js +34 -0
  360. package/dist/useBaseUiId-C8Dq0BQq.js +25 -0
  361. package/dist/useButton-JYPKQKj4.js +150 -0
  362. package/dist/useCollapsiblePanel-9pDlDh3R.js +257 -0
  363. package/dist/useCompositeItem-D00ALGkT.js +35 -0
  364. package/dist/useCompositeListItem-CYQrZg5-.js +74 -0
  365. package/dist/useControlled-Sx-_x7Sz.js +32 -0
  366. package/dist/useFocus-Aj9ShMQu.js +97 -0
  367. package/dist/useIsoLayoutEffect-DpJo20by.js +7 -0
  368. package/dist/useLabelableId-DF_d91GP.js +44 -0
  369. package/dist/useOnFirstRender-B4aruaIA.js +9 -0
  370. package/dist/useOnMount-JHtE6teb.js +9 -0
  371. package/dist/useOpenChangeComplete-DkeH9FGJ.js +130 -0
  372. package/dist/useRender-BNXBkp2o.js +7 -0
  373. package/dist/useRenderElement-DNB2vtF1.js +274 -0
  374. package/dist/useRole-N-RCRzo1.js +76 -0
  375. package/dist/useStableCallback-CudqoENs.js +33 -0
  376. package/dist/useSyncedFloatingRootContext-Bc90zSTy.js +185 -0
  377. package/dist/useTimeout-DAqPwigF.js +33 -0
  378. package/dist/useValueAsRef-LhoZc6As.js +20 -0
  379. package/dist/useValueChanged-Bissqjjn.js +15 -0
  380. package/dist/valueToPercent-BBgE4D3L.js +27 -0
  381. package/dist/vesper-BmV7KiQ0.js +4 -0
  382. package/dist/visuallyHidden-PuyyGHVF.js +22 -0
  383. package/dist/vitesse-black-CxZz3C4s.js +4 -0
  384. package/dist/vitesse-dark-DVUJ0sy2.js +4 -0
  385. package/dist/vitesse-light-BDJohtUr.js +4 -0
  386. package/dist/vue-CY6W2ID0.js +31 -0
  387. package/dist/vue-DXEmyXn9.js +3 -3
  388. package/dist/vue-html-DYXHAJ2G.js +8 -0
  389. package/dist/vue-vine-D41-N99t.js +4 -4
  390. package/dist/vue-vine-DiWTpMwZ.js +18 -0
  391. package/dist/wasm-3y0A1Y71.js +6 -0
  392. package/dist/wasm-Dm9SFfrx.js +7 -0
  393. package/dist/web-BbvN_Lei.js +2846 -0
  394. package/dist/wgsl-SXl3EZUN.js +6 -0
  395. package/dist/wit-Cw0CTVY0.js +6 -0
  396. package/dist/xml-CNXGTZ6Z.js +8 -0
  397. package/dist/xsl-BmSZphgC.js +1 -1
  398. package/dist/yaml-DZqZ2PBD.js +6 -0
  399. package/package.json +37 -34
  400. package/dist/highlighted-body-TPN3WLV5-D6UnKGod.js +0 -19
  401. package/dist/index-0ioNhtNM.js +0 -10
  402. package/dist/index-437EL2iq.js +0 -52
  403. package/dist/index-B695uy69.js +0 -9
  404. package/dist/index-BEZCAdXQ.js +0 -1568
  405. package/dist/index-BGQepRFJ.js +0 -27
  406. package/dist/index-BZPx6jYI.js +0 -8
  407. package/dist/index-BaLuVb4t.js +0 -70
  408. package/dist/index-Bw62B28F.js +0 -31
  409. package/dist/index-By-GFSsC.js +0 -245
  410. package/dist/index-ByaXH_ih.js +0 -10
  411. package/dist/index-CCKe-Mpx.js +0 -6
  412. package/dist/index-Cv867SGx.js +0 -13
  413. package/dist/index-CvA4FcaC.js +0 -677
  414. package/dist/index-D2LZVjSn.js +0 -82
  415. package/dist/index-DFZozV_h.js +0 -68
  416. package/dist/index-DJQkmo5O.js +0 -49
  417. package/dist/index-DLohNuco.js +0 -36
  418. package/dist/index-DrFfdHac.js +0 -144
  419. package/dist/index-DrlYGDRT.js +0 -119
  420. package/dist/index-Dz8CQngS.js +0 -181
  421. package/dist/index-cd1ceFJg.js +0 -6973
  422. package/dist/index-rKs9bXHr.js +0 -6
  423. package/dist/mermaid-O7DHMXV3-gUrB-Xs1.js +0 -4
  424. package/dist/react-resizable-panels.browser-DYl0LXfw.js +0 -1510
  425. package/dist/web-BwFNdl01.js +0 -697
@@ -0,0 +1,2846 @@
1
+ import { forwardRef as Ze, useState as et, useMemo as Q, useRef as xe, useEffect as tt } from "react";
2
+ import { jsxs as Ae, jsx as ne, Fragment as nt } from "react/jsx-runtime";
3
+ import { c as de } from "./bundle-mjs-lrpnyDSX.js";
4
+ import { I as re, E as ge, R as rt, T as it, t as st, F as N, a as at } from "./index-3rscXtm3.js";
5
+ var ie = Object.defineProperty, ot = Object.getOwnPropertyDescriptor, lt = Object.getOwnPropertyNames, ct = Object.prototype.hasOwnProperty, ft = (e, t) => {
6
+ let n = {};
7
+ for (var r in e)
8
+ ie(n, r, {
9
+ get: e[r],
10
+ enumerable: !0
11
+ });
12
+ return ie(n, Symbol.toStringTag, { value: "Module" }), n;
13
+ }, mt = (e, t, n, r) => {
14
+ if (t && typeof t == "object" || typeof t == "function")
15
+ for (var i = lt(t), s = 0, o = i.length, a; s < o; s++)
16
+ a = i[s], !ct.call(e, a) && a !== n && ie(e, a, {
17
+ get: ((l) => t[l]).bind(null, a),
18
+ enumerable: !(r = ot(t, a)) || r.enumerable
19
+ });
20
+ return e;
21
+ }, ut = (e, t, n) => (mt(e, t, "default"), n), w = class extends Error {
22
+ constructor(t) {
23
+ super(t), this.name = "ShikiError";
24
+ }
25
+ };
26
+ function I(e, t) {
27
+ const n = typeof e == "string" ? {} : { ...e.colorReplacements }, r = typeof e == "string" ? e : e.name;
28
+ for (const [i, s] of Object.entries(t?.colorReplacements || {})) typeof s == "string" ? n[i] = s : i === r && Object.assign(n, s);
29
+ return n;
30
+ }
31
+ function A(e, t) {
32
+ return e && (t?.[e?.toLowerCase()] || e);
33
+ }
34
+ function ht(e) {
35
+ return Array.isArray(e) ? e : [e];
36
+ }
37
+ async function Oe(e) {
38
+ return Promise.resolve(typeof e == "function" ? e() : e).then((t) => t.default || t);
39
+ }
40
+ function R(e) {
41
+ return !e || [
42
+ "plaintext",
43
+ "txt",
44
+ "text",
45
+ "plain"
46
+ ].includes(e);
47
+ }
48
+ function oe(e) {
49
+ return e === "ansi" || R(e);
50
+ }
51
+ function F(e) {
52
+ return e === "none";
53
+ }
54
+ function Me(e) {
55
+ return F(e);
56
+ }
57
+ function z(e, t = !1) {
58
+ if (e.length === 0) return [["", 0]];
59
+ const n = e.split(/(\r?\n)/g);
60
+ let r = 0;
61
+ const i = [];
62
+ for (let s = 0; s < n.length; s += 2) {
63
+ const o = t ? n[s] + (n[s + 1] || "") : n[s];
64
+ i.push([o, r]), r += n[s].length, r += n[s + 1]?.length || 0;
65
+ }
66
+ return i;
67
+ }
68
+ const pe = {
69
+ light: "#333333",
70
+ dark: "#bbbbbb"
71
+ }, ye = {
72
+ light: "#fffffe",
73
+ dark: "#1e1e1e"
74
+ }, be = "__shiki_resolved";
75
+ function le(e) {
76
+ if (e?.[be]) return e;
77
+ const t = { ...e };
78
+ t.tokenColors && !t.settings && (t.settings = t.tokenColors, delete t.tokenColors), t.type ||= "dark", t.colorReplacements = { ...t.colorReplacements }, t.settings ||= [];
79
+ let { bg: n, fg: r } = t;
80
+ if (!n || !r) {
81
+ const a = t.settings ? t.settings.find((l) => !l.name && !l.scope) : void 0;
82
+ a?.settings?.foreground && (r = a.settings.foreground), a?.settings?.background && (n = a.settings.background), !r && t?.colors?.["editor.foreground"] && (r = t.colors["editor.foreground"]), !n && t?.colors?.["editor.background"] && (n = t.colors["editor.background"]), r || (r = t.type === "light" ? pe.light : pe.dark), n || (n = t.type === "light" ? ye.light : ye.dark), t.fg = r, t.bg = n;
83
+ }
84
+ t.settings[0] && t.settings[0].settings && !t.settings[0].scope || t.settings.unshift({ settings: {
85
+ foreground: t.fg,
86
+ background: t.bg
87
+ } });
88
+ let i = 0;
89
+ const s = /* @__PURE__ */ new Map();
90
+ function o(a) {
91
+ if (s.has(a)) return s.get(a);
92
+ i += 1;
93
+ const l = `#${i.toString(16).padStart(8, "0").toLowerCase()}`;
94
+ return t.colorReplacements?.[`#${l}`] ? o(a) : (s.set(a, l), l);
95
+ }
96
+ t.settings = t.settings.map((a) => {
97
+ const l = a.settings?.foreground && !a.settings.foreground.startsWith("#"), c = a.settings?.background && !a.settings.background.startsWith("#");
98
+ if (!l && !c) return a;
99
+ const m = {
100
+ ...a,
101
+ settings: { ...a.settings }
102
+ };
103
+ if (l) {
104
+ const f = o(a.settings.foreground);
105
+ t.colorReplacements[f] = a.settings.foreground, m.settings.foreground = f;
106
+ }
107
+ if (c) {
108
+ const f = o(a.settings.background);
109
+ t.colorReplacements[f] = a.settings.background, m.settings.background = f;
110
+ }
111
+ return m;
112
+ });
113
+ for (const a of Object.keys(t.colors || {})) if ((a === "editor.foreground" || a === "editor.background" || a.startsWith("terminal.ansi")) && !t.colors[a]?.startsWith("#")) {
114
+ const l = o(t.colors[a]);
115
+ t.colorReplacements[l] = t.colors[a], t.colors[a] = l;
116
+ }
117
+ return Object.defineProperty(t, be, {
118
+ enumerable: !1,
119
+ writable: !1,
120
+ value: !0
121
+ }), t;
122
+ }
123
+ async function Pe(e) {
124
+ return Array.from(new Set((await Promise.all(e.filter((t) => !oe(t)).map(async (t) => await Oe(t).then((n) => Array.isArray(n) ? n : [n])))).flat()));
125
+ }
126
+ async function je(e) {
127
+ return (await Promise.all(e.map(async (t) => Me(t) ? null : le(await Oe(t))))).filter((t) => !!t);
128
+ }
129
+ function Ee(e, t) {
130
+ if (!t) return e;
131
+ if (t[e]) {
132
+ const n = /* @__PURE__ */ new Set([e]);
133
+ for (; t[e]; ) {
134
+ if (e = t[e], n.has(e)) throw new w(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);
135
+ n.add(e);
136
+ }
137
+ }
138
+ return e;
139
+ }
140
+ var dt = class extends rt {
141
+ _resolvedThemes = /* @__PURE__ */ new Map();
142
+ _resolvedGrammars = /* @__PURE__ */ new Map();
143
+ _langMap = /* @__PURE__ */ new Map();
144
+ _langGraph = /* @__PURE__ */ new Map();
145
+ _textmateThemeCache = /* @__PURE__ */ new WeakMap();
146
+ _loadedThemesCache = null;
147
+ _loadedLanguagesCache = null;
148
+ constructor(e, t, n, r = {}) {
149
+ super(e), this._resolver = e, this._themes = t, this._langs = n, this._alias = r, this._themes.map((i) => this.loadTheme(i)), this.loadLanguages(this._langs);
150
+ }
151
+ getTheme(e) {
152
+ return typeof e == "string" ? this._resolvedThemes.get(e) : this.loadTheme(e);
153
+ }
154
+ loadTheme(e) {
155
+ const t = le(e);
156
+ return t.name && (this._resolvedThemes.set(t.name, t), this._loadedThemesCache = null), t;
157
+ }
158
+ getLoadedThemes() {
159
+ return this._loadedThemesCache || (this._loadedThemesCache = [...this._resolvedThemes.keys()]), this._loadedThemesCache;
160
+ }
161
+ setTheme(e) {
162
+ let t = this._textmateThemeCache.get(e);
163
+ t || (t = it.createFromRawTheme(e), this._textmateThemeCache.set(e, t)), this._syncRegistry.setTheme(t);
164
+ }
165
+ getGrammar(e) {
166
+ return e = Ee(e, this._alias), this._resolvedGrammars.get(e);
167
+ }
168
+ loadLanguage(e) {
169
+ if (this.getGrammar(e.name)) return;
170
+ const t = new Set([...this._langMap.values()].filter((i) => i.embeddedLangsLazy?.includes(e.name)));
171
+ this._resolver.addLanguage(e);
172
+ const n = {
173
+ balancedBracketSelectors: e.balancedBracketSelectors || ["*"],
174
+ unbalancedBracketSelectors: e.unbalancedBracketSelectors || []
175
+ };
176
+ this._syncRegistry._rawGrammars.set(e.scopeName, e);
177
+ const r = this.loadGrammarWithConfiguration(e.scopeName, 1, n);
178
+ if (r.name = e.name, this._resolvedGrammars.set(e.name, r), e.aliases && e.aliases.forEach((i) => {
179
+ this._alias[i] = e.name;
180
+ }), this._loadedLanguagesCache = null, t.size) for (const i of t)
181
+ 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));
182
+ }
183
+ dispose() {
184
+ super.dispose(), this._resolvedThemes.clear(), this._resolvedGrammars.clear(), this._langMap.clear(), this._langGraph.clear(), this._loadedThemesCache = null;
185
+ }
186
+ loadLanguages(e) {
187
+ for (const r of e) this.resolveEmbeddedLanguages(r);
188
+ const t = Array.from(this._langGraph.entries()), n = t.filter(([r, i]) => !i);
189
+ if (n.length) {
190
+ const r = t.filter(([i, s]) => s ? (s.embeddedLanguages || s.embeddedLangs)?.some((o) => n.map(([a]) => a).includes(o)) : !1).filter((i) => !n.includes(i));
191
+ throw new w(`Missing languages ${n.map(([i]) => `\`${i}\``).join(", ")}, required by ${r.map(([i]) => `\`${i}\``).join(", ")}`);
192
+ }
193
+ for (const [r, i] of t) this._resolver.addLanguage(i);
194
+ for (const [r, i] of t) this.loadLanguage(i);
195
+ }
196
+ getLoadedLanguages() {
197
+ return this._loadedLanguagesCache || (this._loadedLanguagesCache = [.../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])]), this._loadedLanguagesCache;
198
+ }
199
+ resolveEmbeddedLanguages(e) {
200
+ this._langMap.set(e.name, e), this._langGraph.set(e.name, e);
201
+ const t = e.embeddedLanguages ?? e.embeddedLangs;
202
+ if (t) for (const n of t) this._langGraph.set(n, this._langMap.get(n));
203
+ }
204
+ }, gt = class {
205
+ _langs = /* @__PURE__ */ new Map();
206
+ _scopeToLang = /* @__PURE__ */ new Map();
207
+ _injections = /* @__PURE__ */ new Map();
208
+ _onigLib;
209
+ constructor(e, t) {
210
+ this._onigLib = {
211
+ createOnigScanner: (n) => e.createScanner(n),
212
+ createOnigString: (n) => e.createString(n)
213
+ }, t.forEach((n) => this.addLanguage(n));
214
+ }
215
+ get onigLib() {
216
+ return this._onigLib;
217
+ }
218
+ getLangRegistration(e) {
219
+ return this._langs.get(e);
220
+ }
221
+ loadGrammar(e) {
222
+ return this._scopeToLang.get(e);
223
+ }
224
+ addLanguage(e) {
225
+ this._langs.set(e.name, e), e.aliases && e.aliases.forEach((t) => {
226
+ this._langs.set(t, e);
227
+ }), this._scopeToLang.set(e.scopeName, e), e.injectTo && e.injectTo.forEach((t) => {
228
+ this._injections.get(t) || this._injections.set(t, []), this._injections.get(t).push(e.scopeName);
229
+ });
230
+ }
231
+ getInjections(e) {
232
+ const t = e.split(".");
233
+ let n = [];
234
+ for (let r = 1; r <= t.length; r++) {
235
+ const i = t.slice(0, r).join(".");
236
+ n = [...n, ...this._injections.get(i) || []];
237
+ }
238
+ return n;
239
+ }
240
+ };
241
+ let j = 0;
242
+ function pt(e) {
243
+ j += 1, e.warnings !== !1 && j >= 10 && j % 10 === 0 && console.warn(`[Shiki] ${j} 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.`);
244
+ let t = !1;
245
+ if (!e.engine) throw new w("`engine` option is required for synchronous mode");
246
+ const n = (e.langs || []).flat(1), r = (e.themes || []).flat(1).map(le), i = new dt(new gt(e.engine, n), r, n, e.langAlias);
247
+ let s;
248
+ function o(g) {
249
+ return Ee(g, e.langAlias);
250
+ }
251
+ function a(g) {
252
+ b();
253
+ const y = i.getGrammar(typeof g == "string" ? g : g.name);
254
+ if (!y) throw new w(`Language \`${g}\` not found, you may need to load it first`);
255
+ return y;
256
+ }
257
+ function l(g) {
258
+ if (g === "none") return {
259
+ bg: "",
260
+ fg: "",
261
+ name: "none",
262
+ settings: [],
263
+ type: "dark"
264
+ };
265
+ b();
266
+ const y = i.getTheme(g);
267
+ if (!y) throw new w(`Theme \`${g}\` not found, you may need to load it first`);
268
+ return y;
269
+ }
270
+ function c(g) {
271
+ b();
272
+ const y = l(g);
273
+ return s !== g && (i.setTheme(y), s = g), {
274
+ theme: y,
275
+ colorMap: i.getColorMap()
276
+ };
277
+ }
278
+ function m() {
279
+ return b(), i.getLoadedThemes();
280
+ }
281
+ function f() {
282
+ return b(), i.getLoadedLanguages();
283
+ }
284
+ function u(...g) {
285
+ b(), i.loadLanguages(g.flat(1));
286
+ }
287
+ async function h(...g) {
288
+ return u(await Pe(g));
289
+ }
290
+ function d(...g) {
291
+ b();
292
+ for (const y of g.flat(1)) i.loadTheme(y);
293
+ }
294
+ async function T(...g) {
295
+ return b(), d(await je(g));
296
+ }
297
+ function b() {
298
+ if (t) throw new w("Shiki instance has been disposed");
299
+ }
300
+ function p() {
301
+ t || (t = !0, i.dispose(), j -= 1);
302
+ }
303
+ return {
304
+ setTheme: c,
305
+ getTheme: l,
306
+ getLanguage: a,
307
+ getLoadedThemes: m,
308
+ getLoadedLanguages: f,
309
+ resolveLangAlias: o,
310
+ loadLanguage: h,
311
+ loadLanguageSync: u,
312
+ loadTheme: T,
313
+ loadThemeSync: d,
314
+ dispose: p,
315
+ [Symbol.dispose]: p
316
+ };
317
+ }
318
+ async function yt(e) {
319
+ e.engine || console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
320
+ const [t, n, r] = await Promise.all([
321
+ je(e.themes || []),
322
+ Pe(e.langs || []),
323
+ e.engine
324
+ ]);
325
+ return pt({
326
+ ...e,
327
+ themes: t,
328
+ langs: n,
329
+ engine: r
330
+ });
331
+ }
332
+ const $e = /* @__PURE__ */ new WeakMap();
333
+ function V(e, t) {
334
+ $e.set(e, t);
335
+ }
336
+ function $(e) {
337
+ return $e.get(e);
338
+ }
339
+ var J = class He {
340
+ /**
341
+ * Theme to Stack mapping
342
+ */
343
+ _stacks = {};
344
+ lang;
345
+ get themes() {
346
+ return Object.keys(this._stacks);
347
+ }
348
+ get theme() {
349
+ return this.themes[0];
350
+ }
351
+ get _stack() {
352
+ return this._stacks[this.theme];
353
+ }
354
+ /**
355
+ * Static method to create a initial grammar state.
356
+ */
357
+ static initial(t, n) {
358
+ return new He(Object.fromEntries(ht(n).map((r) => [r, re])), t);
359
+ }
360
+ constructor(...t) {
361
+ if (t.length === 2) {
362
+ const [n, r] = t;
363
+ this.lang = r, this._stacks = n;
364
+ } else {
365
+ const [n, r, i] = t;
366
+ this.lang = r, this._stacks = { [i]: n };
367
+ }
368
+ }
369
+ /**
370
+ * Get the internal stack object.
371
+ * @internal
372
+ */
373
+ getInternalStack(t = this.theme) {
374
+ return this._stacks[t];
375
+ }
376
+ getScopes(t = this.theme) {
377
+ return bt(this._stacks[t]);
378
+ }
379
+ toJSON() {
380
+ return {
381
+ lang: this.lang,
382
+ theme: this.theme,
383
+ themes: this.themes,
384
+ scopes: this.getScopes()
385
+ };
386
+ }
387
+ };
388
+ function bt(e) {
389
+ const t = [], n = /* @__PURE__ */ new Set();
390
+ function r(i) {
391
+ if (n.has(i)) return;
392
+ n.add(i);
393
+ const s = i?.nameScopesList?.scopeName;
394
+ s && t.push(s), i.parent && r(i.parent);
395
+ }
396
+ return r(e), t;
397
+ }
398
+ function Tt(e, t) {
399
+ if (!(e instanceof J)) throw new w("Invalid grammar state");
400
+ return e.getInternalStack(t);
401
+ }
402
+ function Be(e, t, n = {}) {
403
+ const { theme: r = e.getLoadedThemes()[0] } = n;
404
+ if (R(e.resolveLangAlias(n.lang || "text")) || F(r)) return z(t).map((a) => [{
405
+ content: a[0],
406
+ offset: a[1]
407
+ }]);
408
+ const { theme: i, colorMap: s } = e.setTheme(r), o = e.getLanguage(n.lang || "text");
409
+ if (n.grammarState) {
410
+ if (n.grammarState.lang !== o.name) throw new w(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);
411
+ if (!n.grammarState.themes.includes(i.name)) throw new w(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`);
412
+ }
413
+ return St(t, o, i, s, n);
414
+ }
415
+ function wt(...e) {
416
+ if (e.length === 2) return $(e[1]);
417
+ const [t, n, r = {}] = e, { lang: i = "text", theme: s = t.getLoadedThemes()[0] } = r;
418
+ if (R(i) || F(s)) throw new w("Plain language does not have grammar state");
419
+ if (i === "ansi") throw new w("ANSI language does not have grammar state");
420
+ const { theme: o, colorMap: a } = t.setTheme(s), l = t.getLanguage(i);
421
+ return new J(ce(n, l, o, a, r).stateStack, l.name, o.name);
422
+ }
423
+ function St(e, t, n, r, i) {
424
+ const s = ce(e, t, n, r, i), o = new J(s.stateStack, t.name, n.name);
425
+ return V(s.tokens, o), s.tokens;
426
+ }
427
+ function ce(e, t, n, r, i) {
428
+ const s = I(n, i), { tokenizeMaxLineLength: o = 0, tokenizeTimeLimit: a = 500 } = i, l = z(e);
429
+ let c = i.grammarState ? Tt(i.grammarState, n.name) ?? re : i.grammarContextCode != null ? ce(i.grammarContextCode, t, n, r, {
430
+ ...i,
431
+ grammarState: void 0,
432
+ grammarContextCode: void 0
433
+ }).stateStack : re, m = [];
434
+ const f = [];
435
+ for (let u = 0, h = l.length; u < h; u++) {
436
+ const [d, T] = l[u];
437
+ if (d === "") {
438
+ m = [], f.push([]);
439
+ continue;
440
+ }
441
+ if (o > 0 && d.length >= o) {
442
+ m = [], f.push([{
443
+ content: d,
444
+ offset: T,
445
+ color: "",
446
+ fontStyle: 0
447
+ }]);
448
+ continue;
449
+ }
450
+ let b, p, g;
451
+ i.includeExplanation && (b = t.tokenizeLine(d, c, a), p = b.tokens, g = 0);
452
+ const y = t.tokenizeLine2(d, c, a), k = y.tokens.length / 2;
453
+ for (let v = 0; v < k; v++) {
454
+ const _ = y.tokens[2 * v], O = v + 1 < k ? y.tokens[2 * v + 2] : d.length;
455
+ if (_ === O) continue;
456
+ const H = y.tokens[2 * v + 1], Xe = A(r[ge.getForeground(H)], s), Qe = ge.getFontStyle(H), q = {
457
+ content: d.substring(_, O),
458
+ offset: T + _,
459
+ color: Xe,
460
+ fontStyle: Qe
461
+ };
462
+ if (i.includeExplanation) {
463
+ const ue = [];
464
+ if (i.includeExplanation !== "scopeName") for (const x of n.settings) {
465
+ let P;
466
+ switch (typeof x.scope) {
467
+ case "string":
468
+ P = x.scope.split(/,/).map((X) => X.trim());
469
+ break;
470
+ case "object":
471
+ P = x.scope;
472
+ break;
473
+ default:
474
+ continue;
475
+ }
476
+ ue.push({
477
+ settings: x,
478
+ selectors: P.map((X) => X.split(/ /))
479
+ });
480
+ }
481
+ q.explanation = [];
482
+ let he = 0;
483
+ for (; _ + he < O; ) {
484
+ const x = p[g], P = d.substring(x.startIndex, x.endIndex);
485
+ he += P.length, q.explanation.push({
486
+ content: P,
487
+ scopes: i.includeExplanation === "scopeName" ? Lt(x.scopes) : kt(ue, x.scopes)
488
+ }), g += 1;
489
+ }
490
+ }
491
+ m.push(q);
492
+ }
493
+ f.push(m), m = [], c = y.ruleStack;
494
+ }
495
+ return {
496
+ tokens: f,
497
+ stateStack: c
498
+ };
499
+ }
500
+ function Lt(e) {
501
+ return e.map((t) => ({ scopeName: t }));
502
+ }
503
+ function kt(e, t) {
504
+ const n = [];
505
+ for (let r = 0, i = t.length; r < i; r++) {
506
+ const s = t[r];
507
+ n[r] = {
508
+ scopeName: s,
509
+ themeMatches: _t(e, s, t.slice(0, r))
510
+ };
511
+ }
512
+ return n;
513
+ }
514
+ function Te(e, t) {
515
+ return e === t || t.substring(0, e.length) === e && t[e.length] === ".";
516
+ }
517
+ function vt(e, t, n) {
518
+ if (!Te(e[e.length - 1], t)) return !1;
519
+ let r = e.length - 2, i = n.length - 1;
520
+ for (; r >= 0 && i >= 0; )
521
+ Te(e[r], n[i]) && (r -= 1), i -= 1;
522
+ return r === -1;
523
+ }
524
+ function _t(e, t, n) {
525
+ const r = [];
526
+ for (const { selectors: i, settings: s } of e) for (const o of i) if (vt(o, t, n)) {
527
+ r.push(s);
528
+ break;
529
+ }
530
+ return r;
531
+ }
532
+ function Ie(e, t, n, r = Be) {
533
+ const i = Object.entries(n.themes).filter((c) => c[1]).map((c) => ({
534
+ color: c[0],
535
+ theme: c[1]
536
+ })), s = i.map((c) => {
537
+ const m = r(e, t, {
538
+ ...n,
539
+ theme: c.theme
540
+ });
541
+ return {
542
+ tokens: m,
543
+ state: $(m),
544
+ theme: typeof c.theme == "string" ? c.theme : c.theme.name
545
+ };
546
+ }), o = Nt(...s.map((c) => c.tokens)), a = o[0].map((c, m) => c.map((f, u) => {
547
+ const h = {
548
+ content: f.content,
549
+ variants: {},
550
+ offset: f.offset
551
+ };
552
+ return "includeExplanation" in n && n.includeExplanation && (h.explanation = f.explanation), o.forEach((d, T) => {
553
+ const { content: b, explanation: p, offset: g, ...y } = d[m][u];
554
+ h.variants[i[T].color] = y;
555
+ }), h;
556
+ })), l = s[0].state ? new J(Object.fromEntries(s.map((c) => [c.theme, c.state?.getInternalStack(c.theme)])), s[0].state.lang) : void 0;
557
+ return l && V(a, l), a;
558
+ }
559
+ function Nt(...e) {
560
+ const t = e.map(() => []), n = e.length;
561
+ for (let r = 0; r < e[0].length; r++) {
562
+ const i = e.map((l) => l[r]), s = t.map(() => []);
563
+ t.forEach((l, c) => l.push(s[c]));
564
+ const o = i.map(() => 0), a = i.map((l) => l[0]);
565
+ for (; a.every((l) => l); ) {
566
+ const l = Math.min(...a.map((c) => c.content.length));
567
+ for (let c = 0; c < n; c++) {
568
+ const m = a[c];
569
+ m.content.length === l ? (s[c].push(m), o[c] += 1, a[c] = i[c][o[c]]) : (s[c].push({
570
+ ...m,
571
+ content: m.content.slice(0, l)
572
+ }), a[c] = {
573
+ ...m,
574
+ content: m.content.slice(l),
575
+ offset: m.offset + l
576
+ });
577
+ }
578
+ }
579
+ }
580
+ return t;
581
+ }
582
+ function De(e, t) {
583
+ if (!t) return e;
584
+ 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 = []);
585
+ const n = Array.isArray(t) ? t : t.split(/\s+/g);
586
+ for (const r of n) r && !e.properties.class.includes(r) && e.properties.class.push(r);
587
+ return e;
588
+ }
589
+ function Ct(e) {
590
+ const t = z(e, !0).map(([i]) => i);
591
+ function n(i) {
592
+ if (i === e.length) return {
593
+ line: t.length - 1,
594
+ character: t[t.length - 1].length
595
+ };
596
+ let s = i, o = 0;
597
+ for (const a of t) {
598
+ if (s < a.length) break;
599
+ s -= a.length, o++;
600
+ }
601
+ return {
602
+ line: o,
603
+ character: s
604
+ };
605
+ }
606
+ function r(i, s) {
607
+ let o = 0;
608
+ for (let a = 0; a < i; a++) o += t[a].length;
609
+ return o += s, o;
610
+ }
611
+ return {
612
+ lines: t,
613
+ indexToPos: n,
614
+ posToIndex: r
615
+ };
616
+ }
617
+ function Ue(e, t, n) {
618
+ const r = /* @__PURE__ */ new Set();
619
+ for (const s of e.matchAll(/:?lang=["']([^"']+)["']/g)) {
620
+ const o = s[1].toLowerCase().trim();
621
+ o && r.add(o);
622
+ }
623
+ for (const s of e.matchAll(/(?:```|~~~)([\w-]+)/g)) {
624
+ const o = s[1].toLowerCase().trim();
625
+ o && r.add(o);
626
+ }
627
+ for (const s of e.matchAll(/\\begin\{([\w-]+)\}/g)) {
628
+ const o = s[1].toLowerCase().trim();
629
+ o && r.add(o);
630
+ }
631
+ for (const s of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
632
+ const o = s[1].toLowerCase().trim(), a = o.includes("/") ? o.split("/").pop() : o;
633
+ a && r.add(a);
634
+ }
635
+ if (!n) return Array.from(r);
636
+ const i = n.getBundledLanguages();
637
+ return Array.from(r).filter((s) => s && i[s]);
638
+ }
639
+ const fe = "light-dark()", xt = ["color", "background-color"];
640
+ function At(e, t) {
641
+ let n = 0;
642
+ const r = [];
643
+ for (const i of t)
644
+ i > n && r.push({
645
+ ...e,
646
+ content: e.content.slice(n, i),
647
+ offset: e.offset + n
648
+ }), n = i;
649
+ return n < e.content.length && r.push({
650
+ ...e,
651
+ content: e.content.slice(n),
652
+ offset: e.offset + n
653
+ }), r;
654
+ }
655
+ function Ot(e, t) {
656
+ const n = Array.from(t instanceof Set ? t : new Set(t)).sort((r, i) => r - i);
657
+ return n.length ? e.map((r) => r.flatMap((i) => {
658
+ const s = n.filter((o) => i.offset < o && o < i.offset + i.content.length).map((o) => o - i.offset).sort((o, a) => o - a);
659
+ return s.length ? At(i, s) : i;
660
+ })) : e;
661
+ }
662
+ function Mt(e, t, n, r, i = "css-vars") {
663
+ const s = {
664
+ content: e.content,
665
+ explanation: e.explanation,
666
+ offset: e.offset
667
+ }, o = t.map((m) => D(e.variants[m])), a = new Set(o.flatMap((m) => Object.keys(m))), l = {}, c = (m, f) => {
668
+ const u = f === "color" ? "" : f === "background-color" ? "-bg" : `-${f}`;
669
+ return n + t[m] + (f === "color" ? "" : u);
670
+ };
671
+ return o.forEach((m, f) => {
672
+ for (const u of a) {
673
+ const h = m[u] || "inherit";
674
+ if (f === 0 && r && xt.includes(u)) if (r === fe && o.length > 1) {
675
+ const d = t.findIndex((b) => b === "light"), T = t.findIndex((b) => b === "dark");
676
+ if (d === -1 || T === -1) throw new w('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
677
+ l[u] = `light-dark(${o[d][u] || "inherit"}, ${o[T][u] || "inherit"})`, i === "css-vars" && (l[c(f, u)] = h);
678
+ } else l[u] = h;
679
+ else i === "css-vars" && (l[c(f, u)] = h);
680
+ }
681
+ }), s.htmlStyle = l, s;
682
+ }
683
+ function D(e) {
684
+ const t = {};
685
+ if (e.color && (t.color = e.color), e.bgColor && (t["background-color"] = e.bgColor), e.fontStyle) {
686
+ e.fontStyle & N.Italic && (t["font-style"] = "italic"), e.fontStyle & N.Bold && (t["font-weight"] = "bold");
687
+ const n = [];
688
+ e.fontStyle & N.Underline && n.push("underline"), e.fontStyle & N.Strikethrough && n.push("line-through"), n.length && (t["text-decoration"] = n.join(" "));
689
+ }
690
+ return t;
691
+ }
692
+ function se(e) {
693
+ return typeof e == "string" ? e : Object.entries(e).map(([t, n]) => `${t}:${n}`).join(";");
694
+ }
695
+ function Pt() {
696
+ const e = /* @__PURE__ */ new WeakMap();
697
+ function t(n) {
698
+ if (!e.has(n.meta)) {
699
+ let i = function(o) {
700
+ if (typeof o == "number") {
701
+ if (o < 0 || o > n.source.length) throw new w(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);
702
+ return {
703
+ ...r.indexToPos(o),
704
+ offset: o
705
+ };
706
+ } else {
707
+ const a = r.lines[o.line];
708
+ if (a === void 0) throw new w(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${r.lines.length}`);
709
+ let l = o.character;
710
+ if (l < 0 && (l = a.length + l), l < 0 || l > a.length) throw new w(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${a.length}`);
711
+ return {
712
+ ...o,
713
+ character: l,
714
+ offset: r.posToIndex(o.line, l)
715
+ };
716
+ }
717
+ };
718
+ const r = Ct(n.source), s = (n.options.decorations || []).map((o) => ({
719
+ ...o,
720
+ start: i(o.start),
721
+ end: i(o.end)
722
+ }));
723
+ jt(s), e.set(n.meta, {
724
+ decorations: s,
725
+ converter: r,
726
+ source: n.source
727
+ });
728
+ }
729
+ return e.get(n.meta);
730
+ }
731
+ return {
732
+ name: "shiki:decorations",
733
+ tokens(n) {
734
+ if (this.options.decorations?.length)
735
+ return Ot(n, t(this).decorations.flatMap((r) => [r.start.offset, r.end.offset]));
736
+ },
737
+ code(n) {
738
+ if (!this.options.decorations?.length) return;
739
+ const r = t(this), i = Array.from(n.children).filter((m) => m.type === "element" && m.tagName === "span");
740
+ if (i.length !== r.converter.lines.length) throw new w(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);
741
+ function s(m, f, u, h) {
742
+ const d = i[m];
743
+ let T = "", b = -1, p = -1;
744
+ if (f === 0 && (b = 0), u === 0 && (p = 0), u === Number.POSITIVE_INFINITY && (p = d.children.length), b === -1 || p === -1) for (let y = 0; y < d.children.length; y++)
745
+ T += Ge(d.children[y]), b === -1 && T.length === f && (b = y + 1), p === -1 && T.length === u && (p = y + 1);
746
+ if (b === -1) throw new w(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);
747
+ if (p === -1) throw new w(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);
748
+ const g = d.children.slice(b, p);
749
+ if (!h.alwaysWrap && g.length === d.children.length) a(d, h, "line");
750
+ else if (!h.alwaysWrap && g.length === 1 && g[0].type === "element") a(g[0], h, "token");
751
+ else {
752
+ const y = {
753
+ type: "element",
754
+ tagName: "span",
755
+ properties: {},
756
+ children: g
757
+ };
758
+ a(y, h, "wrapper"), d.children.splice(b, g.length, y);
759
+ }
760
+ }
761
+ function o(m, f) {
762
+ i[m] = a(i[m], f, "line");
763
+ }
764
+ function a(m, f, u) {
765
+ const h = f.properties || {}, d = f.transform || ((T) => T);
766
+ return m.tagName = f.tagName || "span", m.properties = {
767
+ ...m.properties,
768
+ ...h,
769
+ class: m.properties.class
770
+ }, f.properties?.class && De(m, f.properties.class), m = d(m, u) || m, m;
771
+ }
772
+ const l = [], c = r.decorations.sort((m, f) => f.start.offset - m.start.offset || m.end.offset - f.end.offset);
773
+ for (const m of c) {
774
+ const { start: f, end: u } = m;
775
+ if (f.line === u.line) s(f.line, f.character, u.character, m);
776
+ else if (f.line < u.line) {
777
+ s(f.line, f.character, Number.POSITIVE_INFINITY, m);
778
+ for (let h = f.line + 1; h < u.line; h++) l.unshift(() => o(h, m));
779
+ s(u.line, 0, u.character, m);
780
+ }
781
+ }
782
+ l.forEach((m) => m());
783
+ }
784
+ };
785
+ }
786
+ function jt(e) {
787
+ for (let t = 0; t < e.length; t++) {
788
+ const n = e[t];
789
+ if (n.start.offset > n.end.offset) throw new w(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);
790
+ for (let r = t + 1; r < e.length; r++) {
791
+ const i = e[r], s = n.start.offset <= i.start.offset && i.start.offset < n.end.offset, o = n.start.offset < i.end.offset && i.end.offset <= n.end.offset, a = i.start.offset <= n.start.offset && n.start.offset < i.end.offset, l = i.start.offset < n.end.offset && n.end.offset <= i.end.offset;
792
+ if (s || o || a || l) {
793
+ if (s && o || a && l || a && n.start.offset === n.end.offset || o && i.start.offset === i.end.offset) continue;
794
+ throw new w(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`);
795
+ }
796
+ }
797
+ }
798
+ }
799
+ function Ge(e) {
800
+ return e.type === "text" ? e.value : e.type === "element" ? e.children.map(Ge).join("") : "";
801
+ }
802
+ const Et = [/* @__PURE__ */ Pt()];
803
+ function U(e) {
804
+ const t = $t(e.transformers || []);
805
+ return [
806
+ ...t.pre,
807
+ ...t.normal,
808
+ ...t.post,
809
+ ...Et
810
+ ];
811
+ }
812
+ function $t(e) {
813
+ const t = [], n = [], r = [];
814
+ for (const i of e) switch (i.enforce) {
815
+ case "pre":
816
+ t.push(i);
817
+ break;
818
+ case "post":
819
+ n.push(i);
820
+ break;
821
+ default:
822
+ r.push(i);
823
+ }
824
+ return {
825
+ pre: t,
826
+ post: n,
827
+ normal: r
828
+ };
829
+ }
830
+ var M = [
831
+ "black",
832
+ "red",
833
+ "green",
834
+ "yellow",
835
+ "blue",
836
+ "magenta",
837
+ "cyan",
838
+ "white",
839
+ "brightBlack",
840
+ "brightRed",
841
+ "brightGreen",
842
+ "brightYellow",
843
+ "brightBlue",
844
+ "brightMagenta",
845
+ "brightCyan",
846
+ "brightWhite"
847
+ ], Z = {
848
+ 1: "bold",
849
+ 2: "dim",
850
+ 3: "italic",
851
+ 4: "underline",
852
+ 7: "reverse",
853
+ 8: "hidden",
854
+ 9: "strikethrough"
855
+ };
856
+ function Ht(e, t) {
857
+ const n = e.indexOf("\x1B", t);
858
+ if (n !== -1 && e[n + 1] === "[") {
859
+ const r = e.indexOf("m", n);
860
+ if (r !== -1) return {
861
+ sequence: e.substring(n + 2, r).split(";"),
862
+ startPosition: n,
863
+ position: r + 1
864
+ };
865
+ }
866
+ return { position: e.length };
867
+ }
868
+ function we(e) {
869
+ const t = e.shift();
870
+ if (t === "2") {
871
+ const n = e.splice(0, 3).map((r) => Number.parseInt(r));
872
+ return n.length !== 3 || n.some((r) => Number.isNaN(r)) ? void 0 : {
873
+ type: "rgb",
874
+ rgb: n
875
+ };
876
+ } else if (t === "5") {
877
+ const n = e.shift();
878
+ if (n) return {
879
+ type: "table",
880
+ index: Number(n)
881
+ };
882
+ }
883
+ }
884
+ function Bt(e) {
885
+ const t = [];
886
+ for (; e.length > 0; ) {
887
+ const n = e.shift();
888
+ if (!n) continue;
889
+ const r = Number.parseInt(n);
890
+ if (!Number.isNaN(r))
891
+ if (r === 0) t.push({ type: "resetAll" });
892
+ else if (r <= 9)
893
+ Z[r] && t.push({
894
+ type: "setDecoration",
895
+ value: Z[r]
896
+ });
897
+ else if (r <= 29) {
898
+ const i = Z[r - 20];
899
+ i && (t.push({
900
+ type: "resetDecoration",
901
+ value: i
902
+ }), i === "dim" && t.push({
903
+ type: "resetDecoration",
904
+ value: "bold"
905
+ }));
906
+ } else if (r <= 37) t.push({
907
+ type: "setForegroundColor",
908
+ value: {
909
+ type: "named",
910
+ name: M[r - 30]
911
+ }
912
+ });
913
+ else if (r === 38) {
914
+ const i = we(e);
915
+ i && t.push({
916
+ type: "setForegroundColor",
917
+ value: i
918
+ });
919
+ } else if (r === 39) t.push({ type: "resetForegroundColor" });
920
+ else if (r <= 47) t.push({
921
+ type: "setBackgroundColor",
922
+ value: {
923
+ type: "named",
924
+ name: M[r - 40]
925
+ }
926
+ });
927
+ else if (r === 48) {
928
+ const i = we(e);
929
+ i && t.push({
930
+ type: "setBackgroundColor",
931
+ value: i
932
+ });
933
+ } else r === 49 ? t.push({ type: "resetBackgroundColor" }) : r === 53 ? t.push({
934
+ type: "setDecoration",
935
+ value: "overline"
936
+ }) : r === 55 ? t.push({
937
+ type: "resetDecoration",
938
+ value: "overline"
939
+ }) : r >= 90 && r <= 97 ? t.push({
940
+ type: "setForegroundColor",
941
+ value: {
942
+ type: "named",
943
+ name: M[r - 90 + 8]
944
+ }
945
+ }) : r >= 100 && r <= 107 && t.push({
946
+ type: "setBackgroundColor",
947
+ value: {
948
+ type: "named",
949
+ name: M[r - 100 + 8]
950
+ }
951
+ });
952
+ }
953
+ return t;
954
+ }
955
+ function It() {
956
+ let e = null, t = null, n = /* @__PURE__ */ new Set();
957
+ return { parse(r) {
958
+ const i = [];
959
+ let s = 0;
960
+ do {
961
+ const o = Ht(r, s), a = o.sequence ? r.substring(s, o.startPosition) : r.substring(s);
962
+ if (a.length > 0 && i.push({
963
+ value: a,
964
+ foreground: e,
965
+ background: t,
966
+ decorations: new Set(n)
967
+ }), o.sequence) {
968
+ const l = Bt(o.sequence);
969
+ for (const c of l) c.type === "resetAll" ? (e = null, t = null, n.clear()) : c.type === "resetForegroundColor" ? e = null : c.type === "resetBackgroundColor" ? t = null : c.type === "resetDecoration" && n.delete(c.value);
970
+ for (const c of l) c.type === "setForegroundColor" ? e = c.value : c.type === "setBackgroundColor" ? t = c.value : c.type === "setDecoration" && n.add(c.value);
971
+ }
972
+ s = o.position;
973
+ } while (s < r.length);
974
+ return i;
975
+ } };
976
+ }
977
+ var Dt = {
978
+ black: "#000000",
979
+ red: "#bb0000",
980
+ green: "#00bb00",
981
+ yellow: "#bbbb00",
982
+ blue: "#0000bb",
983
+ magenta: "#ff00ff",
984
+ cyan: "#00bbbb",
985
+ white: "#eeeeee",
986
+ brightBlack: "#555555",
987
+ brightRed: "#ff5555",
988
+ brightGreen: "#00ff00",
989
+ brightYellow: "#ffff55",
990
+ brightBlue: "#5555ff",
991
+ brightMagenta: "#ff55ff",
992
+ brightCyan: "#55ffff",
993
+ brightWhite: "#ffffff"
994
+ };
995
+ function Ut(e = Dt) {
996
+ function t(a) {
997
+ return e[a];
998
+ }
999
+ function n(a) {
1000
+ return `#${a.map((l) => Math.max(0, Math.min(l, 255)).toString(16).padStart(2, "0")).join("")}`;
1001
+ }
1002
+ let r;
1003
+ function i() {
1004
+ if (r) return r;
1005
+ r = [];
1006
+ for (let c = 0; c < M.length; c++) r.push(t(M[c]));
1007
+ let a = [
1008
+ 0,
1009
+ 95,
1010
+ 135,
1011
+ 175,
1012
+ 215,
1013
+ 255
1014
+ ];
1015
+ for (let c = 0; c < 6; c++) for (let m = 0; m < 6; m++) for (let f = 0; f < 6; f++) r.push(n([
1016
+ a[c],
1017
+ a[m],
1018
+ a[f]
1019
+ ]));
1020
+ let l = 8;
1021
+ for (let c = 0; c < 24; c++, l += 10) r.push(n([
1022
+ l,
1023
+ l,
1024
+ l
1025
+ ]));
1026
+ return r;
1027
+ }
1028
+ function s(a) {
1029
+ return i()[a];
1030
+ }
1031
+ function o(a) {
1032
+ switch (a.type) {
1033
+ case "named":
1034
+ return t(a.name);
1035
+ case "rgb":
1036
+ return n(a.rgb);
1037
+ case "table":
1038
+ return s(a.index);
1039
+ }
1040
+ }
1041
+ return { value: o };
1042
+ }
1043
+ const Gt = {
1044
+ black: "#000000",
1045
+ red: "#cd3131",
1046
+ green: "#0DBC79",
1047
+ yellow: "#E5E510",
1048
+ blue: "#2472C8",
1049
+ magenta: "#BC3FBC",
1050
+ cyan: "#11A8CD",
1051
+ white: "#E5E5E5",
1052
+ brightBlack: "#666666",
1053
+ brightRed: "#F14C4C",
1054
+ brightGreen: "#23D18B",
1055
+ brightYellow: "#F5F543",
1056
+ brightBlue: "#3B8EEA",
1057
+ brightMagenta: "#D670D6",
1058
+ brightCyan: "#29B8DB",
1059
+ brightWhite: "#FFFFFF"
1060
+ };
1061
+ function Wt(e, t, n) {
1062
+ const r = I(e, n), i = z(t), s = Ut(Object.fromEntries(M.map((a) => {
1063
+ const l = `terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`;
1064
+ return [a, e.colors?.[l] || Gt[a]];
1065
+ }))), o = It();
1066
+ return i.map((a) => o.parse(a[0]).map((l) => {
1067
+ let c, m;
1068
+ l.decorations.has("reverse") ? (c = l.background ? s.value(l.background) : e.bg, m = l.foreground ? s.value(l.foreground) : e.fg) : (c = l.foreground ? s.value(l.foreground) : e.fg, m = l.background ? s.value(l.background) : void 0), c = A(c, r), m = A(m, r), l.decorations.has("dim") && (c = Rt(c));
1069
+ let f = N.None;
1070
+ return l.decorations.has("bold") && (f |= N.Bold), l.decorations.has("italic") && (f |= N.Italic), l.decorations.has("underline") && (f |= N.Underline), l.decorations.has("strikethrough") && (f |= N.Strikethrough), {
1071
+ content: l.value,
1072
+ offset: a[1],
1073
+ color: c,
1074
+ bgColor: m,
1075
+ fontStyle: f
1076
+ };
1077
+ }));
1078
+ }
1079
+ function Rt(e) {
1080
+ const t = e.match(/#([0-9a-f]{3,8})/i);
1081
+ if (t) {
1082
+ const r = t[1];
1083
+ if (r.length === 8) {
1084
+ const i = Math.round(Number.parseInt(r.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
1085
+ return `#${r.slice(0, 6)}${i}`;
1086
+ } else {
1087
+ if (r.length === 6) return `#${r}80`;
1088
+ if (r.length === 4) {
1089
+ const i = r[0], s = r[1], o = r[2], a = r[3];
1090
+ return `#${i}${i}${s}${s}${o}${o}${Math.round(Number.parseInt(`${a}${a}`, 16) / 2).toString(16).padStart(2, "0")}`;
1091
+ } else if (r.length === 3) {
1092
+ const i = r[0], s = r[1], o = r[2];
1093
+ return `#${i}${i}${s}${s}${o}${o}80`;
1094
+ }
1095
+ }
1096
+ }
1097
+ const n = e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
1098
+ return n ? `var(${n[1]}-dim)` : e;
1099
+ }
1100
+ function ae(e, t, n = {}) {
1101
+ const r = e.resolveLangAlias(n.lang || "text"), { theme: i = e.getLoadedThemes()[0] } = n;
1102
+ if (!R(r) && !F(i) && r === "ansi") {
1103
+ const { theme: s } = e.setTheme(i);
1104
+ return Wt(s, t, n);
1105
+ }
1106
+ return Be(e, t, n);
1107
+ }
1108
+ function G(e, t, n) {
1109
+ let r, i, s, o, a, l;
1110
+ if ("themes" in n) {
1111
+ const { defaultColor: c = "light", cssVariablePrefix: m = "--shiki-", colorsRendering: f = "css-vars" } = n, u = Object.entries(n.themes).filter((p) => p[1]).map((p) => ({
1112
+ color: p[0],
1113
+ theme: p[1]
1114
+ })).sort((p, g) => p.color === c ? -1 : g.color === c ? 1 : 0);
1115
+ if (u.length === 0) throw new w("`themes` option must not be empty");
1116
+ const h = Ie(e, t, n, ae);
1117
+ if (l = $(h), c && fe !== c && !u.find((p) => p.color === c)) throw new w(`\`themes\` option must contain the defaultColor key \`${c}\``);
1118
+ const d = u.map((p) => e.getTheme(p.theme)), T = u.map((p) => p.color);
1119
+ s = h.map((p) => p.map((g) => Mt(g, T, m, c, f))), l && V(s, l);
1120
+ const b = u.map((p) => I(p.theme, n));
1121
+ i = Se(u, d, b, m, c, "fg", f), r = Se(u, d, b, m, c, "bg", f), o = `shiki-themes ${d.map((p) => p.name).join(" ")}`, a = c ? void 0 : [i, r].join(";");
1122
+ } else if ("theme" in n) {
1123
+ const c = I(n.theme, n);
1124
+ s = ae(e, t, n);
1125
+ const m = e.getTheme(n.theme);
1126
+ r = A(m.bg, c), i = A(m.fg, c), o = m.name, l = $(s);
1127
+ } else throw new w("Invalid options, either `theme` or `themes` must be provided");
1128
+ return {
1129
+ tokens: s,
1130
+ fg: i,
1131
+ bg: r,
1132
+ themeName: o,
1133
+ rootStyle: a,
1134
+ grammarState: l
1135
+ };
1136
+ }
1137
+ function Se(e, t, n, r, i, s, o) {
1138
+ return e.map((a, l) => {
1139
+ const c = A(t[l][s], n[l]) || "inherit", m = `${r + a.color}${s === "bg" ? "-bg" : ""}:${c}`;
1140
+ if (l === 0 && i) {
1141
+ if (i === fe && e.length > 1) {
1142
+ const f = e.findIndex((h) => h.color === "light"), u = e.findIndex((h) => h.color === "dark");
1143
+ if (f === -1 || u === -1) throw new w('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
1144
+ return `light-dark(${A(t[f][s], n[f]) || "inherit"}, ${A(t[u][s], n[u]) || "inherit"});${m}`;
1145
+ }
1146
+ return c;
1147
+ }
1148
+ return o === "css-vars" ? m : null;
1149
+ }).filter((a) => !!a).join(";");
1150
+ }
1151
+ function W(e, t, n, r = {
1152
+ meta: {},
1153
+ options: n,
1154
+ codeToHast: (i, s) => W(e, i, s),
1155
+ codeToTokens: (i, s) => G(e, i, s)
1156
+ }) {
1157
+ let i = t;
1158
+ for (const d of U(n)) i = d.preprocess?.call(r, i, n) || i;
1159
+ let { tokens: s, fg: o, bg: a, themeName: l, rootStyle: c, grammarState: m } = G(e, i, n);
1160
+ const { mergeWhitespaces: f = !0, mergeSameStyleTokens: u = !1 } = n;
1161
+ f === !0 ? s = zt(s) : f === "never" && (s = Vt(s)), u && (s = Jt(s));
1162
+ const h = {
1163
+ ...r,
1164
+ get source() {
1165
+ return i;
1166
+ }
1167
+ };
1168
+ for (const d of U(n)) s = d.tokens?.call(h, s) || s;
1169
+ return Ft(s, {
1170
+ ...n,
1171
+ fg: o,
1172
+ bg: a,
1173
+ themeName: l,
1174
+ rootStyle: n.rootStyle === !1 ? !1 : n.rootStyle ?? c
1175
+ }, h, m);
1176
+ }
1177
+ function Ft(e, t, n, r = $(e)) {
1178
+ const i = U(t), s = [], o = {
1179
+ type: "root",
1180
+ children: []
1181
+ }, { structure: a = "classic", tabindex: l = "0" } = t, c = { class: `shiki ${t.themeName || ""}` };
1182
+ t.rootStyle !== !1 && (t.rootStyle != null ? c.style = t.rootStyle : c.style = `background-color:${t.bg};color:${t.fg}`), l !== !1 && l != null && (c.tabindex = l.toString());
1183
+ for (const [T, b] of Object.entries(t.meta || {})) T.startsWith("_") || (c[T] = b);
1184
+ let m = {
1185
+ type: "element",
1186
+ tagName: "pre",
1187
+ properties: c,
1188
+ children: [],
1189
+ data: t.data
1190
+ }, f = {
1191
+ type: "element",
1192
+ tagName: "code",
1193
+ properties: {},
1194
+ children: s
1195
+ };
1196
+ const u = [], h = {
1197
+ ...n,
1198
+ structure: a,
1199
+ addClassToHast: De,
1200
+ get source() {
1201
+ return n.source;
1202
+ },
1203
+ get tokens() {
1204
+ return e;
1205
+ },
1206
+ get options() {
1207
+ return t;
1208
+ },
1209
+ get root() {
1210
+ return o;
1211
+ },
1212
+ get pre() {
1213
+ return m;
1214
+ },
1215
+ get code() {
1216
+ return f;
1217
+ },
1218
+ get lines() {
1219
+ return u;
1220
+ }
1221
+ };
1222
+ if (e.forEach((T, b) => {
1223
+ b && (a === "inline" ? o.children.push({
1224
+ type: "element",
1225
+ tagName: "br",
1226
+ properties: {},
1227
+ children: []
1228
+ }) : a === "classic" && s.push({
1229
+ type: "text",
1230
+ value: `
1231
+ `
1232
+ }));
1233
+ let p = {
1234
+ type: "element",
1235
+ tagName: "span",
1236
+ properties: { class: "line" },
1237
+ children: []
1238
+ }, g = 0;
1239
+ for (const y of T) {
1240
+ let k = {
1241
+ type: "element",
1242
+ tagName: "span",
1243
+ properties: { ...y.htmlAttrs },
1244
+ children: [{
1245
+ type: "text",
1246
+ value: y.content
1247
+ }]
1248
+ };
1249
+ const v = se(y.htmlStyle || D(y));
1250
+ v && (k.properties.style = v);
1251
+ for (const _ of i) k = _?.span?.call(h, k, b + 1, g, p, y) || k;
1252
+ a === "inline" ? o.children.push(k) : a === "classic" && p.children.push(k), g += y.content.length;
1253
+ }
1254
+ if (a === "classic") {
1255
+ for (const y of i) p = y?.line?.call(h, p, b + 1) || p;
1256
+ u.push(p), s.push(p);
1257
+ } else a === "inline" && u.push(p);
1258
+ }), a === "classic") {
1259
+ for (const T of i) f = T?.code?.call(h, f) || f;
1260
+ m.children.push(f);
1261
+ for (const T of i) m = T?.pre?.call(h, m) || m;
1262
+ o.children.push(m);
1263
+ } else if (a === "inline") {
1264
+ const T = [];
1265
+ let b = {
1266
+ type: "element",
1267
+ tagName: "span",
1268
+ properties: { class: "line" },
1269
+ children: []
1270
+ };
1271
+ for (const g of o.children) g.type === "element" && g.tagName === "br" ? (T.push(b), b = {
1272
+ type: "element",
1273
+ tagName: "span",
1274
+ properties: { class: "line" },
1275
+ children: []
1276
+ }) : (g.type === "element" || g.type === "text") && b.children.push(g);
1277
+ T.push(b);
1278
+ let p = {
1279
+ type: "element",
1280
+ tagName: "code",
1281
+ properties: {},
1282
+ children: T
1283
+ };
1284
+ for (const g of i) p = g?.code?.call(h, p) || p;
1285
+ o.children = [];
1286
+ for (let g = 0; g < p.children.length; g++) {
1287
+ g > 0 && o.children.push({
1288
+ type: "element",
1289
+ tagName: "br",
1290
+ properties: {},
1291
+ children: []
1292
+ });
1293
+ const y = p.children[g];
1294
+ y.type === "element" && o.children.push(...y.children);
1295
+ }
1296
+ }
1297
+ let d = o;
1298
+ for (const T of i) d = T?.root?.call(h, d) || d;
1299
+ return r && V(d, r), d;
1300
+ }
1301
+ function zt(e) {
1302
+ return e.map((t) => {
1303
+ const n = [];
1304
+ let r = "", i;
1305
+ return t.forEach((s, o) => {
1306
+ const a = !(s.fontStyle && (s.fontStyle & N.Underline || s.fontStyle & N.Strikethrough));
1307
+ a && s.content.match(/^\s+$/) && t[o + 1] ? (i === void 0 && (i = s.offset), r += s.content) : r ? (a ? n.push({
1308
+ ...s,
1309
+ offset: i,
1310
+ content: r + s.content
1311
+ }) : n.push({
1312
+ content: r,
1313
+ offset: i
1314
+ }, s), i = void 0, r = "") : n.push(s);
1315
+ }), n;
1316
+ });
1317
+ }
1318
+ function Vt(e) {
1319
+ return e.map((t) => t.flatMap((n) => {
1320
+ if (n.content.match(/^\s+$/)) return n;
1321
+ const r = n.content.match(/^(\s*)(.*?)(\s*)$/);
1322
+ if (!r) return n;
1323
+ const [, i, s, o] = r;
1324
+ if (!i && !o) return n;
1325
+ const a = [{
1326
+ ...n,
1327
+ offset: n.offset + i.length,
1328
+ content: s
1329
+ }];
1330
+ return i && a.unshift({
1331
+ content: i,
1332
+ offset: n.offset
1333
+ }), o && a.push({
1334
+ content: o,
1335
+ offset: n.offset + i.length + s.length
1336
+ }), a;
1337
+ }));
1338
+ }
1339
+ function Jt(e) {
1340
+ return e.map((t) => {
1341
+ const n = [];
1342
+ for (const r of t) {
1343
+ if (n.length === 0) {
1344
+ n.push({ ...r });
1345
+ continue;
1346
+ }
1347
+ const i = n[n.length - 1], s = se(i.htmlStyle || D(i)), o = se(r.htmlStyle || D(r)), a = i.fontStyle && (i.fontStyle & N.Underline || i.fontStyle & N.Strikethrough), l = r.fontStyle && (r.fontStyle & N.Underline || r.fontStyle & N.Strikethrough);
1348
+ !a && !l && s === o ? i.content += r.content : n.push({ ...r });
1349
+ }
1350
+ return n;
1351
+ });
1352
+ }
1353
+ const Kt = st;
1354
+ function Yt(e, t, n) {
1355
+ const r = {
1356
+ meta: {},
1357
+ options: n,
1358
+ codeToHast: (s, o) => W(e, s, o),
1359
+ codeToTokens: (s, o) => G(e, s, o)
1360
+ };
1361
+ let i = Kt(W(e, t, n, r));
1362
+ for (const s of U(n)) i = s.postprocess?.call(r, i, n) || i;
1363
+ return i;
1364
+ }
1365
+ async function qt(e) {
1366
+ const t = await yt(e);
1367
+ return {
1368
+ getLastGrammarState: (...n) => wt(t, ...n),
1369
+ codeToTokensBase: (n, r) => ae(t, n, r),
1370
+ codeToTokensWithThemes: (n, r) => Ie(t, n, r),
1371
+ codeToTokens: (n, r) => G(t, n, r),
1372
+ codeToHast: (n, r) => W(t, n, r),
1373
+ codeToHtml: (n, r) => Yt(t, n, r),
1374
+ getBundledLanguages: () => ({}),
1375
+ getBundledThemes: () => ({}),
1376
+ ...t,
1377
+ getInternalContext: () => t
1378
+ };
1379
+ }
1380
+ function Xt(e) {
1381
+ const t = e.langs, n = e.themes, r = e.engine;
1382
+ async function i(s) {
1383
+ function o(f) {
1384
+ if (typeof f == "string") {
1385
+ if (f = s.langAlias?.[f] || f, oe(f)) return [];
1386
+ const u = t[f];
1387
+ if (!u) throw new w(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);
1388
+ return u;
1389
+ }
1390
+ return f;
1391
+ }
1392
+ function a(f) {
1393
+ if (Me(f)) return "none";
1394
+ if (typeof f == "string") {
1395
+ const u = n[f];
1396
+ if (!u) throw new w(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);
1397
+ return u;
1398
+ }
1399
+ return f;
1400
+ }
1401
+ const l = (s.themes ?? []).map((f) => a(f)), c = (s.langs ?? []).map((f) => o(f)), m = await qt({
1402
+ engine: s.engine ?? r(),
1403
+ ...s,
1404
+ themes: l,
1405
+ langs: c
1406
+ });
1407
+ return {
1408
+ ...m,
1409
+ loadLanguage(...f) {
1410
+ return m.loadLanguage(...f.map(o));
1411
+ },
1412
+ loadTheme(...f) {
1413
+ return m.loadTheme(...f.map(a));
1414
+ },
1415
+ getBundledLanguages() {
1416
+ return t;
1417
+ },
1418
+ getBundledThemes() {
1419
+ return n;
1420
+ }
1421
+ };
1422
+ }
1423
+ return i;
1424
+ }
1425
+ function Qt(e) {
1426
+ let t;
1427
+ async function n(r = {}) {
1428
+ if (t) {
1429
+ const i = await t;
1430
+ return await Promise.all([i.loadTheme(...r.themes || []), i.loadLanguage(...r.langs || [])]), i;
1431
+ } else {
1432
+ t = e({
1433
+ ...r,
1434
+ themes: [],
1435
+ langs: []
1436
+ });
1437
+ const i = await t;
1438
+ return await Promise.all([i.loadTheme(...r.themes || []), i.loadLanguage(...r.langs || [])]), i;
1439
+ }
1440
+ }
1441
+ return n;
1442
+ }
1443
+ function Zt(e, t) {
1444
+ const n = Qt(e);
1445
+ async function r(i, s) {
1446
+ const o = await n({
1447
+ langs: [s.lang],
1448
+ themes: "theme" in s ? [s.theme] : Object.values(s.themes)
1449
+ }), a = await t?.guessEmbeddedLanguages?.(i, s.lang, o);
1450
+ return a && await o.loadLanguage(...a), o;
1451
+ }
1452
+ return {
1453
+ getSingletonHighlighter(i) {
1454
+ return n(i);
1455
+ },
1456
+ async codeToHtml(i, s) {
1457
+ return (await r(i, s)).codeToHtml(i, s);
1458
+ },
1459
+ async codeToHast(i, s) {
1460
+ return (await r(i, s)).codeToHast(i, s);
1461
+ },
1462
+ async codeToTokens(i, s) {
1463
+ return (await r(i, s)).codeToTokens(i, s);
1464
+ },
1465
+ async codeToTokensBase(i, s) {
1466
+ return (await r(i, s)).codeToTokensBase(i, s);
1467
+ },
1468
+ async codeToTokensWithThemes(i, s) {
1469
+ return (await r(i, s)).codeToTokensWithThemes(i, s);
1470
+ },
1471
+ async getLastGrammarState(i, s) {
1472
+ return (await n({
1473
+ langs: [s.lang],
1474
+ themes: [s.theme]
1475
+ })).getLastGrammarState(i, s);
1476
+ }
1477
+ };
1478
+ }
1479
+ var Le = Object.prototype.hasOwnProperty;
1480
+ function ke(e, t, n) {
1481
+ for (n of e.keys())
1482
+ if (E(n, t)) return n;
1483
+ }
1484
+ function E(e, t) {
1485
+ var n, r, i;
1486
+ if (e === t) return !0;
1487
+ if (e && t && (n = e.constructor) === t.constructor) {
1488
+ if (n === Date) return e.getTime() === t.getTime();
1489
+ if (n === RegExp) return e.toString() === t.toString();
1490
+ if (n === Array) {
1491
+ if ((r = e.length) === t.length)
1492
+ for (; r-- && E(e[r], t[r]); ) ;
1493
+ return r === -1;
1494
+ }
1495
+ if (n === Set) {
1496
+ if (e.size !== t.size)
1497
+ return !1;
1498
+ for (r of e)
1499
+ if (i = r, i && typeof i == "object" && (i = ke(t, i), !i) || !t.has(i)) return !1;
1500
+ return !0;
1501
+ }
1502
+ if (n === Map) {
1503
+ if (e.size !== t.size)
1504
+ return !1;
1505
+ for (r of e)
1506
+ if (i = r[0], i && typeof i == "object" && (i = ke(t, i), !i) || !E(r[1], t.get(i)))
1507
+ return !1;
1508
+ return !0;
1509
+ }
1510
+ if (n === ArrayBuffer)
1511
+ e = new Uint8Array(e), t = new Uint8Array(t);
1512
+ else if (n === DataView) {
1513
+ if ((r = e.byteLength) === t.byteLength)
1514
+ for (; r-- && e.getInt8(r) === t.getInt8(r); ) ;
1515
+ return r === -1;
1516
+ }
1517
+ if (ArrayBuffer.isView(e)) {
1518
+ if ((r = e.byteLength) === t.byteLength)
1519
+ for (; r-- && e[r] === t[r]; ) ;
1520
+ return r === -1;
1521
+ }
1522
+ if (!n || typeof e == "object") {
1523
+ r = 0;
1524
+ for (n in e)
1525
+ if (Le.call(e, n) && ++r && !Le.call(t, n) || !(n in t) || !E(e[n], t[n])) return !1;
1526
+ return Object.keys(t).length === r;
1527
+ }
1528
+ }
1529
+ return e !== e && t !== t;
1530
+ }
1531
+ var ee = (e) => {
1532
+ const t = xe(e);
1533
+ return e !== t.current && !E(e, t.current) && (t.current = e), t.current;
1534
+ }, en = (e, t, n) => {
1535
+ const r = Date.now();
1536
+ clearTimeout(t.current.timeoutId);
1537
+ const i = Math.max(0, t.current.nextAllowedTime - r);
1538
+ t.current.timeoutId = setTimeout(() => {
1539
+ e().catch(console.error), t.current.nextAllowedTime = r + n;
1540
+ }, i);
1541
+ }, We = "plaintext", ve = (e) => e == null ? [] : Array.isArray(e) ? e : [e], tn = (e) => e == null ? null : typeof e == "string" ? `s:${e}` : `o:${e.name}::${e.scopeName}`, _e = (e) => {
1542
+ const t = /* @__PURE__ */ new Set(), n = [];
1543
+ for (const r of e) {
1544
+ const i = tn(r);
1545
+ i == null || t.has(i) || (t.add(i), n.push(r));
1546
+ }
1547
+ return n;
1548
+ }, nn = (e, t) => e == null ? !1 : typeof e == "string" ? e in t : typeof e.name == "string" && typeof e.scopeName == "string", rn = (e, t) => oe(e) || t.includes(e) ? e : We, sn = (e, t, n, r) => {
1549
+ const i = ve(t), s = ve(r), o = [...i, ...s];
1550
+ let a = We, l;
1551
+ if (e == null || typeof e == "string" && !e.trim())
1552
+ return {
1553
+ languageId: a,
1554
+ langsToLoad: _e([...s, ...i])
1555
+ };
1556
+ if (typeof e == "object")
1557
+ a = e.name, l = e;
1558
+ else {
1559
+ const c = e.toLowerCase(), m = (u) => u?.toLowerCase() === c, f = o.find(
1560
+ (u) => typeof u == "object" && u != null && !!(m(u.name) || m(u.scopeName) || m(u.scopeName?.split(".").pop()) || u.aliases?.some(m) || u.fileTypes?.some(m))
1561
+ );
1562
+ f ? (a = f.name || e, l = f) : n?.[e] ? (a = n[e], l = n[e]) : (a = e, l = e);
1563
+ }
1564
+ return {
1565
+ languageId: a,
1566
+ langsToLoad: _e([
1567
+ l,
1568
+ ...s,
1569
+ ...i
1570
+ ])
1571
+ };
1572
+ }, Ne = (e) => typeof e == "object" && e !== null && "tokenColors" in e && Array.isArray(e.tokenColors);
1573
+ function an(e) {
1574
+ const t = Ne(e), n = typeof e == "object" && e !== null && !t, r = typeof e == "object" && e !== null && !t && Object.entries(e).some(
1575
+ ([i, s]) => i.trim() !== "" && (typeof s == "string" && s.trim() !== "" || Ne(s))
1576
+ );
1577
+ return n ? {
1578
+ isMultiTheme: !0,
1579
+ themeId: r ? `multi-${Object.values(e).map(
1580
+ (s) => (typeof s == "string" ? s : s?.name) || "custom"
1581
+ ).sort().join("-")}` : "multi-default",
1582
+ multiTheme: r ? e : null,
1583
+ themesToLoad: r ? Object.values(e) : []
1584
+ } : {
1585
+ isMultiTheme: !1,
1586
+ themeId: typeof e == "string" ? e : e?.name || "custom",
1587
+ singleTheme: e,
1588
+ themesToLoad: [e]
1589
+ };
1590
+ }
1591
+ function on(e = 1) {
1592
+ return {
1593
+ name: "react-shiki:line-numbers",
1594
+ code(t) {
1595
+ if (this.addClassToHast(t, "has-line-numbers"), this.addClassToHast(t, "rs-has-line-numbers"), e !== 1) {
1596
+ const n = t.properties?.style || "", r = n ? `${n}; --line-start: ${e}` : `--line-start: ${e}`;
1597
+ t.properties = {
1598
+ ...t.properties,
1599
+ style: r
1600
+ };
1601
+ }
1602
+ },
1603
+ line(t) {
1604
+ return this.addClassToHast(t, "line-numbers"), this.addClassToHast(t, "rs-line-number"), t;
1605
+ }
1606
+ };
1607
+ }
1608
+ var Ce = {
1609
+ light: "github-light",
1610
+ dark: "github-dark"
1611
+ }, ln = (e, t) => e.isMultiTheme ? {
1612
+ themes: e.multiTheme ?? Ce,
1613
+ defaultColor: t.defaultColor,
1614
+ cssVariablePrefix: t.cssVariablePrefix
1615
+ } : {
1616
+ theme: e.singleTheme ?? Ce.dark
1617
+ }, cn = (e) => {
1618
+ const t = [...e.transformers || []];
1619
+ return e.showLineNumbers && t.push(on(e.startingLineNumber)), t;
1620
+ }, fn = ({
1621
+ languageId: e,
1622
+ resolvedTheme: t,
1623
+ options: n
1624
+ }) => {
1625
+ const {
1626
+ defaultColor: r,
1627
+ cssVariablePrefix: i,
1628
+ showLineNumbers: s,
1629
+ startingLineNumber: o,
1630
+ transformers: a,
1631
+ ...l
1632
+ } = n;
1633
+ return {
1634
+ lang: e,
1635
+ ...ln(t, n),
1636
+ ...l,
1637
+ transformers: cn(n)
1638
+ };
1639
+ }, mn = (e, t, n) => {
1640
+ const r = n.getBundledLanguages();
1641
+ return Ue(e).flatMap(
1642
+ (i) => r[i] ?? []
1643
+ );
1644
+ }, un = (e, t, n, r = {}, i) => {
1645
+ const [s, o] = et(null), a = ee(t), l = ee(n), c = ee(r), { languageId: m, langsToLoad: f } = Q(
1646
+ () => sn(
1647
+ a,
1648
+ c.customLanguages,
1649
+ c.langAlias,
1650
+ c.preloadLanguages
1651
+ ),
1652
+ [
1653
+ a,
1654
+ c.customLanguages,
1655
+ c.preloadLanguages,
1656
+ c.langAlias
1657
+ ]
1658
+ ), u = Q(
1659
+ () => an(l),
1660
+ [l]
1661
+ ), { themesToLoad: h } = u, d = xe({
1662
+ nextAllowedTime: 0,
1663
+ timeoutId: void 0
1664
+ }), T = Q(
1665
+ () => fn({
1666
+ languageId: m,
1667
+ resolvedTheme: u,
1668
+ options: c
1669
+ }),
1670
+ [m, u, c]
1671
+ );
1672
+ return tt(() => {
1673
+ let b = !0;
1674
+ const p = async () => {
1675
+ if (!m) return;
1676
+ const y = c.highlighter ? c.highlighter : await i(
1677
+ f,
1678
+ h,
1679
+ c.engine
1680
+ );
1681
+ if (!c.highlighter) {
1682
+ const _ = mn(
1683
+ e,
1684
+ m,
1685
+ y
1686
+ );
1687
+ _.length > 0 && await y.loadLanguage(..._);
1688
+ }
1689
+ const k = rn(
1690
+ m,
1691
+ y.getLoadedLanguages()
1692
+ ), v = { ...T, lang: k };
1693
+ if (b) {
1694
+ const _ = c.outputFormat === "html" ? y.codeToHtml(e, v) : at(y.codeToHast(e, v), {
1695
+ jsx: ne,
1696
+ jsxs: Ae,
1697
+ Fragment: nt
1698
+ });
1699
+ o(_);
1700
+ }
1701
+ }, { delay: g } = c;
1702
+ return g ? en(p, d, g) : p().catch(console.error), () => {
1703
+ b = !1, clearTimeout(d.current.timeoutId);
1704
+ };
1705
+ }, [
1706
+ e,
1707
+ T,
1708
+ c.delay,
1709
+ c.highlighter,
1710
+ f,
1711
+ h
1712
+ ]), s;
1713
+ };
1714
+ function Re(e, { insertAt: t } = {}) {
1715
+ if (!e || typeof document > "u") return;
1716
+ const n = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
1717
+ r.type = "text/css", t === "top" && n.firstChild ? n.insertBefore(r, n.firstChild) : n.appendChild(r), r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e));
1718
+ }
1719
+ Re(`@layer base {
1720
+ .rs-root {
1721
+ position: relative;
1722
+ }
1723
+ .rs-default-styles pre {
1724
+ overflow: auto;
1725
+ border-radius: 0.5rem;
1726
+ padding-left: 1.5rem;
1727
+ padding-right: 1.5rem;
1728
+ padding-top: 1.25rem;
1729
+ padding-bottom: 1.25rem;
1730
+ }
1731
+ .rs-language-label {
1732
+ position: absolute;
1733
+ right: 0.75rem;
1734
+ top: 0.5rem;
1735
+ font-family: monospace;
1736
+ font-size: 0.75rem;
1737
+ letter-spacing: -0.05em;
1738
+ color: rgba(107, 114, 128, 0.85);
1739
+ }
1740
+ }
1741
+ `);
1742
+ Re(`@layer base {
1743
+ .line-numbers::before,
1744
+ .rs-line-number::before {
1745
+ counter-increment: line-number;
1746
+ content: counter(line-number);
1747
+ display: inline-flex;
1748
+ justify-content: flex-end;
1749
+ align-items: flex-start;
1750
+ box-sizing: content-box;
1751
+ min-width: var(--rs-line-numbers-width, 2ch);
1752
+ padding-left: var(--rs-line-numbers-padding-left, 2ch);
1753
+ padding-right: var(--rs-line-numbers-padding-right, 2ch);
1754
+ color: var(--rs-line-numbers-foreground, rgba(107, 114, 128, 0.6));
1755
+ font-size: var(--rs-line-numbers-font-size, inherit);
1756
+ font-weight: var(--rs-line-numbers-font-weight, inherit);
1757
+ line-height: var(--rs-line-numbers-line-height, inherit);
1758
+ font-family: var(--rs-line-numbers-font-family, inherit);
1759
+ opacity: var(--rs-line-numbers-opacity, 1);
1760
+ user-select: none;
1761
+ pointer-events: none;
1762
+ }
1763
+ .has-line-numbers,
1764
+ .rs-has-line-numbers {
1765
+ counter-reset: line-number calc(var(--line-start, 1) - 1);
1766
+ --rs-line-numbers-foreground: var(--line-numbers-foreground, rgba(107, 114, 128, 0.5));
1767
+ --rs-line-numbers-width: var(--line-numbers-width, 2ch);
1768
+ --rs-line-numbers-padding-left: var(--line-numbers-padding-left, 0ch);
1769
+ --rs-line-numbers-padding-right: var(--line-numbers-padding-right, 2ch);
1770
+ --rs-line-numbers-font-size: var(--line-numbers-font-size, inherit);
1771
+ --rs-line-numbers-font-weight: var(--line-numbers-font-weight, inherit);
1772
+ --rs-line-numbers-line-height: var(--line-numbers-line-height, inherit);
1773
+ --rs-line-numbers-font-family: var(--line-numbers-font-family, inherit);
1774
+ --rs-line-numbers-opacity: var(--line-numbers-opacity, 1);
1775
+ }
1776
+ }
1777
+ `);
1778
+ var hn = (e) => Ze(
1779
+ ({
1780
+ language: t,
1781
+ theme: n,
1782
+ delay: r,
1783
+ transformers: i,
1784
+ defaultColor: s,
1785
+ cssVariablePrefix: o,
1786
+ addDefaultStyles: a = !0,
1787
+ style: l,
1788
+ langStyle: c,
1789
+ className: m,
1790
+ langClassName: f,
1791
+ showLanguage: u = !0,
1792
+ showLineNumbers: h = !1,
1793
+ startingLineNumber: d = 1,
1794
+ children: T,
1795
+ as: b = "pre",
1796
+ customLanguages: p,
1797
+ preloadLanguages: g,
1798
+ ...y
1799
+ }, k) => {
1800
+ const v = {
1801
+ delay: r,
1802
+ transformers: i,
1803
+ customLanguages: p,
1804
+ preloadLanguages: g,
1805
+ showLineNumbers: h,
1806
+ defaultColor: s,
1807
+ cssVariablePrefix: o,
1808
+ startingLineNumber: d,
1809
+ ...y
1810
+ }, _ = typeof t == "object" ? t.name || null : t?.trim() || null, O = e(
1811
+ T,
1812
+ t,
1813
+ n,
1814
+ v
1815
+ ), H = typeof O == "string";
1816
+ return /* @__PURE__ */ Ae(
1817
+ b,
1818
+ {
1819
+ ref: k,
1820
+ "data-testid": "shiki-container",
1821
+ className: de(
1822
+ "rs-root",
1823
+ "not-prose",
1824
+ a && "rs-default-styles",
1825
+ m
1826
+ ),
1827
+ style: l,
1828
+ id: "shiki-container",
1829
+ children: [
1830
+ u && _ ? /* @__PURE__ */ ne(
1831
+ "span",
1832
+ {
1833
+ className: de(
1834
+ "rs-language-label",
1835
+ f
1836
+ ),
1837
+ style: c,
1838
+ id: "language-label",
1839
+ children: _
1840
+ }
1841
+ ) : null,
1842
+ H ? /* @__PURE__ */ ne("div", { dangerouslySetInnerHTML: { __html: O } }) : O
1843
+ ]
1844
+ }
1845
+ );
1846
+ }
1847
+ ), me = class extends Error {
1848
+ constructor(e) {
1849
+ super(e), this.name = "ShikiError";
1850
+ }
1851
+ };
1852
+ function dn() {
1853
+ return 2147483648;
1854
+ }
1855
+ function gn() {
1856
+ return typeof performance < "u" ? performance.now() : Date.now();
1857
+ }
1858
+ const pn = (e, t) => e + (t - e % t) % t;
1859
+ async function yn(e) {
1860
+ let t, n;
1861
+ const r = {};
1862
+ function i(h) {
1863
+ n = h, r.HEAPU8 = new Uint8Array(h), r.HEAPU32 = new Uint32Array(h);
1864
+ }
1865
+ function s(h, d, T) {
1866
+ r.HEAPU8.copyWithin(h, d, d + T);
1867
+ }
1868
+ function o(h) {
1869
+ try {
1870
+ return t.grow(h - n.byteLength + 65535 >>> 16), i(t.buffer), 1;
1871
+ } catch {
1872
+ }
1873
+ }
1874
+ function a(h) {
1875
+ const d = r.HEAPU8.length;
1876
+ h = h >>> 0;
1877
+ const T = dn();
1878
+ if (h > T)
1879
+ return !1;
1880
+ for (let b = 1; b <= 4; b *= 2) {
1881
+ let p = d * (1 + 0.2 / b);
1882
+ p = Math.min(p, h + 100663296);
1883
+ const g = Math.min(T, pn(Math.max(h, p), 65536));
1884
+ if (o(g))
1885
+ return !0;
1886
+ }
1887
+ return !1;
1888
+ }
1889
+ const l = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
1890
+ function c(h, d, T = 1024) {
1891
+ const b = d + T;
1892
+ let p = d;
1893
+ for (; h[p] && !(p >= b); ) ++p;
1894
+ if (p - d > 16 && h.buffer && l)
1895
+ return l.decode(h.subarray(d, p));
1896
+ let g = "";
1897
+ for (; d < p; ) {
1898
+ let y = h[d++];
1899
+ if (!(y & 128)) {
1900
+ g += String.fromCharCode(y);
1901
+ continue;
1902
+ }
1903
+ const k = h[d++] & 63;
1904
+ if ((y & 224) === 192) {
1905
+ g += String.fromCharCode((y & 31) << 6 | k);
1906
+ continue;
1907
+ }
1908
+ const v = h[d++] & 63;
1909
+ if ((y & 240) === 224 ? y = (y & 15) << 12 | k << 6 | v : y = (y & 7) << 18 | k << 12 | v << 6 | h[d++] & 63, y < 65536)
1910
+ g += String.fromCharCode(y);
1911
+ else {
1912
+ const _ = y - 65536;
1913
+ g += String.fromCharCode(55296 | _ >> 10, 56320 | _ & 1023);
1914
+ }
1915
+ }
1916
+ return g;
1917
+ }
1918
+ function m(h, d) {
1919
+ return h ? c(r.HEAPU8, h, d) : "";
1920
+ }
1921
+ const f = {
1922
+ emscripten_get_now: gn,
1923
+ emscripten_memcpy_big: s,
1924
+ emscripten_resize_heap: a,
1925
+ fd_write: () => 0
1926
+ };
1927
+ async function u() {
1928
+ const d = await e({
1929
+ env: f,
1930
+ wasi_snapshot_preview1: f
1931
+ });
1932
+ t = d.memory, i(t.buffer), Object.assign(r, d), r.UTF8ToString = m;
1933
+ }
1934
+ return await u(), r;
1935
+ }
1936
+ var bn = Object.defineProperty, Tn = (e, t, n) => t in e ? bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, S = (e, t, n) => Tn(e, typeof t != "symbol" ? t + "" : t, n);
1937
+ let L = null;
1938
+ function wn(e) {
1939
+ throw new me(e.UTF8ToString(e.getLastOnigError()));
1940
+ }
1941
+ class K {
1942
+ constructor(t) {
1943
+ S(this, "utf16Length"), S(this, "utf8Length"), S(this, "utf16Value"), S(this, "utf8Value"), S(this, "utf16OffsetToUtf8"), S(this, "utf8OffsetToUtf16");
1944
+ const n = t.length, r = K._utf8ByteLength(t), i = r !== n, s = i ? new Uint32Array(n + 1) : null;
1945
+ i && (s[n] = r);
1946
+ const o = i ? new Uint32Array(r + 1) : null;
1947
+ i && (o[r] = n);
1948
+ const a = new Uint8Array(r);
1949
+ let l = 0;
1950
+ for (let c = 0; c < n; c++) {
1951
+ const m = t.charCodeAt(c);
1952
+ let f = m, u = !1;
1953
+ if (m >= 55296 && m <= 56319 && c + 1 < n) {
1954
+ const h = t.charCodeAt(c + 1);
1955
+ h >= 56320 && h <= 57343 && (f = (m - 55296 << 10) + 65536 | h - 56320, u = !0);
1956
+ }
1957
+ i && (s[c] = l, u && (s[c + 1] = l), f <= 127 ? o[l + 0] = c : f <= 2047 ? (o[l + 0] = c, o[l + 1] = c) : f <= 65535 ? (o[l + 0] = c, o[l + 1] = c, o[l + 2] = c) : (o[l + 0] = c, o[l + 1] = c, o[l + 2] = c, o[l + 3] = c)), f <= 127 ? a[l++] = f : f <= 2047 ? (a[l++] = 192 | (f & 1984) >>> 6, a[l++] = 128 | (f & 63) >>> 0) : f <= 65535 ? (a[l++] = 224 | (f & 61440) >>> 12, a[l++] = 128 | (f & 4032) >>> 6, a[l++] = 128 | (f & 63) >>> 0) : (a[l++] = 240 | (f & 1835008) >>> 18, a[l++] = 128 | (f & 258048) >>> 12, a[l++] = 128 | (f & 4032) >>> 6, a[l++] = 128 | (f & 63) >>> 0), u && c++;
1958
+ }
1959
+ this.utf16Length = n, this.utf8Length = r, this.utf16Value = t, this.utf8Value = a, this.utf16OffsetToUtf8 = s, this.utf8OffsetToUtf16 = o;
1960
+ }
1961
+ static _utf8ByteLength(t) {
1962
+ let n = 0;
1963
+ for (let r = 0, i = t.length; r < i; r++) {
1964
+ const s = t.charCodeAt(r);
1965
+ let o = s, a = !1;
1966
+ if (s >= 55296 && s <= 56319 && r + 1 < i) {
1967
+ const l = t.charCodeAt(r + 1);
1968
+ l >= 56320 && l <= 57343 && (o = (s - 55296 << 10) + 65536 | l - 56320, a = !0);
1969
+ }
1970
+ o <= 127 ? n += 1 : o <= 2047 ? n += 2 : o <= 65535 ? n += 3 : n += 4, a && r++;
1971
+ }
1972
+ return n;
1973
+ }
1974
+ createString(t) {
1975
+ const n = t.omalloc(this.utf8Length);
1976
+ return t.HEAPU8.set(this.utf8Value, n), n;
1977
+ }
1978
+ }
1979
+ const Y = class C {
1980
+ constructor(t) {
1981
+ if (S(this, "id", ++C.LAST_ID), S(this, "_onigBinding"), S(this, "content"), S(this, "utf16Length"), S(this, "utf8Length"), S(this, "utf16OffsetToUtf8"), S(this, "utf8OffsetToUtf16"), S(this, "ptr"), !L)
1982
+ throw new me("Must invoke loadWasm first.");
1983
+ this._onigBinding = L, this.content = t;
1984
+ const n = new K(t);
1985
+ this.utf16Length = n.utf16Length, this.utf8Length = n.utf8Length, this.utf16OffsetToUtf8 = n.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = n.utf8OffsetToUtf16, this.utf8Length < 1e4 && !C._sharedPtrInUse ? (C._sharedPtr || (C._sharedPtr = L.omalloc(1e4)), C._sharedPtrInUse = !0, L.HEAPU8.set(n.utf8Value, C._sharedPtr), this.ptr = C._sharedPtr) : this.ptr = n.createString(L);
1986
+ }
1987
+ convertUtf8OffsetToUtf16(t) {
1988
+ return this.utf8OffsetToUtf16 ? t < 0 ? 0 : t > this.utf8Length ? this.utf16Length : this.utf8OffsetToUtf16[t] : t;
1989
+ }
1990
+ convertUtf16OffsetToUtf8(t) {
1991
+ return this.utf16OffsetToUtf8 ? t < 0 ? 0 : t > this.utf16Length ? this.utf8Length : this.utf16OffsetToUtf8[t] : t;
1992
+ }
1993
+ dispose() {
1994
+ this.ptr === C._sharedPtr ? C._sharedPtrInUse = !1 : this._onigBinding.ofree(this.ptr);
1995
+ }
1996
+ };
1997
+ S(Y, "LAST_ID", 0);
1998
+ S(Y, "_sharedPtr", 0);
1999
+ S(Y, "_sharedPtrInUse", !1);
2000
+ let Fe = Y;
2001
+ class Sn {
2002
+ constructor(t) {
2003
+ if (S(this, "_onigBinding"), S(this, "_ptr"), !L)
2004
+ throw new me("Must invoke loadWasm first.");
2005
+ const n = [], r = [];
2006
+ for (let a = 0, l = t.length; a < l; a++) {
2007
+ const c = new K(t[a]);
2008
+ n[a] = c.createString(L), r[a] = c.utf8Length;
2009
+ }
2010
+ const i = L.omalloc(4 * t.length);
2011
+ L.HEAPU32.set(n, i / 4);
2012
+ const s = L.omalloc(4 * t.length);
2013
+ L.HEAPU32.set(r, s / 4);
2014
+ const o = L.createOnigScanner(i, s, t.length);
2015
+ for (let a = 0, l = t.length; a < l; a++)
2016
+ L.ofree(n[a]);
2017
+ L.ofree(s), L.ofree(i), o === 0 && wn(L), this._onigBinding = L, this._ptr = o;
2018
+ }
2019
+ dispose() {
2020
+ this._onigBinding.freeOnigScanner(this._ptr);
2021
+ }
2022
+ findNextMatchSync(t, n, r) {
2023
+ let i = 0;
2024
+ if (typeof r == "number" && (i = r), typeof t == "string") {
2025
+ t = new Fe(t);
2026
+ const s = this._findNextMatchSync(t, n, !1, i);
2027
+ return t.dispose(), s;
2028
+ }
2029
+ return this._findNextMatchSync(t, n, !1, i);
2030
+ }
2031
+ _findNextMatchSync(t, n, r, i) {
2032
+ const s = this._onigBinding, o = s.findNextOnigScannerMatch(this._ptr, t.id, t.ptr, t.utf8Length, t.convertUtf16OffsetToUtf8(n), i);
2033
+ if (o === 0)
2034
+ return null;
2035
+ const a = s.HEAPU32;
2036
+ let l = o / 4;
2037
+ const c = a[l++], m = a[l++], f = [];
2038
+ for (let u = 0; u < m; u++) {
2039
+ const h = t.convertUtf8OffsetToUtf16(a[l++]), d = t.convertUtf8OffsetToUtf16(a[l++]);
2040
+ f[u] = {
2041
+ start: h,
2042
+ end: d,
2043
+ length: d - h
2044
+ };
2045
+ }
2046
+ return {
2047
+ index: c,
2048
+ captureIndices: f
2049
+ };
2050
+ }
2051
+ }
2052
+ function Ln(e) {
2053
+ return typeof e.instantiator == "function";
2054
+ }
2055
+ function kn(e) {
2056
+ return typeof e.default == "function";
2057
+ }
2058
+ function vn(e) {
2059
+ return typeof e.data < "u";
2060
+ }
2061
+ function _n(e) {
2062
+ return typeof Response < "u" && e instanceof Response;
2063
+ }
2064
+ function Nn(e) {
2065
+ 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;
2066
+ }
2067
+ let B;
2068
+ function ze(e) {
2069
+ if (B)
2070
+ return B;
2071
+ async function t() {
2072
+ L = await yn(async (n) => {
2073
+ let r = e;
2074
+ return r = await r, typeof r == "function" && (r = await r(n)), typeof r == "function" && (r = await r(n)), Ln(r) ? r = await r.instantiator(n) : kn(r) ? r = await r.default(n) : (vn(r) && (r = r.data), _n(r) ? typeof WebAssembly.instantiateStreaming == "function" ? r = await Cn(r)(n) : r = await xn(r)(n) : Nn(r) ? r = await te(r)(n) : r instanceof WebAssembly.Module ? r = await te(r)(n) : "default" in r && r.default instanceof WebAssembly.Module && (r = await te(r.default)(n))), "instance" in r && (r = r.instance), "exports" in r && (r = r.exports), r;
2075
+ });
2076
+ }
2077
+ return B = t(), B;
2078
+ }
2079
+ function te(e) {
2080
+ return (t) => WebAssembly.instantiate(e, t);
2081
+ }
2082
+ function Cn(e) {
2083
+ return (t) => WebAssembly.instantiateStreaming(e, t);
2084
+ }
2085
+ function xn(e) {
2086
+ return async (t) => {
2087
+ const n = await e.arrayBuffer();
2088
+ return WebAssembly.instantiate(n, t);
2089
+ };
2090
+ }
2091
+ let Ve;
2092
+ function An(e) {
2093
+ Ve = e;
2094
+ }
2095
+ function On() {
2096
+ return Ve;
2097
+ }
2098
+ async function Je(e) {
2099
+ return e && await ze(e), {
2100
+ createScanner(t) {
2101
+ return new Sn(t.map((n) => typeof n == "string" ? n : n.source));
2102
+ },
2103
+ createString(t) {
2104
+ return new Fe(t);
2105
+ }
2106
+ };
2107
+ }
2108
+ const Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2109
+ __proto__: null,
2110
+ createOnigurumaEngine: Je,
2111
+ getDefaultWasmLoader: On,
2112
+ loadWasm: ze,
2113
+ setDefaultWasmLoader: An
2114
+ }, Symbol.toStringTag, { value: "Module" }));
2115
+ var Ke = /* @__PURE__ */ ft({});
2116
+ ut(Ke, Mn);
2117
+ const Pn = [
2118
+ {
2119
+ id: "andromeeda",
2120
+ displayName: "Andromeeda",
2121
+ type: "dark",
2122
+ import: (() => import("./andromeeda-BbmzSJq1.js"))
2123
+ },
2124
+ {
2125
+ id: "aurora-x",
2126
+ displayName: "Aurora X",
2127
+ type: "dark",
2128
+ import: (() => import("./aurora-x-BwoVEUWZ.js"))
2129
+ },
2130
+ {
2131
+ id: "ayu-dark",
2132
+ displayName: "Ayu Dark",
2133
+ type: "dark",
2134
+ import: (() => import("./ayu-dark-DJoqd4M9.js"))
2135
+ },
2136
+ {
2137
+ id: "ayu-light",
2138
+ displayName: "Ayu Light",
2139
+ type: "light",
2140
+ import: (() => import("./ayu-light-BzXEJRJ-.js"))
2141
+ },
2142
+ {
2143
+ id: "ayu-mirage",
2144
+ displayName: "Ayu Mirage",
2145
+ type: "dark",
2146
+ import: (() => import("./ayu-mirage-BJ2oZGzi.js"))
2147
+ },
2148
+ {
2149
+ id: "catppuccin-frappe",
2150
+ displayName: "Catppuccin Frappé",
2151
+ type: "dark",
2152
+ import: (() => import("./catppuccin-frappe-D3cH2rXe.js"))
2153
+ },
2154
+ {
2155
+ id: "catppuccin-latte",
2156
+ displayName: "Catppuccin Latte",
2157
+ type: "light",
2158
+ import: (() => import("./catppuccin-latte-C0LRGUW4.js"))
2159
+ },
2160
+ {
2161
+ id: "catppuccin-macchiato",
2162
+ displayName: "Catppuccin Macchiato",
2163
+ type: "dark",
2164
+ import: (() => import("./catppuccin-macchiato-c5wQ11TT.js"))
2165
+ },
2166
+ {
2167
+ id: "catppuccin-mocha",
2168
+ displayName: "Catppuccin Mocha",
2169
+ type: "dark",
2170
+ import: (() => import("./catppuccin-mocha-WMD6Qvya.js"))
2171
+ },
2172
+ {
2173
+ id: "dark-plus",
2174
+ displayName: "Dark Plus",
2175
+ type: "dark",
2176
+ import: (() => import("./dark-plus-pUHDTVV0.js"))
2177
+ },
2178
+ {
2179
+ id: "dracula",
2180
+ displayName: "Dracula Theme",
2181
+ type: "dark",
2182
+ import: (() => import("./dracula-BtZx2Kac.js"))
2183
+ },
2184
+ {
2185
+ id: "dracula-soft",
2186
+ displayName: "Dracula Theme Soft",
2187
+ type: "dark",
2188
+ import: (() => import("./dracula-soft-BKa-aqBv.js"))
2189
+ },
2190
+ {
2191
+ id: "everforest-dark",
2192
+ displayName: "Everforest Dark",
2193
+ type: "dark",
2194
+ import: (() => import("./everforest-dark-DMCBqXCK.js"))
2195
+ },
2196
+ {
2197
+ id: "everforest-light",
2198
+ displayName: "Everforest Light",
2199
+ type: "light",
2200
+ import: (() => import("./everforest-light-BbXl82Em.js"))
2201
+ },
2202
+ {
2203
+ id: "github-dark",
2204
+ displayName: "GitHub Dark",
2205
+ type: "dark",
2206
+ import: (() => import("./github-dark-DenFmJkN.js"))
2207
+ },
2208
+ {
2209
+ id: "github-dark-default",
2210
+ displayName: "GitHub Dark Default",
2211
+ type: "dark",
2212
+ import: (() => import("./github-dark-default-BJPUVz4H.js"))
2213
+ },
2214
+ {
2215
+ id: "github-dark-dimmed",
2216
+ displayName: "GitHub Dark Dimmed",
2217
+ type: "dark",
2218
+ import: (() => import("./github-dark-dimmed-DUshB20C.js"))
2219
+ },
2220
+ {
2221
+ id: "github-dark-high-contrast",
2222
+ displayName: "GitHub Dark High Contrast",
2223
+ type: "dark",
2224
+ import: (() => import("./github-dark-high-contrast-D3aGCnF8.js"))
2225
+ },
2226
+ {
2227
+ id: "github-light",
2228
+ displayName: "GitHub Light",
2229
+ type: "light",
2230
+ import: (() => import("./github-light-JYsPkUQd.js"))
2231
+ },
2232
+ {
2233
+ id: "github-light-default",
2234
+ displayName: "GitHub Light Default",
2235
+ type: "light",
2236
+ import: (() => import("./github-light-default-D99KPAby.js"))
2237
+ },
2238
+ {
2239
+ id: "github-light-high-contrast",
2240
+ displayName: "GitHub Light High Contrast",
2241
+ type: "light",
2242
+ import: (() => import("./github-light-high-contrast-BbmZE-Mp.js"))
2243
+ },
2244
+ {
2245
+ id: "gruvbox-dark-hard",
2246
+ displayName: "Gruvbox Dark Hard",
2247
+ type: "dark",
2248
+ import: (() => import("./gruvbox-dark-hard-C5HOtKIh.js"))
2249
+ },
2250
+ {
2251
+ id: "gruvbox-dark-medium",
2252
+ displayName: "Gruvbox Dark Medium",
2253
+ type: "dark",
2254
+ import: (() => import("./gruvbox-dark-medium-FVgwJHuz.js"))
2255
+ },
2256
+ {
2257
+ id: "gruvbox-dark-soft",
2258
+ displayName: "Gruvbox Dark Soft",
2259
+ type: "dark",
2260
+ import: (() => import("./gruvbox-dark-soft-B46F314v.js"))
2261
+ },
2262
+ {
2263
+ id: "gruvbox-light-hard",
2264
+ displayName: "Gruvbox Light Hard",
2265
+ type: "light",
2266
+ import: (() => import("./gruvbox-light-hard-CJD38wDZ.js"))
2267
+ },
2268
+ {
2269
+ id: "gruvbox-light-medium",
2270
+ displayName: "Gruvbox Light Medium",
2271
+ type: "light",
2272
+ import: (() => import("./gruvbox-light-medium-BlIhMYTA.js"))
2273
+ },
2274
+ {
2275
+ id: "gruvbox-light-soft",
2276
+ displayName: "Gruvbox Light Soft",
2277
+ type: "light",
2278
+ import: (() => import("./gruvbox-light-soft-DoPHyLVZ.js"))
2279
+ },
2280
+ {
2281
+ id: "horizon",
2282
+ displayName: "Horizon",
2283
+ type: "dark",
2284
+ import: (() => import("./horizon-CJQ10nlf.js"))
2285
+ },
2286
+ {
2287
+ id: "horizon-bright",
2288
+ displayName: "Horizon Bright",
2289
+ type: "light",
2290
+ import: (() => import("./horizon-bright-2WzHy-Vo.js"))
2291
+ },
2292
+ {
2293
+ id: "houston",
2294
+ displayName: "Houston",
2295
+ type: "dark",
2296
+ import: (() => import("./houston-BDYrDoDW.js"))
2297
+ },
2298
+ {
2299
+ id: "kanagawa-dragon",
2300
+ displayName: "Kanagawa Dragon",
2301
+ type: "dark",
2302
+ import: (() => import("./kanagawa-dragon-CiKur4Hl.js"))
2303
+ },
2304
+ {
2305
+ id: "kanagawa-lotus",
2306
+ displayName: "Kanagawa Lotus",
2307
+ type: "light",
2308
+ import: (() => import("./kanagawa-lotus-BKu-smKu.js"))
2309
+ },
2310
+ {
2311
+ id: "kanagawa-wave",
2312
+ displayName: "Kanagawa Wave",
2313
+ type: "dark",
2314
+ import: (() => import("./kanagawa-wave-CQwozSzG.js"))
2315
+ },
2316
+ {
2317
+ id: "laserwave",
2318
+ displayName: "LaserWave",
2319
+ type: "dark",
2320
+ import: (() => import("./laserwave-6a00oqik.js"))
2321
+ },
2322
+ {
2323
+ id: "light-plus",
2324
+ displayName: "Light Plus",
2325
+ type: "light",
2326
+ import: (() => import("./light-plus-CZuVqSLX.js"))
2327
+ },
2328
+ {
2329
+ id: "material-theme",
2330
+ displayName: "Material Theme",
2331
+ type: "dark",
2332
+ import: (() => import("./material-theme-D6KBX41T.js"))
2333
+ },
2334
+ {
2335
+ id: "material-theme-darker",
2336
+ displayName: "Material Theme Darker",
2337
+ type: "dark",
2338
+ import: (() => import("./material-theme-darker-CkRroheE.js"))
2339
+ },
2340
+ {
2341
+ id: "material-theme-lighter",
2342
+ displayName: "Material Theme Lighter",
2343
+ type: "light",
2344
+ import: (() => import("./material-theme-lighter-BUBw43Yz.js"))
2345
+ },
2346
+ {
2347
+ id: "material-theme-ocean",
2348
+ displayName: "Material Theme Ocean",
2349
+ type: "dark",
2350
+ import: (() => import("./material-theme-ocean-ClGX14Ja.js"))
2351
+ },
2352
+ {
2353
+ id: "material-theme-palenight",
2354
+ displayName: "Material Theme Palenight",
2355
+ type: "dark",
2356
+ import: (() => import("./material-theme-palenight-C1RVm8K1.js"))
2357
+ },
2358
+ {
2359
+ id: "min-dark",
2360
+ displayName: "Min Dark",
2361
+ type: "dark",
2362
+ import: (() => import("./min-dark-C7ak0t6c.js"))
2363
+ },
2364
+ {
2365
+ id: "min-light",
2366
+ displayName: "Min Light",
2367
+ type: "light",
2368
+ import: (() => import("./min-light-CKFxVcPp.js"))
2369
+ },
2370
+ {
2371
+ id: "monokai",
2372
+ displayName: "Monokai",
2373
+ type: "dark",
2374
+ import: (() => import("./monokai-C1KBYcO0.js"))
2375
+ },
2376
+ {
2377
+ id: "night-owl",
2378
+ displayName: "Night Owl",
2379
+ type: "dark",
2380
+ import: (() => import("./night-owl-Bm2rzalh.js"))
2381
+ },
2382
+ {
2383
+ id: "night-owl-light",
2384
+ displayName: "Night Owl Light",
2385
+ type: "light",
2386
+ import: (() => import("./night-owl-light-CBI5u5kw.js"))
2387
+ },
2388
+ {
2389
+ id: "nord",
2390
+ displayName: "Nord",
2391
+ type: "dark",
2392
+ import: (() => import("./nord-CC5OiUXg.js"))
2393
+ },
2394
+ {
2395
+ id: "one-dark-pro",
2396
+ displayName: "One Dark Pro",
2397
+ type: "dark",
2398
+ import: (() => import("./one-dark-pro-DTA3VF0_.js"))
2399
+ },
2400
+ {
2401
+ id: "one-light",
2402
+ displayName: "One Light",
2403
+ type: "light",
2404
+ import: (() => import("./one-light-LkMrt1Cf.js"))
2405
+ },
2406
+ {
2407
+ id: "plastic",
2408
+ displayName: "Plastic",
2409
+ type: "dark",
2410
+ import: (() => import("./plastic-CSTz3KZp.js"))
2411
+ },
2412
+ {
2413
+ id: "poimandres",
2414
+ displayName: "Poimandres",
2415
+ type: "dark",
2416
+ import: (() => import("./poimandres-C-VADXHD.js"))
2417
+ },
2418
+ {
2419
+ id: "red",
2420
+ displayName: "Red",
2421
+ type: "dark",
2422
+ import: (() => import("./red-7y8PH7HH.js"))
2423
+ },
2424
+ {
2425
+ id: "rose-pine",
2426
+ displayName: "Rosé Pine",
2427
+ type: "dark",
2428
+ import: (() => import("./rose-pine-BKc3yVeu.js"))
2429
+ },
2430
+ {
2431
+ id: "rose-pine-dawn",
2432
+ displayName: "Rosé Pine Dawn",
2433
+ type: "light",
2434
+ import: (() => import("./rose-pine-dawn-BulJcPZT.js"))
2435
+ },
2436
+ {
2437
+ id: "rose-pine-moon",
2438
+ displayName: "Rosé Pine Moon",
2439
+ type: "dark",
2440
+ import: (() => import("./rose-pine-moon-j6jiXKV8.js"))
2441
+ },
2442
+ {
2443
+ id: "slack-dark",
2444
+ displayName: "Slack Dark",
2445
+ type: "dark",
2446
+ import: (() => import("./slack-dark-i7wN4OET.js"))
2447
+ },
2448
+ {
2449
+ id: "slack-ochin",
2450
+ displayName: "Slack Ochin",
2451
+ type: "light",
2452
+ import: (() => import("./slack-ochin-ndHf0LoP.js"))
2453
+ },
2454
+ {
2455
+ id: "snazzy-light",
2456
+ displayName: "Snazzy Light",
2457
+ type: "light",
2458
+ import: (() => import("./snazzy-light-BlSJXAu4.js"))
2459
+ },
2460
+ {
2461
+ id: "solarized-dark",
2462
+ displayName: "Solarized Dark",
2463
+ type: "dark",
2464
+ import: (() => import("./solarized-dark-UTmkh7lw.js"))
2465
+ },
2466
+ {
2467
+ id: "solarized-light",
2468
+ displayName: "Solarized Light",
2469
+ type: "light",
2470
+ import: (() => import("./solarized-light-BheCkDPT.js"))
2471
+ },
2472
+ {
2473
+ id: "synthwave-84",
2474
+ displayName: "Synthwave '84",
2475
+ type: "dark",
2476
+ import: (() => import("./synthwave-84-NU3C_KFZ.js"))
2477
+ },
2478
+ {
2479
+ id: "tokyo-night",
2480
+ displayName: "Tokyo Night",
2481
+ type: "dark",
2482
+ import: (() => import("./tokyo-night-DP4TmcQl.js"))
2483
+ },
2484
+ {
2485
+ id: "vesper",
2486
+ displayName: "Vesper",
2487
+ type: "dark",
2488
+ import: (() => import("./vesper-BckBta1U.js"))
2489
+ },
2490
+ {
2491
+ id: "vitesse-black",
2492
+ displayName: "Vitesse Black",
2493
+ type: "dark",
2494
+ import: (() => import("./vitesse-black-BoGvW84i.js"))
2495
+ },
2496
+ {
2497
+ id: "vitesse-dark",
2498
+ displayName: "Vitesse Dark",
2499
+ type: "dark",
2500
+ import: (() => import("./vitesse-dark-Cym-eLtO.js"))
2501
+ },
2502
+ {
2503
+ id: "vitesse-light",
2504
+ displayName: "Vitesse Light",
2505
+ type: "light",
2506
+ import: (() => import("./vitesse-light-CcmG315c.js"))
2507
+ }
2508
+ ], jn = Object.fromEntries(Pn.map((e) => [e.id, e.import])), Ye = [
2509
+ {
2510
+ id: "angular-html",
2511
+ name: "Angular HTML",
2512
+ import: (() => import("./angular-html-dA1qUKRV.js").then((e) => e.f))
2513
+ },
2514
+ {
2515
+ id: "angular-ts",
2516
+ name: "Angular TypeScript",
2517
+ import: (() => import("./angular-ts-CXyBC0vY.js"))
2518
+ },
2519
+ {
2520
+ id: "astro",
2521
+ name: "Astro",
2522
+ import: (() => import("./astro--3ZkKqYU.js"))
2523
+ },
2524
+ {
2525
+ id: "blade",
2526
+ name: "Blade",
2527
+ import: (() => import("./blade-BoRuQEEj.js"))
2528
+ },
2529
+ {
2530
+ id: "c",
2531
+ name: "C",
2532
+ import: (() => import("./c-eeMepfLm.js"))
2533
+ },
2534
+ {
2535
+ id: "coffee",
2536
+ name: "CoffeeScript",
2537
+ aliases: ["coffeescript"],
2538
+ import: (() => import("./coffee-DGBR_nr_.js"))
2539
+ },
2540
+ {
2541
+ id: "cpp",
2542
+ name: "C++",
2543
+ aliases: ["c++"],
2544
+ import: (() => import("./cpp-Cj177cuW.js"))
2545
+ },
2546
+ {
2547
+ id: "css",
2548
+ name: "CSS",
2549
+ import: (() => import("./css-M7EaDHN_.js"))
2550
+ },
2551
+ {
2552
+ id: "csv",
2553
+ name: "CSV",
2554
+ import: (() => import("./csv-CmYOceLb.js"))
2555
+ },
2556
+ {
2557
+ id: "glsl",
2558
+ name: "GLSL",
2559
+ import: (() => import("./glsl-CkUcVZNK.js"))
2560
+ },
2561
+ {
2562
+ id: "graphql",
2563
+ name: "GraphQL",
2564
+ aliases: ["gql"],
2565
+ import: (() => import("./graphql-CBu2ehBn.js"))
2566
+ },
2567
+ {
2568
+ id: "haml",
2569
+ name: "Ruby Haml",
2570
+ import: (() => import("./haml-B1t5q1Sv.js"))
2571
+ },
2572
+ {
2573
+ id: "handlebars",
2574
+ name: "Handlebars",
2575
+ aliases: ["hbs"],
2576
+ import: (() => import("./handlebars-B2fb61mr.js"))
2577
+ },
2578
+ {
2579
+ id: "html",
2580
+ name: "HTML",
2581
+ import: (() => import("./html-CPZ3oZQ7.js"))
2582
+ },
2583
+ {
2584
+ id: "html-derivative",
2585
+ name: "HTML (Derivative)",
2586
+ import: (() => import("./html-derivative-B2qv7eyt.js"))
2587
+ },
2588
+ {
2589
+ id: "http",
2590
+ name: "HTTP",
2591
+ import: (() => import("./http-DLvAkeD-.js"))
2592
+ },
2593
+ {
2594
+ id: "hurl",
2595
+ name: "Hurl",
2596
+ import: (() => import("./hurl-CgkFN90t.js"))
2597
+ },
2598
+ {
2599
+ id: "imba",
2600
+ name: "Imba",
2601
+ import: (() => import("./imba-CimUv-Uh.js"))
2602
+ },
2603
+ {
2604
+ id: "java",
2605
+ name: "Java",
2606
+ import: (() => import("./java-DY6VlHhP.js"))
2607
+ },
2608
+ {
2609
+ id: "javascript",
2610
+ name: "JavaScript",
2611
+ aliases: [
2612
+ "js",
2613
+ "cjs",
2614
+ "mjs"
2615
+ ],
2616
+ import: (() => import("./javascript-C25yR2R2.js"))
2617
+ },
2618
+ {
2619
+ id: "jinja",
2620
+ name: "Jinja",
2621
+ import: (() => import("./jinja-DFCUirAg.js"))
2622
+ },
2623
+ {
2624
+ id: "jison",
2625
+ name: "Jison",
2626
+ import: (() => import("./jison-DdreslRX.js"))
2627
+ },
2628
+ {
2629
+ id: "json",
2630
+ name: "JSON",
2631
+ import: (() => import("./json-DxJze_jm.js"))
2632
+ },
2633
+ {
2634
+ id: "json5",
2635
+ name: "JSON5",
2636
+ import: (() => import("./json5-BT4Fjg39.js"))
2637
+ },
2638
+ {
2639
+ id: "jsonc",
2640
+ name: "JSON with Comments",
2641
+ import: (() => import("./jsonc-CHjZD8gR.js"))
2642
+ },
2643
+ {
2644
+ id: "jsonl",
2645
+ name: "JSON Lines",
2646
+ import: (() => import("./jsonl-BGuvDmy9.js"))
2647
+ },
2648
+ {
2649
+ id: "jsx",
2650
+ name: "JSX",
2651
+ import: (() => import("./jsx-BtKADgXT.js"))
2652
+ },
2653
+ {
2654
+ id: "julia",
2655
+ name: "Julia",
2656
+ aliases: ["jl"],
2657
+ import: (() => import("./julia-CZiKXNNP.js"))
2658
+ },
2659
+ {
2660
+ id: "less",
2661
+ name: "Less",
2662
+ import: (() => import("./less-B1GLI2Di.js"))
2663
+ },
2664
+ {
2665
+ id: "markdown",
2666
+ name: "Markdown",
2667
+ aliases: ["md"],
2668
+ import: (() => import("./markdown-CrScaQ96.js"))
2669
+ },
2670
+ {
2671
+ id: "marko",
2672
+ name: "Marko",
2673
+ import: (() => import("./marko-BlmC3dqW.js"))
2674
+ },
2675
+ {
2676
+ id: "mdc",
2677
+ name: "MDC",
2678
+ import: (() => import("./mdc-CLNk3q28.js"))
2679
+ },
2680
+ {
2681
+ id: "mdx",
2682
+ name: "MDX",
2683
+ import: (() => import("./mdx-BOhZZUJ8.js"))
2684
+ },
2685
+ {
2686
+ id: "php",
2687
+ name: "PHP",
2688
+ import: (() => import("./php-Kn-vgdBD.js"))
2689
+ },
2690
+ {
2691
+ id: "postcss",
2692
+ name: "PostCSS",
2693
+ import: (() => import("./postcss-05aHdL-n.js"))
2694
+ },
2695
+ {
2696
+ id: "pug",
2697
+ name: "Pug",
2698
+ aliases: ["jade"],
2699
+ import: (() => import("./pug-CTOOvSEH.js"))
2700
+ },
2701
+ {
2702
+ id: "python",
2703
+ name: "Python",
2704
+ aliases: ["py"],
2705
+ import: (() => import("./python-BFNSHbwJ.js"))
2706
+ },
2707
+ {
2708
+ id: "r",
2709
+ name: "R",
2710
+ import: (() => import("./r-CSmzDPi7.js"))
2711
+ },
2712
+ {
2713
+ id: "regexp",
2714
+ name: "RegExp",
2715
+ aliases: ["regex"],
2716
+ import: (() => import("./regexp-BazyLpPg.js"))
2717
+ },
2718
+ {
2719
+ id: "sass",
2720
+ name: "Sass",
2721
+ import: (() => import("./sass-DxHp5rTx.js"))
2722
+ },
2723
+ {
2724
+ id: "scss",
2725
+ name: "SCSS",
2726
+ import: (() => import("./scss-BZYVIVaN.js"))
2727
+ },
2728
+ {
2729
+ id: "shellscript",
2730
+ name: "Shell",
2731
+ aliases: [
2732
+ "bash",
2733
+ "sh",
2734
+ "shell",
2735
+ "zsh"
2736
+ ],
2737
+ import: (() => import("./shellscript-InADTalH.js"))
2738
+ },
2739
+ {
2740
+ id: "sql",
2741
+ name: "SQL",
2742
+ import: (() => import("./sql-Cn_v3PB0.js"))
2743
+ },
2744
+ {
2745
+ id: "stylus",
2746
+ name: "Stylus",
2747
+ aliases: ["styl"],
2748
+ import: (() => import("./stylus-CyKEU1Ej.js"))
2749
+ },
2750
+ {
2751
+ id: "svelte",
2752
+ name: "Svelte",
2753
+ import: (() => import("./svelte-b9PAcyUe.js"))
2754
+ },
2755
+ {
2756
+ id: "ts-tags",
2757
+ name: "TypeScript with Tags",
2758
+ aliases: ["lit"],
2759
+ import: (() => import("./ts-tags-CP1b-4Z2.js"))
2760
+ },
2761
+ {
2762
+ id: "tsx",
2763
+ name: "TSX",
2764
+ import: (() => import("./tsx-B8rCNbgL.js"))
2765
+ },
2766
+ {
2767
+ id: "typescript",
2768
+ name: "TypeScript",
2769
+ aliases: [
2770
+ "ts",
2771
+ "cts",
2772
+ "mts"
2773
+ ],
2774
+ import: (() => import("./typescript-RycA9KXf.js"))
2775
+ },
2776
+ {
2777
+ id: "vue",
2778
+ name: "Vue",
2779
+ import: (() => import("./vue-CY6W2ID0.js"))
2780
+ },
2781
+ {
2782
+ id: "vue-html",
2783
+ name: "Vue HTML",
2784
+ import: (() => import("./vue-html-j9xNEdu3.js"))
2785
+ },
2786
+ {
2787
+ id: "vue-vine",
2788
+ name: "Vue Vine",
2789
+ import: (() => import("./vue-vine-DiWTpMwZ.js"))
2790
+ },
2791
+ {
2792
+ id: "wasm",
2793
+ name: "WebAssembly",
2794
+ import: (() => import("./wasm-BBXxrAl7.js"))
2795
+ },
2796
+ {
2797
+ id: "wgsl",
2798
+ name: "WGSL",
2799
+ import: (() => import("./wgsl-DY4iK1q1.js"))
2800
+ },
2801
+ {
2802
+ id: "wit",
2803
+ name: "WebAssembly Interface Types",
2804
+ import: (() => import("./wit-CQMQOlTg.js"))
2805
+ },
2806
+ {
2807
+ id: "xml",
2808
+ name: "XML",
2809
+ import: (() => import("./xml-C2J0sS9M.js"))
2810
+ },
2811
+ {
2812
+ id: "yaml",
2813
+ name: "YAML",
2814
+ aliases: ["yml"],
2815
+ import: (() => import("./yaml-DaO7k5B1.js"))
2816
+ }
2817
+ ], En = Object.fromEntries(Ye.map((e) => [e.id, e.import])), $n = Object.fromEntries(Ye.flatMap((e) => e.aliases?.map((t) => [t, e.import]) || [])), qe = {
2818
+ ...En,
2819
+ ...$n
2820
+ }, Hn = /* @__PURE__ */ Xt({
2821
+ langs: qe,
2822
+ themes: jn,
2823
+ engine: () => (0, Ke.createOnigurumaEngine)(import("./wasm-DQxwEHae.js"))
2824
+ }), { getSingletonHighlighter: Bn } = /* @__PURE__ */ Zt(Hn, { guessEmbeddedLanguages: Ue });
2825
+ async function In(e, t, n) {
2826
+ const r = e.filter(
2827
+ (i) => nn(i, qe)
2828
+ );
2829
+ return await Bn({
2830
+ langs: r,
2831
+ themes: t,
2832
+ engine: n ?? Je(import("./wasm-DQxwEHae.js"))
2833
+ });
2834
+ }
2835
+ var Dn = (e, t, n, r = {}) => un(
2836
+ e,
2837
+ t,
2838
+ n,
2839
+ r,
2840
+ In
2841
+ ), Un = hn(
2842
+ Dn
2843
+ ), Vn = Un;
2844
+ export {
2845
+ Vn as w
2846
+ };