@atme-lab/ui-kit 0.1.23 → 0.1.24

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 (245) hide show
  1. package/dist/components/primitives/Term/Term.d.ts +1 -2
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs11.js +1 -1
  4. package/dist/index.cjs12.js +1 -1
  5. package/dist/index.cjs13.js +1 -1
  6. package/dist/index.cjs14.js +1 -1
  7. package/dist/index.cjs15.js +1 -1
  8. package/dist/index.cjs16.js +1 -1
  9. package/dist/index.cjs18.js +1 -1
  10. package/dist/index.cjs19.js +1 -1
  11. package/dist/index.cjs20.js +1 -1
  12. package/dist/index.cjs21.js +1 -1
  13. package/dist/index.cjs22.js +1 -1
  14. package/dist/index.cjs23.js +1 -1
  15. package/dist/index.cjs24.js +1 -1
  16. package/dist/index.cjs24.js.map +1 -1
  17. package/dist/index.cjs25.js +1 -1
  18. package/dist/index.cjs27.js +1 -1
  19. package/dist/index.cjs28.js +1 -1
  20. package/dist/index.cjs29.js +1 -1
  21. package/dist/index.cjs30.js +1 -1
  22. package/dist/index.cjs31.js +1 -1
  23. package/dist/index.cjs387.js +1 -1
  24. package/dist/index.cjs41.js +1 -1
  25. package/dist/index.cjs413.js +1 -1
  26. package/dist/index.cjs414.js +1 -1
  27. package/dist/index.cjs415.js +1 -1
  28. package/dist/index.cjs416.js +1 -1
  29. package/dist/index.cjs42.js +1 -1
  30. package/dist/index.cjs430.js +1 -1
  31. package/dist/index.cjs432.js +1 -1
  32. package/dist/index.cjs435.js +1 -1
  33. package/dist/index.cjs44.js +1 -1
  34. package/dist/index.cjs445.js +6 -1
  35. package/dist/index.cjs445.js.map +1 -1
  36. package/dist/index.cjs446.js +6 -1
  37. package/dist/index.cjs446.js.map +1 -1
  38. package/dist/index.cjs447.js +6 -1
  39. package/dist/index.cjs447.js.map +1 -1
  40. package/dist/index.cjs448.js +6 -1
  41. package/dist/index.cjs448.js.map +1 -1
  42. package/dist/index.cjs449.js +1 -1
  43. package/dist/index.cjs449.js.map +1 -1
  44. package/dist/index.cjs45.js +1 -1
  45. package/dist/index.cjs450.js +1 -1
  46. package/dist/index.cjs450.js.map +1 -1
  47. package/dist/index.cjs451.js +1 -6
  48. package/dist/index.cjs451.js.map +1 -1
  49. package/dist/index.cjs452.js +1 -6
  50. package/dist/index.cjs452.js.map +1 -1
  51. package/dist/index.cjs453.js +1 -6
  52. package/dist/index.cjs453.js.map +1 -1
  53. package/dist/index.cjs454.js +1 -6
  54. package/dist/index.cjs454.js.map +1 -1
  55. package/dist/index.cjs46.js +1 -1
  56. package/dist/index.cjs46.js.map +1 -1
  57. package/dist/index.cjs47.js +1 -1
  58. package/dist/index.cjs48.js +1 -1
  59. package/dist/index.cjs49.js +1 -1
  60. package/dist/index.cjs50.js +1 -1
  61. package/dist/index.cjs51.js +1 -1
  62. package/dist/index.cjs51.js.map +1 -1
  63. package/dist/index.cjs52.js +1 -1
  64. package/dist/index.cjs53.js +1 -1
  65. package/dist/index.cjs54.js +1 -1
  66. package/dist/index.cjs54.js.map +1 -1
  67. package/dist/index.cjs55.js +1 -1
  68. package/dist/index.cjs56.js +1 -1
  69. package/dist/index.cjs56.js.map +1 -1
  70. package/dist/index.cjs57.js +1 -1
  71. package/dist/index.cjs57.js.map +1 -1
  72. package/dist/index.cjs58.js +1 -1
  73. package/dist/index.cjs59.js +1 -1
  74. package/dist/index.cjs59.js.map +1 -1
  75. package/dist/index.cjs60.js +1 -1
  76. package/dist/index.cjs61.js +1 -1
  77. package/dist/index.cjs61.js.map +1 -1
  78. package/dist/index.cjs62.js +1 -1
  79. package/dist/index.cjs62.js.map +1 -1
  80. package/dist/index.cjs63.js +1 -1
  81. package/dist/index.cjs64.js +1 -1
  82. package/dist/index.cjs64.js.map +1 -1
  83. package/dist/index.cjs65.js +1 -1
  84. package/dist/index.cjs65.js.map +1 -1
  85. package/dist/index.cjs66.js +1 -1
  86. package/dist/index.cjs66.js.map +1 -1
  87. package/dist/index.cjs67.js +1 -1
  88. package/dist/index.cjs67.js.map +1 -1
  89. package/dist/index.cjs69.js +1 -1
  90. package/dist/index.cjs70.js +1 -1
  91. package/dist/index.cjs71.js +1 -1
  92. package/dist/index.cjs72.js +1 -1
  93. package/dist/index.cjs74.js +1 -1
  94. package/dist/index.cjs75.js +1 -1
  95. package/dist/index.cjs76.js +1 -1
  96. package/dist/index.cjs76.js.map +1 -1
  97. package/dist/index.cjs77.js +1 -1
  98. package/dist/index.cjs77.js.map +1 -1
  99. package/dist/index.cjs80.js +1 -1
  100. package/dist/index.cjs80.js.map +1 -1
  101. package/dist/index.cjs81.js +1 -1
  102. package/dist/index.cjs81.js.map +1 -1
  103. package/dist/index.cjs82.js +1 -2
  104. package/dist/index.cjs82.js.map +1 -1
  105. package/dist/index.cjs83.js +2 -1
  106. package/dist/index.cjs83.js.map +1 -1
  107. package/dist/index.cjs84.js +1 -1
  108. package/dist/index.cjs84.js.map +1 -1
  109. package/dist/index.cjs85.js +1 -1
  110. package/dist/index.cjs85.js.map +1 -1
  111. package/dist/index.cjs86.js +1 -1
  112. package/dist/index.cjs86.js.map +1 -1
  113. package/dist/index.cjs9.js +1 -1
  114. package/dist/index.esm10.js +2 -2
  115. package/dist/index.esm11.js +1 -1
  116. package/dist/index.esm12.js +3 -3
  117. package/dist/index.esm13.js +1 -1
  118. package/dist/index.esm14.js +1 -1
  119. package/dist/index.esm15.js +1 -1
  120. package/dist/index.esm16.js +1 -1
  121. package/dist/index.esm18.js +1 -1
  122. package/dist/index.esm19.js +1 -1
  123. package/dist/index.esm20.js +1 -1
  124. package/dist/index.esm21.js +2 -2
  125. package/dist/index.esm22.js +2 -2
  126. package/dist/index.esm23.js +1 -1
  127. package/dist/index.esm24.js +8 -69
  128. package/dist/index.esm24.js.map +1 -1
  129. package/dist/index.esm25.js +2 -2
  130. package/dist/index.esm27.js +1 -1
  131. package/dist/index.esm28.js +1 -1
  132. package/dist/index.esm29.js +2 -2
  133. package/dist/index.esm30.js +1 -1
  134. package/dist/index.esm31.js +3 -3
  135. package/dist/index.esm387.js +1 -1
  136. package/dist/index.esm41.js +1 -1
  137. package/dist/index.esm413.js +1 -1
  138. package/dist/index.esm414.js +1 -1
  139. package/dist/index.esm415.js +1 -1
  140. package/dist/index.esm416.js +1 -1
  141. package/dist/index.esm42.js +1 -1
  142. package/dist/index.esm430.js +1 -1
  143. package/dist/index.esm432.js +6 -6
  144. package/dist/index.esm435.js +1 -1
  145. package/dist/index.esm44.js +32 -40
  146. package/dist/index.esm44.js.map +1 -1
  147. package/dist/index.esm445.js +21 -6
  148. package/dist/index.esm445.js.map +1 -1
  149. package/dist/index.esm446.js +9 -10
  150. package/dist/index.esm446.js.map +1 -1
  151. package/dist/index.esm447.js +38 -7
  152. package/dist/index.esm447.js.map +1 -1
  153. package/dist/index.esm448.js +18 -4
  154. package/dist/index.esm448.js.map +1 -1
  155. package/dist/index.esm449.js +5 -84
  156. package/dist/index.esm449.js.map +1 -1
  157. package/dist/index.esm45.js +11 -47
  158. package/dist/index.esm450.js +9 -37
  159. package/dist/index.esm450.js.map +1 -1
  160. package/dist/index.esm451.js +7 -21
  161. package/dist/index.esm451.js.map +1 -1
  162. package/dist/index.esm452.js +4 -9
  163. package/dist/index.esm452.js.map +1 -1
  164. package/dist/index.esm453.js +85 -38
  165. package/dist/index.esm453.js.map +1 -1
  166. package/dist/index.esm454.js +38 -18
  167. package/dist/index.esm454.js.map +1 -1
  168. package/dist/index.esm46.js +30 -11
  169. package/dist/index.esm46.js.map +1 -1
  170. package/dist/index.esm47.js +27 -40
  171. package/dist/index.esm47.js.map +1 -1
  172. package/dist/index.esm48.js +5 -4
  173. package/dist/index.esm48.js.map +1 -1
  174. package/dist/index.esm49.js +2 -6
  175. package/dist/index.esm49.js.map +1 -1
  176. package/dist/index.esm50.js +2 -9
  177. package/dist/index.esm50.js.map +1 -1
  178. package/dist/index.esm51.js +65 -28
  179. package/dist/index.esm51.js.map +1 -1
  180. package/dist/index.esm52.js +29 -2
  181. package/dist/index.esm52.js.map +1 -1
  182. package/dist/index.esm53.js +9 -2
  183. package/dist/index.esm53.js.map +1 -1
  184. package/dist/index.esm54.js +5 -88
  185. package/dist/index.esm54.js.map +1 -1
  186. package/dist/index.esm55.js +47 -35
  187. package/dist/index.esm55.js.map +1 -1
  188. package/dist/index.esm56.js +11 -127
  189. package/dist/index.esm56.js.map +1 -1
  190. package/dist/index.esm57.js +88 -29
  191. package/dist/index.esm57.js.map +1 -1
  192. package/dist/index.esm58.js +34 -64
  193. package/dist/index.esm58.js.map +1 -1
  194. package/dist/index.esm59.js +127 -41
  195. package/dist/index.esm59.js.map +1 -1
  196. package/dist/index.esm60.js +8 -10
  197. package/dist/index.esm60.js.map +1 -1
  198. package/dist/index.esm61.js +28 -17
  199. package/dist/index.esm61.js.map +1 -1
  200. package/dist/index.esm62.js +41 -16
  201. package/dist/index.esm62.js.map +1 -1
  202. package/dist/index.esm63.js +6 -15
  203. package/dist/index.esm63.js.map +1 -1
  204. package/dist/index.esm64.js +8 -96
  205. package/dist/index.esm64.js.map +1 -1
  206. package/dist/index.esm65.js +7 -7
  207. package/dist/index.esm65.js.map +1 -1
  208. package/dist/index.esm66.js +16 -9
  209. package/dist/index.esm66.js.map +1 -1
  210. package/dist/index.esm67.js +97 -7
  211. package/dist/index.esm67.js.map +1 -1
  212. package/dist/index.esm69.js +42 -39
  213. package/dist/index.esm69.js.map +1 -1
  214. package/dist/index.esm70.js +40 -32
  215. package/dist/index.esm70.js.map +1 -1
  216. package/dist/index.esm71.js +36 -8
  217. package/dist/index.esm71.js.map +1 -1
  218. package/dist/index.esm72.js +39 -32
  219. package/dist/index.esm72.js.map +1 -1
  220. package/dist/index.esm74.js +6 -36
  221. package/dist/index.esm74.js.map +1 -1
  222. package/dist/index.esm75.js +8 -10
  223. package/dist/index.esm75.js.map +1 -1
  224. package/dist/index.esm76.js +17 -30
  225. package/dist/index.esm76.js.map +1 -1
  226. package/dist/index.esm77.js +16 -9
  227. package/dist/index.esm77.js.map +1 -1
  228. package/dist/index.esm80.js +4 -55
  229. package/dist/index.esm80.js.map +1 -1
  230. package/dist/index.esm81.js +55 -257
  231. package/dist/index.esm81.js.map +1 -1
  232. package/dist/index.esm82.js +208 -1637
  233. package/dist/index.esm82.js.map +1 -1
  234. package/dist/index.esm83.js +1685 -1413
  235. package/dist/index.esm83.js.map +1 -1
  236. package/dist/index.esm84.js +1286 -260
  237. package/dist/index.esm84.js.map +1 -1
  238. package/dist/index.esm85.js +387 -5
  239. package/dist/index.esm85.js.map +1 -1
  240. package/dist/index.esm86.js +5 -3
  241. package/dist/index.esm86.js.map +1 -1
  242. package/dist/index.esm9.js +1 -1
  243. package/dist/styles.css +1 -1
  244. package/dist/ui-kit.css +1 -1
  245. package/package.json +1 -1
@@ -1,1418 +1,1690 @@
1
1
  "use client";
