@aquera/nile-elements 0.0.96 → 0.0.97

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 (265) hide show
  1. package/README.md +5 -0
  2. package/demo/filenames.txt +1 -1
  3. package/demo/variables.css +5 -0
  4. package/demo/variables_v2.css +3 -0
  5. package/dist/{angular-ts-a95c67aa.cjs.js → angular-ts-8eef275b.cjs.js} +2 -2
  6. package/dist/{angular-ts-a95c67aa.cjs.js.map → angular-ts-8eef275b.cjs.js.map} +1 -1
  7. package/dist/{asciidoc-b8046ce8.esm.js → asciidoc-45b24fbf.esm.js} +1 -1
  8. package/dist/{asciidoc-c0ae04c3.cjs.js → asciidoc-d9a554a9.cjs.js} +2 -2
  9. package/dist/{asciidoc-c0ae04c3.cjs.js.map → asciidoc-d9a554a9.cjs.js.map} +1 -1
  10. package/dist/coq-112048d4.cjs.js +2 -0
  11. package/dist/coq-112048d4.cjs.js.map +1 -0
  12. package/dist/coq-2b59f292.esm.js +1 -0
  13. package/dist/{edge-f122fee4.cjs.js → edge-117795ef.cjs.js} +2 -2
  14. package/dist/{edge-f122fee4.cjs.js.map → edge-117795ef.cjs.js.map} +1 -1
  15. package/dist/{fortran-fixed-form-48ce1631.cjs.js → fortran-fixed-form-04eb2c2b.cjs.js} +2 -2
  16. package/dist/{fortran-fixed-form-48ce1631.cjs.js.map → fortran-fixed-form-04eb2c2b.cjs.js.map} +1 -1
  17. package/dist/{fsharp-9f65d045.cjs.js → fsharp-b73adc59.cjs.js} +2 -2
  18. package/dist/{fsharp-9f65d045.cjs.js.map → fsharp-b73adc59.cjs.js.map} +1 -1
  19. package/dist/{gdresource-f69c4269.cjs.js → gdresource-165d80c9.cjs.js} +2 -2
  20. package/dist/{gdresource-f69c4269.cjs.js.map → gdresource-165d80c9.cjs.js.map} +1 -1
  21. package/dist/github-dark-high-contrast-7b0d7429.cjs.js +2 -0
  22. package/dist/github-dark-high-contrast-7b0d7429.cjs.js.map +1 -0
  23. package/dist/github-dark-high-contrast-bf87cfb0.esm.js +1 -0
  24. package/dist/github-light-high-contrast-3683d923.esm.js +1 -0
  25. package/dist/github-light-high-contrast-caee8ed6.cjs.js +2 -0
  26. package/dist/github-light-high-contrast-caee8ed6.cjs.js.map +1 -0
  27. package/dist/gleam-69ca4750.cjs.js +2 -0
  28. package/dist/gleam-69ca4750.cjs.js.map +1 -0
  29. package/dist/gleam-79f887fd.esm.js +1 -0
  30. package/dist/{haml-a62722ee.cjs.js → haml-bdfaf5bf.cjs.js} +2 -2
  31. package/dist/{haml-a62722ee.cjs.js.map → haml-bdfaf5bf.cjs.js.map} +1 -1
  32. package/dist/{http-243ce707.cjs.js → http-bdc26351.cjs.js} +2 -2
  33. package/dist/{http-243ce707.cjs.js.map → http-bdc26351.cjs.js.map} +1 -1
  34. package/dist/{hxml-36e954b2.cjs.js → hxml-ec409b05.cjs.js} +2 -2
  35. package/dist/{hxml-36e954b2.cjs.js.map → hxml-ec409b05.cjs.js.map} +1 -1
  36. package/dist/index.cjs.js +1 -1
  37. package/dist/index.esm.js +1 -1
  38. package/dist/{latex-1732805a.cjs.js → latex-13abd118.cjs.js} +2 -2
  39. package/dist/{latex-1732805a.cjs.js.map → latex-13abd118.cjs.js.map} +1 -1
  40. package/dist/{mdc-a3ab9285.cjs.js → mdc-31e30669.cjs.js} +2 -2
  41. package/dist/{mdc-a3ab9285.cjs.js.map → mdc-31e30669.cjs.js.map} +1 -1
  42. package/dist/nile-badge/index.cjs.js +1 -1
  43. package/dist/nile-badge/index.esm.js +1 -1
  44. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  45. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  46. package/dist/nile-badge/nile-badge.esm.js +1 -1
  47. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  48. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  49. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  50. package/dist/nile-button/index.cjs.js +1 -1
  51. package/dist/nile-button/index.esm.js +1 -1
  52. package/dist/nile-button/nile-button.cjs.js +1 -1
  53. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  54. package/dist/nile-button/nile-button.esm.js +1 -1
  55. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  56. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  57. package/dist/nile-button/nile-button.test.esm.js +1 -1
  58. package/dist/nile-calendar/index.cjs.js +1 -1
  59. package/dist/nile-calendar/index.esm.js +1 -1
  60. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  61. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  62. package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
  63. package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
  64. package/dist/nile-calendar/nile-calendar.css.esm.js +0 -5
  65. package/dist/nile-calendar/nile-calendar.esm.js +51 -53
  66. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  67. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  68. package/dist/nile-chip/nile-chip.esm.js +1 -1
  69. package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
  70. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
  71. package/dist/nile-date-picker/nile-date-picker.css.cjs.js +1 -1
  72. package/dist/nile-date-picker/nile-date-picker.css.cjs.js.map +1 -1
  73. package/dist/nile-date-picker/nile-date-picker.css.esm.js +6 -2
  74. package/dist/nile-date-picker/nile-date-picker.esm.js +6 -6
  75. package/dist/nile-dialog/index.cjs.js +1 -1
  76. package/dist/nile-dialog/index.esm.js +1 -1
  77. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  78. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  79. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  80. package/dist/nile-drawer/index.cjs.js +1 -1
  81. package/dist/nile-drawer/index.esm.js +1 -1
  82. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  83. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  84. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  85. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  86. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  87. package/dist/nile-drawer/nile-drawer.test.esm.js +7 -7
  88. package/dist/nile-highlighter/nile-highlighter.cjs.js +1 -1
  89. package/dist/nile-highlighter/nile-highlighter.cjs.js.map +1 -1
  90. package/dist/nile-highlighter/nile-highlighter.esm.js +1 -1
  91. package/dist/nile-icon/icons/svg/compare.cjs.js +2 -0
  92. package/dist/nile-icon/icons/svg/compare.cjs.js.map +1 -0
  93. package/dist/nile-icon/icons/svg/compare.esm.js +1 -0
  94. package/dist/nile-icon/icons/svg/dock-to-right.cjs.js +2 -0
  95. package/dist/nile-icon/icons/svg/dock-to-right.cjs.js.map +1 -0
  96. package/dist/nile-icon/icons/svg/dock-to-right.esm.js +1 -0
  97. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  98. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  99. package/dist/nile-icon/index.cjs.js +1 -1
  100. package/dist/nile-icon/index.cjs.js.map +1 -1
  101. package/dist/nile-icon/index.esm.js +1 -1
  102. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  103. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  104. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  105. package/dist/nile-icon-button/index.cjs.js +1 -1
  106. package/dist/nile-icon-button/index.esm.js +1 -1
  107. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  108. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  109. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  110. package/dist/nile-inline-edit/index.cjs.js +2 -0
  111. package/dist/nile-inline-edit/index.cjs.js.map +1 -0
  112. package/dist/nile-inline-edit/index.esm.js +1 -0
  113. package/dist/nile-inline-edit/nile-inline-edit.cjs.js +2 -0
  114. package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -0
  115. package/dist/nile-inline-edit/nile-inline-edit.css.cjs.js +2 -0
  116. package/dist/nile-inline-edit/nile-inline-edit.css.cjs.js.map +1 -0
  117. package/dist/nile-inline-edit/nile-inline-edit.css.esm.js +42 -0
  118. package/dist/nile-inline-edit/nile-inline-edit.esm.js +6 -0
  119. package/dist/nile-input/index.cjs.js +1 -1
  120. package/dist/nile-input/index.esm.js +1 -1
  121. package/dist/nile-input/nile-input.cjs.js +1 -1
  122. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  123. package/dist/nile-input/nile-input.esm.js +1 -1
  124. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  125. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  126. package/dist/nile-input/nile-input.test.esm.js +1 -1
  127. package/dist/nile-menu-item/index.cjs.js +1 -1
  128. package/dist/nile-menu-item/index.esm.js +1 -1
  129. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  130. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  131. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  132. package/dist/nile-option/index.cjs.js +1 -1
  133. package/dist/nile-option/index.esm.js +1 -1
  134. package/dist/nile-option/nile-option.cjs.js +1 -1
  135. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  136. package/dist/nile-option/nile-option.esm.js +1 -1
  137. package/dist/nile-select/index.cjs.js +1 -1
  138. package/dist/nile-select/index.esm.js +1 -1
  139. package/dist/nile-select/nile-select.cjs.js +1 -1
  140. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  141. package/dist/nile-select/nile-select.esm.js +1 -1
  142. package/dist/nile-tab/index.cjs.js +1 -1
  143. package/dist/nile-tab/index.esm.js +1 -1
  144. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  145. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  146. package/dist/nile-tab/nile-tab.esm.js +1 -1
  147. package/dist/nile-tab-group/index.cjs.js +1 -1
  148. package/dist/nile-tab-group/index.esm.js +1 -1
  149. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  150. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  151. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  152. package/dist/nile-tag/index.cjs.js +1 -1
  153. package/dist/nile-tag/index.esm.js +1 -1
  154. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  155. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  156. package/dist/nile-tag/nile-tag.esm.js +1 -1
  157. package/dist/nile-toast/index.cjs.js +1 -1
  158. package/dist/nile-toast/index.esm.js +1 -1
  159. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  160. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  161. package/dist/nile-toast/nile-toast.esm.js +1 -1
  162. package/dist/nile-tree/index.cjs.js +1 -1
  163. package/dist/nile-tree/index.esm.js +1 -1
  164. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  165. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  166. package/dist/nile-tree/nile-tree.esm.js +1 -1
  167. package/dist/nile-tree-item/index.cjs.js +1 -1
  168. package/dist/nile-tree-item/index.esm.js +1 -1
  169. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  170. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  171. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  172. package/dist/{nim-df5f9efe.cjs.js → nim-175a1e94.cjs.js} +2 -2
  173. package/dist/{nim-df5f9efe.cjs.js.map → nim-175a1e94.cjs.js.map} +1 -1
  174. package/dist/{proto-11466e41.esm.js → proto-7cb7fd99.esm.js} +1 -1
  175. package/dist/{proto-bdf8f839.cjs.js → proto-c0d38a59.cjs.js} +2 -2
  176. package/dist/{proto-bdf8f839.cjs.js.map → proto-c0d38a59.cjs.js.map} +1 -1
  177. package/dist/{rst-64e995dc.cjs.js → rst-939eae95.cjs.js} +2 -2
  178. package/dist/{rst-64e995dc.cjs.js.map → rst-939eae95.cjs.js.map} +1 -1
  179. package/dist/{shaderlab-8f7349ac.cjs.js → shaderlab-f1b8150d.cjs.js} +2 -2
  180. package/dist/{shaderlab-8f7349ac.cjs.js.map → shaderlab-f1b8150d.cjs.js.map} +1 -1
  181. package/dist/{sparql-cd3386f5.cjs.js → sparql-fa708d4c.cjs.js} +2 -2
  182. package/dist/{sparql-cd3386f5.cjs.js.map → sparql-fa708d4c.cjs.js.map} +1 -1
  183. package/dist/src/index.d.ts +1 -0
  184. package/dist/src/index.js +1 -0
  185. package/dist/src/index.js.map +1 -1
  186. package/dist/src/nile-calendar/nile-calendar.css.js +0 -5
  187. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  188. package/dist/src/nile-calendar/nile-calendar.d.ts +94 -56
  189. package/dist/src/nile-calendar/nile-calendar.js +465 -490
  190. package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
  191. package/dist/src/nile-chip/nile-chip.js +2 -2
  192. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  193. package/dist/src/nile-date-picker/nile-date-picker.css.js +4 -0
  194. package/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -1
  195. package/dist/src/nile-date-picker/nile-date-picker.js +7 -6
  196. package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
  197. package/dist/src/nile-icon/icons/svg/compare.d.ts +5 -0
  198. package/dist/src/nile-icon/icons/svg/compare.js +5 -0
  199. package/dist/src/nile-icon/icons/svg/compare.js.map +1 -0
  200. package/dist/src/nile-icon/icons/svg/dock-to-right.d.ts +5 -0
  201. package/dist/src/nile-icon/icons/svg/dock-to-right.js +5 -0
  202. package/dist/src/nile-icon/icons/svg/dock-to-right.js.map +1 -0
  203. package/dist/src/nile-icon/icons/svg/index.d.ts +2 -0
  204. package/dist/src/nile-icon/icons/svg/index.js +2 -0
  205. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  206. package/dist/src/nile-inline-edit/index.d.ts +1 -0
  207. package/dist/src/nile-inline-edit/index.js +2 -0
  208. package/dist/src/nile-inline-edit/index.js.map +1 -0
  209. package/dist/src/nile-inline-edit/nile-inline-edit.css.d.ts +12 -0
  210. package/dist/src/nile-inline-edit/nile-inline-edit.css.js +54 -0
  211. package/dist/src/nile-inline-edit/nile-inline-edit.css.js.map +1 -0
  212. package/dist/src/nile-inline-edit/nile-inline-edit.d.ts +41 -0
  213. package/dist/src/nile-inline-edit/nile-inline-edit.js +76 -0
  214. package/dist/src/nile-inline-edit/nile-inline-edit.js.map +1 -0
  215. package/dist/{svelte-eaee6dea.cjs.js → svelte-1c9200e6.cjs.js} +2 -2
  216. package/dist/{svelte-eaee6dea.cjs.js.map → svelte-1c9200e6.cjs.js.map} +1 -1
  217. package/dist/tsconfig.tsbuildinfo +1 -1
  218. package/dist/{twig-ef3a2f8e.cjs.js → twig-e82a0f10.cjs.js} +2 -2
  219. package/dist/{twig-ef3a2f8e.cjs.js.map → twig-e82a0f10.cjs.js.map} +1 -1
  220. package/dist/{typespec-2408a2c5.esm.js → typespec-5b65452b.esm.js} +1 -1
  221. package/dist/{typespec-df7168c5.cjs.js → typespec-5f9c7522.cjs.js} +2 -2
  222. package/dist/{typespec-df7168c5.cjs.js.map → typespec-5f9c7522.cjs.js.map} +1 -1
  223. package/dist/vitesse-black-02f9013c.esm.js +1 -0
  224. package/dist/vitesse-black-c8b0af08.cjs.js +2 -0
  225. package/dist/vitesse-black-c8b0af08.cjs.js.map +1 -0
  226. package/dist/vitesse-dark-362560d8.esm.js +1 -0
  227. package/dist/vitesse-dark-4d62a96c.cjs.js +2 -0
  228. package/dist/vitesse-dark-4d62a96c.cjs.js.map +1 -0
  229. package/dist/vitesse-light-64c34e5b.esm.js +1 -0
  230. package/dist/vitesse-light-c347b81b.cjs.js +2 -0
  231. package/dist/vitesse-light-c347b81b.cjs.js.map +1 -0
  232. package/dist/{vue-711d75a4.esm.js → vue-8a11ba51.esm.js} +1 -1
  233. package/dist/{vue-d4c63178.cjs.js → vue-ec02ac11.cjs.js} +2 -2
  234. package/dist/{vue-d4c63178.cjs.js.map → vue-ec02ac11.cjs.js.map} +1 -1
  235. package/dist/{vue-html-b805e078.esm.js → vue-html-223d6d0d.esm.js} +1 -1
  236. package/dist/{vue-html-13711be2.cjs.js → vue-html-39fa1a8f.cjs.js} +2 -2
  237. package/dist/{vue-html-13711be2.cjs.js.map → vue-html-39fa1a8f.cjs.js.map} +1 -1
  238. package/dist/{wikitext-724303c6.esm.js → wikitext-194e2520.esm.js} +1 -1
  239. package/dist/{wikitext-d4ad7e43.cjs.js → wikitext-f8506da8.cjs.js} +2 -2
  240. package/dist/{wikitext-d4ad7e43.cjs.js.map → wikitext-f8506da8.cjs.js.map} +1 -1
  241. package/package.json +4 -3
  242. package/src/index.ts +2 -0
  243. package/src/nile-calendar/nile-calendar.css.ts +0 -5
  244. package/src/nile-calendar/nile-calendar.ts +481 -557
  245. package/src/nile-chip/nile-chip.ts +2 -2
  246. package/src/nile-date-picker/nile-date-picker.css.ts +4 -0
  247. package/src/nile-date-picker/nile-date-picker.ts +7 -7
  248. package/src/nile-icon/icons/svg/compare.ts +5 -0
  249. package/src/nile-icon/icons/svg/dock-to-right.ts +5 -0
  250. package/src/nile-icon/icons/svg/index.ts +2 -0
  251. package/src/nile-inline-edit/index.ts +1 -0
  252. package/src/nile-inline-edit/nile-inline-edit.css.ts +56 -0
  253. package/src/nile-inline-edit/nile-inline-edit.ts +80 -0
  254. package/dist/gleam-13d71b99.cjs.js +0 -2
  255. package/dist/gleam-13d71b99.cjs.js.map +0 -1
  256. package/dist/gleam-780849b8.esm.js +0 -1
  257. package/dist/vitesse-black-36f4f5ae.esm.js +0 -1
  258. package/dist/vitesse-black-8f7b8bf9.cjs.js +0 -2
  259. package/dist/vitesse-black-8f7b8bf9.cjs.js.map +0 -1
  260. package/dist/vitesse-dark-877d0b03.cjs.js +0 -2
  261. package/dist/vitesse-dark-877d0b03.cjs.js.map +0 -1
  262. package/dist/vitesse-dark-b177c06b.esm.js +0 -1
  263. package/dist/vitesse-light-1305bc40.esm.js +0 -1
  264. package/dist/vitesse-light-3f1d75bb.cjs.js +0 -2
  265. package/dist/vitesse-light-3f1d75bb.cjs.js.map +0 -1
