@synapse-research/synapse 0.1.11 → 0.1.12

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 (1349) hide show
  1. package/dist/.next/BUILD_ID +1 -1
  2. package/dist/.next/app-build-manifest.json +107 -107
  3. package/dist/.next/app-path-routes-manifest.json +31 -31
  4. package/dist/.next/build-manifest.json +2 -2
  5. package/dist/.next/server/app/(dashboard)/agents/page_client-reference-manifest.js +1 -1
  6. package/dist/.next/server/app/(dashboard)/compute/page_client-reference-manifest.js +1 -1
  7. package/dist/.next/server/app/(dashboard)/project-groups/[uuid]/page_client-reference-manifest.js +1 -1
  8. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/activity/page_client-reference-manifest.js +1 -1
  9. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/dashboard/page_client-reference-manifest.js +1 -1
  10. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/documents/[documentUuid]/page_client-reference-manifest.js +1 -1
  11. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/documents/page_client-reference-manifest.js +1 -1
  12. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/experiment-designs/[designUuid]/page_client-reference-manifest.js +1 -1
  13. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/experiment-designs/new/page_client-reference-manifest.js +1 -1
  14. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/experiment-designs/page_client-reference-manifest.js +1 -1
  15. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/experiment-runs/[runUuid]/page_client-reference-manifest.js +1 -1
  16. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/experiment-runs/page_client-reference-manifest.js +1 -1
  17. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/experiments/new/page_client-reference-manifest.js +1 -1
  18. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/experiments/page_client-reference-manifest.js +1 -1
  19. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/insights/page_client-reference-manifest.js +1 -1
  20. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/related-works/page_client-reference-manifest.js +1 -1
  21. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/research-questions/[questionUuid]/page_client-reference-manifest.js +1 -1
  22. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/research-questions/page_client-reference-manifest.js +1 -1
  23. package/dist/.next/server/app/(dashboard)/research-projects/[uuid]/settings/page_client-reference-manifest.js +1 -1
  24. package/dist/.next/server/app/(dashboard)/research-projects/new/page_client-reference-manifest.js +1 -1
  25. package/dist/.next/server/app/(dashboard)/research-projects/page_client-reference-manifest.js +1 -1
  26. package/dist/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  27. package/dist/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  28. package/dist/.next/server/app/_not-found.html +1 -1
  29. package/dist/.next/server/app/_not-found.rsc +1 -1
  30. package/dist/.next/server/app/admin/companies/[uuid]/page_client-reference-manifest.js +1 -1
  31. package/dist/.next/server/app/admin/companies/new/page_client-reference-manifest.js +1 -1
  32. package/dist/.next/server/app/admin/companies/new.html +1 -1
  33. package/dist/.next/server/app/admin/companies/new.rsc +1 -1
  34. package/dist/.next/server/app/admin/companies/page_client-reference-manifest.js +1 -1
  35. package/dist/.next/server/app/admin/companies.html +1 -1
  36. package/dist/.next/server/app/admin/companies.rsc +1 -1
  37. package/dist/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  38. package/dist/.next/server/app/admin.html +1 -1
  39. package/dist/.next/server/app/admin.rsc +1 -1
  40. package/dist/.next/server/app/api/admin/companies/[uuid]/route_client-reference-manifest.js +1 -1
  41. package/dist/.next/server/app/api/admin/companies/route_client-reference-manifest.js +1 -1
  42. package/dist/.next/server/app/api/admin/login/route_client-reference-manifest.js +1 -1
  43. package/dist/.next/server/app/api/admin/session/route_client-reference-manifest.js +1 -1
  44. package/dist/.next/server/app/api/admin/stats/route_client-reference-manifest.js +1 -1
  45. package/dist/.next/server/app/api/agents/[uuid]/route_client-reference-manifest.js +1 -1
  46. package/dist/.next/server/app/api/agents/[uuid]/sessions/route_client-reference-manifest.js +1 -1
  47. package/dist/.next/server/app/api/agents/route_client-reference-manifest.js +1 -1
  48. package/dist/.next/server/app/api/api-keys/[uuid]/route_client-reference-manifest.js +1 -1
  49. package/dist/.next/server/app/api/api-keys/route_client-reference-manifest.js +1 -1
  50. package/dist/.next/server/app/api/auth/callback/route_client-reference-manifest.js +1 -1
  51. package/dist/.next/server/app/api/auth/check-default/route_client-reference-manifest.js +1 -1
  52. package/dist/.next/server/app/api/auth/default-login/route_client-reference-manifest.js +1 -1
  53. package/dist/.next/server/app/api/auth/identify/route_client-reference-manifest.js +1 -1
  54. package/dist/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  55. package/dist/.next/server/app/api/auth/me/route_client-reference-manifest.js +1 -1
  56. package/dist/.next/server/app/api/auth/refresh/route_client-reference-manifest.js +1 -1
  57. package/dist/.next/server/app/api/auth/session/route_client-reference-manifest.js +1 -1
  58. package/dist/.next/server/app/api/auth/sync-token/route_client-reference-manifest.js +1 -1
  59. package/dist/.next/server/app/api/comments/route_client-reference-manifest.js +1 -1
  60. package/dist/.next/server/app/api/compute-nodes/[uuid]/route_client-reference-manifest.js +1 -1
  61. package/dist/.next/server/app/api/compute-nodes/route_client-reference-manifest.js +1 -1
  62. package/dist/.next/server/app/api/compute-pools/[uuid]/route_client-reference-manifest.js +1 -1
  63. package/dist/.next/server/app/api/compute-pools/route_client-reference-manifest.js +1 -1
  64. package/dist/.next/server/app/api/documents/[uuid]/route_client-reference-manifest.js +1 -1
  65. package/dist/.next/server/app/api/events/notifications/route_client-reference-manifest.js +1 -1
  66. package/dist/.next/server/app/api/events/route_client-reference-manifest.js +1 -1
  67. package/dist/.next/server/app/api/experiment-designs/[uuid]/approve/route_client-reference-manifest.js +1 -1
  68. package/dist/.next/server/app/api/experiment-designs/[uuid]/close/route_client-reference-manifest.js +1 -1
  69. package/dist/.next/server/app/api/experiment-designs/[uuid]/reject/route_client-reference-manifest.js +1 -1
  70. package/dist/.next/server/app/api/experiment-designs/[uuid]/route_client-reference-manifest.js +1 -1
  71. package/dist/.next/server/app/api/experiment-runs/[uuid]/claim/route_client-reference-manifest.js +1 -1
  72. package/dist/.next/server/app/api/experiment-runs/[uuid]/dependencies/[dependsOnRunUuid]/route_client-reference-manifest.js +1 -1
  73. package/dist/.next/server/app/api/experiment-runs/[uuid]/dependencies/route_client-reference-manifest.js +1 -1
  74. package/dist/.next/server/app/api/experiment-runs/[uuid]/evaluate-criteria/route_client-reference-manifest.js +1 -1
  75. package/dist/.next/server/app/api/experiment-runs/[uuid]/registry/route_client-reference-manifest.js +1 -1
  76. package/dist/.next/server/app/api/experiment-runs/[uuid]/release/route_client-reference-manifest.js +1 -1
  77. package/dist/.next/server/app/api/experiment-runs/[uuid]/route_client-reference-manifest.js +1 -1
  78. package/dist/.next/server/app/api/experiment-runs/[uuid]/sessions/route_client-reference-manifest.js +1 -1
  79. package/dist/.next/server/app/api/experiments/[uuid]/complete/route_client-reference-manifest.js +1 -1
  80. package/dist/.next/server/app/api/experiments/[uuid]/progress/route_client-reference-manifest.js +1 -1
  81. package/dist/.next/server/app/api/experiments/[uuid]/request-plan/route_client-reference-manifest.js +1 -1
  82. package/dist/.next/server/app/api/experiments/[uuid]/reset/route_client-reference-manifest.js +1 -1
  83. package/dist/.next/server/app/api/experiments/[uuid]/review/route_client-reference-manifest.js +1 -1
  84. package/dist/.next/server/app/api/experiments/[uuid]/route_client-reference-manifest.js +1 -1
  85. package/dist/.next/server/app/api/experiments/[uuid]/start/route_client-reference-manifest.js +1 -1
  86. package/dist/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  87. package/dist/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -1
  88. package/dist/.next/server/app/api/me/assignments/route_client-reference-manifest.js +1 -1
  89. package/dist/.next/server/app/api/mentionables/route_client-reference-manifest.js +1 -1
  90. package/dist/.next/server/app/api/notifications/[uuid]/archive/route_client-reference-manifest.js +1 -1
  91. package/dist/.next/server/app/api/notifications/[uuid]/read/route_client-reference-manifest.js +1 -1
  92. package/dist/.next/server/app/api/notifications/preferences/route_client-reference-manifest.js +1 -1
  93. package/dist/.next/server/app/api/notifications/read-all/route_client-reference-manifest.js +1 -1
  94. package/dist/.next/server/app/api/notifications/route_client-reference-manifest.js +1 -1
  95. package/dist/.next/server/app/api/notifications/unread-count/route_client-reference-manifest.js +1 -1
  96. package/dist/.next/server/app/api/onboarding/status/route_client-reference-manifest.js +1 -1
  97. package/dist/.next/server/app/api/project-groups/[uuid]/dashboard/route_client-reference-manifest.js +1 -1
  98. package/dist/.next/server/app/api/project-groups/[uuid]/route_client-reference-manifest.js +1 -1
  99. package/dist/.next/server/app/api/project-groups/route_client-reference-manifest.js +1 -1
  100. package/dist/.next/server/app/api/research-projects/[uuid]/activity/route_client-reference-manifest.js +1 -1
  101. package/dist/.next/server/app/api/research-projects/[uuid]/agent-activity/route_client-reference-manifest.js +1 -1
  102. package/dist/.next/server/app/api/research-projects/[uuid]/available/route_client-reference-manifest.js +1 -1
  103. package/dist/.next/server/app/api/research-projects/[uuid]/baselines/route_client-reference-manifest.js +1 -1
  104. package/dist/.next/server/app/api/research-projects/[uuid]/documents/route_client-reference-manifest.js +1 -1
  105. package/dist/.next/server/app/api/research-projects/[uuid]/experiment-designs/[designUuid]/validate/route_client-reference-manifest.js +1 -1
  106. package/dist/.next/server/app/api/research-projects/[uuid]/experiment-designs/route_client-reference-manifest.js +1 -1
  107. package/dist/.next/server/app/api/research-projects/[uuid]/experiment-designs/summary/route_client-reference-manifest.js +1 -1
  108. package/dist/.next/server/app/api/research-projects/[uuid]/experiment-runs/dependencies/route_client-reference-manifest.js +1 -1
  109. package/dist/.next/server/app/api/research-projects/[uuid]/experiment-runs/route_client-reference-manifest.js +1 -1
  110. package/dist/.next/server/app/api/research-projects/[uuid]/experiments/route_client-reference-manifest.js +1 -1
  111. package/dist/.next/server/app/api/research-projects/[uuid]/github/branches/route_client-reference-manifest.js +1 -1
  112. package/dist/.next/server/app/api/research-projects/[uuid]/group/route_client-reference-manifest.js +1 -1
  113. package/dist/.next/server/app/api/research-projects/[uuid]/related-works/[workUuid]/route_client-reference-manifest.js +1 -1
  114. package/dist/.next/server/app/api/research-projects/[uuid]/related-works/auto-search/complete/route_client-reference-manifest.js +1 -1
  115. package/dist/.next/server/app/api/research-projects/[uuid]/related-works/auto-search/route_client-reference-manifest.js +1 -1
  116. package/dist/.next/server/app/api/research-projects/[uuid]/related-works/deep-research/complete/route_client-reference-manifest.js +1 -1
  117. package/dist/.next/server/app/api/research-projects/[uuid]/related-works/deep-research/route_client-reference-manifest.js +1 -1
  118. package/dist/.next/server/app/api/research-projects/[uuid]/related-works/route_client-reference-manifest.js +1 -1
  119. package/dist/.next/server/app/api/research-projects/[uuid]/research-questions/route_client-reference-manifest.js +1 -1
  120. package/dist/.next/server/app/api/research-projects/[uuid]/route_client-reference-manifest.js +1 -1
  121. package/dist/.next/server/app/api/research-projects/route_client-reference-manifest.js +1 -1
  122. package/dist/.next/server/app/api/research-questions/[uuid]/claim/route_client-reference-manifest.js +1 -1
  123. package/dist/.next/server/app/api/research-questions/[uuid]/move/route_client-reference-manifest.js +1 -1
  124. package/dist/.next/server/app/api/research-questions/[uuid]/release/route_client-reference-manifest.js +1 -1
  125. package/dist/.next/server/app/api/research-questions/[uuid]/route_client-reference-manifest.js +1 -1
  126. package/dist/.next/server/app/api/sessions/[uuid]/route_client-reference-manifest.js +1 -1
  127. package/dist/.next/server/app/api/settings/integrations/route_client-reference-manifest.js +1 -1
  128. package/dist/.next/server/app/api/ssh-config/route_client-reference-manifest.js +1 -1
  129. package/dist/.next/server/app/index.html +1 -1
  130. package/dist/.next/server/app/index.rsc +1 -1
  131. package/dist/.next/server/app/login/admin/page_client-reference-manifest.js +1 -1
  132. package/dist/.next/server/app/login/admin.html +1 -1
  133. package/dist/.next/server/app/login/admin.rsc +1 -1
  134. package/dist/.next/server/app/login/callback/page_client-reference-manifest.js +1 -1
  135. package/dist/.next/server/app/login/callback.html +1 -1
  136. package/dist/.next/server/app/login/callback.rsc +1 -1
  137. package/dist/.next/server/app/login/page_client-reference-manifest.js +1 -1
  138. package/dist/.next/server/app/login/silent-refresh/page_client-reference-manifest.js +1 -1
  139. package/dist/.next/server/app/login/silent-refresh.html +1 -1
  140. package/dist/.next/server/app/login/silent-refresh.rsc +1 -1
  141. package/dist/.next/server/app/login.html +1 -1
  142. package/dist/.next/server/app/login.rsc +1 -1
  143. package/dist/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  144. package/dist/.next/server/app/page_client-reference-manifest.js +1 -1
  145. package/dist/.next/server/app/research-projects/new.html +1 -1
  146. package/dist/.next/server/app/research-projects/new.rsc +1 -1
  147. package/dist/.next/server/app/research-projects.html +1 -1
  148. package/dist/.next/server/app/research-projects.rsc +1 -1
  149. package/dist/.next/server/app/settings.html +1 -1
  150. package/dist/.next/server/app/settings.rsc +1 -1
  151. package/dist/.next/server/app-paths-manifest.json +31 -31
  152. package/dist/.next/server/middleware-manifest.json +1 -1
  153. package/dist/.next/server/pages/404.html +1 -1
  154. package/dist/.next/server/pages/500.html +1 -1
  155. package/dist/.next/server/server-reference-manifest.js +1 -1
  156. package/dist/.next/server/server-reference-manifest.json +1 -1
  157. package/dist/node_modules/@img/colour/color.cjs +1594 -0
  158. package/dist/node_modules/@img/colour/index.cjs +1 -0
  159. package/dist/node_modules/@img/colour/package.json +45 -0
  160. package/dist/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +1 -0
  161. package/dist/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  162. package/dist/node_modules/@img/sharp-libvips-linux-x64/package.json +42 -0
  163. package/dist/node_modules/@img/sharp-libvips-linux-x64/versions.json +30 -0
  164. package/dist/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  165. package/dist/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  166. package/dist/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  167. package/dist/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  168. package/dist/node_modules/@img/sharp-linux-x64/LICENSE +191 -0
  169. package/dist/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  170. package/dist/node_modules/@img/sharp-linux-x64/package.json +46 -0
  171. package/dist/node_modules/@img/sharp-linuxmusl-x64/LICENSE +191 -0
  172. package/dist/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  173. package/dist/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  174. package/dist/node_modules/@next/env/dist/index.js +1 -0
  175. package/dist/node_modules/@next/env/package.json +36 -0
  176. package/dist/node_modules/@prisma/client-runtime-utils/dist/index.js +2552 -0
  177. package/dist/node_modules/@prisma/client-runtime-utils/package.json +39 -0
  178. package/dist/node_modules/@shikijs/core/dist/index.mjs +2446 -0
  179. package/dist/node_modules/@shikijs/core/package.json +56 -0
  180. package/dist/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +52 -0
  181. package/dist/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +22 -0
  182. package/dist/node_modules/@shikijs/engine-javascript/dist/index.mjs +4 -0
  183. package/dist/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs +93 -0
  184. package/dist/node_modules/@shikijs/engine-javascript/package.json +39 -0
  185. package/dist/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +448 -0
  186. package/dist/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +8 -0
  187. package/dist/node_modules/@shikijs/engine-oniguruma/package.json +42 -0
  188. package/dist/node_modules/@shikijs/langs/dist/abap.mjs +5 -0
  189. package/dist/node_modules/@shikijs/langs/dist/actionscript-3.mjs +5 -0
  190. package/dist/node_modules/@shikijs/langs/dist/ada.mjs +5 -0
  191. package/dist/node_modules/@shikijs/langs/dist/angular-expression.mjs +5 -0
  192. package/dist/node_modules/@shikijs/langs/dist/angular-html.mjs +16 -0
  193. package/dist/node_modules/@shikijs/langs/dist/angular-inline-style.mjs +8 -0
  194. package/dist/node_modules/@shikijs/langs/dist/angular-inline-template.mjs +10 -0
  195. package/dist/node_modules/@shikijs/langs/dist/angular-let-declaration.mjs +8 -0
  196. package/dist/node_modules/@shikijs/langs/dist/angular-template-blocks.mjs +10 -0
  197. package/dist/node_modules/@shikijs/langs/dist/angular-template.mjs +8 -0
  198. package/dist/node_modules/@shikijs/langs/dist/angular-ts.mjs +18 -0
  199. package/dist/node_modules/@shikijs/langs/dist/apache.mjs +5 -0
  200. package/dist/node_modules/@shikijs/langs/dist/apex.mjs +5 -0
  201. package/dist/node_modules/@shikijs/langs/dist/apl.mjs +16 -0
  202. package/dist/node_modules/@shikijs/langs/dist/applescript.mjs +5 -0
  203. package/dist/node_modules/@shikijs/langs/dist/ara.mjs +5 -0
  204. package/dist/node_modules/@shikijs/langs/dist/asciidoc.mjs +5 -0
  205. package/dist/node_modules/@shikijs/langs/dist/asm.mjs +5 -0
  206. package/dist/node_modules/@shikijs/langs/dist/astro.mjs +18 -0
  207. package/dist/node_modules/@shikijs/langs/dist/awk.mjs +5 -0
  208. package/dist/node_modules/@shikijs/langs/dist/ballerina.mjs +5 -0
  209. package/dist/node_modules/@shikijs/langs/dist/bat.mjs +5 -0
  210. package/dist/node_modules/@shikijs/langs/dist/beancount.mjs +5 -0
  211. package/dist/node_modules/@shikijs/langs/dist/berry.mjs +5 -0
  212. package/dist/node_modules/@shikijs/langs/dist/bibtex.mjs +5 -0
  213. package/dist/node_modules/@shikijs/langs/dist/bicep.mjs +5 -0
  214. package/dist/node_modules/@shikijs/langs/dist/bird2.mjs +5 -0
  215. package/dist/node_modules/@shikijs/langs/dist/blade.mjs +20 -0
  216. package/dist/node_modules/@shikijs/langs/dist/bsl.mjs +8 -0
  217. package/dist/node_modules/@shikijs/langs/dist/c.mjs +5 -0
  218. package/dist/node_modules/@shikijs/langs/dist/c3.mjs +5 -0
  219. package/dist/node_modules/@shikijs/langs/dist/cadence.mjs +5 -0
  220. package/dist/node_modules/@shikijs/langs/dist/cairo.mjs +8 -0
  221. package/dist/node_modules/@shikijs/langs/dist/clarity.mjs +5 -0
  222. package/dist/node_modules/@shikijs/langs/dist/clojure.mjs +5 -0
  223. package/dist/node_modules/@shikijs/langs/dist/cmake.mjs +5 -0
  224. package/dist/node_modules/@shikijs/langs/dist/cobol.mjs +10 -0
  225. package/dist/node_modules/@shikijs/langs/dist/codeowners.mjs +5 -0
  226. package/dist/node_modules/@shikijs/langs/dist/codeql.mjs +5 -0
  227. package/dist/node_modules/@shikijs/langs/dist/coffee.mjs +8 -0
  228. package/dist/node_modules/@shikijs/langs/dist/common-lisp.mjs +5 -0
  229. package/dist/node_modules/@shikijs/langs/dist/coq.mjs +5 -0
  230. package/dist/node_modules/@shikijs/langs/dist/cpp-macro.mjs +12 -0
  231. package/dist/node_modules/@shikijs/langs/dist/cpp.mjs +14 -0
  232. package/dist/node_modules/@shikijs/langs/dist/crystal.mjs +18 -0
  233. package/dist/node_modules/@shikijs/langs/dist/csharp.mjs +5 -0
  234. package/dist/node_modules/@shikijs/langs/dist/css.mjs +5 -0
  235. package/dist/node_modules/@shikijs/langs/dist/csv.mjs +5 -0
  236. package/dist/node_modules/@shikijs/langs/dist/cue.mjs +5 -0
  237. package/dist/node_modules/@shikijs/langs/dist/cypher.mjs +5 -0
  238. package/dist/node_modules/@shikijs/langs/dist/d.mjs +5 -0
  239. package/dist/node_modules/@shikijs/langs/dist/dart.mjs +5 -0
  240. package/dist/node_modules/@shikijs/langs/dist/dax.mjs +5 -0
  241. package/dist/node_modules/@shikijs/langs/dist/desktop.mjs +5 -0
  242. package/dist/node_modules/@shikijs/langs/dist/diff.mjs +5 -0
  243. package/dist/node_modules/@shikijs/langs/dist/docker.mjs +5 -0
  244. package/dist/node_modules/@shikijs/langs/dist/dotenv.mjs +5 -0
  245. package/dist/node_modules/@shikijs/langs/dist/dream-maker.mjs +5 -0
  246. package/dist/node_modules/@shikijs/langs/dist/edge.mjs +12 -0
  247. package/dist/node_modules/@shikijs/langs/dist/elixir.mjs +8 -0
  248. package/dist/node_modules/@shikijs/langs/dist/elm.mjs +8 -0
  249. package/dist/node_modules/@shikijs/langs/dist/emacs-lisp.mjs +5 -0
  250. package/dist/node_modules/@shikijs/langs/dist/erb.mjs +10 -0
  251. package/dist/node_modules/@shikijs/langs/dist/erlang.mjs +8 -0
  252. package/dist/node_modules/@shikijs/langs/dist/es-tag-css.mjs +12 -0
  253. package/dist/node_modules/@shikijs/langs/dist/es-tag-glsl.mjs +12 -0
  254. package/dist/node_modules/@shikijs/langs/dist/es-tag-html.mjs +12 -0
  255. package/dist/node_modules/@shikijs/langs/dist/es-tag-sql.mjs +10 -0
  256. package/dist/node_modules/@shikijs/langs/dist/es-tag-xml.mjs +8 -0
  257. package/dist/node_modules/@shikijs/langs/dist/fennel.mjs +5 -0
  258. package/dist/node_modules/@shikijs/langs/dist/fish.mjs +5 -0
  259. package/dist/node_modules/@shikijs/langs/dist/fluent.mjs +5 -0
  260. package/dist/node_modules/@shikijs/langs/dist/fortran-fixed-form.mjs +8 -0
  261. package/dist/node_modules/@shikijs/langs/dist/fortran-free-form.mjs +5 -0
  262. package/dist/node_modules/@shikijs/langs/dist/fsharp.mjs +8 -0
  263. package/dist/node_modules/@shikijs/langs/dist/gdresource.mjs +10 -0
  264. package/dist/node_modules/@shikijs/langs/dist/gdscript.mjs +5 -0
  265. package/dist/node_modules/@shikijs/langs/dist/gdshader.mjs +5 -0
  266. package/dist/node_modules/@shikijs/langs/dist/genie.mjs +5 -0
  267. package/dist/node_modules/@shikijs/langs/dist/gherkin.mjs +5 -0
  268. package/dist/node_modules/@shikijs/langs/dist/git-commit.mjs +8 -0
  269. package/dist/node_modules/@shikijs/langs/dist/git-rebase.mjs +8 -0
  270. package/dist/node_modules/@shikijs/langs/dist/gleam.mjs +5 -0
  271. package/dist/node_modules/@shikijs/langs/dist/glimmer-js.mjs +14 -0
  272. package/dist/node_modules/@shikijs/langs/dist/glimmer-ts.mjs +14 -0
  273. package/dist/node_modules/@shikijs/langs/dist/glsl.mjs +8 -0
  274. package/dist/node_modules/@shikijs/langs/dist/gn.mjs +5 -0
  275. package/dist/node_modules/@shikijs/langs/dist/gnuplot.mjs +5 -0
  276. package/dist/node_modules/@shikijs/langs/dist/go.mjs +5 -0
  277. package/dist/node_modules/@shikijs/langs/dist/graphql.mjs +14 -0
  278. package/dist/node_modules/@shikijs/langs/dist/groovy.mjs +5 -0
  279. package/dist/node_modules/@shikijs/langs/dist/hack.mjs +10 -0
  280. package/dist/node_modules/@shikijs/langs/dist/haml.mjs +10 -0
  281. package/dist/node_modules/@shikijs/langs/dist/handlebars.mjs +14 -0
  282. package/dist/node_modules/@shikijs/langs/dist/haskell.mjs +5 -0
  283. package/dist/node_modules/@shikijs/langs/dist/haxe.mjs +5 -0
  284. package/dist/node_modules/@shikijs/langs/dist/hcl.mjs +5 -0
  285. package/dist/node_modules/@shikijs/langs/dist/hjson.mjs +5 -0
  286. package/dist/node_modules/@shikijs/langs/dist/hlsl.mjs +5 -0
  287. package/dist/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
  288. package/dist/node_modules/@shikijs/langs/dist/html.mjs +10 -0
  289. package/dist/node_modules/@shikijs/langs/dist/http.mjs +14 -0
  290. package/dist/node_modules/@shikijs/langs/dist/hurl.mjs +12 -0
  291. package/dist/node_modules/@shikijs/langs/dist/hxml.mjs +8 -0
  292. package/dist/node_modules/@shikijs/langs/dist/hy.mjs +5 -0
  293. package/dist/node_modules/@shikijs/langs/dist/imba.mjs +5 -0
  294. package/dist/node_modules/@shikijs/langs/dist/ini.mjs +5 -0
  295. package/dist/node_modules/@shikijs/langs/dist/java.mjs +5 -0
  296. package/dist/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
  297. package/dist/node_modules/@shikijs/langs/dist/jinja-html.mjs +8 -0
  298. package/dist/node_modules/@shikijs/langs/dist/jinja.mjs +8 -0
  299. package/dist/node_modules/@shikijs/langs/dist/jison.mjs +8 -0
  300. package/dist/node_modules/@shikijs/langs/dist/json.mjs +5 -0
  301. package/dist/node_modules/@shikijs/langs/dist/json5.mjs +5 -0
  302. package/dist/node_modules/@shikijs/langs/dist/jsonc.mjs +5 -0
  303. package/dist/node_modules/@shikijs/langs/dist/jsonl.mjs +5 -0
  304. package/dist/node_modules/@shikijs/langs/dist/jsonnet.mjs +5 -0
  305. package/dist/node_modules/@shikijs/langs/dist/jssm.mjs +5 -0
  306. package/dist/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
  307. package/dist/node_modules/@shikijs/langs/dist/julia.mjs +16 -0
  308. package/dist/node_modules/@shikijs/langs/dist/just.mjs +18 -0
  309. package/dist/node_modules/@shikijs/langs/dist/kdl.mjs +5 -0
  310. package/dist/node_modules/@shikijs/langs/dist/kotlin.mjs +5 -0
  311. package/dist/node_modules/@shikijs/langs/dist/kusto.mjs +5 -0
  312. package/dist/node_modules/@shikijs/langs/dist/latex.mjs +8 -0
  313. package/dist/node_modules/@shikijs/langs/dist/lean.mjs +5 -0
  314. package/dist/node_modules/@shikijs/langs/dist/less.mjs +5 -0
  315. package/dist/node_modules/@shikijs/langs/dist/liquid.mjs +14 -0
  316. package/dist/node_modules/@shikijs/langs/dist/llvm.mjs +5 -0
  317. package/dist/node_modules/@shikijs/langs/dist/log.mjs +5 -0
  318. package/dist/node_modules/@shikijs/langs/dist/logo.mjs +5 -0
  319. package/dist/node_modules/@shikijs/langs/dist/lua.mjs +8 -0
  320. package/dist/node_modules/@shikijs/langs/dist/luau.mjs +5 -0
  321. package/dist/node_modules/@shikijs/langs/dist/make.mjs +5 -0
  322. package/dist/node_modules/@shikijs/langs/dist/markdown-nix.mjs +5 -0
  323. package/dist/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
  324. package/dist/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
  325. package/dist/node_modules/@shikijs/langs/dist/marko.mjs +14 -0
  326. package/dist/node_modules/@shikijs/langs/dist/matlab.mjs +5 -0
  327. package/dist/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
  328. package/dist/node_modules/@shikijs/langs/dist/mdx.mjs +5 -0
  329. package/dist/node_modules/@shikijs/langs/dist/mermaid.mjs +5 -0
  330. package/dist/node_modules/@shikijs/langs/dist/mipsasm.mjs +5 -0
  331. package/dist/node_modules/@shikijs/langs/dist/mojo.mjs +5 -0
  332. package/dist/node_modules/@shikijs/langs/dist/moonbit.mjs +5 -0
  333. package/dist/node_modules/@shikijs/langs/dist/move.mjs +5 -0
  334. package/dist/node_modules/@shikijs/langs/dist/narrat.mjs +5 -0
  335. package/dist/node_modules/@shikijs/langs/dist/nextflow-groovy.mjs +5 -0
  336. package/dist/node_modules/@shikijs/langs/dist/nextflow.mjs +8 -0
  337. package/dist/node_modules/@shikijs/langs/dist/nginx.mjs +8 -0
  338. package/dist/node_modules/@shikijs/langs/dist/nim.mjs +20 -0
  339. package/dist/node_modules/@shikijs/langs/dist/nix.mjs +8 -0
  340. package/dist/node_modules/@shikijs/langs/dist/nushell.mjs +5 -0
  341. package/dist/node_modules/@shikijs/langs/dist/objective-c.mjs +5 -0
  342. package/dist/node_modules/@shikijs/langs/dist/objective-cpp.mjs +5 -0
  343. package/dist/node_modules/@shikijs/langs/dist/ocaml.mjs +5 -0
  344. package/dist/node_modules/@shikijs/langs/dist/odin.mjs +5 -0
  345. package/dist/node_modules/@shikijs/langs/dist/openscad.mjs +5 -0
  346. package/dist/node_modules/@shikijs/langs/dist/pascal.mjs +5 -0
  347. package/dist/node_modules/@shikijs/langs/dist/perl.mjs +16 -0
  348. package/dist/node_modules/@shikijs/langs/dist/php.mjs +18 -0
  349. package/dist/node_modules/@shikijs/langs/dist/pkl.mjs +5 -0
  350. package/dist/node_modules/@shikijs/langs/dist/plsql.mjs +5 -0
  351. package/dist/node_modules/@shikijs/langs/dist/po.mjs +5 -0
  352. package/dist/node_modules/@shikijs/langs/dist/polar.mjs +5 -0
  353. package/dist/node_modules/@shikijs/langs/dist/postcss.mjs +5 -0
  354. package/dist/node_modules/@shikijs/langs/dist/powerquery.mjs +5 -0
  355. package/dist/node_modules/@shikijs/langs/dist/powershell.mjs +5 -0
  356. package/dist/node_modules/@shikijs/langs/dist/prisma.mjs +5 -0
  357. package/dist/node_modules/@shikijs/langs/dist/prolog.mjs +5 -0
  358. package/dist/node_modules/@shikijs/langs/dist/proto.mjs +5 -0
  359. package/dist/node_modules/@shikijs/langs/dist/pug.mjs +12 -0
  360. package/dist/node_modules/@shikijs/langs/dist/puppet.mjs +5 -0
  361. package/dist/node_modules/@shikijs/langs/dist/purescript.mjs +5 -0
  362. package/dist/node_modules/@shikijs/langs/dist/python.mjs +5 -0
  363. package/dist/node_modules/@shikijs/langs/dist/qml.mjs +8 -0
  364. package/dist/node_modules/@shikijs/langs/dist/qmldir.mjs +5 -0
  365. package/dist/node_modules/@shikijs/langs/dist/qss.mjs +5 -0
  366. package/dist/node_modules/@shikijs/langs/dist/r.mjs +5 -0
  367. package/dist/node_modules/@shikijs/langs/dist/racket.mjs +5 -0
  368. package/dist/node_modules/@shikijs/langs/dist/raku.mjs +5 -0
  369. package/dist/node_modules/@shikijs/langs/dist/razor.mjs +10 -0
  370. package/dist/node_modules/@shikijs/langs/dist/reg.mjs +5 -0
  371. package/dist/node_modules/@shikijs/langs/dist/regexp.mjs +5 -0
  372. package/dist/node_modules/@shikijs/langs/dist/rel.mjs +5 -0
  373. package/dist/node_modules/@shikijs/langs/dist/riscv.mjs +5 -0
  374. package/dist/node_modules/@shikijs/langs/dist/ron.mjs +5 -0
  375. package/dist/node_modules/@shikijs/langs/dist/rosmsg.mjs +5 -0
  376. package/dist/node_modules/@shikijs/langs/dist/rst.mjs +22 -0
  377. package/dist/node_modules/@shikijs/langs/dist/ruby.mjs +30 -0
  378. package/dist/node_modules/@shikijs/langs/dist/rust.mjs +5 -0
  379. package/dist/node_modules/@shikijs/langs/dist/sas.mjs +8 -0
  380. package/dist/node_modules/@shikijs/langs/dist/sass.mjs +5 -0
  381. package/dist/node_modules/@shikijs/langs/dist/scala.mjs +5 -0
  382. package/dist/node_modules/@shikijs/langs/dist/scheme.mjs +5 -0
  383. package/dist/node_modules/@shikijs/langs/dist/scss.mjs +8 -0
  384. package/dist/node_modules/@shikijs/langs/dist/sdbl.mjs +5 -0
  385. package/dist/node_modules/@shikijs/langs/dist/shaderlab.mjs +8 -0
  386. package/dist/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
  387. package/dist/node_modules/@shikijs/langs/dist/shellsession.mjs +8 -0
  388. package/dist/node_modules/@shikijs/langs/dist/smalltalk.mjs +5 -0
  389. package/dist/node_modules/@shikijs/langs/dist/solidity.mjs +5 -0
  390. package/dist/node_modules/@shikijs/langs/dist/soy.mjs +8 -0
  391. package/dist/node_modules/@shikijs/langs/dist/sparql.mjs +8 -0
  392. package/dist/node_modules/@shikijs/langs/dist/splunk.mjs +5 -0
  393. package/dist/node_modules/@shikijs/langs/dist/sql.mjs +5 -0
  394. package/dist/node_modules/@shikijs/langs/dist/ssh-config.mjs +5 -0
  395. package/dist/node_modules/@shikijs/langs/dist/stata.mjs +8 -0
  396. package/dist/node_modules/@shikijs/langs/dist/stylus.mjs +5 -0
  397. package/dist/node_modules/@shikijs/langs/dist/surrealql.mjs +8 -0
  398. package/dist/node_modules/@shikijs/langs/dist/svelte.mjs +14 -0
  399. package/dist/node_modules/@shikijs/langs/dist/swift.mjs +5 -0
  400. package/dist/node_modules/@shikijs/langs/dist/system-verilog.mjs +5 -0
  401. package/dist/node_modules/@shikijs/langs/dist/systemd.mjs +5 -0
  402. package/dist/node_modules/@shikijs/langs/dist/talonscript.mjs +5 -0
  403. package/dist/node_modules/@shikijs/langs/dist/tasl.mjs +5 -0
  404. package/dist/node_modules/@shikijs/langs/dist/tcl.mjs +5 -0
  405. package/dist/node_modules/@shikijs/langs/dist/templ.mjs +12 -0
  406. package/dist/node_modules/@shikijs/langs/dist/terraform.mjs +5 -0
  407. package/dist/node_modules/@shikijs/langs/dist/tex.mjs +8 -0
  408. package/dist/node_modules/@shikijs/langs/dist/toml.mjs +5 -0
  409. package/dist/node_modules/@shikijs/langs/dist/ts-tags.mjs +18 -0
  410. package/dist/node_modules/@shikijs/langs/dist/tsv.mjs +5 -0
  411. package/dist/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
  412. package/dist/node_modules/@shikijs/langs/dist/turtle.mjs +5 -0
  413. package/dist/node_modules/@shikijs/langs/dist/twig.mjs +18 -0
  414. package/dist/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
  415. package/dist/node_modules/@shikijs/langs/dist/typespec.mjs +5 -0
  416. package/dist/node_modules/@shikijs/langs/dist/typst.mjs +5 -0
  417. package/dist/node_modules/@shikijs/langs/dist/v.mjs +5 -0
  418. package/dist/node_modules/@shikijs/langs/dist/vala.mjs +5 -0
  419. package/dist/node_modules/@shikijs/langs/dist/vb.mjs +5 -0
  420. package/dist/node_modules/@shikijs/langs/dist/verilog.mjs +5 -0
  421. package/dist/node_modules/@shikijs/langs/dist/vhdl.mjs +5 -0
  422. package/dist/node_modules/@shikijs/langs/dist/viml.mjs +5 -0
  423. package/dist/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
  424. package/dist/node_modules/@shikijs/langs/dist/vue-html.mjs +8 -0
  425. package/dist/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
  426. package/dist/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
  427. package/dist/node_modules/@shikijs/langs/dist/vue-vine.mjs +18 -0
  428. package/dist/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
  429. package/dist/node_modules/@shikijs/langs/dist/vyper.mjs +5 -0
  430. package/dist/node_modules/@shikijs/langs/dist/wasm.mjs +5 -0
  431. package/dist/node_modules/@shikijs/langs/dist/wenyan.mjs +5 -0
  432. package/dist/node_modules/@shikijs/langs/dist/wgsl.mjs +5 -0
  433. package/dist/node_modules/@shikijs/langs/dist/wikitext.mjs +5 -0
  434. package/dist/node_modules/@shikijs/langs/dist/wit.mjs +5 -0
  435. package/dist/node_modules/@shikijs/langs/dist/wolfram.mjs +5 -0
  436. package/dist/node_modules/@shikijs/langs/dist/xml.mjs +8 -0
  437. package/dist/node_modules/@shikijs/langs/dist/xsl.mjs +8 -0
  438. package/dist/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
  439. package/dist/node_modules/@shikijs/langs/dist/zenscript.mjs +5 -0
  440. package/dist/node_modules/@shikijs/langs/dist/zig.mjs +5 -0
  441. package/dist/node_modules/@shikijs/langs/package.json +384 -0
  442. package/dist/node_modules/@shikijs/themes/dist/andromeeda.mjs +2 -0
  443. package/dist/node_modules/@shikijs/themes/dist/aurora-x.mjs +2 -0
  444. package/dist/node_modules/@shikijs/themes/dist/ayu-dark.mjs +2 -0
  445. package/dist/node_modules/@shikijs/themes/dist/ayu-light.mjs +2 -0
  446. package/dist/node_modules/@shikijs/themes/dist/ayu-mirage.mjs +2 -0
  447. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.mjs +2 -0
  448. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.mjs +2 -0
  449. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.mjs +2 -0
  450. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.mjs +2 -0
  451. package/dist/node_modules/@shikijs/themes/dist/dark-plus.mjs +2 -0
  452. package/dist/node_modules/@shikijs/themes/dist/dracula-soft.mjs +2 -0
  453. package/dist/node_modules/@shikijs/themes/dist/dracula.mjs +2 -0
  454. package/dist/node_modules/@shikijs/themes/dist/everforest-dark.mjs +2 -0
  455. package/dist/node_modules/@shikijs/themes/dist/everforest-light.mjs +2 -0
  456. package/dist/node_modules/@shikijs/themes/dist/github-dark-default.mjs +2 -0
  457. package/dist/node_modules/@shikijs/themes/dist/github-dark-dimmed.mjs +2 -0
  458. package/dist/node_modules/@shikijs/themes/dist/github-dark-high-contrast.mjs +2 -0
  459. package/dist/node_modules/@shikijs/themes/dist/github-dark.mjs +2 -0
  460. package/dist/node_modules/@shikijs/themes/dist/github-light-default.mjs +2 -0
  461. package/dist/node_modules/@shikijs/themes/dist/github-light-high-contrast.mjs +2 -0
  462. package/dist/node_modules/@shikijs/themes/dist/github-light.mjs +2 -0
  463. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.mjs +2 -0
  464. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.mjs +2 -0
  465. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.mjs +2 -0
  466. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.mjs +2 -0
  467. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.mjs +2 -0
  468. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.mjs +2 -0
  469. package/dist/node_modules/@shikijs/themes/dist/horizon-bright.mjs +2 -0
  470. package/dist/node_modules/@shikijs/themes/dist/horizon.mjs +2 -0
  471. package/dist/node_modules/@shikijs/themes/dist/houston.mjs +2 -0
  472. package/dist/node_modules/@shikijs/themes/dist/kanagawa-dragon.mjs +2 -0
  473. package/dist/node_modules/@shikijs/themes/dist/kanagawa-lotus.mjs +2 -0
  474. package/dist/node_modules/@shikijs/themes/dist/kanagawa-wave.mjs +2 -0
  475. package/dist/node_modules/@shikijs/themes/dist/laserwave.mjs +2 -0
  476. package/dist/node_modules/@shikijs/themes/dist/light-plus.mjs +2 -0
  477. package/dist/node_modules/@shikijs/themes/dist/material-theme-darker.mjs +2 -0
  478. package/dist/node_modules/@shikijs/themes/dist/material-theme-lighter.mjs +2 -0
  479. package/dist/node_modules/@shikijs/themes/dist/material-theme-ocean.mjs +2 -0
  480. package/dist/node_modules/@shikijs/themes/dist/material-theme-palenight.mjs +2 -0
  481. package/dist/node_modules/@shikijs/themes/dist/material-theme.mjs +2 -0
  482. package/dist/node_modules/@shikijs/themes/dist/min-dark.mjs +2 -0
  483. package/dist/node_modules/@shikijs/themes/dist/min-light.mjs +2 -0
  484. package/dist/node_modules/@shikijs/themes/dist/monokai.mjs +2 -0
  485. package/dist/node_modules/@shikijs/themes/dist/night-owl-light.mjs +2 -0
  486. package/dist/node_modules/@shikijs/themes/dist/night-owl.mjs +2 -0
  487. package/dist/node_modules/@shikijs/themes/dist/nord.mjs +2 -0
  488. package/dist/node_modules/@shikijs/themes/dist/one-dark-pro.mjs +2 -0
  489. package/dist/node_modules/@shikijs/themes/dist/one-light.mjs +2 -0
  490. package/dist/node_modules/@shikijs/themes/dist/plastic.mjs +2 -0
  491. package/dist/node_modules/@shikijs/themes/dist/poimandres.mjs +2 -0
  492. package/dist/node_modules/@shikijs/themes/dist/red.mjs +2 -0
  493. package/dist/node_modules/@shikijs/themes/dist/rose-pine-dawn.mjs +2 -0
  494. package/dist/node_modules/@shikijs/themes/dist/rose-pine-moon.mjs +2 -0
  495. package/dist/node_modules/@shikijs/themes/dist/rose-pine.mjs +2 -0
  496. package/dist/node_modules/@shikijs/themes/dist/slack-dark.mjs +2 -0
  497. package/dist/node_modules/@shikijs/themes/dist/slack-ochin.mjs +2 -0
  498. package/dist/node_modules/@shikijs/themes/dist/snazzy-light.mjs +2 -0
  499. package/dist/node_modules/@shikijs/themes/dist/solarized-dark.mjs +2 -0
  500. package/dist/node_modules/@shikijs/themes/dist/solarized-light.mjs +2 -0
  501. package/dist/node_modules/@shikijs/themes/dist/synthwave-84.mjs +2 -0
  502. package/dist/node_modules/@shikijs/themes/dist/tokyo-night.mjs +2 -0
  503. package/dist/node_modules/@shikijs/themes/dist/vesper.mjs +2 -0
  504. package/dist/node_modules/@shikijs/themes/dist/vitesse-black.mjs +2 -0
  505. package/dist/node_modules/@shikijs/themes/dist/vitesse-dark.mjs +2 -0
  506. package/dist/node_modules/@shikijs/themes/dist/vitesse-light.mjs +2 -0
  507. package/dist/node_modules/@shikijs/themes/package.json +103 -0
  508. package/dist/node_modules/@shikijs/types/dist/index.mjs +8 -0
  509. package/dist/node_modules/@shikijs/types/package.json +36 -0
  510. package/dist/node_modules/@shikijs/vscode-textmate/dist/index.js +3216 -0
  511. package/dist/node_modules/@shikijs/vscode-textmate/package.json +46 -0
  512. package/dist/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +4 -0
  513. package/dist/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +4 -0
  514. package/dist/node_modules/@swc/helpers/_/_interop_require_default/package.json +4 -0
  515. package/dist/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +4 -0
  516. package/dist/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +10 -0
  517. package/dist/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +8 -0
  518. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
  519. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
  520. package/dist/node_modules/@swc/helpers/package.json +471 -0
  521. package/dist/node_modules/caniuse-lite/data/agents.js +1 -0
  522. package/dist/node_modules/caniuse-lite/data/browserVersions.js +1 -0
  523. package/dist/node_modules/caniuse-lite/data/browsers.js +1 -0
  524. package/dist/node_modules/caniuse-lite/data/features/aac.js +1 -0
  525. package/dist/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -0
  526. package/dist/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -0
  527. package/dist/node_modules/caniuse-lite/data/features/accelerometer.js +1 -0
  528. package/dist/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -0
  529. package/dist/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -0
  530. package/dist/node_modules/caniuse-lite/data/features/ambient-light.js +1 -0
  531. package/dist/node_modules/caniuse-lite/data/features/apng.js +1 -0
  532. package/dist/node_modules/caniuse-lite/data/features/array-find-index.js +1 -0
  533. package/dist/node_modules/caniuse-lite/data/features/array-find.js +1 -0
  534. package/dist/node_modules/caniuse-lite/data/features/array-flat.js +1 -0
  535. package/dist/node_modules/caniuse-lite/data/features/array-includes.js +1 -0
  536. package/dist/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -0
  537. package/dist/node_modules/caniuse-lite/data/features/asmjs.js +1 -0
  538. package/dist/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -0
  539. package/dist/node_modules/caniuse-lite/data/features/async-functions.js +1 -0
  540. package/dist/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -0
  541. package/dist/node_modules/caniuse-lite/data/features/audio-api.js +1 -0
  542. package/dist/node_modules/caniuse-lite/data/features/audio.js +1 -0
  543. package/dist/node_modules/caniuse-lite/data/features/audiotracks.js +1 -0
  544. package/dist/node_modules/caniuse-lite/data/features/autofocus.js +1 -0
  545. package/dist/node_modules/caniuse-lite/data/features/auxclick.js +1 -0
  546. package/dist/node_modules/caniuse-lite/data/features/av1.js +1 -0
  547. package/dist/node_modules/caniuse-lite/data/features/avif.js +1 -0
  548. package/dist/node_modules/caniuse-lite/data/features/background-attachment.js +1 -0
  549. package/dist/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -0
  550. package/dist/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -0
  551. package/dist/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -0
  552. package/dist/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -0
  553. package/dist/node_modules/caniuse-lite/data/features/background-sync.js +1 -0
  554. package/dist/node_modules/caniuse-lite/data/features/battery-status.js +1 -0
  555. package/dist/node_modules/caniuse-lite/data/features/beacon.js +1 -0
  556. package/dist/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -0
  557. package/dist/node_modules/caniuse-lite/data/features/bigint.js +1 -0
  558. package/dist/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -0
  559. package/dist/node_modules/caniuse-lite/data/features/bloburls.js +1 -0
  560. package/dist/node_modules/caniuse-lite/data/features/border-image.js +1 -0
  561. package/dist/node_modules/caniuse-lite/data/features/border-radius.js +1 -0
  562. package/dist/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -0
  563. package/dist/node_modules/caniuse-lite/data/features/brotli.js +1 -0
  564. package/dist/node_modules/caniuse-lite/data/features/calc.js +1 -0
  565. package/dist/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -0
  566. package/dist/node_modules/caniuse-lite/data/features/canvas-text.js +1 -0
  567. package/dist/node_modules/caniuse-lite/data/features/canvas.js +1 -0
  568. package/dist/node_modules/caniuse-lite/data/features/ch-unit.js +1 -0
  569. package/dist/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -0
  570. package/dist/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -0
  571. package/dist/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -0
  572. package/dist/node_modules/caniuse-lite/data/features/classlist.js +1 -0
  573. package/dist/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -0
  574. package/dist/node_modules/caniuse-lite/data/features/clipboard.js +1 -0
  575. package/dist/node_modules/caniuse-lite/data/features/colr-v1.js +1 -0
  576. package/dist/node_modules/caniuse-lite/data/features/colr.js +1 -0
  577. package/dist/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -0
  578. package/dist/node_modules/caniuse-lite/data/features/console-basic.js +1 -0
  579. package/dist/node_modules/caniuse-lite/data/features/console-time.js +1 -0
  580. package/dist/node_modules/caniuse-lite/data/features/const.js +1 -0
  581. package/dist/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -0
  582. package/dist/node_modules/caniuse-lite/data/features/contenteditable.js +1 -0
  583. package/dist/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -0
  584. package/dist/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -0
  585. package/dist/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -0
  586. package/dist/node_modules/caniuse-lite/data/features/cors.js +1 -0
  587. package/dist/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -0
  588. package/dist/node_modules/caniuse-lite/data/features/credential-management.js +1 -0
  589. package/dist/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -0
  590. package/dist/node_modules/caniuse-lite/data/features/cryptography.js +1 -0
  591. package/dist/node_modules/caniuse-lite/data/features/css-all.js +1 -0
  592. package/dist/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -0
  593. package/dist/node_modules/caniuse-lite/data/features/css-animation.js +1 -0
  594. package/dist/node_modules/caniuse-lite/data/features/css-any-link.js +1 -0
  595. package/dist/node_modules/caniuse-lite/data/features/css-appearance.js +1 -0
  596. package/dist/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -0
  597. package/dist/node_modules/caniuse-lite/data/features/css-autofill.js +1 -0
  598. package/dist/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -0
  599. package/dist/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -0
  600. package/dist/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -0
  601. package/dist/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -0
  602. package/dist/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -0
  603. package/dist/node_modules/caniuse-lite/data/features/css-canvas.js +1 -0
  604. package/dist/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -0
  605. package/dist/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -0
  606. package/dist/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -0
  607. package/dist/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -0
  608. package/dist/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -0
  609. package/dist/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -0
  610. package/dist/node_modules/caniuse-lite/data/features/css-color-function.js +1 -0
  611. package/dist/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -0
  612. package/dist/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -0
  613. package/dist/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -0
  614. package/dist/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -0
  615. package/dist/node_modules/caniuse-lite/data/features/css-containment.js +1 -0
  616. package/dist/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -0
  617. package/dist/node_modules/caniuse-lite/data/features/css-counters.js +1 -0
  618. package/dist/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -0
  619. package/dist/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -0
  620. package/dist/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -0
  621. package/dist/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -0
  622. package/dist/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -0
  623. package/dist/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -0
  624. package/dist/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -0
  625. package/dist/node_modules/caniuse-lite/data/features/css-element-function.js +1 -0
  626. package/dist/node_modules/caniuse-lite/data/features/css-env-function.js +1 -0
  627. package/dist/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -0
  628. package/dist/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -0
  629. package/dist/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -0
  630. package/dist/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -0
  631. package/dist/node_modules/caniuse-lite/data/features/css-filters.js +1 -0
  632. package/dist/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -0
  633. package/dist/node_modules/caniuse-lite/data/features/css-first-line.js +1 -0
  634. package/dist/node_modules/caniuse-lite/data/features/css-fixed.js +1 -0
  635. package/dist/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -0
  636. package/dist/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -0
  637. package/dist/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -0
  638. package/dist/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -0
  639. package/dist/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -0
  640. package/dist/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -0
  641. package/dist/node_modules/caniuse-lite/data/features/css-gradients.js +1 -0
  642. package/dist/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -0
  643. package/dist/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -0
  644. package/dist/node_modules/caniuse-lite/data/features/css-grid.js +1 -0
  645. package/dist/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -0
  646. package/dist/node_modules/caniuse-lite/data/features/css-has.js +1 -0
  647. package/dist/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -0
  648. package/dist/node_modules/caniuse-lite/data/features/css-if.js +1 -0
  649. package/dist/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -0
  650. package/dist/node_modules/caniuse-lite/data/features/css-image-set.js +1 -0
  651. package/dist/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -0
  652. package/dist/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -0
  653. package/dist/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -0
  654. package/dist/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -0
  655. package/dist/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -0
  656. package/dist/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -0
  657. package/dist/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -0
  658. package/dist/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -0
  659. package/dist/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -0
  660. package/dist/node_modules/caniuse-lite/data/features/css-masks.js +1 -0
  661. package/dist/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -0
  662. package/dist/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -0
  663. package/dist/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -0
  664. package/dist/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -0
  665. package/dist/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -0
  666. package/dist/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -0
  667. package/dist/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -0
  668. package/dist/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -0
  669. package/dist/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -0
  670. package/dist/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -0
  671. package/dist/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -0
  672. package/dist/node_modules/caniuse-lite/data/features/css-nesting.js +1 -0
  673. package/dist/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -0
  674. package/dist/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -0
  675. package/dist/node_modules/caniuse-lite/data/features/css-opacity.js +1 -0
  676. package/dist/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -0
  677. package/dist/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -0
  678. package/dist/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -0
  679. package/dist/node_modules/caniuse-lite/data/features/css-overflow.js +1 -0
  680. package/dist/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -0
  681. package/dist/node_modules/caniuse-lite/data/features/css-page-break.js +1 -0
  682. package/dist/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -0
  683. package/dist/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -0
  684. package/dist/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -0
  685. package/dist/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -0
  686. package/dist/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -0
  687. package/dist/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -0
  688. package/dist/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -0
  689. package/dist/node_modules/caniuse-lite/data/features/css-reflections.js +1 -0
  690. package/dist/node_modules/caniuse-lite/data/features/css-regions.js +1 -0
  691. package/dist/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -0
  692. package/dist/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -0
  693. package/dist/node_modules/caniuse-lite/data/features/css-resize.js +1 -0
  694. package/dist/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -0
  695. package/dist/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -0
  696. package/dist/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -0
  697. package/dist/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -0
  698. package/dist/node_modules/caniuse-lite/data/features/css-sel2.js +1 -0
  699. package/dist/node_modules/caniuse-lite/data/features/css-sel3.js +1 -0
  700. package/dist/node_modules/caniuse-lite/data/features/css-selection.js +1 -0
  701. package/dist/node_modules/caniuse-lite/data/features/css-shapes.js +1 -0
  702. package/dist/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -0
  703. package/dist/node_modules/caniuse-lite/data/features/css-sticky.js +1 -0
  704. package/dist/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -0
  705. package/dist/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -0
  706. package/dist/node_modules/caniuse-lite/data/features/css-table.js +1 -0
  707. package/dist/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -0
  708. package/dist/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -0
  709. package/dist/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -0
  710. package/dist/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -0
  711. package/dist/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -0
  712. package/dist/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -0
  713. package/dist/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -0
  714. package/dist/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -0
  715. package/dist/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -0
  716. package/dist/node_modules/caniuse-lite/data/features/css-transitions.js +1 -0
  717. package/dist/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -0
  718. package/dist/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -0
  719. package/dist/node_modules/caniuse-lite/data/features/css-variables.js +1 -0
  720. package/dist/node_modules/caniuse-lite/data/features/css-when-else.js +1 -0
  721. package/dist/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -0
  722. package/dist/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -0
  723. package/dist/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -0
  724. package/dist/node_modules/caniuse-lite/data/features/css-zoom.js +1 -0
  725. package/dist/node_modules/caniuse-lite/data/features/css3-attr.js +1 -0
  726. package/dist/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -0
  727. package/dist/node_modules/caniuse-lite/data/features/css3-colors.js +1 -0
  728. package/dist/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -0
  729. package/dist/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -0
  730. package/dist/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -0
  731. package/dist/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -0
  732. package/dist/node_modules/caniuse-lite/data/features/currentcolor.js +1 -0
  733. package/dist/node_modules/caniuse-lite/data/features/custom-elements.js +1 -0
  734. package/dist/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -0
  735. package/dist/node_modules/caniuse-lite/data/features/customevent.js +1 -0
  736. package/dist/node_modules/caniuse-lite/data/features/datalist.js +1 -0
  737. package/dist/node_modules/caniuse-lite/data/features/dataset.js +1 -0
  738. package/dist/node_modules/caniuse-lite/data/features/datauri.js +1 -0
  739. package/dist/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -0
  740. package/dist/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -0
  741. package/dist/node_modules/caniuse-lite/data/features/decorators.js +1 -0
  742. package/dist/node_modules/caniuse-lite/data/features/details.js +1 -0
  743. package/dist/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -0
  744. package/dist/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -0
  745. package/dist/node_modules/caniuse-lite/data/features/dialog.js +1 -0
  746. package/dist/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -0
  747. package/dist/node_modules/caniuse-lite/data/features/dnssec.js +1 -0
  748. package/dist/node_modules/caniuse-lite/data/features/do-not-track.js +1 -0
  749. package/dist/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -0
  750. package/dist/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -0
  751. package/dist/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -0
  752. package/dist/node_modules/caniuse-lite/data/features/document-policy.js +1 -0
  753. package/dist/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -0
  754. package/dist/node_modules/caniuse-lite/data/features/documenthead.js +1 -0
  755. package/dist/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -0
  756. package/dist/node_modules/caniuse-lite/data/features/dom-range.js +1 -0
  757. package/dist/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -0
  758. package/dist/node_modules/caniuse-lite/data/features/dommatrix.js +1 -0
  759. package/dist/node_modules/caniuse-lite/data/features/download.js +1 -0
  760. package/dist/node_modules/caniuse-lite/data/features/dragndrop.js +1 -0
  761. package/dist/node_modules/caniuse-lite/data/features/element-closest.js +1 -0
  762. package/dist/node_modules/caniuse-lite/data/features/element-from-point.js +1 -0
  763. package/dist/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -0
  764. package/dist/node_modules/caniuse-lite/data/features/eme.js +1 -0
  765. package/dist/node_modules/caniuse-lite/data/features/eot.js +1 -0
  766. package/dist/node_modules/caniuse-lite/data/features/es5.js +1 -0
  767. package/dist/node_modules/caniuse-lite/data/features/es6-class.js +1 -0
  768. package/dist/node_modules/caniuse-lite/data/features/es6-generators.js +1 -0
  769. package/dist/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -0
  770. package/dist/node_modules/caniuse-lite/data/features/es6-module.js +1 -0
  771. package/dist/node_modules/caniuse-lite/data/features/es6-number.js +1 -0
  772. package/dist/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -0
  773. package/dist/node_modules/caniuse-lite/data/features/es6.js +1 -0
  774. package/dist/node_modules/caniuse-lite/data/features/eventsource.js +1 -0
  775. package/dist/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -0
  776. package/dist/node_modules/caniuse-lite/data/features/feature-policy.js +1 -0
  777. package/dist/node_modules/caniuse-lite/data/features/fetch.js +1 -0
  778. package/dist/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -0
  779. package/dist/node_modules/caniuse-lite/data/features/fileapi.js +1 -0
  780. package/dist/node_modules/caniuse-lite/data/features/filereader.js +1 -0
  781. package/dist/node_modules/caniuse-lite/data/features/filereadersync.js +1 -0
  782. package/dist/node_modules/caniuse-lite/data/features/filesystem.js +1 -0
  783. package/dist/node_modules/caniuse-lite/data/features/flac.js +1 -0
  784. package/dist/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -0
  785. package/dist/node_modules/caniuse-lite/data/features/flexbox.js +1 -0
  786. package/dist/node_modules/caniuse-lite/data/features/flow-root.js +1 -0
  787. package/dist/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -0
  788. package/dist/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -0
  789. package/dist/node_modules/caniuse-lite/data/features/font-feature.js +1 -0
  790. package/dist/node_modules/caniuse-lite/data/features/font-kerning.js +1 -0
  791. package/dist/node_modules/caniuse-lite/data/features/font-loading.js +1 -0
  792. package/dist/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -0
  793. package/dist/node_modules/caniuse-lite/data/features/font-smooth.js +1 -0
  794. package/dist/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -0
  795. package/dist/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -0
  796. package/dist/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -0
  797. package/dist/node_modules/caniuse-lite/data/features/fontface.js +1 -0
  798. package/dist/node_modules/caniuse-lite/data/features/form-attribute.js +1 -0
  799. package/dist/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -0
  800. package/dist/node_modules/caniuse-lite/data/features/form-validation.js +1 -0
  801. package/dist/node_modules/caniuse-lite/data/features/forms.js +1 -0
  802. package/dist/node_modules/caniuse-lite/data/features/fullscreen.js +1 -0
  803. package/dist/node_modules/caniuse-lite/data/features/gamepad.js +1 -0
  804. package/dist/node_modules/caniuse-lite/data/features/geolocation.js +1 -0
  805. package/dist/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -0
  806. package/dist/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -0
  807. package/dist/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -0
  808. package/dist/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -0
  809. package/dist/node_modules/caniuse-lite/data/features/gyroscope.js +1 -0
  810. package/dist/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -0
  811. package/dist/node_modules/caniuse-lite/data/features/hashchange.js +1 -0
  812. package/dist/node_modules/caniuse-lite/data/features/heif.js +1 -0
  813. package/dist/node_modules/caniuse-lite/data/features/hevc.js +1 -0
  814. package/dist/node_modules/caniuse-lite/data/features/hidden.js +1 -0
  815. package/dist/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -0
  816. package/dist/node_modules/caniuse-lite/data/features/history.js +1 -0
  817. package/dist/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -0
  818. package/dist/node_modules/caniuse-lite/data/features/html5semantic.js +1 -0
  819. package/dist/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -0
  820. package/dist/node_modules/caniuse-lite/data/features/http2.js +1 -0
  821. package/dist/node_modules/caniuse-lite/data/features/http3.js +1 -0
  822. package/dist/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -0
  823. package/dist/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -0
  824. package/dist/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -0
  825. package/dist/node_modules/caniuse-lite/data/features/imagecapture.js +1 -0
  826. package/dist/node_modules/caniuse-lite/data/features/ime.js +1 -0
  827. package/dist/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -0
  828. package/dist/node_modules/caniuse-lite/data/features/import-maps.js +1 -0
  829. package/dist/node_modules/caniuse-lite/data/features/imports.js +1 -0
  830. package/dist/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -0
  831. package/dist/node_modules/caniuse-lite/data/features/indexeddb.js +1 -0
  832. package/dist/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -0
  833. package/dist/node_modules/caniuse-lite/data/features/inline-block.js +1 -0
  834. package/dist/node_modules/caniuse-lite/data/features/innertext.js +1 -0
  835. package/dist/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -0
  836. package/dist/node_modules/caniuse-lite/data/features/input-color.js +1 -0
  837. package/dist/node_modules/caniuse-lite/data/features/input-datetime.js +1 -0
  838. package/dist/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -0
  839. package/dist/node_modules/caniuse-lite/data/features/input-event.js +1 -0
  840. package/dist/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -0
  841. package/dist/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -0
  842. package/dist/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -0
  843. package/dist/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -0
  844. package/dist/node_modules/caniuse-lite/data/features/input-minlength.js +1 -0
  845. package/dist/node_modules/caniuse-lite/data/features/input-number.js +1 -0
  846. package/dist/node_modules/caniuse-lite/data/features/input-pattern.js +1 -0
  847. package/dist/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -0
  848. package/dist/node_modules/caniuse-lite/data/features/input-range.js +1 -0
  849. package/dist/node_modules/caniuse-lite/data/features/input-search.js +1 -0
  850. package/dist/node_modules/caniuse-lite/data/features/input-selection.js +1 -0
  851. package/dist/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -0
  852. package/dist/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -0
  853. package/dist/node_modules/caniuse-lite/data/features/internationalization.js +1 -0
  854. package/dist/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -0
  855. package/dist/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -0
  856. package/dist/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -0
  857. package/dist/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -0
  858. package/dist/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -0
  859. package/dist/node_modules/caniuse-lite/data/features/jpegxl.js +1 -0
  860. package/dist/node_modules/caniuse-lite/data/features/jpegxr.js +1 -0
  861. package/dist/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -0
  862. package/dist/node_modules/caniuse-lite/data/features/json.js +1 -0
  863. package/dist/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -0
  864. package/dist/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -0
  865. package/dist/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -0
  866. package/dist/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -0
  867. package/dist/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -0
  868. package/dist/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -0
  869. package/dist/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -0
  870. package/dist/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -0
  871. package/dist/node_modules/caniuse-lite/data/features/lazyload.js +1 -0
  872. package/dist/node_modules/caniuse-lite/data/features/let.js +1 -0
  873. package/dist/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -0
  874. package/dist/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -0
  875. package/dist/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -0
  876. package/dist/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -0
  877. package/dist/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -0
  878. package/dist/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -0
  879. package/dist/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -0
  880. package/dist/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -0
  881. package/dist/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -0
  882. package/dist/node_modules/caniuse-lite/data/features/localecompare.js +1 -0
  883. package/dist/node_modules/caniuse-lite/data/features/magnetometer.js +1 -0
  884. package/dist/node_modules/caniuse-lite/data/features/matchesselector.js +1 -0
  885. package/dist/node_modules/caniuse-lite/data/features/matchmedia.js +1 -0
  886. package/dist/node_modules/caniuse-lite/data/features/mathml.js +1 -0
  887. package/dist/node_modules/caniuse-lite/data/features/maxlength.js +1 -0
  888. package/dist/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -0
  889. package/dist/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -0
  890. package/dist/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -0
  891. package/dist/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -0
  892. package/dist/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -0
  893. package/dist/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -0
  894. package/dist/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -0
  895. package/dist/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -0
  896. package/dist/node_modules/caniuse-lite/data/features/media-fragments.js +1 -0
  897. package/dist/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -0
  898. package/dist/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -0
  899. package/dist/node_modules/caniuse-lite/data/features/mediasource.js +1 -0
  900. package/dist/node_modules/caniuse-lite/data/features/menu.js +1 -0
  901. package/dist/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -0
  902. package/dist/node_modules/caniuse-lite/data/features/meter.js +1 -0
  903. package/dist/node_modules/caniuse-lite/data/features/midi.js +1 -0
  904. package/dist/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -0
  905. package/dist/node_modules/caniuse-lite/data/features/mp3.js +1 -0
  906. package/dist/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -0
  907. package/dist/node_modules/caniuse-lite/data/features/mpeg4.js +1 -0
  908. package/dist/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -0
  909. package/dist/node_modules/caniuse-lite/data/features/multicolumn.js +1 -0
  910. package/dist/node_modules/caniuse-lite/data/features/mutation-events.js +1 -0
  911. package/dist/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -0
  912. package/dist/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -0
  913. package/dist/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -0
  914. package/dist/node_modules/caniuse-lite/data/features/nav-timing.js +1 -0
  915. package/dist/node_modules/caniuse-lite/data/features/netinfo.js +1 -0
  916. package/dist/node_modules/caniuse-lite/data/features/notifications.js +1 -0
  917. package/dist/node_modules/caniuse-lite/data/features/object-entries.js +1 -0
  918. package/dist/node_modules/caniuse-lite/data/features/object-fit.js +1 -0
  919. package/dist/node_modules/caniuse-lite/data/features/object-observe.js +1 -0
  920. package/dist/node_modules/caniuse-lite/data/features/object-values.js +1 -0
  921. package/dist/node_modules/caniuse-lite/data/features/objectrtc.js +1 -0
  922. package/dist/node_modules/caniuse-lite/data/features/offline-apps.js +1 -0
  923. package/dist/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -0
  924. package/dist/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -0
  925. package/dist/node_modules/caniuse-lite/data/features/ogv.js +1 -0
  926. package/dist/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -0
  927. package/dist/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -0
  928. package/dist/node_modules/caniuse-lite/data/features/online-status.js +1 -0
  929. package/dist/node_modules/caniuse-lite/data/features/opus.js +1 -0
  930. package/dist/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -0
  931. package/dist/node_modules/caniuse-lite/data/features/outline.js +1 -0
  932. package/dist/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -0
  933. package/dist/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -0
  934. package/dist/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -0
  935. package/dist/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -0
  936. package/dist/node_modules/caniuse-lite/data/features/passkeys.js +1 -0
  937. package/dist/node_modules/caniuse-lite/data/features/passwordrules.js +1 -0
  938. package/dist/node_modules/caniuse-lite/data/features/path2d.js +1 -0
  939. package/dist/node_modules/caniuse-lite/data/features/payment-request.js +1 -0
  940. package/dist/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -0
  941. package/dist/node_modules/caniuse-lite/data/features/permissions-api.js +1 -0
  942. package/dist/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -0
  943. package/dist/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -0
  944. package/dist/node_modules/caniuse-lite/data/features/picture.js +1 -0
  945. package/dist/node_modules/caniuse-lite/data/features/ping.js +1 -0
  946. package/dist/node_modules/caniuse-lite/data/features/png-alpha.js +1 -0
  947. package/dist/node_modules/caniuse-lite/data/features/pointer-events.js +1 -0
  948. package/dist/node_modules/caniuse-lite/data/features/pointer.js +1 -0
  949. package/dist/node_modules/caniuse-lite/data/features/pointerlock.js +1 -0
  950. package/dist/node_modules/caniuse-lite/data/features/portals.js +1 -0
  951. package/dist/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -0
  952. package/dist/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -0
  953. package/dist/node_modules/caniuse-lite/data/features/progress.js +1 -0
  954. package/dist/node_modules/caniuse-lite/data/features/promise-finally.js +1 -0
  955. package/dist/node_modules/caniuse-lite/data/features/promises.js +1 -0
  956. package/dist/node_modules/caniuse-lite/data/features/proximity.js +1 -0
  957. package/dist/node_modules/caniuse-lite/data/features/proxy.js +1 -0
  958. package/dist/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -0
  959. package/dist/node_modules/caniuse-lite/data/features/push-api.js +1 -0
  960. package/dist/node_modules/caniuse-lite/data/features/queryselector.js +1 -0
  961. package/dist/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -0
  962. package/dist/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -0
  963. package/dist/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -0
  964. package/dist/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -0
  965. package/dist/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -0
  966. package/dist/node_modules/caniuse-lite/data/features/rellist.js +1 -0
  967. package/dist/node_modules/caniuse-lite/data/features/rem.js +1 -0
  968. package/dist/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -0
  969. package/dist/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -0
  970. package/dist/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -0
  971. package/dist/node_modules/caniuse-lite/data/features/resource-timing.js +1 -0
  972. package/dist/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -0
  973. package/dist/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -0
  974. package/dist/node_modules/caniuse-lite/data/features/ruby.js +1 -0
  975. package/dist/node_modules/caniuse-lite/data/features/run-in.js +1 -0
  976. package/dist/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -0
  977. package/dist/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -0
  978. package/dist/node_modules/caniuse-lite/data/features/script-async.js +1 -0
  979. package/dist/node_modules/caniuse-lite/data/features/script-defer.js +1 -0
  980. package/dist/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -0
  981. package/dist/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -0
  982. package/dist/node_modules/caniuse-lite/data/features/sdch.js +1 -0
  983. package/dist/node_modules/caniuse-lite/data/features/selection-api.js +1 -0
  984. package/dist/node_modules/caniuse-lite/data/features/selectlist.js +1 -0
  985. package/dist/node_modules/caniuse-lite/data/features/server-timing.js +1 -0
  986. package/dist/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -0
  987. package/dist/node_modules/caniuse-lite/data/features/setimmediate.js +1 -0
  988. package/dist/node_modules/caniuse-lite/data/features/shadowdom.js +1 -0
  989. package/dist/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -0
  990. package/dist/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -0
  991. package/dist/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -0
  992. package/dist/node_modules/caniuse-lite/data/features/sni.js +1 -0
  993. package/dist/node_modules/caniuse-lite/data/features/spdy.js +1 -0
  994. package/dist/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -0
  995. package/dist/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -0
  996. package/dist/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -0
  997. package/dist/node_modules/caniuse-lite/data/features/sql-storage.js +1 -0
  998. package/dist/node_modules/caniuse-lite/data/features/srcset.js +1 -0
  999. package/dist/node_modules/caniuse-lite/data/features/stream.js +1 -0
  1000. package/dist/node_modules/caniuse-lite/data/features/streams.js +1 -0
  1001. package/dist/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -0
  1002. package/dist/node_modules/caniuse-lite/data/features/style-scoped.js +1 -0
  1003. package/dist/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -0
  1004. package/dist/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -0
  1005. package/dist/node_modules/caniuse-lite/data/features/svg-css.js +1 -0
  1006. package/dist/node_modules/caniuse-lite/data/features/svg-filters.js +1 -0
  1007. package/dist/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -0
  1008. package/dist/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -0
  1009. package/dist/node_modules/caniuse-lite/data/features/svg-html.js +1 -0
  1010. package/dist/node_modules/caniuse-lite/data/features/svg-html5.js +1 -0
  1011. package/dist/node_modules/caniuse-lite/data/features/svg-img.js +1 -0
  1012. package/dist/node_modules/caniuse-lite/data/features/svg-smil.js +1 -0
  1013. package/dist/node_modules/caniuse-lite/data/features/svg.js +1 -0
  1014. package/dist/node_modules/caniuse-lite/data/features/sxg.js +1 -0
  1015. package/dist/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -0
  1016. package/dist/node_modules/caniuse-lite/data/features/template-literals.js +1 -0
  1017. package/dist/node_modules/caniuse-lite/data/features/template.js +1 -0
  1018. package/dist/node_modules/caniuse-lite/data/features/temporal.js +1 -0
  1019. package/dist/node_modules/caniuse-lite/data/features/testfeat.js +1 -0
  1020. package/dist/node_modules/caniuse-lite/data/features/text-decoration.js +1 -0
  1021. package/dist/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -0
  1022. package/dist/node_modules/caniuse-lite/data/features/text-overflow.js +1 -0
  1023. package/dist/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -0
  1024. package/dist/node_modules/caniuse-lite/data/features/text-stroke.js +1 -0
  1025. package/dist/node_modules/caniuse-lite/data/features/textcontent.js +1 -0
  1026. package/dist/node_modules/caniuse-lite/data/features/textencoder.js +1 -0
  1027. package/dist/node_modules/caniuse-lite/data/features/tls1-1.js +1 -0
  1028. package/dist/node_modules/caniuse-lite/data/features/tls1-2.js +1 -0
  1029. package/dist/node_modules/caniuse-lite/data/features/tls1-3.js +1 -0
  1030. package/dist/node_modules/caniuse-lite/data/features/touch.js +1 -0
  1031. package/dist/node_modules/caniuse-lite/data/features/transforms2d.js +1 -0
  1032. package/dist/node_modules/caniuse-lite/data/features/transforms3d.js +1 -0
  1033. package/dist/node_modules/caniuse-lite/data/features/trusted-types.js +1 -0
  1034. package/dist/node_modules/caniuse-lite/data/features/ttf.js +1 -0
  1035. package/dist/node_modules/caniuse-lite/data/features/typedarrays.js +1 -0
  1036. package/dist/node_modules/caniuse-lite/data/features/u2f.js +1 -0
  1037. package/dist/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -0
  1038. package/dist/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -0
  1039. package/dist/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -0
  1040. package/dist/node_modules/caniuse-lite/data/features/url.js +1 -0
  1041. package/dist/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -0
  1042. package/dist/node_modules/caniuse-lite/data/features/use-strict.js +1 -0
  1043. package/dist/node_modules/caniuse-lite/data/features/user-select-none.js +1 -0
  1044. package/dist/node_modules/caniuse-lite/data/features/user-timing.js +1 -0
  1045. package/dist/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -0
  1046. package/dist/node_modules/caniuse-lite/data/features/vector-effect.js +1 -0
  1047. package/dist/node_modules/caniuse-lite/data/features/vibration.js +1 -0
  1048. package/dist/node_modules/caniuse-lite/data/features/video.js +1 -0
  1049. package/dist/node_modules/caniuse-lite/data/features/videotracks.js +1 -0
  1050. package/dist/node_modules/caniuse-lite/data/features/view-transitions.js +1 -0
  1051. package/dist/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -0
  1052. package/dist/node_modules/caniuse-lite/data/features/viewport-units.js +1 -0
  1053. package/dist/node_modules/caniuse-lite/data/features/wai-aria.js +1 -0
  1054. package/dist/node_modules/caniuse-lite/data/features/wake-lock.js +1 -0
  1055. package/dist/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -0
  1056. package/dist/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -0
  1057. package/dist/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -0
  1058. package/dist/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -0
  1059. package/dist/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -0
  1060. package/dist/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -0
  1061. package/dist/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -0
  1062. package/dist/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -0
  1063. package/dist/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -0
  1064. package/dist/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -0
  1065. package/dist/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -0
  1066. package/dist/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -0
  1067. package/dist/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -0
  1068. package/dist/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -0
  1069. package/dist/node_modules/caniuse-lite/data/features/wasm.js +1 -0
  1070. package/dist/node_modules/caniuse-lite/data/features/wav.js +1 -0
  1071. package/dist/node_modules/caniuse-lite/data/features/wbr-element.js +1 -0
  1072. package/dist/node_modules/caniuse-lite/data/features/web-animation.js +1 -0
  1073. package/dist/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -0
  1074. package/dist/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -0
  1075. package/dist/node_modules/caniuse-lite/data/features/web-serial.js +1 -0
  1076. package/dist/node_modules/caniuse-lite/data/features/web-share.js +1 -0
  1077. package/dist/node_modules/caniuse-lite/data/features/webauthn.js +1 -0
  1078. package/dist/node_modules/caniuse-lite/data/features/webcodecs.js +1 -0
  1079. package/dist/node_modules/caniuse-lite/data/features/webgl.js +1 -0
  1080. package/dist/node_modules/caniuse-lite/data/features/webgl2.js +1 -0
  1081. package/dist/node_modules/caniuse-lite/data/features/webgpu.js +1 -0
  1082. package/dist/node_modules/caniuse-lite/data/features/webhid.js +1 -0
  1083. package/dist/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -0
  1084. package/dist/node_modules/caniuse-lite/data/features/webm.js +1 -0
  1085. package/dist/node_modules/caniuse-lite/data/features/webnfc.js +1 -0
  1086. package/dist/node_modules/caniuse-lite/data/features/webp.js +1 -0
  1087. package/dist/node_modules/caniuse-lite/data/features/websockets.js +1 -0
  1088. package/dist/node_modules/caniuse-lite/data/features/webtransport.js +1 -0
  1089. package/dist/node_modules/caniuse-lite/data/features/webusb.js +1 -0
  1090. package/dist/node_modules/caniuse-lite/data/features/webvr.js +1 -0
  1091. package/dist/node_modules/caniuse-lite/data/features/webvtt.js +1 -0
  1092. package/dist/node_modules/caniuse-lite/data/features/webworkers.js +1 -0
  1093. package/dist/node_modules/caniuse-lite/data/features/webxr.js +1 -0
  1094. package/dist/node_modules/caniuse-lite/data/features/will-change.js +1 -0
  1095. package/dist/node_modules/caniuse-lite/data/features/woff.js +1 -0
  1096. package/dist/node_modules/caniuse-lite/data/features/woff2.js +1 -0
  1097. package/dist/node_modules/caniuse-lite/data/features/word-break.js +1 -0
  1098. package/dist/node_modules/caniuse-lite/data/features/wordwrap.js +1 -0
  1099. package/dist/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -0
  1100. package/dist/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -0
  1101. package/dist/node_modules/caniuse-lite/data/features/xhr2.js +1 -0
  1102. package/dist/node_modules/caniuse-lite/data/features/xhtml.js +1 -0
  1103. package/dist/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -0
  1104. package/dist/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -0
  1105. package/dist/node_modules/caniuse-lite/data/features/zstd.js +1 -0
  1106. package/dist/node_modules/caniuse-lite/data/features.js +1 -0
  1107. package/dist/node_modules/caniuse-lite/dist/lib/statuses.js +9 -0
  1108. package/dist/node_modules/caniuse-lite/dist/lib/supported.js +9 -0
  1109. package/dist/node_modules/caniuse-lite/dist/unpacker/agents.js +47 -0
  1110. package/dist/node_modules/caniuse-lite/dist/unpacker/browserVersions.js +1 -0
  1111. package/dist/node_modules/caniuse-lite/dist/unpacker/browsers.js +1 -0
  1112. package/dist/node_modules/caniuse-lite/dist/unpacker/feature.js +52 -0
  1113. package/dist/node_modules/caniuse-lite/dist/unpacker/features.js +6 -0
  1114. package/dist/node_modules/caniuse-lite/dist/unpacker/index.js +4 -0
  1115. package/dist/node_modules/caniuse-lite/dist/unpacker/region.js +22 -0
  1116. package/dist/node_modules/caniuse-lite/package.json +34 -0
  1117. package/dist/node_modules/ccount/index.js +27 -0
  1118. package/dist/node_modules/ccount/package.json +71 -0
  1119. package/dist/node_modules/character-entities-html4/index.js +259 -0
  1120. package/dist/node_modules/character-entities-html4/package.json +79 -0
  1121. package/dist/node_modules/character-entities-legacy/index.js +113 -0
  1122. package/dist/node_modules/character-entities-legacy/package.json +77 -0
  1123. package/dist/node_modules/client-only/index.js +0 -0
  1124. package/dist/node_modules/client-only/package.json +19 -0
  1125. package/dist/node_modules/comma-separated-tokens/index.js +74 -0
  1126. package/dist/node_modules/comma-separated-tokens/package.json +72 -0
  1127. package/dist/node_modules/detect-libc/lib/detect-libc.js +313 -0
  1128. package/dist/node_modules/detect-libc/lib/elf.js +39 -0
  1129. package/dist/node_modules/detect-libc/lib/filesystem.js +51 -0
  1130. package/dist/node_modules/detect-libc/lib/process.js +24 -0
  1131. package/dist/node_modules/detect-libc/package.json +44 -0
  1132. package/dist/node_modules/hast-util-to-html/index.js +8 -0
  1133. package/dist/node_modules/hast-util-to-html/lib/handle/comment.js +52 -0
  1134. package/dist/node_modules/hast-util-to-html/lib/handle/doctype.js +27 -0
  1135. package/dist/node_modules/hast-util-to-html/lib/handle/element.js +265 -0
  1136. package/dist/node_modules/hast-util-to-html/lib/handle/index.js +47 -0
  1137. package/dist/node_modules/hast-util-to-html/lib/handle/raw.js +27 -0
  1138. package/dist/node_modules/hast-util-to-html/lib/handle/root.js +22 -0
  1139. package/dist/node_modules/hast-util-to-html/lib/handle/text.js +38 -0
  1140. package/dist/node_modules/hast-util-to-html/lib/index.js +257 -0
  1141. package/dist/node_modules/hast-util-to-html/lib/omission/closing.js +358 -0
  1142. package/dist/node_modules/hast-util-to-html/lib/omission/omission.js +44 -0
  1143. package/dist/node_modules/hast-util-to-html/lib/omission/opening.js +148 -0
  1144. package/dist/node_modules/hast-util-to-html/lib/omission/util/siblings.js +50 -0
  1145. package/dist/node_modules/hast-util-to-html/package.json +106 -0
  1146. package/dist/node_modules/hast-util-whitespace/index.js +1 -0
  1147. package/dist/node_modules/hast-util-whitespace/lib/index.js +34 -0
  1148. package/dist/node_modules/hast-util-whitespace/package.json +83 -0
  1149. package/dist/node_modules/html-void-elements/index.js +27 -0
  1150. package/dist/node_modules/html-void-elements/package.json +79 -0
  1151. package/dist/node_modules/nanoid/non-secure/index.cjs +34 -0
  1152. package/dist/node_modules/nanoid/non-secure/package.json +6 -0
  1153. package/dist/node_modules/nanoid/package.json +89 -0
  1154. package/dist/node_modules/node-gyp-build/index.js +6 -0
  1155. package/dist/node_modules/node-gyp-build/node-gyp-build.js +207 -0
  1156. package/dist/node_modules/node-gyp-build/package.json +43 -0
  1157. package/dist/node_modules/oniguruma-parser/dist/parser/node-utils.js +2 -0
  1158. package/dist/node_modules/oniguruma-parser/dist/parser/parse.js +2 -0
  1159. package/dist/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +34 -0
  1160. package/dist/node_modules/oniguruma-parser/dist/traverser/traverse.js +2 -0
  1161. package/dist/node_modules/oniguruma-parser/dist/utils.js +2 -0
  1162. package/dist/node_modules/oniguruma-parser/package.json +64 -0
  1163. package/dist/node_modules/oniguruma-to-es/dist/cjs/index.js +3146 -0
  1164. package/dist/node_modules/oniguruma-to-es/dist/cjs/package.json +1 -0
  1165. package/dist/node_modules/oniguruma-to-es/dist/esm/index.js +1876 -0
  1166. package/dist/node_modules/oniguruma-to-es/dist/esm/package.json +1 -0
  1167. package/dist/node_modules/oniguruma-to-es/package.json +61 -0
  1168. package/dist/node_modules/pg-cloudflare/dist/empty.js +6 -0
  1169. package/dist/node_modules/pg-cloudflare/dist/index.js +152 -0
  1170. package/dist/node_modules/pg-cloudflare/package.json +39 -0
  1171. package/dist/node_modules/pg-connection-string/index.js +231 -0
  1172. package/dist/node_modules/pg-connection-string/package.json +52 -0
  1173. package/dist/node_modules/pg-int8/index.js +100 -0
  1174. package/dist/node_modules/pg-int8/package.json +24 -0
  1175. package/dist/node_modules/pg-pool/index.js +481 -0
  1176. package/dist/node_modules/pg-pool/package.json +51 -0
  1177. package/dist/node_modules/pg-protocol/dist/buffer-reader.js +56 -0
  1178. package/dist/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
  1179. package/dist/node_modules/pg-protocol/dist/index.js +15 -0
  1180. package/dist/node_modules/pg-protocol/dist/messages.js +160 -0
  1181. package/dist/node_modules/pg-protocol/dist/parser.js +324 -0
  1182. package/dist/node_modules/pg-protocol/dist/serializer.js +189 -0
  1183. package/dist/node_modules/pg-protocol/package.json +45 -0
  1184. package/dist/node_modules/pg-types/index.js +47 -0
  1185. package/dist/node_modules/pg-types/lib/arrayParser.js +11 -0
  1186. package/dist/node_modules/pg-types/lib/binaryParsers.js +257 -0
  1187. package/dist/node_modules/pg-types/lib/builtins.js +73 -0
  1188. package/dist/node_modules/pg-types/lib/textParsers.js +215 -0
  1189. package/dist/node_modules/pg-types/package.json +42 -0
  1190. package/dist/node_modules/pgpass/lib/helper.js +233 -0
  1191. package/dist/node_modules/pgpass/lib/index.js +23 -0
  1192. package/dist/node_modules/pgpass/package.json +41 -0
  1193. package/dist/node_modules/picocolors/package.json +25 -0
  1194. package/dist/node_modules/picocolors/picocolors.js +75 -0
  1195. package/dist/node_modules/postcss/lib/at-rule.js +25 -0
  1196. package/dist/node_modules/postcss/lib/comment.js +13 -0
  1197. package/dist/node_modules/postcss/lib/container.js +439 -0
  1198. package/dist/node_modules/postcss/lib/css-syntax-error.js +100 -0
  1199. package/dist/node_modules/postcss/lib/declaration.js +24 -0
  1200. package/dist/node_modules/postcss/lib/document.js +33 -0
  1201. package/dist/node_modules/postcss/lib/fromJSON.js +54 -0
  1202. package/dist/node_modules/postcss/lib/input.js +248 -0
  1203. package/dist/node_modules/postcss/lib/lazy-result.js +550 -0
  1204. package/dist/node_modules/postcss/lib/list.js +58 -0
  1205. package/dist/node_modules/postcss/lib/map-generator.js +359 -0
  1206. package/dist/node_modules/postcss/lib/no-work-result.js +135 -0
  1207. package/dist/node_modules/postcss/lib/node.js +381 -0
  1208. package/dist/node_modules/postcss/lib/parse.js +42 -0
  1209. package/dist/node_modules/postcss/lib/parser.js +610 -0
  1210. package/dist/node_modules/postcss/lib/postcss.js +101 -0
  1211. package/dist/node_modules/postcss/lib/previous-map.js +142 -0
  1212. package/dist/node_modules/postcss/lib/processor.js +67 -0
  1213. package/dist/node_modules/postcss/lib/result.js +42 -0
  1214. package/dist/node_modules/postcss/lib/root.js +61 -0
  1215. package/dist/node_modules/postcss/lib/rule.js +27 -0
  1216. package/dist/node_modules/postcss/lib/stringifier.js +353 -0
  1217. package/dist/node_modules/postcss/lib/stringify.js +11 -0
  1218. package/dist/node_modules/postcss/lib/symbols.js +5 -0
  1219. package/dist/node_modules/postcss/lib/terminal-highlight.js +70 -0
  1220. package/dist/node_modules/postcss/lib/tokenize.js +266 -0
  1221. package/dist/node_modules/postcss/lib/warn-once.js +13 -0
  1222. package/dist/node_modules/postcss/lib/warning.js +37 -0
  1223. package/dist/node_modules/postcss/package.json +88 -0
  1224. package/dist/node_modules/postgres-array/index.js +97 -0
  1225. package/dist/node_modules/postgres-array/package.json +35 -0
  1226. package/dist/node_modules/postgres-bytea/index.js +33 -0
  1227. package/dist/node_modules/postgres-bytea/package.json +34 -0
  1228. package/dist/node_modules/postgres-date/index.js +116 -0
  1229. package/dist/node_modules/postgres-date/package.json +33 -0
  1230. package/dist/node_modules/postgres-interval/index.js +125 -0
  1231. package/dist/node_modules/postgres-interval/package.json +36 -0
  1232. package/dist/node_modules/property-information/index.js +17 -0
  1233. package/dist/node_modules/property-information/lib/aria.js +61 -0
  1234. package/dist/node_modules/property-information/lib/find.js +97 -0
  1235. package/dist/node_modules/property-information/lib/hast-to-react.js +30 -0
  1236. package/dist/node_modules/property-information/lib/html.js +322 -0
  1237. package/dist/node_modules/property-information/lib/normalize.js +12 -0
  1238. package/dist/node_modules/property-information/lib/svg.js +567 -0
  1239. package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +13 -0
  1240. package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +11 -0
  1241. package/dist/node_modules/property-information/lib/util/create.js +69 -0
  1242. package/dist/node_modules/property-information/lib/util/defined-info.js +60 -0
  1243. package/dist/node_modules/property-information/lib/util/info.js +32 -0
  1244. package/dist/node_modules/property-information/lib/util/merge.js +27 -0
  1245. package/dist/node_modules/property-information/lib/util/schema.js +29 -0
  1246. package/dist/node_modules/property-information/lib/util/types.js +13 -0
  1247. package/dist/node_modules/property-information/lib/xlink.js +17 -0
  1248. package/dist/node_modules/property-information/lib/xml.js +9 -0
  1249. package/dist/node_modules/property-information/lib/xmlns.js +9 -0
  1250. package/dist/node_modules/property-information/package.json +121 -0
  1251. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +9877 -0
  1252. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +6603 -0
  1253. package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +6692 -0
  1254. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +10601 -0
  1255. package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +7410 -0
  1256. package/dist/node_modules/react-dom/cjs/react-dom-server.edge.development.js +10620 -0
  1257. package/dist/node_modules/react-dom/cjs/react-dom-server.edge.production.js +7512 -0
  1258. package/dist/node_modules/react-dom/cjs/react-dom-server.node.production.js +7707 -0
  1259. package/dist/node_modules/react-dom/cjs/react-dom.development.js +424 -0
  1260. package/dist/node_modules/react-dom/cjs/react-dom.production.js +210 -0
  1261. package/dist/node_modules/react-dom/index.js +38 -0
  1262. package/dist/node_modules/react-dom/package.json +117 -0
  1263. package/dist/node_modules/react-dom/server.browser.js +16 -0
  1264. package/dist/node_modules/react-dom/server.edge.js +17 -0
  1265. package/dist/node_modules/react-dom/server.js +3 -0
  1266. package/dist/node_modules/react-dom/server.node.js +18 -0
  1267. package/dist/node_modules/react-dom/static.js +3 -0
  1268. package/dist/node_modules/react-dom/static.node.js +14 -0
  1269. package/dist/node_modules/regex/package.json +60 -0
  1270. package/dist/node_modules/regex/src/atomic.js +224 -0
  1271. package/dist/node_modules/regex/src/internals.js +2 -0
  1272. package/dist/node_modules/regex/src/subclass.js +98 -0
  1273. package/dist/node_modules/regex/src/utils-internals.js +33 -0
  1274. package/dist/node_modules/regex-recursion/package.json +47 -0
  1275. package/dist/node_modules/regex-recursion/src/index.js +365 -0
  1276. package/dist/node_modules/regex-utilities/package.json +35 -0
  1277. package/dist/node_modules/regex-utilities/src/index.js +170 -0
  1278. package/dist/node_modules/semver/classes/comparator.js +143 -0
  1279. package/dist/node_modules/semver/classes/range.js +557 -0
  1280. package/dist/node_modules/semver/classes/semver.js +333 -0
  1281. package/dist/node_modules/semver/functions/cmp.js +54 -0
  1282. package/dist/node_modules/semver/functions/coerce.js +62 -0
  1283. package/dist/node_modules/semver/functions/compare.js +7 -0
  1284. package/dist/node_modules/semver/functions/eq.js +5 -0
  1285. package/dist/node_modules/semver/functions/gt.js +5 -0
  1286. package/dist/node_modules/semver/functions/gte.js +5 -0
  1287. package/dist/node_modules/semver/functions/lt.js +5 -0
  1288. package/dist/node_modules/semver/functions/lte.js +5 -0
  1289. package/dist/node_modules/semver/functions/neq.js +5 -0
  1290. package/dist/node_modules/semver/functions/parse.js +18 -0
  1291. package/dist/node_modules/semver/functions/satisfies.js +12 -0
  1292. package/dist/node_modules/semver/internal/constants.js +37 -0
  1293. package/dist/node_modules/semver/internal/debug.js +11 -0
  1294. package/dist/node_modules/semver/internal/identifiers.js +29 -0
  1295. package/dist/node_modules/semver/internal/lrucache.js +42 -0
  1296. package/dist/node_modules/semver/internal/parse-options.js +17 -0
  1297. package/dist/node_modules/semver/internal/re.js +223 -0
  1298. package/dist/node_modules/semver/package.json +78 -0
  1299. package/dist/node_modules/sharp/lib/channel.js +177 -0
  1300. package/dist/node_modules/sharp/lib/colour.js +195 -0
  1301. package/dist/node_modules/sharp/lib/composite.js +212 -0
  1302. package/dist/node_modules/sharp/lib/constructor.js +499 -0
  1303. package/dist/node_modules/sharp/lib/index.js +16 -0
  1304. package/dist/node_modules/sharp/lib/input.js +809 -0
  1305. package/dist/node_modules/sharp/lib/is.js +143 -0
  1306. package/dist/node_modules/sharp/lib/libvips.js +207 -0
  1307. package/dist/node_modules/sharp/lib/operation.js +1016 -0
  1308. package/dist/node_modules/sharp/lib/output.js +1666 -0
  1309. package/dist/node_modules/sharp/lib/resize.js +595 -0
  1310. package/dist/node_modules/sharp/lib/sharp.js +121 -0
  1311. package/dist/node_modules/sharp/lib/utility.js +291 -0
  1312. package/dist/node_modules/sharp/package.json +202 -0
  1313. package/dist/node_modules/source-map-js/lib/array-set.js +121 -0
  1314. package/dist/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  1315. package/dist/node_modules/source-map-js/lib/base64.js +67 -0
  1316. package/dist/node_modules/source-map-js/lib/binary-search.js +111 -0
  1317. package/dist/node_modules/source-map-js/lib/mapping-list.js +79 -0
  1318. package/dist/node_modules/source-map-js/lib/quick-sort.js +132 -0
  1319. package/dist/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  1320. package/dist/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  1321. package/dist/node_modules/source-map-js/lib/source-node.js +413 -0
  1322. package/dist/node_modules/source-map-js/lib/util.js +594 -0
  1323. package/dist/node_modules/source-map-js/package.json +71 -0
  1324. package/dist/node_modules/source-map-js/source-map.js +8 -0
  1325. package/dist/node_modules/space-separated-tokens/index.js +24 -0
  1326. package/dist/node_modules/space-separated-tokens/package.json +67 -0
  1327. package/dist/node_modules/split2/index.js +141 -0
  1328. package/dist/node_modules/split2/package.json +39 -0
  1329. package/dist/node_modules/stringify-entities/index.js +6 -0
  1330. package/dist/node_modules/stringify-entities/lib/constant/dangerous.js +16 -0
  1331. package/dist/node_modules/stringify-entities/lib/core.js +117 -0
  1332. package/dist/node_modules/stringify-entities/lib/index.js +36 -0
  1333. package/dist/node_modules/stringify-entities/lib/util/format-basic.js +9 -0
  1334. package/dist/node_modules/stringify-entities/lib/util/format-smart.js +69 -0
  1335. package/dist/node_modules/stringify-entities/lib/util/to-decimal.js +16 -0
  1336. package/dist/node_modules/stringify-entities/lib/util/to-hexadecimal.js +16 -0
  1337. package/dist/node_modules/stringify-entities/lib/util/to-named.js +57 -0
  1338. package/dist/node_modules/stringify-entities/package.json +86 -0
  1339. package/dist/node_modules/styled-jsx/dist/index/index.js +499 -0
  1340. package/dist/node_modules/styled-jsx/index.js +1 -0
  1341. package/dist/node_modules/styled-jsx/package.json +132 -0
  1342. package/dist/node_modules/styled-jsx/style.js +1 -0
  1343. package/dist/node_modules/xtend/mutable.js +17 -0
  1344. package/dist/node_modules/xtend/package.json +55 -0
  1345. package/dist/node_modules/zwitch/index.js +118 -0
  1346. package/dist/node_modules/zwitch/package.json +72 -0
  1347. package/package.json +1 -1
  1348. /package/dist/.next/static/{SoceN9ZjJB6Xr18CQCupk → xhu9AXYQyz0Y3okpowwwf}/_buildManifest.js +0 -0
  1349. /package/dist/.next/static/{SoceN9ZjJB6Xr18CQCupk → xhu9AXYQyz0Y3okpowwwf}/_ssgManifest.js +0 -0