2
- const r = [
3
- {
4
- id: "abap",
5
- name: "ABAP",
6
- import: (() => import("./index.esm91.js"))
7
- },
8
- {
9
- id: "actionscript-3",
10
- name: "ActionScript",
11
- import: (() => import("./index.esm92.js"))
12
- },
13
- {
14
- id: "ada",
15
- name: "Ada",
16
- import: (() => import("./index.esm93.js"))
17
- },
18
- {
19
- id: "angular-html",
20
- name: "Angular HTML",
21
- import: (() => import("./index.esm94.js"))
22
- },
23
- {
24
- id: "angular-ts",
25
- name: "Angular TypeScript",
26
- import: (() => import("./index.esm95.js"))
27
- },
28
- {
29
- id: "apache",
30
- name: "Apache Conf",
31
- import: (() => import("./index.esm96.js"))
32
- },
33
- {
34
- id: "apex",
35
- name: "Apex",
36
- import: (() => import("./index.esm97.js"))
37
- },
38
- {
39
- id: "apl",
40
- name: "APL",
41
- import: (() => import("./index.esm98.js"))
42
- },
43
- {
44
- id: "applescript",
45
- name: "AppleScript",
46
- import: (() => import("./index.esm99.js"))
47
- },
48
- {
49
- id: "ara",
50
- name: "Ara",
51
- import: (() => import("./index.esm100.js"))
52
- },
53
- {
54
- id: "asciidoc",
55
- name: "AsciiDoc",
56
- aliases: [
57
- "adoc"
58
- ],
59
- import: (() => import("./index.esm101.js"))
60
- },
61
- {
62
- id: "asm",
63
- name: "Assembly",
64
- import: (() => import("./index.esm102.js"))
65
- },
66
- {
67
- id: "astro",
68
- name: "Astro",
69
- import: (() => import("./index.esm103.js"))
70
- },
71
- {
72
- id: "awk",
73
- name: "AWK",
74
- import: (() => import("./index.esm104.js"))
75
- },
76
- {
77
- id: "ballerina",
78
- name: "Ballerina",
79
- import: (() => import("./index.esm105.js"))
80
- },
81
- {
82
- id: "bat",
83
- name: "Batch File",
84
- aliases: [
85
- "batch"
86
- ],
87
- import: (() => import("./index.esm106.js"))
88
- },
89
- {
90
- id: "beancount",
91
- name: "Beancount",
92
- import: (() => import("./index.esm107.js"))
93
- },
94
- {
95
- id: "berry",
96
- name: "Berry",
97
- aliases: [
98
- "be"
99
- ],
100
- import: (() => import("./index.esm108.js"))
101
- },
102
- {
103
- id: "bibtex",
104
- name: "BibTeX",
105
- import: (() => import("./index.esm109.js"))
106
- },
107
- {
108
- id: "bicep",
109
- name: "Bicep",
110
- import: (() => import("./index.esm110.js"))
111
- },
112
- {
113
- id: "blade",
114
- name: "Blade",
115
- import: (() => import("./index.esm111.js"))
116
- },
117
- {
118
- id: "bsl",
119
- name: "1C (Enterprise)",
120
- aliases: [
121
- "1c"
122
- ],
123
- import: (() => import("./index.esm112.js"))
124
- },
125
- {
126
- id: "c",
127
- name: "C",
128
- import: (() => import("./index.esm113.js"))
129
- },
130
- {
131
- id: "c3",
132
- name: "C3",
133
- import: (() => import("./index.esm114.js"))
134
- },
135
- {
136
- id: "cadence",
137
- name: "Cadence",
138
- aliases: [
139
- "cdc"
140
- ],
141
- import: (() => import("./index.esm115.js"))
142
- },
143
- {
144
- id: "cairo",
145
- name: "Cairo",
146
- import: (() => import("./index.esm116.js"))
147
- },
148
- {
149
- id: "clarity",
150
- name: "Clarity",
151
- import: (() => import("./index.esm117.js"))
152
- },
153
- {
154
- id: "clojure",
155
- name: "Clojure",
156
- aliases: [
157
- "clj"
158
- ],
159
- import: (() => import("./index.esm118.js"))
160
- },
161
- {
162
- id: "cmake",
163
- name: "CMake",
164
- import: (() => import("./index.esm119.js"))
165
- },
166
- {
167
- id: "cobol",
168
- name: "COBOL",
169
- import: (() => import("./index.esm120.js"))
170
- },
171
- {
172
- id: "codeowners",
173
- name: "CODEOWNERS",
174
- import: (() => import("./index.esm121.js"))
175
- },
176
- {
177
- id: "codeql",
178
- name: "CodeQL",
179
- aliases: [
180
- "ql"
181
- ],
182
- import: (() => import("./index.esm122.js"))
183
- },
184
- {
185
- id: "coffee",
186
- name: "CoffeeScript",
187
- aliases: [
188
- "coffeescript"
189
- ],
190
- import: (() => import("./index.esm123.js"))
191
- },
192
- {
193
- id: "common-lisp",
194
- name: "Common Lisp",
195
- aliases: [
196
- "lisp"
197
- ],
198
- import: (() => import("./index.esm124.js"))
199
- },
200
- {
201
- id: "coq",
202
- name: "Coq",
203
- import: (() => import("./index.esm125.js"))
204
- },
205
- {
206
- id: "cpp",
207
- name: "C++",
208
- aliases: [
209
- "c++"
210
- ],
211
- import: (() => import("./index.esm126.js"))
212
- },
213
- {
214
- id: "crystal",
215
- name: "Crystal",
216
- import: (() => import("./index.esm127.js"))
217
- },
218
- {
219
- id: "csharp",
220
- name: "C#",
221
- aliases: [
222
- "c#",
223
- "cs"
224
- ],
225
- import: (() => import("./index.esm128.js"))
226
- },
227
- {
228
- id: "css",
229
- name: "CSS",
230
- import: (() => import("./index.esm129.js"))
231
- },
232
- {
233
- id: "csv",
234
- name: "CSV",
235
- import: (() => import("./index.esm130.js"))
236
- },
237
- {
238
- id: "cue",
239
- name: "CUE",
240
- import: (() => import("./index.esm131.js"))
241
- },
242
- {
243
- id: "cypher",
244
- name: "Cypher",
245
- aliases: [
246
- "cql"
247
- ],
248
- import: (() => import("./index.esm132.js"))
249
- },
250
- {
251
- id: "d",
252
- name: "D",
253
- import: (() => import("./index.esm133.js"))
254
- },
255
- {
256
- id: "dart",
257
- name: "Dart",
258
- import: (() => import("./index.esm134.js"))
259
- },
260
- {
261
- id: "dax",
262
- name: "DAX",
263
- import: (() => import("./index.esm135.js"))
264
- },
265
- {
266
- id: "desktop",
267
- name: "Desktop",
268
- import: (() => import("./index.esm136.js"))
269
- },
270
- {
271
- id: "diff",
272
- name: "Diff",
273
- import: (() => import("./index.esm137.js"))
274
- },
275
- {
276
- id: "docker",
277
- name: "Dockerfile",
278
- aliases: [
279
- "dockerfile"
280
- ],
281
- import: (() => import("./index.esm138.js"))
282
- },
283
- {
284
- id: "dotenv",
285
- name: "dotEnv",
286
- import: (() => import("./index.esm139.js"))
287
- },
288
- {
289
- id: "dream-maker",
290
- name: "Dream Maker",
291
- import: (() => import("./index.esm140.js"))
292
- },
293
- {
294
- id: "edge",
295
- name: "Edge",
296
- import: (() => import("./index.esm141.js"))
297
- },
298
- {
299
- id: "elixir",
300
- name: "Elixir",
301
- import: (() => import("./index.esm142.js"))
302
- },
303
- {
304
- id: "elm",
305
- name: "Elm",
306
- import: (() => import("./index.esm143.js"))
307
- },
308
- {
309
- id: "emacs-lisp",
310
- name: "Emacs Lisp",
311
- aliases: [
312
- "elisp"
313
- ],
314
- import: (() => import("./index.esm144.js"))
315
- },
316
- {
317
- id: "erb",
318
- name: "ERB",
319
- import: (() => import("./index.esm145.js"))
320
- },
321
- {
322
- id: "erlang",
323
- name: "Erlang",
324
- aliases: [
325
- "erl"
326
- ],
327
- import: (() => import("./index.esm146.js"))
328
- },
329
- {
330
- id: "fennel",
331
- name: "Fennel",
332
- import: (() => import("./index.esm147.js"))
333
- },
334
- {
335
- id: "fish",
336
- name: "Fish",
337
- import: (() => import("./index.esm148.js"))
338
- },
339
- {
340
- id: "fluent",
341
- name: "Fluent",
342
- aliases: [
343
- "ftl"
344
- ],
345
- import: (() => import("./index.esm149.js"))
346
- },
347
- {
348
- id: "fortran-fixed-form",
349
- name: "Fortran (Fixed Form)",
350
- aliases: [
351
- "f",
352
- "for",
353
- "f77"
354
- ],
355
- import: (() => import("./index.esm150.js"))
356
- },
357
- {
358
- id: "fortran-free-form",
359
- name: "Fortran (Free Form)",
360
- aliases: [
361
- "f90",
362
- "f95",
363
- "f03",
364
- "f08",
365
- "f18"
366
- ],
367
- import: (() => import("./index.esm151.js"))
368
- },
369
- {
370
- id: "fsharp",
371
- name: "F#",
372
- aliases: [
373
- "f#",
374
- "fs"
375
- ],
376
- import: (() => import("./index.esm152.js"))
377
- },
378
- {
379
- id: "gdresource",
380
- name: "GDResource",
381
- aliases: [
382
- "tscn",
383
- "tres"
384
- ],
385
- import: (() => import("./index.esm153.js"))
386
- },
387
- {
388
- id: "gdscript",
389
- name: "GDScript",
390
- aliases: [
391
- "gd"
392
- ],
393
- import: (() => import("./index.esm154.js"))
394
- },
395
- {
396
- id: "gdshader",
397
- name: "GDShader",
398
- import: (() => import("./index.esm155.js"))
399
- },
400
- {
401
- id: "genie",
402
- name: "Genie",
403
- import: (() => import("./index.esm156.js"))
404
- },
405
- {
406
- id: "gherkin",
407
- name: "Gherkin",
408
- import: (() => import("./index.esm157.js"))
409
- },
410
- {
411
- id: "git-commit",
412
- name: "Git Commit Message",
413
- import: (() => import("./index.esm158.js"))
414
- },
415
- {
416
- id: "git-rebase",
417
- name: "Git Rebase Message",
418
- import: (() => import("./index.esm159.js"))
419
- },
420
- {
421
- id: "gleam",
422
- name: "Gleam",
423
- import: (() => import("./index.esm160.js"))
424
- },
425
- {
426
- id: "glimmer-js",
427
- name: "Glimmer JS",
428
- aliases: [
429
- "gjs"
430
- ],
431
- import: (() => import("./index.esm161.js"))
432
- },
433
- {
434
- id: "glimmer-ts",
435
- name: "Glimmer TS",
436
- aliases: [
437
- "gts"
438
- ],
439
- import: (() => import("./index.esm162.js"))
440
- },
441
- {
442
- id: "glsl",
443
- name: "GLSL",
444
- import: (() => import("./index.esm163.js"))
445
- },
446
- {
447
- id: "gn",
448
- name: "GN",
449
- import: (() => import("./index.esm164.js"))
450
- },
451
- {
452
- id: "gnuplot",
453
- name: "Gnuplot",
454
- import: (() => import("./index.esm165.js"))
455
- },
456
- {
457
- id: "go",
458
- name: "Go",
459
- import: (() => import("./index.esm166.js"))
460
- },
461
- {
462
- id: "graphql",
463
- name: "GraphQL",
464
- aliases: [
465
- "gql"
466
- ],
467
- import: (() => import("./index.esm167.js"))
468
- },
469
- {
470
- id: "groovy",
471
- name: "Groovy",
472
- import: (() => import("./index.esm168.js"))
473
- },
474
- {
475
- id: "hack",
476
- name: "Hack",
477
- import: (() => import("./index.esm169.js"))
478
- },
479
- {
480
- id: "haml",
481
- name: "Ruby Haml",
482
- import: (() => import("./index.esm170.js"))
483
- },
484
- {
485
- id: "handlebars",
486
- name: "Handlebars",
487
- aliases: [
488
- "hbs"
489
- ],
490
- import: (() => import("./index.esm171.js"))
491
- },
492
- {
493
- id: "haskell",
494
- name: "Haskell",
495
- aliases: [
496
- "hs"
497
- ],
498
- import: (() => import("./index.esm172.js"))
499
- },
500
- {
501
- id: "haxe",
502
- name: "Haxe",
503
- import: (() => import("./index.esm173.js"))
504
- },
505
- {
506
- id: "hcl",
507
- name: "HashiCorp HCL",
508
- import: (() => import("./index.esm174.js"))
509
- },
510
- {
511
- id: "hjson",
512
- name: "Hjson",
513
- import: (() => import("./index.esm175.js"))
514
- },
515
- {
516
- id: "hlsl",
517
- name: "HLSL",
518
- import: (() => import("./index.esm176.js"))
519
- },
520
- {
521
- id: "html",
522
- name: "HTML",
523
- import: (() => import("./index.esm177.js"))
524
- },
525
- {
526
- id: "html-derivative",
527
- name: "HTML (Derivative)",
528
- import: (() => import("./index.esm178.js"))
529
- },
530
- {
531
- id: "http",
532
- name: "HTTP",
533
- import: (() => import("./index.esm179.js"))
534
- },
535
- {
536
- id: "hurl",
537
- name: "Hurl",
538
- import: (() => import("./index.esm180.js"))
539
- },
540
- {
541
- id: "hxml",
542
- name: "HXML",
543
- import: (() => import("./index.esm181.js"))
544
- },
545
- {
546
- id: "hy",
547
- name: "Hy",
548
- import: (() => import("./index.esm182.js"))
549
- },
550
- {
551
- id: "imba",
552
- name: "Imba",
553
- import: (() => import("./index.esm183.js"))
554
- },
555
- {
556
- id: "ini",
557
- name: "INI",
558
- aliases: [
559
- "properties"
560
- ],
561
- import: (() => import("./index.esm184.js"))
562
- },
563
- {
564
- id: "java",
565
- name: "Java",
566
- import: (() => import("./index.esm185.js"))
567
- },
568
- {
569
- id: "javascript",
570
- name: "JavaScript",
571
- aliases: [
572
- "js",
573
- "cjs",
574
- "mjs"
575
- ],
576
- import: (() => import("./index.esm186.js"))
577
- },
578
- {
579
- id: "jinja",
580
- name: "Jinja",
581
- import: (() => import("./index.esm187.js"))
582
- },
583
- {
584
- id: "jison",
585
- name: "Jison",
586
- import: (() => import("./index.esm188.js"))
587
- },
588
- {
589
- id: "json",
590
- name: "JSON",
591
- import: (() => import("./index.esm189.js"))
592
- },
593
- {
594
- id: "json5",
595
- name: "JSON5",
596
- import: (() => import("./index.esm190.js"))
597
- },
598
- {
599
- id: "jsonc",
600
- name: "JSON with Comments",
601
- import: (() => import("./index.esm191.js"))
602
- },
603
- {
604
- id: "jsonl",
605
- name: "JSON Lines",
606
- import: (() => import("./index.esm192.js"))
607
- },
608
- {
609
- id: "jsonnet",
610
- name: "Jsonnet",
611
- import: (() => import("./index.esm193.js"))
612
- },
613
- {
614
- id: "jssm",
615
- name: "JSSM",
616
- aliases: [
617
- "fsl"
618
- ],
619
- import: (() => import("./index.esm194.js"))
620
- },
621
- {
622
- id: "jsx",
623
- name: "JSX",
624
- import: (() => import("./index.esm195.js"))
625
- },
626
- {
627
- id: "julia",
628
- name: "Julia",
629
- aliases: [
630
- "jl"
631
- ],
632
- import: (() => import("./index.esm196.js"))
633
- },
634
- {
635
- id: "kdl",
636
- name: "KDL",
637
- import: (() => import("./index.esm197.js"))
638
- },
639
- {
640
- id: "kotlin",
641
- name: "Kotlin",
642
- aliases: [
643
- "kt",
644
- "kts"
645
- ],
646
- import: (() => import("./index.esm198.js"))
647
- },
648
- {
649
- id: "kusto",
650
- name: "Kusto",
651
- aliases: [
652
- "kql"
653
- ],
654
- import: (() => import("./index.esm199.js"))
655
- },
656
- {
657
- id: "latex",
658
- name: "LaTeX",
659
- import: (() => import("./index.esm200.js"))
660
- },
661
- {
662
- id: "lean",
663
- name: "Lean 4",
664
- aliases: [
665
- "lean4"
666
- ],
667
- import: (() => import("./index.esm201.js"))
668
- },
669
- {
670
- id: "less",
671
- name: "Less",
672
- import: (() => import("./index.esm202.js"))
673
- },
674
- {
675
- id: "liquid",
676
- name: "Liquid",
677
- import: (() => import("./index.esm203.js"))
678
- },
679
- {
680
- id: "llvm",
681
- name: "LLVM IR",
682
- import: (() => import("./index.esm204.js"))
683
- },
684
- {
685
- id: "log",
686
- name: "Log file",
687
- import: (() => import("./index.esm205.js"))
688
- },
689
- {
690
- id: "logo",
691
- name: "Logo",
692
- import: (() => import("./index.esm206.js"))
693
- },
694
- {
695
- id: "lua",
696
- name: "Lua",
697
- import: (() => import("./index.esm207.js"))
698
- },
699
- {
700
- id: "luau",
701
- name: "Luau",
702
- import: (() => import("./index.esm208.js"))
703
- },
704
- {
705
- id: "make",
706
- name: "Makefile",
707
- aliases: [
708
- "makefile"
709
- ],
710
- import: (() => import("./index.esm209.js"))
711
- },
712
- {
713
- id: "markdown",
714
- name: "Markdown",
715
- aliases: [
716
- "md"
717
- ],
718
- import: (() => import("./index.esm210.js"))
719
- },
720
- {
721
- id: "marko",
722
- name: "Marko",
723
- import: (() => import("./index.esm211.js"))
724
- },
725
- {
726
- id: "matlab",
727
- name: "MATLAB",
728
- import: (() => import("./index.esm212.js"))
729
- },
730
- {
731
- id: "mdc",
732
- name: "MDC",
733
- import: (() => import("./index.esm213.js"))
734
- },
735
- {
736
- id: "mdx",
737
- name: "MDX",
738
- import: (() => import("./index.esm214.js"))
739
- },
740
- {
741
- id: "mermaid",
742
- name: "Mermaid",
743
- aliases: [
744
- "mmd"
745
- ],
746
- import: (() => import("./index.esm215.js"))
747
- },
748
- {
749
- id: "mipsasm",
750
- name: "MIPS Assembly",
751
- aliases: [
752
- "mips"
753
- ],
754
- import: (() => import("./index.esm216.js"))
755
- },
756
- {
757
- id: "mojo",
758
- name: "Mojo",
759
- import: (() => import("./index.esm217.js"))
760
- },
761
- {
762
- id: "moonbit",
763
- name: "MoonBit",
764
- aliases: [
765
- "mbt",
766
- "mbti"
767
- ],
768
- import: (() => import("./index.esm218.js"))
769
- },
770
- {
771
- id: "move",
772
- name: "Move",
773
- import: (() => import("./index.esm219.js"))
774
- },
775
- {
776
- id: "narrat",
777
- name: "Narrat Language",
778
- aliases: [
779
- "nar"
780
- ],
781
- import: (() => import("./index.esm220.js"))
782
- },
783
- {
784
- id: "nextflow",
785
- name: "Nextflow",
786
- aliases: [
787
- "nf"
788
- ],
789
- import: (() => import("./index.esm221.js"))
790
- },
791
- {
792
- id: "nginx",
793
- name: "Nginx",
794
- import: (() => import("./index.esm222.js"))
795
- },
796
- {
797
- id: "nim",
798
- name: "Nim",
799
- import: (() => import("./index.esm223.js"))
800
- },
801
- {
802
- id: "nix",
803
- name: "Nix",
804
- import: (() => import("./index.esm224.js"))
805
- },
806
- {
807
- id: "nushell",
808
- name: "nushell",
809
- aliases: [
810
- "nu"
811
- ],
812
- import: (() => import("./index.esm225.js"))
813
- },
814
- {
815
- id: "objective-c",
816
- name: "Objective-C",
817
- aliases: [
818
- "objc"
819
- ],
820
- import: (() => import("./index.esm226.js"))
821
- },
822
- {
823
- id: "objective-cpp",
824
- name: "Objective-C++",
825
- import: (() => import("./index.esm227.js"))
826
- },
827
- {
828
- id: "ocaml",
829
- name: "OCaml",
830
- import: (() => import("./index.esm228.js"))
831
- },
832
- {
833
- id: "odin",
834
- name: "Odin",
835
- import: (() => import("./index.esm229.js"))
836
- },
837
- {
838
- id: "openscad",
839
- name: "OpenSCAD",
840
- aliases: [
841
- "scad"
842
- ],
843
- import: (() => import("./index.esm230.js"))
844
- },
845
- {
846
- id: "pascal",
847
- name: "Pascal",
848
- import: (() => import("./index.esm231.js"))
849
- },
850
- {
851
- id: "perl",
852
- name: "Perl",
853
- import: (() => import("./index.esm232.js"))
854
- },
855
- {
856
- id: "php",
857
- name: "PHP",
858
- import: (() => import("./index.esm233.js"))
859
- },
860
- {
861
- id: "pkl",
862
- name: "Pkl",
863
- import: (() => import("./index.esm234.js"))
864
- },
865
- {
866
- id: "plsql",
867
- name: "PL/SQL",
868
- import: (() => import("./index.esm235.js"))
869
- },
870
- {
871
- id: "po",
872
- name: "Gettext PO",
873
- aliases: [
874
- "pot",
875
- "potx"
876
- ],
877
- import: (() => import("./index.esm236.js"))
878
- },
879
- {
880
- id: "polar",
881
- name: "Polar",
882
- import: (() => import("./index.esm237.js"))
883
- },
884
- {
885
- id: "postcss",
886
- name: "PostCSS",
887
- import: (() => import("./index.esm238.js"))
888
- },
889
- {
890
- id: "powerquery",
891
- name: "PowerQuery",
892
- import: (() => import("./index.esm239.js"))
893
- },
894
- {
895
- id: "powershell",
896
- name: "PowerShell",
897
- aliases: [
898
- "ps",
899
- "ps1"
900
- ],
901
- import: (() => import("./index.esm240.js"))
902
- },
903
- {
904
- id: "prisma",
905
- name: "Prisma",
906
- import: (() => import("./index.esm241.js"))
907
- },
908
- {
909
- id: "prolog",
910
- name: "Prolog",
911
- import: (() => import("./index.esm242.js"))
912
- },
913
- {
914
- id: "proto",
915
- name: "Protocol Buffer 3",
916
- aliases: [
917
- "protobuf"
918
- ],
919
- import: (() => import("./index.esm243.js"))
920
- },
921
- {
922
- id: "pug",
923
- name: "Pug",
924
- aliases: [
925
- "jade"
926
- ],
927
- import: (() => import("./index.esm244.js"))
928
- },
929
- {
930
- id: "puppet",
931
- name: "Puppet",
932
- import: (() => import("./index.esm245.js"))
933
- },
934
- {
935
- id: "purescript",
936
- name: "PureScript",
937
- import: (() => import("./index.esm246.js"))
938
- },
939
- {
940
- id: "python",
941
- name: "Python",
942
- aliases: [
943
- "py"
944
- ],
945
- import: (() => import("./index.esm247.js"))
946
- },
947
- {
948
- id: "qml",
949
- name: "QML",
950
- import: (() => import("./index.esm248.js"))
951
- },
952
- {
953
- id: "qmldir",
954
- name: "QML Directory",
955
- import: (() => import("./index.esm249.js"))
956
- },
957
- {
958
- id: "qss",
959
- name: "Qt Style Sheets",
960
- import: (() => import("./index.esm250.js"))
961
- },
962
- {
963
- id: "r",
964
- name: "R",
965
- import: (() => import("./index.esm251.js"))
966
- },
967
- {
968
- id: "racket",
969
- name: "Racket",
970
- import: (() => import("./index.esm252.js"))
971
- },
972
- {
973
- id: "raku",
974
- name: "Raku",
975
- aliases: [
976
- "perl6"
977
- ],
978
- import: (() => import("./index.esm253.js"))
979
- },
980
- {
981
- id: "razor",
982
- name: "ASP.NET Razor",
983
- import: (() => import("./index.esm254.js"))
984
- },
985
- {
986
- id: "reg",
987
- name: "Windows Registry Script",
988
- import: (() => import("./index.esm255.js"))
989
- },
990
- {
991
- id: "regexp",
992
- name: "RegExp",
993
- aliases: [
994
- "regex"
995
- ],
996
- import: (() => import("./index.esm256.js"))
997
- },
998
- {
999
- id: "rel",
1000
- name: "Rel",
1001
- import: (() => import("./index.esm257.js"))
1002
- },
1003
- {
1004
- id: "riscv",
1005
- name: "RISC-V",
1006
- import: (() => import("./index.esm258.js"))
1007
- },
1008
- {
1009
- id: "ron",
1010
- name: "RON",
1011
- import: (() => import("./index.esm259.js"))
1012
- },
1013
- {
1014
- id: "rosmsg",
1015
- name: "ROS Interface",
1016
- import: (() => import("./index.esm260.js"))
1017
- },
1018
- {
1019
- id: "rst",
1020
- name: "reStructuredText",
1021
- import: (() => import("./index.esm261.js"))
1022
- },
1023
- {
1024
- id: "ruby",
1025
- name: "Ruby",
1026
- aliases: [
1027
- "rb"
1028
- ],
1029
- import: (() => import("./index.esm262.js"))
1030
- },
1031
- {
1032
- id: "rust",
1033
- name: "Rust",
1034
- aliases: [
1035
- "rs"
1036
- ],
1037
- import: (() => import("./index.esm263.js"))
1038
- },
1039
- {
1040
- id: "sas",
1041
- name: "SAS",
1042
- import: (() => import("./index.esm264.js"))
1043
- },
1044
- {
1045
- id: "sass",
1046
- name: "Sass",
1047
- import: (() => import("./index.esm265.js"))
1048
- },
1049
- {
1050
- id: "scala",
1051
- name: "Scala",
1052
- import: (() => import("./index.esm266.js"))
1053
- },
1054
- {
1055
- id: "scheme",
1056
- name: "Scheme",
1057
- import: (() => import("./index.esm267.js"))
1058
- },
1059
- {
1060
- id: "scss",
1061
- name: "SCSS",
1062
- import: (() => import("./index.esm268.js"))
1063
- },
1064
- {
1065
- id: "sdbl",
1066
- name: "1C (Query)",
1067
- aliases: [
1068
- "1c-query"
1069
- ],
1070
- import: (() => import("./index.esm269.js"))
1071
- },
1072
- {
1073
- id: "shaderlab",
1074
- name: "ShaderLab",
1075
- aliases: [
1076
- "shader"
1077
- ],
1078
- import: (() => import("./index.esm270.js"))
1079
- },
1080
- {
1081
- id: "shellscript",
1082
- name: "Shell",
1083
- aliases: [
1084
- "bash",
1085
- "sh",
1086
- "shell",
1087
- "zsh"
1088
- ],
1089
- import: (() => import("./index.esm271.js"))
1090
- },
1091
- {
1092
- id: "shellsession",
1093
- name: "Shell Session",
1094
- aliases: [
1095
- "console"
1096
- ],
1097
- import: (() => import("./index.esm272.js"))
1098
- },
1099
- {
1100
- id: "smalltalk",
1101
- name: "Smalltalk",
1102
- import: (() => import("./index.esm273.js"))
1103
- },
1104
- {
1105
- id: "solidity",
1106
- name: "Solidity",
1107
- import: (() => import("./index.esm274.js"))
1108
- },
1109
- {
1110
- id: "soy",
1111
- name: "Closure Templates",
1112
- aliases: [
1113
- "closure-templates"
1114
- ],
1115
- import: (() => import("./index.esm275.js"))
1116
- },
1117
- {
1118
- id: "sparql",
1119
- name: "SPARQL",
1120
- import: (() => import("./index.esm276.js"))
1121
- },
1122
- {
1123
- id: "splunk",
1124
- name: "Splunk Query Language",
1125
- aliases: [
1126
- "spl"
1127
- ],
1128
- import: (() => import("./index.esm277.js"))
1129
- },
1130
- {
1131
- id: "sql",
1132
- name: "SQL",
1133
- import: (() => import("./index.esm278.js"))
1134
- },
1135
- {
1136
- id: "ssh-config",
1137
- name: "SSH Config",
1138
- import: (() => import("./index.esm279.js"))
1139
- },
1140
- {
1141
- id: "stata",
1142
- name: "Stata",
1143
- import: (() => import("./index.esm280.js"))
1144
- },
1145
- {
1146
- id: "stylus",
1147
- name: "Stylus",
1148
- aliases: [
1149
- "styl"
1150
- ],
1151
- import: (() => import("./index.esm281.js"))
1152
- },
1153
- {
1154
- id: "surrealql",
1155
- name: "SurrealQL",
1156
- aliases: [
1157
- "surql"
1158
- ],
1159
- import: (() => import("./index.esm282.js"))
1160
- },
1161
- {
1162
- id: "svelte",
1163
- name: "Svelte",
1164
- import: (() => import("./index.esm283.js"))
1165
- },
1166
- {
1167
- id: "swift",
1168
- name: "Swift",
1169
- import: (() => import("./index.esm284.js"))
1170
- },
1171
- {
1172
- id: "system-verilog",
1173
- name: "SystemVerilog",
1174
- import: (() => import("./index.esm285.js"))
1175
- },
1176
- {
1177
- id: "systemd",
1178
- name: "Systemd Units",
1179
- import: (() => import("./index.esm286.js"))
1180
- },
1181
- {
1182
- id: "talonscript",
1183
- name: "TalonScript",
1184
- aliases: [
1185
- "talon"
1186
- ],
1187
- import: (() => import("./index.esm287.js"))
1188
- },
1189
- {
1190
- id: "tasl",
1191
- name: "Tasl",
1192
- import: (() => import("./index.esm288.js"))
1193
- },
1194
- {
1195
- id: "tcl",
1196
- name: "Tcl",
1197
- import: (() => import("./index.esm289.js"))
1198
- },
1199
- {
1200
- id: "templ",
1201
- name: "Templ",
1202
- import: (() => import("./index.esm290.js"))
1203
- },
1204
- {
1205
- id: "terraform",
1206
- name: "Terraform",
1207
- aliases: [
1208
- "tf",
1209
- "tfvars"
1210
- ],
1211
- import: (() => import("./index.esm291.js"))
1212
- },
1213
- {
1214
- id: "tex",
1215
- name: "TeX",
1216
- import: (() => import("./index.esm292.js"))
1217
- },
1218
- {
1219
- id: "toml",
1220
- name: "TOML",
1221
- import: (() => import("./index.esm293.js"))
1222
- },
1223
- {
1224
- id: "ts-tags",
1225
- name: "TypeScript with Tags",
1226
- aliases: [
1227
- "lit"
1228
- ],
1229
- import: (() => import("./index.esm294.js"))
1230
- },
1231
- {
1232
- id: "tsv",
1233
- name: "TSV",
1234
- import: (() => import("./index.esm295.js"))
1235
- },
1236
- {
1237
- id: "tsx",
1238
- name: "TSX",
1239
- import: (() => import("./index.esm296.js"))
1240
- },
1241
- {
1242
- id: "turtle",
1243
- name: "Turtle",
1244
- import: (() => import("./index.esm297.js"))
1245
- },
1246
- {
1247
- id: "twig",
1248
- name: "Twig",
1249
- import: (() => import("./index.esm298.js"))
1250
- },
1251
- {
1252
- id: "typescript",
1253
- name: "TypeScript",
1254
- aliases: [
1255
- "ts",
1256
- "cts",
1257
- "mts"
1258
- ],
1259
- import: (() => import("./index.esm299.js"))
1260
- },
1261
- {
1262
- id: "typespec",
1263
- name: "TypeSpec",
1264
- aliases: [
1265
- "tsp"
1266
- ],
1267
- import: (() => import("./index.esm300.js"))
1268
- },
1269
- {
1270
- id: "typst",
1271
- name: "Typst",
1272
- aliases: [
1273
- "typ"
1274
- ],
1275
- import: (() => import("./index.esm301.js"))
1276
- },
1277
- {
1278
- id: "v",
1279
- name: "V",
1280
- import: (() => import("./index.esm302.js"))
1281
- },
1282
- {
1283
- id: "vala",
1284
- name: "Vala",
1285
- import: (() => import("./index.esm303.js"))
1286
- },
1287
- {
1288
- id: "vb",
1289
- name: "Visual Basic",
1290
- aliases: [
1291
- "cmd"
1292
- ],
1293
- import: (() => import("./index.esm304.js"))
1294
- },
1295
- {
1296
- id: "verilog",
1297
- name: "Verilog",
1298
- import: (() => import("./index.esm305.js"))
1299
- },
1300
- {
1301
- id: "vhdl",
1302
- name: "VHDL",
1303
- import: (() => import("./index.esm306.js"))
1304
- },
1305
- {
1306
- id: "viml",
1307
- name: "Vim Script",
1308
- aliases: [
1309
- "vim",
1310
- "vimscript"
1311
- ],
1312
- import: (() => import("./index.esm307.js"))
1313
- },
1314
- {
1315
- id: "vue",
1316
- name: "Vue",
1317
- import: (() => import("./index.esm308.js"))
1318
- },
1319
- {
1320
- id: "vue-html",
1321
- name: "Vue HTML",
1322
- import: (() => import("./index.esm309.js"))
1323
- },
1324
- {
1325
- id: "vue-vine",
1326
- name: "Vue Vine",
1327
- import: (() => import("./index.esm310.js"))
1328
- },
1329
- {
1330
- id: "vyper",
1331
- name: "Vyper",
1332
- aliases: [
1333
- "vy"
1334
- ],
1335
- import: (() => import("./index.esm311.js"))
1336
- },
1337
- {
1338
- id: "wasm",
1339
- name: "WebAssembly",
1340
- import: (() => import("./index.esm312.js"))
1341
- },
1342
- {
1343
- id: "wenyan",
1344
- name: "Wenyan",
1345
- aliases: [
1346
- "文言"
1347
- ],
1348
- import: (() => import("./index.esm313.js"))
1349
- },
1350
- {
1351
- id: "wgsl",
1352
- name: "WGSL",
1353
- import: (() => import("./index.esm314.js"))
1354
- },
1355
- {
1356
- id: "wikitext",
1357
- name: "Wikitext",
1358
- aliases: [
1359
- "mediawiki",
1360
- "wiki"
1361
- ],
1362
- import: (() => import("./index.esm315.js"))
1363
- },
1364
- {
1365
- id: "wit",
1366
- name: "WebAssembly Interface Types",
1367
- import: (() => import("./index.esm316.js"))
1368
- },
1369
- {
1370
- id: "wolfram",
1371
- name: "Wolfram",
1372
- aliases: [
1373
- "wl"
1374
- ],
1375
- import: (() => import("./index.esm317.js"))
1376
- },
1377
- {
1378
- id: "xml",
1379
- name: "XML",
1380
- import: (() => import("./index.esm318.js"))
1381
- },
1382
- {
1383
- id: "xsl",
1384
- name: "XSL",
1385
- import: (() => import("./index.esm319.js"))
1386
- },
1387
- {
1388
- id: "yaml",
1389
- name: "YAML",
1390
- aliases: [
1391
- "yml"
1392
- ],
1393
- import: (() => import("./index.esm320.js"))
1394
- },
1395
- {
1396
- id: "zenscript",
1397
- name: "ZenScript",
1398
- import: (() => import("./index.esm321.js"))
1399
- },
1400
- {
1401
- id: "zig",
1402
- name: "Zig",
1403
- import: (() => import("./index.esm322.js"))
1404
- }
1405
- ], o = Object.fromEntries(r.map((i) => [i.id, i.import])), a = Object.fromEntries(r.flatMap((i) => {
1406
- var m;
1407
- return ((m = i.aliases) == null ? void 0 : m.map((t) => [t, i.import])) || [];
1408
- })), e = {
1409
- ...o,
1410
- ...a
2
+ var we = Object.defineProperty;
3
+ var ke = (n, t, e) => t in n ? we(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
4
+ var v = (n, t, e) => ke(n, typeof t != "symbol" ? t + "" : t, e);
5
+ import { ShikiError as k } from "./index.esm86.js";
6
+ import { FontStyle as L, INITIAL as U, EncodedTokenMetadata as re, Registry as _e, Theme as Le } from "./index.esm89.js";
7
+ import { toHtml as ve } from "./index.esm90.js";
8
+ function D(n, t) {
9
+ const e = typeof n == "string" ? {} : { ...n.colorReplacements }, s = typeof n == "string" ? n : n.name;
10
+ for (const [r, o] of Object.entries((t == null ? void 0 : t.colorReplacements) || {}))
11
+ typeof o == "string" ? e[r] = o : r === s && Object.assign(e, o);
12
+ return e;
13
+ }
14
+ function E(n, t) {
15
+ return n && ((t == null ? void 0 : t[n == null ? void 0 : n.toLowerCase()]) || n);
16
+ }
17
+ function Ce(n) {
18
+ return Array.isArray(n) ? n : [n];
19
+ }
20
+ async function he(n) {
21
+ return Promise.resolve(typeof n == "function" ? n() : n).then((t) => t.default || t);
22
+ }
23
+ function Q(n) {
24
+ return !n || ["plaintext", "txt", "text", "plain"].includes(n);
25
+ }
26
+ function ue(n) {
27
+ return n === "ansi" || Q(n);
28
+ }
29
+ function X(n) {
30
+ return n === "none";
31
+ }
32
+ function ge(n) {
33
+ return X(n);
34
+ }
35
+ function de(n, t) {
36
+ var s;
37
+ if (!t)
38
+ return n;
39
+ n.properties || (n.properties = {}), (s = n.properties).class || (s.class = []), typeof n.properties.class == "string" && (n.properties.class = n.properties.class.split(/\s+/g)), Array.isArray(n.properties.class) || (n.properties.class = []);
40
+ const e = Array.isArray(t) ? t : t.split(/\s+/g);
41
+ for (const r of e)
42
+ r && !n.properties.class.includes(r) && n.properties.class.push(r);
43
+ return n;
44
+ }
45
+ function V(n, t = !1) {
46
+ var o;
47
+ if (n.length === 0)
48
+ return [["", 0]];
49
+ const e = n.split(/(\r?\n)/g);
50
+ let s = 0;
51
+ const r = [];
52
+ for (let a = 0; a < e.length; a += 2) {
53
+ const i = t ? e[a] + (e[a + 1] || "") : e[a];
54
+ r.push([i, s]), s += e[a].length, s += ((o = e[a + 1]) == null ? void 0 : o.length) || 0;
55
+ }
56
+ return r;
57
+ }
58
+ function xe(n) {
59
+ const t = V(n, !0).map(([r]) => r);
60
+ function e(r) {
61
+ if (r === n.length)
62
+ return {
63
+ line: t.length - 1,
64
+ character: t[t.length - 1].length
65
+ };
66
+ let o = r, a = 0;
67
+ for (const i of t) {
68
+ if (o < i.length)
69
+ break;
70
+ o -= i.length, a++;
71
+ }
72
+ return { line: a, character: o };
73
+ }
74
+ function s(r, o) {
75
+ let a = 0;
76
+ for (let i = 0; i < r; i++)
77
+ a += t[i].length;
78
+ return a += o, a;
79
+ }
80
+ return {
81
+ lines: t,
82
+ indexToPos: e,
83
+ posToIndex: s
84
+ };
85
+ }
86
+ function yt(n, t, e) {
87
+ const s = /* @__PURE__ */ new Set();
88
+ for (const o of n.matchAll(/:?lang=["']([^"']+)["']/g)) {
89
+ const a = o[1].toLowerCase().trim();
90
+ a && s.add(a);
91
+ }
92
+ for (const o of n.matchAll(/(?:```|~~~)([\w-]+)/g)) {
93
+ const a = o[1].toLowerCase().trim();
94
+ a && s.add(a);
95
+ }
96
+ for (const o of n.matchAll(/\\begin\{([\w-]+)\}/g)) {
97
+ const a = o[1].toLowerCase().trim();
98
+ a && s.add(a);
99
+ }
100
+ for (const o of n.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
101
+ const a = o[1].toLowerCase().trim(), i = a.includes("/") ? a.split("/").pop() : a;
102
+ i && s.add(i);
103
+ }
104
+ if (!e)
105
+ return Array.from(s);
106
+ const r = e.getBundledLanguages();
107
+ return Array.from(s).filter((o) => o && r[o]);
108
+ }
109
+ const Z = "light-dark()", $e = ["color", "background-color"];
110
+ function Ne(n, t) {
111
+ let e = 0;
112
+ const s = [];
113
+ for (const r of t)
114
+ r > e && s.push({
115
+ ...n,
116
+ content: n.content.slice(e, r),
117
+ offset: n.offset + e
118
+ }), e = r;
119
+ return e < n.content.length && s.push({
120
+ ...n,
121
+ content: n.content.slice(e),
122
+ offset: n.offset + e
123
+ }), s;
124
+ }
125
+ function Ie(n, t) {
126
+ const e = Array.from(t instanceof Set ? t : new Set(t)).sort((s, r) => s - r);
127
+ return e.length ? n.map((s) => s.flatMap((r) => {
128
+ const o = e.filter((a) => r.offset < a && a < r.offset + r.content.length).map((a) => a - r.offset).sort((a, i) => a - i);
129
+ return o.length ? Ne(r, o) : r;
130
+ })) : n;
131
+ }
132
+ function Ee(n, t, e, s, r = "css-vars") {
133
+ const o = {
134
+ content: n.content,
135
+ explanation: n.explanation,
136
+ offset: n.offset
137
+ }, a = t.map((u) => W(n.variants[u])), i = new Set(a.flatMap((u) => Object.keys(u))), l = {}, c = (u, f) => {
138
+ const h = f === "color" ? "" : f === "background-color" ? "-bg" : `-${f}`;
139
+ return e + t[u] + (f === "color" ? "" : h);
140
+ };
141
+ return a.forEach((u, f) => {
142
+ for (const h of i) {
143
+ const d = u[h] || "inherit";
144
+ if (f === 0 && s && $e.includes(h))
145
+ if (s === Z && a.length > 1) {
146
+ const m = t.findIndex((b) => b === "light"), y = t.findIndex((b) => b === "dark");
147
+ if (m === -1 || y === -1)
148
+ throw new k('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
149
+ const T = a[m][h] || "inherit", p = a[y][h] || "inherit";
150
+ l[h] = `light-dark(${T}, ${p})`, r === "css-vars" && (l[c(f, h)] = d);
151
+ } else
152
+ l[h] = d;
153
+ else
154
+ r === "css-vars" && (l[c(f, h)] = d);
155
+ }
156
+ }), o.htmlStyle = l, o;
157
+ }
158
+ function W(n) {
159
+ const t = {};
160
+ if (n.color && (t.color = n.color), n.bgColor && (t["background-color"] = n.bgColor), n.fontStyle) {
161
+ n.fontStyle & L.Italic && (t["font-style"] = "italic"), n.fontStyle & L.Bold && (t["font-weight"] = "bold");
162
+ const e = [];
163
+ n.fontStyle & L.Underline && e.push("underline"), n.fontStyle & L.Strikethrough && e.push("line-through"), e.length && (t["text-decoration"] = e.join(" "));
164
+ }
165
+ return t;
166
+ }
167
+ function q(n) {
168
+ return typeof n == "string" ? n : Object.entries(n).map(([t, e]) => `${t}:${e}`).join(";");
169
+ }
170
+ const me = /* @__PURE__ */ new WeakMap();
171
+ function J(n, t) {
172
+ me.set(n, t);
173
+ }
174
+ function R(n) {
175
+ return me.get(n);
176
+ }
177
+ class F {
178
+ constructor(...t) {
179
+ /**
180
+ * Theme to Stack mapping
181
+ */
182
+ v(this, "_stacks", {});
183
+ v(this, "lang");
184
+ if (t.length === 2) {
185
+ const [e, s] = t;
186
+ this.lang = s, this._stacks = e;
187
+ } else {
188
+ const [e, s, r] = t;
189
+ this.lang = s, this._stacks = { [r]: e };
190
+ }
191
+ }
192
+ get themes() {
193
+ return Object.keys(this._stacks);
194
+ }
195
+ get theme() {
196
+ return this.themes[0];
197
+ }
198
+ get _stack() {
199
+ return this._stacks[this.theme];
200
+ }
201
+ /**
202
+ * Static method to create a initial grammar state.
203
+ */
204
+ static initial(t, e) {
205
+ return new F(
206
+ Object.fromEntries(Ce(e).map((s) => [s, U])),
207
+ t
208
+ );
209
+ }
210
+ /**
211
+ * Get the internal stack object.
212
+ * @internal
213
+ */
214
+ getInternalStack(t = this.theme) {
215
+ return this._stacks[t];
216
+ }
217
+ getScopes(t = this.theme) {
218
+ return Ae(this._stacks[t]);
219
+ }
220
+ toJSON() {
221
+ return {
222
+ lang: this.lang,
223
+ theme: this.theme,
224
+ themes: this.themes,
225
+ scopes: this.getScopes()
226
+ };
227
+ }
228
+ }
229
+ function Ae(n) {
230
+ const t = [], e = /* @__PURE__ */ new Set();
231
+ function s(r) {
232
+ var a;
233
+ if (e.has(r))
234
+ return;
235
+ e.add(r);
236
+ const o = (a = r == null ? void 0 : r.nameScopesList) == null ? void 0 : a.scopeName;
237
+ o && t.push(o), r.parent && s(r.parent);
238
+ }
239
+ return s(n), t;
240
+ }
241
+ function Be(n, t) {
242
+ if (!(n instanceof F))
243
+ throw new k("Invalid grammar state");
244
+ return n.getInternalStack(t);
245
+ }
246
+ function Me() {
247
+ const n = /* @__PURE__ */ new WeakMap();
248
+ function t(e) {
249
+ if (!n.has(e.meta)) {
250
+ let s = function(a) {
251
+ if (typeof a == "number") {
252
+ if (a < 0 || a > e.source.length)
253
+ throw new k(`Invalid decoration offset: ${a}. Code length: ${e.source.length}`);
254
+ return {
255
+ ...r.indexToPos(a),
256
+ offset: a
257
+ };
258
+ } else {
259
+ const i = r.lines[a.line];
260
+ if (i === void 0)
261
+ throw new k(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${r.lines.length}`);
262
+ let l = a.character;
263
+ if (l < 0 && (l = i.length + l), l < 0 || l > i.length)
264
+ throw new k(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${i.length}`);
265
+ return {
266
+ ...a,
267
+ character: l,
268
+ offset: r.posToIndex(a.line, l)
269
+ };
270
+ }
271
+ };
272
+ const r = xe(e.source), o = (e.options.decorations || []).map((a) => ({
273
+ ...a,
274
+ start: s(a.start),
275
+ end: s(a.end)
276
+ }));
277
+ Oe(o), n.set(e.meta, {
278
+ decorations: o,
279
+ converter: r,
280
+ source: e.source
281
+ });
282
+ }
283
+ return n.get(e.meta);
284
+ }
285
+ return {
286
+ name: "shiki:decorations",
287
+ tokens(e) {
288
+ var a;
289
+ if (!((a = this.options.decorations) != null && a.length))
290
+ return;
291
+ const r = t(this).decorations.flatMap((i) => [i.start.offset, i.end.offset]);
292
+ return Ie(e, r);
293
+ },
294
+ code(e) {
295
+ var u;
296
+ if (!((u = this.options.decorations) != null && u.length))
297
+ return;
298
+ const s = t(this), r = Array.from(e.children).filter((f) => f.type === "element" && f.tagName === "span");
299
+ if (r.length !== s.converter.lines.length)
300
+ throw new k(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${s.converter.lines.length}). Failed to apply decorations.`);
301
+ function o(f, h, d, m) {
302
+ const y = r[f];
303
+ let T = "", p = -1, b = -1;
304
+ if (h === 0 && (p = 0), d === 0 && (b = 0), d === Number.POSITIVE_INFINITY && (b = y.children.length), p === -1 || b === -1)
305
+ for (let S = 0; S < y.children.length; S++)
306
+ T += pe(y.children[S]), p === -1 && T.length === h && (p = S + 1), b === -1 && T.length === d && (b = S + 1);
307
+ if (p === -1)
308
+ throw new k(`Failed to find start index for decoration ${JSON.stringify(m.start)}`);
309
+ if (b === -1)
310
+ throw new k(`Failed to find end index for decoration ${JSON.stringify(m.end)}`);
311
+ const g = y.children.slice(p, b);
312
+ if (!m.alwaysWrap && g.length === y.children.length)
313
+ i(y, m, "line");
314
+ else if (!m.alwaysWrap && g.length === 1 && g[0].type === "element")
315
+ i(g[0], m, "token");
316
+ else {
317
+ const S = {
318
+ type: "element",
319
+ tagName: "span",
320
+ properties: {},
321
+ children: g
322
+ };
323
+ i(S, m, "wrapper"), y.children.splice(p, g.length, S);
324
+ }
325
+ }
326
+ function a(f, h) {
327
+ r[f] = i(r[f], h, "line");
328
+ }
329
+ function i(f, h, d) {
330
+ var T;
331
+ const m = h.properties || {}, y = h.transform || ((p) => p);
332
+ return f.tagName = h.tagName || "span", f.properties = {
333
+ ...f.properties,
334
+ ...m,
335
+ class: f.properties.class
336
+ }, (T = h.properties) != null && T.class && de(f, h.properties.class), f = y(f, d) || f, f;
337
+ }
338
+ const l = [], c = s.decorations.sort((f, h) => h.start.offset - f.start.offset || f.end.offset - h.end.offset);
339
+ for (const f of c) {
340
+ const { start: h, end: d } = f;
341
+ if (h.line === d.line)
342
+ o(h.line, h.character, d.character, f);
343
+ else if (h.line < d.line) {
344
+ o(h.line, h.character, Number.POSITIVE_INFINITY, f);
345
+ for (let m = h.line + 1; m < d.line; m++)
346
+ l.unshift(() => a(m, f));
347
+ o(d.line, 0, d.character, f);
348
+ }
349
+ }
350
+ l.forEach((f) => f());
351
+ }
352
+ };
353
+ }
354
+ function Oe(n) {
355
+ for (let t = 0; t < n.length; t++) {
356
+ const e = n[t];
357
+ if (e.start.offset > e.end.offset)
358
+ throw new k(`Invalid decoration range: ${JSON.stringify(e.start)} - ${JSON.stringify(e.end)}`);
359
+ for (let s = t + 1; s < n.length; s++) {
360
+ const r = n[s], o = e.start.offset <= r.start.offset && r.start.offset < e.end.offset, a = e.start.offset < r.end.offset && r.end.offset <= e.end.offset, i = r.start.offset <= e.start.offset && e.start.offset < r.end.offset, l = r.start.offset < e.end.offset && e.end.offset <= r.end.offset;
361
+ if (o || a || i || l) {
362
+ if (o && a || i && l || i && e.start.offset === e.end.offset || a && r.start.offset === r.end.offset)
363
+ continue;
364
+ throw new k(`Decorations ${JSON.stringify(e.start)} and ${JSON.stringify(r.start)} intersect.`);
365
+ }
366
+ }
367
+ }
368
+ }
369
+ function pe(n) {
370
+ return n.type === "text" ? n.value : n.type === "element" ? n.children.map(pe).join("") : "";
371
+ }
372
+ const je = [
373
+ /* @__PURE__ */ Me()
374
+ ];
375
+ function H(n) {
376
+ const t = Fe(n.transformers || []);
377
+ return [
378
+ ...t.pre,
379
+ ...t.normal,
380
+ ...t.post,
381
+ ...je
382
+ ];
383
+ }
384
+ function Fe(n) {
385
+ const t = [], e = [], s = [];
386
+ for (const r of n)
387
+ switch (r.enforce) {
388
+ case "pre":
389
+ t.push(r);
390
+ break;
391
+ case "post":
392
+ e.push(r);
393
+ break;
394
+ default:
395
+ s.push(r);
396
+ }
397
+ return { pre: t, post: e, normal: s };
398
+ }
399
+ var A = [
400
+ "black",
401
+ "red",
402
+ "green",
403
+ "yellow",
404
+ "blue",
405
+ "magenta",
406
+ "cyan",
407
+ "white",
408
+ "brightBlack",
409
+ "brightRed",
410
+ "brightGreen",
411
+ "brightYellow",
412
+ "brightBlue",
413
+ "brightMagenta",
414
+ "brightCyan",
415
+ "brightWhite"
416
+ ], K = {
417
+ 1: "bold",
418
+ 2: "dim",
419
+ 3: "italic",
420
+ 4: "underline",
421
+ 7: "reverse",
422
+ 8: "hidden",
423
+ 9: "strikethrough"
424
+ };
425
+ function Ge(n, t) {
426
+ const e = n.indexOf("\x1B", t);
427
+ if (e !== -1 && n[e + 1] === "[") {
428
+ const s = n.indexOf("m", e);
429
+ if (s !== -1)
430
+ return {
431
+ sequence: n.substring(e + 2, s).split(";"),
432
+ startPosition: e,
433
+ position: s + 1
434
+ };
435
+ }
436
+ return {
437
+ position: n.length
438
+ };
439
+ }
440
+ function oe(n) {
441
+ const t = n.shift();
442
+ if (t === "2") {
443
+ const e = n.splice(0, 3).map((s) => Number.parseInt(s));
444
+ return e.length !== 3 || e.some((s) => Number.isNaN(s)) ? void 0 : {
445
+ type: "rgb",
446
+ rgb: e
447
+ };
448
+ } else if (t === "5") {
449
+ const e = n.shift();
450
+ if (e)
451
+ return { type: "table", index: Number(e) };
452
+ }
453
+ }
454
+ function Re(n) {
455
+ const t = [];
456
+ for (; n.length > 0; ) {
457
+ const e = n.shift();
458
+ if (!e)
459
+ continue;
460
+ const s = Number.parseInt(e);
461
+ if (!Number.isNaN(s))
462
+ if (s === 0)
463
+ t.push({ type: "resetAll" });
464
+ else if (s <= 9)
465
+ K[s] && t.push({
466
+ type: "setDecoration",
467
+ value: K[s]
468
+ });
469
+ else if (s <= 29) {
470
+ const r = K[s - 20];
471
+ r && (t.push({
472
+ type: "resetDecoration",
473
+ value: r
474
+ }), r === "dim" && t.push({
475
+ type: "resetDecoration",
476
+ value: "bold"
477
+ }));
478
+ } else if (s <= 37)
479
+ t.push({
480
+ type: "setForegroundColor",
481
+ value: { type: "named", name: A[s - 30] }
482
+ });
483
+ else if (s === 38) {
484
+ const r = oe(n);
485
+ r && t.push({
486
+ type: "setForegroundColor",
487
+ value: r
488
+ });
489
+ } else if (s === 39)
490
+ t.push({
491
+ type: "resetForegroundColor"
492
+ });
493
+ else if (s <= 47)
494
+ t.push({
495
+ type: "setBackgroundColor",
496
+ value: { type: "named", name: A[s - 40] }
497
+ });
498
+ else if (s === 48) {
499
+ const r = oe(n);
500
+ r && t.push({
501
+ type: "setBackgroundColor",
502
+ value: r
503
+ });
504
+ } else s === 49 ? t.push({
505
+ type: "resetBackgroundColor"
506
+ }) : s === 53 ? t.push({
507
+ type: "setDecoration",
508
+ value: "overline"
509
+ }) : s === 55 ? t.push({
510
+ type: "resetDecoration",
511
+ value: "overline"
512
+ }) : s >= 90 && s <= 97 ? t.push({
513
+ type: "setForegroundColor",
514
+ value: { type: "named", name: A[s - 90 + 8] }
515
+ }) : s >= 100 && s <= 107 && t.push({
516
+ type: "setBackgroundColor",
517
+ value: { type: "named", name: A[s - 100 + 8] }
518
+ });
519
+ }
520
+ return t;
521
+ }
522
+ function De() {
523
+ let n = null, t = null, e = /* @__PURE__ */ new Set();
524
+ return {
525
+ parse(s) {
526
+ const r = [];
527
+ let o = 0;
528
+ do {
529
+ const a = Ge(s, o), i = a.sequence ? s.substring(o, a.startPosition) : s.substring(o);
530
+ if (i.length > 0 && r.push({
531
+ value: i,
532
+ foreground: n,
533
+ background: t,
534
+ decorations: new Set(e)
535
+ }), a.sequence) {
536
+ const l = Re(a.sequence);
537
+ for (const c of l)
538
+ c.type === "resetAll" ? (n = null, t = null, e.clear()) : c.type === "resetForegroundColor" ? n = null : c.type === "resetBackgroundColor" ? t = null : c.type === "resetDecoration" && e.delete(c.value);
539
+ for (const c of l)
540
+ c.type === "setForegroundColor" ? n = c.value : c.type === "setBackgroundColor" ? t = c.value : c.type === "setDecoration" && e.add(c.value);
541
+ }
542
+ o = a.position;
543
+ } while (o < s.length);
544
+ return r;
545
+ }
546
+ };
547
+ }
548
+ var We = {
549
+ black: "#000000",
550
+ red: "#bb0000",
551
+ green: "#00bb00",
552
+ yellow: "#bbbb00",
553
+ blue: "#0000bb",
554
+ magenta: "#ff00ff",
555
+ cyan: "#00bbbb",
556
+ white: "#eeeeee",
557
+ brightBlack: "#555555",
558
+ brightRed: "#ff5555",
559
+ brightGreen: "#00ff00",
560
+ brightYellow: "#ffff55",
561
+ brightBlue: "#5555ff",
562
+ brightMagenta: "#ff55ff",
563
+ brightCyan: "#55ffff",
564
+ brightWhite: "#ffffff"
565
+ };
566
+ function He(n = We) {
567
+ function t(i) {
568
+ return n[i];
569
+ }
570
+ function e(i) {
571
+ return `#${i.map((l) => Math.max(0, Math.min(l, 255)).toString(16).padStart(2, "0")).join("")}`;
572
+ }
573
+ let s;
574
+ function r() {
575
+ if (s)
576
+ return s;
577
+ s = [];
578
+ for (let c = 0; c < A.length; c++)
579
+ s.push(t(A[c]));
580
+ let i = [0, 95, 135, 175, 215, 255];
581
+ for (let c = 0; c < 6; c++)
582
+ for (let u = 0; u < 6; u++)
583
+ for (let f = 0; f < 6; f++)
584
+ s.push(e([i[c], i[u], i[f]]));
585
+ let l = 8;
586
+ for (let c = 0; c < 24; c++, l += 10)
587
+ s.push(e([l, l, l]));
588
+ return s;
589
+ }
590
+ function o(i) {
591
+ return r()[i];
592
+ }
593
+ function a(i) {
594
+ switch (i.type) {
595
+ case "named":
596
+ return t(i.name);
597
+ case "rgb":
598
+ return e(i.rgb);
599
+ case "table":
600
+ return o(i.index);
601
+ }
602
+ }
603
+ return {
604
+ value: a
605
+ };
606
+ }
607
+ const Pe = {
608
+ black: "#000000",
609
+ red: "#cd3131",
610
+ green: "#0DBC79",
611
+ yellow: "#E5E510",
612
+ blue: "#2472C8",
613
+ magenta: "#BC3FBC",
614
+ cyan: "#11A8CD",
615
+ white: "#E5E5E5",
616
+ brightBlack: "#666666",
617
+ brightRed: "#F14C4C",
618
+ brightGreen: "#23D18B",
619
+ brightYellow: "#F5F543",
620
+ brightBlue: "#3B8EEA",
621
+ brightMagenta: "#D670D6",
622
+ brightCyan: "#29B8DB",
623
+ brightWhite: "#FFFFFF"
1411
624
  };
625
+ function ze(n, t, e) {
626
+ const s = D(n, e), r = V(t), o = Object.fromEntries(
627
+ A.map((l) => {
628
+ var f;
629
+ const c = `terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`, u = (f = n.colors) == null ? void 0 : f[c];
630
+ return [l, u || Pe[l]];
631
+ })
632
+ ), a = He(o), i = De();
633
+ return r.map(
634
+ (l) => i.parse(l[0]).map((c) => {
635
+ let u, f;
636
+ c.decorations.has("reverse") ? (u = c.background ? a.value(c.background) : n.bg, f = c.foreground ? a.value(c.foreground) : n.fg) : (u = c.foreground ? a.value(c.foreground) : n.fg, f = c.background ? a.value(c.background) : void 0), u = E(u, s), f = E(f, s), c.decorations.has("dim") && (u = Ve(u));
637
+ let h = L.None;
638
+ return c.decorations.has("bold") && (h |= L.Bold), c.decorations.has("italic") && (h |= L.Italic), c.decorations.has("underline") && (h |= L.Underline), c.decorations.has("strikethrough") && (h |= L.Strikethrough), {
639
+ content: c.value,
640
+ offset: l[1],
641
+ // TODO: more accurate offset? might need to fork ansi-sequence-parser
642
+ color: u,
643
+ bgColor: f,
644
+ fontStyle: h
645
+ };
646
+ })
647
+ );
648
+ }
649
+ function Ve(n) {
650
+ const t = n.match(/#([0-9a-f]{3,8})/i);
651
+ if (t) {
652
+ const s = t[1];
653
+ if (s.length === 8) {
654
+ const r = Math.round(Number.parseInt(s.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
655
+ return `#${s.slice(0, 6)}${r}`;
656
+ } else {
657
+ if (s.length === 6)
658
+ return `#${s}80`;
659
+ if (s.length === 4) {
660
+ const r = s[0], o = s[1], a = s[2], i = s[3], l = Math.round(Number.parseInt(`${i}${i}`, 16) / 2).toString(16).padStart(2, "0");
661
+ return `#${r}${r}${o}${o}${a}${a}${l}`;
662
+ } else if (s.length === 3) {
663
+ const r = s[0], o = s[1], a = s[2];
664
+ return `#${r}${r}${o}${o}${a}${a}80`;
665
+ }
666
+ }
667
+ }
668
+ const e = n.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
669
+ return e ? `var(${e[1]}-dim)` : n;
670
+ }
671
+ function ee(n, t, e = {}) {
672
+ const {
673
+ theme: s = n.getLoadedThemes()[0]
674
+ } = e, r = n.resolveLangAlias(e.lang || "text");
675
+ if (Q(r) || X(s))
676
+ return V(t).map((l) => [{ content: l[0], offset: l[1] }]);
677
+ const { theme: o, colorMap: a } = n.setTheme(s);
678
+ if (r === "ansi")
679
+ return ze(o, t, e);
680
+ const i = n.getLanguage(e.lang || "text");
681
+ if (e.grammarState) {
682
+ if (e.grammarState.lang !== i.name)
683
+ throw new k(`Grammar state language "${e.grammarState.lang}" does not match highlight language "${i.name}"`);
684
+ if (!e.grammarState.themes.includes(o.name))
685
+ throw new k(`Grammar state themes "${e.grammarState.themes}" do not contain highlight theme "${o.name}"`);
686
+ }
687
+ return Ye(t, i, o, a, e);
688
+ }
689
+ function Je(...n) {
690
+ if (n.length === 2)
691
+ return R(n[1]);
692
+ const [t, e, s = {}] = n, {
693
+ lang: r = "text",
694
+ theme: o = t.getLoadedThemes()[0]
695
+ } = s;
696
+ if (Q(r) || X(o))
697
+ throw new k("Plain language does not have grammar state");
698
+ if (r === "ansi")
699
+ throw new k("ANSI language does not have grammar state");
700
+ const { theme: a, colorMap: i } = t.setTheme(o), l = t.getLanguage(r);
701
+ return new F(
702
+ te(e, l, a, i, s).stateStack,
703
+ l.name,
704
+ a.name
705
+ );
706
+ }
707
+ function Ye(n, t, e, s, r) {
708
+ const o = te(n, t, e, s, r), a = new F(
709
+ o.stateStack,
710
+ t.name,
711
+ e.name
712
+ );
713
+ return J(o.tokens, a), o.tokens;
714
+ }
715
+ function te(n, t, e, s, r) {
716
+ const o = D(e, r), {
717
+ tokenizeMaxLineLength: a = 0,
718
+ tokenizeTimeLimit: i = 500
719
+ } = r, l = V(n);
720
+ let c = r.grammarState ? Be(r.grammarState, e.name) ?? U : r.grammarContextCode != null ? te(
721
+ r.grammarContextCode,
722
+ t,
723
+ e,
724
+ s,
725
+ {
726
+ ...r,
727
+ grammarState: void 0,
728
+ grammarContextCode: void 0
729
+ }
730
+ ).stateStack : U, u = [];
731
+ const f = [];
732
+ for (let h = 0, d = l.length; h < d; h++) {
733
+ const [m, y] = l[h];
734
+ if (m === "") {
735
+ u = [], f.push([]);
736
+ continue;
737
+ }
738
+ if (a > 0 && m.length >= a) {
739
+ u = [], f.push([{
740
+ content: m,
741
+ offset: y,
742
+ color: "",
743
+ fontStyle: 0
744
+ }]);
745
+ continue;
746
+ }
747
+ let T, p, b;
748
+ r.includeExplanation && (T = t.tokenizeLine(m, c, i), p = T.tokens, b = 0);
749
+ const g = t.tokenizeLine2(m, c, i), S = g.tokens.length / 2;
750
+ for (let _ = 0; _ < S; _++) {
751
+ const C = g.tokens[2 * _], w = _ + 1 < S ? g.tokens[2 * _ + 2] : m.length;
752
+ if (C === w)
753
+ continue;
754
+ const N = g.tokens[2 * _ + 1], x = E(
755
+ s[re.getForeground(N)],
756
+ o
757
+ ), I = re.getFontStyle(N), B = {
758
+ content: m.substring(C, w),
759
+ offset: y + C,
760
+ color: x,
761
+ fontStyle: I
762
+ };
763
+ if (r.includeExplanation) {
764
+ const M = [];
765
+ if (r.includeExplanation !== "scopeName")
766
+ for (const $ of e.settings) {
767
+ let O;
768
+ switch (typeof $.scope) {
769
+ case "string":
770
+ O = $.scope.split(/,/).map((Y) => Y.trim());
771
+ break;
772
+ case "object":
773
+ O = $.scope;
774
+ break;
775
+ default:
776
+ continue;
777
+ }
778
+ M.push({
779
+ settings: $,
780
+ selectors: O.map((Y) => Y.split(/ /))
781
+ });
782
+ }
783
+ B.explanation = [];
784
+ let se = 0;
785
+ for (; C + se < w; ) {
786
+ const $ = p[b], O = m.substring(
787
+ $.startIndex,
788
+ $.endIndex
789
+ );
790
+ se += O.length, B.explanation.push({
791
+ content: O,
792
+ scopes: r.includeExplanation === "scopeName" ? Ke(
793
+ $.scopes
794
+ ) : Ue(
795
+ M,
796
+ $.scopes
797
+ )
798
+ }), b += 1;
799
+ }
800
+ }
801
+ u.push(B);
802
+ }
803
+ f.push(u), u = [], c = g.ruleStack;
804
+ }
805
+ return {
806
+ tokens: f,
807
+ stateStack: c
808
+ };
809
+ }
810
+ function Ke(n) {
811
+ return n.map((t) => ({ scopeName: t }));
812
+ }
813
+ function Ue(n, t) {
814
+ const e = [];
815
+ for (let s = 0, r = t.length; s < r; s++) {
816
+ const o = t[s];
817
+ e[s] = {
818
+ scopeName: o,
819
+ themeMatches: Qe(n, o, t.slice(0, s))
820
+ };
821
+ }
822
+ return e;
823
+ }
824
+ function ae(n, t) {
825
+ return n === t || t.substring(0, n.length) === n && t[n.length] === ".";
826
+ }
827
+ function qe(n, t, e) {
828
+ if (!ae(n[n.length - 1], t))
829
+ return !1;
830
+ let s = n.length - 2, r = e.length - 1;
831
+ for (; s >= 0 && r >= 0; )
832
+ ae(n[s], e[r]) && (s -= 1), r -= 1;
833
+ return s === -1;
834
+ }
835
+ function Qe(n, t, e) {
836
+ const s = [];
837
+ for (const { selectors: r, settings: o } of n)
838
+ for (const a of r)
839
+ if (qe(a, t, e)) {
840
+ s.push(o);
841
+ break;
842
+ }
843
+ return s;
844
+ }
845
+ function ye(n, t, e) {
846
+ const s = Object.entries(e.themes).filter((l) => l[1]).map((l) => ({ color: l[0], theme: l[1] })), r = s.map((l) => {
847
+ const c = ee(n, t, {
848
+ ...e,
849
+ theme: l.theme
850
+ }), u = R(c), f = typeof l.theme == "string" ? l.theme : l.theme.name;
851
+ return {
852
+ tokens: c,
853
+ state: u,
854
+ theme: f
855
+ };
856
+ }), o = Xe(
857
+ ...r.map((l) => l.tokens)
858
+ ), a = o[0].map(
859
+ (l, c) => l.map((u, f) => {
860
+ const h = {
861
+ content: u.content,
862
+ variants: {},
863
+ offset: u.offset
864
+ };
865
+ return "includeExplanation" in e && e.includeExplanation && (h.explanation = u.explanation), o.forEach((d, m) => {
866
+ const {
867
+ content: y,
868
+ explanation: T,
869
+ offset: p,
870
+ ...b
871
+ } = d[c][f];
872
+ h.variants[s[m].color] = b;
873
+ }), h;
874
+ })
875
+ ), i = r[0].state ? new F(
876
+ Object.fromEntries(r.map((l) => {
877
+ var c;
878
+ return [l.theme, (c = l.state) == null ? void 0 : c.getInternalStack(l.theme)];
879
+ })),
880
+ r[0].state.lang
881
+ ) : void 0;
882
+ return i && J(a, i), a;
883
+ }
884
+ function Xe(...n) {
885
+ const t = n.map(() => []), e = n.length;
886
+ for (let s = 0; s < n[0].length; s++) {
887
+ const r = n.map((l) => l[s]), o = t.map(() => []);
888
+ t.forEach((l, c) => l.push(o[c]));
889
+ const a = r.map(() => 0), i = r.map((l) => l[0]);
890
+ for (; i.every((l) => l); ) {
891
+ const l = Math.min(...i.map((c) => c.content.length));
892
+ for (let c = 0; c < e; c++) {
893
+ const u = i[c];
894
+ u.content.length === l ? (o[c].push(u), a[c] += 1, i[c] = r[c][a[c]]) : (o[c].push({
895
+ ...u,
896
+ content: u.content.slice(0, l)
897
+ }), i[c] = {
898
+ ...u,
899
+ content: u.content.slice(l),
900
+ offset: u.offset + l
901
+ });
902
+ }
903
+ }
904
+ }
905
+ return t;
906
+ }
907
+ function P(n, t, e) {
908
+ let s, r, o, a, i, l;
909
+ if ("themes" in e) {
910
+ const {
911
+ defaultColor: c = "light",
912
+ cssVariablePrefix: u = "--shiki-",
913
+ colorsRendering: f = "css-vars"
914
+ } = e, h = Object.entries(e.themes).filter((p) => p[1]).map((p) => ({ color: p[0], theme: p[1] })).sort((p, b) => p.color === c ? -1 : b.color === c ? 1 : 0);
915
+ if (h.length === 0)
916
+ throw new k("`themes` option must not be empty");
917
+ const d = ye(
918
+ n,
919
+ t,
920
+ e
921
+ );
922
+ if (l = R(d), c && Z !== c && !h.find((p) => p.color === c))
923
+ throw new k(`\`themes\` option must contain the defaultColor key \`${c}\``);
924
+ const m = h.map((p) => n.getTheme(p.theme)), y = h.map((p) => p.color);
925
+ o = d.map((p) => p.map((b) => Ee(b, y, u, c, f))), l && J(o, l);
926
+ const T = h.map((p) => D(p.theme, e));
927
+ r = ie(h, m, T, u, c, "fg", f), s = ie(h, m, T, u, c, "bg", f), a = `shiki-themes ${m.map((p) => p.name).join(" ")}`, i = c ? void 0 : [r, s].join(";");
928
+ } else if ("theme" in e) {
929
+ const c = D(e.theme, e);
930
+ o = ee(
931
+ n,
932
+ t,
933
+ e
934
+ );
935
+ const u = n.getTheme(e.theme);
936
+ s = E(u.bg, c), r = E(u.fg, c), a = u.name, l = R(o);
937
+ } else
938
+ throw new k("Invalid options, either `theme` or `themes` must be provided");
939
+ return {
940
+ tokens: o,
941
+ fg: r,
942
+ bg: s,
943
+ themeName: a,
944
+ rootStyle: i,
945
+ grammarState: l
946
+ };
947
+ }
948
+ function ie(n, t, e, s, r, o, a) {
949
+ return n.map((i, l) => {
950
+ const c = E(t[l][o], e[l]) || "inherit", u = `${s + i.color}${o === "bg" ? "-bg" : ""}:${c}`;
951
+ if (l === 0 && r) {
952
+ if (r === Z && n.length > 1) {
953
+ const f = n.findIndex((y) => y.color === "light"), h = n.findIndex((y) => y.color === "dark");
954
+ if (f === -1 || h === -1)
955
+ throw new k('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
956
+ const d = E(t[f][o], e[f]) || "inherit", m = E(t[h][o], e[h]) || "inherit";
957
+ return `light-dark(${d}, ${m});${u}`;
958
+ }
959
+ return c;
960
+ }
961
+ return a === "css-vars" ? u : null;
962
+ }).filter((i) => !!i).join(";");
963
+ }
964
+ function z(n, t, e, s = {
965
+ meta: {},
966
+ options: e,
967
+ codeToHast: (r, o) => z(n, r, o),
968
+ codeToTokens: (r, o) => P(n, r, o)
969
+ }) {
970
+ var m, y;
971
+ let r = t;
972
+ for (const T of H(e))
973
+ r = ((m = T.preprocess) == null ? void 0 : m.call(s, r, e)) || r;
974
+ let {
975
+ tokens: o,
976
+ fg: a,
977
+ bg: i,
978
+ themeName: l,
979
+ rootStyle: c,
980
+ grammarState: u
981
+ } = P(n, r, e);
982
+ const {
983
+ mergeWhitespaces: f = !0,
984
+ mergeSameStyleTokens: h = !1
985
+ } = e;
986
+ f === !0 ? o = et(o) : f === "never" && (o = tt(o)), h && (o = nt(o));
987
+ const d = {
988
+ ...s,
989
+ get source() {
990
+ return r;
991
+ }
992
+ };
993
+ for (const T of H(e))
994
+ o = ((y = T.tokens) == null ? void 0 : y.call(d, o)) || o;
995
+ return Ze(
996
+ o,
997
+ {
998
+ ...e,
999
+ fg: a,
1000
+ bg: i,
1001
+ themeName: l,
1002
+ rootStyle: e.rootStyle === !1 ? !1 : e.rootStyle ?? c
1003
+ },
1004
+ d,
1005
+ u
1006
+ );
1007
+ }
1008
+ function Ze(n, t, e, s = R(n)) {
1009
+ var y, T, p, b;
1010
+ const r = H(t), o = [], a = {
1011
+ type: "root",
1012
+ children: []
1013
+ }, {
1014
+ structure: i = "classic",
1015
+ tabindex: l = "0"
1016
+ } = t, c = {
1017
+ class: `shiki ${t.themeName || ""}`
1018
+ };
1019
+ t.rootStyle !== !1 && (t.rootStyle != null ? c.style = t.rootStyle : c.style = `background-color:${t.bg};color:${t.fg}`), l !== !1 && l != null && (c.tabindex = l.toString());
1020
+ for (const [g, S] of Object.entries(t.meta || {}))
1021
+ g.startsWith("_") || (c[g] = S);
1022
+ let u = {
1023
+ type: "element",
1024
+ tagName: "pre",
1025
+ properties: c,
1026
+ children: [],
1027
+ data: t.data
1028
+ }, f = {
1029
+ type: "element",
1030
+ tagName: "code",
1031
+ properties: {},
1032
+ children: o
1033
+ };
1034
+ const h = [], d = {
1035
+ ...e,
1036
+ structure: i,
1037
+ addClassToHast: de,
1038
+ get source() {
1039
+ return e.source;
1040
+ },
1041
+ get tokens() {
1042
+ return n;
1043
+ },
1044
+ get options() {
1045
+ return t;
1046
+ },
1047
+ get root() {
1048
+ return a;
1049
+ },
1050
+ get pre() {
1051
+ return u;
1052
+ },
1053
+ get code() {
1054
+ return f;
1055
+ },
1056
+ get lines() {
1057
+ return h;
1058
+ }
1059
+ };
1060
+ if (n.forEach((g, S) => {
1061
+ var w, N;
1062
+ S && (i === "inline" ? a.children.push({ type: "element", tagName: "br", properties: {}, children: [] }) : i === "classic" && o.push({ type: "text", value: `
1063
+ ` }));
1064
+ let _ = {
1065
+ type: "element",
1066
+ tagName: "span",
1067
+ properties: { class: "line" },
1068
+ children: []
1069
+ }, C = 0;
1070
+ for (const x of g) {
1071
+ let I = {
1072
+ type: "element",
1073
+ tagName: "span",
1074
+ properties: {
1075
+ ...x.htmlAttrs
1076
+ },
1077
+ children: [{ type: "text", value: x.content }]
1078
+ };
1079
+ const B = q(x.htmlStyle || W(x));
1080
+ B && (I.properties.style = B);
1081
+ for (const M of r)
1082
+ I = ((w = M == null ? void 0 : M.span) == null ? void 0 : w.call(d, I, S + 1, C, _, x)) || I;
1083
+ i === "inline" ? a.children.push(I) : i === "classic" && _.children.push(I), C += x.content.length;
1084
+ }
1085
+ if (i === "classic") {
1086
+ for (const x of r)
1087
+ _ = ((N = x == null ? void 0 : x.line) == null ? void 0 : N.call(d, _, S + 1)) || _;
1088
+ h.push(_), o.push(_);
1089
+ } else i === "inline" && h.push(_);
1090
+ }), i === "classic") {
1091
+ for (const g of r)
1092
+ f = ((y = g == null ? void 0 : g.code) == null ? void 0 : y.call(d, f)) || f;
1093
+ u.children.push(f);
1094
+ for (const g of r)
1095
+ u = ((T = g == null ? void 0 : g.pre) == null ? void 0 : T.call(d, u)) || u;
1096
+ a.children.push(u);
1097
+ } else if (i === "inline") {
1098
+ const g = [];
1099
+ let S = {
1100
+ type: "element",
1101
+ tagName: "span",
1102
+ properties: { class: "line" },
1103
+ children: []
1104
+ };
1105
+ for (const w of a.children)
1106
+ w.type === "element" && w.tagName === "br" ? (g.push(S), S = {
1107
+ type: "element",
1108
+ tagName: "span",
1109
+ properties: { class: "line" },
1110
+ children: []
1111
+ }) : (w.type === "element" || w.type === "text") && S.children.push(w);
1112
+ g.push(S);
1113
+ let C = {
1114
+ type: "element",
1115
+ tagName: "code",
1116
+ properties: {},
1117
+ children: g
1118
+ };
1119
+ for (const w of r)
1120
+ C = ((p = w == null ? void 0 : w.code) == null ? void 0 : p.call(d, C)) || C;
1121
+ a.children = [];
1122
+ for (let w = 0; w < C.children.length; w++) {
1123
+ w > 0 && a.children.push({ type: "element", tagName: "br", properties: {}, children: [] });
1124
+ const N = C.children[w];
1125
+ N.type === "element" && a.children.push(...N.children);
1126
+ }
1127
+ }
1128
+ let m = a;
1129
+ for (const g of r)
1130
+ m = ((b = g == null ? void 0 : g.root) == null ? void 0 : b.call(d, m)) || m;
1131
+ return s && J(m, s), m;
1132
+ }
1133
+ function et(n) {
1134
+ return n.map((t) => {
1135
+ const e = [];
1136
+ let s = "", r;
1137
+ return t.forEach((o, a) => {
1138
+ const l = !(o.fontStyle && (o.fontStyle & L.Underline || o.fontStyle & L.Strikethrough));
1139
+ l && o.content.match(/^\s+$/) && t[a + 1] ? (r === void 0 && (r = o.offset), s += o.content) : s ? (l ? e.push({
1140
+ ...o,
1141
+ offset: r,
1142
+ content: s + o.content
1143
+ }) : e.push(
1144
+ {
1145
+ content: s,
1146
+ offset: r
1147
+ },
1148
+ o
1149
+ ), r = void 0, s = "") : e.push(o);
1150
+ }), e;
1151
+ });
1152
+ }
1153
+ function tt(n) {
1154
+ return n.map((t) => t.flatMap((e) => {
1155
+ if (e.content.match(/^\s+$/))
1156
+ return e;
1157
+ const s = e.content.match(/^(\s*)(.*?)(\s*)$/);
1158
+ if (!s)
1159
+ return e;
1160
+ const [, r, o, a] = s;
1161
+ if (!r && !a)
1162
+ return e;
1163
+ const i = [{
1164
+ ...e,
1165
+ offset: e.offset + r.length,
1166
+ content: o
1167
+ }];
1168
+ return r && i.unshift({
1169
+ content: r,
1170
+ offset: e.offset
1171
+ }), a && i.push({
1172
+ content: a,
1173
+ offset: e.offset + r.length + o.length
1174
+ }), i;
1175
+ }));
1176
+ }
1177
+ function nt(n) {
1178
+ return n.map((t) => {
1179
+ const e = [];
1180
+ for (const s of t) {
1181
+ if (e.length === 0) {
1182
+ e.push({ ...s });
1183
+ continue;
1184
+ }
1185
+ const r = e[e.length - 1], o = q(r.htmlStyle || W(r)), a = q(s.htmlStyle || W(s)), i = r.fontStyle && (r.fontStyle & L.Underline || r.fontStyle & L.Strikethrough), l = s.fontStyle && (s.fontStyle & L.Underline || s.fontStyle & L.Strikethrough);
1186
+ !i && !l && o === a ? r.content += s.content : e.push({ ...s });
1187
+ }
1188
+ return e;
1189
+ });
1190
+ }
1191
+ const st = ve;
1192
+ function rt(n, t, e) {
1193
+ var o;
1194
+ const s = {
1195
+ meta: {},
1196
+ options: e,
1197
+ codeToHast: (a, i) => z(n, a, i),
1198
+ codeToTokens: (a, i) => P(n, a, i)
1199
+ };
1200
+ let r = st(z(n, t, e, s));
1201
+ for (const a of H(e))
1202
+ r = ((o = a.postprocess) == null ? void 0 : o.call(s, r, e)) || r;
1203
+ return r;
1204
+ }
1205
+ const le = { light: "#333333", dark: "#bbbbbb" }, ce = { light: "#fffffe", dark: "#1e1e1e" }, fe = "__shiki_resolved";
1206
+ function ne(n) {
1207
+ var i, l, c, u, f;
1208
+ if (n != null && n[fe])
1209
+ return n;
1210
+ const t = {
1211
+ ...n
1212
+ };
1213
+ t.tokenColors && !t.settings && (t.settings = t.tokenColors, delete t.tokenColors), t.type || (t.type = "dark"), t.colorReplacements = { ...t.colorReplacements }, t.settings || (t.settings = []);
1214
+ let { bg: e, fg: s } = t;
1215
+ if (!e || !s) {
1216
+ const h = t.settings ? t.settings.find((d) => !d.name && !d.scope) : void 0;
1217
+ (i = h == null ? void 0 : h.settings) != null && i.foreground && (s = h.settings.foreground), (l = h == null ? void 0 : h.settings) != null && l.background && (e = h.settings.background), !s && ((c = t == null ? void 0 : t.colors) != null && c["editor.foreground"]) && (s = t.colors["editor.foreground"]), !e && ((u = t == null ? void 0 : t.colors) != null && u["editor.background"]) && (e = t.colors["editor.background"]), s || (s = t.type === "light" ? le.light : le.dark), e || (e = t.type === "light" ? ce.light : ce.dark), t.fg = s, t.bg = e;
1218
+ }
1219
+ t.settings[0] && t.settings[0].settings && !t.settings[0].scope || t.settings.unshift({
1220
+ settings: {
1221
+ foreground: t.fg,
1222
+ background: t.bg
1223
+ }
1224
+ });
1225
+ let r = 0;
1226
+ const o = /* @__PURE__ */ new Map();
1227
+ function a(h) {
1228
+ var m;
1229
+ if (o.has(h))
1230
+ return o.get(h);
1231
+ r += 1;
1232
+ const d = `#${r.toString(16).padStart(8, "0").toLowerCase()}`;
1233
+ return (m = t.colorReplacements) != null && m[`#${d}`] ? a(h) : (o.set(h, d), d);
1234
+ }
1235
+ t.settings = t.settings.map((h) => {
1236
+ var T, p;
1237
+ const d = ((T = h.settings) == null ? void 0 : T.foreground) && !h.settings.foreground.startsWith("#"), m = ((p = h.settings) == null ? void 0 : p.background) && !h.settings.background.startsWith("#");
1238
+ if (!d && !m)
1239
+ return h;
1240
+ const y = {
1241
+ ...h,
1242
+ settings: {
1243
+ ...h.settings
1244
+ }
1245
+ };
1246
+ if (d) {
1247
+ const b = a(h.settings.foreground);
1248
+ t.colorReplacements[b] = h.settings.foreground, y.settings.foreground = b;
1249
+ }
1250
+ if (m) {
1251
+ const b = a(h.settings.background);
1252
+ t.colorReplacements[b] = h.settings.background, y.settings.background = b;
1253
+ }
1254
+ return y;
1255
+ });
1256
+ for (const h of Object.keys(t.colors || {}))
1257
+ if ((h === "editor.foreground" || h === "editor.background" || h.startsWith("terminal.ansi")) && !((f = t.colors[h]) != null && f.startsWith("#"))) {
1258
+ const d = a(t.colors[h]);
1259
+ t.colorReplacements[d] = t.colors[h], t.colors[h] = d;
1260
+ }
1261
+ return Object.defineProperty(t, fe, {
1262
+ enumerable: !1,
1263
+ writable: !1,
1264
+ value: !0
1265
+ }), t;
1266
+ }
1267
+ async function be(n) {
1268
+ return Array.from(new Set((await Promise.all(
1269
+ n.filter((t) => !ue(t)).map(async (t) => await he(t).then((e) => Array.isArray(e) ? e : [e]))
1270
+ )).flat()));
1271
+ }
1272
+ async function Se(n) {
1273
+ return (await Promise.all(
1274
+ n.map(
1275
+ async (e) => ge(e) ? null : ne(await he(e))
1276
+ )
1277
+ )).filter((e) => !!e);
1278
+ }
1279
+ let ot = 3;
1280
+ function at(n, t = 3) {
1281
+ t > ot || console.trace(`[SHIKI DEPRECATE]: ${n}`);
1282
+ }
1283
+ class j extends Error {
1284
+ constructor(t) {
1285
+ super(t), this.name = "ShikiError";
1286
+ }
1287
+ }
1288
+ function Te(n, t) {
1289
+ if (!t)
1290
+ return n;
1291
+ if (t[n]) {
1292
+ const e = /* @__PURE__ */ new Set([n]);
1293
+ for (; t[n]; ) {
1294
+ if (n = t[n], e.has(n))
1295
+ throw new j(`Circular alias \`${Array.from(e).join(" -> ")} -> ${n}\``);
1296
+ e.add(n);
1297
+ }
1298
+ }
1299
+ return n;
1300
+ }
1301
+ class it extends _e {
1302
+ constructor(e, s, r, o = {}) {
1303
+ super(e);
1304
+ v(this, "_resolvedThemes", /* @__PURE__ */ new Map());
1305
+ v(this, "_resolvedGrammars", /* @__PURE__ */ new Map());
1306
+ v(this, "_langMap", /* @__PURE__ */ new Map());
1307
+ v(this, "_langGraph", /* @__PURE__ */ new Map());
1308
+ v(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap());
1309
+ v(this, "_loadedThemesCache", null);
1310
+ v(this, "_loadedLanguagesCache", null);
1311
+ this._resolver = e, this._themes = s, this._langs = r, this._alias = o, this._themes.map((a) => this.loadTheme(a)), this.loadLanguages(this._langs);
1312
+ }
1313
+ getTheme(e) {
1314
+ return typeof e == "string" ? this._resolvedThemes.get(e) : this.loadTheme(e);
1315
+ }
1316
+ loadTheme(e) {
1317
+ const s = ne(e);
1318
+ return s.name && (this._resolvedThemes.set(s.name, s), this._loadedThemesCache = null), s;
1319
+ }
1320
+ getLoadedThemes() {
1321
+ return this._loadedThemesCache || (this._loadedThemesCache = [...this._resolvedThemes.keys()]), this._loadedThemesCache;
1322
+ }
1323
+ // Override and re-implement this method to cache the textmate themes as `TextMateTheme.createFromRawTheme`
1324
+ // is expensive. Themes can switch often especially for dual-theme support.
1325
+ //
1326
+ // The parent class also accepts `colorMap` as the second parameter, but since we don't use that,
1327
+ // we omit here so it's easier to cache the themes.
1328
+ setTheme(e) {
1329
+ let s = this._textmateThemeCache.get(e);
1330
+ s || (s = Le.createFromRawTheme(e), this._textmateThemeCache.set(e, s)), this._syncRegistry.setTheme(s);
1331
+ }
1332
+ getGrammar(e) {
1333
+ return e = Te(e, this._alias), this._resolvedGrammars.get(e);
1334
+ }
1335
+ loadLanguage(e) {
1336
+ var a, i, l, c;
1337
+ if (this.getGrammar(e.name))
1338
+ return;
1339
+ const s = new Set(
1340
+ [...this._langMap.values()].filter((u) => {
1341
+ var f;
1342
+ return (f = u.embeddedLangsLazy) == null ? void 0 : f.includes(e.name);
1343
+ })
1344
+ );
1345
+ this._resolver.addLanguage(e);
1346
+ const r = {
1347
+ balancedBracketSelectors: e.balancedBracketSelectors || ["*"],
1348
+ unbalancedBracketSelectors: e.unbalancedBracketSelectors || []
1349
+ };
1350
+ this._syncRegistry._rawGrammars.set(e.scopeName, e);
1351
+ const o = this.loadGrammarWithConfiguration(e.scopeName, 1, r);
1352
+ if (o.name = e.name, this._resolvedGrammars.set(e.name, o), e.aliases && e.aliases.forEach((u) => {
1353
+ this._alias[u] = e.name;
1354
+ }), this._loadedLanguagesCache = null, s.size)
1355
+ for (const u of s)
1356
+ this._resolvedGrammars.delete(u.name), this._loadedLanguagesCache = null, (i = (a = this._syncRegistry) == null ? void 0 : a._injectionGrammars) == null || i.delete(u.scopeName), (c = (l = this._syncRegistry) == null ? void 0 : l._grammars) == null || c.delete(u.scopeName), this.loadLanguage(this._langMap.get(u.name));
1357
+ }
1358
+ dispose() {
1359
+ super.dispose(), this._resolvedThemes.clear(), this._resolvedGrammars.clear(), this._langMap.clear(), this._langGraph.clear(), this._loadedThemesCache = null;
1360
+ }
1361
+ loadLanguages(e) {
1362
+ for (const o of e)
1363
+ this.resolveEmbeddedLanguages(o);
1364
+ const s = Array.from(this._langGraph.entries()), r = s.filter(([o, a]) => !a);
1365
+ if (r.length) {
1366
+ const o = s.filter(([a, i]) => {
1367
+ if (!i)
1368
+ return !1;
1369
+ const l = i.embeddedLanguages || i.embeddedLangs;
1370
+ return l == null ? void 0 : l.some((c) => r.map(([u]) => u).includes(c));
1371
+ }).filter((a) => !r.includes(a));
1372
+ throw new j(`Missing languages ${r.map(([a]) => `\`${a}\``).join(", ")}, required by ${o.map(([a]) => `\`${a}\``).join(", ")}`);
1373
+ }
1374
+ for (const [o, a] of s)
1375
+ this._resolver.addLanguage(a);
1376
+ for (const [o, a] of s)
1377
+ this.loadLanguage(a);
1378
+ }
1379
+ getLoadedLanguages() {
1380
+ return this._loadedLanguagesCache || (this._loadedLanguagesCache = [
1381
+ .../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])
1382
+ ]), this._loadedLanguagesCache;
1383
+ }
1384
+ resolveEmbeddedLanguages(e) {
1385
+ this._langMap.set(e.name, e), this._langGraph.set(e.name, e);
1386
+ const s = e.embeddedLanguages ?? e.embeddedLangs;
1387
+ if (s)
1388
+ for (const r of s)
1389
+ this._langGraph.set(r, this._langMap.get(r));
1390
+ }
1391
+ }
1392
+ class lt {
1393
+ constructor(t, e) {
1394
+ v(this, "_langs", /* @__PURE__ */ new Map());
1395
+ v(this, "_scopeToLang", /* @__PURE__ */ new Map());
1396
+ v(this, "_injections", /* @__PURE__ */ new Map());
1397
+ v(this, "_onigLib");
1398
+ this._onigLib = {
1399
+ createOnigScanner: (s) => t.createScanner(s),
1400
+ createOnigString: (s) => t.createString(s)
1401
+ }, e.forEach((s) => this.addLanguage(s));
1402
+ }
1403
+ get onigLib() {
1404
+ return this._onigLib;
1405
+ }
1406
+ getLangRegistration(t) {
1407
+ return this._langs.get(t);
1408
+ }
1409
+ loadGrammar(t) {
1410
+ return this._scopeToLang.get(t);
1411
+ }
1412
+ addLanguage(t) {
1413
+ this._langs.set(t.name, t), t.aliases && t.aliases.forEach((e) => {
1414
+ this._langs.set(e, t);
1415
+ }), this._scopeToLang.set(t.scopeName, t), t.injectTo && t.injectTo.forEach((e) => {
1416
+ this._injections.get(e) || this._injections.set(e, []), this._injections.get(e).push(t.scopeName);
1417
+ });
1418
+ }
1419
+ getInjections(t) {
1420
+ const e = t.split(".");
1421
+ let s = [];
1422
+ for (let r = 1; r <= e.length; r++) {
1423
+ const o = e.slice(0, r).join(".");
1424
+ s = [...s, ...this._injections.get(o) || []];
1425
+ }
1426
+ return s;
1427
+ }
1428
+ }
1429
+ let G = 0;
1430
+ function ct(n) {
1431
+ G += 1, n.warnings !== !1 && G >= 10 && G % 10 === 0 && console.warn(`[Shiki] ${G} 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.`);
1432
+ let t = !1;
1433
+ if (!n.engine)
1434
+ throw new j("`engine` option is required for synchronous mode");
1435
+ const e = (n.langs || []).flat(1), s = (n.themes || []).flat(1).map(ne), r = new lt(n.engine, e), o = new it(r, s, e, n.langAlias);
1436
+ let a;
1437
+ function i(g) {
1438
+ return Te(g, n.langAlias);
1439
+ }
1440
+ function l(g) {
1441
+ p();
1442
+ const S = o.getGrammar(typeof g == "string" ? g : g.name);
1443
+ if (!S)
1444
+ throw new j(`Language \`${g}\` not found, you may need to load it first`);
1445
+ return S;
1446
+ }
1447
+ function c(g) {
1448
+ if (g === "none")
1449
+ return { bg: "", fg: "", name: "none", settings: [], type: "dark" };
1450
+ p();
1451
+ const S = o.getTheme(g);
1452
+ if (!S)
1453
+ throw new j(`Theme \`${g}\` not found, you may need to load it first`);
1454
+ return S;
1455
+ }
1456
+ function u(g) {
1457
+ p();
1458
+ const S = c(g);
1459
+ a !== g && (o.setTheme(S), a = g);
1460
+ const _ = o.getColorMap();
1461
+ return {
1462
+ theme: S,
1463
+ colorMap: _
1464
+ };
1465
+ }
1466
+ function f() {
1467
+ return p(), o.getLoadedThemes();
1468
+ }
1469
+ function h() {
1470
+ return p(), o.getLoadedLanguages();
1471
+ }
1472
+ function d(...g) {
1473
+ p(), o.loadLanguages(g.flat(1));
1474
+ }
1475
+ async function m(...g) {
1476
+ return d(await be(g));
1477
+ }
1478
+ function y(...g) {
1479
+ p();
1480
+ for (const S of g.flat(1))
1481
+ o.loadTheme(S);
1482
+ }
1483
+ async function T(...g) {
1484
+ return p(), y(await Se(g));
1485
+ }
1486
+ function p() {
1487
+ if (t)
1488
+ throw new j("Shiki instance has been disposed");
1489
+ }
1490
+ function b() {
1491
+ t || (t = !0, o.dispose(), G -= 1);
1492
+ }
1493
+ return {
1494
+ setTheme: u,
1495
+ getTheme: c,
1496
+ getLanguage: l,
1497
+ getLoadedThemes: f,
1498
+ getLoadedLanguages: h,
1499
+ resolveLangAlias: i,
1500
+ loadLanguage: m,
1501
+ loadLanguageSync: d,
1502
+ loadTheme: T,
1503
+ loadThemeSync: y,
1504
+ dispose: b,
1505
+ [Symbol.dispose]: b
1506
+ };
1507
+ }
1508
+ async function ft(n) {
1509
+ n.engine || at("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
1510
+ const [
1511
+ t,
1512
+ e,
1513
+ s
1514
+ ] = await Promise.all([
1515
+ Se(n.themes || []),
1516
+ be(n.langs || []),
1517
+ n.engine
1518
+ ]);
1519
+ return ct({
1520
+ ...n,
1521
+ themes: t,
1522
+ langs: e,
1523
+ engine: s
1524
+ });
1525
+ }
1526
+ async function ht(n) {
1527
+ const t = await ft(n);
1528
+ return {
1529
+ getLastGrammarState: (...e) => Je(t, ...e),
1530
+ codeToTokensBase: (e, s) => ee(t, e, s),
1531
+ codeToTokensWithThemes: (e, s) => ye(t, e, s),
1532
+ codeToTokens: (e, s) => P(t, e, s),
1533
+ codeToHast: (e, s) => z(t, e, s),
1534
+ codeToHtml: (e, s) => rt(t, e, s),
1535
+ getBundledLanguages: () => ({}),
1536
+ getBundledThemes: () => ({}),
1537
+ ...t,
1538
+ getInternalContext: () => t
1539
+ };
1540
+ }
1541
+ function bt(n) {
1542
+ const t = n.langs, e = n.themes, s = n.engine;
1543
+ async function r(o) {
1544
+ function a(f) {
1545
+ var h;
1546
+ if (typeof f == "string") {
1547
+ if (f = ((h = o.langAlias) == null ? void 0 : h[f]) || f, ue(f))
1548
+ return [];
1549
+ const d = t[f];
1550
+ if (!d)
1551
+ throw new k(`Language \`${f}\` is not included in this bundle. You may want to load it from external source.`);
1552
+ return d;
1553
+ }
1554
+ return f;
1555
+ }
1556
+ function i(f) {
1557
+ if (ge(f))
1558
+ return "none";
1559
+ if (typeof f == "string") {
1560
+ const h = e[f];
1561
+ if (!h)
1562
+ throw new k(`Theme \`${f}\` is not included in this bundle. You may want to load it from external source.`);
1563
+ return h;
1564
+ }
1565
+ return f;
1566
+ }
1567
+ const l = (o.themes ?? []).map((f) => i(f)), c = (o.langs ?? []).map((f) => a(f)), u = await ht({
1568
+ engine: o.engine ?? s(),
1569
+ ...o,
1570
+ themes: l,
1571
+ langs: c
1572
+ });
1573
+ return {
1574
+ ...u,
1575
+ loadLanguage(...f) {
1576
+ return u.loadLanguage(...f.map(a));
1577
+ },
1578
+ loadTheme(...f) {
1579
+ return u.loadTheme(...f.map(i));
1580
+ },
1581
+ getBundledLanguages() {
1582
+ return t;
1583
+ },
1584
+ getBundledThemes() {
1585
+ return e;
1586
+ }
1587
+ };
1588
+ }
1589
+ return r;
1590
+ }
1591
+ function ut(n) {
1592
+ let t;
1593
+ async function e(s = {}) {
1594
+ if (t) {
1595
+ const r = await t;
1596
+ return await Promise.all([
1597
+ r.loadTheme(...s.themes || []),
1598
+ r.loadLanguage(...s.langs || [])
1599
+ ]), r;
1600
+ } else {
1601
+ t = n({
1602
+ ...s,
1603
+ themes: [],
1604
+ langs: []
1605
+ });
1606
+ const r = await t;
1607
+ return await Promise.all([
1608
+ r.loadTheme(...s.themes || []),
1609
+ r.loadLanguage(...s.langs || [])
1610
+ ]), r;
1611
+ }
1612
+ }
1613
+ return e;
1614
+ }
1615
+ function St(n, t) {
1616
+ const e = ut(n);
1617
+ async function s(r, o) {
1618
+ var l;
1619
+ const a = await e({
1620
+ langs: [o.lang],
1621
+ themes: "theme" in o ? [o.theme] : Object.values(o.themes)
1622
+ }), i = await ((l = t == null ? void 0 : t.guessEmbeddedLanguages) == null ? void 0 : l.call(t, r, o.lang, a));
1623
+ return i && await a.loadLanguage(...i), a;
1624
+ }
1625
+ return {
1626
+ getSingletonHighlighter(r) {
1627
+ return e(r);
1628
+ },
1629
+ async codeToHtml(r, o) {
1630
+ return (await s(r, o)).codeToHtml(r, o);
1631
+ },
1632
+ async codeToHast(r, o) {
1633
+ return (await s(r, o)).codeToHast(r, o);
1634
+ },
1635
+ async codeToTokens(r, o) {
1636
+ return (await s(r, o)).codeToTokens(r, o);
1637
+ },
1638
+ async codeToTokensBase(r, o) {
1639
+ return (await s(r, o)).codeToTokensBase(r, o);
1640
+ },
1641
+ async codeToTokensWithThemes(r, o) {
1642
+ return (await s(r, o)).codeToTokensWithThemes(r, o);
1643
+ },
1644
+ async getLastGrammarState(r, o) {
1645
+ return (await e({
1646
+ langs: [o.lang],
1647
+ themes: [o.theme]
1648
+ })).getLastGrammarState(r, o);
1649
+ }
1650
+ };
1651
+ }
1412
1652
  export {
1413
- e as bundledLanguages,
1414
- a as bundledLanguagesAlias,
1415
- o as bundledLanguagesBase,
1416
- r as bundledLanguagesInfo
1653
+ k as ShikiError,
1654
+ de as addClassToHast,
1655
+ E as applyColorReplacements,
1656
+ z as codeToHast,
1657
+ rt as codeToHtml,
1658
+ P as codeToTokens,
1659
+ ee as codeToTokensBase,
1660
+ ye as codeToTokensWithThemes,
1661
+ bt as createBundledHighlighter,
1662
+ ht as createHighlighterCore,
1663
+ xe as createPositionConverter,
1664
+ ft as createShikiInternal,
1665
+ ct as createShikiInternalSync,
1666
+ St as createSingletonShorthands,
1667
+ Ee as flatTokenVariants,
1668
+ W as getTokenStyleObject,
1669
+ yt as guessEmbeddedLanguages,
1670
+ st as hastToHtml,
1671
+ X as isNoneTheme,
1672
+ Q as isPlainLang,
1673
+ ue as isSpecialLang,
1674
+ ge as isSpecialTheme,
1675
+ ut as makeSingletonHighlighter,
1676
+ he as normalizeGetter,
1677
+ ne as normalizeTheme,
1678
+ D as resolveColorReplacements,
1679
+ V as splitLines,
1680
+ Ne as splitToken,
1681
+ Ie as splitTokens,
1682
+ q as stringifyTokenStyle,
1683
+ Ce as toArray,
1684
+ ze as tokenizeAnsiWithTheme,
1685
+ Ye as tokenizeWithTheme,
1686
+ Ze as tokensToHast,
1687
+ Me as transformerDecorations,
1688
+ at as warnDeprecated
1417
1689
  };
1418
1690
  //# sourceMappingURL=index.esm83.js.map