@@ -1,3 +1,3 @@
1
- import{__decorate as t}from"tslib";import{x as e}from"../index-0a3007c5.esm.js";import{state as n,customElement as i}from"lit/decorators.js";import{s as r}from"./nile-highlighter.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";import{n as s}from"../property-09139d3c.esm.js";import"lit";const l=[{id:"abap",name:"ABAP",import:()=>import("../abap-2ef251fe.esm.js")},{id:"actionscript-3",name:"ActionScript",import:()=>import("../actionscript-3-9b143f19.esm.js")},{id:"ada",name:"Ada",import:()=>import("../ada-eb2c7f45.esm.js")},{id:"angular-html",name:"Angular HTML",import:()=>import("../angular-html-83bf04c8.esm.js").then((function(t){return t.f}))},{id:"angular-ts",name:"Angular TypeScript",import:()=>import("../angular-ts-9372a509.esm.js")},{id:"apache",name:"Apache Conf",import:()=>import("../apache-ff114010.esm.js")},{id:"apex",name:"Apex",import:()=>import("../apex-11727737.esm.js")},{id:"apl",name:"APL",import:()=>import("../apl-ceb7f746.esm.js")},{id:"applescript",name:"AppleScript",import:()=>import("../applescript-071acaac.esm.js")},{id:"ara",name:"Ara",import:()=>import("../ara-71dfd065.esm.js")},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>import("../asciidoc-b8046ce8.esm.js")},{id:"asm",name:"Assembly",import:()=>import("../asm-2a1204a6.esm.js")},{id:"astro",name:"Astro",import:()=>import("../astro-de938e80.esm.js")},{id:"awk",name:"AWK",import:()=>import("../awk-7b1f0d01.esm.js")},{id:"ballerina",name:"Ballerina",import:()=>import("../ballerina-293c7c4a.esm.js")},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>import("../bat-e43e2fa3.esm.js")},{id:"beancount",name:"Beancount",import:()=>import("../beancount-7cbf2cab.esm.js")},{id:"berry",name:"Berry",aliases:["be"],import:()=>import("../berry-75d2ee55.esm.js")},{id:"bibtex",name:"BibTeX",import:()=>import("../bibtex-1d977042.esm.js")},{id:"bicep",name:"Bicep",import:()=>import("../bicep-5e830f9b.esm.js")},{id:"blade",name:"Blade",import:()=>import("../blade-2264b2c2.esm.js")},{id:"c",name:"C",import:()=>import("../c-734959e1.esm.js")},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>import("../cadence-f374b5d9.esm.js")},{id:"clarity",name:"Clarity",import:()=>import("../clarity-a554063b.esm.js")},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>import("../clojure-ca057a9b.esm.js")},{id:"cmake",name:"CMake",import:()=>import("../cmake-6441f0dd.esm.js")},{id:"cobol",name:"COBOL",import:()=>import("../cobol-be2962c5.esm.js")},{id:"codeowners",name:"CODEOWNERS",import:()=>import("../codeowners-2c8e205d.esm.js")},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>import("../codeql-9deb9f5d.esm.js")},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>import("../coffee-c6466093.esm.js")},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>import("../common-lisp-f41c8864.esm.js")},{id:"cpp",name:"C++",aliases:["c++"],import:()=>import("../cpp-f55a9d05.esm.js")},{id:"crystal",name:"Crystal",import:()=>import("../crystal-5e351a7d.esm.js")},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>import("../csharp-f2426298.esm.js")},{id:"css",name:"CSS",import:()=>import("../css-a917ae01.esm.js")},{id:"csv",name:"CSV",import:()=>import("../csv-63a72bf6.esm.js")},{id:"cue",name:"CUE",import:()=>import("../cue-58aaec8f.esm.js")},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>import("../cypher-525eefc3.esm.js")},{id:"d",name:"D",import:()=>import("../d-52748f0a.esm.js")},{id:"dart",name:"Dart",import:()=>import("../dart-9b99c73f.esm.js")},{id:"dax",name:"DAX",import:()=>import("../dax-17b452e8.esm.js")},{id:"desktop",name:"Desktop",import:()=>import("../desktop-510a2947.esm.js")},{id:"diff",name:"Diff",import:()=>import("../diff-a772c67e.esm.js")},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>import("../docker-086ffca5.esm.js")},{id:"dotenv",name:"dotEnv",import:()=>import("../dotenv-2978380a.esm.js")},{id:"dream-maker",name:"Dream Maker",import:()=>import("../dream-maker-98780a71.esm.js")},{id:"edge",name:"Edge",import:()=>import("../edge-edf19358.esm.js")},{id:"elixir",name:"Elixir",import:()=>import("../elixir-cc7e389a.esm.js")},{id:"elm",name:"Elm",import:()=>import("../elm-874b6280.esm.js")},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>import("../emacs-lisp-976f6566.esm.js")},{id:"erb",name:"ERB",import:()=>import("../erb-baff1e72.esm.js")},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>import("../erlang-dd5f32ab.esm.js")},{id:"fennel",name:"Fennel",import:()=>import("../fennel-a9a5817d.esm.js")},{id:"fish",name:"Fish",import:()=>import("../fish-36e5559b.esm.js")},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>import("../fluent-d916023b.esm.js")},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>import("../fortran-fixed-form-e32b3142.esm.js")},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>import("../fortran-free-form-b64c941f.esm.js")},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>import("../fsharp-941d0410.esm.js")},{id:"gdresource",name:"GDResource",import:()=>import("../gdresource-a8db5728.esm.js")},{id:"gdscript",name:"GDScript",import:()=>import("../gdscript-2d04813a.esm.js")},{id:"gdshader",name:"GDShader",import:()=>import("../gdshader-adef3cb9.esm.js")},{id:"genie",name:"Genie",import:()=>import("../genie-e5022426.esm.js")},{id:"gherkin",name:"Gherkin",import:()=>import("../gherkin-38fbb737.esm.js")},{id:"git-commit",name:"Git Commit Message",import:()=>import("../git-commit-277814c1.esm.js")},{id:"git-rebase",name:"Git Rebase Message",import:()=>import("../git-rebase-a164f4f3.esm.js")},{id:"gleam",name:"Gleam",import:()=>import("../gleam-780849b8.esm.js")},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>import("../glimmer-js-cccbe40f.esm.js")},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>import("../glimmer-ts-521b2228.esm.js")},{id:"glsl",name:"GLSL",import:()=>import("../glsl-fc3df368.esm.js")},{id:"gnuplot",name:"Gnuplot",import:()=>import("../gnuplot-c85433fd.esm.js")},{id:"go",name:"Go",import:()=>import("../go-4f07a643.esm.js")},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>import("../graphql-8220c47b.esm.js")},{id:"groovy",name:"Groovy",import:()=>import("../groovy-a6837a0e.esm.js")},{id:"hack",name:"Hack",import:()=>import("../hack-293f8300.esm.js")},{id:"haml",name:"Ruby Haml",import:()=>import("../haml-2548eb67.esm.js")},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>import("../handlebars-4b3b8499.esm.js")},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>import("../haskell-4c421fe6.esm.js")},{id:"haxe",name:"Haxe",import:()=>import("../haxe-5ddba774.esm.js")},{id:"hcl",name:"HashiCorp HCL",import:()=>import("../hcl-a31e2e2a.esm.js")},{id:"hjson",name:"Hjson",import:()=>import("../hjson-938cc0c1.esm.js")},{id:"hlsl",name:"HLSL",import:()=>import("../hlsl-edec4f45.esm.js")},{id:"html",name:"HTML",import:()=>import("../html-02a4ff1c.esm.js")},{id:"html-derivative",name:"HTML (Derivative)",import:()=>import("../html-derivative-32350dd1.esm.js")},{id:"http",name:"HTTP",import:()=>import("../http-5eea627d.esm.js")},{id:"hxml",name:"HXML",import:()=>import("../hxml-0bc88b01.esm.js")},{id:"hy",name:"Hy",import:()=>import("../hy-541fc0fe.esm.js")},{id:"imba",name:"Imba",import:()=>import("../imba-3de6c65e.esm.js")},{id:"ini",name:"INI",aliases:["properties"],import:()=>import("../ini-42cfe2b2.esm.js")},{id:"java",name:"Java",import:()=>import("../java-f65b6ae0.esm.js")},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>import("../javascript-135b50c5.esm.js")},{id:"jinja",name:"Jinja",import:()=>import("../jinja-a441323f.esm.js")},{id:"jison",name:"Jison",import:()=>import("../jison-6b8399b9.esm.js")},{id:"json",name:"JSON",import:()=>import("../json-4a5fa3d0.esm.js")},{id:"json5",name:"JSON5",import:()=>import("../json5-c9bbf866.esm.js")},{id:"jsonc",name:"JSON with Comments",import:()=>import("../jsonc-f0f67551.esm.js")},{id:"jsonl",name:"JSON Lines",import:()=>import("../jsonl-58b92ec8.esm.js")},{id:"jsonnet",name:"Jsonnet",import:()=>import("../jsonnet-8da71b15.esm.js")},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>import("../jssm-1a42c1a0.esm.js")},{id:"jsx",name:"JSX",import:()=>import("../jsx-bd697c95.esm.js")},{id:"julia",name:"Julia",aliases:["jl"],import:()=>import("../julia-289248e3.esm.js")},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>import("../kotlin-9232cba2.esm.js")},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>import("../kusto-07203cec.esm.js")},{id:"latex",name:"LaTeX",import:()=>import("../latex-d31ca0af.esm.js")},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>import("../lean-05f837d6.esm.js")},{id:"less",name:"Less",import:()=>import("../less-263f5e43.esm.js")},{id:"liquid",name:"Liquid",import:()=>import("../liquid-c993ad48.esm.js")},{id:"log",name:"Log file",import:()=>import("../log-33a08973.esm.js")},{id:"logo",name:"Logo",import:()=>import("../logo-4193fe20.esm.js")},{id:"lua",name:"Lua",import:()=>import("../lua-25c4eb2e.esm.js")},{id:"luau",name:"Luau",import:()=>import("../luau-5ba2b962.esm.js")},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>import("../make-a26a0432.esm.js")},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>import("../markdown-75d773fc.esm.js")},{id:"marko",name:"Marko",import:()=>import("../marko-b0214c2c.esm.js")},{id:"matlab",name:"MATLAB",import:()=>import("../matlab-cf4f4486.esm.js")},{id:"mdc",name:"MDC",import:()=>import("../mdc-49e95e46.esm.js")},{id:"mdx",name:"MDX",import:()=>import("../mdx-361922df.esm.js")},{id:"mermaid",name:"Mermaid",import:()=>import("../mermaid-0aa9a240.esm.js")},{id:"mojo",name:"Mojo",import:()=>import("../mojo-1c43c50b.esm.js")},{id:"move",name:"Move",import:()=>import("../move-c24b00d7.esm.js")},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>import("../narrat-cb61b35a.esm.js")},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>import("../nextflow-f85a84cd.esm.js")},{id:"nginx",name:"Nginx",import:()=>import("../nginx-67dc121b.esm.js")},{id:"nim",name:"Nim",import:()=>import("../nim-36b64a7a.esm.js")},{id:"nix",name:"Nix",import:()=>import("../nix-901641e7.esm.js")},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>import("../nushell-5a232e75.esm.js")},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>import("../objective-c-2ef86a9a.esm.js")},{id:"objective-cpp",name:"Objective-C++",import:()=>import("../objective-cpp-d1e9bc90.esm.js")},{id:"ocaml",name:"OCaml",import:()=>import("../ocaml-c4db6d4c.esm.js")},{id:"pascal",name:"Pascal",import:()=>import("../pascal-95cf3080.esm.js")},{id:"perl",name:"Perl",import:()=>import("../perl-df7bca97.esm.js")},{id:"php",name:"PHP",import:()=>import("../php-8766a552.esm.js")},{id:"plsql",name:"PL/SQL",import:()=>import("../plsql-79e8273a.esm.js")},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>import("../po-b4d7f8b9.esm.js")},{id:"postcss",name:"PostCSS",import:()=>import("../postcss-06cbb9f8.esm.js")},{id:"powerquery",name:"PowerQuery",import:()=>import("../powerquery-1ee6802a.esm.js")},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>import("../powershell-85ccb665.esm.js")},{id:"prisma",name:"Prisma",import:()=>import("../prisma-d01c258b.esm.js")},{id:"prolog",name:"Prolog",import:()=>import("../prolog-2b081e53.esm.js")},{id:"proto",name:"Protocol Buffer 3",import:()=>import("../proto-11466e41.esm.js")},{id:"pug",name:"Pug",aliases:["jade"],import:()=>import("../pug-25742758.esm.js")},{id:"puppet",name:"Puppet",import:()=>import("../puppet-d0bd9ae5.esm.js")},{id:"purescript",name:"PureScript",import:()=>import("../purescript-7d4e7818.esm.js")},{id:"python",name:"Python",aliases:["py"],import:()=>import("../python-5fff859f.esm.js")},{id:"qml",name:"QML",import:()=>import("../qml-ab811562.esm.js")},{id:"qmldir",name:"QML Directory",import:()=>import("../qmldir-24b48c33.esm.js")},{id:"qss",name:"Qt Style Sheets",import:()=>import("../qss-e29728df.esm.js")},{id:"r",name:"R",import:()=>import("../r-5c773de0.esm.js")},{id:"racket",name:"Racket",import:()=>import("../racket-cb4f07f4.esm.js")},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>import("../raku-c5715ad9.esm.js")},{id:"razor",name:"ASP.NET Razor",import:()=>import("../razor-4e426344.esm.js")},{id:"reg",name:"Windows Registry Script",import:()=>import("../reg-267543d0.esm.js")},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>import("../regexp-1330402b.esm.js")},{id:"rel",name:"Rel",import:()=>import("../rel-b89b2814.esm.js")},{id:"riscv",name:"RISC-V",import:()=>import("../riscv-5ee76d2d.esm.js")},{id:"rst",name:"reStructuredText",import:()=>import("../rst-32451dee.esm.js")},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>import("../ruby-b8bcac40.esm.js")},{id:"rust",name:"Rust",aliases:["rs"],import:()=>import("../rust-34dcc560.esm.js")},{id:"sas",name:"SAS",import:()=>import("../sas-a63d17a8.esm.js")},{id:"sass",name:"Sass",import:()=>import("../sass-cfca6b84.esm.js")},{id:"scala",name:"Scala",import:()=>import("../scala-82429b85.esm.js")},{id:"scheme",name:"Scheme",import:()=>import("../scheme-b1f3c344.esm.js")},{id:"scss",name:"SCSS",import:()=>import("../scss-37dd9d2f.esm.js")},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>import("../shaderlab-0c978703.esm.js")},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>import("../shellscript-9a12df8f.esm.js")},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>import("../shellsession-a931a3f3.esm.js")},{id:"smalltalk",name:"Smalltalk",import:()=>import("../smalltalk-1ca92bf9.esm.js")},{id:"solidity",name:"Solidity",import:()=>import("../solidity-857fee54.esm.js")},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>import("../soy-63ee8cec.esm.js")},{id:"sparql",name:"SPARQL",import:()=>import("../sparql-aabd10e5.esm.js")},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>import("../splunk-724382a5.esm.js")},{id:"sql",name:"SQL",import:()=>import("../sql-1872dc46.esm.js")},{id:"ssh-config",name:"SSH Config",import:()=>import("../ssh-config-a7d5e234.esm.js")},{id:"stata",name:"Stata",import:()=>import("../stata-686bedfa.esm.js")},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>import("../stylus-9703d8d7.esm.js")},{id:"svelte",name:"Svelte",import:()=>import("../svelte-00ac1b62.esm.js")},{id:"swift",name:"Swift",import:()=>import("../swift-bd46f924.esm.js")},{id:"system-verilog",name:"SystemVerilog",import:()=>import("../system-verilog-fff413d1.esm.js")},{id:"systemd",name:"Systemd Units",import:()=>import("../systemd-c9ce059c.esm.js")},{id:"tasl",name:"Tasl",import:()=>import("../tasl-56981c00.esm.js")},{id:"tcl",name:"Tcl",import:()=>import("../tcl-4ce4ed7c.esm.js")},{id:"templ",name:"Templ",import:()=>import("../templ-7b16d4f0.esm.js")},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>import("../terraform-fb9eeb41.esm.js")},{id:"tex",name:"TeX",import:()=>import("../tex-2f58fc60.esm.js")},{id:"toml",name:"TOML",import:()=>import("../toml-46433230.esm.js")},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>import("../ts-tags-7b4b630f.esm.js")},{id:"tsv",name:"TSV",import:()=>import("../tsv-e2ae86b4.esm.js")},{id:"tsx",name:"TSX",import:()=>import("../tsx-108d8077.esm.js")},{id:"turtle",name:"Turtle",import:()=>import("../turtle-fc9dac1d.esm.js")},{id:"twig",name:"Twig",import:()=>import("../twig-25cabcad.esm.js")},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>import("../typescript-16547010.esm.js")},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>import("../typespec-2408a2c5.esm.js")},{id:"typst",name:"Typst",aliases:["typ"],import:()=>import("../typst-0f6bf426.esm.js")},{id:"v",name:"V",import:()=>import("../v-ffc36ee5.esm.js")},{id:"vala",name:"Vala",import:()=>import("../vala-233dc539.esm.js")},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>import("../vb-f1fcd8ac.esm.js")},{id:"verilog",name:"Verilog",import:()=>import("../verilog-6fcb9167.esm.js")},{id:"vhdl",name:"VHDL",import:()=>import("../vhdl-58f77ab7.esm.js")},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>import("../viml-ef675e87.esm.js")},{id:"vue",name:"Vue",import:()=>import("../vue-711d75a4.esm.js")},{id:"vue-html",name:"Vue HTML",import:()=>import("../vue-html-b805e078.esm.js")},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>import("../vyper-e3091092.esm.js")},{id:"wasm",name:"WebAssembly",import:()=>import("../wasm-639177f5.esm.js")},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>import("../wenyan-8d0469db.esm.js")},{id:"wgsl",name:"WGSL",import:()=>import("../wgsl-1f4a6566.esm.js")},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>import("../wikitext-724303c6.esm.js")},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>import("../wolfram-feda13d4.esm.js")},{id:"xml",name:"XML",import:()=>import("../xml-f29991a3.esm.js")},{id:"xsl",name:"XSL",import:()=>import("../xsl-742eedb7.esm.js")},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>import("../yaml-ac1a9738.esm.js")},{id:"zenscript",name:"ZenScript",import:()=>import("../zenscript-be6eb514.esm.js")},{id:"zig",name:"Zig",import:()=>import("../zig-215f1bfa.esm.js")}],a={...Object.fromEntries(l.map((t=>[t.id,t.import]))),...Object.fromEntries(l.flatMap((t=>t.aliases?.map((e=>[e,t.import]))||[])))},u=async t=>import("../wasm-ec34668d.esm.js").then((e=>e.default(t))),c=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>import("../andromeeda-5d950407.esm.js")},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>import("../aurora-x-ef4469d5.esm.js")},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>import("../ayu-dark-02c5eda5.esm.js")},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>import("../catppuccin-frappe-374da941.esm.js")},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>import("../catppuccin-latte-0443a123.esm.js")},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>import("../catppuccin-macchiato-f40edfee.esm.js")},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>import("../catppuccin-mocha-9325f879.esm.js")},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>import("../dark-plus-6e6fe59a.esm.js")},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>import("../dracula-2692338e.esm.js")},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>import("../dracula-soft-6693d958.esm.js")},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>import("../everforest-dark-c8bfaab7.esm.js")},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>import("../everforest-light-d4dc4485.esm.js")},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>import("../github-dark-fcfdd973.esm.js")},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>import("../github-dark-default-2a934605.esm.js")},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>import("../github-dark-dimmed-7180e6f5.esm.js")},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>import("../github-light-e7a28cff.esm.js")},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>import("../github-light-default-210b3eff.esm.js")},{id:"houston",displayName:"Houston",type:"dark",import:()=>import("../houston-c05ac28d.esm.js")},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>import("../laserwave-bf73c7ca.esm.js")},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>import("../light-plus-29d176d7.esm.js")},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>import("../material-theme-2eae845f.esm.js")},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>import("../material-theme-darker-8fa5687b.esm.js")},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>import("../material-theme-lighter-d8ffc3a3.esm.js")},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>import("../material-theme-ocean-015b70e7.esm.js")},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>import("../material-theme-palenight-bc1384ec.esm.js")},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>import("../min-dark-8505a270.esm.js")},{id:"min-light",displayName:"Min Light",type:"light",import:()=>import("../min-light-0666da1a.esm.js")},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>import("../monokai-6a66f188.esm.js")},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>import("../night-owl-29c1d219.esm.js")},{id:"nord",displayName:"Nord",type:"dark",import:()=>import("../nord-9b4df92f.esm.js")},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>import("../one-dark-pro-6ca8f674.esm.js")},{id:"one-light",displayName:"One Light",type:"light",import:()=>import("../one-light-14248a14.esm.js")},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>import("../poimandres-d61560a5.esm.js")},{id:"red",displayName:"Red",type:"dark",import:()=>import("../red-7842649b.esm.js")},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>import("../rose-pine-5671b666.esm.js")},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>import("../rose-pine-dawn-5f8448ab.esm.js")},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>import("../rose-pine-moon-f769c9d9.esm.js")},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>import("../slack-dark-61b35310.esm.js")},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>import("../slack-ochin-ceebc179.esm.js")},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>import("../snazzy-light-cf013f4c.esm.js")},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>import("../solarized-dark-e78ef35f.esm.js")},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>import("../solarized-light-069d7924.esm.js")},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>import("../synthwave-84-c91fabd4.esm.js")},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>import("../tokyo-night-ed39d8c0.esm.js")},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>import("../vesper-ca1042cf.esm.js")},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>import("../vitesse-black-36f4f5ae.esm.js")},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>import("../vitesse-dark-b177c06b.esm.js")},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>import("../vitesse-light-1305bc40.esm.js")}],m=Object.fromEntries(c.map((t=>[t.id,t.import])));var p,h;function d(t,e){const n=[],i=function(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const i=n[0];return n=e.exec(t),i}}}(t);let r=i.next();for(;null!==r;){let t=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":t=1;break;case"L":t=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=i.next()}let e=s();if(n.push({matcher:e,priority:t}),","!==r)break;r=i.next()}return n;function o(){if("-"===r){r=i.next();const t=o();return e=>!!t&&!t(e)}if("("===r){r=i.next();const t=function(){const t=[];let e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next()}while("|"===r||","===r);e=s()}return e=>t.some((t=>t(e)))}();return")"===r&&(r=i.next()),t}if(f(r)){const t=[];do{t.push(r),r=i.next()}while(f(r));return n=>e(t,n)}return null}function s(){const t=[];let e=o();for(;e;)t.push(e),e=o();return e=>t.every((t=>t(e)))}}function f(t){return!!t&&!!t.match(/[\w\.:]+/)}function g(t){"function"==typeof t.dispose&&t.dispose()}function y(t){return Array.isArray(t)?function(t){let e=[];for(let n=0,i=t.length;n<i;n++)e[n]=y(t[n]);return e}(t):"object"==typeof t?function(t){let e={};for(let n in t)e[n]=y(t[n]);return e}(t):t}function b(t,...e){return e.forEach((e=>{for(let n in e)t[n]=e[n]})),t}function w(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?w(t.substring(0,t.length-1)):t.substr(1+~e)}!function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline"}(p||(p={})),"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG,function(t){t.toBinaryStr=function(t){return t.toString(2).padStart(32,"0")},t.print=function(e){const n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s})},t.getLanguageId=function(t){return(255&t)>>>0},t.getTokenType=function(t){return(768&t)>>>8},t.containsBalancedBrackets=function(t){return!!(1024&t)},t.getFontStyle=function(t){return(30720&t)>>>11},t.getForeground=function(t){return(16744448&t)>>>15},t.getBackground=function(t){return(4278190080&t)>>>24},t.set=function(e,n,i,r,o,s,l){let a=t.getLanguageId(e),u=t.getTokenType(e),c=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(u=i),null!==r&&(c=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|u<<8|c<<10|m<<11|p<<15|h<<24)>>>0}}(h||(h={}));let k=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class j{static hasCaptures(t){return null!==t&&(k.lastIndex=0,k.test(t))}static replaceCaptures(t,e,n){return t.replace(k,((t,i,r,o)=>{let s=n[parseInt(i||r,10)];if(!s)return t;{let t=e.substring(s.start,s.end);for(;"."===t[0];)t=t.substring(1);switch(o){case"downcase":return t.toLowerCase();case"upcase":return t.toUpperCase();default:return t}}}))}}function v(t,e){return t<e?-1:t>e?1:0}function S(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,i=e.length;if(n===i){for(let i=0;i<n;i++){let n=v(t[i],e[i]);if(0!==n)return n}return 0}return n-i}function x(t){return!!/^#[0-9a-f]{6}$/i.test(t)||(!!/^#[0-9a-f]{8}$/i.test(t)||(!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t)))}function C(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class L{fn;cache=new Map;constructor(t){this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}}class T{scopeName;constructor(t){this.scopeName=t}toKey(){return this.scopeName}}class A{scopeName;ruleName;constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}}class P{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}}class O{repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new T(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new P;for(const n of t)M(n,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof T){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName))continue;if(this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}}function M(t,e,n,i){const r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=n.lookup(e);t instanceof T?_({baseGrammar:o,selfGrammar:r},i):N(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);const s=n.injections(t.scopeName);if(s)for(const t of s)i.add(new T(t))}function N(t,e,n){if(e.repository&&e.repository[t]){D([e.repository[t]],e,n)}}function _(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&D(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&D(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function D(t,e,n){for(const i of t){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const t=i.repository?b({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&D(i.patterns,{...e,repository:t},n);const r=i.include;if(!r)continue;const o=G(r);switch(o.kind){case 0:_({...e,selfGrammar:e.baseGrammar},n);break;case 1:_(e,n);break;case 2:N(o.ruleName,{...e,repository:t},n);break;case 3:case 4:const i=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(i){const r={baseGrammar:e.baseGrammar,selfGrammar:i,repository:t};4===o.kind?N(o.ruleName,r,n):_(r,n)}else 4===o.kind?n.add(new A(o.scopeName,o.ruleName)):n.add(new T(o.scopeName))}}}class R{kind=0}class E{kind=1}class ${ruleName;kind=2;constructor(t){this.ruleName=t}}class B{scopeName;kind=3;constructor(t){this.scopeName=t}}class I{scopeName;ruleName;kind=4;constructor(t,e){this.scopeName=t,this.ruleName=e}}function G(t){if("$base"===t)return new R;if("$self"===t)return new E;const e=t.indexOf("#");if(-1===e)return new B(t);if(0===e)return new $(t.substring(1));{const n=t.substring(0,e),i=t.substring(e+1);return new I(n,i)}}const z=/\\(\d+)/,F=/\\(\d+)/g,H=-1,U=-2;class q{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,i){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=j.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=j.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${w(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?j.replaceCaptures(this._name,t,e):this._name}getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?j.replaceCaptures(this._contentName,t,e):this._contentName}}class W extends q{retokenizeCapturedWithRuleId;constructor(t,e,n,i,r){super(t,e,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,n,i){throw new Error("Not supported!")}}class V extends q{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,i,r){super(t,e,n,null),this._match=new Q(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class J extends q{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,i,r){super(t,e,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const n of this.patterns){t.getRule(n).collectPatterns(t,e)}}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class X extends q{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,i,r,o,s,l,a,u){super(t,e,n,i),this._begin=new Q(r,this.id),this.beginCaptures=o,this._end=new Q(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=a||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z;for(const e of this.patterns){t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}}class K extends q{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,i,r,o,s,l,a){super(t,e,n,i),this._begin=new Q(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new Q(s,U),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z;for(const e of this.patterns){t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Z,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}}class Y{static createCaptureRule(t,e,n,i,r){return t.registerRule((t=>new W(e,t,n,i,r)))}static getCompiledRuleId(t,e,n){return t.id||e.registerRule((i=>{if(t.id=i,t.match)return new V(t.$vscodeTextmateLocation,t.id,t.name,t.match,Y._compileCaptures(t.captures,e,n));if(void 0===t.begin){t.repository&&(n=b({},n,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new J(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Y._compilePatterns(i,e,n))}return t.while?new K(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Y._compileCaptures(t.beginCaptures||t.captures,e,n),t.while,Y._compileCaptures(t.whileCaptures||t.captures,e,n),Y._compilePatterns(t.patterns,e,n)):new X(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Y._compileCaptures(t.beginCaptures||t.captures,e,n),t.end,Y._compileCaptures(t.endCaptures||t.captures,e,n),t.applyEndPatternLast,Y._compilePatterns(t.patterns,e,n))})),t.id}static _compileCaptures(t,e,n){let i=[];if(t){let r=0;for(const e in t){if("$vscodeTextmateLocation"===e)continue;const t=parseInt(e,10);t>r&&(r=t)}for(let t=0;t<=r;t++)i[t]=null;for(const r in t){if("$vscodeTextmateLocation"===r)continue;const o=parseInt(r,10);let s=0;t[r].patterns&&(s=Y.getCompiledRuleId(t[r],e,n)),i[o]=Y.createCaptureRule(e,t[r].$vscodeTextmateLocation,t[r].name,t[r].contentName,s)}}return i}static _compilePatterns(t,e,n){let i=[];if(t)for(let r=0,o=t.length;r<o;r++){const o=t[r];let s=-1;if(o.include){const t=G(o.include);switch(t.kind){case 0:case 1:s=Y.getCompiledRuleId(n[o.include],e,n);break;case 2:let i=n[t.ruleName];i&&(s=Y.getCompiledRuleId(i,e,n));break;case 3:case 4:const r=t.scopeName,l=4===t.kind?t.ruleName:null,a=e.getExternalGrammar(r,n);if(a)if(l){let t=a.repository[l];t&&(s=Y.getCompiledRuleId(t,e,a.repository))}else s=Y.getCompiledRuleId(a.repository.$self,e,a.repository)}}else s=Y.getCompiledRuleId(o,e,n);if(-1!==s){const t=e.getRule(s);let n=!1;if((t instanceof J||t instanceof X||t instanceof K)&&t.hasMissingPatterns&&0===t.patterns.length&&(n=!0),n)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}}class Q{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,e){if(t){const e=t.length;let n=0,i=[],r=!1;for(let o=0;o<e;o++){if("\\"===t.charAt(o)&&o+1<e){const e=t.charAt(o+1);"z"===e?(i.push(t.substring(n,o)),i.push("$(?!\\n)(?<!\\n)"),n=o+2):"A"!==e&&"G"!==e||(r=!0),o++}}this.hasAnchor=r,0===n?this.source=t:(i.push(t.substring(n,e)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=z.test(this.source)}clone(){return new Q(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,e){let n=e.map((e=>t.substring(e.start,e.end)));return F.lastIndex=0,this.source.replace(F,((t,e)=>C(n[parseInt(e,10)]||"")))}_buildAnchorCache(){let t,e,n,i,r=[],o=[],s=[],l=[];for(t=0,e=this.source.length;t<e;t++)n=this.source.charAt(t),r[t]=n,o[t]=n,s[t]=n,l[t]=n,"\\"===n&&t+1<e&&(i=this.source.charAt(t+1),"A"===i?(r[t+1]="￿",o[t+1]="￿",s[t+1]="A",l[t+1]="A"):"G"===i?(r[t+1]="￿",o[t+1]="G",s[t+1]="￿",l[t+1]="G"):(r[t+1]=i,o[t+1]=i,s[t+1]=i,l[t+1]=i),t++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")}}resolveAnchors(t,e){return this.hasAnchor&&this._anchorCache?t?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}class Z{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map((t=>t.source));this._cached=new tt(t,e,this._items.map((t=>t.ruleId)))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let i=this._items.map((t=>t.resolveAnchors(e,n)));return new tt(t,i,this._items.map((t=>t.ruleId)))}}class tt{regExps;rules;scanner;constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join("\n")}findNextMatchSync(t,e,n){const i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}}class et{_colorMap;_defaults;_root;static createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],i=0;for(let t=0,r=e.length;t<r;t++){let r,o=e[t];if(!o.settings)continue;if("string"==typeof o.scope){let t=o.scope;t=t.replace(/^[,]+/,""),t=t.replace(/[,]+$/,""),r=t.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let s=-1;if("string"==typeof o.settings.fontStyle){s=0;let t=o.settings.fontStyle.split(" ");for(let e=0,n=t.length;e<n;e++){switch(t[e]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}}let l=null;"string"==typeof o.settings.foreground&&x(o.settings.foreground)&&(l=o.settings.foreground);let a=null;"string"==typeof o.settings.background&&x(o.settings.background)&&(a=o.settings.background);for(let e=0,o=r.length;e<o;e++){let o=r[e].trim().split(" "),u=o[o.length-1],c=null;o.length>1&&(c=o.slice(0,o.length-1),c.reverse()),n[i++]=new ot(u,c,t,s,l,a)}}return n}(t),e)}static createFromParsedTheme(t,e){return function(t,e){t.sort(((t,e)=>{let n=v(t.scope,e.scope);return 0!==n?n:(n=S(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index)}));let n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){let e=t.shift();-1!==e.fontStyle&&(n=e.fontStyle),null!==e.foreground&&(i=e.foreground),null!==e.background&&(r=e.background)}let o=new st(e),s=new rt(n,o.getId(i),o.getId(r)),l=new at(new lt(0,null,-1,0,0),[]);for(let e=0,n=t.length;e<n;e++){let n=t[e];l.insert(0,n.scope,n.parentScopes,n.fontStyle,o.getId(n.foreground),o.getId(n.background))}return new et(o,s,l)}(t,e)}_cachedMatchRoot=new L((t=>this._root.match(t)));constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(null===t)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find((e=>function(t,e){if(null===e)return!0;let n=0,i=e[n];for(;t;){if(it(t.scopeName,i)){if(n++,n===e.length)return!0;i=e[n]}t=t.parent}return!1}(t.parent,e.parentScopes)));return n?new rt(n.fontStyle,n.foreground,n.background):null}}class nt{parent;scopeName;static push(t,e){for(const n of e)t=new nt(t,n);return t}static from(...t){let e=null;for(let n=0;n<t.length;n++)e=new nt(e,t[n]);return e}constructor(t,e){this.parent=t,this.scopeName=e}push(t){return new nt(this,t)}getSegments(){let t=this;const e=[];for(;t;)e.push(t.scopeName),t=t.parent;return e.reverse(),e}toString(){return this.getSegments().join(" ")}extends(t){return this===t||null!==this.parent&&this.parent.extends(t)}getExtensionIfDefined(t){const e=[];let n=this;for(;n&&n!==t;)e.push(n.scopeName),n=n.parent;return n===t?e.reverse():void 0}}function it(t,e){return e===t||t.startsWith(e)&&"."===t[e.length]}class rt{fontStyle;foregroundId;backgroundId;constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}}class ot{scope;parentScopes;index;fontStyle;foreground;background;constructor(t,e,n,i,r,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o}}class st{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(null===t)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}}class lt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,e,n,i,r){this.scopeDepth=t,this.parentScopes=e,this.fontStyle=n,this.foreground=i,this.background=r}clone(){return new lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let e=[];for(let n=0,i=t.length;n<i;n++)e[n]=t[n].clone();return e}acceptOverwrite(t,e,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i)}}class at{_mainRule;_children;_rulesWithParentScopes;constructor(t,e=[],n={}){this._mainRule=t,this._children=n,this._rulesWithParentScopes=e}static _sortBySpecificity(t){return 1===t.length||t.sort(this._cmpBySpecificity),t}static _cmpBySpecificity(t,e){if(t.scopeDepth===e.scopeDepth){const n=t.parentScopes,i=e.parentScopes;let r=null===n?0:n.length,o=null===i?0:i.length;if(r===o)for(let t=0;t<r;t++){const e=n[t].length,r=i[t].length;if(e!==r)return r-e}return o-r}return e.scopeDepth-t.scopeDepth}match(t){if(""===t)return at._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let e,n,i=t.indexOf(".");return-1===i?(e=t,n=""):(e=t.substring(0,i),n=t.substring(i+1)),this._children.hasOwnProperty(e)?this._children[e].match(n):at._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(t,e,n,i,r,o){if(""===e)return void this._doInsertHere(t,n,i,r,o);let s,l,a,u=e.indexOf(".");-1===u?(s=e,l=""):(s=e.substring(0,u),l=e.substring(u+1)),this._children.hasOwnProperty(s)?a=this._children[s]:(a=new at(this._mainRule.clone(),lt.cloneArr(this._rulesWithParentScopes)),this._children[s]=a),a.insert(t+1,l,n,i,r,o)}_doInsertHere(t,e,n,i,r){if(null!==e){for(let o=0,s=this._rulesWithParentScopes.length;o<s;o++){let s=this._rulesWithParentScopes[o];if(0===S(s.parentScopes,e))return void s.acceptOverwrite(t,n,i,r)}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new lt(t,e,n,i,r))}else this._mainRule.acceptOverwrite(t,n,i,r)}}class ut{languageId;tokenType;constructor(t,e){this.languageId=t,this.tokenType=e}}class ct{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,e){this._defaultAttributes=new ut(t,8),this._embeddedLanguagesMatcher=new mt(Object.entries(e||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?ct._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ut(0,0);_getBasicScopeAttributes=new L((t=>{const e=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new ut(e,n)}));_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const e=t.match(ct.STANDARD_TOKEN_TYPE_REGEXP);if(!e)return 8;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class mt{values;scopesRegExp;constructor(t){if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map((([t,e])=>C(t)));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0}}class pt{stack;stoppedEarly;constructor(t,e){this.stack=t,this.stoppedEarly=e}}function ht(t,e,n,i,r,o,s,l){const a=e.content.length;let u=!1,c=-1;if(s){const s=function(t,e,n,i,r,o){let s=r.beginRuleCapturedEOL?0:-1;const l=[];for(let e=r;e;e=e.pop()){const n=e.getRule(t);n instanceof K&&l.push({rule:n,stack:e})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:l,findOptions:u}=ft(a.rule,t,a.stack.endRule,n,i===s),c=l.findNextMatchSync(e,i,u);if(!c){r=a.stack.pop();break}if(c.ruleId!==U){r=a.stack.pop();break}c.captureIndices&&c.captureIndices.length&&(o.produce(a.stack,c.captureIndices[0].start),gt(t,e,n,a.stack,o,a.rule.whileCaptures,c.captureIndices),o.produce(a.stack,c.captureIndices[0].end),s=c.captureIndices[0].end,c.captureIndices[0].end>i&&(i=c.captureIndices[0].end,n=!1))}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n}}(t,e,n,i,r,o);r=s.stack,i=s.linePos,n=s.isFirstLine,c=s.anchorPosition}const m=Date.now();for(;!u;){if(0!==l){if(Date.now()-m>l)return new pt(r,!0)}p()}return new pt(r,!1);function p(){const s=function(t,e,n,i,r,o){const s=function(t,e,n,i,r,o){const s=r.getRule(t),{ruleScanner:l,findOptions:a}=dt(s,t,r.endRule,n,i===o),u=l.findNextMatchSync(e,i,a);if(u)return{captureIndices:u.captureIndices,matchedRuleId:u.ruleId};return null}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;const a=function(t,e,n,i,r,o,s){let l,a=Number.MAX_VALUE,u=null,c=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,p=t.length;o<p;o++){const p=t[o];if(!p.matcher(m))continue;const h=e.getRule(p.ruleId),{ruleScanner:d,findOptions:f}=dt(h,e,null,i,r===s),g=d.findNextMatchSync(n,r,f);if(!g)continue;const y=g.captureIndices[0].start;if(!(y>=a)&&(a=y,u=g.captureIndices,l=g.ruleId,c=p.priority,a===r))break}if(u)return{priorityMatch:-1===c,captureIndices:u,matchedRuleId:l};return null}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;const u=s.captureIndices[0].start,c=a.captureIndices[0].start;if(c<u||a.priorityMatch&&c===u)return a;return s}(t,e,n,i,r,c);if(!s)return o.produce(r,a),void(u=!0);const l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===H){const s=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),gt(t,e,n,r,o,s.endCaptures,l),o.produce(r,l[0].end);const m=r;if(r=r.parent,c=m.getAnchorPos(),!p&&m.getEnterPos()===i)return r=m,o.produce(r,a),void(u=!0)}else{const s=t.getRule(m);o.produce(r,l[0].start);const h=r,d=s.getName(e.content,l),f=r.contentNameScopesList.pushAttributed(d,t);if(r=r.push(m,i,c,l[0].end===a,null,f,f),s instanceof X){const i=s;gt(t,e,n,r,o,i.beginCaptures,l),o.produce(r,l[0].end),c=l[0].end;const m=i.getContentName(e.content,l),d=f.pushAttributed(m,t);if(r=r.withContentNameScopesList(d),i.endHasBackReferences&&(r=r.withEndRule(i.getEndWithResolvedBackReferences(e.content,l))),!p&&h.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(u=!0)}else if(s instanceof K){const i=s;gt(t,e,n,r,o,i.beginCaptures,l),o.produce(r,l[0].end),c=l[0].end;const m=i.getContentName(e.content,l),d=f.pushAttributed(m,t);if(r=r.withContentNameScopesList(d),i.whileHasBackReferences&&(r=r.withEndRule(i.getWhileWithResolvedBackReferences(e.content,l))),!p&&h.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(u=!0)}else{if(gt(t,e,n,r,o,s.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(u=!0)}}l[0].end>i&&(i=l[0].end,n=!1)}}function dt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0}}function ft(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0}}function gt(t,e,n,i,r,o,s){if(0===o.length)return;const l=e.content,a=Math.min(o.length,s.length),u=[],c=s[0].end;for(let e=0;e<a;e++){const a=o[e];if(null===a)continue;const m=s[e];if(0===m.length)continue;if(m.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=m.start;)r.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?r.produceFromScopes(u[u.length-1].scopes,m.start):r.produce(i,m.start),a.retokenizeCapturedWithRuleId){const e=a.getName(l,s),o=i.contentNameScopesList.pushAttributed(e,t),u=a.getContentName(l,s),c=o.pushAttributed(u,t),p=i.push(a.retokenizeCapturedWithRuleId,m.start,-1,!1,null,o,c),h=t.createOnigString(l.substring(0,m.end));ht(t,h,n&&0===m.start,m.start,p,r,!1,0),g(h);continue}const p=a.getName(l,s);if(null!==p){const e=(u.length>0?u[u.length-1].scopes:i.contentNameScopesList).pushAttributed(p,t);u.push(new yt(e,m.end))}}for(;u.length>0;)r.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}class yt{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}}function bt(t,e,n,i,r){const o=d(e,wt),s=Y.getCompiledRuleId(n,i,r.repository);for(const n of o)t.push({debugSelector:e,matcher:n.matcher,ruleId:s,grammar:r,priority:n.priority})}function wt(t,e){if(e.length<t.length)return!1;let n=0;return t.every((t=>{for(let i=n;i<e.length;i++)if(kt(e[i],t))return n=i+1,!0;return!1}))}function kt(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n]}class jt{_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(t,e,n,i,r,o,s,l){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new ct(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=vt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const t of Object.keys(r)){const e=d(t,wt);for(const n of e)this._tokenTypeMatchers.push({matcher:n.matcher,type:r[t]})}}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t=t=>t===this._rootScopeName?this._grammar:this.getExternalGrammar(t),e=[],n=this._rootScopeName,i=t(n);if(i){const t=i.injections;if(t)for(let n in t)bt(e,n,t[n],this,i);const r=this._grammarRepository.injections(n);r&&r.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&bt(e,t,n,this,n)}}))}return e.sort(((t,e)=>t.priority-e.priority)),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=vt(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){const i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(t,e,n=0){const i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(t,e,n,i){let r;if(-1===this._rootId&&(this._rootId=Y.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==xt.NULL)r=!1,e.reset();else{r=!0;const t=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),i=h.set(0,t.languageId,t.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);let s;s=o?St.createRootAndLookUpScopeName(o,i,this):St.createRoot("unknown",i),e=new xt(null,this._rootId,-1,-1,!1,null,s,s)}t+="\n";const o=this.createOnigString(t),s=o.content.length,l=new Lt(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=ht(this,o,r,0,e,l,!0,i);return g(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}}function vt(t,e){return(t=y(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}class St{parent;scopePath;tokenAttributes;static fromExtension(t,e){let n=t,i=t?.scopePath??null;for(const t of e)i=nt.push(i,t.scopeNames),n=new St(n,i,t.encodedTokenAttributes);return n}static createRoot(t,e){return new St(null,new nt(null,t),e)}static createRootAndLookUpScopeName(t,e,n){const i=n.getMetadataForScope(t),r=new nt(null,t),o=n.themeProvider.themeMatch(r),s=St.mergeAttributes(e,i,o);return new St(null,r,s)}get scopeName(){return this.scopePath.scopeName}constructor(t,e,n){this.parent=t,this.scopePath=e,this.tokenAttributes=n}toString(){return this.getScopeNames().join(" ")}equals(t){return St.equals(this,t)}static equals(t,e){for(;;){if(t===e)return!0;if(!t&&!e)return!0;if(!t||!e)return!1;if(t.scopeName!==e.scopeName||t.tokenAttributes!==e.tokenAttributes)return!1;t=t.parent,e=e.parent}}static mergeAttributes(t,e,n){let i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),h.set(t,e.languageId,e.tokenType,null,i,r,o)}pushAttributed(t,e){if(null===t)return this;if(-1===t.indexOf(" "))return St._pushAttributed(this,t,e);const n=t.split(/ /g);let i=this;for(const t of n)i=St._pushAttributed(i,t,e);return i}static _pushAttributed(t,e,n){const i=n.getMetadataForScope(e),r=t.scopePath.push(e),o=n.themeProvider.themeMatch(r),s=St.mergeAttributes(t.tokenAttributes,i,o);return new St(t,r,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const e=[];let n=this;for(;n&&n!==t;)e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===t?e.reverse():void 0}}class xt{parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new xt(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(t,e,n,i,r,o,s,l){this.parent=t,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(t){return null!==t&&xt._equals(this,t)}static _equals(t,e){return t===e||!!this._structuralEquals(t,e)&&St.equals(t.contentNameScopesList,e.contentNameScopesList)}static _structuralEquals(t,e){for(;;){if(t===e)return!0;if(!t&&!e)return!0;if(!t||!e)return!1;if(t.depth!==e.depth||t.ruleId!==e.ruleId||t.endRule!==e.endRule)return!1;t=t.parent,e=e.parent}}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){xt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,e,n,i,r,o,s){return new xt(this,t,e,n,i,r,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,e){return this.parent&&(e=this.parent._writeString(t,e)),t[e++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,e}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new xt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let e=this;for(;e&&e._enterPos===t._enterPos;){if(e.ruleId===t.ruleId)return!0;e=e.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,e){const n=St.fromExtension(t?.nameScopesList??null,e.nameScopesList);return new xt(t,e.ruleId,e.enterPos??-1,e.anchorPos??-1,e.beginRuleCapturedEOL,e.endRule,n,St.fromExtension(n,e.contentNameScopesList))}}class Ct{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap((t=>"*"===t?(this.allowAny=!0,[]):d(t,wt).map((t=>t.matcher)))),this.unbalancedBracketScopes=e.flatMap((t=>d(t,wt).map((t=>t.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}}class Lt{balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(t,e,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const e=t?.getScopeNames()??[];for(const t of this._tokenTypeOverrides)t.matcher(e)&&(n=h.set(n,0,t.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(e))}return i&&(n=h.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=e))}const n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let t=0,e=this._binaryTokens.length;t<e;t++)n[t]=this._binaryTokens[t];return n}}class Tt{_onigLibPromise;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;constructor(t,e){this._onigLibPromise=e,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}async grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,function(t,e,n,i,r,o,s,l){return new jt(t,e,n,i,r,o,s,l)}(t,o,e,n,i,r,this,await this._onigLibPromise))}return this._grammars.get(t)}}let At=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Tt(et.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(et.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Ct(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}async _loadGrammar(t,e,n,i,r){const o=new O(this._syncRegistry,t);for(;o.Q.length>0;)await Promise.all(o.Q.map((t=>this._loadSingleGrammar(t.scopeName)))),o.processQueue();return this._grammarForScopeName(t,e,n,i,r)}async _loadSingleGrammar(t){return this._ensureGrammarCache.has(t)||this._ensureGrammarCache.set(t,this._doLoadSingleGrammar(t)),this._ensureGrammarCache.get(t)}async _doLoadSingleGrammar(t){const e=await this._options.loadGrammar(t);if(e){const n="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}async addGrammar(t,e=[],n=0,i=null){return this._syncRegistry.addGrammar(t,e),await this._grammarForScopeName(t.scopeName,n,i)}_grammarForScopeName(t,e=0,n=null,i=null,r=null){return this._syncRegistry.grammarForScopeName(t,e,n,i,r)}};const Pt=xt.NULL,Ot=255,Mt=768,Nt=1024,_t=14336,Dt=8372224,Rt=4286578688,Et=0,$t=8,Bt=10,It=11,Gt=15,zt=24;class Ft{static toBinaryStr(t){let e=t.toString(2);for(;e.length<32;)e=`0${e}`;return e}static getLanguageId(t){return(t&Ot)>>>Et}static getTokenType(t){return(t&Mt)>>>$t}static getFontStyle(t){return(t&_t)>>>It}static getForeground(t){return(t&Dt)>>>Gt}static getBackground(t){return(t&Rt)>>>zt}static containsBalancedBrackets(t){return!!(t&Nt)}static set(t,e,n,i,r,o){let s=Ft.getLanguageId(t),l=Ft.getTokenType(t),a=Ft.getFontStyle(t),u=Ft.getForeground(t),c=Ft.getBackground(t);const m=Ft.containsBalancedBrackets(t)?1:0;return 0!==e&&(s=e),0!==n&&(l=8===n?0:n),i!==p.NotSet&&(a=i),0!==r&&(u=r),0!==o&&(c=o),(s<<Et|l<<$t|a<<It|m<<Bt|u<<Gt|c<<zt)>>>0}}function Ht(t,e=!1){const n=t.split(/(\r?\n)/g);let i=0;const r=[];for(let t=0;t<n.length;t+=2){const o=e?n[t]+(n[t+1]||""):n[t];r.push([o,i]),i+=n[t].length,i+=n[t+1]?.length||0}return r}function Ut(t){return!t||["plaintext","txt","text","plain"].includes(t)}function qt(t){return"ansi"===t||Ut(t)}function Wt(t){return"none"===t}function Vt(t){return Wt(t)}function Jt(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],"string"==typeof t.properties.class&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(/\s+/g);for(const e of n)e&&!t.properties.class.includes(e)&&t.properties.class.push(e);return t}function Xt(t,e){const n="string"==typeof t?{}:{...t.colorReplacements},i="string"==typeof t?t:t.name;for(const[t,r]of Object.entries(e?.colorReplacements||{}))"string"==typeof r?n[t]=r:t===i&&Object.assign(n,r);return n}function Kt(t,e){return t&&e?.[t?.toLowerCase()]||t}function Yt(t){const e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&p.Italic&&(e["font-style"]="italic"),t.fontStyle&p.Bold&&(e["font-weight"]="bold"),t.fontStyle&p.Underline&&(e["text-decoration"]="underline")),e}function Qt(t){return Object.entries(t).map((([t,e])=>`${t}:${e}`)).join(";")}var Zt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],te={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function ee(t,e){const n=t.indexOf("[",e);if(-1!==n){const e=t.indexOf("m",n);return{sequence:t.substring(n+2,e).split(";"),startPosition:n,position:e+1}}return{position:t.length}}function ne(t,e){let n=1;const i=t[e+n++];let r;if("2"===i){const i=[t[e+n++],t[e+n++],t[e+n]].map((t=>Number.parseInt(t)));3!==i.length||i.some((t=>Number.isNaN(t)))||(r={type:"rgb",rgb:i})}else if("5"===i){const i=Number.parseInt(t[e+n]);Number.isNaN(i)||(r={type:"table",index:Number(i)})}return[n,r]}function ie(t){const e=[];for(let n=0;n<t.length;n++){const i=t[n],r=Number.parseInt(i);if(!Number.isNaN(r))if(0===r)e.push({type:"resetAll"});else if(r<=9){te[r]&&e.push({type:"setDecoration",value:te[r]})}else if(r<=29){const t=te[r-20];t&&e.push({type:"resetDecoration",value:t})}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Zt[r-30]}});else if(38===r){const[i,r]=ne(t,n);r&&e.push({type:"setForegroundColor",value:r}),n+=i}else if(39===r)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Zt[r-40]}});else if(48===r){const[i,r]=ne(t,n);r&&e.push({type:"setBackgroundColor",value:r}),n+=i}else 49===r?e.push({type:"resetBackgroundColor"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Zt[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Zt[r-100+8]}})}return e}var re={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function oe(t=re){function e(e){return t[e]}function n(t){return`#${t.map((t=>Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0"))).join("")}`}let i;function r(t){return function(){if(i)return i;i=[];for(let t=0;t<Zt.length;t++)i.push(e(Zt[t]));let t=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let r=0;r<6;r++)for(let o=0;o<6;o++)i.push(n([t[e],t[r],t[o]]));let r=8;for(let t=0;t<24;t++,r+=10)i.push(n([r,r,r]));return i}()[t]}return{value:function(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index)}}}}function se(t,e,n){const i=Xt(t,n),r=Ht(e),o=oe(Object.fromEntries(Zt.map((e=>[e,t.colors?.[`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`]])))),s=function(){let t=null,e=null,n=new Set;return{parse(i){const r=[];let o=0;do{const s=ee(i,o),l=s.sequence?i.substring(o,s.startPosition):i.substring(o);if(l.length>0&&r.push({value:l,foreground:t,background:e,decorations:new Set(n)}),s.sequence){const i=ie(s.sequence);for(const r of i)"resetAll"===r.type?(t=null,e=null,n.clear()):"resetForegroundColor"===r.type?t=null:"resetBackgroundColor"===r.type?e=null:"resetDecoration"===r.type&&n.delete(r.value);for(const r of i)"setForegroundColor"===r.type?t=r.value:"setBackgroundColor"===r.type?e=r.value:"setDecoration"===r.type&&n.add(r.value)}o=s.position}while(o<i.length);return r}}}();return r.map((e=>s.parse(e[0]).map((n=>{let r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Kt(r,i),s=Kt(s,i),n.decorations.has("dim")&&(r=function(t){const e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){const t=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${t}`}return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map((t=>`${t}${t}`)).join("")}80`}const n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}(r));let l=p.None;return n.decorations.has("bold")&&(l|=p.Bold),n.decorations.has("italic")&&(l|=p.Italic),n.decorations.has("underline")&&(l|=p.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l}}))))}class le extends Error{constructor(t){super(t),this.name="ShikiError"}}class ae{_stack;lang;theme;static initial(t,e){return new ae(Pt,t,e)}constructor(t,e,n){this._stack=t,this.lang=e,this.theme=n}get scopes(){return function(t){const e=[],n=new Set;function i(t){if(n.has(t))return;n.add(t);const r=t?.nameScopesList?.scopeName;r&&e.push(r),t.parent&&i(t.parent)}return i(t),e}(this._stack)}toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes}}}function ue(t,e,n={}){const{lang:i="text",theme:r=t.getLoadedThemes()[0]}=n;if(Ut(i)||Wt(r))return Ht(e).map((t=>[{content:t[0],offset:t[1]}]));const{theme:o,colorMap:s}=t.setTheme(r);if("ansi"===i)return se(o,e,n);const l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new le(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(n.grammarState.theme!==r)throw new le(`Grammar state theme "${n.grammarState.theme}" does not match highlight theme "${r}"`)}return function(t,e,n,i,r){return ce(t,e,n,i,r).tokens}(e,l,o,s,n)}function ce(t,e,n,i,r){const o=Xt(n,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=r,a=Ht(t);let u=r.grammarState?function(t){if(!(t instanceof ae))throw new le("Invalid grammar state");return t._stack}(r.grammarState):null!=r.grammarContextCode?ce(r.grammarContextCode,e,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:Pt,c=[];const m=[],p=[];if(r.includeExplanation)for(const t of n.settings){let e;switch(typeof t.scope){case"string":e=t.scope.split(/,/).map((t=>t.trim()));break;case"object":e=t.scope;break;default:continue}p.push({settings:t,selectors:e.map((t=>t.split(/ /)))})}for(let t=0,n=a.length;t<n;t++){const[n,h]=a[t];if(""===n){c=[],m.push([]);continue}if(s>0&&n.length>=s){c=[],m.push([{content:n,offset:h,color:"",fontStyle:0}]);continue}let d,f,g;r.includeExplanation&&(d=e.tokenizeLine(n,u),f=d.tokens,g=0);const y=e.tokenizeLine2(n,u,l),b=y.tokens.length/2;for(let t=0;t<b;t++){const e=y.tokens[2*t],s=t+1<b?y.tokens[2*t+2]:n.length;if(e===s)continue;const l=y.tokens[2*t+1],a=Kt(i[Ft.getForeground(l)],o),u=Ft.getFontStyle(l),m={content:n.substring(e,s),offset:h+e,color:a,fontStyle:u};if(r.includeExplanation){m.explanation=[];let t=0;for(;e+t<s;){const e=f[g],i=n.substring(e.startIndex,e.endIndex);t+=i.length,m.explanation.push({content:i,scopes:me(p,e.scopes)}),g+=1}}c.push(m)}m.push(c),c=[],u=y.ruleStack}return{tokens:m,stateStack:u}}function me(t,e){const n=[];for(let i=0,r=e.length;i<r;i++){const r=e.slice(0,i),o=e[i];n[i]={scopeName:o,themeMatches:de(t,o,r)}}return n}function pe(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length]}function he(t,e,n){if(!pe(t[t.length-1],e))return!1;let i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)pe(t[i],n[r])&&(i-=1),r-=1;return-1===i}function de(t,e,n){const i=[];for(const{selectors:r,settings:o}of t)for(const t of r)if(he(t,e,n)){i.push(o);break}return i}function fe(t,e,n){const i=Object.entries(n.themes).filter((t=>t[1])).map((t=>({color:t[0],theme:t[1]}))),r=function(...t){const e=t.map((()=>[])),n=t.length;for(let i=0;i<t[0].length;i++){const r=t.map((t=>t[i])),o=e.map((()=>[]));e.forEach(((t,e)=>t.push(o[e])));const s=r.map((()=>0)),l=r.map((t=>t[0]));for(;l.every((t=>t));){const t=Math.min(...l.map((t=>t.content.length)));for(let e=0;e<n;e++){const n=l[e];n.content.length===t?(o[e].push(n),s[e]+=1,l[e]=r[e][s[e]]):(o[e].push({...n,content:n.content.slice(0,t)}),l[e]={...n,content:n.content.slice(t),offset:n.offset+t})}}}return e}(...i.map((i=>ue(t,e,{...n,theme:i.theme})))),o=r[0].map(((t,e)=>t.map(((t,o)=>{const s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),r.forEach(((t,n)=>{const{content:r,explanation:l,offset:a,...u}=t[e][o];s.variants[i[n].color]=u})),s}))));return o}function ge(t,e,n){let i,r,o,s,l;if("themes"in n){const{defaultColor:a="light",cssVariablePrefix:u="--shiki-"}=n,c=Object.entries(n.themes).filter((t=>t[1])).map((t=>({color:t[0],theme:t[1]}))).sort(((t,e)=>t.color===a?-1:e.color===a?1:0));if(0===c.length)throw new le("`themes` option must not be empty");const m=fe(t,e,n);if(a&&!c.find((t=>t.color===a)))throw new le(`\`themes\` option must contain the defaultColor key \`${a}\``);const p=c.map((e=>t.getTheme(e.theme))),h=c.map((t=>t.color));o=m.map((t=>t.map((t=>function(t,e,n,i){const r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map((e=>Yt(t.variants[e]))),s=new Set(o.flatMap((t=>Object.keys(t)))),l=o.reduce(((t,r,o)=>{for(const l of s){const s=r[l]||"inherit";if(0===o&&i)t[l]=s;else{const i="color"===l?"":"background-color"===l?"-bg":`-${l}`,r=n+e[o]+("color"===l?"":i);t[l]?t[l]+=`;${r}:${s}`:t[l]=`${r}:${s}`}}return t}),{});return r.htmlStyle=i?Qt(l):Object.values(l).join(";"),r}(t,h,u,a)))));const d=c.map((t=>Xt(t.theme,n)));r=c.map(((t,e)=>(0===e&&a?"":`${u+t.color}:`)+(Kt(p[e].fg,d[e])||"inherit"))).join(";"),i=c.map(((t,e)=>(0===e&&a?"":`${u+t.color}-bg:`)+(Kt(p[e].bg,d[e])||"inherit"))).join(";"),s=`shiki-themes ${p.map((t=>t.name)).join(" ")}`,l=a?void 0:[r,i].join(";")}else{if(!("theme"in n))throw new le("Invalid options, either `theme` or `themes` must be provided");{const l=Xt(n.theme,n);o=ue(t,e,n);const a=t.getTheme(n.theme);i=Kt(a.bg,l),r=Kt(a.fg,l),s=a.name}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l}}function ye(){const t=new WeakMap;function e(e){if(!t.has(e.meta)){const n=function(t){const e=Ht(t,!0).map((([t])=>t));return{lines:e,indexToPos:function(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};let i=n,r=0;for(const t of e){if(i<t.length)break;i-=t.length,r++}return{line:r,character:i}},posToIndex:function(t,n){let i=0;for(let n=0;n<t;n++)i+=e[n].length;return i+=n,i}}}(e.source);function i(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new le(`Invalid decoration offset: ${t}. Code length: ${e.source.length}`);return{...n.indexToPos(t),offset:t}}{const e=n.lines[t.line];if(void 0===e)throw new le(`Invalid decoration position ${JSON.stringify(t)}. Lines length: ${n.lines.length}`);if(t.character<0||t.character>e.length)throw new le(`Invalid decoration position ${JSON.stringify(t)}. Line ${t.line} length: ${e.length}`);return{...t,offset:n.posToIndex(t.line,t.character)}}}const r=(e.options.decorations||[]).map((t=>({...t,start:i(t.start),end:i(t.end)})));!function(t){for(let e=0;e<t.length;e++){const n=t[e];if(n.start.offset>n.end.offset)throw new le(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=e+1;i<t.length;i++){const e=t[i],r=n.start.offset<e.start.offset&&e.start.offset<n.end.offset,o=n.start.offset<e.end.offset&&e.end.offset<n.end.offset,s=e.start.offset<n.start.offset&&n.start.offset<e.end.offset,l=e.start.offset<n.end.offset&&n.end.offset<e.end.offset;if(r||o||s||l){if(o&&o)continue;if(s&&l)continue;throw new le(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(e.start)} intersect.`)}}}}(r),t.set(e.meta,{decorations:r,converter:n,source:e.source})}return t.get(e.meta)}return{name:"shiki:decorations",tokens(t){if(!this.options.decorations?.length)return;const n=function(t,e){const n=Array.from(e instanceof Set?e:new Set(e)).sort(((t,e)=>t-e));return n.length?t.map((t=>t.flatMap((t=>{const e=n.filter((e=>t.offset<e&&e<t.offset+t.content.length)).map((e=>e-t.offset)).sort(((t,e)=>t-e));return e.length?function(t,e){let n=0;const i=[];for(const r of e)r>n&&i.push({...t,content:t.content.slice(n,r),offset:t.offset+n}),n=r;return n<t.content.length&&i.push({...t,content:t.content.slice(n),offset:t.offset+n}),i}(t,e):t})))):t}(t,e(this).decorations.flatMap((t=>[t.start.offset,t.end.offset])));return n},code(t){if(!this.options.decorations?.length)return;const n=e(this),i=Array.from(t.children).filter((t=>"element"===t.type&&"span"===t.tagName));if(i.length!==n.converter.lines.length)throw new le(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function r(t,e,n,r){const o=i[t];let l="",a=-1,u=-1;function c(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(c).join(""):""}if(0===e&&(a=0),0===n&&(u=0),n===Number.POSITIVE_INFINITY&&(u=o.children.length),-1===a||-1===u)for(let t=0;t<o.children.length;t++)l+=c(o.children[t]),-1===a&&l.length===e&&(a=t+1),-1===u&&l.length===n&&(u=t+1);if(-1===a)throw new le(`Failed to find start index for decoration ${JSON.stringify(r.start)}`);if(-1===u)throw new le(`Failed to find end index for decoration ${JSON.stringify(r.end)}`);const m=o.children.slice(a,u);if(r.alwaysWrap||m.length!==o.children.length)if(r.alwaysWrap||1!==m.length||"element"!==m[0].type){const t={type:"element",tagName:"span",properties:{},children:m};s(t,r,"wrapper"),o.children.splice(a,m.length,t)}else s(m[0],r,"token");else s(o,r,"line")}function o(t,e){i[t]=s(i[t],e,"line")}function s(t,e,n){const i=e.properties||{},r=e.transform||(t=>t);return t.tagName=e.tagName||"span",t.properties={...t.properties,...i,class:t.properties.class},e.properties?.class&&Jt(t,e.properties.class),t=r(t,n)||t}const l=[],a=n.decorations.sort(((t,e)=>e.start.offset-t.start.offset));for(const t of a){const{start:e,end:n}=t;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);for(let i=e.line+1;i<n.line;i++)l.unshift((()=>o(i,t)));r(n.line,0,n.character,t)}}l.forEach((t=>t()))}}}const be=[ye()];function we(t){return[...t.transformers||[],...be]}function ke(t,e,n,i={meta:{},options:n,codeToHast:(e,n)=>ke(t,e,n),codeToTokens:(e,n)=>ge(t,e,n)}){let r=e;for(const t of we(n))r=t.preprocess?.call(i,r,n)||r;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:u}=ge(t,r,n);const{mergeWhitespaces:c=!0}=n;!0===c?o=function(t){return t.map((t=>{const e=[];let n="",i=0;return t.forEach(((r,o)=>{const s=!(r.fontStyle&&r.fontStyle&p.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push({...r,offset:i,content:n+r.content}):e.push({content:n,offset:i},r),i=0,n=""):e.push(r)})),e}))}(o):"never"===c&&(o=function(t){return t.map((t=>t.flatMap((t=>{if(t.content.match(/^\s+$/))return t;const e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;const[,n,i,r]=e;if(!n&&!r)return t;const o=[{...t,offset:t.offset+n.length,content:i}];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o}))))}(o));const m={...i,get source(){return r}};for(const t of we(n))o=t.tokens?.call(m,o)||o;return function(t,e,n){const i=we(e),r=[],o={type:"root",children:[]},{structure:s="classic"}=e;let l={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter((([t])=>!t.startsWith("_"))))},children:[]},a={type:"element",tagName:"code",properties:{},children:r};const u=[],c={...n,structure:s,addClassToHast:Jt,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return o},get pre(){return l},get code(){return a},get lines(){return u}};if(t.forEach(((t,e)=>{e&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&r.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},l=0;for(const r of t){let t={type:"element",tagName:"span",properties:{},children:[{type:"text",value:r.content}]};const a=r.htmlStyle||Qt(Yt(r));a&&(t.properties.style=a);for(const r of i)t=r?.span?.call(c,t,e+1,l,n)||t;"inline"===s?o.children.push(t):"classic"===s&&n.children.push(t),l+=r.content.length}if("classic"===s){for(const t of i)n=t?.line?.call(c,n,e+1)||n;u.push(n),r.push(n)}})),"classic"===s){for(const t of i)a=t?.code?.call(c,a)||a;l.children.push(a);for(const t of i)l=t?.pre?.call(c,l)||l;o.children.push(l)}let m=o;for(const t of i)m=t?.root?.call(c,m)||m;return m}(o,{...n,fg:s,bg:l,themeName:a,rootStyle:u},m)}const je=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ve{constructor(t,e,n){this.property=t,this.normal=e,n&&(this.space=n)}}function Se(t,e){const n={},i={};let r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new ve(n,i,e)}function xe(t){return t.toLowerCase()}ve.prototype.property={},ve.prototype.normal={},ve.prototype.space=null;class Ce{constructor(t,e){this.property=t,this.attribute=e}}Ce.prototype.space=null,Ce.prototype.boolean=!1,Ce.prototype.booleanish=!1,Ce.prototype.overloadedBoolean=!1,Ce.prototype.number=!1,Ce.prototype.commaSeparated=!1,Ce.prototype.spaceSeparated=!1,Ce.prototype.commaOrSpaceSeparated=!1,Ce.prototype.mustUseProperty=!1,Ce.prototype.defined=!1;let Le=0;const Te=De(),Ae=De(),Pe=De(),Oe=De(),Me=De(),Ne=De(),_e=De();function De(){return 2**++Le}var Re=Object.freeze({__proto__:null,boolean:Te,booleanish:Ae,commaOrSpaceSeparated:_e,commaSeparated:Ne,number:Oe,overloadedBoolean:Pe,spaceSeparated:Me});const Ee=Object.keys(Re);class $e extends Ce{constructor(t,e,n,i){let r=-1;if(super(t,e),Be(this,"space",i),"number"==typeof n)for(;++r<Ee.length;){const t=Ee[r];Be(this,Ee[r],(n&Re[t])===Re[t])}}}function Be(t,e,n){n&&(t[e]=n)}$e.prototype.defined=!0;const Ie={}.hasOwnProperty;function Ge(t){const e={},n={};let i;for(i in t.properties)if(Ie.call(t.properties,i)){const r=t.properties[i],o=new $e(i,t.transform(t.attributes||{},i),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),e[i]=o,n[xe(i)]=i,n[xe(o.attribute)]=i}return new ve(e,n,t.space)}const ze=Ge({space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Fe=Ge({space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function He(t,e){return e in t?t[e]:e}function Ue(t,e){return He(t,e.toLowerCase())}const qe=Ge({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ue,properties:{xmlns:null,xmlnsXLink:null}}),We=Ge({transform:(t,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ae,ariaAutoComplete:null,ariaBusy:Ae,ariaChecked:Ae,ariaColCount:Oe,ariaColIndex:Oe,ariaColSpan:Oe,ariaControls:Me,ariaCurrent:null,ariaDescribedBy:Me,ariaDetails:null,ariaDisabled:Ae,ariaDropEffect:Me,ariaErrorMessage:null,ariaExpanded:Ae,ariaFlowTo:Me,ariaGrabbed:Ae,ariaHasPopup:null,ariaHidden:Ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Me,ariaLevel:Oe,ariaLive:null,ariaModal:Ae,ariaMultiLine:Ae,ariaMultiSelectable:Ae,ariaOrientation:null,ariaOwns:Me,ariaPlaceholder:null,ariaPosInSet:Oe,ariaPressed:Ae,ariaReadOnly:Ae,ariaRelevant:null,ariaRequired:Ae,ariaRoleDescription:Me,ariaRowCount:Oe,ariaRowIndex:Oe,ariaRowSpan:Oe,ariaSelected:Ae,ariaSetSize:Oe,ariaSort:null,ariaValueMax:Oe,ariaValueMin:Oe,ariaValueNow:Oe,ariaValueText:null,role:null}}),Ve=Ge({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ue,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ne,acceptCharset:Me,accessKey:Me,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:Me,autoFocus:Te,autoPlay:Te,blocking:Me,capture:null,charSet:null,checked:Te,cite:null,className:Me,cols:Oe,colSpan:null,content:null,contentEditable:Ae,controls:Te,controlsList:Me,coords:Oe|Ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:Pe,draggable:Ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:Me,height:Oe,hidden:Te,high:Oe,href:null,hrefLang:null,htmlFor:Me,httpEquiv:Me,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:Me,itemRef:Me,itemScope:Te,itemType:Me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:Oe,manifest:null,max:null,maxLength:Oe,media:null,method:null,min:null,minLength:Oe,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:Oe,pattern:null,ping:Me,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:Me,required:Te,reversed:Te,rows:Oe,rowSpan:Oe,sandbox:Me,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:Oe,sizes:null,slot:null,span:Oe,spellCheck:Ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Oe,step:null,style:null,tabIndex:Oe,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:Ae,width:Oe,wrap:null,align:null,aLink:null,archive:Me,axis:null,background:null,bgColor:null,border:Oe,borderColor:null,bottomMargin:Oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:Oe,leftMargin:Oe,link:null,longDesc:null,lowSrc:null,marginHeight:Oe,marginWidth:Oe,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:Oe,rules:null,scheme:null,scrolling:Ae,standby:null,summary:null,text:null,topMargin:Oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:Oe,security:null,unselectable:null}}),Je=Ge({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:He,properties:{about:_e,accentHeight:Oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Oe,amplitude:Oe,arabicForm:null,ascent:Oe,attributeName:null,attributeType:null,azimuth:Oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Oe,by:null,calcMode:null,capHeight:Oe,className:Me,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Oe,diffuseConstant:Oe,direction:null,display:null,dur:null,divisor:Oe,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:Oe,enableBackground:null,end:null,event:null,exponent:Oe,externalResourcesRequired:null,fill:null,fillOpacity:Oe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Oe,horizOriginX:Oe,horizOriginY:Oe,id:null,ideographic:Oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Oe,k:Oe,k1:Oe,k2:Oe,k3:Oe,k4:Oe,kernelMatrix:_e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Oe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Oe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Oe,overlineThickness:Oe,paintOrder:null,panose1:null,path:null,pathLength:Oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Oe,pointsAtY:Oe,pointsAtZ:Oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_e,rev:_e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_e,requiredFeatures:_e,requiredFonts:_e,requiredFormats:_e,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Oe,specularExponent:Oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Oe,strikethroughThickness:Oe,string:null,stroke:null,strokeDashArray:_e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Oe,strokeOpacity:Oe,strokeWidth:null,style:null,surfaceScale:Oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_e,tabIndex:Oe,tableValues:null,target:null,targetX:Oe,targetY:Oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Oe,underlineThickness:Oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Oe,values:null,vAlphabetic:Oe,vMathematical:Oe,vectorEffect:null,vHanging:Oe,vIdeographic:Oe,version:null,vertAdvY:Oe,vertOriginX:Oe,vertOriginY:Oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Xe=/^data[-\w.:]+$/i,Ke=/-[a-z]/g,Ye=/[A-Z]/g;function Qe(t){return"-"+t.toLowerCase()}function Ze(t){return t.charAt(1).toUpperCase()}const tn=Se([Fe,ze,qe,We,Ve],"html"),en=Se([Fe,ze,qe,We,Je],"svg"),nn={}.hasOwnProperty;function rn(t,e){return t=t.replace(e.subset?function(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}(e.subset):/["&'<>`]/g,n),e.subset||e.escapeOnly?t:t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e)}}const on=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],sn={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ln=["cent","copy","divide","gt","lt","not","para","times"],an={}.hasOwnProperty,un={};let cn;for(cn in sn)an.call(sn,cn)&&(un[sn[cn]]=cn);function mn(t,e,n){let i,r=function(t,e,n){const i="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?i:i+";"}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){const r=String.fromCharCode(t);if(an.call(un,r)){const t=un[r],o="&"+t;return n&&on.includes(t)&&!ln.includes(t)&&(!i||e&&61!==e&&/[^\da-z]/i.test(String.fromCharCode(e)))?o:o+";"}return""}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const i=function(t,e,n){const i="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?i:i+";"}(t,e,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function pn(t,e){return rn(t,Object.assign({format:mn},e))}const hn=/^>|^->|<!--|-->|--!>|<!-$/g,dn=[">"],fn=["<",">"];function gn(t,e){const n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");let i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i}function yn(t,e){const n=e||{};return(""===t[t.length-1]?[...t,""]:t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function bn(t){return t.join(" ").trim()}const wn=/[ \t\n\f\r]/g;function kn(t){return"object"==typeof t?"text"===t.type&&jn(t.value):jn(t)}function jn(t){return""===t.replace(wn,"")}const vn=Cn(1),Sn=Cn(-1),xn=[];function Cn(t){return function(e,n,i){const r=e?e.children:xn;let o=(n||0)+t,s=r[o];if(!i)for(;s&&kn(s);)o+=t,s=r[o];return s}}const Ln={}.hasOwnProperty;function Tn(t){return function(e,n,i){return Ln.call(t,e.tagName)&&t[e.tagName](e,n,i)}}const An=Tn({body:function(t,e,n){const i=vn(n,e);return!i||"comment"!==i.type},caption:Pn,colgroup:Pn,dd:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(t,e,n){const i=vn(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:Pn,html:function(t,e,n){const i=vn(n,e);return!i||"comment"!==i.type},li:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(t,e,n){const i=vn(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:On,rt:On,tbody:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:Mn,tfoot:function(t,e,n){return!vn(n,e)},th:Mn,thead:function(t,e,n){const i=vn(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&"tr"===i.tagName}});function Pn(t,e,n){const i=vn(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&kn(i.value.charAt(0)))}function On(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function Mn(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}const Nn=Tn({body:function(t){const e=vn(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&kn(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)))},colgroup:function(t,e,n){const i=Sn(n,e),r=vn(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&An(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName)},head:function(t){const e=t.children,n=[];let i=-1;for(;++i<e.length;){const t=e[i];if("element"===t.type&&("title"===t.tagName||"base"===t.tagName)){if(n.includes(t.tagName))return!1;n.push(t.tagName)}}return e.length>0},html:function(t){const e=vn(t,-1);return!e||"comment"!==e.type},tbody:function(t,e,n){const i=Sn(n,e),r=vn(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&An(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName)}});const _n={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Dn(t,e,n){const i=function(t,e){const n=xe(e);let i=e,r=Ce;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Xe.test(e)){if("-"===e.charAt(4)){const t=e.slice(5).replace(Ke,Ze);i="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=e.slice(4);if(!Ke.test(t)){let n=t.replace(Ye,Qe);"-"!==n.charAt(0)&&(n="-"+n),e="data"+n}}r=$e}return new r(i,e)}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;let s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i.boolean||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const a=pn(i.attribute,Object.assign({},t.settings.characterReferences,{subset:_n.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?yn:bn)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=pn(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:_n.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&gn(n,l)>gn(n,t.alternative)&&(l=t.alternative),s=l+pn(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?_n.single:_n.double)[r][o],attribute:!0}))+l),a+(s?"="+s:s)))}const Rn=["<","&"];function En(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?pn(t.value,Object.assign({},i.settings.characterReferences,{subset:Rn})):t.value}const $n=function(t,e){const n=e||{};function i(e,...n){let r=i.invalid;const o=i.handlers;if(e&&nn.call(e,t)){const n=String(e[t]);r=nn.call(o,n)?o[n]:i.unknown}if(r)return r.call(this,e,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}("type",{invalid:function(t){throw new Error("Expected node, not `"+t+"`")},unknown:function(t){throw new Error("Cannot compile unknown node `"+t.type+"`")},handlers:{comment:function(t,e,n,i){return i.settings.bogusComments?"<?"+pn(t.value,Object.assign({},i.settings.characterReferences,{subset:dn}))+">":"\x3c!--"+t.value.replace(hn,(function(t){return pn(t,Object.assign({},i.settings.characterReferences,{subset:fn}))}))+"--\x3e"},doctype:function(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(t,e,n,i){const r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;let s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());const l=[];let a;"html"===r.space&&"svg"===t.tagName&&(i.schema=en);const u=function(t,e){const n=[];let i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){const r=Dn(t,i,e[i]);r&&n.push(r)}for(;++r<n.length;){const e=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==e&&"'"!==e&&(n[r]+=" ")}return n.join("")}(i,t.properties),c=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,c&&(s=!1),!u&&o&&Nn(t,e,n)||(l.push("<",t.tagName,u?" "+u:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),s||o&&An(t,e,n)||l.push("</"+t.tagName+">"),l.join("")},raw:function(t,e,n,i){return i.settings.allowDangerousHtml?t.value:En(t,0,n,i)},root:function(t,e,n,i){return i.all(t)},text:En}});const Bn={},In={},Gn=[];function zn(t,e,n){return $n(t,e,n,this)}function Fn(t){const e=[],n=t&&t.children||Gn;let i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("")}function Hn(t,e,n){const i={meta:{},options:n,codeToHast:(e,n)=>ke(t,e,n),codeToTokens:(e,n)=>ge(t,e,n)};let r=function(t,e){const n=e||Bn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:zn,all:Fn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||je,characterReferences:n.characterReferences||In,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?en:tn,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}(ke(t,e,n,i));for(const t of we(n))r=t.postprocess?.call(i,r,n)||r;return r}async function Un(t){let e,n;const i={};function r(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t)}function o(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1}catch{}}const s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function l(t,e){return t?function(t,e,n=1024){const i=e+n;let r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));let o="";for(;e<r;){let n=t[e++];if(!(128&n)){o+=String.fromCharCode(n);continue}const i=63&t[e++];if(192==(224&n)){o+=String.fromCharCode((31&n)<<6|i);continue}const r=63&t[e++];if(n=224==(240&n)?(15&n)<<12|i<<6|r:(7&n)<<18|i<<12|r<<6|63&t[e++],n<65536)o+=String.fromCharCode(n);else{const t=n-65536;o+=String.fromCharCode(55296|t>>10,56320|1023&t)}}return o}(i.HEAPU8,t,e):""}const a={emscripten_get_now:function(){return"undefined"!=typeof performance?performance.now():Date.now()},emscripten_memcpy_big:function(t,e,n){i.HEAPU8.copyWithin(t,e,e+n)},emscripten_resize_heap:function(t){const e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;const r=(t,e)=>t+(e-t%e)%e;for(let i=1;i<=4;i*=2){let s=e*(1+.2/i);s=Math.min(s,t+100663296);if(o(Math.min(n,r(Math.max(t,s),65536))))return!0}return!1},fd_write:()=>0};return await async function(){const n={env:a,wasi_snapshot_preview1:a},o=await t(n);e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l}(),i}let qn,Wn=null;class Vn{static _utf8ByteLength(t){let e=0;for(let n=0,i=t.length;n<i;n++){const r=t.charCodeAt(n);let o=r,s=!1;if(r>=55296&&r<=56319&&n+1<i){const e=t.charCodeAt(n+1);e>=56320&&e<=57343&&(o=65536+(r-55296<<10)|e-56320,s=!0)}e+=o<=127?1:o<=2047?2:o<=65535?3:4,s&&n++}return e}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(t){const e=t.length,n=Vn._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);const o=i?new Uint32Array(n+1):null;i&&(o[n]=e);const s=new Uint8Array(n);let l=0;for(let n=0;n<e;n++){const a=t.charCodeAt(n);let u=a,c=!1;if(a>=55296&&a<=56319&&n+1<e){const e=t.charCodeAt(n+1);e>=56320&&e<=57343&&(u=65536+(a-55296<<10)|e-56320,c=!0)}i&&(r[n]=l,c&&(r[n+1]=l),u<=127?o[l+0]=n:u<=2047?(o[l+0]=n,o[l+1]=n):u<=65535?(o[l+0]=n,o[l+1]=n,o[l+2]=n):(o[l+0]=n,o[l+1]=n,o[l+2]=n,o[l+3]=n)),u<=127?s[l++]=u:u<=2047?(s[l++]=192|(1984&u)>>>6,s[l++]=128|(63&u)>>>0):u<=65535?(s[l++]=224|(61440&u)>>>12,s[l++]=128|(4032&u)>>>6,s[l++]=128|(63&u)>>>0):(s[l++]=240|(1835008&u)>>>18,s[l++]=128|(258048&u)>>>12,s[l++]=128|(4032&u)>>>6,s[l++]=128|(63&u)>>>0),c&&n++}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o}createString(t){const e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e}}class Jn{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++Jn.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(t){if(!Wn)throw new le("Must invoke loadWasm first.");this._onigBinding=Wn,this.content=t;const e=new Vn(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!Jn._sharedPtrInUse?(Jn._sharedPtr||(Jn._sharedPtr=Wn.omalloc(1e4)),Jn._sharedPtrInUse=!0,Wn.HEAPU8.set(e.utf8Value,Jn._sharedPtr),this.ptr=Jn._sharedPtr):this.ptr=e.createString(Wn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Jn._sharedPtr?Jn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class Xn{_onigBinding;_ptr;constructor(t){if(!Wn)throw new le("Must invoke loadWasm first.");const e=[],n=[];for(let i=0,r=t.length;i<r;i++){const r=new Vn(t[i]);e[i]=r.createString(Wn),n[i]=r.utf8Length}const i=Wn.omalloc(4*t.length);Wn.HEAPU32.set(e,i/4);const r=Wn.omalloc(4*t.length);Wn.HEAPU32.set(n,r/4);const o=Wn.createOnigScanner(i,r,t.length);for(let n=0,i=t.length;n<i;n++)Wn.ofree(e[n]);Wn.ofree(r),Wn.ofree(i),0===o&&function(t){throw new le(t.UTF8ToString(t.getLastOnigError()))}(Wn),this._onigBinding=Wn,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,e,n){let i=false,r=0;if("number"==typeof n?(8&n&&(i=!0),r=n):"boolean"==typeof n&&(i=n),"string"==typeof t){t=new Jn(t);const n=this._findNextMatchSync(t,e,i,r);return t.dispose(),n}return this._findNextMatchSync(t,e,i,r)}_findNextMatchSync(t,e,n,i){const r=this._onigBinding;let o;if(o=n?r.findNextOnigScannerMatchDbg(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i):r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i),0===o)return null;const s=r.HEAPU32;let l=o/4;const a=s[l++],u=s[l++],c=[];for(let e=0;e<u;e++){const n=t.convertUtf8OffsetToUtf16(s[l++]),i=t.convertUtf8OffsetToUtf16(s[l++]);c[e]={start:n,end:i,length:i-n}}return{index:a,captureIndices:c}}}function Kn(t){if(qn)return qn;return qn=async function(){Wn=await Un((async e=>{let n=t;var i;return n=await n,"function"==typeof n&&(n=await n(e)),"function"==typeof n&&(n=await n(e)),"function"==typeof n.instantiator?n=await n.instantiator(e):!function(t){return"function"==typeof t.default}(n)?(function(t){return void 0!==t.data}(n)&&(n=n.data),!function(t){return"undefined"!=typeof Response&&t instanceof Response}(n)?!function(t){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array}(n)?n instanceof WebAssembly.Module?n=await Yn(n)(e):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Yn(n.default)(e)):n=await Yn(n)(e):n="function"==typeof WebAssembly.instantiateStreaming?await(i=n,t=>WebAssembly.instantiateStreaming(i,t))(e):await function(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}(n)(e)):n=await n.default(e),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n}))}(),qn}function Yn(t){return e=>WebAssembly.instantiate(t,e)}const Qn={light:"#333333",dark:"#bbbbbb"},Zn={light:"#fffffe",dark:"#1e1e1e"},ti="__shiki_resolved";function ei(t){if(t?.[ti])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:i}=e;if(!n||!i){const t=e.settings?e.settings.find((t=>!t.name&&!t.scope)):void 0;t?.settings?.foreground&&(i=t.settings.foreground),t?.settings?.background&&(n=t.settings.background),!i&&e?.colors?.["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?Qn.light:Qn.dark),n||(n="light"===e.type?Zn.light:Zn.dark),e.fg=i,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let r=0;const o=new Map;function s(t){if(o.has(t))return o.get(t);r+=1;const n=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${n}`]?s(t):(o.set(t,n),n)}e.settings=e.settings.map((t=>{const n=t.settings?.foreground&&!t.settings.foreground.startsWith("#"),i=t.settings?.background&&!t.settings.background.startsWith("#");if(!n&&!i)return t;const r={...t,settings:{...t.settings}};if(n){const n=s(t.settings.foreground);e.colorReplacements[n]=t.settings.foreground,r.settings.foreground=n}if(i){const n=s(t.settings.background);e.colorReplacements[n]=t.settings.background,r.settings.background=n}return r}));for(const t of Object.keys(e.colors||{}))if(("editor.foreground"===t||"editor.background"===t||t.startsWith("terminal.ansi"))&&!e.colors[t]?.startsWith("#")){const n=s(e.colors[t]);e.colorReplacements[n]=e.colors[t],e.colors[t]=n}return Object.defineProperty(e,ti,{enumerable:!1,writable:!1,value:!0}),e}class ni extends At{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(t,e,n,i={}){super(t),this._resolver=t,this._themes=e,this._langs=n,this._alias=i,e.forEach((t=>this.loadTheme(t))),n.forEach((t=>this.loadLanguage(t)))}getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const e=ei(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let e=this._textmateThemeCache.get(t);e||(e=et.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e)}getGrammar(t){if(this._alias[t]){const e=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],e.has(t))throw new le(`Circular alias \`${Array.from(e).join(" -> ")} -> ${t}\``);e.add(t)}}return this._resolvedGrammars.get(t)}async loadLanguage(t){if(this.getGrammar(t.name))return;const e=new Set([...this._langMap.values()].filter((e=>e.embeddedLangsLazy?.includes(t.name))));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=await this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach((e=>{this._alias[e]=t.name})),this._loadedLanguagesCache=null,e.size)for(const t of e)this._resolvedGrammars.delete(t.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(t.scopeName),this._syncRegistry?._grammars?.delete(t.scopeName),await this.loadLanguage(this._langMap.get(t.name))}async init(){this._themes.map((t=>this.loadTheme(t))),await this.loadLanguages(this._langs)}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}async loadLanguages(t){for(const e of t)this.resolveEmbeddedLanguages(e);const e=Array.from(this._langGraph.entries()),n=e.filter((([t,e])=>!e));if(n.length){const t=e.filter((([t,e])=>e&&e.embeddedLangs?.some((t=>n.map((([t])=>t)).includes(t))))).filter((t=>!n.includes(t)));throw new le(`Missing languages ${n.map((([t])=>`\`${t}\``)).join(", ")}, required by ${t.map((([t])=>`\`${t}\``)).join(", ")}`)}for(const[t,n]of e)this._resolver.addLanguage(n);for(const[t,n]of e)await this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const e of t.embeddedLangs)this._langGraph.set(e,this._langMap.get(e))}}class ii{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLibPromise;constructor(t,e){this._onigLibPromise=t,e.forEach((t=>this.addLanguage(t)))}get onigLib(){return this._onigLibPromise}getLangRegistration(t){return this._langs.get(t)}async loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach((e=>{this._langs.set(e,t)})),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach((e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(t.scopeName)}))}getInjections(t){const e=t.split(".");let n=[];for(let t=1;t<=e.length;t++){const i=e.slice(0,t).join(".");n=[...n,...this._injections.get(i)||[]]}return n}}let ri,oi=0;async function si(t={}){oi+=1,!1!==t.warnings&&oi>=10&&oi%10==0&&console.warn(`[Shiki] ${oi} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;async function n(t){return Promise.resolve("function"==typeof t?t():t).then((t=>t.default||t))}async function i(t){return Array.from(new Set((await Promise.all(t.filter((t=>!qt(t))).map((async t=>await n(t).then((t=>Array.isArray(t)?t:[t])))))).flat()))}const r=t.loadWasm||ri,[o,s]=await Promise.all([Promise.all((t.themes||[]).map(n)).then((t=>t.map(ei))),i(t.langs||[]),r?Kn(r):void 0]),l=new ii(Promise.resolve({createOnigScanner:t=>function(t){return new Xn(t)}(t),createOnigString:t=>new Jn(t)}),s),a=new ni(l,o,s,t.langAlias);let u;function c(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();const e=a.getTheme(t);if(!e)throw new le(`Theme \`${t}\` not found, you may need to load it first`);return e}function m(){if(e)throw new le("Shiki instance has been disposed")}function p(){e||(e=!0,a.dispose(),oi-=1)}return await a.init(),{setTheme:function(t){m();const e=c(t);return u!==t&&(a.setTheme(e),u=t),{theme:e,colorMap:a.getColorMap()}},getTheme:c,getLanguage:function(t){m();const e=a.getGrammar("string"==typeof t?t:t.name);if(!e)throw new le(`Language \`${t}\` not found, you may need to load it first`);return e},getLoadedThemes:function(){return m(),a.getLoadedThemes()},getLoadedLanguages:function(){return m(),a.getLoadedLanguages()},loadLanguage:async function(...t){m(),await a.loadLanguages(await i(t))},loadTheme:async function(...t){m(),await Promise.all(t.map((async t=>Vt(t)?null:a.loadTheme(await n(t)))))},dispose:p,[Symbol.dispose]:p}}async function li(t={}){const e=await si(t);return{getLastGrammarState:(t,n)=>function(t,e,n={}){const{lang:i="text",theme:r=t.getLoadedThemes()[0]}=n;if(Ut(i)||Wt(r))throw new le("Plain language does not have grammar state");if("ansi"===i)throw new le("ANSI language does not have grammar state");const{theme:o,colorMap:s}=t.setTheme(r),l=t.getLanguage(i);return new ae(ce(e,l,o,s,n).stateStack,l.name,o.name)}(e,t,n),codeToTokensBase:(t,n)=>ue(e,t,n),codeToTokensWithThemes:(t,n)=>fe(e,t,n),codeToTokens:(t,n)=>ge(e,t,n),codeToHast:(t,n)=>ke(e,t,n),codeToHtml:(t,n)=>Hn(e,t,n),...e,getInternalContext:()=>e}}function ai(t,e,n){return async function(i){function r(e){if("string"==typeof e){if(qt(e))return[];const n=t[e];if(!n)throw new le(`Language \`${e}\` is not included in this bundle. You may want to load it from external source.`);return n}return e}function o(t){if(Vt(t))return"none";if("string"==typeof t){const n=e[t];if(!n)throw new le(`Theme \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}const s=(i.themes??[]).map((t=>o(t))),l=(i.langs??[]).map((t=>r(t))),a=await li({...i,themes:s,langs:l,loadWasm:n});return{...a,loadLanguage:(...t)=>a.loadLanguage(...t.map(r)),loadTheme:(...t)=>a.loadTheme(...t.map(o))}}}function ui(t){const e=function(t){let e;return async function(n={}){if(e){const t=await e;return await Promise.all([t.loadTheme(...n.themes||[]),t.loadLanguage(...n.langs||[])]),t}return e=t({...n,themes:n.themes||[],langs:n.langs||[]}),e}}(t);return{getSingletonHighlighter:t=>e(t),codeToHtml:async(t,n)=>(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHtml(t,n),codeToHast:async(t,n)=>(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHast(t,n),codeToTokens:async(t,n)=>(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToTokens(t,n),codeToTokensBase:async(t,n)=>(await e({langs:[n.lang],themes:[n.theme]})).codeToTokensBase(t,n),codeToTokensWithThemes:async(t,n)=>(await e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)})).codeToTokensWithThemes(t,n),getLastGrammarState:async(t,n)=>(await e({langs:[n.lang],themes:[n.theme]})).getLastGrammarState(t,n)}}const ci=ai(a,m,u),{codeToHtml:mi,codeToHast:pi,codeToTokens:hi,codeToTokensBase:di,codeToTokensWithThemes:fi,getSingletonHighlighter:gi,getLastGrammarState:yi}=ui(ci);let bi=class extends o{constructor(){super(...arguments),this.code="",this.language="javascript",this.theme="min-light",this.highlightedCode=""}static get styles(){return[r]}async updated(t){(t.has("code")||t.has("language")||t.has("theme"))&&(this.highlightedCode=await mi(this.code,{lang:this.language,theme:this.theme}),this.requestUpdate())}render(){return e`
1
+ import{__decorate as t}from"tslib";import{x as e}from"../index-0a3007c5.esm.js";import{state as n,customElement as i}from"lit/decorators.js";import{s as r}from"./nile-highlighter.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";import{n as s}from"../property-09139d3c.esm.js";import"lit";const l=[{id:"abap",name:"ABAP",import:()=>import("../abap-2ef251fe.esm.js")},{id:"actionscript-3",name:"ActionScript",import:()=>import("../actionscript-3-9b143f19.esm.js")},{id:"ada",name:"Ada",import:()=>import("../ada-eb2c7f45.esm.js")},{id:"angular-html",name:"Angular HTML",import:()=>import("../angular-html-83bf04c8.esm.js").then((function(t){return t.f}))},{id:"angular-ts",name:"Angular TypeScript",import:()=>import("../angular-ts-9372a509.esm.js")},{id:"apache",name:"Apache Conf",import:()=>import("../apache-ff114010.esm.js")},{id:"apex",name:"Apex",import:()=>import("../apex-11727737.esm.js")},{id:"apl",name:"APL",import:()=>import("../apl-ceb7f746.esm.js")},{id:"applescript",name:"AppleScript",import:()=>import("../applescript-071acaac.esm.js")},{id:"ara",name:"Ara",import:()=>import("../ara-71dfd065.esm.js")},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>import("../asciidoc-45b24fbf.esm.js")},{id:"asm",name:"Assembly",import:()=>import("../asm-2a1204a6.esm.js")},{id:"astro",name:"Astro",import:()=>import("../astro-de938e80.esm.js")},{id:"awk",name:"AWK",import:()=>import("../awk-7b1f0d01.esm.js")},{id:"ballerina",name:"Ballerina",import:()=>import("../ballerina-293c7c4a.esm.js")},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>import("../bat-e43e2fa3.esm.js")},{id:"beancount",name:"Beancount",import:()=>import("../beancount-7cbf2cab.esm.js")},{id:"berry",name:"Berry",aliases:["be"],import:()=>import("../berry-75d2ee55.esm.js")},{id:"bibtex",name:"BibTeX",import:()=>import("../bibtex-1d977042.esm.js")},{id:"bicep",name:"Bicep",import:()=>import("../bicep-5e830f9b.esm.js")},{id:"blade",name:"Blade",import:()=>import("../blade-2264b2c2.esm.js")},{id:"c",name:"C",import:()=>import("../c-734959e1.esm.js")},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>import("../cadence-f374b5d9.esm.js")},{id:"clarity",name:"Clarity",import:()=>import("../clarity-a554063b.esm.js")},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>import("../clojure-ca057a9b.esm.js")},{id:"cmake",name:"CMake",import:()=>import("../cmake-6441f0dd.esm.js")},{id:"cobol",name:"COBOL",import:()=>import("../cobol-be2962c5.esm.js")},{id:"codeowners",name:"CODEOWNERS",import:()=>import("../codeowners-2c8e205d.esm.js")},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>import("../codeql-9deb9f5d.esm.js")},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>import("../coffee-c6466093.esm.js")},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>import("../common-lisp-f41c8864.esm.js")},{id:"coq",name:"Coq",import:()=>import("../coq-2b59f292.esm.js")},{id:"cpp",name:"C++",aliases:["c++"],import:()=>import("../cpp-f55a9d05.esm.js")},{id:"crystal",name:"Crystal",import:()=>import("../crystal-5e351a7d.esm.js")},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>import("../csharp-f2426298.esm.js")},{id:"css",name:"CSS",import:()=>import("../css-a917ae01.esm.js")},{id:"csv",name:"CSV",import:()=>import("../csv-63a72bf6.esm.js")},{id:"cue",name:"CUE",import:()=>import("../cue-58aaec8f.esm.js")},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>import("../cypher-525eefc3.esm.js")},{id:"d",name:"D",import:()=>import("../d-52748f0a.esm.js")},{id:"dart",name:"Dart",import:()=>import("../dart-9b99c73f.esm.js")},{id:"dax",name:"DAX",import:()=>import("../dax-17b452e8.esm.js")},{id:"desktop",name:"Desktop",import:()=>import("../desktop-510a2947.esm.js")},{id:"diff",name:"Diff",import:()=>import("../diff-a772c67e.esm.js")},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>import("../docker-086ffca5.esm.js")},{id:"dotenv",name:"dotEnv",import:()=>import("../dotenv-2978380a.esm.js")},{id:"dream-maker",name:"Dream Maker",import:()=>import("../dream-maker-98780a71.esm.js")},{id:"edge",name:"Edge",import:()=>import("../edge-edf19358.esm.js")},{id:"elixir",name:"Elixir",import:()=>import("../elixir-cc7e389a.esm.js")},{id:"elm",name:"Elm",import:()=>import("../elm-874b6280.esm.js")},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>import("../emacs-lisp-976f6566.esm.js")},{id:"erb",name:"ERB",import:()=>import("../erb-baff1e72.esm.js")},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>import("../erlang-dd5f32ab.esm.js")},{id:"fennel",name:"Fennel",import:()=>import("../fennel-a9a5817d.esm.js")},{id:"fish",name:"Fish",import:()=>import("../fish-36e5559b.esm.js")},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>import("../fluent-d916023b.esm.js")},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>import("../fortran-fixed-form-e32b3142.esm.js")},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>import("../fortran-free-form-b64c941f.esm.js")},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>import("../fsharp-941d0410.esm.js")},{id:"gdresource",name:"GDResource",import:()=>import("../gdresource-a8db5728.esm.js")},{id:"gdscript",name:"GDScript",import:()=>import("../gdscript-2d04813a.esm.js")},{id:"gdshader",name:"GDShader",import:()=>import("../gdshader-adef3cb9.esm.js")},{id:"genie",name:"Genie",import:()=>import("../genie-e5022426.esm.js")},{id:"gherkin",name:"Gherkin",import:()=>import("../gherkin-38fbb737.esm.js")},{id:"git-commit",name:"Git Commit Message",import:()=>import("../git-commit-277814c1.esm.js")},{id:"git-rebase",name:"Git Rebase Message",import:()=>import("../git-rebase-a164f4f3.esm.js")},{id:"gleam",name:"Gleam",import:()=>import("../gleam-79f887fd.esm.js")},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>import("../glimmer-js-cccbe40f.esm.js")},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>import("../glimmer-ts-521b2228.esm.js")},{id:"glsl",name:"GLSL",import:()=>import("../glsl-fc3df368.esm.js")},{id:"gnuplot",name:"Gnuplot",import:()=>import("../gnuplot-c85433fd.esm.js")},{id:"go",name:"Go",import:()=>import("../go-4f07a643.esm.js")},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>import("../graphql-8220c47b.esm.js")},{id:"groovy",name:"Groovy",import:()=>import("../groovy-a6837a0e.esm.js")},{id:"hack",name:"Hack",import:()=>import("../hack-293f8300.esm.js")},{id:"haml",name:"Ruby Haml",import:()=>import("../haml-2548eb67.esm.js")},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>import("../handlebars-4b3b8499.esm.js")},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>import("../haskell-4c421fe6.esm.js")},{id:"haxe",name:"Haxe",import:()=>import("../haxe-5ddba774.esm.js")},{id:"hcl",name:"HashiCorp HCL",import:()=>import("../hcl-a31e2e2a.esm.js")},{id:"hjson",name:"Hjson",import:()=>import("../hjson-938cc0c1.esm.js")},{id:"hlsl",name:"HLSL",import:()=>import("../hlsl-edec4f45.esm.js")},{id:"html",name:"HTML",import:()=>import("../html-02a4ff1c.esm.js")},{id:"html-derivative",name:"HTML (Derivative)",import:()=>import("../html-derivative-32350dd1.esm.js")},{id:"http",name:"HTTP",import:()=>import("../http-5eea627d.esm.js")},{id:"hxml",name:"HXML",import:()=>import("../hxml-0bc88b01.esm.js")},{id:"hy",name:"Hy",import:()=>import("../hy-541fc0fe.esm.js")},{id:"imba",name:"Imba",import:()=>import("../imba-3de6c65e.esm.js")},{id:"ini",name:"INI",aliases:["properties"],import:()=>import("../ini-42cfe2b2.esm.js")},{id:"java",name:"Java",import:()=>import("../java-f65b6ae0.esm.js")},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>import("../javascript-135b50c5.esm.js")},{id:"jinja",name:"Jinja",import:()=>import("../jinja-a441323f.esm.js")},{id:"jison",name:"Jison",import:()=>import("../jison-6b8399b9.esm.js")},{id:"json",name:"JSON",import:()=>import("../json-4a5fa3d0.esm.js")},{id:"json5",name:"JSON5",import:()=>import("../json5-c9bbf866.esm.js")},{id:"jsonc",name:"JSON with Comments",import:()=>import("../jsonc-f0f67551.esm.js")},{id:"jsonl",name:"JSON Lines",import:()=>import("../jsonl-58b92ec8.esm.js")},{id:"jsonnet",name:"Jsonnet",import:()=>import("../jsonnet-8da71b15.esm.js")},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>import("../jssm-1a42c1a0.esm.js")},{id:"jsx",name:"JSX",import:()=>import("../jsx-bd697c95.esm.js")},{id:"julia",name:"Julia",aliases:["jl"],import:()=>import("../julia-289248e3.esm.js")},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>import("../kotlin-9232cba2.esm.js")},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>import("../kusto-07203cec.esm.js")},{id:"latex",name:"LaTeX",import:()=>import("../latex-d31ca0af.esm.js")},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>import("../lean-05f837d6.esm.js")},{id:"less",name:"Less",import:()=>import("../less-263f5e43.esm.js")},{id:"liquid",name:"Liquid",import:()=>import("../liquid-c993ad48.esm.js")},{id:"log",name:"Log file",import:()=>import("../log-33a08973.esm.js")},{id:"logo",name:"Logo",import:()=>import("../logo-4193fe20.esm.js")},{id:"lua",name:"Lua",import:()=>import("../lua-25c4eb2e.esm.js")},{id:"luau",name:"Luau",import:()=>import("../luau-5ba2b962.esm.js")},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>import("../make-a26a0432.esm.js")},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>import("../markdown-75d773fc.esm.js")},{id:"marko",name:"Marko",import:()=>import("../marko-b0214c2c.esm.js")},{id:"matlab",name:"MATLAB",import:()=>import("../matlab-cf4f4486.esm.js")},{id:"mdc",name:"MDC",import:()=>import("../mdc-49e95e46.esm.js")},{id:"mdx",name:"MDX",import:()=>import("../mdx-361922df.esm.js")},{id:"mermaid",name:"Mermaid",import:()=>import("../mermaid-0aa9a240.esm.js")},{id:"mojo",name:"Mojo",import:()=>import("../mojo-1c43c50b.esm.js")},{id:"move",name:"Move",import:()=>import("../move-c24b00d7.esm.js")},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>import("../narrat-cb61b35a.esm.js")},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>import("../nextflow-f85a84cd.esm.js")},{id:"nginx",name:"Nginx",import:()=>import("../nginx-67dc121b.esm.js")},{id:"nim",name:"Nim",import:()=>import("../nim-36b64a7a.esm.js")},{id:"nix",name:"Nix",import:()=>import("../nix-901641e7.esm.js")},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>import("../nushell-5a232e75.esm.js")},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>import("../objective-c-2ef86a9a.esm.js")},{id:"objective-cpp",name:"Objective-C++",import:()=>import("../objective-cpp-d1e9bc90.esm.js")},{id:"ocaml",name:"OCaml",import:()=>import("../ocaml-c4db6d4c.esm.js")},{id:"pascal",name:"Pascal",import:()=>import("../pascal-95cf3080.esm.js")},{id:"perl",name:"Perl",import:()=>import("../perl-df7bca97.esm.js")},{id:"php",name:"PHP",import:()=>import("../php-8766a552.esm.js")},{id:"plsql",name:"PL/SQL",import:()=>import("../plsql-79e8273a.esm.js")},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>import("../po-b4d7f8b9.esm.js")},{id:"postcss",name:"PostCSS",import:()=>import("../postcss-06cbb9f8.esm.js")},{id:"powerquery",name:"PowerQuery",import:()=>import("../powerquery-1ee6802a.esm.js")},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>import("../powershell-85ccb665.esm.js")},{id:"prisma",name:"Prisma",import:()=>import("../prisma-d01c258b.esm.js")},{id:"prolog",name:"Prolog",import:()=>import("../prolog-2b081e53.esm.js")},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>import("../proto-7cb7fd99.esm.js")},{id:"pug",name:"Pug",aliases:["jade"],import:()=>import("../pug-25742758.esm.js")},{id:"puppet",name:"Puppet",import:()=>import("../puppet-d0bd9ae5.esm.js")},{id:"purescript",name:"PureScript",import:()=>import("../purescript-7d4e7818.esm.js")},{id:"python",name:"Python",aliases:["py"],import:()=>import("../python-5fff859f.esm.js")},{id:"qml",name:"QML",import:()=>import("../qml-ab811562.esm.js")},{id:"qmldir",name:"QML Directory",import:()=>import("../qmldir-24b48c33.esm.js")},{id:"qss",name:"Qt Style Sheets",import:()=>import("../qss-e29728df.esm.js")},{id:"r",name:"R",import:()=>import("../r-5c773de0.esm.js")},{id:"racket",name:"Racket",import:()=>import("../racket-cb4f07f4.esm.js")},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>import("../raku-c5715ad9.esm.js")},{id:"razor",name:"ASP.NET Razor",import:()=>import("../razor-4e426344.esm.js")},{id:"reg",name:"Windows Registry Script",import:()=>import("../reg-267543d0.esm.js")},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>import("../regexp-1330402b.esm.js")},{id:"rel",name:"Rel",import:()=>import("../rel-b89b2814.esm.js")},{id:"riscv",name:"RISC-V",import:()=>import("../riscv-5ee76d2d.esm.js")},{id:"rst",name:"reStructuredText",import:()=>import("../rst-32451dee.esm.js")},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>import("../ruby-b8bcac40.esm.js")},{id:"rust",name:"Rust",aliases:["rs"],import:()=>import("../rust-34dcc560.esm.js")},{id:"sas",name:"SAS",import:()=>import("../sas-a63d17a8.esm.js")},{id:"sass",name:"Sass",import:()=>import("../sass-cfca6b84.esm.js")},{id:"scala",name:"Scala",import:()=>import("../scala-82429b85.esm.js")},{id:"scheme",name:"Scheme",import:()=>import("../scheme-b1f3c344.esm.js")},{id:"scss",name:"SCSS",import:()=>import("../scss-37dd9d2f.esm.js")},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>import("../shaderlab-0c978703.esm.js")},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>import("../shellscript-9a12df8f.esm.js")},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>import("../shellsession-a931a3f3.esm.js")},{id:"smalltalk",name:"Smalltalk",import:()=>import("../smalltalk-1ca92bf9.esm.js")},{id:"solidity",name:"Solidity",import:()=>import("../solidity-857fee54.esm.js")},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>import("../soy-63ee8cec.esm.js")},{id:"sparql",name:"SPARQL",import:()=>import("../sparql-aabd10e5.esm.js")},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>import("../splunk-724382a5.esm.js")},{id:"sql",name:"SQL",import:()=>import("../sql-1872dc46.esm.js")},{id:"ssh-config",name:"SSH Config",import:()=>import("../ssh-config-a7d5e234.esm.js")},{id:"stata",name:"Stata",import:()=>import("../stata-686bedfa.esm.js")},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>import("../stylus-9703d8d7.esm.js")},{id:"svelte",name:"Svelte",import:()=>import("../svelte-00ac1b62.esm.js")},{id:"swift",name:"Swift",import:()=>import("../swift-bd46f924.esm.js")},{id:"system-verilog",name:"SystemVerilog",import:()=>import("../system-verilog-fff413d1.esm.js")},{id:"systemd",name:"Systemd Units",import:()=>import("../systemd-c9ce059c.esm.js")},{id:"tasl",name:"Tasl",import:()=>import("../tasl-56981c00.esm.js")},{id:"tcl",name:"Tcl",import:()=>import("../tcl-4ce4ed7c.esm.js")},{id:"templ",name:"Templ",import:()=>import("../templ-7b16d4f0.esm.js")},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>import("../terraform-fb9eeb41.esm.js")},{id:"tex",name:"TeX",import:()=>import("../tex-2f58fc60.esm.js")},{id:"toml",name:"TOML",import:()=>import("../toml-46433230.esm.js")},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>import("../ts-tags-7b4b630f.esm.js")},{id:"tsv",name:"TSV",import:()=>import("../tsv-e2ae86b4.esm.js")},{id:"tsx",name:"TSX",import:()=>import("../tsx-108d8077.esm.js")},{id:"turtle",name:"Turtle",import:()=>import("../turtle-fc9dac1d.esm.js")},{id:"twig",name:"Twig",import:()=>import("../twig-25cabcad.esm.js")},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>import("../typescript-16547010.esm.js")},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>import("../typespec-5b65452b.esm.js")},{id:"typst",name:"Typst",aliases:["typ"],import:()=>import("../typst-0f6bf426.esm.js")},{id:"v",name:"V",import:()=>import("../v-ffc36ee5.esm.js")},{id:"vala",name:"Vala",import:()=>import("../vala-233dc539.esm.js")},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>import("../vb-f1fcd8ac.esm.js")},{id:"verilog",name:"Verilog",import:()=>import("../verilog-6fcb9167.esm.js")},{id:"vhdl",name:"VHDL",import:()=>import("../vhdl-58f77ab7.esm.js")},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>import("../viml-ef675e87.esm.js")},{id:"vue",name:"Vue",import:()=>import("../vue-8a11ba51.esm.js")},{id:"vue-html",name:"Vue HTML",import:()=>import("../vue-html-223d6d0d.esm.js")},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>import("../vyper-e3091092.esm.js")},{id:"wasm",name:"WebAssembly",import:()=>import("../wasm-639177f5.esm.js")},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>import("../wenyan-8d0469db.esm.js")},{id:"wgsl",name:"WGSL",import:()=>import("../wgsl-1f4a6566.esm.js")},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>import("../wikitext-194e2520.esm.js")},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>import("../wolfram-feda13d4.esm.js")},{id:"xml",name:"XML",import:()=>import("../xml-f29991a3.esm.js")},{id:"xsl",name:"XSL",import:()=>import("../xsl-742eedb7.esm.js")},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>import("../yaml-ac1a9738.esm.js")},{id:"zenscript",name:"ZenScript",import:()=>import("../zenscript-be6eb514.esm.js")},{id:"zig",name:"Zig",import:()=>import("../zig-215f1bfa.esm.js")}],a={...Object.fromEntries(l.map((t=>[t.id,t.import]))),...Object.fromEntries(l.flatMap((t=>t.aliases?.map((e=>[e,t.import]))||[])))},u=async t=>import("../wasm-ec34668d.esm.js").then((e=>e.default(t))),c=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>import("../andromeeda-5d950407.esm.js")},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>import("../aurora-x-ef4469d5.esm.js")},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>import("../ayu-dark-02c5eda5.esm.js")},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>import("../catppuccin-frappe-374da941.esm.js")},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>import("../catppuccin-latte-0443a123.esm.js")},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>import("../catppuccin-macchiato-f40edfee.esm.js")},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>import("../catppuccin-mocha-9325f879.esm.js")},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>import("../dark-plus-6e6fe59a.esm.js")},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>import("../dracula-2692338e.esm.js")},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>import("../dracula-soft-6693d958.esm.js")},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>import("../everforest-dark-c8bfaab7.esm.js")},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>import("../everforest-light-d4dc4485.esm.js")},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>import("../github-dark-fcfdd973.esm.js")},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>import("../github-dark-default-2a934605.esm.js")},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>import("../github-dark-dimmed-7180e6f5.esm.js")},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>import("../github-dark-high-contrast-bf87cfb0.esm.js")},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>import("../github-light-e7a28cff.esm.js")},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>import("../github-light-default-210b3eff.esm.js")},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>import("../github-light-high-contrast-3683d923.esm.js")},{id:"houston",displayName:"Houston",type:"dark",import:()=>import("../houston-c05ac28d.esm.js")},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>import("../laserwave-bf73c7ca.esm.js")},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>import("../light-plus-29d176d7.esm.js")},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>import("../material-theme-2eae845f.esm.js")},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>import("../material-theme-darker-8fa5687b.esm.js")},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>import("../material-theme-lighter-d8ffc3a3.esm.js")},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>import("../material-theme-ocean-015b70e7.esm.js")},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>import("../material-theme-palenight-bc1384ec.esm.js")},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>import("../min-dark-8505a270.esm.js")},{id:"min-light",displayName:"Min Light",type:"light",import:()=>import("../min-light-0666da1a.esm.js")},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>import("../monokai-6a66f188.esm.js")},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>import("../night-owl-29c1d219.esm.js")},{id:"nord",displayName:"Nord",type:"dark",import:()=>import("../nord-9b4df92f.esm.js")},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>import("../one-dark-pro-6ca8f674.esm.js")},{id:"one-light",displayName:"One Light",type:"light",import:()=>import("../one-light-14248a14.esm.js")},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>import("../poimandres-d61560a5.esm.js")},{id:"red",displayName:"Red",type:"dark",import:()=>import("../red-7842649b.esm.js")},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>import("../rose-pine-5671b666.esm.js")},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>import("../rose-pine-dawn-5f8448ab.esm.js")},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>import("../rose-pine-moon-f769c9d9.esm.js")},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>import("../slack-dark-61b35310.esm.js")},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>import("../slack-ochin-ceebc179.esm.js")},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>import("../snazzy-light-cf013f4c.esm.js")},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>import("../solarized-dark-e78ef35f.esm.js")},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>import("../solarized-light-069d7924.esm.js")},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>import("../synthwave-84-c91fabd4.esm.js")},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>import("../tokyo-night-ed39d8c0.esm.js")},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>import("../vesper-ca1042cf.esm.js")},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>import("../vitesse-black-02f9013c.esm.js")},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>import("../vitesse-dark-362560d8.esm.js")},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>import("../vitesse-light-64c34e5b.esm.js")}],m=Object.fromEntries(c.map((t=>[t.id,t.import])));var p,h;function d(t,e){const n=[],i=function(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const i=n[0];return n=e.exec(t),i}}}(t);let r=i.next();for(;null!==r;){let t=0;if(2===r.length&&":"===r.charAt(1)){switch(r.charAt(0)){case"R":t=1;break;case"L":t=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=i.next()}let e=s();if(n.push({matcher:e,priority:t}),","!==r)break;r=i.next()}return n;function o(){if("-"===r){r=i.next();const t=o();return e=>!!t&&!t(e)}if("("===r){r=i.next();const t=function(){const t=[];let e=s();for(;e&&(t.push(e),"|"===r||","===r);){do{r=i.next()}while("|"===r||","===r);e=s()}return e=>t.some((t=>t(e)))}();return")"===r&&(r=i.next()),t}if(f(r)){const t=[];do{t.push(r),r=i.next()}while(f(r));return n=>e(t,n)}return null}function s(){const t=[];let e=o();for(;e;)t.push(e),e=o();return e=>t.every((t=>t(e)))}}function f(t){return!!t&&!!t.match(/[\w\.:]+/)}function g(t){"function"==typeof t.dispose&&t.dispose()}function y(t){return Array.isArray(t)?function(t){let e=[];for(let n=0,i=t.length;n<i;n++)e[n]=y(t[n]);return e}(t):"object"==typeof t?function(t){let e={};for(let n in t)e[n]=y(t[n]);return e}(t):t}function b(t,...e){return e.forEach((e=>{for(let n in e)t[n]=e[n]})),t}function w(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===e?t:~e==t.length-1?w(t.substring(0,t.length-1)):t.substr(1+~e)}!function(t){t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline"}(p||(p={})),"undefined"!=typeof process&&process.env.VSCODE_TEXTMATE_DEBUG,function(t){t.toBinaryStr=function(t){return t.toString(2).padStart(32,"0")},t.print=function(e){const n=t.getLanguageId(e),i=t.getTokenType(e),r=t.getFontStyle(e),o=t.getForeground(e),s=t.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s})},t.getLanguageId=function(t){return(255&t)>>>0},t.getTokenType=function(t){return(768&t)>>>8},t.containsBalancedBrackets=function(t){return!!(1024&t)},t.getFontStyle=function(t){return(30720&t)>>>11},t.getForeground=function(t){return(16744448&t)>>>15},t.getBackground=function(t){return(4278190080&t)>>>24},t.set=function(e,n,i,r,o,s,l){let a=t.getLanguageId(e),u=t.getTokenType(e),c=t.containsBalancedBrackets(e)?1:0,m=t.getFontStyle(e),p=t.getForeground(e),h=t.getBackground(e);return 0!==n&&(a=n),8!==i&&(u=i),null!==r&&(c=r?1:0),-1!==o&&(m=o),0!==s&&(p=s),0!==l&&(h=l),(a|u<<8|c<<10|m<<11|p<<15|h<<24)>>>0}}(h||(h={}));let k=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class j{static hasCaptures(t){return null!==t&&(k.lastIndex=0,k.test(t))}static replaceCaptures(t,e,n){return t.replace(k,((t,i,r,o)=>{let s=n[parseInt(i||r,10)];if(!s)return t;{let t=e.substring(s.start,s.end);for(;"."===t[0];)t=t.substring(1);switch(o){case"downcase":return t.toLowerCase();case"upcase":return t.toUpperCase();default:return t}}}))}}function v(t,e){return t<e?-1:t>e?1:0}function S(t,e){if(null===t&&null===e)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,i=e.length;if(n===i){for(let i=0;i<n;i++){let n=v(t[i],e[i]);if(0!==n)return n}return 0}return n-i}function x(t){return!!/^#[0-9a-f]{6}$/i.test(t)||(!!/^#[0-9a-f]{8}$/i.test(t)||(!!/^#[0-9a-f]{3}$/i.test(t)||!!/^#[0-9a-f]{4}$/i.test(t)))}function C(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class L{fn;cache=new Map;constructor(t){this.fn=t}get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}}class T{scopeName;constructor(t){this.scopeName=t}toKey(){return this.scopeName}}class A{scopeName;ruleName;constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}}class P{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}}class O{repo;initialScopeName;seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new T(this.initialScopeName)]}processQueue(){const t=this.Q;this.Q=[];const e=new P;for(const n of t)M(n,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof T){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName))continue;if(this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}}function M(t,e,n,i){const r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=n.lookup(e);t instanceof T?_({baseGrammar:o,selfGrammar:r},i):N(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);const s=n.injections(t.scopeName);if(s)for(const t of s)i.add(new T(t))}function N(t,e,n){if(e.repository&&e.repository[t]){D([e.repository[t]],e,n)}}function _(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&D(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&D(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function D(t,e,n){for(const i of t){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const t=i.repository?b({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&D(i.patterns,{...e,repository:t},n);const r=i.include;if(!r)continue;const o=G(r);switch(o.kind){case 0:_({...e,selfGrammar:e.baseGrammar},n);break;case 1:_(e,n);break;case 2:N(o.ruleName,{...e,repository:t},n);break;case 3:case 4:const i=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(i){const r={baseGrammar:e.baseGrammar,selfGrammar:i,repository:t};4===o.kind?N(o.ruleName,r,n):_(r,n)}else 4===o.kind?n.add(new A(o.scopeName,o.ruleName)):n.add(new T(o.scopeName))}}}class R{kind=0}class E{kind=1}class ${ruleName;kind=2;constructor(t){this.ruleName=t}}class B{scopeName;kind=3;constructor(t){this.scopeName=t}}class I{scopeName;ruleName;kind=4;constructor(t,e){this.scopeName=t,this.ruleName=e}}function G(t){if("$base"===t)return new R;if("$self"===t)return new E;const e=t.indexOf("#");if(-1===e)return new B(t);if(0===e)return new $(t.substring(1));{const n=t.substring(0,e),i=t.substring(e+1);return new I(n,i)}}const H=/\\(\d+)/,q=/\\(\d+)/g,z=-1,F=-2;class U{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,i){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=j.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=j.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${w(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return this._nameIsCapturing&&null!==this._name&&null!==t&&null!==e?j.replaceCaptures(this._name,t,e):this._name}getContentName(t,e){return this._contentNameIsCapturing&&null!==this._contentName?j.replaceCaptures(this._contentName,t,e):this._contentName}}class W extends U{retokenizeCapturedWithRuleId;constructor(t,e,n,i,r){super(t,e,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,n,i){throw new Error("Not supported!")}}class V extends U{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,i,r){super(t,e,n,null),this._match=new Q(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class J extends U{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,i,r){super(t,e,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const n of this.patterns){t.getRule(n).collectPatterns(t,e)}}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Z,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class X extends U{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,i,r,o,s,l,a,u){super(t,e,n,i),this._begin=new Q(r,this.id),this.beginCaptures=o,this._end=new Q(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=a||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z;for(const e of this.patterns){t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}}class K extends U{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,i,r,o,s,l,a){super(t,e,n,i),this._begin=new Q(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new Q(s,F),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Z;for(const e of this.patterns){t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Z,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}}class Y{static createCaptureRule(t,e,n,i,r){return t.registerRule((t=>new W(e,t,n,i,r)))}static getCompiledRuleId(t,e,n){return t.id||e.registerRule((i=>{if(t.id=i,t.match)return new V(t.$vscodeTextmateLocation,t.id,t.name,t.match,Y._compileCaptures(t.captures,e,n));if(void 0===t.begin){t.repository&&(n=b({},n,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new J(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Y._compilePatterns(i,e,n))}return t.while?new K(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Y._compileCaptures(t.beginCaptures||t.captures,e,n),t.while,Y._compileCaptures(t.whileCaptures||t.captures,e,n),Y._compilePatterns(t.patterns,e,n)):new X(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Y._compileCaptures(t.beginCaptures||t.captures,e,n),t.end,Y._compileCaptures(t.endCaptures||t.captures,e,n),t.applyEndPatternLast,Y._compilePatterns(t.patterns,e,n))})),t.id}static _compileCaptures(t,e,n){let i=[];if(t){let r=0;for(const e in t){if("$vscodeTextmateLocation"===e)continue;const t=parseInt(e,10);t>r&&(r=t)}for(let t=0;t<=r;t++)i[t]=null;for(const r in t){if("$vscodeTextmateLocation"===r)continue;const o=parseInt(r,10);let s=0;t[r].patterns&&(s=Y.getCompiledRuleId(t[r],e,n)),i[o]=Y.createCaptureRule(e,t[r].$vscodeTextmateLocation,t[r].name,t[r].contentName,s)}}return i}static _compilePatterns(t,e,n){let i=[];if(t)for(let r=0,o=t.length;r<o;r++){const o=t[r];let s=-1;if(o.include){const t=G(o.include);switch(t.kind){case 0:case 1:s=Y.getCompiledRuleId(n[o.include],e,n);break;case 2:let i=n[t.ruleName];i&&(s=Y.getCompiledRuleId(i,e,n));break;case 3:case 4:const r=t.scopeName,l=4===t.kind?t.ruleName:null,a=e.getExternalGrammar(r,n);if(a)if(l){let t=a.repository[l];t&&(s=Y.getCompiledRuleId(t,e,a.repository))}else s=Y.getCompiledRuleId(a.repository.$self,e,a.repository)}}else s=Y.getCompiledRuleId(o,e,n);if(-1!==s){const t=e.getRule(s);let n=!1;if((t instanceof J||t instanceof X||t instanceof K)&&t.hasMissingPatterns&&0===t.patterns.length&&(n=!0),n)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}}class Q{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,e){if(t){const e=t.length;let n=0,i=[],r=!1;for(let o=0;o<e;o++){if("\\"===t.charAt(o)&&o+1<e){const e=t.charAt(o+1);"z"===e?(i.push(t.substring(n,o)),i.push("$(?!\\n)(?<!\\n)"),n=o+2):"A"!==e&&"G"!==e||(r=!0),o++}}this.hasAnchor=r,0===n?this.source=t:(i.push(t.substring(n,e)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=e,this.hasBackReferences=H.test(this.source)}clone(){return new Q(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,e){let n=e.map((e=>t.substring(e.start,e.end)));return q.lastIndex=0,this.source.replace(q,((t,e)=>C(n[parseInt(e,10)]||"")))}_buildAnchorCache(){let t,e,n,i,r=[],o=[],s=[],l=[];for(t=0,e=this.source.length;t<e;t++)n=this.source.charAt(t),r[t]=n,o[t]=n,s[t]=n,l[t]=n,"\\"===n&&t+1<e&&(i=this.source.charAt(t+1),"A"===i?(r[t+1]="￿",o[t+1]="￿",s[t+1]="A",l[t+1]="A"):"G"===i?(r[t+1]="￿",o[t+1]="G",s[t+1]="￿",l[t+1]="G"):(r[t+1]=i,o[t+1]=i,s[t+1]=i,l[t+1]=i),t++);return{A0_G0:r.join(""),A0_G1:o.join(""),A1_G0:s.join(""),A1_G1:l.join("")}}resolveAnchors(t,e){return this.hasAnchor&&this._anchorCache?t?e?this._anchorCache.A1_G1:this._anchorCache.A1_G0:e?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}}class Z{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map((t=>t.source));this._cached=new tt(t,e,this._items.map((t=>t.ruleId)))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let i=this._items.map((t=>t.resolveAnchors(e,n)));return new tt(t,i,this._items.map((t=>t.ruleId)))}}class tt{regExps;rules;scanner;constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join("\n")}findNextMatchSync(t,e,n){const i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}}class et{_colorMap;_defaults;_root;static createFromRawTheme(t,e){return this.createFromParsedTheme(function(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],i=0;for(let t=0,r=e.length;t<r;t++){let r,o=e[t];if(!o.settings)continue;if("string"==typeof o.scope){let t=o.scope;t=t.replace(/^[,]+/,""),t=t.replace(/[,]+$/,""),r=t.split(",")}else r=Array.isArray(o.scope)?o.scope:[""];let s=-1;if("string"==typeof o.settings.fontStyle){s=0;let t=o.settings.fontStyle.split(" ");for(let e=0,n=t.length;e<n;e++){switch(t[e]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}}let l=null;"string"==typeof o.settings.foreground&&x(o.settings.foreground)&&(l=o.settings.foreground);let a=null;"string"==typeof o.settings.background&&x(o.settings.background)&&(a=o.settings.background);for(let e=0,o=r.length;e<o;e++){let o=r[e].trim().split(" "),u=o[o.length-1],c=null;o.length>1&&(c=o.slice(0,o.length-1),c.reverse()),n[i++]=new ot(u,c,t,s,l,a)}}return n}(t),e)}static createFromParsedTheme(t,e){return function(t,e){t.sort(((t,e)=>{let n=v(t.scope,e.scope);return 0!==n?n:(n=S(t.parentScopes,e.parentScopes),0!==n?n:t.index-e.index)}));let n=0,i="#000000",r="#ffffff";for(;t.length>=1&&""===t[0].scope;){let e=t.shift();-1!==e.fontStyle&&(n=e.fontStyle),null!==e.foreground&&(i=e.foreground),null!==e.background&&(r=e.background)}let o=new st(e),s=new rt(n,o.getId(i),o.getId(r)),l=new at(new lt(0,null,-1,0,0),[]);for(let e=0,n=t.length;e<n;e++){let n=t[e];l.insert(0,n.scope,n.parentScopes,n.fontStyle,o.getId(n.foreground),o.getId(n.background))}return new et(o,s,l)}(t,e)}_cachedMatchRoot=new L((t=>this._root.match(t)));constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(null===t)return this._defaults;const e=t.scopeName,n=this._cachedMatchRoot.get(e).find((e=>function(t,e){if(null===e)return!0;let n=0,i=e[n];for(;t;){if(it(t.scopeName,i)){if(n++,n===e.length)return!0;i=e[n]}t=t.parent}return!1}(t.parent,e.parentScopes)));return n?new rt(n.fontStyle,n.foreground,n.background):null}}class nt{parent;scopeName;static push(t,e){for(const n of e)t=new nt(t,n);return t}static from(...t){let e=null;for(let n=0;n<t.length;n++)e=new nt(e,t[n]);return e}constructor(t,e){this.parent=t,this.scopeName=e}push(t){return new nt(this,t)}getSegments(){let t=this;const e=[];for(;t;)e.push(t.scopeName),t=t.parent;return e.reverse(),e}toString(){return this.getSegments().join(" ")}extends(t){return this===t||null!==this.parent&&this.parent.extends(t)}getExtensionIfDefined(t){const e=[];let n=this;for(;n&&n!==t;)e.push(n.scopeName),n=n.parent;return n===t?e.reverse():void 0}}function it(t,e){return e===t||t.startsWith(e)&&"."===t[e.length]}class rt{fontStyle;foregroundId;backgroundId;constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}}class ot{scope;parentScopes;index;fontStyle;foreground;background;constructor(t,e,n,i,r,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o}}class st{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(null===t)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}}class lt{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,e,n,i,r){this.scopeDepth=t,this.parentScopes=e,this.fontStyle=n,this.foreground=i,this.background=r}clone(){return new lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let e=[];for(let n=0,i=t.length;n<i;n++)e[n]=t[n].clone();return e}acceptOverwrite(t,e,n,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,-1!==e&&(this.fontStyle=e),0!==n&&(this.foreground=n),0!==i&&(this.background=i)}}class at{_mainRule;_children;_rulesWithParentScopes;constructor(t,e=[],n={}){this._mainRule=t,this._children=n,this._rulesWithParentScopes=e}static _sortBySpecificity(t){return 1===t.length||t.sort(this._cmpBySpecificity),t}static _cmpBySpecificity(t,e){if(t.scopeDepth===e.scopeDepth){const n=t.parentScopes,i=e.parentScopes;let r=null===n?0:n.length,o=null===i?0:i.length;if(r===o)for(let t=0;t<r;t++){const e=n[t].length,r=i[t].length;if(e!==r)return r-e}return o-r}return e.scopeDepth-t.scopeDepth}match(t){if(""===t)return at._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let e,n,i=t.indexOf(".");return-1===i?(e=t,n=""):(e=t.substring(0,i),n=t.substring(i+1)),this._children.hasOwnProperty(e)?this._children[e].match(n):at._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(t,e,n,i,r,o){if(""===e)return void this._doInsertHere(t,n,i,r,o);let s,l,a,u=e.indexOf(".");-1===u?(s=e,l=""):(s=e.substring(0,u),l=e.substring(u+1)),this._children.hasOwnProperty(s)?a=this._children[s]:(a=new at(this._mainRule.clone(),lt.cloneArr(this._rulesWithParentScopes)),this._children[s]=a),a.insert(t+1,l,n,i,r,o)}_doInsertHere(t,e,n,i,r){if(null!==e){for(let o=0,s=this._rulesWithParentScopes.length;o<s;o++){let s=this._rulesWithParentScopes[o];if(0===S(s.parentScopes,e))return void s.acceptOverwrite(t,n,i,r)}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===r&&(r=this._mainRule.background),this._rulesWithParentScopes.push(new lt(t,e,n,i,r))}else this._mainRule.acceptOverwrite(t,n,i,r)}}class ut{languageId;tokenType;constructor(t,e){this.languageId=t,this.tokenType=e}}class ct{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,e){this._defaultAttributes=new ut(t,8),this._embeddedLanguagesMatcher=new mt(Object.entries(e||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?ct._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ut(0,0);_getBasicScopeAttributes=new L((t=>{const e=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new ut(e,n)}));_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const e=t.match(ct.STANDARD_TOKEN_TYPE_REGEXP);if(!e)return 8;switch(e[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/}class mt{values;scopesRegExp;constructor(t){if(0===t.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map((([t,e])=>C(t)));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0}}class pt{stack;stoppedEarly;constructor(t,e){this.stack=t,this.stoppedEarly=e}}function ht(t,e,n,i,r,o,s,l){const a=e.content.length;let u=!1,c=-1;if(s){const s=function(t,e,n,i,r,o){let s=r.beginRuleCapturedEOL?0:-1;const l=[];for(let e=r;e;e=e.pop()){const n=e.getRule(t);n instanceof K&&l.push({rule:n,stack:e})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:l,findOptions:u}=ft(a.rule,t,a.stack.endRule,n,i===s),c=l.findNextMatchSync(e,i,u);if(!c){r=a.stack.pop();break}if(c.ruleId!==F){r=a.stack.pop();break}c.captureIndices&&c.captureIndices.length&&(o.produce(a.stack,c.captureIndices[0].start),gt(t,e,n,a.stack,o,a.rule.whileCaptures,c.captureIndices),o.produce(a.stack,c.captureIndices[0].end),s=c.captureIndices[0].end,c.captureIndices[0].end>i&&(i=c.captureIndices[0].end,n=!1))}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n}}(t,e,n,i,r,o);r=s.stack,i=s.linePos,n=s.isFirstLine,c=s.anchorPosition}const m=Date.now();for(;!u;){if(0!==l){if(Date.now()-m>l)return new pt(r,!0)}p()}return new pt(r,!1);function p(){const s=function(t,e,n,i,r,o){const s=function(t,e,n,i,r,o){const s=r.getRule(t),{ruleScanner:l,findOptions:a}=dt(s,t,r.endRule,n,i===o),u=l.findNextMatchSync(e,i,a);if(u)return{captureIndices:u.captureIndices,matchedRuleId:u.ruleId};return null}(t,e,n,i,r,o),l=t.getInjections();if(0===l.length)return s;const a=function(t,e,n,i,r,o,s){let l,a=Number.MAX_VALUE,u=null,c=0;const m=o.contentNameScopesList.getScopeNames();for(let o=0,p=t.length;o<p;o++){const p=t[o];if(!p.matcher(m))continue;const h=e.getRule(p.ruleId),{ruleScanner:d,findOptions:f}=dt(h,e,null,i,r===s),g=d.findNextMatchSync(n,r,f);if(!g)continue;const y=g.captureIndices[0].start;if(!(y>=a)&&(a=y,u=g.captureIndices,l=g.ruleId,c=p.priority,a===r))break}if(u)return{priorityMatch:-1===c,captureIndices:u,matchedRuleId:l};return null}(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;const u=s.captureIndices[0].start,c=a.captureIndices[0].start;if(c<u||a.priorityMatch&&c===u)return a;return s}(t,e,n,i,r,c);if(!s)return o.produce(r,a),void(u=!0);const l=s.captureIndices,m=s.matchedRuleId,p=!!(l&&l.length>0)&&l[0].end>i;if(m===z){const s=r.getRule(t);o.produce(r,l[0].start),r=r.withContentNameScopesList(r.nameScopesList),gt(t,e,n,r,o,s.endCaptures,l),o.produce(r,l[0].end);const m=r;if(r=r.parent,c=m.getAnchorPos(),!p&&m.getEnterPos()===i)return r=m,o.produce(r,a),void(u=!0)}else{const s=t.getRule(m);o.produce(r,l[0].start);const h=r,d=s.getName(e.content,l),f=r.contentNameScopesList.pushAttributed(d,t);if(r=r.push(m,i,c,l[0].end===a,null,f,f),s instanceof X){const i=s;gt(t,e,n,r,o,i.beginCaptures,l),o.produce(r,l[0].end),c=l[0].end;const m=i.getContentName(e.content,l),d=f.pushAttributed(m,t);if(r=r.withContentNameScopesList(d),i.endHasBackReferences&&(r=r.withEndRule(i.getEndWithResolvedBackReferences(e.content,l))),!p&&h.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(u=!0)}else if(s instanceof K){const i=s;gt(t,e,n,r,o,i.beginCaptures,l),o.produce(r,l[0].end),c=l[0].end;const m=i.getContentName(e.content,l),d=f.pushAttributed(m,t);if(r=r.withContentNameScopesList(d),i.whileHasBackReferences&&(r=r.withEndRule(i.getWhileWithResolvedBackReferences(e.content,l))),!p&&h.hasSameRuleAs(r))return r=r.pop(),o.produce(r,a),void(u=!0)}else{if(gt(t,e,n,r,o,s.captures,l),o.produce(r,l[0].end),r=r.pop(),!p)return r=r.safePop(),o.produce(r,a),void(u=!0)}}l[0].end>i&&(i=l[0].end,n=!1)}}function dt(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0}}function ft(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0}}function gt(t,e,n,i,r,o,s){if(0===o.length)return;const l=e.content,a=Math.min(o.length,s.length),u=[],c=s[0].end;for(let e=0;e<a;e++){const a=o[e];if(null===a)continue;const m=s[e];if(0===m.length)continue;if(m.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=m.start;)r.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?r.produceFromScopes(u[u.length-1].scopes,m.start):r.produce(i,m.start),a.retokenizeCapturedWithRuleId){const e=a.getName(l,s),o=i.contentNameScopesList.pushAttributed(e,t),u=a.getContentName(l,s),c=o.pushAttributed(u,t),p=i.push(a.retokenizeCapturedWithRuleId,m.start,-1,!1,null,o,c),h=t.createOnigString(l.substring(0,m.end));ht(t,h,n&&0===m.start,m.start,p,r,!1,0),g(h);continue}const p=a.getName(l,s);if(null!==p){const e=(u.length>0?u[u.length-1].scopes:i.contentNameScopesList).pushAttributed(p,t);u.push(new yt(e,m.end))}}for(;u.length>0;)r.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}class yt{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}}function bt(t,e,n,i,r){const o=d(e,wt),s=Y.getCompiledRuleId(n,i,r.repository);for(const n of o)t.push({debugSelector:e,matcher:n.matcher,ruleId:s,grammar:r,priority:n.priority})}function wt(t,e){if(e.length<t.length)return!1;let n=0;return t.every((t=>{for(let i=n;i<e.length;i++)if(kt(e[i],t))return n=i+1,!0;return!1}))}function kt(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&"."===t[n]}class jt{_rootScopeName;balancedBracketSelectors;_onigLib;_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}constructor(t,e,n,i,r,o,s,l){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new ct(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=vt(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const t of Object.keys(r)){const e=d(t,wt);for(const n of e)this._tokenTypeMatchers.push({matcher:n.matcher,type:r[t]})}}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t=t=>t===this._rootScopeName?this._grammar:this.getExternalGrammar(t),e=[],n=this._rootScopeName,i=t(n);if(i){const t=i.injections;if(t)for(let n in t)bt(e,n,t[n],this,i);const r=this._grammarRepository.injections(n);r&&r.forEach((t=>{const n=this.getExternalGrammar(t);if(n){const t=n.injectionSelector;t&&bt(e,t,n,this,n)}}))}return e.sort(((t,e)=>t.priority-e.priority)),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=vt(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){const i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(t,e,n=0){const i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(t,e,n,i){let r;if(-1===this._rootId&&(this._rootId=Y.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==xt.NULL)r=!1,e.reset();else{r=!0;const t=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),i=h.set(0,t.languageId,t.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),o=this.getRule(this._rootId).getName(null,null);let s;s=o?St.createRootAndLookUpScopeName(o,i,this):St.createRoot("unknown",i),e=new xt(null,this._rootId,-1,-1,!1,null,s,s)}t+="\n";const o=this.createOnigString(t),s=o.content.length,l=new Lt(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=ht(this,o,r,0,e,l,!0,i);return g(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}}function vt(t,e){return(t=y(t)).repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}class St{parent;scopePath;tokenAttributes;static fromExtension(t,e){let n=t,i=t?.scopePath??null;for(const t of e)i=nt.push(i,t.scopeNames),n=new St(n,i,t.encodedTokenAttributes);return n}static createRoot(t,e){return new St(null,new nt(null,t),e)}static createRootAndLookUpScopeName(t,e,n){const i=n.getMetadataForScope(t),r=new nt(null,t),o=n.themeProvider.themeMatch(r),s=St.mergeAttributes(e,i,o);return new St(null,r,s)}get scopeName(){return this.scopePath.scopeName}constructor(t,e,n){this.parent=t,this.scopePath=e,this.tokenAttributes=n}toString(){return this.getScopeNames().join(" ")}equals(t){return St.equals(this,t)}static equals(t,e){for(;;){if(t===e)return!0;if(!t&&!e)return!0;if(!t||!e)return!1;if(t.scopeName!==e.scopeName||t.tokenAttributes!==e.tokenAttributes)return!1;t=t.parent,e=e.parent}}static mergeAttributes(t,e,n){let i=-1,r=0,o=0;return null!==n&&(i=n.fontStyle,r=n.foregroundId,o=n.backgroundId),h.set(t,e.languageId,e.tokenType,null,i,r,o)}pushAttributed(t,e){if(null===t)return this;if(-1===t.indexOf(" "))return St._pushAttributed(this,t,e);const n=t.split(/ /g);let i=this;for(const t of n)i=St._pushAttributed(i,t,e);return i}static _pushAttributed(t,e,n){const i=n.getMetadataForScope(e),r=t.scopePath.push(e),o=n.themeProvider.themeMatch(r),s=St.mergeAttributes(t.tokenAttributes,i,o);return new St(t,r,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const e=[];let n=this;for(;n&&n!==t;)e.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===t?e.reverse():void 0}}class xt{parent;ruleId;beginRuleCapturedEOL;endRule;nameScopesList;contentNameScopesList;_stackElementBrand=void 0;static NULL=new xt(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;constructor(t,e,n,i,r,o,s,l){this.parent=t,this.ruleId=e,this.beginRuleCapturedEOL=r,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(t){return null!==t&&xt._equals(this,t)}static _equals(t,e){return t===e||!!this._structuralEquals(t,e)&&St.equals(t.contentNameScopesList,e.contentNameScopesList)}static _structuralEquals(t,e){for(;;){if(t===e)return!0;if(!t&&!e)return!0;if(!t||!e)return!1;if(t.depth!==e.depth||t.ruleId!==e.ruleId||t.endRule!==e.endRule)return!1;t=t.parent,e=e.parent}}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){xt._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,e,n,i,r,o,s){return new xt(this,t,e,n,i,r,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,e){return this.parent&&(e=this.parent._writeString(t,e)),t[e++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,e}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new xt(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let e=this;for(;e&&e._enterPos===t._enterPos;){if(e.ruleId===t.ruleId)return!0;e=e.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,e){const n=St.fromExtension(t?.nameScopesList??null,e.nameScopesList);return new xt(t,e.ruleId,e.enterPos??-1,e.anchorPos??-1,e.beginRuleCapturedEOL,e.endRule,n,St.fromExtension(n,e.contentNameScopesList))}}class Ct{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap((t=>"*"===t?(this.allowAny=!0,[]):d(t,wt).map((t=>t.matcher)))),this.unbalancedBracketScopes=e.flatMap((t=>d(t,wt).map((t=>t.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}}class Lt{balancedBracketSelectors;_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;constructor(t,e,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=t?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const e=t?.getScopeNames()??[];for(const t of this._tokenTypeOverrides)t.matcher(e)&&(n=h.set(n,0,t.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(e))}return i&&(n=h.set(n,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=e))}const n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let t=0,e=this._binaryTokens.length;t<e;t++)n[t]=this._binaryTokens[t];return n}}class Tt{_onigLibPromise;_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;constructor(t,e){this._onigLibPromise=e,this._theme=t}dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}async grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,function(t,e,n,i,r,o,s,l){return new jt(t,e,n,i,r,o,s,l)}(t,o,e,n,i,r,this,await this._onigLibPromise))}return this._grammars.get(t)}}let At=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new Tt(et.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,e){this._syncRegistry.setTheme(et.createFromRawTheme(t,e))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,e,n){return this.loadGrammarWithConfiguration(t,e,{embeddedLanguages:n})}loadGrammarWithConfiguration(t,e,n){return this._loadGrammar(t,e,n.embeddedLanguages,n.tokenTypes,new Ct(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}async _loadGrammar(t,e,n,i,r){const o=new O(this._syncRegistry,t);for(;o.Q.length>0;)await Promise.all(o.Q.map((t=>this._loadSingleGrammar(t.scopeName)))),o.processQueue();return this._grammarForScopeName(t,e,n,i,r)}async _loadSingleGrammar(t){return this._ensureGrammarCache.has(t)||this._ensureGrammarCache.set(t,this._doLoadSingleGrammar(t)),this._ensureGrammarCache.get(t)}async _doLoadSingleGrammar(t){const e=await this._options.loadGrammar(t);if(e){const n="function"==typeof this._options.getInjections?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(e,n)}}async addGrammar(t,e=[],n=0,i=null){return this._syncRegistry.addGrammar(t,e),await this._grammarForScopeName(t.scopeName,n,i)}_grammarForScopeName(t,e=0,n=null,i=null,r=null){return this._syncRegistry.grammarForScopeName(t,e,n,i,r)}};const Pt=xt.NULL,Ot=255,Mt=768,Nt=1024,_t=14336,Dt=8372224,Rt=4286578688,Et=0,$t=8,Bt=10,It=11,Gt=15,Ht=24;class qt{static toBinaryStr(t){let e=t.toString(2);for(;e.length<32;)e=`0${e}`;return e}static getLanguageId(t){return(t&Ot)>>>Et}static getTokenType(t){return(t&Mt)>>>$t}static getFontStyle(t){return(t&_t)>>>It}static getForeground(t){return(t&Dt)>>>Gt}static getBackground(t){return(t&Rt)>>>Ht}static containsBalancedBrackets(t){return!!(t&Nt)}static set(t,e,n,i,r,o){let s=qt.getLanguageId(t),l=qt.getTokenType(t),a=qt.getFontStyle(t),u=qt.getForeground(t),c=qt.getBackground(t);const m=qt.containsBalancedBrackets(t)?1:0;return 0!==e&&(s=e),0!==n&&(l=8===n?0:n),i!==p.NotSet&&(a=i),0!==r&&(u=r),0!==o&&(c=o),(s<<Et|l<<$t|a<<It|m<<Bt|u<<Gt|c<<Ht)>>>0}}function zt(t,e=!1){const n=t.split(/(\r?\n)/g);let i=0;const r=[];for(let t=0;t<n.length;t+=2){const o=e?n[t]+(n[t+1]||""):n[t];r.push([o,i]),i+=n[t].length,i+=n[t+1]?.length||0}return r}function Ft(t){return!t||["plaintext","txt","text","plain"].includes(t)}function Ut(t){return"ansi"===t||Ft(t)}function Wt(t){return"none"===t}function Vt(t){return Wt(t)}function Jt(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],"string"==typeof t.properties.class&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(/\s+/g);for(const e of n)e&&!t.properties.class.includes(e)&&t.properties.class.push(e);return t}function Xt(t,e){const n="string"==typeof t?{}:{...t.colorReplacements},i="string"==typeof t?t:t.name;for(const[t,r]of Object.entries(e?.colorReplacements||{}))"string"==typeof r?n[t]=r:t===i&&Object.assign(n,r);return n}function Kt(t,e){return t&&e?.[t?.toLowerCase()]||t}function Yt(t){const e={};return t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle&&(t.fontStyle&p.Italic&&(e["font-style"]="italic"),t.fontStyle&p.Bold&&(e["font-weight"]="bold"),t.fontStyle&p.Underline&&(e["text-decoration"]="underline")),e}function Qt(t){return Object.entries(t).map((([t,e])=>`${t}:${e}`)).join(";")}var Zt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],te={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function ee(t,e){const n=t.indexOf("[",e);if(-1!==n){const e=t.indexOf("m",n);return{sequence:t.substring(n+2,e).split(";"),startPosition:n,position:e+1}}return{position:t.length}}function ne(t,e){let n=1;const i=t[e+n++];let r;if("2"===i){const i=[t[e+n++],t[e+n++],t[e+n]].map((t=>Number.parseInt(t)));3!==i.length||i.some((t=>Number.isNaN(t)))||(r={type:"rgb",rgb:i})}else if("5"===i){const i=Number.parseInt(t[e+n]);Number.isNaN(i)||(r={type:"table",index:Number(i)})}return[n,r]}function ie(t){const e=[];for(let n=0;n<t.length;n++){const i=t[n],r=Number.parseInt(i);if(!Number.isNaN(r))if(0===r)e.push({type:"resetAll"});else if(r<=9){te[r]&&e.push({type:"setDecoration",value:te[r]})}else if(r<=29){const t=te[r-20];t&&e.push({type:"resetDecoration",value:t})}else if(r<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Zt[r-30]}});else if(38===r){const[i,r]=ne(t,n);r&&e.push({type:"setForegroundColor",value:r}),n+=i}else if(39===r)e.push({type:"resetForegroundColor"});else if(r<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Zt[r-40]}});else if(48===r){const[i,r]=ne(t,n);r&&e.push({type:"setBackgroundColor",value:r}),n+=i}else 49===r?e.push({type:"resetBackgroundColor"}):r>=90&&r<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Zt[r-90+8]}}):r>=100&&r<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Zt[r-100+8]}})}return e}var re={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function oe(t=re){function e(e){return t[e]}function n(t){return`#${t.map((t=>Math.max(0,Math.min(t,255)).toString(16).padStart(2,"0"))).join("")}`}let i;function r(t){return function(){if(i)return i;i=[];for(let t=0;t<Zt.length;t++)i.push(e(Zt[t]));let t=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let r=0;r<6;r++)for(let o=0;o<6;o++)i.push(n([t[e],t[r],t[o]]));let r=8;for(let t=0;t<24;t++,r+=10)i.push(n([r,r,r]));return i}()[t]}return{value:function(t){switch(t.type){case"named":return e(t.name);case"rgb":return n(t.rgb);case"table":return r(t.index)}}}}function se(t,e,n){const i=Xt(t,n),r=zt(e),o=oe(Object.fromEntries(Zt.map((e=>[e,t.colors?.[`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`]])))),s=function(){let t=null,e=null,n=new Set;return{parse(i){const r=[];let o=0;do{const s=ee(i,o),l=s.sequence?i.substring(o,s.startPosition):i.substring(o);if(l.length>0&&r.push({value:l,foreground:t,background:e,decorations:new Set(n)}),s.sequence){const i=ie(s.sequence);for(const r of i)"resetAll"===r.type?(t=null,e=null,n.clear()):"resetForegroundColor"===r.type?t=null:"resetBackgroundColor"===r.type?e=null:"resetDecoration"===r.type&&n.delete(r.value);for(const r of i)"setForegroundColor"===r.type?t=r.value:"setBackgroundColor"===r.type?e=r.value:"setDecoration"===r.type&&n.add(r.value)}o=s.position}while(o<i.length);return r}}}();return r.map((e=>s.parse(e[0]).map((n=>{let r,s;n.decorations.has("reverse")?(r=n.background?o.value(n.background):t.bg,s=n.foreground?o.value(n.foreground):t.fg):(r=n.foreground?o.value(n.foreground):t.fg,s=n.background?o.value(n.background):void 0),r=Kt(r,i),s=Kt(s,i),n.decorations.has("dim")&&(r=function(t){const e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){const t=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${t}`}return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map((t=>`${t}${t}`)).join("")}80`}const n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}(r));let l=p.None;return n.decorations.has("bold")&&(l|=p.Bold),n.decorations.has("italic")&&(l|=p.Italic),n.decorations.has("underline")&&(l|=p.Underline),{content:n.value,offset:e[1],color:r,bgColor:s,fontStyle:l}}))))}class le extends Error{constructor(t){super(t),this.name="ShikiError"}}class ae{_stack;lang;theme;static initial(t,e){return new ae(Pt,t,e)}constructor(t,e,n){this._stack=t,this.lang=e,this.theme=n}get scopes(){return function(t){const e=[],n=new Set;function i(t){if(n.has(t))return;n.add(t);const r=t?.nameScopesList?.scopeName;r&&e.push(r),t.parent&&i(t.parent)}return i(t),e}(this._stack)}toJSON(){return{lang:this.lang,theme:this.theme,scopes:this.scopes}}}function ue(t,e,n={}){const{lang:i="text",theme:r=t.getLoadedThemes()[0]}=n;if(Ft(i)||Wt(r))return zt(e).map((t=>[{content:t[0],offset:t[1]}]));const{theme:o,colorMap:s}=t.setTheme(r);if("ansi"===i)return se(o,e,n);const l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new le(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(n.grammarState.theme!==r)throw new le(`Grammar state theme "${n.grammarState.theme}" does not match highlight theme "${r}"`)}return function(t,e,n,i,r){return ce(t,e,n,i,r).tokens}(e,l,o,s,n)}function ce(t,e,n,i,r){const o=Xt(n,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=r,a=zt(t);let u=r.grammarState?function(t){if(!(t instanceof ae))throw new le("Invalid grammar state");return t._stack}(r.grammarState):null!=r.grammarContextCode?ce(r.grammarContextCode,e,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:Pt,c=[];const m=[];for(let t=0,h=a.length;t<h;t++){const[h,d]=a[t];if(""===h){c=[],m.push([]);continue}if(s>0&&h.length>=s){c=[],m.push([{content:h,offset:d,color:"",fontStyle:0}]);continue}let f,g,y;r.includeExplanation&&(f=e.tokenizeLine(h,u),g=f.tokens,y=0);const b=e.tokenizeLine2(h,u,l),w=b.tokens.length/2;for(let t=0;t<w;t++){const e=b.tokens[2*t],s=t+1<w?b.tokens[2*t+2]:h.length;if(e===s)continue;const l=b.tokens[2*t+1],a=Kt(i[qt.getForeground(l)],o),u=qt.getFontStyle(l),m={content:h.substring(e,s),offset:d+e,color:a,fontStyle:u};if(r.includeExplanation){const t=[];if("scopeName"!==r.includeExplanation)for(const e of n.settings){let n;switch(typeof e.scope){case"string":n=e.scope.split(/,/).map((t=>t.trim()));break;case"object":n=e.scope;break;default:continue}t.push({settings:e,selectors:n.map((t=>t.split(/ /)))})}m.explanation=[];let i=0;for(;e+i<s;){const e=g[y],n=h.substring(e.startIndex,e.endIndex);i+=n.length,m.explanation.push({content:n,scopes:"scopeName"===r.includeExplanation?(p=e.scopes,p.map((t=>({scopeName:t})))):me(t,e.scopes)}),y+=1}}c.push(m)}m.push(c),c=[],u=b.ruleStack}var p;return{tokens:m,stateStack:u}}function me(t,e){const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];n[i]={scopeName:r,themeMatches:de(t,r,e.slice(0,i))}}return n}function pe(t,e){return t===e||e.substring(0,t.length)===t&&"."===e[t.length]}function he(t,e,n){if(!pe(t[t.length-1],e))return!1;let i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)pe(t[i],n[r])&&(i-=1),r-=1;return-1===i}function de(t,e,n){const i=[];for(const{selectors:r,settings:o}of t)for(const t of r)if(he(t,e,n)){i.push(o);break}return i}function fe(t,e,n){const i=Object.entries(n.themes).filter((t=>t[1])).map((t=>({color:t[0],theme:t[1]}))),r=function(...t){const e=t.map((()=>[])),n=t.length;for(let i=0;i<t[0].length;i++){const r=t.map((t=>t[i])),o=e.map((()=>[]));e.forEach(((t,e)=>t.push(o[e])));const s=r.map((()=>0)),l=r.map((t=>t[0]));for(;l.every((t=>t));){const t=Math.min(...l.map((t=>t.content.length)));for(let e=0;e<n;e++){const n=l[e];n.content.length===t?(o[e].push(n),s[e]+=1,l[e]=r[e][s[e]]):(o[e].push({...n,content:n.content.slice(0,t)}),l[e]={...n,content:n.content.slice(t),offset:n.offset+t})}}}return e}(...i.map((i=>ue(t,e,{...n,theme:i.theme})))),o=r[0].map(((t,e)=>t.map(((t,o)=>{const s={content:t.content,variants:{},offset:t.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=t.explanation),r.forEach(((t,n)=>{const{content:r,explanation:l,offset:a,...u}=t[e][o];s.variants[i[n].color]=u})),s}))));return o}function ge(t,e,n){let i,r,o,s,l;if("themes"in n){const{defaultColor:a="light",cssVariablePrefix:u="--shiki-"}=n,c=Object.entries(n.themes).filter((t=>t[1])).map((t=>({color:t[0],theme:t[1]}))).sort(((t,e)=>t.color===a?-1:e.color===a?1:0));if(0===c.length)throw new le("`themes` option must not be empty");const m=fe(t,e,n);if(a&&!c.find((t=>t.color===a)))throw new le(`\`themes\` option must contain the defaultColor key \`${a}\``);const p=c.map((e=>t.getTheme(e.theme))),h=c.map((t=>t.color));o=m.map((t=>t.map((t=>function(t,e,n,i){const r={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map((e=>Yt(t.variants[e]))),s=new Set(o.flatMap((t=>Object.keys(t)))),l=o.reduce(((t,r,o)=>{for(const l of s){const s=r[l]||"inherit";if(0===o&&i)t[l]=s;else{const i="color"===l?"":"background-color"===l?"-bg":`-${l}`,r=n+e[o]+("color"===l?"":i);t[l]?t[l]+=`;${r}:${s}`:t[l]=`${r}:${s}`}}return t}),{});return r.htmlStyle=i?Qt(l):Object.values(l).join(";"),r}(t,h,u,a)))));const d=c.map((t=>Xt(t.theme,n)));r=c.map(((t,e)=>(0===e&&a?"":`${u+t.color}:`)+(Kt(p[e].fg,d[e])||"inherit"))).join(";"),i=c.map(((t,e)=>(0===e&&a?"":`${u+t.color}-bg:`)+(Kt(p[e].bg,d[e])||"inherit"))).join(";"),s=`shiki-themes ${p.map((t=>t.name)).join(" ")}`,l=a?void 0:[r,i].join(";")}else{if(!("theme"in n))throw new le("Invalid options, either `theme` or `themes` must be provided");{const l=Xt(n.theme,n);o=ue(t,e,n);const a=t.getTheme(n.theme);i=Kt(a.bg,l),r=Kt(a.fg,l),s=a.name}}return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l}}function ye(){const t=new WeakMap;function e(e){if(!t.has(e.meta)){const n=function(t){const e=zt(t,!0).map((([t])=>t));return{lines:e,indexToPos:function(n){if(n===t.length)return{line:e.length-1,character:e[e.length-1].length};let i=n,r=0;for(const t of e){if(i<t.length)break;i-=t.length,r++}return{line:r,character:i}},posToIndex:function(t,n){let i=0;for(let n=0;n<t;n++)i+=e[n].length;return i+=n,i}}}(e.source);function i(t){if("number"==typeof t){if(t<0||t>e.source.length)throw new le(`Invalid decoration offset: ${t}. Code length: ${e.source.length}`);return{...n.indexToPos(t),offset:t}}{const e=n.lines[t.line];if(void 0===e)throw new le(`Invalid decoration position ${JSON.stringify(t)}. Lines length: ${n.lines.length}`);if(t.character<0||t.character>e.length)throw new le(`Invalid decoration position ${JSON.stringify(t)}. Line ${t.line} length: ${e.length}`);return{...t,offset:n.posToIndex(t.line,t.character)}}}const r=(e.options.decorations||[]).map((t=>({...t,start:i(t.start),end:i(t.end)})));!function(t){for(let e=0;e<t.length;e++){const n=t[e];if(n.start.offset>n.end.offset)throw new le(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=e+1;i<t.length;i++){const e=t[i],r=n.start.offset<e.start.offset&&e.start.offset<n.end.offset,o=n.start.offset<e.end.offset&&e.end.offset<n.end.offset,s=e.start.offset<n.start.offset&&n.start.offset<e.end.offset,l=e.start.offset<n.end.offset&&n.end.offset<e.end.offset;if(r||o||s||l){if(o&&o)continue;if(s&&l)continue;throw new le(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(e.start)} intersect.`)}}}}(r),t.set(e.meta,{decorations:r,converter:n,source:e.source})}return t.get(e.meta)}return{name:"shiki:decorations",tokens(t){if(!this.options.decorations?.length)return;const n=function(t,e){const n=Array.from(e instanceof Set?e:new Set(e)).sort(((t,e)=>t-e));return n.length?t.map((t=>t.flatMap((t=>{const e=n.filter((e=>t.offset<e&&e<t.offset+t.content.length)).map((e=>e-t.offset)).sort(((t,e)=>t-e));return e.length?function(t,e){let n=0;const i=[];for(const r of e)r>n&&i.push({...t,content:t.content.slice(n,r),offset:t.offset+n}),n=r;return n<t.content.length&&i.push({...t,content:t.content.slice(n),offset:t.offset+n}),i}(t,e):t})))):t}(t,e(this).decorations.flatMap((t=>[t.start.offset,t.end.offset])));return n},code(t){if(!this.options.decorations?.length)return;const n=e(this),i=Array.from(t.children).filter((t=>"element"===t.type&&"span"===t.tagName));if(i.length!==n.converter.lines.length)throw new le(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function r(t,e,n,r){const o=i[t];let l="",a=-1,u=-1;function c(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(c).join(""):""}if(0===e&&(a=0),0===n&&(u=0),n===Number.POSITIVE_INFINITY&&(u=o.children.length),-1===a||-1===u)for(let t=0;t<o.children.length;t++)l+=c(o.children[t]),-1===a&&l.length===e&&(a=t+1),-1===u&&l.length===n&&(u=t+1);if(-1===a)throw new le(`Failed to find start index for decoration ${JSON.stringify(r.start)}`);if(-1===u)throw new le(`Failed to find end index for decoration ${JSON.stringify(r.end)}`);const m=o.children.slice(a,u);if(r.alwaysWrap||m.length!==o.children.length)if(r.alwaysWrap||1!==m.length||"element"!==m[0].type){const t={type:"element",tagName:"span",properties:{},children:m};s(t,r,"wrapper"),o.children.splice(a,m.length,t)}else s(m[0],r,"token");else s(o,r,"line")}function o(t,e){i[t]=s(i[t],e,"line")}function s(t,e,n){const i=e.properties||{},r=e.transform||(t=>t);return t.tagName=e.tagName||"span",t.properties={...t.properties,...i,class:t.properties.class},e.properties?.class&&Jt(t,e.properties.class),t=r(t,n)||t}const l=[],a=n.decorations.sort(((t,e)=>e.start.offset-t.start.offset));for(const t of a){const{start:e,end:n}=t;if(e.line===n.line)r(e.line,e.character,n.character,t);else if(e.line<n.line){r(e.line,e.character,Number.POSITIVE_INFINITY,t);for(let i=e.line+1;i<n.line;i++)l.unshift((()=>o(i,t)));r(n.line,0,n.character,t)}}l.forEach((t=>t()))}}}const be=[ye()];function we(t){return[...t.transformers||[],...be]}function ke(t,e,n,i={meta:{},options:n,codeToHast:(e,n)=>ke(t,e,n),codeToTokens:(e,n)=>ge(t,e,n)}){let r=e;for(const t of we(n))r=t.preprocess?.call(i,r,n)||r;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:u}=ge(t,r,n);const{mergeWhitespaces:c=!0}=n;!0===c?o=function(t){return t.map((t=>{const e=[];let n="",i=0;return t.forEach(((r,o)=>{const s=!(r.fontStyle&&r.fontStyle&p.Underline);s&&r.content.match(/^\s+$/)&&t[o+1]?(i||(i=r.offset),n+=r.content):n?(s?e.push({...r,offset:i,content:n+r.content}):e.push({content:n,offset:i},r),i=0,n=""):e.push(r)})),e}))}(o):"never"===c&&(o=function(t){return t.map((t=>t.flatMap((t=>{if(t.content.match(/^\s+$/))return t;const e=t.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return t;const[,n,i,r]=e;if(!n&&!r)return t;const o=[{...t,offset:t.offset+n.length,content:i}];return n&&o.unshift({content:n,offset:t.offset}),r&&o.push({content:r,offset:t.offset+n.length+i.length}),o}))))}(o));const m={...i,get source(){return r}};for(const t of we(n))o=t.tokens?.call(m,o)||o;return function(t,e,n){const i=we(e),r=[],o={type:"root",children:[]},{structure:s="classic"}=e;let l={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter((([t])=>!t.startsWith("_"))))},children:[]},a={type:"element",tagName:"code",properties:{},children:r};const u=[],c={...n,structure:s,addClassToHast:Jt,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return o},get pre(){return l},get code(){return a},get lines(){return u}};if(t.forEach(((t,e)=>{e&&("inline"===s?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===s&&r.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},l=0;for(const r of t){let t={type:"element",tagName:"span",properties:{},children:[{type:"text",value:r.content}]};const a=r.htmlStyle||Qt(Yt(r));a&&(t.properties.style=a);for(const r of i)t=r?.span?.call(c,t,e+1,l,n)||t;"inline"===s?o.children.push(t):"classic"===s&&n.children.push(t),l+=r.content.length}if("classic"===s){for(const t of i)n=t?.line?.call(c,n,e+1)||n;u.push(n),r.push(n)}})),"classic"===s){for(const t of i)a=t?.code?.call(c,a)||a;l.children.push(a);for(const t of i)l=t?.pre?.call(c,l)||l;o.children.push(l)}let m=o;for(const t of i)m=t?.root?.call(c,m)||m;return m}(o,{...n,fg:s,bg:l,themeName:a,rootStyle:u},m)}const je=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ve{constructor(t,e,n){this.property=t,this.normal=e,n&&(this.space=n)}}function Se(t,e){const n={},i={};let r=-1;for(;++r<t.length;)Object.assign(n,t[r].property),Object.assign(i,t[r].normal);return new ve(n,i,e)}function xe(t){return t.toLowerCase()}ve.prototype.property={},ve.prototype.normal={},ve.prototype.space=null;class Ce{constructor(t,e){this.property=t,this.attribute=e}}Ce.prototype.space=null,Ce.prototype.boolean=!1,Ce.prototype.booleanish=!1,Ce.prototype.overloadedBoolean=!1,Ce.prototype.number=!1,Ce.prototype.commaSeparated=!1,Ce.prototype.spaceSeparated=!1,Ce.prototype.commaOrSpaceSeparated=!1,Ce.prototype.mustUseProperty=!1,Ce.prototype.defined=!1;let Le=0;const Te=De(),Ae=De(),Pe=De(),Oe=De(),Me=De(),Ne=De(),_e=De();function De(){return 2**++Le}var Re=Object.freeze({__proto__:null,boolean:Te,booleanish:Ae,commaOrSpaceSeparated:_e,commaSeparated:Ne,number:Oe,overloadedBoolean:Pe,spaceSeparated:Me});const Ee=Object.keys(Re);class $e extends Ce{constructor(t,e,n,i){let r=-1;if(super(t,e),Be(this,"space",i),"number"==typeof n)for(;++r<Ee.length;){const t=Ee[r];Be(this,Ee[r],(n&Re[t])===Re[t])}}}function Be(t,e,n){n&&(t[e]=n)}$e.prototype.defined=!0;const Ie={}.hasOwnProperty;function Ge(t){const e={},n={};let i;for(i in t.properties)if(Ie.call(t.properties,i)){const r=t.properties[i],o=new $e(i,t.transform(t.attributes||{},i),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),e[i]=o,n[xe(i)]=i,n[xe(o.attribute)]=i}return new ve(e,n,t.space)}const He=Ge({space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),qe=Ge({space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ze(t,e){return e in t?t[e]:e}function Fe(t,e){return ze(t,e.toLowerCase())}const Ue=Ge({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Fe,properties:{xmlns:null,xmlnsXLink:null}}),We=Ge({transform:(t,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ae,ariaAutoComplete:null,ariaBusy:Ae,ariaChecked:Ae,ariaColCount:Oe,ariaColIndex:Oe,ariaColSpan:Oe,ariaControls:Me,ariaCurrent:null,ariaDescribedBy:Me,ariaDetails:null,ariaDisabled:Ae,ariaDropEffect:Me,ariaErrorMessage:null,ariaExpanded:Ae,ariaFlowTo:Me,ariaGrabbed:Ae,ariaHasPopup:null,ariaHidden:Ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Me,ariaLevel:Oe,ariaLive:null,ariaModal:Ae,ariaMultiLine:Ae,ariaMultiSelectable:Ae,ariaOrientation:null,ariaOwns:Me,ariaPlaceholder:null,ariaPosInSet:Oe,ariaPressed:Ae,ariaReadOnly:Ae,ariaRelevant:null,ariaRequired:Ae,ariaRoleDescription:Me,ariaRowCount:Oe,ariaRowIndex:Oe,ariaRowSpan:Oe,ariaSelected:Ae,ariaSetSize:Oe,ariaSort:null,ariaValueMax:Oe,ariaValueMin:Oe,ariaValueNow:Oe,ariaValueText:null,role:null}}),Ve=Ge({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Fe,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ne,acceptCharset:Me,accessKey:Me,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:Me,autoFocus:Te,autoPlay:Te,blocking:Me,capture:null,charSet:null,checked:Te,cite:null,className:Me,cols:Oe,colSpan:null,content:null,contentEditable:Ae,controls:Te,controlsList:Me,coords:Oe|Ne,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:Pe,draggable:Ae,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:Me,height:Oe,hidden:Te,high:Oe,href:null,hrefLang:null,htmlFor:Me,httpEquiv:Me,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:Me,itemRef:Me,itemScope:Te,itemType:Me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:Oe,manifest:null,max:null,maxLength:Oe,media:null,method:null,min:null,minLength:Oe,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:Oe,pattern:null,ping:Me,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:Me,required:Te,reversed:Te,rows:Oe,rowSpan:Oe,sandbox:Me,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:Oe,sizes:null,slot:null,span:Oe,spellCheck:Ae,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Oe,step:null,style:null,tabIndex:Oe,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:Ae,width:Oe,wrap:null,align:null,aLink:null,archive:Me,axis:null,background:null,bgColor:null,border:Oe,borderColor:null,bottomMargin:Oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:Oe,leftMargin:Oe,link:null,longDesc:null,lowSrc:null,marginHeight:Oe,marginWidth:Oe,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:Oe,rules:null,scheme:null,scrolling:Ae,standby:null,summary:null,text:null,topMargin:Oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:Oe,security:null,unselectable:null}}),Je=Ge({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:ze,properties:{about:_e,accentHeight:Oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Oe,amplitude:Oe,arabicForm:null,ascent:Oe,attributeName:null,attributeType:null,azimuth:Oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Oe,by:null,calcMode:null,capHeight:Oe,className:Me,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Oe,diffuseConstant:Oe,direction:null,display:null,dur:null,divisor:Oe,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:Oe,enableBackground:null,end:null,event:null,exponent:Oe,externalResourcesRequired:null,fill:null,fillOpacity:Oe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ne,g2:Ne,glyphName:Ne,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Oe,horizOriginX:Oe,horizOriginY:Oe,id:null,ideographic:Oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Oe,k:Oe,k1:Oe,k2:Oe,k3:Oe,k4:Oe,kernelMatrix:_e,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Oe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Oe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Oe,overlineThickness:Oe,paintOrder:null,panose1:null,path:null,pathLength:Oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Oe,pointsAtY:Oe,pointsAtZ:Oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_e,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_e,rev:_e,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_e,requiredFeatures:_e,requiredFonts:_e,requiredFormats:_e,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Oe,specularExponent:Oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Oe,strikethroughThickness:Oe,string:null,stroke:null,strokeDashArray:_e,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Oe,strokeOpacity:Oe,strokeWidth:null,style:null,surfaceScale:Oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_e,tabIndex:Oe,tableValues:null,target:null,targetX:Oe,targetY:Oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_e,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Oe,underlineThickness:Oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Oe,values:null,vAlphabetic:Oe,vMathematical:Oe,vectorEffect:null,vHanging:Oe,vIdeographic:Oe,version:null,vertAdvY:Oe,vertOriginX:Oe,vertOriginY:Oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Xe=/^data[-\w.:]+$/i,Ke=/-[a-z]/g,Ye=/[A-Z]/g;function Qe(t){return"-"+t.toLowerCase()}function Ze(t){return t.charAt(1).toUpperCase()}const tn=Se([qe,He,Ue,We,Ve],"html"),en=Se([qe,He,Ue,We,Je],"svg"),nn={}.hasOwnProperty;function rn(t,e){return t=t.replace(e.subset?function(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}(e.subset):/["&'<>`]/g,n),e.subset||e.escapeOnly?t:t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(t,n,i){return e.format(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),e)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(t,n,i){return e.format(t.charCodeAt(0),i.charCodeAt(n+1),e)}}const on=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],sn={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ln=["cent","copy","divide","gt","lt","not","para","times"],an={}.hasOwnProperty,un={};let cn;for(cn in sn)an.call(sn,cn)&&(un[sn[cn]]=cn);function mn(t,e,n){let i,r=function(t,e,n){const i="&#x"+t.toString(16).toUpperCase();return n&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?i:i+";"}(t,e,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(t,e,n,i){const r=String.fromCharCode(t);if(an.call(un,r)){const t=un[r],o="&"+t;return n&&on.includes(t)&&!ln.includes(t)&&(!i||e&&61!==e&&/[^\da-z]/i.test(String.fromCharCode(e)))?o:o+";"}return""}(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const i=function(t,e,n){const i="&#"+String(t);return n&&e&&!/\d/.test(String.fromCharCode(e))?i:i+";"}(t,e,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function pn(t,e){return rn(t,Object.assign({format:mn},e))}const hn=/^>|^->|<!--|-->|--!>|<!-$/g,dn=[">"],fn=["<",">"];function gn(t,e){const n=String(t);if("string"!=typeof e)throw new TypeError("Expected character");let i=0,r=n.indexOf(e);for(;-1!==r;)i++,r=n.indexOf(e,r+e.length);return i}function yn(t,e){const n=e||{};return(""===t[t.length-1]?[...t,""]:t).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function bn(t){return t.join(" ").trim()}const wn=/[ \t\n\f\r]/g;function kn(t){return"object"==typeof t?"text"===t.type&&jn(t.value):jn(t)}function jn(t){return""===t.replace(wn,"")}const vn=Cn(1),Sn=Cn(-1),xn=[];function Cn(t){return function(e,n,i){const r=e?e.children:xn;let o=(n||0)+t,s=r[o];if(!i)for(;s&&kn(s);)o+=t,s=r[o];return s}}const Ln={}.hasOwnProperty;function Tn(t){return function(e,n,i){return Ln.call(t,e.tagName)&&t[e.tagName](e,n,i)}}const An=Tn({body:function(t,e,n){const i=vn(n,e);return!i||"comment"!==i.type},caption:Pn,colgroup:Pn,dd:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(t,e,n){const i=vn(n,e);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:Pn,html:function(t,e,n){const i=vn(n,e);return!i||"comment"!==i.type},li:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(t,e,n){const i=vn(n,e);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:On,rt:On,tbody:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:Mn,tfoot:function(t,e,n){return!vn(n,e)},th:Mn,thead:function(t,e,n){const i=vn(n,e);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&"tr"===i.tagName}});function Pn(t,e,n){const i=vn(n,e,!0);return!i||"comment"!==i.type&&!("text"===i.type&&kn(i.value.charAt(0)))}function On(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function Mn(t,e,n){const i=vn(n,e);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}const Nn=Tn({body:function(t){const e=vn(t,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&kn(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)))},colgroup:function(t,e,n){const i=Sn(n,e),r=vn(t,-1,!0);if(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&An(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"col"===r.tagName)},head:function(t){const e=t.children,n=[];let i=-1;for(;++i<e.length;){const t=e[i];if("element"===t.type&&("title"===t.tagName||"base"===t.tagName)){if(n.includes(t.tagName))return!1;n.push(t.tagName)}}return e.length>0},html:function(t){const e=vn(t,-1);return!e||"comment"!==e.type},tbody:function(t,e,n){const i=Sn(n,e),r=vn(t,-1);if(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&An(i,n.children.indexOf(i),n))return!1;return Boolean(r&&"element"===r.type&&"tr"===r.tagName)}});const _n={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Dn(t,e,n){const i=function(t,e){const n=xe(e);let i=e,r=Ce;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Xe.test(e)){if("-"===e.charAt(4)){const t=e.slice(5).replace(Ke,Ze);i="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=e.slice(4);if(!Ke.test(t)){let n=t.replace(Ye,Qe);"-"!==n.charAt(0)&&(n="-"+n),e="data"+n}}r=$e}return new r(i,e)}(t.schema,e),r=t.settings.allowParseErrors&&"html"===t.schema.space?0:1,o=t.settings.allowDangerousCharacters?0:1;let s,l=t.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i.boolean||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const a=pn(i.attribute,Object.assign({},t.settings.characterReferences,{subset:_n.name[r][o]}));return!0===n?a:(n=Array.isArray(n)?(i.commaSeparated?yn:bn)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n?a:(t.settings.preferUnquoted&&(s=pn(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:_n.unquoted[r][o]}))),s!==n&&(t.settings.quoteSmart&&gn(n,l)>gn(n,t.alternative)&&(l=t.alternative),s=l+pn(n,Object.assign({},t.settings.characterReferences,{subset:("'"===l?_n.single:_n.double)[r][o],attribute:!0}))+l),a+(s?"="+s:s)))}const Rn=["<","&"];function En(t,e,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?pn(t.value,Object.assign({},i.settings.characterReferences,{subset:Rn})):t.value}const $n=function(t,e){const n=e||{};function i(e,...n){let r=i.invalid;const o=i.handlers;if(e&&nn.call(e,t)){const n=String(e[t]);r=nn.call(o,n)?o[n]:i.unknown}if(r)return r.call(this,e,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}("type",{invalid:function(t){throw new Error("Expected node, not `"+t+"`")},unknown:function(t){throw new Error("Cannot compile unknown node `"+t.type+"`")},handlers:{comment:function(t,e,n,i){return i.settings.bogusComments?"<?"+pn(t.value,Object.assign({},i.settings.characterReferences,{subset:dn}))+">":"\x3c!--"+t.value.replace(hn,(function(t){return pn(t,Object.assign({},i.settings.characterReferences,{subset:fn}))}))+"--\x3e"},doctype:function(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(t,e,n,i){const r=i.schema,o="svg"!==r.space&&i.settings.omitOptionalTags;let s="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());const l=[];let a;"html"===r.space&&"svg"===t.tagName&&(i.schema=en);const u=function(t,e){const n=[];let i,r=-1;if(e)for(i in e)if(null!==e[i]&&void 0!==e[i]){const r=Dn(t,i,e[i]);r&&n.push(r)}for(;++r<n.length;){const e=t.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==e&&"'"!==e&&(n[r]+=" ")}return n.join("")}(i,t.properties),c=i.all("html"===r.space&&"template"===t.tagName?t.content:t);return i.schema=r,c&&(s=!1),!u&&o&&Nn(t,e,n)||(l.push("<",t.tagName,u?" "+u:""),s&&("svg"===r.space||i.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&l.push(" "),l.push("/")),l.push(">")),l.push(c),s||o&&An(t,e,n)||l.push("</"+t.tagName+">"),l.join("")},raw:function(t,e,n,i){return i.settings.allowDangerousHtml?t.value:En(t,0,n,i)},root:function(t,e,n,i){return i.all(t)},text:En}});const Bn={},In={},Gn=[];function Hn(t,e,n){return $n(t,e,n,this)}function qn(t){const e=[],n=t&&t.children||Gn;let i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("")}function zn(t,e,n){const i={meta:{},options:n,codeToHast:(e,n)=>ke(t,e,n),codeToTokens:(e,n)=>ge(t,e,n)};let r=function(t,e){const n=e||Bn,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:Hn,all:qn,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||je,characterReferences:n.characterReferences||In,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?en:tn,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}(ke(t,e,n,i));for(const t of we(n))r=t.postprocess?.call(i,r,n)||r;return r}async function Fn(t){let e,n;const i={};function r(t){n=t,i.HEAPU8=new Uint8Array(t),i.HEAPU32=new Uint32Array(t)}function o(t){try{return e.grow(t-n.byteLength+65535>>>16),r(e.buffer),1}catch{}}const s="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function l(t,e){return t?function(t,e,n=1024){const i=e+n;let r=e;for(;t[r]&&!(r>=i);)++r;if(r-e>16&&t.buffer&&s)return s.decode(t.subarray(e,r));let o="";for(;e<r;){let n=t[e++];if(!(128&n)){o+=String.fromCharCode(n);continue}const i=63&t[e++];if(192==(224&n)){o+=String.fromCharCode((31&n)<<6|i);continue}const r=63&t[e++];if(n=224==(240&n)?(15&n)<<12|i<<6|r:(7&n)<<18|i<<12|r<<6|63&t[e++],n<65536)o+=String.fromCharCode(n);else{const t=n-65536;o+=String.fromCharCode(55296|t>>10,56320|1023&t)}}return o}(i.HEAPU8,t,e):""}const a={emscripten_get_now:function(){return"undefined"!=typeof performance?performance.now():Date.now()},emscripten_memcpy_big:function(t,e,n){i.HEAPU8.copyWithin(t,e,e+n)},emscripten_resize_heap:function(t){const e=i.HEAPU8.length,n=2147483648;if((t>>>=0)>n)return!1;const r=(t,e)=>t+(e-t%e)%e;for(let i=1;i<=4;i*=2){let s=e*(1+.2/i);s=Math.min(s,t+100663296);if(o(Math.min(n,r(Math.max(t,s),65536))))return!0}return!1},fd_write:()=>0};return await async function(){const n={env:a,wasi_snapshot_preview1:a},o=await t(n);e=o.memory,r(e.buffer),Object.assign(i,o),i.UTF8ToString=l}(),i}let Un,Wn=null;class Vn{static _utf8ByteLength(t){let e=0;for(let n=0,i=t.length;n<i;n++){const r=t.charCodeAt(n);let o=r,s=!1;if(r>=55296&&r<=56319&&n+1<i){const e=t.charCodeAt(n+1);e>=56320&&e<=57343&&(o=65536+(r-55296<<10)|e-56320,s=!0)}e+=o<=127?1:o<=2047?2:o<=65535?3:4,s&&n++}return e}utf16Length;utf8Length;utf16Value;utf8Value;utf16OffsetToUtf8;utf8OffsetToUtf16;constructor(t){const e=t.length,n=Vn._utf8ByteLength(t),i=n!==e,r=i?new Uint32Array(e+1):null;i&&(r[e]=n);const o=i?new Uint32Array(n+1):null;i&&(o[n]=e);const s=new Uint8Array(n);let l=0;for(let n=0;n<e;n++){const a=t.charCodeAt(n);let u=a,c=!1;if(a>=55296&&a<=56319&&n+1<e){const e=t.charCodeAt(n+1);e>=56320&&e<=57343&&(u=65536+(a-55296<<10)|e-56320,c=!0)}i&&(r[n]=l,c&&(r[n+1]=l),u<=127?o[l+0]=n:u<=2047?(o[l+0]=n,o[l+1]=n):u<=65535?(o[l+0]=n,o[l+1]=n,o[l+2]=n):(o[l+0]=n,o[l+1]=n,o[l+2]=n,o[l+3]=n)),u<=127?s[l++]=u:u<=2047?(s[l++]=192|(1984&u)>>>6,s[l++]=128|(63&u)>>>0):u<=65535?(s[l++]=224|(61440&u)>>>12,s[l++]=128|(4032&u)>>>6,s[l++]=128|(63&u)>>>0):(s[l++]=240|(1835008&u)>>>18,s[l++]=128|(258048&u)>>>12,s[l++]=128|(4032&u)>>>6,s[l++]=128|(63&u)>>>0),c&&n++}this.utf16Length=e,this.utf8Length=n,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=o}createString(t){const e=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,e),e}}class Jn{static LAST_ID=0;static _sharedPtr=0;static _sharedPtrInUse=!1;id=++Jn.LAST_ID;_onigBinding;content;utf16Length;utf8Length;utf16OffsetToUtf8;utf8OffsetToUtf16;ptr;constructor(t){if(!Wn)throw new le("Must invoke loadWasm first.");this._onigBinding=Wn,this.content=t;const e=new Vn(t);this.utf16Length=e.utf16Length,this.utf8Length=e.utf8Length,this.utf16OffsetToUtf8=e.utf16OffsetToUtf8,this.utf8OffsetToUtf16=e.utf8OffsetToUtf16,this.utf8Length<1e4&&!Jn._sharedPtrInUse?(Jn._sharedPtr||(Jn._sharedPtr=Wn.omalloc(1e4)),Jn._sharedPtrInUse=!0,Wn.HEAPU8.set(e.utf8Value,Jn._sharedPtr),this.ptr=Jn._sharedPtr):this.ptr=e.createString(Wn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Jn._sharedPtr?Jn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}}class Xn{_onigBinding;_ptr;constructor(t){if(!Wn)throw new le("Must invoke loadWasm first.");const e=[],n=[];for(let i=0,r=t.length;i<r;i++){const r=new Vn(t[i]);e[i]=r.createString(Wn),n[i]=r.utf8Length}const i=Wn.omalloc(4*t.length);Wn.HEAPU32.set(e,i/4);const r=Wn.omalloc(4*t.length);Wn.HEAPU32.set(n,r/4);const o=Wn.createOnigScanner(i,r,t.length);for(let n=0,i=t.length;n<i;n++)Wn.ofree(e[n]);Wn.ofree(r),Wn.ofree(i),0===o&&function(t){throw new le(t.UTF8ToString(t.getLastOnigError()))}(Wn),this._onigBinding=Wn,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,e,n){let i=false,r=0;if("number"==typeof n?(8&n&&(i=!0),r=n):"boolean"==typeof n&&(i=n),"string"==typeof t){t=new Jn(t);const n=this._findNextMatchSync(t,e,i,r);return t.dispose(),n}return this._findNextMatchSync(t,e,i,r)}_findNextMatchSync(t,e,n,i){const r=this._onigBinding;let o;if(o=n?r.findNextOnigScannerMatchDbg(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i):r.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(e),i),0===o)return null;const s=r.HEAPU32;let l=o/4;const a=s[l++],u=s[l++],c=[];for(let e=0;e<u;e++){const n=t.convertUtf8OffsetToUtf16(s[l++]),i=t.convertUtf8OffsetToUtf16(s[l++]);c[e]={start:n,end:i,length:i-n}}return{index:a,captureIndices:c}}}function Kn(t){if(Un)return Un;return Un=async function(){Wn=await Fn((async e=>{let n=t;var i;return n=await n,"function"==typeof n&&(n=await n(e)),"function"==typeof n&&(n=await n(e)),"function"==typeof n.instantiator?n=await n.instantiator(e):!function(t){return"function"==typeof t.default}(n)?(function(t){return void 0!==t.data}(n)&&(n=n.data),!function(t){return"undefined"!=typeof Response&&t instanceof Response}(n)?!function(t){return"undefined"!=typeof ArrayBuffer&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||"undefined"!=typeof Buffer&&Buffer.isBuffer?.(t)||"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&t instanceof Uint32Array}(n)?n instanceof WebAssembly.Module?n=await Yn(n)(e):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await Yn(n.default)(e)):n=await Yn(n)(e):n="function"==typeof WebAssembly.instantiateStreaming?await(i=n,t=>WebAssembly.instantiateStreaming(i,t))(e):await function(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}(n)(e)):n=await n.default(e),"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n}))}(),Un}function Yn(t){return e=>WebAssembly.instantiate(t,e)}const Qn={light:"#333333",dark:"#bbbbbb"},Zn={light:"#fffffe",dark:"#1e1e1e"},ti="__shiki_resolved";function ei(t){if(t?.[ti])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:i}=e;if(!n||!i){const t=e.settings?e.settings.find((t=>!t.name&&!t.scope)):void 0;t?.settings?.foreground&&(i=t.settings.foreground),t?.settings?.background&&(n=t.settings.background),!i&&e?.colors?.["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),i||(i="light"===e.type?Qn.light:Qn.dark),n||(n="light"===e.type?Zn.light:Zn.dark),e.fg=i,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let r=0;const o=new Map;function s(t){if(o.has(t))return o.get(t);r+=1;const n=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${n}`]?s(t):(o.set(t,n),n)}e.settings=e.settings.map((t=>{const n=t.settings?.foreground&&!t.settings.foreground.startsWith("#"),i=t.settings?.background&&!t.settings.background.startsWith("#");if(!n&&!i)return t;const r={...t,settings:{...t.settings}};if(n){const n=s(t.settings.foreground);e.colorReplacements[n]=t.settings.foreground,r.settings.foreground=n}if(i){const n=s(t.settings.background);e.colorReplacements[n]=t.settings.background,r.settings.background=n}return r}));for(const t of Object.keys(e.colors||{}))if(("editor.foreground"===t||"editor.background"===t||t.startsWith("terminal.ansi"))&&!e.colors[t]?.startsWith("#")){const n=s(e.colors[t]);e.colorReplacements[n]=e.colors[t],e.colors[t]=n}return Object.defineProperty(e,ti,{enumerable:!1,writable:!1,value:!0}),e}class ni extends At{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(t,e,n,i={}){super(t),this._resolver=t,this._themes=e,this._langs=n,this._alias=i,e.forEach((t=>this.loadTheme(t))),n.forEach((t=>this.loadLanguage(t)))}getTheme(t){return"string"==typeof t?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const e=ei(t);return e.name&&(this._resolvedThemes.set(e.name,e),this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let e=this._textmateThemeCache.get(t);e||(e=et.createFromRawTheme(t),this._textmateThemeCache.set(t,e)),this._syncRegistry.setTheme(e)}getGrammar(t){if(this._alias[t]){const e=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],e.has(t))throw new le(`Circular alias \`${Array.from(e).join(" -> ")} -> ${t}\``);e.add(t)}}return this._resolvedGrammars.get(t)}async loadLanguage(t){if(this.getGrammar(t.name))return;const e=new Set([...this._langMap.values()].filter((e=>e.embeddedLangsLazy?.includes(t.name))));this._resolver.addLanguage(t);const n={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=await this.loadGrammarWithConfiguration(t.scopeName,1,n);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach((e=>{this._alias[e]=t.name})),this._loadedLanguagesCache=null,e.size)for(const t of e)this._resolvedGrammars.delete(t.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(t.scopeName),this._syncRegistry?._grammars?.delete(t.scopeName),await this.loadLanguage(this._langMap.get(t.name))}async init(){this._themes.map((t=>this.loadTheme(t))),await this.loadLanguages(this._langs)}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}async loadLanguages(t){for(const e of t)this.resolveEmbeddedLanguages(e);const e=Array.from(this._langGraph.entries()),n=e.filter((([t,e])=>!e));if(n.length){const t=e.filter((([t,e])=>e&&e.embeddedLangs?.some((t=>n.map((([t])=>t)).includes(t))))).filter((t=>!n.includes(t)));throw new le(`Missing languages ${n.map((([t])=>`\`${t}\``)).join(", ")}, required by ${t.map((([t])=>`\`${t}\``)).join(", ")}`)}for(const[t,n]of e)this._resolver.addLanguage(n);for(const[t,n]of e)await this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const e of t.embeddedLangs)this._langGraph.set(e,this._langMap.get(e))}}class ii{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLibPromise;constructor(t,e){this._onigLibPromise=t,e.forEach((t=>this.addLanguage(t)))}get onigLib(){return this._onigLibPromise}getLangRegistration(t){return this._langs.get(t)}async loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach((e=>{this._langs.set(e,t)})),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach((e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(t.scopeName)}))}getInjections(t){const e=t.split(".");let n=[];for(let t=1;t<=e.length;t++){const i=e.slice(0,t).join(".");n=[...n,...this._injections.get(i)||[]]}return n}}let ri,oi=0;async function si(t={}){oi+=1,!1!==t.warnings&&oi>=10&&oi%10==0&&console.warn(`[Shiki] ${oi} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;async function n(t){return Promise.resolve("function"==typeof t?t():t).then((t=>t.default||t))}async function i(t){return Array.from(new Set((await Promise.all(t.filter((t=>!Ut(t))).map((async t=>await n(t).then((t=>Array.isArray(t)?t:[t])))))).flat()))}const r=t.loadWasm||ri,[o,s]=await Promise.all([Promise.all((t.themes||[]).map(n)).then((t=>t.map(ei))),i(t.langs||[]),r?Kn(r):void 0]),l=new ii(Promise.resolve({createOnigScanner:t=>function(t){return new Xn(t)}(t),createOnigString:t=>new Jn(t)}),s),a=new ni(l,o,s,t.langAlias);let u;function c(t){if("none"===t)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();const e=a.getTheme(t);if(!e)throw new le(`Theme \`${t}\` not found, you may need to load it first`);return e}function m(){if(e)throw new le("Shiki instance has been disposed")}function p(){e||(e=!0,a.dispose(),oi-=1)}return await a.init(),{setTheme:function(t){m();const e=c(t);return u!==t&&(a.setTheme(e),u=t),{theme:e,colorMap:a.getColorMap()}},getTheme:c,getLanguage:function(t){m();const e=a.getGrammar("string"==typeof t?t:t.name);if(!e)throw new le(`Language \`${t}\` not found, you may need to load it first`);return e},getLoadedThemes:function(){return m(),a.getLoadedThemes()},getLoadedLanguages:function(){return m(),a.getLoadedLanguages()},loadLanguage:async function(...t){m(),await a.loadLanguages(await i(t))},loadTheme:async function(...t){m(),await Promise.all(t.map((async t=>Vt(t)?null:a.loadTheme(await n(t)))))},dispose:p,[Symbol.dispose]:p}}async function li(t={}){const e=await si(t);return{getLastGrammarState:(t,n)=>function(t,e,n={}){const{lang:i="text",theme:r=t.getLoadedThemes()[0]}=n;if(Ft(i)||Wt(r))throw new le("Plain language does not have grammar state");if("ansi"===i)throw new le("ANSI language does not have grammar state");const{theme:o,colorMap:s}=t.setTheme(r),l=t.getLanguage(i);return new ae(ce(e,l,o,s,n).stateStack,l.name,o.name)}(e,t,n),codeToTokensBase:(t,n)=>ue(e,t,n),codeToTokensWithThemes:(t,n)=>fe(e,t,n),codeToTokens:(t,n)=>ge(e,t,n),codeToHast:(t,n)=>ke(e,t,n),codeToHtml:(t,n)=>zn(e,t,n),...e,getInternalContext:()=>e}}function ai(t,e,n){return async function(i){function r(e){if("string"==typeof e){if(Ut(e))return[];const n=t[e];if(!n)throw new le(`Language \`${e}\` is not included in this bundle. You may want to load it from external source.`);return n}return e}function o(t){if(Vt(t))return"none";if("string"==typeof t){const n=e[t];if(!n)throw new le(`Theme \`${t}\` is not included in this bundle. You may want to load it from external source.`);return n}return t}const s=(i.themes??[]).map((t=>o(t))),l=(i.langs??[]).map((t=>r(t))),a=await li({...i,themes:s,langs:l,loadWasm:n});return{...a,loadLanguage:(...t)=>a.loadLanguage(...t.map(r)),loadTheme:(...t)=>a.loadTheme(...t.map(o))}}}function ui(t){const e=function(t){let e;return async function(n={}){if(e){const t=await e;return await Promise.all([t.loadTheme(...n.themes||[]),t.loadLanguage(...n.langs||[])]),t}return e=t({...n,themes:n.themes||[],langs:n.langs||[]}),e}}(t);return{getSingletonHighlighter:t=>e(t),codeToHtml:async(t,n)=>(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHtml(t,n),codeToHast:async(t,n)=>(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToHast(t,n),codeToTokens:async(t,n)=>(await e({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)})).codeToTokens(t,n),codeToTokensBase:async(t,n)=>(await e({langs:[n.lang],themes:[n.theme]})).codeToTokensBase(t,n),codeToTokensWithThemes:async(t,n)=>(await e({langs:[n.lang],themes:Object.values(n.themes).filter(Boolean)})).codeToTokensWithThemes(t,n),getLastGrammarState:async(t,n)=>(await e({langs:[n.lang],themes:[n.theme]})).getLastGrammarState(t,n)}}const ci=ai(a,m,u),{codeToHtml:mi,codeToHast:pi,codeToTokens:hi,codeToTokensBase:di,codeToTokensWithThemes:fi,getSingletonHighlighter:gi,getLastGrammarState:yi}=ui(ci);let bi=class extends o{constructor(){super(...arguments),this.code="",this.language="javascript",this.theme="min-light",this.highlightedCode=""}static get styles(){return[r]}async updated(t){(t.has("code")||t.has("language")||t.has("theme"))&&(this.highlightedCode=await mi(this.code,{lang:this.language,theme:this.theme}),this.requestUpdate())}render(){return e`
2
2
  <div class="code-container" .innerHTML=${this.highlightedCode}></div>
3
3
  `}};t([s({type:String})],bi.prototype,"code",void 0),t([s({type:String,reflect:!0})],bi.prototype,"language",void 0),t([s({type:String,reflect:!0})],bi.prototype,"theme",void 0),t([n()],bi.prototype,"highlightedCode",void 0),bi=t([i("nile-highlighter")],bi);export{bi as N};