@@ -0,0 +1,2446 @@
1
+ import { ShikiError as ShikiError$1 } from '@shikijs/types';
2
+ export * from '@shikijs/types';
3
+ import { FontStyle, INITIAL, EncodedTokenMetadata, Registry as Registry$1, Theme } from '@shikijs/vscode-textmate';
4
+ import { toHtml } from 'hast-util-to-html';
5
+
6
+ function resolveColorReplacements(theme, options) {
7
+ const replacements = typeof theme === "string" ? {} : { ...theme.colorReplacements };
8
+ const themeName = typeof theme === "string" ? theme : theme.name;
9
+ for (const [key, value] of Object.entries(options?.colorReplacements || {})) {
10
+ if (typeof value === "string")
11
+ replacements[key] = value;
12
+ else if (key === themeName)
13
+ Object.assign(replacements, value);
14
+ }
15
+ return replacements;
16
+ }
17
+ function applyColorReplacements(color, replacements) {
18
+ if (!color)
19
+ return color;
20
+ return replacements?.[color?.toLowerCase()] || color;
21
+ }
22
+
23
+ function toArray(x) {
24
+ return Array.isArray(x) ? x : [x];
25
+ }
26
+ async function normalizeGetter(p) {
27
+ return Promise.resolve(typeof p === "function" ? p() : p).then((r) => r.default || r);
28
+ }
29
+ function isPlainLang(lang) {
30
+ return !lang || ["plaintext", "txt", "text", "plain"].includes(lang);
31
+ }
32
+ function isSpecialLang(lang) {
33
+ return lang === "ansi" || isPlainLang(lang);
34
+ }
35
+ function isNoneTheme(theme) {
36
+ return theme === "none";
37
+ }
38
+ function isSpecialTheme(theme) {
39
+ return isNoneTheme(theme);
40
+ }
41
+
42
+ function addClassToHast(node, className) {
43
+ if (!className)
44
+ return node;
45
+ node.properties ||= {};
46
+ node.properties.class ||= [];
47
+ if (typeof node.properties.class === "string")
48
+ node.properties.class = node.properties.class.split(/\s+/g);
49
+ if (!Array.isArray(node.properties.class))
50
+ node.properties.class = [];
51
+ const targets = Array.isArray(className) ? className : className.split(/\s+/g);
52
+ for (const c of targets) {
53
+ if (c && !node.properties.class.includes(c))
54
+ node.properties.class.push(c);
55
+ }
56
+ return node;
57
+ }
58
+
59
+ function splitLines(code, preserveEnding = false) {
60
+ if (code.length === 0) {
61
+ return [["", 0]];
62
+ }
63
+ const parts = code.split(/(\r?\n)/g);
64
+ let index = 0;
65
+ const lines = [];
66
+ for (let i = 0; i < parts.length; i += 2) {
67
+ const line = preserveEnding ? parts[i] + (parts[i + 1] || "") : parts[i];
68
+ lines.push([line, index]);
69
+ index += parts[i].length;
70
+ index += parts[i + 1]?.length || 0;
71
+ }
72
+ return lines;
73
+ }
74
+ function createPositionConverter(code) {
75
+ const lines = splitLines(code, true).map(([line]) => line);
76
+ function indexToPos(index) {
77
+ if (index === code.length) {
78
+ return {
79
+ line: lines.length - 1,
80
+ character: lines[lines.length - 1].length
81
+ };
82
+ }
83
+ let character = index;
84
+ let line = 0;
85
+ for (const lineText of lines) {
86
+ if (character < lineText.length)
87
+ break;
88
+ character -= lineText.length;
89
+ line++;
90
+ }
91
+ return { line, character };
92
+ }
93
+ function posToIndex(line, character) {
94
+ let index = 0;
95
+ for (let i = 0; i < line; i++)
96
+ index += lines[i].length;
97
+ index += character;
98
+ return index;
99
+ }
100
+ return {
101
+ lines,
102
+ indexToPos,
103
+ posToIndex
104
+ };
105
+ }
106
+ function guessEmbeddedLanguages(code, _lang, highlighter) {
107
+ const langs = /* @__PURE__ */ new Set();
108
+ for (const match of code.matchAll(/:?lang=["']([^"']+)["']/g)) {
109
+ const lang = match[1].toLowerCase().trim();
110
+ if (lang)
111
+ langs.add(lang);
112
+ }
113
+ for (const match of code.matchAll(/(?:```|~~~)([\w-]+)/g)) {
114
+ const lang = match[1].toLowerCase().trim();
115
+ if (lang)
116
+ langs.add(lang);
117
+ }
118
+ for (const match of code.matchAll(/\\begin\{([\w-]+)\}/g)) {
119
+ const lang = match[1].toLowerCase().trim();
120
+ if (lang)
121
+ langs.add(lang);
122
+ }
123
+ for (const match of code.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)) {
124
+ const fullType = match[1].toLowerCase().trim();
125
+ const lang = fullType.includes("/") ? fullType.split("/").pop() : fullType;
126
+ if (lang)
127
+ langs.add(lang);
128
+ }
129
+ if (!highlighter)
130
+ return Array.from(langs);
131
+ const bundle = highlighter.getBundledLanguages();
132
+ return Array.from(langs).filter((l) => l && bundle[l]);
133
+ }
134
+
135
+ const DEFAULT_COLOR_LIGHT_DARK = "light-dark()";
136
+ const COLOR_KEYS = ["color", "background-color"];
137
+
138
+ function splitToken(token, offsets) {
139
+ let lastOffset = 0;
140
+ const tokens = [];
141
+ for (const offset of offsets) {
142
+ if (offset > lastOffset) {
143
+ tokens.push({
144
+ ...token,
145
+ content: token.content.slice(lastOffset, offset),
146
+ offset: token.offset + lastOffset
147
+ });
148
+ }
149
+ lastOffset = offset;
150
+ }
151
+ if (lastOffset < token.content.length) {
152
+ tokens.push({
153
+ ...token,
154
+ content: token.content.slice(lastOffset),
155
+ offset: token.offset + lastOffset
156
+ });
157
+ }
158
+ return tokens;
159
+ }
160
+ function splitTokens(tokens, breakpoints) {
161
+ const sorted = Array.from(breakpoints instanceof Set ? breakpoints : new Set(breakpoints)).sort((a, b) => a - b);
162
+ if (!sorted.length)
163
+ return tokens;
164
+ return tokens.map((line) => {
165
+ return line.flatMap((token) => {
166
+ const breakpointsInToken = sorted.filter((i) => token.offset < i && i < token.offset + token.content.length).map((i) => i - token.offset).sort((a, b) => a - b);
167
+ if (!breakpointsInToken.length)
168
+ return token;
169
+ return splitToken(token, breakpointsInToken);
170
+ });
171
+ });
172
+ }
173
+ function flatTokenVariants(merged, variantsOrder, cssVariablePrefix, defaultColor, colorsRendering = "css-vars") {
174
+ const token = {
175
+ content: merged.content,
176
+ explanation: merged.explanation,
177
+ offset: merged.offset
178
+ };
179
+ const styles = variantsOrder.map((t) => getTokenStyleObject(merged.variants[t]));
180
+ const styleKeys = new Set(styles.flatMap((t) => Object.keys(t)));
181
+ const mergedStyles = {};
182
+ const varKey = (idx, key) => {
183
+ const keyName = key === "color" ? "" : key === "background-color" ? "-bg" : `-${key}`;
184
+ return cssVariablePrefix + variantsOrder[idx] + (key === "color" ? "" : keyName);
185
+ };
186
+ styles.forEach((cur, idx) => {
187
+ for (const key of styleKeys) {
188
+ const value = cur[key] || "inherit";
189
+ if (idx === 0 && defaultColor && COLOR_KEYS.includes(key)) {
190
+ if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && styles.length > 1) {
191
+ const lightIndex = variantsOrder.findIndex((t) => t === "light");
192
+ const darkIndex = variantsOrder.findIndex((t) => t === "dark");
193
+ if (lightIndex === -1 || darkIndex === -1)
194
+ throw new ShikiError$1('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
195
+ const lightValue = styles[lightIndex][key] || "inherit";
196
+ const darkValue = styles[darkIndex][key] || "inherit";
197
+ mergedStyles[key] = `light-dark(${lightValue}, ${darkValue})`;
198
+ if (colorsRendering === "css-vars")
199
+ mergedStyles[varKey(idx, key)] = value;
200
+ } else {
201
+ mergedStyles[key] = value;
202
+ }
203
+ } else {
204
+ if (colorsRendering === "css-vars")
205
+ mergedStyles[varKey(idx, key)] = value;
206
+ }
207
+ }
208
+ });
209
+ token.htmlStyle = mergedStyles;
210
+ return token;
211
+ }
212
+ function getTokenStyleObject(token) {
213
+ const styles = {};
214
+ if (token.color)
215
+ styles.color = token.color;
216
+ if (token.bgColor)
217
+ styles["background-color"] = token.bgColor;
218
+ if (token.fontStyle) {
219
+ if (token.fontStyle & FontStyle.Italic)
220
+ styles["font-style"] = "italic";
221
+ if (token.fontStyle & FontStyle.Bold)
222
+ styles["font-weight"] = "bold";
223
+ const decorations = [];
224
+ if (token.fontStyle & FontStyle.Underline)
225
+ decorations.push("underline");
226
+ if (token.fontStyle & FontStyle.Strikethrough)
227
+ decorations.push("line-through");
228
+ if (decorations.length)
229
+ styles["text-decoration"] = decorations.join(" ");
230
+ }
231
+ return styles;
232
+ }
233
+ function stringifyTokenStyle(token) {
234
+ if (typeof token === "string")
235
+ return token;
236
+ return Object.entries(token).map(([key, value]) => `${key}:${value}`).join(";");
237
+ }
238
+
239
+ const _grammarStateMap = /* @__PURE__ */ new WeakMap();
240
+ function setLastGrammarStateToMap(keys, state) {
241
+ _grammarStateMap.set(keys, state);
242
+ }
243
+ function getLastGrammarStateFromMap(keys) {
244
+ return _grammarStateMap.get(keys);
245
+ }
246
+ class GrammarState {
247
+ /**
248
+ * Theme to Stack mapping
249
+ */
250
+ _stacks = {};
251
+ lang;
252
+ get themes() {
253
+ return Object.keys(this._stacks);
254
+ }
255
+ get theme() {
256
+ return this.themes[0];
257
+ }
258
+ get _stack() {
259
+ return this._stacks[this.theme];
260
+ }
261
+ /**
262
+ * Static method to create a initial grammar state.
263
+ */
264
+ static initial(lang, themes) {
265
+ return new GrammarState(
266
+ Object.fromEntries(toArray(themes).map((theme) => [theme, INITIAL])),
267
+ lang
268
+ );
269
+ }
270
+ constructor(...args) {
271
+ if (args.length === 2) {
272
+ const [stacksMap, lang] = args;
273
+ this.lang = lang;
274
+ this._stacks = stacksMap;
275
+ } else {
276
+ const [stack, lang, theme] = args;
277
+ this.lang = lang;
278
+ this._stacks = { [theme]: stack };
279
+ }
280
+ }
281
+ /**
282
+ * Get the internal stack object.
283
+ * @internal
284
+ */
285
+ getInternalStack(theme = this.theme) {
286
+ return this._stacks[theme];
287
+ }
288
+ getScopes(theme = this.theme) {
289
+ return getScopes(this._stacks[theme]);
290
+ }
291
+ toJSON() {
292
+ return {
293
+ lang: this.lang,
294
+ theme: this.theme,
295
+ themes: this.themes,
296
+ scopes: this.getScopes()
297
+ };
298
+ }
299
+ }
300
+ function getScopes(stack) {
301
+ const scopes = [];
302
+ const visited = /* @__PURE__ */ new Set();
303
+ function pushScope(stack2) {
304
+ if (visited.has(stack2))
305
+ return;
306
+ visited.add(stack2);
307
+ const name = stack2?.nameScopesList?.scopeName;
308
+ if (name)
309
+ scopes.push(name);
310
+ if (stack2.parent)
311
+ pushScope(stack2.parent);
312
+ }
313
+ pushScope(stack);
314
+ return scopes;
315
+ }
316
+ function getGrammarStack(state, theme) {
317
+ if (!(state instanceof GrammarState))
318
+ throw new ShikiError$1("Invalid grammar state");
319
+ return state.getInternalStack(theme);
320
+ }
321
+
322
+ function transformerDecorations() {
323
+ const map = /* @__PURE__ */ new WeakMap();
324
+ function getContext(shiki) {
325
+ if (!map.has(shiki.meta)) {
326
+ let normalizePosition = function(p) {
327
+ if (typeof p === "number") {
328
+ if (p < 0 || p > shiki.source.length)
329
+ throw new ShikiError$1(`Invalid decoration offset: ${p}. Code length: ${shiki.source.length}`);
330
+ return {
331
+ ...converter.indexToPos(p),
332
+ offset: p
333
+ };
334
+ } else {
335
+ const line = converter.lines[p.line];
336
+ if (line === void 0)
337
+ throw new ShikiError$1(`Invalid decoration position ${JSON.stringify(p)}. Lines length: ${converter.lines.length}`);
338
+ let character = p.character;
339
+ if (character < 0)
340
+ character = line.length + character;
341
+ if (character < 0 || character > line.length)
342
+ throw new ShikiError$1(`Invalid decoration position ${JSON.stringify(p)}. Line ${p.line} length: ${line.length}`);
343
+ return {
344
+ ...p,
345
+ character,
346
+ offset: converter.posToIndex(p.line, character)
347
+ };
348
+ }
349
+ };
350
+ const converter = createPositionConverter(shiki.source);
351
+ const decorations = (shiki.options.decorations || []).map((d) => ({
352
+ ...d,
353
+ start: normalizePosition(d.start),
354
+ end: normalizePosition(d.end)
355
+ }));
356
+ verifyIntersections(decorations);
357
+ map.set(shiki.meta, {
358
+ decorations,
359
+ converter,
360
+ source: shiki.source
361
+ });
362
+ }
363
+ return map.get(shiki.meta);
364
+ }
365
+ return {
366
+ name: "shiki:decorations",
367
+ tokens(tokens) {
368
+ if (!this.options.decorations?.length)
369
+ return;
370
+ const ctx = getContext(this);
371
+ const breakpoints = ctx.decorations.flatMap((d) => [d.start.offset, d.end.offset]);
372
+ const splitted = splitTokens(tokens, breakpoints);
373
+ return splitted;
374
+ },
375
+ code(codeEl) {
376
+ if (!this.options.decorations?.length)
377
+ return;
378
+ const ctx = getContext(this);
379
+ const lines = Array.from(codeEl.children).filter((i) => i.type === "element" && i.tagName === "span");
380
+ if (lines.length !== ctx.converter.lines.length)
381
+ throw new ShikiError$1(`Number of lines in code element (${lines.length}) does not match the number of lines in the source (${ctx.converter.lines.length}). Failed to apply decorations.`);
382
+ function applyLineSection(line, start, end, decoration) {
383
+ const lineEl = lines[line];
384
+ let text = "";
385
+ let startIndex = -1;
386
+ let endIndex = -1;
387
+ if (start === 0)
388
+ startIndex = 0;
389
+ if (end === 0)
390
+ endIndex = 0;
391
+ if (end === Number.POSITIVE_INFINITY)
392
+ endIndex = lineEl.children.length;
393
+ if (startIndex === -1 || endIndex === -1) {
394
+ for (let i = 0; i < lineEl.children.length; i++) {
395
+ text += stringify(lineEl.children[i]);
396
+ if (startIndex === -1 && text.length === start)
397
+ startIndex = i + 1;
398
+ if (endIndex === -1 && text.length === end)
399
+ endIndex = i + 1;
400
+ }
401
+ }
402
+ if (startIndex === -1)
403
+ throw new ShikiError$1(`Failed to find start index for decoration ${JSON.stringify(decoration.start)}`);
404
+ if (endIndex === -1)
405
+ throw new ShikiError$1(`Failed to find end index for decoration ${JSON.stringify(decoration.end)}`);
406
+ const children = lineEl.children.slice(startIndex, endIndex);
407
+ if (!decoration.alwaysWrap && children.length === lineEl.children.length) {
408
+ applyDecoration(lineEl, decoration, "line");
409
+ } else if (!decoration.alwaysWrap && children.length === 1 && children[0].type === "element") {
410
+ applyDecoration(children[0], decoration, "token");
411
+ } else {
412
+ const wrapper = {
413
+ type: "element",
414
+ tagName: "span",
415
+ properties: {},
416
+ children
417
+ };
418
+ applyDecoration(wrapper, decoration, "wrapper");
419
+ lineEl.children.splice(startIndex, children.length, wrapper);
420
+ }
421
+ }
422
+ function applyLine(line, decoration) {
423
+ lines[line] = applyDecoration(lines[line], decoration, "line");
424
+ }
425
+ function applyDecoration(el, decoration, type) {
426
+ const properties = decoration.properties || {};
427
+ const transform = decoration.transform || ((i) => i);
428
+ el.tagName = decoration.tagName || "span";
429
+ el.properties = {
430
+ ...el.properties,
431
+ ...properties,
432
+ class: el.properties.class
433
+ };
434
+ if (decoration.properties?.class)
435
+ addClassToHast(el, decoration.properties.class);
436
+ el = transform(el, type) || el;
437
+ return el;
438
+ }
439
+ const lineApplies = [];
440
+ const sorted = ctx.decorations.sort((a, b) => b.start.offset - a.start.offset || a.end.offset - b.end.offset);
441
+ for (const decoration of sorted) {
442
+ const { start, end } = decoration;
443
+ if (start.line === end.line) {
444
+ applyLineSection(start.line, start.character, end.character, decoration);
445
+ } else if (start.line < end.line) {
446
+ applyLineSection(start.line, start.character, Number.POSITIVE_INFINITY, decoration);
447
+ for (let i = start.line + 1; i < end.line; i++)
448
+ lineApplies.unshift(() => applyLine(i, decoration));
449
+ applyLineSection(end.line, 0, end.character, decoration);
450
+ }
451
+ }
452
+ lineApplies.forEach((i) => i());
453
+ }
454
+ };
455
+ }
456
+ function verifyIntersections(items) {
457
+ for (let i = 0; i < items.length; i++) {
458
+ const foo = items[i];
459
+ if (foo.start.offset > foo.end.offset)
460
+ throw new ShikiError$1(`Invalid decoration range: ${JSON.stringify(foo.start)} - ${JSON.stringify(foo.end)}`);
461
+ for (let j = i + 1; j < items.length; j++) {
462
+ const bar = items[j];
463
+ const isFooHasBarStart = foo.start.offset <= bar.start.offset && bar.start.offset < foo.end.offset;
464
+ const isFooHasBarEnd = foo.start.offset < bar.end.offset && bar.end.offset <= foo.end.offset;
465
+ const isBarHasFooStart = bar.start.offset <= foo.start.offset && foo.start.offset < bar.end.offset;
466
+ const isBarHasFooEnd = bar.start.offset < foo.end.offset && foo.end.offset <= bar.end.offset;
467
+ if (isFooHasBarStart || isFooHasBarEnd || isBarHasFooStart || isBarHasFooEnd) {
468
+ if (isFooHasBarStart && isFooHasBarEnd)
469
+ continue;
470
+ if (isBarHasFooStart && isBarHasFooEnd)
471
+ continue;
472
+ if (isBarHasFooStart && foo.start.offset === foo.end.offset)
473
+ continue;
474
+ if (isFooHasBarEnd && bar.start.offset === bar.end.offset)
475
+ continue;
476
+ throw new ShikiError$1(`Decorations ${JSON.stringify(foo.start)} and ${JSON.stringify(bar.start)} intersect.`);
477
+ }
478
+ }
479
+ }
480
+ }
481
+ function stringify(el) {
482
+ if (el.type === "text")
483
+ return el.value;
484
+ if (el.type === "element")
485
+ return el.children.map(stringify).join("");
486
+ return "";
487
+ }
488
+
489
+ const builtInTransformers = [
490
+ /* @__PURE__ */ transformerDecorations()
491
+ ];
492
+ function getTransformers(options) {
493
+ const transformers = sortTransformersByEnforcement(options.transformers || []);
494
+ return [
495
+ ...transformers.pre,
496
+ ...transformers.normal,
497
+ ...transformers.post,
498
+ ...builtInTransformers
499
+ ];
500
+ }
501
+ function sortTransformersByEnforcement(transformers) {
502
+ const pre = [];
503
+ const post = [];
504
+ const normal = [];
505
+ for (const transformer of transformers) {
506
+ switch (transformer.enforce) {
507
+ case "pre":
508
+ pre.push(transformer);
509
+ break;
510
+ case "post":
511
+ post.push(transformer);
512
+ break;
513
+ default:
514
+ normal.push(transformer);
515
+ }
516
+ }
517
+ return { pre, post, normal };
518
+ }
519
+
520
+ // src/colors.ts
521
+ var namedColors = [
522
+ "black",
523
+ "red",
524
+ "green",
525
+ "yellow",
526
+ "blue",
527
+ "magenta",
528
+ "cyan",
529
+ "white",
530
+ "brightBlack",
531
+ "brightRed",
532
+ "brightGreen",
533
+ "brightYellow",
534
+ "brightBlue",
535
+ "brightMagenta",
536
+ "brightCyan",
537
+ "brightWhite"
538
+ ];
539
+
540
+ // src/decorations.ts
541
+ var decorations = {
542
+ 1: "bold",
543
+ 2: "dim",
544
+ 3: "italic",
545
+ 4: "underline",
546
+ 7: "reverse",
547
+ 8: "hidden",
548
+ 9: "strikethrough"
549
+ };
550
+
551
+ // src/parser.ts
552
+ function findSequence(value, position) {
553
+ const nextEscape = value.indexOf("\x1B", position);
554
+ if (nextEscape !== -1) {
555
+ if (value[nextEscape + 1] === "[") {
556
+ const nextClose = value.indexOf("m", nextEscape);
557
+ if (nextClose !== -1) {
558
+ return {
559
+ sequence: value.substring(nextEscape + 2, nextClose).split(";"),
560
+ startPosition: nextEscape,
561
+ position: nextClose + 1
562
+ };
563
+ }
564
+ }
565
+ }
566
+ return {
567
+ position: value.length
568
+ };
569
+ }
570
+ function parseColor(sequence) {
571
+ const colorMode = sequence.shift();
572
+ if (colorMode === "2") {
573
+ const rgb = sequence.splice(0, 3).map((x) => Number.parseInt(x));
574
+ if (rgb.length !== 3 || rgb.some((x) => Number.isNaN(x)))
575
+ return;
576
+ return {
577
+ type: "rgb",
578
+ rgb
579
+ };
580
+ } else if (colorMode === "5") {
581
+ const index = sequence.shift();
582
+ if (index) {
583
+ return { type: "table", index: Number(index) };
584
+ }
585
+ }
586
+ }
587
+ function parseSequence(sequence) {
588
+ const commands = [];
589
+ while (sequence.length > 0) {
590
+ const code = sequence.shift();
591
+ if (!code)
592
+ continue;
593
+ const codeInt = Number.parseInt(code);
594
+ if (Number.isNaN(codeInt))
595
+ continue;
596
+ if (codeInt === 0) {
597
+ commands.push({ type: "resetAll" });
598
+ } else if (codeInt <= 9) {
599
+ const decoration = decorations[codeInt];
600
+ if (decoration) {
601
+ commands.push({
602
+ type: "setDecoration",
603
+ value: decorations[codeInt]
604
+ });
605
+ }
606
+ } else if (codeInt <= 29) {
607
+ const decoration = decorations[codeInt - 20];
608
+ if (decoration) {
609
+ commands.push({
610
+ type: "resetDecoration",
611
+ value: decoration
612
+ });
613
+ if (decoration === "dim") {
614
+ commands.push({
615
+ type: "resetDecoration",
616
+ value: "bold"
617
+ });
618
+ }
619
+ }
620
+ } else if (codeInt <= 37) {
621
+ commands.push({
622
+ type: "setForegroundColor",
623
+ value: { type: "named", name: namedColors[codeInt - 30] }
624
+ });
625
+ } else if (codeInt === 38) {
626
+ const color = parseColor(sequence);
627
+ if (color) {
628
+ commands.push({
629
+ type: "setForegroundColor",
630
+ value: color
631
+ });
632
+ }
633
+ } else if (codeInt === 39) {
634
+ commands.push({
635
+ type: "resetForegroundColor"
636
+ });
637
+ } else if (codeInt <= 47) {
638
+ commands.push({
639
+ type: "setBackgroundColor",
640
+ value: { type: "named", name: namedColors[codeInt - 40] }
641
+ });
642
+ } else if (codeInt === 48) {
643
+ const color = parseColor(sequence);
644
+ if (color) {
645
+ commands.push({
646
+ type: "setBackgroundColor",
647
+ value: color
648
+ });
649
+ }
650
+ } else if (codeInt === 49) {
651
+ commands.push({
652
+ type: "resetBackgroundColor"
653
+ });
654
+ } else if (codeInt === 53) {
655
+ commands.push({
656
+ type: "setDecoration",
657
+ value: "overline"
658
+ });
659
+ } else if (codeInt === 55) {
660
+ commands.push({
661
+ type: "resetDecoration",
662
+ value: "overline"
663
+ });
664
+ } else if (codeInt >= 90 && codeInt <= 97) {
665
+ commands.push({
666
+ type: "setForegroundColor",
667
+ value: { type: "named", name: namedColors[codeInt - 90 + 8] }
668
+ });
669
+ } else if (codeInt >= 100 && codeInt <= 107) {
670
+ commands.push({
671
+ type: "setBackgroundColor",
672
+ value: { type: "named", name: namedColors[codeInt - 100 + 8] }
673
+ });
674
+ }
675
+ }
676
+ return commands;
677
+ }
678
+ function createAnsiSequenceParser() {
679
+ let foreground = null;
680
+ let background = null;
681
+ let decorations2 = /* @__PURE__ */ new Set();
682
+ return {
683
+ parse(value) {
684
+ const tokens = [];
685
+ let position = 0;
686
+ do {
687
+ const findResult = findSequence(value, position);
688
+ const text = findResult.sequence ? value.substring(position, findResult.startPosition) : value.substring(position);
689
+ if (text.length > 0) {
690
+ tokens.push({
691
+ value: text,
692
+ foreground,
693
+ background,
694
+ decorations: new Set(decorations2)
695
+ });
696
+ }
697
+ if (findResult.sequence) {
698
+ const commands = parseSequence(findResult.sequence);
699
+ for (const styleToken of commands) {
700
+ if (styleToken.type === "resetAll") {
701
+ foreground = null;
702
+ background = null;
703
+ decorations2.clear();
704
+ } else if (styleToken.type === "resetForegroundColor") {
705
+ foreground = null;
706
+ } else if (styleToken.type === "resetBackgroundColor") {
707
+ background = null;
708
+ } else if (styleToken.type === "resetDecoration") {
709
+ decorations2.delete(styleToken.value);
710
+ }
711
+ }
712
+ for (const styleToken of commands) {
713
+ if (styleToken.type === "setForegroundColor") {
714
+ foreground = styleToken.value;
715
+ } else if (styleToken.type === "setBackgroundColor") {
716
+ background = styleToken.value;
717
+ } else if (styleToken.type === "setDecoration") {
718
+ decorations2.add(styleToken.value);
719
+ }
720
+ }
721
+ }
722
+ position = findResult.position;
723
+ } while (position < value.length);
724
+ return tokens;
725
+ }
726
+ };
727
+ }
728
+
729
+ // src/palette.ts
730
+ var defaultNamedColorsMap = {
731
+ black: "#000000",
732
+ red: "#bb0000",
733
+ green: "#00bb00",
734
+ yellow: "#bbbb00",
735
+ blue: "#0000bb",
736
+ magenta: "#ff00ff",
737
+ cyan: "#00bbbb",
738
+ white: "#eeeeee",
739
+ brightBlack: "#555555",
740
+ brightRed: "#ff5555",
741
+ brightGreen: "#00ff00",
742
+ brightYellow: "#ffff55",
743
+ brightBlue: "#5555ff",
744
+ brightMagenta: "#ff55ff",
745
+ brightCyan: "#55ffff",
746
+ brightWhite: "#ffffff"
747
+ };
748
+ function createColorPalette(namedColorsMap = defaultNamedColorsMap) {
749
+ function namedColor(name) {
750
+ return namedColorsMap[name];
751
+ }
752
+ function rgbColor(rgb) {
753
+ return `#${rgb.map((x) => Math.max(0, Math.min(x, 255)).toString(16).padStart(2, "0")).join("")}`;
754
+ }
755
+ let colorTable;
756
+ function getColorTable() {
757
+ if (colorTable) {
758
+ return colorTable;
759
+ }
760
+ colorTable = [];
761
+ for (let i = 0; i < namedColors.length; i++) {
762
+ colorTable.push(namedColor(namedColors[i]));
763
+ }
764
+ let levels = [0, 95, 135, 175, 215, 255];
765
+ for (let r = 0; r < 6; r++) {
766
+ for (let g = 0; g < 6; g++) {
767
+ for (let b = 0; b < 6; b++) {
768
+ colorTable.push(rgbColor([levels[r], levels[g], levels[b]]));
769
+ }
770
+ }
771
+ }
772
+ let level = 8;
773
+ for (let i = 0; i < 24; i++, level += 10) {
774
+ colorTable.push(rgbColor([level, level, level]));
775
+ }
776
+ return colorTable;
777
+ }
778
+ function tableColor(index) {
779
+ return getColorTable()[index];
780
+ }
781
+ function value(color) {
782
+ switch (color.type) {
783
+ case "named":
784
+ return namedColor(color.name);
785
+ case "rgb":
786
+ return rgbColor(color.rgb);
787
+ case "table":
788
+ return tableColor(color.index);
789
+ }
790
+ }
791
+ return {
792
+ value
793
+ };
794
+ }
795
+
796
+ const defaultAnsiColors = {
797
+ black: "#000000",
798
+ red: "#cd3131",
799
+ green: "#0DBC79",
800
+ yellow: "#E5E510",
801
+ blue: "#2472C8",
802
+ magenta: "#BC3FBC",
803
+ cyan: "#11A8CD",
804
+ white: "#E5E5E5",
805
+ brightBlack: "#666666",
806
+ brightRed: "#F14C4C",
807
+ brightGreen: "#23D18B",
808
+ brightYellow: "#F5F543",
809
+ brightBlue: "#3B8EEA",
810
+ brightMagenta: "#D670D6",
811
+ brightCyan: "#29B8DB",
812
+ brightWhite: "#FFFFFF"
813
+ };
814
+ function tokenizeAnsiWithTheme(theme, fileContents, options) {
815
+ const colorReplacements = resolveColorReplacements(theme, options);
816
+ const lines = splitLines(fileContents);
817
+ const ansiPalette = Object.fromEntries(
818
+ namedColors.map((name) => {
819
+ const key = `terminal.ansi${name[0].toUpperCase()}${name.substring(1)}`;
820
+ const themeColor = theme.colors?.[key];
821
+ return [name, themeColor || defaultAnsiColors[name]];
822
+ })
823
+ );
824
+ const colorPalette = createColorPalette(ansiPalette);
825
+ const parser = createAnsiSequenceParser();
826
+ return lines.map(
827
+ (line) => parser.parse(line[0]).map((token) => {
828
+ let color;
829
+ let bgColor;
830
+ if (token.decorations.has("reverse")) {
831
+ color = token.background ? colorPalette.value(token.background) : theme.bg;
832
+ bgColor = token.foreground ? colorPalette.value(token.foreground) : theme.fg;
833
+ } else {
834
+ color = token.foreground ? colorPalette.value(token.foreground) : theme.fg;
835
+ bgColor = token.background ? colorPalette.value(token.background) : void 0;
836
+ }
837
+ color = applyColorReplacements(color, colorReplacements);
838
+ bgColor = applyColorReplacements(bgColor, colorReplacements);
839
+ if (token.decorations.has("dim"))
840
+ color = dimColor(color);
841
+ let fontStyle = FontStyle.None;
842
+ if (token.decorations.has("bold"))
843
+ fontStyle |= FontStyle.Bold;
844
+ if (token.decorations.has("italic"))
845
+ fontStyle |= FontStyle.Italic;
846
+ if (token.decorations.has("underline"))
847
+ fontStyle |= FontStyle.Underline;
848
+ if (token.decorations.has("strikethrough"))
849
+ fontStyle |= FontStyle.Strikethrough;
850
+ return {
851
+ content: token.value,
852
+ offset: line[1],
853
+ // TODO: more accurate offset? might need to fork ansi-sequence-parser
854
+ color,
855
+ bgColor,
856
+ fontStyle
857
+ };
858
+ })
859
+ );
860
+ }
861
+ function dimColor(color) {
862
+ const hexMatch = color.match(/#([0-9a-f]{3,8})/i);
863
+ if (hexMatch) {
864
+ const hex = hexMatch[1];
865
+ if (hex.length === 8) {
866
+ const alpha = Math.round(Number.parseInt(hex.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
867
+ return `#${hex.slice(0, 6)}${alpha}`;
868
+ } else if (hex.length === 6) {
869
+ return `#${hex}80`;
870
+ } else if (hex.length === 4) {
871
+ const r = hex[0];
872
+ const g = hex[1];
873
+ const b = hex[2];
874
+ const a = hex[3];
875
+ const alpha = Math.round(Number.parseInt(`${a}${a}`, 16) / 2).toString(16).padStart(2, "0");
876
+ return `#${r}${r}${g}${g}${b}${b}${alpha}`;
877
+ } else if (hex.length === 3) {
878
+ const r = hex[0];
879
+ const g = hex[1];
880
+ const b = hex[2];
881
+ return `#${r}${r}${g}${g}${b}${b}80`;
882
+ }
883
+ }
884
+ const cssVarMatch = color.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
885
+ if (cssVarMatch)
886
+ return `var(${cssVarMatch[1]}-dim)`;
887
+ return color;
888
+ }
889
+
890
+ function codeToTokensBase(internal, code, options = {}) {
891
+ const {
892
+ theme: themeName = internal.getLoadedThemes()[0]
893
+ } = options;
894
+ const lang = internal.resolveLangAlias(options.lang || "text");
895
+ if (isPlainLang(lang) || isNoneTheme(themeName))
896
+ return splitLines(code).map((line) => [{ content: line[0], offset: line[1] }]);
897
+ const { theme, colorMap } = internal.setTheme(themeName);
898
+ if (lang === "ansi")
899
+ return tokenizeAnsiWithTheme(theme, code, options);
900
+ const _grammar = internal.getLanguage(options.lang || "text");
901
+ if (options.grammarState) {
902
+ if (options.grammarState.lang !== _grammar.name) {
903
+ throw new ShikiError$1(`Grammar state language "${options.grammarState.lang}" does not match highlight language "${_grammar.name}"`);
904
+ }
905
+ if (!options.grammarState.themes.includes(theme.name)) {
906
+ throw new ShikiError$1(`Grammar state themes "${options.grammarState.themes}" do not contain highlight theme "${theme.name}"`);
907
+ }
908
+ }
909
+ return tokenizeWithTheme(code, _grammar, theme, colorMap, options);
910
+ }
911
+ function getLastGrammarState(...args) {
912
+ if (args.length === 2) {
913
+ return getLastGrammarStateFromMap(args[1]);
914
+ }
915
+ const [internal, code, options = {}] = args;
916
+ const {
917
+ lang = "text",
918
+ theme: themeName = internal.getLoadedThemes()[0]
919
+ } = options;
920
+ if (isPlainLang(lang) || isNoneTheme(themeName))
921
+ throw new ShikiError$1("Plain language does not have grammar state");
922
+ if (lang === "ansi")
923
+ throw new ShikiError$1("ANSI language does not have grammar state");
924
+ const { theme, colorMap } = internal.setTheme(themeName);
925
+ const _grammar = internal.getLanguage(lang);
926
+ return new GrammarState(
927
+ _tokenizeWithTheme(code, _grammar, theme, colorMap, options).stateStack,
928
+ _grammar.name,
929
+ theme.name
930
+ );
931
+ }
932
+ function tokenizeWithTheme(code, grammar, theme, colorMap, options) {
933
+ const result = _tokenizeWithTheme(code, grammar, theme, colorMap, options);
934
+ const grammarState = new GrammarState(
935
+ result.stateStack,
936
+ grammar.name,
937
+ theme.name
938
+ );
939
+ setLastGrammarStateToMap(result.tokens, grammarState);
940
+ return result.tokens;
941
+ }
942
+ function _tokenizeWithTheme(code, grammar, theme, colorMap, options) {
943
+ const colorReplacements = resolveColorReplacements(theme, options);
944
+ const {
945
+ tokenizeMaxLineLength = 0,
946
+ tokenizeTimeLimit = 500
947
+ } = options;
948
+ const lines = splitLines(code);
949
+ let stateStack = options.grammarState ? getGrammarStack(options.grammarState, theme.name) ?? INITIAL : options.grammarContextCode != null ? _tokenizeWithTheme(
950
+ options.grammarContextCode,
951
+ grammar,
952
+ theme,
953
+ colorMap,
954
+ {
955
+ ...options,
956
+ grammarState: void 0,
957
+ grammarContextCode: void 0
958
+ }
959
+ ).stateStack : INITIAL;
960
+ let actual = [];
961
+ const final = [];
962
+ for (let i = 0, len = lines.length; i < len; i++) {
963
+ const [line, lineOffset] = lines[i];
964
+ if (line === "") {
965
+ actual = [];
966
+ final.push([]);
967
+ continue;
968
+ }
969
+ if (tokenizeMaxLineLength > 0 && line.length >= tokenizeMaxLineLength) {
970
+ actual = [];
971
+ final.push([{
972
+ content: line,
973
+ offset: lineOffset,
974
+ color: "",
975
+ fontStyle: 0
976
+ }]);
977
+ continue;
978
+ }
979
+ let resultWithScopes;
980
+ let tokensWithScopes;
981
+ let tokensWithScopesIndex;
982
+ if (options.includeExplanation) {
983
+ resultWithScopes = grammar.tokenizeLine(line, stateStack, tokenizeTimeLimit);
984
+ tokensWithScopes = resultWithScopes.tokens;
985
+ tokensWithScopesIndex = 0;
986
+ }
987
+ const result = grammar.tokenizeLine2(line, stateStack, tokenizeTimeLimit);
988
+ const tokensLength = result.tokens.length / 2;
989
+ for (let j = 0; j < tokensLength; j++) {
990
+ const startIndex = result.tokens[2 * j];
991
+ const nextStartIndex = j + 1 < tokensLength ? result.tokens[2 * j + 2] : line.length;
992
+ if (startIndex === nextStartIndex)
993
+ continue;
994
+ const metadata = result.tokens[2 * j + 1];
995
+ const color = applyColorReplacements(
996
+ colorMap[EncodedTokenMetadata.getForeground(metadata)],
997
+ colorReplacements
998
+ );
999
+ const fontStyle = EncodedTokenMetadata.getFontStyle(metadata);
1000
+ const token = {
1001
+ content: line.substring(startIndex, nextStartIndex),
1002
+ offset: lineOffset + startIndex,
1003
+ color,
1004
+ fontStyle
1005
+ };
1006
+ if (options.includeExplanation) {
1007
+ const themeSettingsSelectors = [];
1008
+ if (options.includeExplanation !== "scopeName") {
1009
+ for (const setting of theme.settings) {
1010
+ let selectors;
1011
+ switch (typeof setting.scope) {
1012
+ case "string":
1013
+ selectors = setting.scope.split(/,/).map((scope) => scope.trim());
1014
+ break;
1015
+ case "object":
1016
+ selectors = setting.scope;
1017
+ break;
1018
+ default:
1019
+ continue;
1020
+ }
1021
+ themeSettingsSelectors.push({
1022
+ settings: setting,
1023
+ selectors: selectors.map((selector) => selector.split(/ /))
1024
+ });
1025
+ }
1026
+ }
1027
+ token.explanation = [];
1028
+ let offset = 0;
1029
+ while (startIndex + offset < nextStartIndex) {
1030
+ const tokenWithScopes = tokensWithScopes[tokensWithScopesIndex];
1031
+ const tokenWithScopesText = line.substring(
1032
+ tokenWithScopes.startIndex,
1033
+ tokenWithScopes.endIndex
1034
+ );
1035
+ offset += tokenWithScopesText.length;
1036
+ token.explanation.push({
1037
+ content: tokenWithScopesText,
1038
+ scopes: options.includeExplanation === "scopeName" ? explainThemeScopesNameOnly(
1039
+ tokenWithScopes.scopes
1040
+ ) : explainThemeScopesFull(
1041
+ themeSettingsSelectors,
1042
+ tokenWithScopes.scopes
1043
+ )
1044
+ });
1045
+ tokensWithScopesIndex += 1;
1046
+ }
1047
+ }
1048
+ actual.push(token);
1049
+ }
1050
+ final.push(actual);
1051
+ actual = [];
1052
+ stateStack = result.ruleStack;
1053
+ }
1054
+ return {
1055
+ tokens: final,
1056
+ stateStack
1057
+ };
1058
+ }
1059
+ function explainThemeScopesNameOnly(scopes) {
1060
+ return scopes.map((scope) => ({ scopeName: scope }));
1061
+ }
1062
+ function explainThemeScopesFull(themeSelectors, scopes) {
1063
+ const result = [];
1064
+ for (let i = 0, len = scopes.length; i < len; i++) {
1065
+ const scope = scopes[i];
1066
+ result[i] = {
1067
+ scopeName: scope,
1068
+ themeMatches: explainThemeScope(themeSelectors, scope, scopes.slice(0, i))
1069
+ };
1070
+ }
1071
+ return result;
1072
+ }
1073
+ function matchesOne(selector, scope) {
1074
+ return selector === scope || scope.substring(0, selector.length) === selector && scope[selector.length] === ".";
1075
+ }
1076
+ function matches(selectors, scope, parentScopes) {
1077
+ if (!matchesOne(selectors[selectors.length - 1], scope))
1078
+ return false;
1079
+ let selectorParentIndex = selectors.length - 2;
1080
+ let parentIndex = parentScopes.length - 1;
1081
+ while (selectorParentIndex >= 0 && parentIndex >= 0) {
1082
+ if (matchesOne(selectors[selectorParentIndex], parentScopes[parentIndex]))
1083
+ selectorParentIndex -= 1;
1084
+ parentIndex -= 1;
1085
+ }
1086
+ if (selectorParentIndex === -1)
1087
+ return true;
1088
+ return false;
1089
+ }
1090
+ function explainThemeScope(themeSettingsSelectors, scope, parentScopes) {
1091
+ const result = [];
1092
+ for (const { selectors, settings } of themeSettingsSelectors) {
1093
+ for (const selectorPieces of selectors) {
1094
+ if (matches(selectorPieces, scope, parentScopes)) {
1095
+ result.push(settings);
1096
+ break;
1097
+ }
1098
+ }
1099
+ }
1100
+ return result;
1101
+ }
1102
+
1103
+ function codeToTokensWithThemes(internal, code, options) {
1104
+ const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({ color: i[0], theme: i[1] }));
1105
+ const themedTokens = themes.map((t) => {
1106
+ const tokens2 = codeToTokensBase(internal, code, {
1107
+ ...options,
1108
+ theme: t.theme
1109
+ });
1110
+ const state = getLastGrammarStateFromMap(tokens2);
1111
+ const theme = typeof t.theme === "string" ? t.theme : t.theme.name;
1112
+ return {
1113
+ tokens: tokens2,
1114
+ state,
1115
+ theme
1116
+ };
1117
+ });
1118
+ const tokens = syncThemesTokenization(
1119
+ ...themedTokens.map((i) => i.tokens)
1120
+ );
1121
+ const mergedTokens = tokens[0].map(
1122
+ (line, lineIdx) => line.map((_token, tokenIdx) => {
1123
+ const mergedToken = {
1124
+ content: _token.content,
1125
+ variants: {},
1126
+ offset: _token.offset
1127
+ };
1128
+ if ("includeExplanation" in options && options.includeExplanation) {
1129
+ mergedToken.explanation = _token.explanation;
1130
+ }
1131
+ tokens.forEach((t, themeIdx) => {
1132
+ const {
1133
+ content: _,
1134
+ explanation: __,
1135
+ offset: ___,
1136
+ ...styles
1137
+ } = t[lineIdx][tokenIdx];
1138
+ mergedToken.variants[themes[themeIdx].color] = styles;
1139
+ });
1140
+ return mergedToken;
1141
+ })
1142
+ );
1143
+ const mergedGrammarState = themedTokens[0].state ? new GrammarState(
1144
+ Object.fromEntries(themedTokens.map((s) => [s.theme, s.state?.getInternalStack(s.theme)])),
1145
+ themedTokens[0].state.lang
1146
+ ) : void 0;
1147
+ if (mergedGrammarState)
1148
+ setLastGrammarStateToMap(mergedTokens, mergedGrammarState);
1149
+ return mergedTokens;
1150
+ }
1151
+ function syncThemesTokenization(...themes) {
1152
+ const outThemes = themes.map(() => []);
1153
+ const count = themes.length;
1154
+ for (let i = 0; i < themes[0].length; i++) {
1155
+ const lines = themes.map((t) => t[i]);
1156
+ const outLines = outThemes.map(() => []);
1157
+ outThemes.forEach((t, i2) => t.push(outLines[i2]));
1158
+ const indexes = lines.map(() => 0);
1159
+ const current = lines.map((l) => l[0]);
1160
+ while (current.every((t) => t)) {
1161
+ const minLength = Math.min(...current.map((t) => t.content.length));
1162
+ for (let n = 0; n < count; n++) {
1163
+ const token = current[n];
1164
+ if (token.content.length === minLength) {
1165
+ outLines[n].push(token);
1166
+ indexes[n] += 1;
1167
+ current[n] = lines[n][indexes[n]];
1168
+ } else {
1169
+ outLines[n].push({
1170
+ ...token,
1171
+ content: token.content.slice(0, minLength)
1172
+ });
1173
+ current[n] = {
1174
+ ...token,
1175
+ content: token.content.slice(minLength),
1176
+ offset: token.offset + minLength
1177
+ };
1178
+ }
1179
+ }
1180
+ }
1181
+ }
1182
+ return outThemes;
1183
+ }
1184
+
1185
+ function codeToTokens(internal, code, options) {
1186
+ let bg;
1187
+ let fg;
1188
+ let tokens;
1189
+ let themeName;
1190
+ let rootStyle;
1191
+ let grammarState;
1192
+ if ("themes" in options) {
1193
+ const {
1194
+ defaultColor = "light",
1195
+ cssVariablePrefix = "--shiki-",
1196
+ colorsRendering = "css-vars"
1197
+ } = options;
1198
+ const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({ color: i[0], theme: i[1] })).sort((a, b) => a.color === defaultColor ? -1 : b.color === defaultColor ? 1 : 0);
1199
+ if (themes.length === 0)
1200
+ throw new ShikiError$1("`themes` option must not be empty");
1201
+ const themeTokens = codeToTokensWithThemes(
1202
+ internal,
1203
+ code,
1204
+ options
1205
+ );
1206
+ grammarState = getLastGrammarStateFromMap(themeTokens);
1207
+ if (defaultColor && DEFAULT_COLOR_LIGHT_DARK !== defaultColor && !themes.find((t) => t.color === defaultColor))
1208
+ throw new ShikiError$1(`\`themes\` option must contain the defaultColor key \`${defaultColor}\``);
1209
+ const themeRegs = themes.map((t) => internal.getTheme(t.theme));
1210
+ const themesOrder = themes.map((t) => t.color);
1211
+ tokens = themeTokens.map((line) => line.map((token) => flatTokenVariants(token, themesOrder, cssVariablePrefix, defaultColor, colorsRendering)));
1212
+ if (grammarState)
1213
+ setLastGrammarStateToMap(tokens, grammarState);
1214
+ const themeColorReplacements = themes.map((t) => resolveColorReplacements(t.theme, options));
1215
+ fg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "fg", colorsRendering);
1216
+ bg = mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, "bg", colorsRendering);
1217
+ themeName = `shiki-themes ${themeRegs.map((t) => t.name).join(" ")}`;
1218
+ rootStyle = defaultColor ? void 0 : [fg, bg].join(";");
1219
+ } else if ("theme" in options) {
1220
+ const colorReplacements = resolveColorReplacements(options.theme, options);
1221
+ tokens = codeToTokensBase(
1222
+ internal,
1223
+ code,
1224
+ options
1225
+ );
1226
+ const _theme = internal.getTheme(options.theme);
1227
+ bg = applyColorReplacements(_theme.bg, colorReplacements);
1228
+ fg = applyColorReplacements(_theme.fg, colorReplacements);
1229
+ themeName = _theme.name;
1230
+ grammarState = getLastGrammarStateFromMap(tokens);
1231
+ } else {
1232
+ throw new ShikiError$1("Invalid options, either `theme` or `themes` must be provided");
1233
+ }
1234
+ return {
1235
+ tokens,
1236
+ fg,
1237
+ bg,
1238
+ themeName,
1239
+ rootStyle,
1240
+ grammarState
1241
+ };
1242
+ }
1243
+ function mapThemeColors(themes, themeRegs, themeColorReplacements, cssVariablePrefix, defaultColor, property, colorsRendering) {
1244
+ return themes.map((t, idx) => {
1245
+ const value = applyColorReplacements(themeRegs[idx][property], themeColorReplacements[idx]) || "inherit";
1246
+ const cssVar = `${cssVariablePrefix + t.color}${property === "bg" ? "-bg" : ""}:${value}`;
1247
+ if (idx === 0 && defaultColor) {
1248
+ if (defaultColor === DEFAULT_COLOR_LIGHT_DARK && themes.length > 1) {
1249
+ const lightIndex = themes.findIndex((t2) => t2.color === "light");
1250
+ const darkIndex = themes.findIndex((t2) => t2.color === "dark");
1251
+ if (lightIndex === -1 || darkIndex === -1)
1252
+ throw new ShikiError$1('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');
1253
+ const lightValue = applyColorReplacements(themeRegs[lightIndex][property], themeColorReplacements[lightIndex]) || "inherit";
1254
+ const darkValue = applyColorReplacements(themeRegs[darkIndex][property], themeColorReplacements[darkIndex]) || "inherit";
1255
+ return `light-dark(${lightValue}, ${darkValue});${cssVar}`;
1256
+ }
1257
+ return value;
1258
+ }
1259
+ if (colorsRendering === "css-vars") {
1260
+ return cssVar;
1261
+ }
1262
+ return null;
1263
+ }).filter((i) => !!i).join(";");
1264
+ }
1265
+
1266
+ function codeToHast(internal, code, options, transformerContext = {
1267
+ meta: {},
1268
+ options,
1269
+ codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
1270
+ codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
1271
+ }) {
1272
+ let input = code;
1273
+ for (const transformer of getTransformers(options))
1274
+ input = transformer.preprocess?.call(transformerContext, input, options) || input;
1275
+ let {
1276
+ tokens,
1277
+ fg,
1278
+ bg,
1279
+ themeName,
1280
+ rootStyle,
1281
+ grammarState
1282
+ } = codeToTokens(internal, input, options);
1283
+ const {
1284
+ mergeWhitespaces = true,
1285
+ mergeSameStyleTokens = false
1286
+ } = options;
1287
+ if (mergeWhitespaces === true)
1288
+ tokens = mergeWhitespaceTokens(tokens);
1289
+ else if (mergeWhitespaces === "never")
1290
+ tokens = splitWhitespaceTokens(tokens);
1291
+ if (mergeSameStyleTokens) {
1292
+ tokens = mergeAdjacentStyledTokens(tokens);
1293
+ }
1294
+ const contextSource = {
1295
+ ...transformerContext,
1296
+ get source() {
1297
+ return input;
1298
+ }
1299
+ };
1300
+ for (const transformer of getTransformers(options))
1301
+ tokens = transformer.tokens?.call(contextSource, tokens) || tokens;
1302
+ return tokensToHast(
1303
+ tokens,
1304
+ {
1305
+ ...options,
1306
+ fg,
1307
+ bg,
1308
+ themeName,
1309
+ rootStyle: options.rootStyle === false ? false : options.rootStyle ?? rootStyle
1310
+ },
1311
+ contextSource,
1312
+ grammarState
1313
+ );
1314
+ }
1315
+ function tokensToHast(tokens, options, transformerContext, grammarState = getLastGrammarStateFromMap(tokens)) {
1316
+ const transformers = getTransformers(options);
1317
+ const lines = [];
1318
+ const root = {
1319
+ type: "root",
1320
+ children: []
1321
+ };
1322
+ const {
1323
+ structure = "classic",
1324
+ tabindex = "0"
1325
+ } = options;
1326
+ const properties = {
1327
+ class: `shiki ${options.themeName || ""}`
1328
+ };
1329
+ if (options.rootStyle !== false) {
1330
+ if (options.rootStyle != null)
1331
+ properties.style = options.rootStyle;
1332
+ else
1333
+ properties.style = `background-color:${options.bg};color:${options.fg}`;
1334
+ }
1335
+ if (tabindex !== false && tabindex != null)
1336
+ properties.tabindex = tabindex.toString();
1337
+ for (const [key, value] of Object.entries(options.meta || {})) {
1338
+ if (!key.startsWith("_"))
1339
+ properties[key] = value;
1340
+ }
1341
+ let preNode = {
1342
+ type: "element",
1343
+ tagName: "pre",
1344
+ properties,
1345
+ children: [],
1346
+ data: options.data
1347
+ };
1348
+ let codeNode = {
1349
+ type: "element",
1350
+ tagName: "code",
1351
+ properties: {},
1352
+ children: lines
1353
+ };
1354
+ const lineNodes = [];
1355
+ const context = {
1356
+ ...transformerContext,
1357
+ structure,
1358
+ addClassToHast,
1359
+ get source() {
1360
+ return transformerContext.source;
1361
+ },
1362
+ get tokens() {
1363
+ return tokens;
1364
+ },
1365
+ get options() {
1366
+ return options;
1367
+ },
1368
+ get root() {
1369
+ return root;
1370
+ },
1371
+ get pre() {
1372
+ return preNode;
1373
+ },
1374
+ get code() {
1375
+ return codeNode;
1376
+ },
1377
+ get lines() {
1378
+ return lineNodes;
1379
+ }
1380
+ };
1381
+ tokens.forEach((line, idx) => {
1382
+ if (idx) {
1383
+ if (structure === "inline")
1384
+ root.children.push({ type: "element", tagName: "br", properties: {}, children: [] });
1385
+ else if (structure === "classic")
1386
+ lines.push({ type: "text", value: "\n" });
1387
+ }
1388
+ let lineNode = {
1389
+ type: "element",
1390
+ tagName: "span",
1391
+ properties: { class: "line" },
1392
+ children: []
1393
+ };
1394
+ let col = 0;
1395
+ for (const token of line) {
1396
+ let tokenNode = {
1397
+ type: "element",
1398
+ tagName: "span",
1399
+ properties: {
1400
+ ...token.htmlAttrs
1401
+ },
1402
+ children: [{ type: "text", value: token.content }]
1403
+ };
1404
+ const style = stringifyTokenStyle(token.htmlStyle || getTokenStyleObject(token));
1405
+ if (style)
1406
+ tokenNode.properties.style = style;
1407
+ for (const transformer of transformers)
1408
+ tokenNode = transformer?.span?.call(context, tokenNode, idx + 1, col, lineNode, token) || tokenNode;
1409
+ if (structure === "inline")
1410
+ root.children.push(tokenNode);
1411
+ else if (structure === "classic")
1412
+ lineNode.children.push(tokenNode);
1413
+ col += token.content.length;
1414
+ }
1415
+ if (structure === "classic") {
1416
+ for (const transformer of transformers)
1417
+ lineNode = transformer?.line?.call(context, lineNode, idx + 1) || lineNode;
1418
+ lineNodes.push(lineNode);
1419
+ lines.push(lineNode);
1420
+ } else if (structure === "inline") {
1421
+ lineNodes.push(lineNode);
1422
+ }
1423
+ });
1424
+ if (structure === "classic") {
1425
+ for (const transformer of transformers)
1426
+ codeNode = transformer?.code?.call(context, codeNode) || codeNode;
1427
+ preNode.children.push(codeNode);
1428
+ for (const transformer of transformers)
1429
+ preNode = transformer?.pre?.call(context, preNode) || preNode;
1430
+ root.children.push(preNode);
1431
+ } else if (structure === "inline") {
1432
+ const syntheticLines = [];
1433
+ let currentLine = {
1434
+ type: "element",
1435
+ tagName: "span",
1436
+ properties: { class: "line" },
1437
+ children: []
1438
+ };
1439
+ for (const child of root.children) {
1440
+ if (child.type === "element" && child.tagName === "br") {
1441
+ syntheticLines.push(currentLine);
1442
+ currentLine = {
1443
+ type: "element",
1444
+ tagName: "span",
1445
+ properties: { class: "line" },
1446
+ children: []
1447
+ };
1448
+ } else if (child.type === "element" || child.type === "text") {
1449
+ currentLine.children.push(child);
1450
+ }
1451
+ }
1452
+ syntheticLines.push(currentLine);
1453
+ const syntheticCode = {
1454
+ type: "element",
1455
+ tagName: "code",
1456
+ properties: {},
1457
+ children: syntheticLines
1458
+ };
1459
+ let transformedCode = syntheticCode;
1460
+ for (const transformer of transformers)
1461
+ transformedCode = transformer?.code?.call(context, transformedCode) || transformedCode;
1462
+ root.children = [];
1463
+ for (let i = 0; i < transformedCode.children.length; i++) {
1464
+ if (i > 0)
1465
+ root.children.push({ type: "element", tagName: "br", properties: {}, children: [] });
1466
+ const line = transformedCode.children[i];
1467
+ if (line.type === "element")
1468
+ root.children.push(...line.children);
1469
+ }
1470
+ }
1471
+ let result = root;
1472
+ for (const transformer of transformers)
1473
+ result = transformer?.root?.call(context, result) || result;
1474
+ if (grammarState)
1475
+ setLastGrammarStateToMap(result, grammarState);
1476
+ return result;
1477
+ }
1478
+ function mergeWhitespaceTokens(tokens) {
1479
+ return tokens.map((line) => {
1480
+ const newLine = [];
1481
+ let carryOnContent = "";
1482
+ let firstOffset;
1483
+ line.forEach((token, idx) => {
1484
+ const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
1485
+ const couldMerge = !isDecorated;
1486
+ if (couldMerge && token.content.match(/^\s+$/) && line[idx + 1]) {
1487
+ if (firstOffset === void 0)
1488
+ firstOffset = token.offset;
1489
+ carryOnContent += token.content;
1490
+ } else {
1491
+ if (carryOnContent) {
1492
+ if (couldMerge) {
1493
+ newLine.push({
1494
+ ...token,
1495
+ offset: firstOffset,
1496
+ content: carryOnContent + token.content
1497
+ });
1498
+ } else {
1499
+ newLine.push(
1500
+ {
1501
+ content: carryOnContent,
1502
+ offset: firstOffset
1503
+ },
1504
+ token
1505
+ );
1506
+ }
1507
+ firstOffset = void 0;
1508
+ carryOnContent = "";
1509
+ } else {
1510
+ newLine.push(token);
1511
+ }
1512
+ }
1513
+ });
1514
+ return newLine;
1515
+ });
1516
+ }
1517
+ function splitWhitespaceTokens(tokens) {
1518
+ return tokens.map((line) => {
1519
+ return line.flatMap((token) => {
1520
+ if (token.content.match(/^\s+$/))
1521
+ return token;
1522
+ const match = token.content.match(/^(\s*)(.*?)(\s*)$/);
1523
+ if (!match)
1524
+ return token;
1525
+ const [, leading, content, trailing] = match;
1526
+ if (!leading && !trailing)
1527
+ return token;
1528
+ const expanded = [{
1529
+ ...token,
1530
+ offset: token.offset + leading.length,
1531
+ content
1532
+ }];
1533
+ if (leading) {
1534
+ expanded.unshift({
1535
+ content: leading,
1536
+ offset: token.offset
1537
+ });
1538
+ }
1539
+ if (trailing) {
1540
+ expanded.push({
1541
+ content: trailing,
1542
+ offset: token.offset + leading.length + content.length
1543
+ });
1544
+ }
1545
+ return expanded;
1546
+ });
1547
+ });
1548
+ }
1549
+ function mergeAdjacentStyledTokens(tokens) {
1550
+ return tokens.map((line) => {
1551
+ const newLine = [];
1552
+ for (const token of line) {
1553
+ if (newLine.length === 0) {
1554
+ newLine.push({ ...token });
1555
+ continue;
1556
+ }
1557
+ const prevToken = newLine[newLine.length - 1];
1558
+ const prevStyle = stringifyTokenStyle(prevToken.htmlStyle || getTokenStyleObject(prevToken));
1559
+ const currentStyle = stringifyTokenStyle(token.htmlStyle || getTokenStyleObject(token));
1560
+ const isPrevDecorated = prevToken.fontStyle && (prevToken.fontStyle & FontStyle.Underline || prevToken.fontStyle & FontStyle.Strikethrough);
1561
+ const isDecorated = token.fontStyle && (token.fontStyle & FontStyle.Underline || token.fontStyle & FontStyle.Strikethrough);
1562
+ if (!isPrevDecorated && !isDecorated && prevStyle === currentStyle) {
1563
+ prevToken.content += token.content;
1564
+ } else {
1565
+ newLine.push({ ...token });
1566
+ }
1567
+ }
1568
+ return newLine;
1569
+ });
1570
+ }
1571
+
1572
+ const hastToHtml = toHtml;
1573
+ function codeToHtml(internal, code, options) {
1574
+ const context = {
1575
+ meta: {},
1576
+ options,
1577
+ codeToHast: (_code, _options) => codeToHast(internal, _code, _options),
1578
+ codeToTokens: (_code, _options) => codeToTokens(internal, _code, _options)
1579
+ };
1580
+ let result = hastToHtml(codeToHast(internal, code, options, context));
1581
+ for (const transformer of getTransformers(options))
1582
+ result = transformer.postprocess?.call(context, result, options) || result;
1583
+ return result;
1584
+ }
1585
+
1586
+ const VSCODE_FALLBACK_EDITOR_FG = { light: "#333333", dark: "#bbbbbb" };
1587
+ const VSCODE_FALLBACK_EDITOR_BG = { light: "#fffffe", dark: "#1e1e1e" };
1588
+ const RESOLVED_KEY = "__shiki_resolved";
1589
+ function normalizeTheme(rawTheme) {
1590
+ if (rawTheme?.[RESOLVED_KEY])
1591
+ return rawTheme;
1592
+ const theme = {
1593
+ ...rawTheme
1594
+ };
1595
+ if (theme.tokenColors && !theme.settings) {
1596
+ theme.settings = theme.tokenColors;
1597
+ delete theme.tokenColors;
1598
+ }
1599
+ theme.type ||= "dark";
1600
+ theme.colorReplacements = { ...theme.colorReplacements };
1601
+ theme.settings ||= [];
1602
+ let { bg, fg } = theme;
1603
+ if (!bg || !fg) {
1604
+ const globalSetting = theme.settings ? theme.settings.find((s) => !s.name && !s.scope) : void 0;
1605
+ if (globalSetting?.settings?.foreground)
1606
+ fg = globalSetting.settings.foreground;
1607
+ if (globalSetting?.settings?.background)
1608
+ bg = globalSetting.settings.background;
1609
+ if (!fg && theme?.colors?.["editor.foreground"])
1610
+ fg = theme.colors["editor.foreground"];
1611
+ if (!bg && theme?.colors?.["editor.background"])
1612
+ bg = theme.colors["editor.background"];
1613
+ if (!fg)
1614
+ fg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_FG.light : VSCODE_FALLBACK_EDITOR_FG.dark;
1615
+ if (!bg)
1616
+ bg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_BG.light : VSCODE_FALLBACK_EDITOR_BG.dark;
1617
+ theme.fg = fg;
1618
+ theme.bg = bg;
1619
+ }
1620
+ if (!(theme.settings[0] && theme.settings[0].settings && !theme.settings[0].scope)) {
1621
+ theme.settings.unshift({
1622
+ settings: {
1623
+ foreground: theme.fg,
1624
+ background: theme.bg
1625
+ }
1626
+ });
1627
+ }
1628
+ let replacementCount = 0;
1629
+ const replacementMap = /* @__PURE__ */ new Map();
1630
+ function getReplacementColor(value) {
1631
+ if (replacementMap.has(value))
1632
+ return replacementMap.get(value);
1633
+ replacementCount += 1;
1634
+ const hex = `#${replacementCount.toString(16).padStart(8, "0").toLowerCase()}`;
1635
+ if (theme.colorReplacements?.[`#${hex}`])
1636
+ return getReplacementColor(value);
1637
+ replacementMap.set(value, hex);
1638
+ return hex;
1639
+ }
1640
+ theme.settings = theme.settings.map((setting) => {
1641
+ const replaceFg = setting.settings?.foreground && !setting.settings.foreground.startsWith("#");
1642
+ const replaceBg = setting.settings?.background && !setting.settings.background.startsWith("#");
1643
+ if (!replaceFg && !replaceBg)
1644
+ return setting;
1645
+ const clone = {
1646
+ ...setting,
1647
+ settings: {
1648
+ ...setting.settings
1649
+ }
1650
+ };
1651
+ if (replaceFg) {
1652
+ const replacement = getReplacementColor(setting.settings.foreground);
1653
+ theme.colorReplacements[replacement] = setting.settings.foreground;
1654
+ clone.settings.foreground = replacement;
1655
+ }
1656
+ if (replaceBg) {
1657
+ const replacement = getReplacementColor(setting.settings.background);
1658
+ theme.colorReplacements[replacement] = setting.settings.background;
1659
+ clone.settings.background = replacement;
1660
+ }
1661
+ return clone;
1662
+ });
1663
+ for (const key of Object.keys(theme.colors || {})) {
1664
+ if (key === "editor.foreground" || key === "editor.background" || key.startsWith("terminal.ansi")) {
1665
+ if (!theme.colors[key]?.startsWith("#")) {
1666
+ const replacement = getReplacementColor(theme.colors[key]);
1667
+ theme.colorReplacements[replacement] = theme.colors[key];
1668
+ theme.colors[key] = replacement;
1669
+ }
1670
+ }
1671
+ }
1672
+ Object.defineProperty(theme, RESOLVED_KEY, {
1673
+ enumerable: false,
1674
+ writable: false,
1675
+ value: true
1676
+ });
1677
+ return theme;
1678
+ }
1679
+
1680
+ async function resolveLangs(langs) {
1681
+ return Array.from(new Set((await Promise.all(
1682
+ langs.filter((l) => !isSpecialLang(l)).map(async (lang) => await normalizeGetter(lang).then((r) => Array.isArray(r) ? r : [r]))
1683
+ )).flat()));
1684
+ }
1685
+ async function resolveThemes(themes) {
1686
+ const resolved = await Promise.all(
1687
+ themes.map(
1688
+ async (theme) => isSpecialTheme(theme) ? null : normalizeTheme(await normalizeGetter(theme))
1689
+ )
1690
+ );
1691
+ return resolved.filter((i) => !!i);
1692
+ }
1693
+
1694
+ let _emitDeprecation = 3;
1695
+ let _emitError = false;
1696
+ function enableDeprecationWarnings(emitDeprecation = true, emitError = false) {
1697
+ _emitDeprecation = emitDeprecation;
1698
+ _emitError = emitError;
1699
+ }
1700
+ function warnDeprecated(message, version = 3) {
1701
+ if (!_emitDeprecation)
1702
+ return;
1703
+ if (typeof _emitDeprecation === "number" && version > _emitDeprecation)
1704
+ return;
1705
+ if (_emitError) {
1706
+ throw new Error(`[SHIKI DEPRECATE]: ${message}`);
1707
+ } else {
1708
+ console.trace(`[SHIKI DEPRECATE]: ${message}`);
1709
+ }
1710
+ }
1711
+
1712
+ class ShikiError extends Error {
1713
+ constructor(message) {
1714
+ super(message);
1715
+ this.name = "ShikiError";
1716
+ }
1717
+ }
1718
+
1719
+ function resolveLangAlias(name, alias) {
1720
+ if (!alias)
1721
+ return name;
1722
+ if (alias[name]) {
1723
+ const resolved = /* @__PURE__ */ new Set([name]);
1724
+ while (alias[name]) {
1725
+ name = alias[name];
1726
+ if (resolved.has(name))
1727
+ throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
1728
+ resolved.add(name);
1729
+ }
1730
+ }
1731
+ return name;
1732
+ }
1733
+
1734
+ class Registry extends Registry$1 {
1735
+ constructor(_resolver, _themes, _langs, _alias = {}) {
1736
+ super(_resolver);
1737
+ this._resolver = _resolver;
1738
+ this._themes = _themes;
1739
+ this._langs = _langs;
1740
+ this._alias = _alias;
1741
+ this._themes.map((t) => this.loadTheme(t));
1742
+ this.loadLanguages(this._langs);
1743
+ }
1744
+ _resolvedThemes = /* @__PURE__ */ new Map();
1745
+ _resolvedGrammars = /* @__PURE__ */ new Map();
1746
+ _langMap = /* @__PURE__ */ new Map();
1747
+ _langGraph = /* @__PURE__ */ new Map();
1748
+ _textmateThemeCache = /* @__PURE__ */ new WeakMap();
1749
+ _loadedThemesCache = null;
1750
+ _loadedLanguagesCache = null;
1751
+ getTheme(theme) {
1752
+ if (typeof theme === "string")
1753
+ return this._resolvedThemes.get(theme);
1754
+ else
1755
+ return this.loadTheme(theme);
1756
+ }
1757
+ loadTheme(theme) {
1758
+ const _theme = normalizeTheme(theme);
1759
+ if (_theme.name) {
1760
+ this._resolvedThemes.set(_theme.name, _theme);
1761
+ this._loadedThemesCache = null;
1762
+ }
1763
+ return _theme;
1764
+ }
1765
+ getLoadedThemes() {
1766
+ if (!this._loadedThemesCache)
1767
+ this._loadedThemesCache = [...this._resolvedThemes.keys()];
1768
+ return this._loadedThemesCache;
1769
+ }
1770
+ // Override and re-implement this method to cache the textmate themes as `TextMateTheme.createFromRawTheme`
1771
+ // is expensive. Themes can switch often especially for dual-theme support.
1772
+ //
1773
+ // The parent class also accepts `colorMap` as the second parameter, but since we don't use that,
1774
+ // we omit here so it's easier to cache the themes.
1775
+ setTheme(theme) {
1776
+ let textmateTheme = this._textmateThemeCache.get(theme);
1777
+ if (!textmateTheme) {
1778
+ textmateTheme = Theme.createFromRawTheme(theme);
1779
+ this._textmateThemeCache.set(theme, textmateTheme);
1780
+ }
1781
+ this._syncRegistry.setTheme(textmateTheme);
1782
+ }
1783
+ getGrammar(name) {
1784
+ name = resolveLangAlias(name, this._alias);
1785
+ return this._resolvedGrammars.get(name);
1786
+ }
1787
+ loadLanguage(lang) {
1788
+ if (this.getGrammar(lang.name))
1789
+ return;
1790
+ const embeddedLazilyBy = new Set(
1791
+ [...this._langMap.values()].filter((i) => i.embeddedLangsLazy?.includes(lang.name))
1792
+ );
1793
+ this._resolver.addLanguage(lang);
1794
+ const grammarConfig = {
1795
+ balancedBracketSelectors: lang.balancedBracketSelectors || ["*"],
1796
+ unbalancedBracketSelectors: lang.unbalancedBracketSelectors || []
1797
+ };
1798
+ this._syncRegistry._rawGrammars.set(lang.scopeName, lang);
1799
+ const g = this.loadGrammarWithConfiguration(lang.scopeName, 1, grammarConfig);
1800
+ g.name = lang.name;
1801
+ this._resolvedGrammars.set(lang.name, g);
1802
+ if (lang.aliases) {
1803
+ lang.aliases.forEach((alias) => {
1804
+ this._alias[alias] = lang.name;
1805
+ });
1806
+ }
1807
+ this._loadedLanguagesCache = null;
1808
+ if (embeddedLazilyBy.size) {
1809
+ for (const e of embeddedLazilyBy) {
1810
+ this._resolvedGrammars.delete(e.name);
1811
+ this._loadedLanguagesCache = null;
1812
+ this._syncRegistry?._injectionGrammars?.delete(e.scopeName);
1813
+ this._syncRegistry?._grammars?.delete(e.scopeName);
1814
+ this.loadLanguage(this._langMap.get(e.name));
1815
+ }
1816
+ }
1817
+ }
1818
+ dispose() {
1819
+ super.dispose();
1820
+ this._resolvedThemes.clear();
1821
+ this._resolvedGrammars.clear();
1822
+ this._langMap.clear();
1823
+ this._langGraph.clear();
1824
+ this._loadedThemesCache = null;
1825
+ }
1826
+ loadLanguages(langs) {
1827
+ for (const lang of langs)
1828
+ this.resolveEmbeddedLanguages(lang);
1829
+ const langsGraphArray = Array.from(this._langGraph.entries());
1830
+ const missingLangs = langsGraphArray.filter(([_, lang]) => !lang);
1831
+ if (missingLangs.length) {
1832
+ const dependents = langsGraphArray.filter(([_, lang]) => {
1833
+ if (!lang)
1834
+ return false;
1835
+ const embedded = lang.embeddedLanguages || lang.embeddedLangs;
1836
+ return embedded?.some((l) => missingLangs.map(([name]) => name).includes(l));
1837
+ }).filter((lang) => !missingLangs.includes(lang));
1838
+ throw new ShikiError(`Missing languages ${missingLangs.map(([name]) => `\`${name}\``).join(", ")}, required by ${dependents.map(([name]) => `\`${name}\``).join(", ")}`);
1839
+ }
1840
+ for (const [_, lang] of langsGraphArray)
1841
+ this._resolver.addLanguage(lang);
1842
+ for (const [_, lang] of langsGraphArray)
1843
+ this.loadLanguage(lang);
1844
+ }
1845
+ getLoadedLanguages() {
1846
+ if (!this._loadedLanguagesCache) {
1847
+ this._loadedLanguagesCache = [
1848
+ .../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])
1849
+ ];
1850
+ }
1851
+ return this._loadedLanguagesCache;
1852
+ }
1853
+ resolveEmbeddedLanguages(lang) {
1854
+ this._langMap.set(lang.name, lang);
1855
+ this._langGraph.set(lang.name, lang);
1856
+ const embedded = lang.embeddedLanguages ?? lang.embeddedLangs;
1857
+ if (embedded) {
1858
+ for (const embeddedLang of embedded)
1859
+ this._langGraph.set(embeddedLang, this._langMap.get(embeddedLang));
1860
+ }
1861
+ }
1862
+ }
1863
+
1864
+ class Resolver {
1865
+ _langs = /* @__PURE__ */ new Map();
1866
+ _scopeToLang = /* @__PURE__ */ new Map();
1867
+ _injections = /* @__PURE__ */ new Map();
1868
+ _onigLib;
1869
+ constructor(engine, langs) {
1870
+ this._onigLib = {
1871
+ createOnigScanner: (patterns) => engine.createScanner(patterns),
1872
+ createOnigString: (s) => engine.createString(s)
1873
+ };
1874
+ langs.forEach((i) => this.addLanguage(i));
1875
+ }
1876
+ get onigLib() {
1877
+ return this._onigLib;
1878
+ }
1879
+ getLangRegistration(langIdOrAlias) {
1880
+ return this._langs.get(langIdOrAlias);
1881
+ }
1882
+ loadGrammar(scopeName) {
1883
+ return this._scopeToLang.get(scopeName);
1884
+ }
1885
+ addLanguage(l) {
1886
+ this._langs.set(l.name, l);
1887
+ if (l.aliases) {
1888
+ l.aliases.forEach((a) => {
1889
+ this._langs.set(a, l);
1890
+ });
1891
+ }
1892
+ this._scopeToLang.set(l.scopeName, l);
1893
+ if (l.injectTo) {
1894
+ l.injectTo.forEach((i) => {
1895
+ if (!this._injections.get(i))
1896
+ this._injections.set(i, []);
1897
+ this._injections.get(i).push(l.scopeName);
1898
+ });
1899
+ }
1900
+ }
1901
+ getInjections(scopeName) {
1902
+ const scopeParts = scopeName.split(".");
1903
+ let injections = [];
1904
+ for (let i = 1; i <= scopeParts.length; i++) {
1905
+ const subScopeName = scopeParts.slice(0, i).join(".");
1906
+ injections = [...injections, ...this._injections.get(subScopeName) || []];
1907
+ }
1908
+ return injections;
1909
+ }
1910
+ }
1911
+
1912
+ let instancesCount = 0;
1913
+ function createShikiInternalSync(options) {
1914
+ instancesCount += 1;
1915
+ if (options.warnings !== false && instancesCount >= 10 && instancesCount % 10 === 0)
1916
+ console.warn(`[Shiki] ${instancesCount} 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.`);
1917
+ let isDisposed = false;
1918
+ if (!options.engine)
1919
+ throw new ShikiError("`engine` option is required for synchronous mode");
1920
+ const langs = (options.langs || []).flat(1);
1921
+ const themes = (options.themes || []).flat(1).map(normalizeTheme);
1922
+ const resolver = new Resolver(options.engine, langs);
1923
+ const _registry = new Registry(resolver, themes, langs, options.langAlias);
1924
+ let _lastTheme;
1925
+ function resolveLangAlias$1(name) {
1926
+ return resolveLangAlias(name, options.langAlias);
1927
+ }
1928
+ function getLanguage(name) {
1929
+ ensureNotDisposed();
1930
+ const _lang = _registry.getGrammar(typeof name === "string" ? name : name.name);
1931
+ if (!_lang)
1932
+ throw new ShikiError(`Language \`${name}\` not found, you may need to load it first`);
1933
+ return _lang;
1934
+ }
1935
+ function getTheme(name) {
1936
+ if (name === "none")
1937
+ return { bg: "", fg: "", name: "none", settings: [], type: "dark" };
1938
+ ensureNotDisposed();
1939
+ const _theme = _registry.getTheme(name);
1940
+ if (!_theme)
1941
+ throw new ShikiError(`Theme \`${name}\` not found, you may need to load it first`);
1942
+ return _theme;
1943
+ }
1944
+ function setTheme(name) {
1945
+ ensureNotDisposed();
1946
+ const theme = getTheme(name);
1947
+ if (_lastTheme !== name) {
1948
+ _registry.setTheme(theme);
1949
+ _lastTheme = name;
1950
+ }
1951
+ const colorMap = _registry.getColorMap();
1952
+ return {
1953
+ theme,
1954
+ colorMap
1955
+ };
1956
+ }
1957
+ function getLoadedThemes() {
1958
+ ensureNotDisposed();
1959
+ return _registry.getLoadedThemes();
1960
+ }
1961
+ function getLoadedLanguages() {
1962
+ ensureNotDisposed();
1963
+ return _registry.getLoadedLanguages();
1964
+ }
1965
+ function loadLanguageSync(...langs2) {
1966
+ ensureNotDisposed();
1967
+ _registry.loadLanguages(langs2.flat(1));
1968
+ }
1969
+ async function loadLanguage(...langs2) {
1970
+ return loadLanguageSync(await resolveLangs(langs2));
1971
+ }
1972
+ function loadThemeSync(...themes2) {
1973
+ ensureNotDisposed();
1974
+ for (const theme of themes2.flat(1)) {
1975
+ _registry.loadTheme(theme);
1976
+ }
1977
+ }
1978
+ async function loadTheme(...themes2) {
1979
+ ensureNotDisposed();
1980
+ return loadThemeSync(await resolveThemes(themes2));
1981
+ }
1982
+ function ensureNotDisposed() {
1983
+ if (isDisposed)
1984
+ throw new ShikiError("Shiki instance has been disposed");
1985
+ }
1986
+ function dispose() {
1987
+ if (isDisposed)
1988
+ return;
1989
+ isDisposed = true;
1990
+ _registry.dispose();
1991
+ instancesCount -= 1;
1992
+ }
1993
+ return {
1994
+ setTheme,
1995
+ getTheme,
1996
+ getLanguage,
1997
+ getLoadedThemes,
1998
+ getLoadedLanguages,
1999
+ resolveLangAlias: resolveLangAlias$1,
2000
+ loadLanguage,
2001
+ loadLanguageSync,
2002
+ loadTheme,
2003
+ loadThemeSync,
2004
+ dispose,
2005
+ [Symbol.dispose]: dispose
2006
+ };
2007
+ }
2008
+
2009
+ async function createShikiInternal(options) {
2010
+ if (!options.engine) {
2011
+ warnDeprecated("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
2012
+ }
2013
+ const [
2014
+ themes,
2015
+ langs,
2016
+ engine
2017
+ ] = await Promise.all([
2018
+ resolveThemes(options.themes || []),
2019
+ resolveLangs(options.langs || []),
2020
+ options.engine
2021
+ ]);
2022
+ return createShikiInternalSync({
2023
+ ...options,
2024
+ themes,
2025
+ langs,
2026
+ engine
2027
+ });
2028
+ }
2029
+
2030
+ async function createHighlighterCore(options) {
2031
+ const internal = await createShikiInternal(options);
2032
+ return {
2033
+ getLastGrammarState: (...args) => getLastGrammarState(internal, ...args),
2034
+ codeToTokensBase: (code, options2) => codeToTokensBase(internal, code, options2),
2035
+ codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes(internal, code, options2),
2036
+ codeToTokens: (code, options2) => codeToTokens(internal, code, options2),
2037
+ codeToHast: (code, options2) => codeToHast(internal, code, options2),
2038
+ codeToHtml: (code, options2) => codeToHtml(internal, code, options2),
2039
+ getBundledLanguages: () => ({}),
2040
+ getBundledThemes: () => ({}),
2041
+ ...internal,
2042
+ getInternalContext: () => internal
2043
+ };
2044
+ }
2045
+ function createHighlighterCoreSync(options) {
2046
+ const internal = createShikiInternalSync(options);
2047
+ return {
2048
+ getLastGrammarState: (...args) => getLastGrammarState(internal, ...args),
2049
+ codeToTokensBase: (code, options2) => codeToTokensBase(internal, code, options2),
2050
+ codeToTokensWithThemes: (code, options2) => codeToTokensWithThemes(internal, code, options2),
2051
+ codeToTokens: (code, options2) => codeToTokens(internal, code, options2),
2052
+ codeToHast: (code, options2) => codeToHast(internal, code, options2),
2053
+ codeToHtml: (code, options2) => codeToHtml(internal, code, options2),
2054
+ getBundledLanguages: () => ({}),
2055
+ getBundledThemes: () => ({}),
2056
+ ...internal,
2057
+ getInternalContext: () => internal
2058
+ };
2059
+ }
2060
+ function makeSingletonHighlighterCore(createHighlighter) {
2061
+ let _shiki;
2062
+ async function getSingletonHighlighterCore2(options) {
2063
+ if (!_shiki) {
2064
+ _shiki = createHighlighter({
2065
+ ...options,
2066
+ themes: options.themes || [],
2067
+ langs: options.langs || []
2068
+ });
2069
+ return _shiki;
2070
+ } else {
2071
+ const s = await _shiki;
2072
+ await Promise.all([
2073
+ s.loadTheme(...options.themes || []),
2074
+ s.loadLanguage(...options.langs || [])
2075
+ ]);
2076
+ return s;
2077
+ }
2078
+ }
2079
+ return getSingletonHighlighterCore2;
2080
+ }
2081
+ const getSingletonHighlighterCore = /* @__PURE__ */ makeSingletonHighlighterCore(createHighlighterCore);
2082
+
2083
+ function createBundledHighlighter(options) {
2084
+ const bundledLanguages = options.langs;
2085
+ const bundledThemes = options.themes;
2086
+ const engine = options.engine;
2087
+ async function createHighlighter(options2) {
2088
+ function resolveLang(lang) {
2089
+ if (typeof lang === "string") {
2090
+ lang = options2.langAlias?.[lang] || lang;
2091
+ if (isSpecialLang(lang))
2092
+ return [];
2093
+ const bundle = bundledLanguages[lang];
2094
+ if (!bundle)
2095
+ throw new ShikiError$1(`Language \`${lang}\` is not included in this bundle. You may want to load it from external source.`);
2096
+ return bundle;
2097
+ }
2098
+ return lang;
2099
+ }
2100
+ function resolveTheme(theme) {
2101
+ if (isSpecialTheme(theme))
2102
+ return "none";
2103
+ if (typeof theme === "string") {
2104
+ const bundle = bundledThemes[theme];
2105
+ if (!bundle)
2106
+ throw new ShikiError$1(`Theme \`${theme}\` is not included in this bundle. You may want to load it from external source.`);
2107
+ return bundle;
2108
+ }
2109
+ return theme;
2110
+ }
2111
+ const _themes = (options2.themes ?? []).map((i) => resolveTheme(i));
2112
+ const langs = (options2.langs ?? []).map((i) => resolveLang(i));
2113
+ const core = await createHighlighterCore({
2114
+ engine: options2.engine ?? engine(),
2115
+ ...options2,
2116
+ themes: _themes,
2117
+ langs
2118
+ });
2119
+ return {
2120
+ ...core,
2121
+ loadLanguage(...langs2) {
2122
+ return core.loadLanguage(...langs2.map(resolveLang));
2123
+ },
2124
+ loadTheme(...themes) {
2125
+ return core.loadTheme(...themes.map(resolveTheme));
2126
+ },
2127
+ getBundledLanguages() {
2128
+ return bundledLanguages;
2129
+ },
2130
+ getBundledThemes() {
2131
+ return bundledThemes;
2132
+ }
2133
+ };
2134
+ }
2135
+ return createHighlighter;
2136
+ }
2137
+ function makeSingletonHighlighter(createHighlighter) {
2138
+ let _shiki;
2139
+ async function getSingletonHighlighter(options = {}) {
2140
+ if (!_shiki) {
2141
+ _shiki = createHighlighter({
2142
+ ...options,
2143
+ themes: [],
2144
+ langs: []
2145
+ });
2146
+ const s = await _shiki;
2147
+ await Promise.all([
2148
+ s.loadTheme(...options.themes || []),
2149
+ s.loadLanguage(...options.langs || [])
2150
+ ]);
2151
+ return s;
2152
+ } else {
2153
+ const s = await _shiki;
2154
+ await Promise.all([
2155
+ s.loadTheme(...options.themes || []),
2156
+ s.loadLanguage(...options.langs || [])
2157
+ ]);
2158
+ return s;
2159
+ }
2160
+ }
2161
+ return getSingletonHighlighter;
2162
+ }
2163
+ function createSingletonShorthands(createHighlighter, config) {
2164
+ const getSingletonHighlighter = makeSingletonHighlighter(createHighlighter);
2165
+ async function get(code, options) {
2166
+ const shiki = await getSingletonHighlighter({
2167
+ langs: [options.lang],
2168
+ themes: "theme" in options ? [options.theme] : Object.values(options.themes)
2169
+ });
2170
+ const langs = await config?.guessEmbeddedLanguages?.(code, options.lang, shiki);
2171
+ if (langs) {
2172
+ await shiki.loadLanguage(...langs);
2173
+ }
2174
+ return shiki;
2175
+ }
2176
+ return {
2177
+ getSingletonHighlighter(options) {
2178
+ return getSingletonHighlighter(options);
2179
+ },
2180
+ async codeToHtml(code, options) {
2181
+ const shiki = await get(code, options);
2182
+ return shiki.codeToHtml(code, options);
2183
+ },
2184
+ async codeToHast(code, options) {
2185
+ const shiki = await get(code, options);
2186
+ return shiki.codeToHast(code, options);
2187
+ },
2188
+ async codeToTokens(code, options) {
2189
+ const shiki = await get(code, options);
2190
+ return shiki.codeToTokens(code, options);
2191
+ },
2192
+ async codeToTokensBase(code, options) {
2193
+ const shiki = await get(code, options);
2194
+ return shiki.codeToTokensBase(code, options);
2195
+ },
2196
+ async codeToTokensWithThemes(code, options) {
2197
+ const shiki = await get(code, options);
2198
+ return shiki.codeToTokensWithThemes(code, options);
2199
+ },
2200
+ async getLastGrammarState(code, options) {
2201
+ const shiki = await getSingletonHighlighter({
2202
+ langs: [options.lang],
2203
+ themes: [options.theme]
2204
+ });
2205
+ return shiki.getLastGrammarState(code, options);
2206
+ }
2207
+ };
2208
+ }
2209
+ const createdBundledHighlighter = createBundledHighlighter;
2210
+
2211
+ function createCssVariablesTheme(options = {}) {
2212
+ const {
2213
+ name = "css-variables",
2214
+ variablePrefix = "--shiki-",
2215
+ fontStyle = true
2216
+ } = options;
2217
+ const variable = (name2) => {
2218
+ if (options.variableDefaults?.[name2])
2219
+ return `var(${variablePrefix}${name2}, ${options.variableDefaults[name2]})`;
2220
+ return `var(${variablePrefix}${name2})`;
2221
+ };
2222
+ const theme = {
2223
+ name,
2224
+ type: "dark",
2225
+ colors: {
2226
+ "editor.foreground": variable("foreground"),
2227
+ "editor.background": variable("background"),
2228
+ "terminal.ansiBlack": variable("ansi-black"),
2229
+ "terminal.ansiRed": variable("ansi-red"),
2230
+ "terminal.ansiGreen": variable("ansi-green"),
2231
+ "terminal.ansiYellow": variable("ansi-yellow"),
2232
+ "terminal.ansiBlue": variable("ansi-blue"),
2233
+ "terminal.ansiMagenta": variable("ansi-magenta"),
2234
+ "terminal.ansiCyan": variable("ansi-cyan"),
2235
+ "terminal.ansiWhite": variable("ansi-white"),
2236
+ "terminal.ansiBrightBlack": variable("ansi-bright-black"),
2237
+ "terminal.ansiBrightRed": variable("ansi-bright-red"),
2238
+ "terminal.ansiBrightGreen": variable("ansi-bright-green"),
2239
+ "terminal.ansiBrightYellow": variable("ansi-bright-yellow"),
2240
+ "terminal.ansiBrightBlue": variable("ansi-bright-blue"),
2241
+ "terminal.ansiBrightMagenta": variable("ansi-bright-magenta"),
2242
+ "terminal.ansiBrightCyan": variable("ansi-bright-cyan"),
2243
+ "terminal.ansiBrightWhite": variable("ansi-bright-white")
2244
+ },
2245
+ tokenColors: [
2246
+ {
2247
+ scope: [
2248
+ "keyword.operator.accessor",
2249
+ "meta.group.braces.round.function.arguments",
2250
+ "meta.template.expression",
2251
+ "markup.fenced_code meta.embedded.block"
2252
+ ],
2253
+ settings: {
2254
+ foreground: variable("foreground")
2255
+ }
2256
+ },
2257
+ {
2258
+ scope: "emphasis",
2259
+ settings: {
2260
+ fontStyle: "italic"
2261
+ }
2262
+ },
2263
+ {
2264
+ scope: ["strong", "markup.heading.markdown", "markup.bold.markdown"],
2265
+ settings: {
2266
+ fontStyle: "bold"
2267
+ }
2268
+ },
2269
+ {
2270
+ scope: ["markup.italic.markdown"],
2271
+ settings: {
2272
+ fontStyle: "italic"
2273
+ }
2274
+ },
2275
+ {
2276
+ scope: "meta.link.inline.markdown",
2277
+ settings: {
2278
+ fontStyle: "underline",
2279
+ foreground: variable("token-link")
2280
+ }
2281
+ },
2282
+ {
2283
+ scope: ["string", "markup.fenced_code", "markup.inline"],
2284
+ settings: {
2285
+ foreground: variable("token-string")
2286
+ }
2287
+ },
2288
+ {
2289
+ scope: ["comment", "string.quoted.docstring.multi"],
2290
+ settings: {
2291
+ foreground: variable("token-comment")
2292
+ }
2293
+ },
2294
+ {
2295
+ scope: [
2296
+ "constant.numeric",
2297
+ "constant.language",
2298
+ "constant.other.placeholder",
2299
+ "constant.character.format.placeholder",
2300
+ "variable.language.this",
2301
+ "variable.other.object",
2302
+ "variable.other.class",
2303
+ "variable.other.constant",
2304
+ "meta.property-name",
2305
+ "meta.property-value",
2306
+ "support"
2307
+ ],
2308
+ settings: {
2309
+ foreground: variable("token-constant")
2310
+ }
2311
+ },
2312
+ {
2313
+ scope: [
2314
+ "keyword",
2315
+ "storage.modifier",
2316
+ "storage.type",
2317
+ "storage.control.clojure",
2318
+ "entity.name.function.clojure",
2319
+ "entity.name.tag.yaml",
2320
+ "support.function.node",
2321
+ "support.type.property-name.json",
2322
+ "punctuation.separator.key-value",
2323
+ "punctuation.definition.template-expression"
2324
+ ],
2325
+ settings: {
2326
+ foreground: variable("token-keyword")
2327
+ }
2328
+ },
2329
+ {
2330
+ scope: "variable.parameter.function",
2331
+ settings: {
2332
+ foreground: variable("token-parameter")
2333
+ }
2334
+ },
2335
+ {
2336
+ scope: [
2337
+ "support.function",
2338
+ "entity.name.type",
2339
+ "entity.other.inherited-class",
2340
+ "meta.function-call",
2341
+ "meta.instance.constructor",
2342
+ "entity.other.attribute-name",
2343
+ "entity.name.function",
2344
+ "constant.keyword.clojure"
2345
+ ],
2346
+ settings: {
2347
+ foreground: variable("token-function")
2348
+ }
2349
+ },
2350
+ {
2351
+ scope: [
2352
+ "entity.name.tag",
2353
+ "string.quoted",
2354
+ "string.regexp",
2355
+ "string.interpolated",
2356
+ "string.template",
2357
+ "string.unquoted.plain.out.yaml",
2358
+ "keyword.other.template"
2359
+ ],
2360
+ settings: {
2361
+ foreground: variable("token-string-expression")
2362
+ }
2363
+ },
2364
+ {
2365
+ scope: [
2366
+ "punctuation.definition.arguments",
2367
+ "punctuation.definition.dict",
2368
+ "punctuation.separator",
2369
+ "meta.function-call.arguments"
2370
+ ],
2371
+ settings: {
2372
+ foreground: variable("token-punctuation")
2373
+ }
2374
+ },
2375
+ {
2376
+ // [Custom] Markdown links
2377
+ scope: [
2378
+ "markup.underline.link",
2379
+ "punctuation.definition.metadata.markdown"
2380
+ ],
2381
+ settings: {
2382
+ foreground: variable("token-link")
2383
+ }
2384
+ },
2385
+ {
2386
+ // [Custom] Markdown list
2387
+ scope: ["beginning.punctuation.definition.list.markdown"],
2388
+ settings: {
2389
+ foreground: variable("token-string")
2390
+ }
2391
+ },
2392
+ {
2393
+ // [Custom] Markdown punctuation definition brackets
2394
+ scope: [
2395
+ "punctuation.definition.string.begin.markdown",
2396
+ "punctuation.definition.string.end.markdown",
2397
+ "string.other.link.title.markdown",
2398
+ "string.other.link.description.markdown"
2399
+ ],
2400
+ settings: {
2401
+ foreground: variable("token-keyword")
2402
+ }
2403
+ },
2404
+ {
2405
+ // [Custom] Diff
2406
+ scope: [
2407
+ "markup.inserted",
2408
+ "meta.diff.header.to-file",
2409
+ "punctuation.definition.inserted"
2410
+ ],
2411
+ settings: {
2412
+ foreground: variable("token-inserted")
2413
+ }
2414
+ },
2415
+ {
2416
+ scope: [
2417
+ "markup.deleted",
2418
+ "meta.diff.header.from-file",
2419
+ "punctuation.definition.deleted"
2420
+ ],
2421
+ settings: {
2422
+ foreground: variable("token-deleted")
2423
+ }
2424
+ },
2425
+ {
2426
+ scope: [
2427
+ "markup.changed",
2428
+ "punctuation.definition.changed"
2429
+ ],
2430
+ settings: {
2431
+ foreground: variable("token-changed")
2432
+ }
2433
+ }
2434
+ ]
2435
+ };
2436
+ if (!fontStyle) {
2437
+ theme.tokenColors = theme.tokenColors?.map((tokenColor) => {
2438
+ if (tokenColor.settings?.fontStyle)
2439
+ delete tokenColor.settings.fontStyle;
2440
+ return tokenColor;
2441
+ });
2442
+ }
2443
+ return theme;
2444
+ }
2445
+
2446
+ export { addClassToHast, applyColorReplacements, codeToHast, codeToHtml, codeToTokens, codeToTokensBase, codeToTokensWithThemes, createBundledHighlighter, createCssVariablesTheme, createHighlighterCore, createHighlighterCoreSync, createPositionConverter, createShikiInternal, createShikiInternalSync, createSingletonShorthands, createdBundledHighlighter, enableDeprecationWarnings, flatTokenVariants, getSingletonHighlighterCore, getTokenStyleObject, guessEmbeddedLanguages, hastToHtml, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, makeSingletonHighlighter, makeSingletonHighlighterCore, normalizeGetter, normalizeTheme, resolveColorReplacements, splitLines, splitToken, splitTokens, stringifyTokenStyle, toArray, tokenizeAnsiWithTheme, tokenizeWithTheme, tokensToHast, transformerDecorations, warnDeprecated };