@qwik.dev/devtools 0.2.7 → 0.3.0-beta.3

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 (645) hide show
  1. package/LICENSE +2 -1
  2. package/dist/kit/index.d.mts +568 -0
  3. package/dist/kit/index.mjs +323 -0
  4. package/dist/plugin/codegen.d.mts +13 -0
  5. package/dist/plugin/codegen.mjs +2 -0
  6. package/dist/plugin/create-hook-runtime-ChnIePeB.mjs +739 -0
  7. package/dist/plugin/index.d.mts +9 -4
  8. package/dist/plugin/index.mjs +1562 -9554
  9. package/dist/ui/_virtual/_commonjsHelpers.qwik.mjs +6 -0
  10. package/dist/ui/_virtual/browser.qwik.mjs +7 -0
  11. package/dist/ui/_virtual/browser.qwik2.mjs +4 -0
  12. package/dist/ui/bundle-graph-eeik1E53.json +1 -0
  13. package/dist/ui/entry.extension.qwik.mjs +16 -0
  14. package/dist/ui/index.qwik.mjs +6 -2
  15. package/dist/ui/lib-types/kit/src/overlay-paths.d.ts +2 -0
  16. package/dist/ui/lib-types/ui/src/components/IconButton/IconButton.d.ts +10 -0
  17. package/dist/ui/lib-types/ui/src/components/Icons/Icons.d.ts +15 -0
  18. package/dist/ui/lib-types/ui/src/components/InfoBanner/InfoBanner.d.ts +7 -0
  19. package/dist/ui/lib-types/ui/src/components/ThemeToggle/QwikThemeToggle.d.ts +1 -1
  20. package/dist/ui/lib-types/ui/src/components/Tree/Tree.d.ts +6 -2
  21. package/dist/ui/lib-types/ui/src/components/Tree/type.d.ts +2 -3
  22. package/dist/ui/lib-types/ui/src/devtools/CommandPalette.d.ts +10 -0
  23. package/dist/ui/lib-types/ui/src/devtools/CustomizeTabsPanel.d.ts +11 -0
  24. package/dist/ui/lib-types/ui/src/devtools/DevtoolsContent.d.ts +6 -0
  25. package/dist/ui/lib-types/ui/src/devtools/DevtoolsSidebar.d.ts +6 -0
  26. package/dist/ui/lib-types/ui/src/devtools/QwikDevtools.d.ts +6 -0
  27. package/dist/ui/lib-types/ui/src/devtools/QwikDevtoolsExtension.d.ts +13 -0
  28. package/dist/ui/lib-types/ui/src/devtools/command-palette.d.ts +52 -0
  29. package/dist/ui/lib-types/ui/src/devtools/data-provider.d.ts +12 -0
  30. package/dist/ui/lib-types/ui/src/devtools/page-data-source.d.ts +9 -0
  31. package/dist/ui/lib-types/ui/src/devtools/rpc.d.ts +9 -0
  32. package/dist/ui/lib-types/ui/src/devtools/sidebar-tabs.d.ts +27 -0
  33. package/dist/ui/lib-types/ui/src/devtools/state.d.ts +39 -0
  34. package/dist/ui/lib-types/ui/src/devtools/tabs.d.ts +10 -0
  35. package/dist/ui/lib-types/ui/src/devtools.d.ts +1 -2
  36. package/dist/ui/lib-types/ui/src/entry.extension.d.ts +15 -0
  37. package/dist/ui/lib-types/ui/src/features/BuildAnalysis/BuildAnalysis.d.ts +2 -0
  38. package/dist/ui/lib-types/ui/src/features/CodeBreak/CodeBreak.d.ts +1 -0
  39. package/dist/ui/lib-types/ui/src/features/HookTree/HookTree.d.ts +4 -0
  40. package/dist/ui/lib-types/ui/src/features/HookTree/hookTreeHelpers.d.ts +14 -0
  41. package/dist/ui/lib-types/ui/src/features/Packages/Packages.d.ts +1 -1
  42. package/dist/ui/lib-types/ui/src/features/Packages/components/DependencyCard/DependencyCard.d.ts +5 -2
  43. package/dist/ui/lib-types/ui/src/features/Packages/components/DependencyOperationFeedback/DependencyOperationFeedback.d.ts +14 -0
  44. package/dist/ui/lib-types/ui/src/features/Packages/components/DependencyOperationFeedback/index.d.ts +1 -0
  45. package/dist/ui/lib-types/ui/src/features/Packages/components/DependencyToolbar/DependencyToolbar.d.ts +13 -0
  46. package/dist/ui/lib-types/ui/src/features/Packages/components/DependencyToolbar/index.d.ts +1 -0
  47. package/dist/ui/lib-types/ui/src/features/Packages/components/InstalledDependencyList/InstalledDependencyList.d.ts +12 -0
  48. package/dist/ui/lib-types/ui/src/features/Packages/components/InstalledDependencyList/index.d.ts +1 -0
  49. package/dist/ui/lib-types/ui/src/features/Packages/components/PackageSearchResults/PackageSearchResults.d.ts +15 -0
  50. package/dist/ui/lib-types/ui/src/features/Packages/components/PackageSearchResults/index.d.ts +1 -0
  51. package/dist/ui/lib-types/ui/src/features/Packages/components/SearchResultCard/SearchResultCard.d.ts +11 -0
  52. package/dist/ui/lib-types/ui/src/features/Packages/components/SearchResultCard/index.d.ts +1 -0
  53. package/dist/ui/lib-types/ui/src/features/Packages/package-utils.d.ts +7 -0
  54. package/dist/ui/lib-types/ui/src/features/Packages/types.d.ts +4 -24
  55. package/dist/ui/lib-types/ui/src/features/Performance/Performance.d.ts +4 -1
  56. package/dist/ui/lib-types/ui/src/features/Performance/components/ComponentCard.d.ts +8 -0
  57. package/dist/ui/lib-types/ui/src/features/Performance/components/HookDetailsPanel.d.ts +7 -0
  58. package/dist/ui/lib-types/ui/src/features/Performance/components/PerformanceOverview.d.ts +6 -0
  59. package/dist/ui/lib-types/ui/src/features/Performance/components/StatCard.d.ts +7 -0
  60. package/dist/ui/lib-types/ui/src/features/Performance/computePerfViewModel.d.ts +1 -1
  61. package/dist/ui/lib-types/ui/src/features/Performance/transformPerformanceData.d.ts +5 -4
  62. package/dist/ui/lib-types/ui/src/features/Performance/utils/formatMs.d.ts +1 -0
  63. package/dist/ui/lib-types/ui/src/features/Preloads/Preloads.d.ts +1 -0
  64. package/dist/ui/lib-types/ui/src/features/Preloads/computePreloadViewModel.d.ts +56 -0
  65. package/dist/ui/lib-types/ui/src/features/RenderTree/RenderTree.d.ts +4 -1
  66. package/dist/ui/lib-types/ui/src/features/RenderTree/TreeBuilder.d.ts +15 -41
  67. package/dist/ui/lib-types/ui/src/features/RenderTree/components/HighlightedCodeList.d.ts +7 -0
  68. package/dist/ui/lib-types/ui/src/features/RenderTree/components/HookFiltersCard.d.ts +11 -0
  69. package/dist/ui/lib-types/ui/src/features/RenderTree/components/RenderTreeTabs.d.ts +9 -0
  70. package/dist/ui/lib-types/ui/src/features/RenderTree/components/StateTreeNodeLabel.d.ts +6 -0
  71. package/dist/ui/lib-types/ui/src/features/RenderTree/data.d.ts +12 -20
  72. package/dist/ui/lib-types/ui/src/features/RenderTree/formatTreeData.d.ts +16 -47
  73. package/dist/ui/lib-types/ui/src/features/RenderTree/index.d.ts +1 -1
  74. package/dist/ui/lib-types/ui/src/features/RenderTree/types.d.ts +29 -45
  75. package/dist/ui/lib-types/ui/src/features/RenderTree/utils/filterHookTree.d.ts +3 -0
  76. package/dist/ui/lib-types/ui/src/features/RenderTree/utils/getCodeLanguage.d.ts +1 -0
  77. package/dist/ui/lib-types/ui/src/features/RenderTree/utils/getValueColorClass.d.ts +2 -0
  78. package/dist/ui/lib-types/ui/src/index.d.ts +3 -1
  79. package/dist/ui/lib-types/ui/src/runtime/preloads.d.ts +11 -0
  80. package/dist/ui/lib-types/ui/src/types/state.d.ts +1 -13
  81. package/dist/ui/node_modules/.pnpm/@shikijs_core@4.0.2/node_modules/@shikijs/core/dist/index.qwik.mjs +1035 -1060
  82. package/dist/ui/node_modules/.pnpm/@shikijs_engine-javascript@4.0.2/node_modules/@shikijs/engine-javascript/dist/engine-compile.qwik.mjs +36 -0
  83. package/dist/ui/node_modules/.pnpm/@shikijs_engine-javascript@4.0.2/node_modules/@shikijs/engine-javascript/dist/scanner-BFcBmQR1.qwik.mjs +78 -0
  84. package/dist/ui/node_modules/.pnpm/@shikijs_engine-oniguruma@4.0.2/node_modules/@shikijs/engine-oniguruma/dist/index.qwik.mjs +408 -361
  85. package/dist/ui/node_modules/.pnpm/@shikijs_engine-oniguruma@4.0.2/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.qwik.mjs +9 -6
  86. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/abap.qwik.mjs +7 -3
  87. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/actionscript-3.qwik.mjs +7 -3
  88. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ada.qwik.mjs +7 -3
  89. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-expression.qwik.mjs +7 -3
  90. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-html.qwik.mjs +16 -16
  91. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-inline-style.qwik.mjs +9 -6
  92. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-inline-template.qwik.mjs +10 -10
  93. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-let-declaration.qwik.mjs +9 -6
  94. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-template-blocks.qwik.mjs +10 -10
  95. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-template.qwik.mjs +9 -6
  96. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/angular-ts.qwik.mjs +18 -18
  97. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/apache.qwik.mjs +7 -3
  98. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/apex.qwik.mjs +7 -3
  99. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/apl.qwik.mjs +16 -16
  100. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/applescript.qwik.mjs +7 -3
  101. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ara.qwik.mjs +7 -3
  102. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/asciidoc.qwik.mjs +7 -3
  103. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/asm.qwik.mjs +7 -3
  104. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/astro.qwik.mjs +18 -18
  105. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/awk.qwik.mjs +7 -3
  106. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ballerina.qwik.mjs +7 -3
  107. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bat.qwik.mjs +7 -3
  108. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/beancount.qwik.mjs +7 -3
  109. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/berry.qwik.mjs +7 -3
  110. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bibtex.qwik.mjs +7 -3
  111. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bicep.qwik.mjs +7 -3
  112. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bird2.qwik.mjs +7 -3
  113. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/blade.qwik.mjs +20 -20
  114. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/bsl.qwik.mjs +9 -6
  115. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/c.qwik.mjs +7 -3
  116. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/c3.qwik.mjs +7 -3
  117. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cadence.qwik.mjs +7 -3
  118. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cairo.qwik.mjs +9 -6
  119. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/clarity.qwik.mjs +7 -3
  120. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/clojure.qwik.mjs +7 -3
  121. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cmake.qwik.mjs +7 -3
  122. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cobol.qwik.mjs +10 -10
  123. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/codeowners.qwik.mjs +7 -3
  124. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/codeql.qwik.mjs +7 -3
  125. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/coffee.qwik.mjs +9 -6
  126. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/common-lisp.qwik.mjs +7 -3
  127. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/coq.qwik.mjs +7 -3
  128. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cpp-macro.qwik.mjs +12 -12
  129. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cpp.qwik.mjs +14 -14
  130. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/crystal.qwik.mjs +18 -18
  131. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/csharp.qwik.mjs +7 -3
  132. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/css.qwik.mjs +7 -3
  133. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/csv.qwik.mjs +7 -3
  134. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cue.qwik.mjs +7 -3
  135. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/cypher.qwik.mjs +7 -3
  136. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/d.qwik.mjs +7 -3
  137. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/dart.qwik.mjs +7 -3
  138. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/dax.qwik.mjs +7 -3
  139. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/desktop.qwik.mjs +7 -3
  140. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/diff.qwik.mjs +7 -3
  141. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/docker.qwik.mjs +7 -3
  142. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/dotenv.qwik.mjs +7 -3
  143. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/dream-maker.qwik.mjs +7 -3
  144. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/edge.qwik.mjs +12 -12
  145. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/elixir.qwik.mjs +9 -6
  146. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/elm.qwik.mjs +9 -6
  147. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/emacs-lisp.qwik.mjs +7 -3
  148. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/erb.qwik.mjs +10 -10
  149. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/erlang.qwik.mjs +9 -6
  150. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-css.qwik.mjs +12 -12
  151. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-glsl.qwik.mjs +12 -12
  152. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-html.qwik.mjs +12 -12
  153. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-sql.qwik.mjs +10 -10
  154. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/es-tag-xml.qwik.mjs +9 -6
  155. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fennel.qwik.mjs +7 -3
  156. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fish.qwik.mjs +7 -3
  157. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fluent.qwik.mjs +7 -3
  158. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fortran-fixed-form.qwik.mjs +9 -6
  159. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fortran-free-form.qwik.mjs +7 -3
  160. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/fsharp.qwik.mjs +9 -6
  161. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gdresource.qwik.mjs +10 -10
  162. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gdscript.qwik.mjs +7 -3
  163. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gdshader.qwik.mjs +7 -3
  164. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/genie.qwik.mjs +7 -3
  165. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gherkin.qwik.mjs +7 -3
  166. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/git-commit.qwik.mjs +9 -6
  167. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/git-rebase.qwik.mjs +9 -6
  168. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gleam.qwik.mjs +7 -3
  169. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/glimmer-js.qwik.mjs +14 -14
  170. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/glimmer-ts.qwik.mjs +14 -14
  171. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/glsl.qwik.mjs +9 -6
  172. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gn.qwik.mjs +7 -3
  173. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/gnuplot.qwik.mjs +7 -3
  174. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/go.qwik.mjs +7 -3
  175. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/graphql.qwik.mjs +14 -14
  176. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/groovy.qwik.mjs +7 -3
  177. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hack.qwik.mjs +10 -10
  178. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/haml.qwik.mjs +10 -10
  179. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/handlebars.qwik.mjs +14 -14
  180. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/haskell.qwik.mjs +7 -3
  181. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/haxe.qwik.mjs +7 -3
  182. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hcl.qwik.mjs +7 -3
  183. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hjson.qwik.mjs +7 -3
  184. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hlsl.qwik.mjs +7 -3
  185. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/html-derivative.qwik.mjs +9 -6
  186. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/html.qwik.mjs +10 -10
  187. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/http.qwik.mjs +14 -14
  188. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hurl.qwik.mjs +12 -12
  189. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hxml.qwik.mjs +9 -6
  190. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/hy.qwik.mjs +7 -3
  191. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/imba.qwik.mjs +7 -3
  192. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ini.qwik.mjs +7 -3
  193. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/java.qwik.mjs +7 -3
  194. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/javascript.qwik.mjs +7 -3
  195. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jinja-html.qwik.mjs +9 -6
  196. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jinja.qwik.mjs +9 -6
  197. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jison.qwik.mjs +9 -6
  198. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/json.qwik.mjs +7 -3
  199. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/json5.qwik.mjs +7 -3
  200. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jsonc.qwik.mjs +7 -3
  201. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jsonl.qwik.mjs +7 -3
  202. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jsonnet.qwik.mjs +7 -3
  203. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jssm.qwik.mjs +7 -3
  204. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/jsx.qwik.mjs +7 -3
  205. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/julia.qwik.mjs +16 -16
  206. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/just.qwik.mjs +18 -18
  207. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/kdl.qwik.mjs +7 -3
  208. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/kotlin.qwik.mjs +7 -3
  209. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/kusto.qwik.mjs +7 -3
  210. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/latex.qwik.mjs +9 -6
  211. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/lean.qwik.mjs +7 -3
  212. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/less.qwik.mjs +7 -3
  213. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/liquid.qwik.mjs +14 -14
  214. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/llvm.qwik.mjs +7 -3
  215. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/log.qwik.mjs +7 -3
  216. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/logo.qwik.mjs +7 -3
  217. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/lua.qwik.mjs +9 -6
  218. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/luau.qwik.mjs +7 -3
  219. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/make.qwik.mjs +7 -3
  220. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/markdown-nix.qwik.mjs +7 -3
  221. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/markdown-vue.qwik.mjs +7 -3
  222. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/markdown.qwik.mjs +7 -3
  223. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/marko.qwik.mjs +14 -14
  224. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/matlab.qwik.mjs +7 -3
  225. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mdc.qwik.mjs +12 -12
  226. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mdx.qwik.mjs +7 -3
  227. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mermaid.qwik.mjs +7 -3
  228. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mipsasm.qwik.mjs +7 -3
  229. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/mojo.qwik.mjs +7 -3
  230. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/moonbit.qwik.mjs +7 -3
  231. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/move.qwik.mjs +7 -3
  232. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/narrat.qwik.mjs +7 -3
  233. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nextflow-groovy.qwik.mjs +7 -3
  234. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nextflow.qwik.mjs +9 -6
  235. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nginx.qwik.mjs +9 -6
  236. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nim.qwik.mjs +20 -20
  237. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nix.qwik.mjs +9 -6
  238. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/nushell.qwik.mjs +7 -3
  239. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/objective-c.qwik.mjs +7 -3
  240. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/objective-cpp.qwik.mjs +7 -3
  241. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ocaml.qwik.mjs +7 -3
  242. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/odin.qwik.mjs +7 -3
  243. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/openscad.qwik.mjs +7 -3
  244. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/pascal.qwik.mjs +7 -3
  245. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/perl.qwik.mjs +16 -16
  246. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/php.qwik.mjs +18 -18
  247. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/pkl.qwik.mjs +7 -3
  248. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/plsql.qwik.mjs +7 -3
  249. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/po.qwik.mjs +7 -3
  250. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/polar.qwik.mjs +7 -3
  251. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/postcss.qwik.mjs +7 -3
  252. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/powerquery.qwik.mjs +7 -3
  253. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/powershell.qwik.mjs +7 -3
  254. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/prisma.qwik.mjs +7 -3
  255. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/prolog.qwik.mjs +7 -3
  256. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/proto.qwik.mjs +7 -3
  257. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/pug.qwik.mjs +12 -12
  258. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/puppet.qwik.mjs +7 -3
  259. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/purescript.qwik.mjs +7 -3
  260. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/python.qwik.mjs +7 -3
  261. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/qml.qwik.mjs +9 -6
  262. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/qmldir.qwik.mjs +7 -3
  263. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/qss.qwik.mjs +7 -3
  264. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/r.qwik.mjs +7 -3
  265. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/racket.qwik.mjs +7 -3
  266. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/raku.qwik.mjs +7 -3
  267. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/razor.qwik.mjs +10 -10
  268. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/reg.qwik.mjs +7 -3
  269. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/regexp.qwik.mjs +7 -3
  270. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/rel.qwik.mjs +7 -3
  271. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/riscv.qwik.mjs +7 -3
  272. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ron.qwik.mjs +7 -3
  273. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/rosmsg.qwik.mjs +7 -3
  274. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/rst.qwik.mjs +22 -22
  275. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ruby.qwik.mjs +30 -30
  276. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/rust.qwik.mjs +7 -3
  277. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sas.qwik.mjs +9 -6
  278. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sass.qwik.mjs +7 -3
  279. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/scala.qwik.mjs +7 -3
  280. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/scheme.qwik.mjs +7 -3
  281. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/scss.qwik.mjs +9 -6
  282. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sdbl.qwik.mjs +7 -3
  283. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/shaderlab.qwik.mjs +9 -6
  284. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/shellscript.qwik.mjs +7 -3
  285. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/shellsession.qwik.mjs +9 -6
  286. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/smalltalk.qwik.mjs +7 -3
  287. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/solidity.qwik.mjs +7 -3
  288. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/soy.qwik.mjs +9 -6
  289. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sparql.qwik.mjs +9 -6
  290. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/splunk.qwik.mjs +7 -3
  291. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/sql.qwik.mjs +7 -3
  292. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ssh-config.qwik.mjs +7 -3
  293. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/stata.qwik.mjs +9 -6
  294. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/stylus.qwik.mjs +7 -3
  295. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/surrealql.qwik.mjs +9 -6
  296. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/svelte.qwik.mjs +14 -14
  297. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/swift.qwik.mjs +7 -3
  298. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/system-verilog.qwik.mjs +7 -3
  299. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/systemd.qwik.mjs +7 -3
  300. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/talonscript.qwik.mjs +7 -3
  301. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tasl.qwik.mjs +7 -3
  302. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tcl.qwik.mjs +7 -3
  303. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/templ.qwik.mjs +12 -12
  304. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/terraform.qwik.mjs +7 -3
  305. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tex.qwik.mjs +9 -6
  306. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/toml.qwik.mjs +7 -3
  307. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/ts-tags.qwik.mjs +18 -18
  308. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tsv.qwik.mjs +7 -3
  309. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/tsx.qwik.mjs +7 -3
  310. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/turtle.qwik.mjs +7 -3
  311. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/twig.qwik.mjs +18 -18
  312. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/typescript.qwik.mjs +7 -3
  313. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/typespec.qwik.mjs +7 -3
  314. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/typst.qwik.mjs +7 -3
  315. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/v.qwik.mjs +7 -3
  316. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vala.qwik.mjs +7 -3
  317. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vb.qwik.mjs +7 -3
  318. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/verilog.qwik.mjs +7 -3
  319. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vhdl.qwik.mjs +7 -3
  320. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/viml.qwik.mjs +7 -3
  321. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-directives.qwik.mjs +7 -3
  322. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-html.qwik.mjs +9 -6
  323. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-interpolations.qwik.mjs +7 -3
  324. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.qwik.mjs +9 -6
  325. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue-vine.qwik.mjs +18 -18
  326. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vue.qwik.mjs +26 -26
  327. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/vyper.qwik.mjs +7 -3
  328. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wasm.qwik.mjs +7 -3
  329. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wenyan.qwik.mjs +7 -3
  330. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wgsl.qwik.mjs +7 -3
  331. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wikitext.qwik.mjs +7 -3
  332. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wit.qwik.mjs +7 -3
  333. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/wolfram.qwik.mjs +7 -3
  334. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/xml.qwik.mjs +9 -6
  335. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/xsl.qwik.mjs +9 -6
  336. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/yaml.qwik.mjs +7 -3
  337. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/zenscript.qwik.mjs +7 -3
  338. package/dist/ui/node_modules/.pnpm/@shikijs_langs@4.0.2/node_modules/@shikijs/langs/dist/zig.qwik.mjs +7 -3
  339. package/dist/ui/node_modules/.pnpm/@shikijs_primitive@4.0.2/node_modules/@shikijs/primitive/dist/index.qwik.mjs +661 -730
  340. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/andromeeda.qwik.mjs +4 -4
  341. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/aurora-x.qwik.mjs +4 -4
  342. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/ayu-dark.qwik.mjs +4 -4
  343. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/ayu-light.qwik.mjs +4 -4
  344. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/ayu-mirage.qwik.mjs +4 -4
  345. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/catppuccin-frappe.qwik.mjs +4 -4
  346. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/catppuccin-latte.qwik.mjs +4 -4
  347. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/catppuccin-macchiato.qwik.mjs +4 -4
  348. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/catppuccin-mocha.qwik.mjs +4 -4
  349. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/dark-plus.qwik.mjs +4 -4
  350. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/dracula-soft.qwik.mjs +4 -4
  351. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/dracula.qwik.mjs +4 -4
  352. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/everforest-dark.qwik.mjs +4 -4
  353. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/everforest-light.qwik.mjs +4 -4
  354. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-dark-default.qwik.mjs +4 -4
  355. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-dark-dimmed.qwik.mjs +4 -4
  356. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-dark-high-contrast.qwik.mjs +4 -4
  357. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-dark.qwik.mjs +4 -4
  358. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-light-default.qwik.mjs +4 -4
  359. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-light-high-contrast.qwik.mjs +4 -4
  360. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/github-light.qwik.mjs +4 -4
  361. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.qwik.mjs +4 -4
  362. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.qwik.mjs +4 -4
  363. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.qwik.mjs +4 -4
  364. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-light-hard.qwik.mjs +4 -4
  365. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-light-medium.qwik.mjs +4 -4
  366. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/gruvbox-light-soft.qwik.mjs +4 -4
  367. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/horizon-bright.qwik.mjs +4 -4
  368. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/horizon.qwik.mjs +4 -4
  369. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/houston.qwik.mjs +4 -4
  370. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/kanagawa-dragon.qwik.mjs +4 -4
  371. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/kanagawa-lotus.qwik.mjs +4 -4
  372. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/kanagawa-wave.qwik.mjs +4 -4
  373. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/laserwave.qwik.mjs +4 -4
  374. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/light-plus.qwik.mjs +4 -4
  375. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme-darker.qwik.mjs +4 -4
  376. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme-lighter.qwik.mjs +4 -4
  377. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme-ocean.qwik.mjs +4 -4
  378. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme-palenight.qwik.mjs +4 -4
  379. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/material-theme.qwik.mjs +4 -4
  380. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/min-dark.qwik.mjs +4 -4
  381. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/min-light.qwik.mjs +4 -4
  382. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/monokai.qwik.mjs +4 -4
  383. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/night-owl-light.qwik.mjs +4 -4
  384. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/night-owl.qwik.mjs +4 -4
  385. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/nord.qwik.mjs +4 -4
  386. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/one-dark-pro.qwik.mjs +4 -4
  387. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/one-light.qwik.mjs +4 -4
  388. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/plastic.qwik.mjs +4 -4
  389. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/poimandres.qwik.mjs +4 -4
  390. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/red.qwik.mjs +4 -4
  391. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/rose-pine-dawn.qwik.mjs +4 -4
  392. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/rose-pine-moon.qwik.mjs +4 -4
  393. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/rose-pine.qwik.mjs +4 -4
  394. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/slack-dark.qwik.mjs +4 -4
  395. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/slack-ochin.qwik.mjs +4 -4
  396. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/snazzy-light.qwik.mjs +4 -4
  397. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/solarized-dark.qwik.mjs +4 -4
  398. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/solarized-light.qwik.mjs +4 -4
  399. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/synthwave-84.qwik.mjs +4 -4
  400. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/tokyo-night.qwik.mjs +4 -4
  401. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/vesper.qwik.mjs +4 -4
  402. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/vitesse-black.qwik.mjs +4 -4
  403. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/vitesse-dark.qwik.mjs +4 -4
  404. package/dist/ui/node_modules/.pnpm/@shikijs_themes@4.0.2/node_modules/@shikijs/themes/dist/vitesse-light.qwik.mjs +4 -4
  405. package/dist/ui/node_modules/.pnpm/@shikijs_types@4.0.2/node_modules/@shikijs/types/dist/index.qwik.mjs +7 -7
  406. package/dist/ui/node_modules/.pnpm/@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.qwik.mjs +2953 -2177
  407. package/dist/ui/node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.qwik.mjs +14 -22
  408. package/dist/ui/node_modules/.pnpm/character-entities-html4@2.1.0/node_modules/character-entities-html4/index.qwik.mjs +256 -261
  409. package/dist/ui/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.qwik.mjs +110 -115
  410. package/dist/ui/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.qwik.mjs +8 -15
  411. package/dist/ui/node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/browser.qwik.mjs +177 -0
  412. package/dist/ui/node_modules/.pnpm/debug@4.4.3_supports-color@10.2.2/node_modules/debug/src/common.qwik.mjs +182 -0
  413. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.qwik.mjs +20 -31
  414. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.qwik.mjs +4 -22
  415. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.qwik.mjs +124 -114
  416. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.qwik.mjs +14 -41
  417. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.qwik.mjs +4 -23
  418. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.qwik.mjs +4 -22
  419. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.qwik.mjs +10 -24
  420. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.qwik.mjs +53 -231
  421. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.qwik.mjs +58 -236
  422. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.qwik.mjs +8 -38
  423. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.qwik.mjs +36 -85
  424. package/dist/ui/node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.qwik.mjs +20 -40
  425. package/dist/ui/node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.qwik.mjs +6 -24
  426. package/dist/ui/node_modules/.pnpm/html-void-elements@3.0.0/node_modules/html-void-elements/index.qwik.mjs +24 -29
  427. package/dist/ui/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.qwik.mjs +120 -121
  428. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/node-utils.qwik.mjs +14 -0
  429. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/parse.qwik.mjs +297 -0
  430. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/tokenizer/tokenize.qwik.mjs +355 -0
  431. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/traverser/traverse.qwik.mjs +79 -0
  432. package/dist/ui/node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/utils.qwik.mjs +19 -0
  433. package/dist/ui/node_modules/.pnpm/oniguruma-to-es@4.3.5/node_modules/oniguruma-to-es/dist/esm/index.qwik.mjs +1878 -0
  434. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.qwik.mjs +6 -19
  435. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.qwik.mjs +59 -59
  436. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.qwik.mjs +33 -74
  437. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.qwik.mjs +366 -314
  438. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.qwik.mjs +4 -13
  439. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.qwik.mjs +564 -560
  440. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.qwik.mjs +4 -12
  441. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.qwik.mjs +4 -12
  442. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.qwik.mjs +21 -49
  443. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.qwik.mjs +37 -45
  444. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.qwik.mjs +17 -21
  445. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.qwik.mjs +10 -23
  446. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.qwik.mjs +22 -24
  447. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.qwik.mjs +18 -22
  448. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.qwik.mjs +17 -17
  449. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.qwik.mjs +9 -13
  450. package/dist/ui/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.qwik.mjs +8 -11
  451. package/dist/ui/node_modules/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.qwik.mjs +250 -0
  452. package/dist/ui/node_modules/.pnpm/regex-utilities@2.3.0/node_modules/regex-utilities/src/index.qwik.mjs +98 -0
  453. package/dist/ui/node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.qwik.mjs +174 -0
  454. package/dist/ui/node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.qwik.mjs +16 -0
  455. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/bundle-full.qwik.mjs +59 -23
  456. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/chunk-CtajNgzt.qwik.mjs +28 -19
  457. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/engine-oniguruma.qwik.mjs +11 -6
  458. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/index.qwik.mjs +47 -0
  459. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/langs-bundle-full-DfKZStlK.qwik.mjs +1284 -1281
  460. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/themes.qwik.mjs +396 -395
  461. package/dist/ui/node_modules/.pnpm/shiki@4.0.2/node_modules/shiki/dist/wasm.qwik.mjs +6 -2
  462. package/dist/ui/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.qwik.mjs +4 -12
  463. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/constant/dangerous.qwik.mjs +12 -18
  464. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.qwik.mjs +45 -72
  465. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.qwik.mjs +4 -18
  466. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.qwik.mjs +20 -36
  467. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.qwik.mjs +6 -14
  468. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.qwik.mjs +6 -14
  469. package/dist/ui/node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-named.qwik.mjs +22 -31
  470. package/dist/ui/node_modules/.pnpm/vite-hot-client@2.1.0_vite@7.3.5_@types_node@24.10.0_jiti@2.6.1_lightningcss@1.33.0_terser@5.46.0_tsx@4.21.0_yaml@2.8.3_/node_modules/vite-hot-client/dist/index.qwik.mjs +35 -0
  471. package/dist/ui/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.qwik.mjs +20 -104
  472. package/dist/ui/packages/devtools/kit/src/overlay-paths.qwik.mjs +25 -0
  473. package/dist/ui/packages/devtools/ui/src/components/DevtoolsButton/DevtoolsButton.qwik.mjs +143 -0
  474. package/dist/ui/packages/devtools/ui/src/components/DevtoolsContainer/DevtoolsContainer.qwik.mjs +13 -0
  475. package/dist/ui/packages/devtools/ui/src/components/DevtoolsPanel/DevtoolsPanel.qwik.mjs +497 -0
  476. package/dist/ui/packages/devtools/ui/src/components/IconButton/IconButton.qwik.mjs +16 -0
  477. package/dist/ui/packages/devtools/ui/src/components/Icons/Icons.qwik.mjs +664 -0
  478. package/dist/ui/packages/devtools/ui/src/components/InfoBanner/InfoBanner.qwik.mjs +25 -0
  479. package/dist/ui/packages/devtools/ui/src/components/Tab/Tab.qwik.mjs +21 -0
  480. package/dist/ui/packages/devtools/ui/src/components/TabContent/TabContent.qwik.mjs +21 -0
  481. package/dist/ui/packages/devtools/ui/src/components/TabTitle/TabTitle.qwik.mjs +9 -0
  482. package/dist/ui/packages/devtools/ui/src/components/ThemeToggle/QwikThemeToggle.qwik.mjs +58 -0
  483. package/dist/ui/{components → packages/devtools/ui/src/components}/ThemeToggle/theme-script.qwik.mjs +10 -7
  484. package/dist/ui/packages/devtools/ui/src/components/Tree/Tree.qwik.mjs +234 -0
  485. package/dist/ui/packages/devtools/ui/src/components/router-head/theme-script.qwik.mjs +4 -0
  486. package/dist/ui/packages/devtools/ui/src/devtools/CommandPalette.qwik.mjs +284 -0
  487. package/dist/ui/packages/devtools/ui/src/devtools/CustomizeTabsPanel.qwik.mjs +201 -0
  488. package/dist/ui/packages/devtools/ui/src/devtools/DevtoolsContent.qwik.mjs +210 -0
  489. package/dist/ui/packages/devtools/ui/src/devtools/DevtoolsSidebar.qwik.mjs +105 -0
  490. package/dist/ui/packages/devtools/ui/src/devtools/QwikDevtools.qwik.mjs +105 -0
  491. package/dist/ui/packages/devtools/ui/src/devtools/QwikDevtoolsExtension.qwik.mjs +36 -0
  492. package/dist/ui/packages/devtools/ui/src/devtools/command-palette.qwik.mjs +188 -0
  493. package/dist/ui/packages/devtools/ui/src/devtools/page-data-source.qwik.mjs +61 -0
  494. package/dist/ui/packages/devtools/ui/src/devtools/rpc.qwik.mjs +91 -0
  495. package/dist/ui/packages/devtools/ui/src/devtools/sidebar-tabs.qwik.mjs +97 -0
  496. package/dist/ui/packages/devtools/ui/src/devtools/state.qwik.mjs +30 -0
  497. package/dist/ui/packages/devtools/ui/src/devtools/tabs.qwik.mjs +82 -0
  498. package/dist/ui/packages/devtools/ui/src/features/Assets/Assets.qwik.mjs +50 -0
  499. package/dist/ui/packages/devtools/ui/src/features/BuildAnalysis/BuildAnalysis.qwik.mjs +185 -0
  500. package/dist/ui/packages/devtools/ui/src/features/CodeBreak/CodeBreak.qwik.mjs +53 -0
  501. package/dist/ui/packages/devtools/ui/src/features/CodeBreak/HtmlParser.qwik.mjs +149 -0
  502. package/dist/ui/packages/devtools/ui/src/features/CodeBreak/StateParser.qwik.mjs +181 -0
  503. package/dist/ui/packages/devtools/ui/src/features/HookTree/HookTree.qwik.mjs +713 -0
  504. package/dist/ui/packages/devtools/ui/src/features/HookTree/hookTreeHelpers.qwik.mjs +184 -0
  505. package/dist/ui/packages/devtools/ui/src/features/Inspect/Inspect.qwik.mjs +32 -0
  506. package/dist/ui/packages/devtools/ui/src/features/Inspect/constant.qwik.mjs +4 -0
  507. package/dist/ui/packages/devtools/ui/src/features/Inspect/iframe-theme.qwik.mjs +74 -0
  508. package/dist/ui/packages/devtools/ui/src/features/Overview/Overview.qwik.mjs +199 -0
  509. package/dist/ui/packages/devtools/ui/src/features/Packages/Packages.qwik.mjs +295 -0
  510. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyCard/DependencyCard.qwik.mjs +218 -0
  511. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyOperationFeedback/DependencyOperationFeedback.qwik.mjs +39 -0
  512. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyToolbar/DependencyToolbar.qwik.mjs +75 -0
  513. package/dist/ui/packages/devtools/ui/src/features/Packages/components/InstalledDependencyList/InstalledDependencyList.qwik.mjs +58 -0
  514. package/dist/ui/packages/devtools/ui/src/features/Packages/components/PackageIcon/PackageIcon.qwik.mjs +29 -0
  515. package/dist/ui/packages/devtools/ui/src/features/Packages/components/PackageSearchResults/PackageSearchResults.qwik.mjs +51 -0
  516. package/dist/ui/packages/devtools/ui/src/features/Packages/components/SearchResultCard/SearchResultCard.qwik.mjs +97 -0
  517. package/dist/ui/packages/devtools/ui/src/features/Packages/package-utils.qwik.mjs +81 -0
  518. package/dist/ui/packages/devtools/ui/src/features/Performance/Performance.qwik.mjs +254 -0
  519. package/dist/ui/packages/devtools/ui/src/features/Performance/components/ComponentCard.qwik.mjs +49 -0
  520. package/dist/ui/packages/devtools/ui/src/features/Performance/components/HookDetailsPanel.qwik.mjs +95 -0
  521. package/dist/ui/packages/devtools/ui/src/features/Performance/components/PerformanceOverview.qwik.mjs +36 -0
  522. package/dist/ui/packages/devtools/ui/src/features/Performance/components/StatCard.qwik.mjs +21 -0
  523. package/dist/ui/packages/devtools/ui/src/features/Performance/computePerfViewModel.qwik.mjs +118 -0
  524. package/dist/ui/packages/devtools/ui/src/features/Performance/transformPerformanceData.qwik.mjs +36 -0
  525. package/dist/ui/packages/devtools/ui/src/features/Performance/utils/formatMs.qwik.mjs +15 -0
  526. package/dist/ui/packages/devtools/ui/src/features/Preloads/Preloads.qwik.mjs +478 -0
  527. package/dist/ui/packages/devtools/ui/src/features/Preloads/computePreloadViewModel.qwik.mjs +178 -0
  528. package/dist/ui/packages/devtools/ui/src/features/RenderTree/RenderTree.qwik.mjs +277 -0
  529. package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/HighlightedCodeList.qwik.mjs +23 -0
  530. package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/HookFiltersCard.qwik.mjs +80 -0
  531. package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/RenderTreeTabs.qwik.mjs +25 -0
  532. package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/StateTreeNodeLabel.qwik.mjs +32 -0
  533. package/dist/ui/packages/devtools/ui/src/features/RenderTree/utils/getCodeLanguage.qwik.mjs +18 -0
  534. package/dist/ui/packages/devtools/ui/src/features/RenderTree/utils/getValueColorClass.qwik.mjs +21 -0
  535. package/dist/ui/packages/devtools/ui/src/features/Routes/Routes.qwik.mjs +51 -0
  536. package/dist/ui/packages/devtools/ui/src/runtime/preloads.qwik.mjs +830 -0
  537. package/dist/ui/packages/devtools/ui/src/utils/shiki.qwik.mjs +24 -0
  538. package/dist/ui/q-manifest.json +1878 -1879
  539. package/dist/ui/styles.css +646 -63
  540. package/package.json +83 -39
  541. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/assertClassBrand.qwik.mjs +0 -7
  542. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/checkPrivateRedeclaration.qwik.mjs +0 -6
  543. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/classPrivateFieldGet2.qwik.mjs +0 -7
  544. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/classPrivateFieldInitSpec.qwik.mjs +0 -7
  545. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/classPrivateFieldSet2.qwik.mjs +0 -7
  546. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/classPrivateMethodInitSpec.qwik.mjs +0 -7
  547. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.qwik.mjs +0 -12
  548. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPrimitive.qwik.mjs +0 -14
  549. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/toPropertyKey.qwik.mjs +0 -9
  550. package/dist/ui/_virtual/_@oxc-project_runtime@0.115.0/helpers/typeof.qwik.mjs +0 -11
  551. package/dist/ui/_virtual/_rolldown/runtime.qwik.mjs +0 -33
  552. package/dist/ui/bundle-graph-C-01xqq_.json +0 -1
  553. package/dist/ui/components/DevtoolsButton/DevtoolsButton.qwik.mjs +0 -132
  554. package/dist/ui/components/DevtoolsContainer/DevtoolsContainer.qwik.mjs +0 -7
  555. package/dist/ui/components/DevtoolsPanel/DevtoolsPanel.qwik.mjs +0 -36
  556. package/dist/ui/components/Icons/Icons.qwik.mjs +0 -216
  557. package/dist/ui/components/Tab/Tab.qwik.mjs +0 -14
  558. package/dist/ui/components/TabContent/TabContent.qwik.mjs +0 -10
  559. package/dist/ui/components/TabTitle/TabTitle.qwik.mjs +0 -7
  560. package/dist/ui/components/ThemeToggle/QwikThemeToggle.qwik.mjs +0 -38
  561. package/dist/ui/components/Tree/Tree.qwik.mjs +0 -93
  562. package/dist/ui/components/Tree/filterVnode.qwik.mjs +0 -62
  563. package/dist/ui/components/Tree/type.qwik.mjs +0 -4
  564. package/dist/ui/components/Tree/vnode.qwik.mjs +0 -17
  565. package/dist/ui/components/router-head/theme-script.qwik.mjs +0 -4
  566. package/dist/ui/devtools.qwik.mjs +0 -189
  567. package/dist/ui/features/Assets/Assets.qwik.mjs +0 -18
  568. package/dist/ui/features/CodeBreack/CodeBreack.qwik.mjs +0 -44
  569. package/dist/ui/features/CodeBreack/HtmlParser.qwik.mjs +0 -87
  570. package/dist/ui/features/CodeBreack/StateParser.qwik.mjs +0 -113
  571. package/dist/ui/features/Overview/Overview.qwik.mjs +0 -43
  572. package/dist/ui/features/Packages/Packages.qwik.mjs +0 -16
  573. package/dist/ui/features/Packages/components/DependencyCard/DependencyCard.qwik.mjs +0 -97
  574. package/dist/ui/features/Packages/components/DependencyCard/index.qwik.mjs +0 -1
  575. package/dist/ui/features/Packages/components/PackageIcon/PackageIcon.qwik.mjs +0 -23
  576. package/dist/ui/features/Packages/components/PackageIcon/index.qwik.mjs +0 -1
  577. package/dist/ui/features/Performance/Performance.qwik.mjs +0 -118
  578. package/dist/ui/features/Performance/computePerfViewModel.qwik.mjs +0 -111
  579. package/dist/ui/features/Performance/transformPerformanceData.qwik.mjs +0 -25
  580. package/dist/ui/features/RenderTree/RenderTree.qwik.mjs +0 -223
  581. package/dist/ui/features/RenderTree/TreeBuilder.qwik.mjs +0 -145
  582. package/dist/ui/features/RenderTree/data.qwik.mjs +0 -40
  583. package/dist/ui/features/RenderTree/formatTreeData.qwik.mjs +0 -169
  584. package/dist/ui/features/RenderTree/types.qwik.mjs +0 -51
  585. package/dist/ui/features/Routes/Routes.qwik.mjs +0 -30
  586. package/dist/ui/features/inspect/Inspect.qwik.mjs +0 -23
  587. package/dist/ui/features/inspect/constant.qwik.mjs +0 -4
  588. package/dist/ui/features/inspect/iframe-theme.qwik.mjs +0 -66
  589. package/dist/ui/lib-types/kit/src/client.d.ts +0 -2
  590. package/dist/ui/lib-types/kit/src/constants.d.ts +0 -16
  591. package/dist/ui/lib-types/kit/src/context.d.ts +0 -10
  592. package/dist/ui/lib-types/kit/src/globals.d.ts +0 -71
  593. package/dist/ui/lib-types/kit/src/index.d.ts +0 -6
  594. package/dist/ui/lib-types/kit/src/server.d.ts +0 -2
  595. package/dist/ui/lib-types/kit/src/shared.d.ts +0 -1
  596. package/dist/ui/lib-types/kit/src/types.d.ts +0 -69
  597. package/dist/ui/lib-types/ui/src/entry.dev.d.ts +0 -2
  598. package/dist/ui/lib-types/ui/src/features/CodeBreack/CodeBreack.d.ts +0 -1
  599. package/dist/ui/lib-types/ui/src/features/Performance/computePerfViewModel.test.d.ts +0 -1
  600. package/dist/ui/lib-types/ui/src/features/Performance/transformPerformanceData.test.d.ts +0 -1
  601. package/dist/ui/node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.qwik.mjs +0 -49
  602. package/dist/ui/node_modules/.pnpm/birpc@4.0.0/node_modules/birpc/dist/index.qwik.mjs +0 -200
  603. package/dist/ui/node_modules/.pnpm/brace-expansion@5.0.4/node_modules/brace-expansion/dist/esm/index.qwik.mjs +0 -143
  604. package/dist/ui/node_modules/.pnpm/copy-anything@4.0.5/node_modules/copy-anything/dist/index.qwik.mjs +0 -42
  605. package/dist/ui/node_modules/.pnpm/debug@4.4.3_supports-color@5.5.0/node_modules/debug/src/browser.qwik.mjs +0 -200
  606. package/dist/ui/node_modules/.pnpm/debug@4.4.3_supports-color@5.5.0/node_modules/debug/src/common.qwik.mjs +0 -206
  607. package/dist/ui/node_modules/.pnpm/dree@5.1.5/node_modules/dree/bundled/lib/esm/index.esm.qwik.mjs +0 -10
  608. package/dist/ui/node_modules/.pnpm/is-what@5.5.0/node_modules/is-what/dist/getType.qwik.mjs +0 -7
  609. package/dist/ui/node_modules/.pnpm/is-what@5.5.0/node_modules/is-what/dist/isArray.qwik.mjs +0 -8
  610. package/dist/ui/node_modules/.pnpm/is-what@5.5.0/node_modules/is-what/dist/isPlainObject.qwik.mjs +0 -13
  611. package/dist/ui/node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/assert-valid-pattern.qwik.mjs +0 -8
  612. package/dist/ui/node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/ast.qwik.mjs +0 -537
  613. package/dist/ui/node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/brace-expressions.qwik.mjs +0 -122
  614. package/dist/ui/node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/escape.qwik.mjs +0 -19
  615. package/dist/ui/node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/index.qwik.mjs +0 -629
  616. package/dist/ui/node_modules/.pnpm/minimatch@10.2.4/node_modules/minimatch/dist/esm/unescape.qwik.mjs +0 -26
  617. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/accessDeep.qwik.mjs +0 -96
  618. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/class-registry.qwik.mjs +0 -19
  619. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/custom-transformer-registry.qwik.mjs +0 -18
  620. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/double-indexed-kv.qwik.mjs +0 -23
  621. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/index.qwik.mjs +0 -81
  622. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/is.qwik.mjs +0 -29
  623. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/pathstringifier.qwik.mjs +0 -34
  624. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/plainer.qwik.mjs +0 -105
  625. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/registry.qwik.mjs +0 -24
  626. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/transformer.qwik.mjs +0 -160
  627. package/dist/ui/node_modules/.pnpm/superjson@2.2.6/node_modules/superjson/dist/util.qwik.mjs +0 -30
  628. package/dist/ui/node_modules/.pnpm/vite-hot-client@2.1.0_vite@8.0.0_@types_node@25.5.0_esbuild@0.27.4_jiti@2.6.1_tsx@4.21.0_yaml@2.8.2_/node_modules/vite-hot-client/dist/index.qwik.mjs +0 -27
  629. package/dist/ui/packages/kit/src/client.qwik.mjs +0 -17
  630. package/dist/ui/packages/kit/src/constants.qwik.mjs +0 -12
  631. package/dist/ui/packages/kit/src/context.qwik.mjs +0 -18
  632. package/dist/ui/packages/kit/src/globals.qwik.mjs +0 -5
  633. package/dist/ui/packages/kit/src/index.qwik.mjs +0 -7
  634. package/dist/ui/packages/kit/src/server.qwik.mjs +0 -1
  635. package/dist/ui/packages/kit/src/shared.qwik.mjs +0 -4
  636. package/dist/ui/packages/kit/src/types.qwik.mjs +0 -1
  637. package/dist/ui/utils/location.qwik.mjs +0 -10
  638. package/dist/ui/utils/shiki.qwik.mjs +0 -19
  639. package/dist/ui/utils/type.qwik.mjs +0 -13
  640. /package/dist/ui/lib-types/ui/src/features/{CodeBreack → CodeBreak}/HtmlParser.d.ts +0 -0
  641. /package/dist/ui/lib-types/ui/src/features/{CodeBreack → CodeBreak}/StateParser.d.ts +0 -0
  642. /package/dist/ui/lib-types/ui/src/features/{inspect → Inspect}/Inspect.d.ts +0 -0
  643. /package/dist/ui/lib-types/ui/src/features/{inspect → Inspect}/constant.d.ts +0 -0
  644. /package/dist/ui/lib-types/ui/src/features/{inspect → Inspect}/iframe-theme.d.ts +0 -0
  645. /package/dist/ui/lib-types/ui/src/utils/{heplerState.d.ts → helperState.d.ts} +0 -0
@@ -1,798 +1,729 @@
1
- import { _defineProperty } from "../../../../../../../_virtual/_@oxc-project_runtime@0.115.0/helpers/defineProperty.qwik.mjs";
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
2
4
  import { ShikiError } from "../../../../../@shikijs_types@4.0.2/node_modules/@shikijs/types/dist/index.qwik.mjs";
3
- import { EncodedTokenMetadata, INITIAL, Registry as Registry$1, Theme } from "../../../../../@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.qwik.mjs";
4
- //#region ../../node_modules/.pnpm/@shikijs+primitive@4.0.2/node_modules/@shikijs/primitive/dist/index.mjs
5
+ import { INITIAL, EncodedTokenMetadata, Registry as Registry$1, Theme } from "../../../../../@shikijs_vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.qwik.mjs";
5
6
  function resolveColorReplacements(theme, options) {
6
- const replacements = typeof theme === "string" ? {} : { ...theme.colorReplacements };
7
- const themeName = typeof theme === "string" ? theme : theme.name;
8
- for (const [key, value] of Object.entries(options?.colorReplacements || {})) if (typeof value === "string") replacements[key] = value;
9
- else if (key === themeName) Object.assign(replacements, value);
10
- return replacements;
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 || {})) if (typeof value === "string") replacements[key] = value;
10
+ else if (key === themeName) Object.assign(replacements, value);
11
+ return replacements;
11
12
  }
12
13
  function applyColorReplacements(color, replacements) {
13
- if (!color) return color;
14
- return replacements?.[color?.toLowerCase()] || color;
14
+ if (!color) return color;
15
+ return replacements?.[color?.toLowerCase()] || color;
15
16
  }
16
17
  function toArray(x) {
17
- return Array.isArray(x) ? x : [x];
18
+ return Array.isArray(x) ? x : [x];
18
19
  }
19
- /**
20
- * Normalize a getter to a promise.
21
- */
22
20
  async function normalizeGetter(p) {
23
- return Promise.resolve(typeof p === "function" ? p() : p).then((r) => r.default || r);
21
+ return Promise.resolve(typeof p === "function" ? p() : p).then((r) => r.default || r);
24
22
  }
25
- /**
26
- * Check if the language is plaintext that is ignored by Shiki.
27
- *
28
- * Hard-coded plain text languages: `plaintext`, `txt`, `text`, `plain`.
29
- */
30
23
  function isPlainLang(lang) {
31
- return !lang || [
32
- "plaintext",
33
- "txt",
34
- "text",
35
- "plain"
36
- ].includes(lang);
24
+ return !lang || [
25
+ "plaintext",
26
+ "txt",
27
+ "text",
28
+ "plain"
29
+ ].includes(lang);
37
30
  }
38
- /**
39
- * Check if the language is specially handled or bypassed by Shiki.
40
- *
41
- * Hard-coded languages: `ansi` and plaintexts like `plaintext`, `txt`, `text`, `plain`.
42
- */
43
31
  function isSpecialLang(lang) {
44
- return lang === "ansi" || isPlainLang(lang);
32
+ return lang === "ansi" || isPlainLang(lang);
45
33
  }
46
- /**
47
- * Check if the theme is specially handled or bypassed by Shiki.
48
- *
49
- * Hard-coded themes: `none`.
50
- */
51
34
  function isNoneTheme(theme) {
52
- return theme === "none";
35
+ return theme === "none";
53
36
  }
54
- /**
55
- * Check if the theme is specially handled or bypassed by Shiki.
56
- *
57
- * Hard-coded themes: `none`.
58
- */
59
37
  function isSpecialTheme(theme) {
60
- return isNoneTheme(theme);
38
+ return isNoneTheme(theme);
61
39
  }
62
- /**
63
- * Split a string into lines, each line preserves the line ending.
64
- *
65
- * @param code - The code string to split into lines
66
- * @param preserveEnding - Whether to preserve line endings in the result
67
- * @returns Array of tuples containing [line content, offset index]
68
- *
69
- * @example
70
- * ```ts
71
- * splitLines('hello\nworld', false)
72
- * // => [['hello', 0], ['world', 6]]
73
- *
74
- * splitLines('hello\nworld', true)
75
- * // => [['hello\n', 0], ['world', 6]]
76
- * ```
77
- */
78
40
  function splitLines(code, preserveEnding = false) {
79
- if (code.length === 0) return [["", 0]];
80
- const parts = code.split(/(\r?\n)/g);
81
- let index = 0;
82
- const lines = [];
83
- for (let i = 0; i < parts.length; i += 2) {
84
- const line = preserveEnding ? parts[i] + (parts[i + 1] || "") : parts[i];
85
- lines.push([line, index]);
86
- index += parts[i].length;
87
- index += parts[i + 1]?.length || 0;
88
- }
89
- return lines;
41
+ if (code.length === 0) return [["", 0]];
42
+ const parts = code.split(/(\r?\n)/g);
43
+ let index = 0;
44
+ const lines = [];
45
+ for (let i = 0; i < parts.length; i += 2) {
46
+ const line = preserveEnding ? parts[i] + (parts[i + 1] || "") : parts[i];
47
+ lines.push([line, index]);
48
+ index += parts[i].length;
49
+ index += parts[i + 1]?.length || 0;
50
+ }
51
+ return lines;
90
52
  }
91
- /**
92
- * https://github.com/microsoft/vscode/blob/f7f05dee53fb33fe023db2e06e30a89d3094488f/src/vs/platform/theme/common/colorRegistry.ts#L258-L268
93
- */
94
- var VSCODE_FALLBACK_EDITOR_FG = {
95
- light: "#333333",
96
- dark: "#bbbbbb"
53
+ const VSCODE_FALLBACK_EDITOR_FG = {
54
+ light: "#333333",
55
+ dark: "#bbbbbb"
97
56
  };
98
- var VSCODE_FALLBACK_EDITOR_BG = {
99
- light: "#fffffe",
100
- dark: "#1e1e1e"
57
+ const VSCODE_FALLBACK_EDITOR_BG = {
58
+ light: "#fffffe",
59
+ dark: "#1e1e1e"
101
60
  };
102
- var RESOLVED_KEY = "__shiki_resolved";
103
- /**
104
- * Normalize a textmate theme to shiki theme
105
- */
61
+ const RESOLVED_KEY = "__shiki_resolved";
106
62
  function normalizeTheme(rawTheme) {
107
- if (rawTheme?.[RESOLVED_KEY]) return rawTheme;
108
- const theme = { ...rawTheme };
109
- if (theme.tokenColors && !theme.settings) {
110
- theme.settings = theme.tokenColors;
111
- delete theme.tokenColors;
112
- }
113
- theme.type || (theme.type = "dark");
114
- theme.colorReplacements = { ...theme.colorReplacements };
115
- theme.settings || (theme.settings = []);
116
- let { bg, fg } = theme;
117
- if (!bg || !fg) {
118
- /**
119
- * First try:
120
- * Theme might contain a global `tokenColor` without `name` or `scope`
121
- * Used as default value for foreground/background
122
- */
123
- const globalSetting = theme.settings ? theme.settings.find((s) => !s.name && !s.scope) : void 0;
124
- if (globalSetting?.settings?.foreground) fg = globalSetting.settings.foreground;
125
- if (globalSetting?.settings?.background) bg = globalSetting.settings.background;
126
- /**
127
- * Second try:
128
- * If there's no global `tokenColor` without `name` or `scope`
129
- * Use `editor.foreground` and `editor.background`
130
- */
131
- if (!fg && theme?.colors?.["editor.foreground"]) fg = theme.colors["editor.foreground"];
132
- if (!bg && theme?.colors?.["editor.background"]) bg = theme.colors["editor.background"];
133
- /**
134
- * Last try:
135
- * If there's no fg/bg color specified in theme, use default
136
- */
137
- if (!fg) fg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_FG.light : VSCODE_FALLBACK_EDITOR_FG.dark;
138
- if (!bg) bg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_BG.light : VSCODE_FALLBACK_EDITOR_BG.dark;
139
- theme.fg = fg;
140
- theme.bg = bg;
141
- }
142
- if (!(theme.settings[0] && theme.settings[0].settings && !theme.settings[0].scope)) theme.settings.unshift({ settings: {
143
- foreground: theme.fg,
144
- background: theme.bg
145
- } });
146
- let replacementCount = 0;
147
- const replacementMap = /* @__PURE__ */ new Map();
148
- function getReplacementColor(value) {
149
- if (replacementMap.has(value)) return replacementMap.get(value);
150
- replacementCount += 1;
151
- const hex = `#${replacementCount.toString(16).padStart(8, "0").toLowerCase()}`;
152
- if (theme.colorReplacements?.[`#${hex}`]) return getReplacementColor(value);
153
- replacementMap.set(value, hex);
154
- return hex;
155
- }
156
- theme.settings = theme.settings.map((setting) => {
157
- const replaceFg = setting.settings?.foreground && !setting.settings.foreground.startsWith("#");
158
- const replaceBg = setting.settings?.background && !setting.settings.background.startsWith("#");
159
- if (!replaceFg && !replaceBg) return setting;
160
- const clone = {
161
- ...setting,
162
- settings: { ...setting.settings }
163
- };
164
- if (replaceFg) {
165
- const replacement = getReplacementColor(setting.settings.foreground);
166
- theme.colorReplacements[replacement] = setting.settings.foreground;
167
- clone.settings.foreground = replacement;
168
- }
169
- if (replaceBg) {
170
- const replacement = getReplacementColor(setting.settings.background);
171
- theme.colorReplacements[replacement] = setting.settings.background;
172
- clone.settings.background = replacement;
173
- }
174
- return clone;
175
- });
176
- for (const key of Object.keys(theme.colors || {})) if (key === "editor.foreground" || key === "editor.background" || key.startsWith("terminal.ansi")) {
177
- if (!theme.colors[key]?.startsWith("#")) {
178
- const replacement = getReplacementColor(theme.colors[key]);
179
- theme.colorReplacements[replacement] = theme.colors[key];
180
- theme.colors[key] = replacement;
181
- }
182
- }
183
- Object.defineProperty(theme, RESOLVED_KEY, {
184
- enumerable: false,
185
- writable: false,
186
- value: true
187
- });
188
- return theme;
63
+ if (rawTheme?.[RESOLVED_KEY]) return rawTheme;
64
+ const theme = { ...rawTheme };
65
+ if (theme.tokenColors && !theme.settings) {
66
+ theme.settings = theme.tokenColors;
67
+ delete theme.tokenColors;
68
+ }
69
+ theme.type || (theme.type = "dark");
70
+ theme.colorReplacements = { ...theme.colorReplacements };
71
+ theme.settings || (theme.settings = []);
72
+ let { bg, fg } = theme;
73
+ if (!bg || !fg) {
74
+ const globalSetting = theme.settings ? theme.settings.find((s) => !s.name && !s.scope) : void 0;
75
+ if (globalSetting?.settings?.foreground) fg = globalSetting.settings.foreground;
76
+ if (globalSetting?.settings?.background) bg = globalSetting.settings.background;
77
+ if (!fg && theme?.colors?.["editor.foreground"]) fg = theme.colors["editor.foreground"];
78
+ if (!bg && theme?.colors?.["editor.background"]) bg = theme.colors["editor.background"];
79
+ if (!fg) fg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_FG.light : VSCODE_FALLBACK_EDITOR_FG.dark;
80
+ if (!bg) bg = theme.type === "light" ? VSCODE_FALLBACK_EDITOR_BG.light : VSCODE_FALLBACK_EDITOR_BG.dark;
81
+ theme.fg = fg;
82
+ theme.bg = bg;
83
+ }
84
+ if (!(theme.settings[0] && theme.settings[0].settings && !theme.settings[0].scope)) theme.settings.unshift({ settings: {
85
+ foreground: theme.fg,
86
+ background: theme.bg
87
+ } });
88
+ let replacementCount = 0;
89
+ const replacementMap = /* @__PURE__ */ new Map();
90
+ function getReplacementColor(value) {
91
+ if (replacementMap.has(value)) return replacementMap.get(value);
92
+ replacementCount += 1;
93
+ const hex = `#${replacementCount.toString(16).padStart(8, "0").toLowerCase()}`;
94
+ if (theme.colorReplacements?.[`#${hex}`]) return getReplacementColor(value);
95
+ replacementMap.set(value, hex);
96
+ return hex;
97
+ }
98
+ theme.settings = theme.settings.map((setting) => {
99
+ const replaceFg = setting.settings?.foreground && !setting.settings.foreground.startsWith("#");
100
+ const replaceBg = setting.settings?.background && !setting.settings.background.startsWith("#");
101
+ if (!replaceFg && !replaceBg) return setting;
102
+ const clone = {
103
+ ...setting,
104
+ settings: { ...setting.settings }
105
+ };
106
+ if (replaceFg) {
107
+ const replacement = getReplacementColor(setting.settings.foreground);
108
+ theme.colorReplacements[replacement] = setting.settings.foreground;
109
+ clone.settings.foreground = replacement;
110
+ }
111
+ if (replaceBg) {
112
+ const replacement = getReplacementColor(setting.settings.background);
113
+ theme.colorReplacements[replacement] = setting.settings.background;
114
+ clone.settings.background = replacement;
115
+ }
116
+ return clone;
117
+ });
118
+ for (const key of Object.keys(theme.colors || {})) if (key === "editor.foreground" || key === "editor.background" || key.startsWith("terminal.ansi")) {
119
+ if (!theme.colors[key]?.startsWith("#")) {
120
+ const replacement = getReplacementColor(theme.colors[key]);
121
+ theme.colorReplacements[replacement] = theme.colors[key];
122
+ theme.colors[key] = replacement;
123
+ }
124
+ }
125
+ Object.defineProperty(theme, RESOLVED_KEY, {
126
+ enumerable: false,
127
+ writable: false,
128
+ value: true
129
+ });
130
+ return theme;
189
131
  }
190
- /**
191
- * Resolve
192
- */
193
132
  async function resolveLangs(langs) {
194
- return Array.from(new Set((await Promise.all(langs.filter((l) => !isSpecialLang(l)).map(async (lang) => await normalizeGetter(lang).then((r) => Array.isArray(r) ? r : [r])))).flat()));
133
+ return Array.from(new Set((await Promise.all(langs.filter((l) => !isSpecialLang(l)).map(async (lang) => await normalizeGetter(lang).then((r) => Array.isArray(r) ? r : [r])))).flat()));
195
134
  }
196
135
  async function resolveThemes(themes) {
197
- return (await Promise.all(themes.map(async (theme) => isSpecialTheme(theme) ? null : normalizeTheme(await normalizeGetter(theme))))).filter((i) => !!i);
136
+ return (await Promise.all(themes.map(async (theme) => isSpecialTheme(theme) ? null : normalizeTheme(await normalizeGetter(theme))))).filter((i) => !!i);
198
137
  }
199
138
  function resolveLangAlias(name, alias) {
200
- if (!alias) return name;
201
- if (alias[name]) {
202
- const resolved = new Set([name]);
203
- while (alias[name]) {
204
- name = alias[name];
205
- if (resolved.has(name)) throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
206
- resolved.add(name);
207
- }
208
- }
209
- return name;
139
+ if (!alias) return name;
140
+ if (alias[name]) {
141
+ const resolved = /* @__PURE__ */ new Set([name]);
142
+ while (alias[name]) {
143
+ name = alias[name];
144
+ if (resolved.has(name)) throw new ShikiError(`Circular alias \`${Array.from(resolved).join(" -> ")} -> ${name}\``);
145
+ resolved.add(name);
146
+ }
147
+ }
148
+ return name;
210
149
  }
211
150
  var Registry = class extends Registry$1 {
212
- constructor(_resolver, _themes, _langs, _alias = {}) {
213
- super(_resolver);
214
- _defineProperty(this, "_resolvedThemes", /* @__PURE__ */ new Map());
215
- _defineProperty(this, "_resolvedGrammars", /* @__PURE__ */ new Map());
216
- _defineProperty(this, "_langMap", /* @__PURE__ */ new Map());
217
- _defineProperty(this, "_langGraph", /* @__PURE__ */ new Map());
218
- _defineProperty(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap());
219
- _defineProperty(this, "_loadedThemesCache", null);
220
- _defineProperty(this, "_loadedLanguagesCache", null);
221
- this._resolver = _resolver;
222
- this._themes = _themes;
223
- this._langs = _langs;
224
- this._alias = _alias;
225
- this._themes.map((t) => this.loadTheme(t));
226
- this.loadLanguages(this._langs);
227
- }
228
- getTheme(theme) {
229
- if (typeof theme === "string") return this._resolvedThemes.get(theme);
230
- else return this.loadTheme(theme);
231
- }
232
- loadTheme(theme) {
233
- const _theme = normalizeTheme(theme);
234
- if (_theme.name) {
235
- this._resolvedThemes.set(_theme.name, _theme);
236
- this._loadedThemesCache = null;
237
- }
238
- return _theme;
239
- }
240
- getLoadedThemes() {
241
- if (!this._loadedThemesCache) this._loadedThemesCache = [...this._resolvedThemes.keys()];
242
- return this._loadedThemesCache;
243
- }
244
- setTheme(theme) {
245
- let textmateTheme = this._textmateThemeCache.get(theme);
246
- if (!textmateTheme) {
247
- textmateTheme = Theme.createFromRawTheme(theme);
248
- this._textmateThemeCache.set(theme, textmateTheme);
249
- }
250
- this._syncRegistry.setTheme(textmateTheme);
251
- }
252
- getGrammar(name) {
253
- name = resolveLangAlias(name, this._alias);
254
- return this._resolvedGrammars.get(name);
255
- }
256
- loadLanguage(lang) {
257
- if (this.getGrammar(lang.name)) return;
258
- const embeddedLazilyBy = new Set([...this._langMap.values()].filter((i) => i.embeddedLangsLazy?.includes(lang.name)));
259
- this._resolver.addLanguage(lang);
260
- const grammarConfig = {
261
- balancedBracketSelectors: lang.balancedBracketSelectors || ["*"],
262
- unbalancedBracketSelectors: lang.unbalancedBracketSelectors || []
263
- };
264
- this._syncRegistry._rawGrammars.set(lang.scopeName, lang);
265
- const g = this.loadGrammarWithConfiguration(lang.scopeName, 1, grammarConfig);
266
- g.name = lang.name;
267
- this._resolvedGrammars.set(lang.name, g);
268
- if (lang.aliases) lang.aliases.forEach((alias) => {
269
- this._alias[alias] = lang.name;
270
- });
271
- this._loadedLanguagesCache = null;
272
- if (embeddedLazilyBy.size) for (const e of embeddedLazilyBy) {
273
- this._resolvedGrammars.delete(e.name);
274
- this._loadedLanguagesCache = null;
275
- this._syncRegistry?._injectionGrammars?.delete(e.scopeName);
276
- this._syncRegistry?._grammars?.delete(e.scopeName);
277
- this.loadLanguage(this._langMap.get(e.name));
278
- }
279
- }
280
- dispose() {
281
- super.dispose();
282
- this._resolvedThemes.clear();
283
- this._resolvedGrammars.clear();
284
- this._langMap.clear();
285
- this._langGraph.clear();
286
- this._loadedThemesCache = null;
287
- }
288
- loadLanguages(langs) {
289
- for (const lang of langs) this.resolveEmbeddedLanguages(lang);
290
- const langsGraphArray = Array.from(this._langGraph.entries());
291
- const missingLangs = langsGraphArray.filter(([_, lang]) => !lang);
292
- if (missingLangs.length) {
293
- const dependents = langsGraphArray.filter(([_, lang]) => {
294
- if (!lang) return false;
295
- return (lang.embeddedLanguages || lang.embeddedLangs)?.some((l) => missingLangs.map(([name]) => name).includes(l));
296
- }).filter((lang) => !missingLangs.includes(lang));
297
- throw new ShikiError(`Missing languages ${missingLangs.map(([name]) => `\`${name}\``).join(", ")}, required by ${dependents.map(([name]) => `\`${name}\``).join(", ")}`);
298
- }
299
- for (const [_, lang] of langsGraphArray) this._resolver.addLanguage(lang);
300
- for (const [_, lang] of langsGraphArray) this.loadLanguage(lang);
301
- }
302
- getLoadedLanguages() {
303
- if (!this._loadedLanguagesCache) this._loadedLanguagesCache = [...new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])];
304
- return this._loadedLanguagesCache;
305
- }
306
- resolveEmbeddedLanguages(lang) {
307
- this._langMap.set(lang.name, lang);
308
- this._langGraph.set(lang.name, lang);
309
- const embedded = lang.embeddedLanguages ?? lang.embeddedLangs;
310
- if (embedded) for (const embeddedLang of embedded) this._langGraph.set(embeddedLang, this._langMap.get(embeddedLang));
311
- }
151
+ constructor(_resolver, _themes, _langs, _alias = {}) {
152
+ super(_resolver);
153
+ __publicField(this, "_resolvedThemes", /* @__PURE__ */ new Map());
154
+ __publicField(this, "_resolvedGrammars", /* @__PURE__ */ new Map());
155
+ __publicField(this, "_langMap", /* @__PURE__ */ new Map());
156
+ __publicField(this, "_langGraph", /* @__PURE__ */ new Map());
157
+ __publicField(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap());
158
+ __publicField(this, "_loadedThemesCache", null);
159
+ __publicField(this, "_loadedLanguagesCache", null);
160
+ this._resolver = _resolver;
161
+ this._themes = _themes;
162
+ this._langs = _langs;
163
+ this._alias = _alias;
164
+ this._themes.map((t) => this.loadTheme(t));
165
+ this.loadLanguages(this._langs);
166
+ }
167
+ getTheme(theme) {
168
+ if (typeof theme === "string") return this._resolvedThemes.get(theme);
169
+ else return this.loadTheme(theme);
170
+ }
171
+ loadTheme(theme) {
172
+ const _theme = normalizeTheme(theme);
173
+ if (_theme.name) {
174
+ this._resolvedThemes.set(_theme.name, _theme);
175
+ this._loadedThemesCache = null;
176
+ }
177
+ return _theme;
178
+ }
179
+ getLoadedThemes() {
180
+ if (!this._loadedThemesCache) this._loadedThemesCache = [...this._resolvedThemes.keys()];
181
+ return this._loadedThemesCache;
182
+ }
183
+ setTheme(theme) {
184
+ let textmateTheme = this._textmateThemeCache.get(theme);
185
+ if (!textmateTheme) {
186
+ textmateTheme = Theme.createFromRawTheme(theme);
187
+ this._textmateThemeCache.set(theme, textmateTheme);
188
+ }
189
+ this._syncRegistry.setTheme(textmateTheme);
190
+ }
191
+ getGrammar(name) {
192
+ name = resolveLangAlias(name, this._alias);
193
+ return this._resolvedGrammars.get(name);
194
+ }
195
+ loadLanguage(lang) {
196
+ if (this.getGrammar(lang.name)) return;
197
+ const embeddedLazilyBy = new Set([...this._langMap.values()].filter((i) => i.embeddedLangsLazy?.includes(lang.name)));
198
+ this._resolver.addLanguage(lang);
199
+ const grammarConfig = {
200
+ balancedBracketSelectors: lang.balancedBracketSelectors || ["*"],
201
+ unbalancedBracketSelectors: lang.unbalancedBracketSelectors || []
202
+ };
203
+ this._syncRegistry._rawGrammars.set(lang.scopeName, lang);
204
+ const g = this.loadGrammarWithConfiguration(lang.scopeName, 1, grammarConfig);
205
+ g.name = lang.name;
206
+ this._resolvedGrammars.set(lang.name, g);
207
+ if (lang.aliases) lang.aliases.forEach((alias) => {
208
+ this._alias[alias] = lang.name;
209
+ });
210
+ this._loadedLanguagesCache = null;
211
+ if (embeddedLazilyBy.size) for (const e of embeddedLazilyBy) {
212
+ this._resolvedGrammars.delete(e.name);
213
+ this._loadedLanguagesCache = null;
214
+ this._syncRegistry?._injectionGrammars?.delete(e.scopeName);
215
+ this._syncRegistry?._grammars?.delete(e.scopeName);
216
+ this.loadLanguage(this._langMap.get(e.name));
217
+ }
218
+ }
219
+ dispose() {
220
+ super.dispose();
221
+ this._resolvedThemes.clear();
222
+ this._resolvedGrammars.clear();
223
+ this._langMap.clear();
224
+ this._langGraph.clear();
225
+ this._loadedThemesCache = null;
226
+ }
227
+ loadLanguages(langs) {
228
+ for (const lang of langs) this.resolveEmbeddedLanguages(lang);
229
+ const langsGraphArray = Array.from(this._langGraph.entries());
230
+ const missingLangs = langsGraphArray.filter(([_, lang]) => !lang);
231
+ if (missingLangs.length) {
232
+ const dependents = langsGraphArray.filter(([_, lang]) => {
233
+ if (!lang) return false;
234
+ return (lang.embeddedLanguages || lang.embeddedLangs)?.some((l) => missingLangs.map(([name]) => name).includes(l));
235
+ }).filter((lang) => !missingLangs.includes(lang));
236
+ throw new ShikiError(`Missing languages ${missingLangs.map(([name]) => `\`${name}\``).join(", ")}, required by ${dependents.map(([name]) => `\`${name}\``).join(", ")}`);
237
+ }
238
+ for (const [_, lang] of langsGraphArray) this._resolver.addLanguage(lang);
239
+ for (const [_, lang] of langsGraphArray) this.loadLanguage(lang);
240
+ }
241
+ getLoadedLanguages() {
242
+ if (!this._loadedLanguagesCache) this._loadedLanguagesCache = [.../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])];
243
+ return this._loadedLanguagesCache;
244
+ }
245
+ resolveEmbeddedLanguages(lang) {
246
+ this._langMap.set(lang.name, lang);
247
+ this._langGraph.set(lang.name, lang);
248
+ const embedded = lang.embeddedLanguages ?? lang.embeddedLangs;
249
+ if (embedded) for (const embeddedLang of embedded) this._langGraph.set(embeddedLang, this._langMap.get(embeddedLang));
250
+ }
312
251
  };
313
252
  var Resolver = class {
314
- constructor(engine, langs) {
315
- _defineProperty(this, "_langs", /* @__PURE__ */ new Map());
316
- _defineProperty(this, "_scopeToLang", /* @__PURE__ */ new Map());
317
- _defineProperty(this, "_injections", /* @__PURE__ */ new Map());
318
- _defineProperty(this, "_onigLib", void 0);
319
- this._onigLib = {
320
- createOnigScanner: (patterns) => engine.createScanner(patterns),
321
- createOnigString: (s) => engine.createString(s)
322
- };
323
- langs.forEach((i) => this.addLanguage(i));
324
- }
325
- get onigLib() {
326
- return this._onigLib;
327
- }
328
- getLangRegistration(langIdOrAlias) {
329
- return this._langs.get(langIdOrAlias);
330
- }
331
- loadGrammar(scopeName) {
332
- return this._scopeToLang.get(scopeName);
333
- }
334
- addLanguage(l) {
335
- this._langs.set(l.name, l);
336
- if (l.aliases) l.aliases.forEach((a) => {
337
- this._langs.set(a, l);
338
- });
339
- this._scopeToLang.set(l.scopeName, l);
340
- if (l.injectTo) l.injectTo.forEach((i) => {
341
- if (!this._injections.get(i)) this._injections.set(i, []);
342
- this._injections.get(i).push(l.scopeName);
343
- });
344
- }
345
- getInjections(scopeName) {
346
- const scopeParts = scopeName.split(".");
347
- let injections = [];
348
- for (let i = 1; i <= scopeParts.length; i++) {
349
- const subScopeName = scopeParts.slice(0, i).join(".");
350
- injections = [...injections, ...this._injections.get(subScopeName) || []];
351
- }
352
- return injections;
353
- }
253
+ constructor(engine, langs) {
254
+ __publicField(this, "_langs", /* @__PURE__ */ new Map());
255
+ __publicField(this, "_scopeToLang", /* @__PURE__ */ new Map());
256
+ __publicField(this, "_injections", /* @__PURE__ */ new Map());
257
+ __publicField(this, "_onigLib");
258
+ this._onigLib = {
259
+ createOnigScanner: (patterns) => engine.createScanner(patterns),
260
+ createOnigString: (s) => engine.createString(s)
261
+ };
262
+ langs.forEach((i) => this.addLanguage(i));
263
+ }
264
+ get onigLib() {
265
+ return this._onigLib;
266
+ }
267
+ getLangRegistration(langIdOrAlias) {
268
+ return this._langs.get(langIdOrAlias);
269
+ }
270
+ loadGrammar(scopeName) {
271
+ return this._scopeToLang.get(scopeName);
272
+ }
273
+ addLanguage(l) {
274
+ this._langs.set(l.name, l);
275
+ if (l.aliases) l.aliases.forEach((a) => {
276
+ this._langs.set(a, l);
277
+ });
278
+ this._scopeToLang.set(l.scopeName, l);
279
+ if (l.injectTo) l.injectTo.forEach((i) => {
280
+ if (!this._injections.get(i)) this._injections.set(i, []);
281
+ this._injections.get(i).push(l.scopeName);
282
+ });
283
+ }
284
+ getInjections(scopeName) {
285
+ const scopeParts = scopeName.split(".");
286
+ let injections = [];
287
+ for (let i = 1; i <= scopeParts.length; i++) {
288
+ const subScopeName = scopeParts.slice(0, i).join(".");
289
+ injections = [...injections, ...this._injections.get(subScopeName) || []];
290
+ }
291
+ return injections;
292
+ }
354
293
  };
355
- var instancesCount = 0;
356
- /**
357
- * Get the minimal shiki primitive instance.
358
- *
359
- * Requires to provide the engine and all themes and languages upfront.
360
- */
294
+ let instancesCount = 0;
361
295
  function createShikiPrimitive(options) {
362
- instancesCount += 1;
363
- if (options.warnings !== false && instancesCount >= 10 && instancesCount % 10 === 0) 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.`);
364
- let isDisposed = false;
365
- if (!options.engine) throw new ShikiError("`engine` option is required for synchronous mode");
366
- const langs = (options.langs || []).flat(1);
367
- const themes = (options.themes || []).flat(1).map(normalizeTheme);
368
- const _registry = new Registry(new Resolver(options.engine, langs), themes, langs, options.langAlias);
369
- let _lastTheme;
370
- function resolveLangAlias$1(name) {
371
- return resolveLangAlias(name, options.langAlias);
372
- }
373
- function getLanguage(name) {
374
- ensureNotDisposed();
375
- const _lang = _registry.getGrammar(typeof name === "string" ? name : name.name);
376
- if (!_lang) throw new ShikiError(`Language \`${name}\` not found, you may need to load it first`);
377
- return _lang;
378
- }
379
- function getTheme(name) {
380
- if (name === "none") return {
381
- bg: "",
382
- fg: "",
383
- name: "none",
384
- settings: [],
385
- type: "dark"
386
- };
387
- ensureNotDisposed();
388
- const _theme = _registry.getTheme(name);
389
- if (!_theme) throw new ShikiError(`Theme \`${name}\` not found, you may need to load it first`);
390
- return _theme;
391
- }
392
- function setTheme(name) {
393
- ensureNotDisposed();
394
- const theme = getTheme(name);
395
- if (_lastTheme !== name) {
396
- _registry.setTheme(theme);
397
- _lastTheme = name;
398
- }
399
- return {
400
- theme,
401
- colorMap: _registry.getColorMap()
402
- };
403
- }
404
- function getLoadedThemes() {
405
- ensureNotDisposed();
406
- return _registry.getLoadedThemes();
407
- }
408
- function getLoadedLanguages() {
409
- ensureNotDisposed();
410
- return _registry.getLoadedLanguages();
411
- }
412
- function loadLanguageSync(...langs) {
413
- ensureNotDisposed();
414
- _registry.loadLanguages(langs.flat(1));
415
- }
416
- async function loadLanguage(...langs) {
417
- return loadLanguageSync(await resolveLangs(langs));
418
- }
419
- function loadThemeSync(...themes) {
420
- ensureNotDisposed();
421
- for (const theme of themes.flat(1)) _registry.loadTheme(theme);
422
- }
423
- async function loadTheme(...themes) {
424
- ensureNotDisposed();
425
- return loadThemeSync(await resolveThemes(themes));
426
- }
427
- function ensureNotDisposed() {
428
- if (isDisposed) throw new ShikiError("Shiki instance has been disposed");
429
- }
430
- function dispose() {
431
- if (isDisposed) return;
432
- isDisposed = true;
433
- _registry.dispose();
434
- instancesCount -= 1;
435
- }
436
- return {
437
- setTheme,
438
- getTheme,
439
- getLanguage,
440
- getLoadedThemes,
441
- getLoadedLanguages,
442
- resolveLangAlias: resolveLangAlias$1,
443
- loadLanguage,
444
- loadLanguageSync,
445
- loadTheme,
446
- loadThemeSync,
447
- dispose,
448
- [Symbol.dispose]: dispose
449
- };
296
+ instancesCount += 1;
297
+ if (options.warnings !== false && instancesCount >= 10 && instancesCount % 10 === 0) 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.`);
298
+ let isDisposed = false;
299
+ if (!options.engine) throw new ShikiError("`engine` option is required for synchronous mode");
300
+ const langs = (options.langs || []).flat(1);
301
+ const themes = (options.themes || []).flat(1).map(normalizeTheme);
302
+ const _registry = new Registry(new Resolver(options.engine, langs), themes, langs, options.langAlias);
303
+ let _lastTheme;
304
+ function resolveLangAlias$1(name) {
305
+ return resolveLangAlias(name, options.langAlias);
306
+ }
307
+ function getLanguage(name) {
308
+ ensureNotDisposed();
309
+ const _lang = _registry.getGrammar(typeof name === "string" ? name : name.name);
310
+ if (!_lang) throw new ShikiError(`Language \`${name}\` not found, you may need to load it first`);
311
+ return _lang;
312
+ }
313
+ function getTheme(name) {
314
+ if (name === "none") return {
315
+ bg: "",
316
+ fg: "",
317
+ name: "none",
318
+ settings: [],
319
+ type: "dark"
320
+ };
321
+ ensureNotDisposed();
322
+ const _theme = _registry.getTheme(name);
323
+ if (!_theme) throw new ShikiError(`Theme \`${name}\` not found, you may need to load it first`);
324
+ return _theme;
325
+ }
326
+ function setTheme(name) {
327
+ ensureNotDisposed();
328
+ const theme = getTheme(name);
329
+ if (_lastTheme !== name) {
330
+ _registry.setTheme(theme);
331
+ _lastTheme = name;
332
+ }
333
+ return {
334
+ theme,
335
+ colorMap: _registry.getColorMap()
336
+ };
337
+ }
338
+ function getLoadedThemes() {
339
+ ensureNotDisposed();
340
+ return _registry.getLoadedThemes();
341
+ }
342
+ function getLoadedLanguages() {
343
+ ensureNotDisposed();
344
+ return _registry.getLoadedLanguages();
345
+ }
346
+ function loadLanguageSync(...langs2) {
347
+ ensureNotDisposed();
348
+ _registry.loadLanguages(langs2.flat(1));
349
+ }
350
+ async function loadLanguage(...langs2) {
351
+ return loadLanguageSync(await resolveLangs(langs2));
352
+ }
353
+ function loadThemeSync(...themes2) {
354
+ ensureNotDisposed();
355
+ for (const theme of themes2.flat(1)) _registry.loadTheme(theme);
356
+ }
357
+ async function loadTheme(...themes2) {
358
+ ensureNotDisposed();
359
+ return loadThemeSync(await resolveThemes(themes2));
360
+ }
361
+ function ensureNotDisposed() {
362
+ if (isDisposed) throw new ShikiError("Shiki instance has been disposed");
363
+ }
364
+ function dispose() {
365
+ if (isDisposed) return;
366
+ isDisposed = true;
367
+ _registry.dispose();
368
+ instancesCount -= 1;
369
+ }
370
+ return {
371
+ setTheme,
372
+ getTheme,
373
+ getLanguage,
374
+ getLoadedThemes,
375
+ getLoadedLanguages,
376
+ resolveLangAlias: resolveLangAlias$1,
377
+ loadLanguage,
378
+ loadLanguageSync,
379
+ loadTheme,
380
+ loadThemeSync,
381
+ dispose,
382
+ [Symbol.dispose]: dispose
383
+ };
450
384
  }
451
- /**
452
- * Get the minimal shiki primitive instance.
453
- */
454
385
  async function createShikiPrimitiveAsync(options) {
455
- if (!options.engine) console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
456
- const [themes, langs, engine] = await Promise.all([
457
- resolveThemes(options.themes || []),
458
- resolveLangs(options.langs || []),
459
- options.engine
460
- ]);
461
- return createShikiPrimitive({
462
- ...options,
463
- themes,
464
- langs,
465
- engine
466
- });
386
+ if (!options.engine) console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
387
+ const [themes, langs, engine] = await Promise.all([
388
+ resolveThemes(options.themes || []),
389
+ resolveLangs(options.langs || []),
390
+ options.engine
391
+ ]);
392
+ return createShikiPrimitive({
393
+ ...options,
394
+ themes,
395
+ langs,
396
+ engine
397
+ });
467
398
  }
468
- var _grammarStateMap = /* @__PURE__ */ new WeakMap();
399
+ const _grammarStateMap = /* @__PURE__ */ new WeakMap();
469
400
  function setLastGrammarStateToMap(keys, state) {
470
- _grammarStateMap.set(keys, state);
401
+ _grammarStateMap.set(keys, state);
471
402
  }
472
403
  function getLastGrammarStateFromMap(keys) {
473
- return _grammarStateMap.get(keys);
404
+ return _grammarStateMap.get(keys);
474
405
  }
475
- /**
476
- * GrammarState is a special reference object that holds the state of a grammar.
477
- *
478
- * It's used to highlight code snippets that are part of the target language.
479
- */
480
- var GrammarState = class GrammarState {
481
- get themes() {
482
- return Object.keys(this._stacks);
483
- }
484
- get theme() {
485
- return this.themes[0];
486
- }
487
- get _stack() {
488
- return this._stacks[this.theme];
489
- }
490
- /**
491
- * Static method to create a initial grammar state.
492
- */
493
- static initial(lang, themes) {
494
- return new GrammarState(Object.fromEntries(toArray(themes).map((theme) => [theme, INITIAL])), lang);
495
- }
496
- constructor(...args) {
497
- _defineProperty(
498
- this,
499
- /**
500
- * Theme to Stack mapping
501
- */
502
- "_stacks",
503
- {}
504
- );
505
- _defineProperty(this, "lang", void 0);
506
- if (args.length === 2) {
507
- const [stacksMap, lang] = args;
508
- this.lang = lang;
509
- this._stacks = stacksMap;
510
- } else {
511
- const [stack, lang, theme] = args;
512
- this.lang = lang;
513
- this._stacks = { [theme]: stack };
514
- }
515
- }
516
- /**
517
- * Get the internal stack object.
518
- * @internal
519
- */
520
- getInternalStack(theme = this.theme) {
521
- return this._stacks[theme];
522
- }
523
- getScopes(theme = this.theme) {
524
- return getScopes(this._stacks[theme]);
525
- }
526
- toJSON() {
527
- return {
528
- lang: this.lang,
529
- theme: this.theme,
530
- themes: this.themes,
531
- scopes: this.getScopes()
532
- };
533
- }
406
+ var GrammarState = class GrammarState2 {
407
+ constructor(...args) {
408
+ /**
409
+ * Theme to Stack mapping
410
+ */
411
+ __publicField(this, "_stacks", {});
412
+ __publicField(this, "lang");
413
+ if (args.length === 2) {
414
+ const [stacksMap, lang] = args;
415
+ this.lang = lang;
416
+ this._stacks = stacksMap;
417
+ } else {
418
+ const [stack, lang, theme] = args;
419
+ this.lang = lang;
420
+ this._stacks = { [theme]: stack };
421
+ }
422
+ }
423
+ get themes() {
424
+ return Object.keys(this._stacks);
425
+ }
426
+ get theme() {
427
+ return this.themes[0];
428
+ }
429
+ get _stack() {
430
+ return this._stacks[this.theme];
431
+ }
432
+ /**
433
+ * Static method to create a initial grammar state.
434
+ */
435
+ static initial(lang, themes) {
436
+ return new GrammarState2(Object.fromEntries(toArray(themes).map((theme) => [theme, INITIAL])), lang);
437
+ }
438
+ /**
439
+ * Get the internal stack object.
440
+ * @internal
441
+ */
442
+ getInternalStack(theme = this.theme) {
443
+ return this._stacks[theme];
444
+ }
445
+ getScopes(theme = this.theme) {
446
+ return getScopes(this._stacks[theme]);
447
+ }
448
+ toJSON() {
449
+ return {
450
+ lang: this.lang,
451
+ theme: this.theme,
452
+ themes: this.themes,
453
+ scopes: this.getScopes()
454
+ };
455
+ }
534
456
  };
535
457
  function getScopes(stack) {
536
- const scopes = [];
537
- const visited = /* @__PURE__ */ new Set();
538
- function pushScope(stack) {
539
- if (visited.has(stack)) return;
540
- visited.add(stack);
541
- const name = stack?.nameScopesList?.scopeName;
542
- if (name) scopes.push(name);
543
- if (stack.parent) pushScope(stack.parent);
544
- }
545
- pushScope(stack);
546
- return scopes;
458
+ const scopes = [];
459
+ const visited = /* @__PURE__ */ new Set();
460
+ function pushScope(stack2) {
461
+ if (visited.has(stack2)) return;
462
+ visited.add(stack2);
463
+ const name = stack2?.nameScopesList?.scopeName;
464
+ if (name) scopes.push(name);
465
+ if (stack2.parent) pushScope(stack2.parent);
466
+ }
467
+ pushScope(stack);
468
+ return scopes;
547
469
  }
548
470
  function getGrammarStack(state, theme) {
549
- if (!(state instanceof GrammarState)) throw new ShikiError("Invalid grammar state");
550
- return state.getInternalStack(theme);
471
+ if (!(state instanceof GrammarState)) throw new ShikiError("Invalid grammar state");
472
+ return state.getInternalStack(theme);
551
473
  }
552
- /**
553
- * Code to tokens, with a simple theme.
554
- */
555
474
  function codeToTokensBase(primitive, code, options = {}) {
556
- const { theme: themeName = primitive.getLoadedThemes()[0] } = options;
557
- if (isPlainLang(primitive.resolveLangAlias(options.lang || "text")) || isNoneTheme(themeName)) return splitLines(code).map((line) => [{
558
- content: line[0],
559
- offset: line[1]
560
- }]);
561
- const { theme, colorMap } = primitive.setTheme(themeName);
562
- const _grammar = primitive.getLanguage(options.lang || "text");
563
- if (options.grammarState) {
564
- if (options.grammarState.lang !== _grammar.name) throw new ShikiError(`Grammar state language "${options.grammarState.lang}" does not match highlight language "${_grammar.name}"`);
565
- if (!options.grammarState.themes.includes(theme.name)) throw new ShikiError(`Grammar state themes "${options.grammarState.themes}" do not contain highlight theme "${theme.name}"`);
566
- }
567
- return tokenizeWithTheme(code, _grammar, theme, colorMap, options);
475
+ const { theme: themeName = primitive.getLoadedThemes()[0] } = options;
476
+ if (isPlainLang(primitive.resolveLangAlias(options.lang || "text")) || isNoneTheme(themeName)) return splitLines(code).map((line) => [{
477
+ content: line[0],
478
+ offset: line[1]
479
+ }]);
480
+ const { theme, colorMap } = primitive.setTheme(themeName);
481
+ const _grammar = primitive.getLanguage(options.lang || "text");
482
+ if (options.grammarState) {
483
+ if (options.grammarState.lang !== _grammar.name) throw new ShikiError(`Grammar state language "${options.grammarState.lang}" does not match highlight language "${_grammar.name}"`);
484
+ if (!options.grammarState.themes.includes(theme.name)) throw new ShikiError(`Grammar state themes "${options.grammarState.themes}" do not contain highlight theme "${theme.name}"`);
485
+ }
486
+ return tokenizeWithTheme(code, _grammar, theme, colorMap, options);
568
487
  }
569
488
  function getLastGrammarState(...args) {
570
- if (args.length === 2) return getLastGrammarStateFromMap(args[1]);
571
- const [primitive, code, options = {}] = args;
572
- const { lang = "text", theme: themeName = primitive.getLoadedThemes()[0] } = options;
573
- if (isPlainLang(lang) || isNoneTheme(themeName)) throw new ShikiError("Plain language does not have grammar state");
574
- if (lang === "ansi") throw new ShikiError("ANSI language does not have grammar state");
575
- const { theme, colorMap } = primitive.setTheme(themeName);
576
- const _grammar = primitive.getLanguage(lang);
577
- return new GrammarState(_tokenizeWithTheme(code, _grammar, theme, colorMap, options).stateStack, _grammar.name, theme.name);
489
+ if (args.length === 2) return getLastGrammarStateFromMap(args[1]);
490
+ const [primitive, code, options = {}] = args;
491
+ const { lang = "text", theme: themeName = primitive.getLoadedThemes()[0] } = options;
492
+ if (isPlainLang(lang) || isNoneTheme(themeName)) throw new ShikiError("Plain language does not have grammar state");
493
+ if (lang === "ansi") throw new ShikiError("ANSI language does not have grammar state");
494
+ const { theme, colorMap } = primitive.setTheme(themeName);
495
+ const _grammar = primitive.getLanguage(lang);
496
+ return new GrammarState(_tokenizeWithTheme(code, _grammar, theme, colorMap, options).stateStack, _grammar.name, theme.name);
578
497
  }
579
498
  function tokenizeWithTheme(code, grammar, theme, colorMap, options) {
580
- const result = _tokenizeWithTheme(code, grammar, theme, colorMap, options);
581
- const grammarState = new GrammarState(result.stateStack, grammar.name, theme.name);
582
- setLastGrammarStateToMap(result.tokens, grammarState);
583
- return result.tokens;
499
+ const result = _tokenizeWithTheme(code, grammar, theme, colorMap, options);
500
+ const grammarState = new GrammarState(result.stateStack, grammar.name, theme.name);
501
+ setLastGrammarStateToMap(result.tokens, grammarState);
502
+ return result.tokens;
584
503
  }
585
504
  function _tokenizeWithTheme(code, grammar, theme, colorMap, options) {
586
- const colorReplacements = resolveColorReplacements(theme, options);
587
- const { tokenizeMaxLineLength = 0, tokenizeTimeLimit = 500 } = options;
588
- const lines = splitLines(code);
589
- let stateStack = options.grammarState ? getGrammarStack(options.grammarState, theme.name) ?? INITIAL : options.grammarContextCode != null ? _tokenizeWithTheme(options.grammarContextCode, grammar, theme, colorMap, {
590
- ...options,
591
- grammarState: void 0,
592
- grammarContextCode: void 0
593
- }).stateStack : INITIAL;
594
- let actual = [];
595
- const final = [];
596
- for (let i = 0, len = lines.length; i < len; i++) {
597
- const [line, lineOffset] = lines[i];
598
- if (line === "") {
599
- actual = [];
600
- final.push([]);
601
- continue;
602
- }
603
- if (tokenizeMaxLineLength > 0 && line.length >= tokenizeMaxLineLength) {
604
- actual = [];
605
- final.push([{
606
- content: line,
607
- offset: lineOffset,
608
- color: "",
609
- fontStyle: 0
610
- }]);
611
- continue;
612
- }
613
- let resultWithScopes;
614
- let tokensWithScopes;
615
- let tokensWithScopesIndex;
616
- if (options.includeExplanation) {
617
- resultWithScopes = grammar.tokenizeLine(line, stateStack, tokenizeTimeLimit);
618
- tokensWithScopes = resultWithScopes.tokens;
619
- tokensWithScopesIndex = 0;
620
- }
621
- const result = grammar.tokenizeLine2(line, stateStack, tokenizeTimeLimit);
622
- const tokensLength = result.tokens.length / 2;
623
- for (let j = 0; j < tokensLength; j++) {
624
- const startIndex = result.tokens[2 * j];
625
- const nextStartIndex = j + 1 < tokensLength ? result.tokens[2 * j + 2] : line.length;
626
- if (startIndex === nextStartIndex) continue;
627
- const metadata = result.tokens[2 * j + 1];
628
- const color = applyColorReplacements(colorMap[EncodedTokenMetadata.getForeground(metadata)], colorReplacements);
629
- const fontStyle = EncodedTokenMetadata.getFontStyle(metadata);
630
- const token = {
631
- content: line.substring(startIndex, nextStartIndex),
632
- offset: lineOffset + startIndex,
633
- color,
634
- fontStyle
635
- };
636
- if (options.includeExplanation) {
637
- const themeSettingsSelectors = [];
638
- if (options.includeExplanation !== "scopeName") for (const setting of theme.settings) {
639
- let selectors;
640
- switch (typeof setting.scope) {
641
- case "string":
642
- selectors = setting.scope.split(/,/).map((scope) => scope.trim());
643
- break;
644
- case "object":
645
- selectors = setting.scope;
646
- break;
647
- default: continue;
648
- }
649
- themeSettingsSelectors.push({
650
- settings: setting,
651
- selectors: selectors.map((selector) => selector.split(/ /))
652
- });
653
- }
654
- token.explanation = [];
655
- let offset = 0;
656
- while (startIndex + offset < nextStartIndex) {
657
- const tokenWithScopes = tokensWithScopes[tokensWithScopesIndex];
658
- const tokenWithScopesText = line.substring(tokenWithScopes.startIndex, tokenWithScopes.endIndex);
659
- offset += tokenWithScopesText.length;
660
- token.explanation.push({
661
- content: tokenWithScopesText,
662
- scopes: options.includeExplanation === "scopeName" ? explainThemeScopesNameOnly(tokenWithScopes.scopes) : explainThemeScopesFull(themeSettingsSelectors, tokenWithScopes.scopes)
663
- });
664
- tokensWithScopesIndex += 1;
665
- }
666
- }
667
- actual.push(token);
668
- }
669
- final.push(actual);
670
- actual = [];
671
- stateStack = result.ruleStack;
672
- }
673
- return {
674
- tokens: final,
675
- stateStack
676
- };
505
+ const colorReplacements = resolveColorReplacements(theme, options);
506
+ const { tokenizeMaxLineLength = 0, tokenizeTimeLimit = 500 } = options;
507
+ const lines = splitLines(code);
508
+ let stateStack = options.grammarState ? getGrammarStack(options.grammarState, theme.name) ?? INITIAL : options.grammarContextCode != null ? _tokenizeWithTheme(options.grammarContextCode, grammar, theme, colorMap, {
509
+ ...options,
510
+ grammarState: void 0,
511
+ grammarContextCode: void 0
512
+ }).stateStack : INITIAL;
513
+ let actual = [];
514
+ const final = [];
515
+ for (let i = 0, len = lines.length; i < len; i++) {
516
+ const [line, lineOffset] = lines[i];
517
+ if (line === "") {
518
+ actual = [];
519
+ final.push([]);
520
+ continue;
521
+ }
522
+ if (tokenizeMaxLineLength > 0 && line.length >= tokenizeMaxLineLength) {
523
+ actual = [];
524
+ final.push([{
525
+ content: line,
526
+ offset: lineOffset,
527
+ color: "",
528
+ fontStyle: 0
529
+ }]);
530
+ continue;
531
+ }
532
+ let resultWithScopes;
533
+ let tokensWithScopes;
534
+ let tokensWithScopesIndex;
535
+ if (options.includeExplanation) {
536
+ resultWithScopes = grammar.tokenizeLine(line, stateStack, tokenizeTimeLimit);
537
+ tokensWithScopes = resultWithScopes.tokens;
538
+ tokensWithScopesIndex = 0;
539
+ }
540
+ const result = grammar.tokenizeLine2(line, stateStack, tokenizeTimeLimit);
541
+ const tokensLength = result.tokens.length / 2;
542
+ for (let j = 0; j < tokensLength; j++) {
543
+ const startIndex = result.tokens[2 * j];
544
+ const nextStartIndex = j + 1 < tokensLength ? result.tokens[2 * j + 2] : line.length;
545
+ if (startIndex === nextStartIndex) continue;
546
+ const metadata = result.tokens[2 * j + 1];
547
+ const color = applyColorReplacements(colorMap[EncodedTokenMetadata.getForeground(metadata)], colorReplacements);
548
+ const fontStyle = EncodedTokenMetadata.getFontStyle(metadata);
549
+ const token = {
550
+ content: line.substring(startIndex, nextStartIndex),
551
+ offset: lineOffset + startIndex,
552
+ color,
553
+ fontStyle
554
+ };
555
+ if (options.includeExplanation) {
556
+ const themeSettingsSelectors = [];
557
+ if (options.includeExplanation !== "scopeName") for (const setting of theme.settings) {
558
+ let selectors;
559
+ switch (typeof setting.scope) {
560
+ case "string":
561
+ selectors = setting.scope.split(/,/).map((scope) => scope.trim());
562
+ break;
563
+ case "object":
564
+ selectors = setting.scope;
565
+ break;
566
+ default:
567
+ continue;
568
+ }
569
+ themeSettingsSelectors.push({
570
+ settings: setting,
571
+ selectors: selectors.map((selector) => selector.split(/ /))
572
+ });
573
+ }
574
+ token.explanation = [];
575
+ let offset = 0;
576
+ while (startIndex + offset < nextStartIndex) {
577
+ const tokenWithScopes = tokensWithScopes[tokensWithScopesIndex];
578
+ const tokenWithScopesText = line.substring(tokenWithScopes.startIndex, tokenWithScopes.endIndex);
579
+ offset += tokenWithScopesText.length;
580
+ token.explanation.push({
581
+ content: tokenWithScopesText,
582
+ scopes: options.includeExplanation === "scopeName" ? explainThemeScopesNameOnly(tokenWithScopes.scopes) : explainThemeScopesFull(themeSettingsSelectors, tokenWithScopes.scopes)
583
+ });
584
+ tokensWithScopesIndex += 1;
585
+ }
586
+ }
587
+ actual.push(token);
588
+ }
589
+ final.push(actual);
590
+ actual = [];
591
+ stateStack = result.ruleStack;
592
+ }
593
+ return {
594
+ tokens: final,
595
+ stateStack
596
+ };
677
597
  }
678
598
  function explainThemeScopesNameOnly(scopes) {
679
- return scopes.map((scope) => ({ scopeName: scope }));
599
+ return scopes.map((scope) => ({ scopeName: scope }));
680
600
  }
681
601
  function explainThemeScopesFull(themeSelectors, scopes) {
682
- const result = [];
683
- for (let i = 0, len = scopes.length; i < len; i++) {
684
- const scope = scopes[i];
685
- result[i] = {
686
- scopeName: scope,
687
- themeMatches: explainThemeScope(themeSelectors, scope, scopes.slice(0, i))
688
- };
689
- }
690
- return result;
602
+ const result = [];
603
+ for (let i = 0, len = scopes.length; i < len; i++) {
604
+ const scope = scopes[i];
605
+ result[i] = {
606
+ scopeName: scope,
607
+ themeMatches: explainThemeScope(themeSelectors, scope, scopes.slice(0, i))
608
+ };
609
+ }
610
+ return result;
691
611
  }
692
612
  function matchesOne(selector, scope) {
693
- return selector === scope || scope.substring(0, selector.length) === selector && scope[selector.length] === ".";
613
+ return selector === scope || scope.substring(0, selector.length) === selector && scope[selector.length] === ".";
694
614
  }
695
615
  function matches(selectors, scope, parentScopes) {
696
- if (!matchesOne(selectors[selectors.length - 1], scope)) return false;
697
- let selectorParentIndex = selectors.length - 2;
698
- let parentIndex = parentScopes.length - 1;
699
- while (selectorParentIndex >= 0 && parentIndex >= 0) {
700
- if (matchesOne(selectors[selectorParentIndex], parentScopes[parentIndex])) selectorParentIndex -= 1;
701
- parentIndex -= 1;
702
- }
703
- if (selectorParentIndex === -1) return true;
704
- return false;
616
+ if (!matchesOne(selectors[selectors.length - 1], scope)) return false;
617
+ let selectorParentIndex = selectors.length - 2;
618
+ let parentIndex = parentScopes.length - 1;
619
+ while (selectorParentIndex >= 0 && parentIndex >= 0) {
620
+ if (matchesOne(selectors[selectorParentIndex], parentScopes[parentIndex])) selectorParentIndex -= 1;
621
+ parentIndex -= 1;
622
+ }
623
+ if (selectorParentIndex === -1) return true;
624
+ return false;
705
625
  }
706
626
  function explainThemeScope(themeSettingsSelectors, scope, parentScopes) {
707
- const result = [];
708
- for (const { selectors, settings } of themeSettingsSelectors) for (const selectorPieces of selectors) if (matches(selectorPieces, scope, parentScopes)) {
709
- result.push(settings);
710
- break;
711
- }
712
- return result;
627
+ const result = [];
628
+ for (const { selectors, settings } of themeSettingsSelectors) for (const selectorPieces of selectors) if (matches(selectorPieces, scope, parentScopes)) {
629
+ result.push(settings);
630
+ break;
631
+ }
632
+ return result;
713
633
  }
714
- /**
715
- * Get tokens with multiple themes
716
- */
717
634
  function codeToTokensWithThemes(primitive, code, options, codeToTokensBaseFn = codeToTokensBase) {
718
- const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({
719
- color: i[0],
720
- theme: i[1]
721
- }));
722
- const themedTokens = themes.map((t) => {
723
- const tokens = codeToTokensBaseFn(primitive, code, {
724
- ...options,
725
- theme: t.theme
726
- });
727
- return {
728
- tokens,
729
- state: getLastGrammarStateFromMap(tokens),
730
- theme: typeof t.theme === "string" ? t.theme : t.theme.name
731
- };
732
- });
733
- const tokens = alignThemesTokenization(...themedTokens.map((i) => i.tokens));
734
- const mergedTokens = tokens[0].map((line, lineIdx) => line.map((_token, tokenIdx) => {
735
- const mergedToken = {
736
- content: _token.content,
737
- variants: {},
738
- offset: _token.offset
739
- };
740
- if ("includeExplanation" in options && options.includeExplanation) mergedToken.explanation = _token.explanation;
741
- tokens.forEach((t, themeIdx) => {
742
- const { content: _, explanation: __, offset: ___, ...styles } = t[lineIdx][tokenIdx];
743
- mergedToken.variants[themes[themeIdx].color] = styles;
744
- });
745
- return mergedToken;
746
- }));
747
- const mergedGrammarState = themedTokens[0].state ? new GrammarState(Object.fromEntries(themedTokens.map((s) => [s.theme, s.state?.getInternalStack(s.theme)])), themedTokens[0].state.lang) : void 0;
748
- if (mergedGrammarState) setLastGrammarStateToMap(mergedTokens, mergedGrammarState);
749
- return mergedTokens;
635
+ const themes = Object.entries(options.themes).filter((i) => i[1]).map((i) => ({
636
+ color: i[0],
637
+ theme: i[1]
638
+ }));
639
+ const themedTokens = themes.map((t) => {
640
+ const tokens2 = codeToTokensBaseFn(primitive, code, {
641
+ ...options,
642
+ theme: t.theme
643
+ });
644
+ return {
645
+ tokens: tokens2,
646
+ state: getLastGrammarStateFromMap(tokens2),
647
+ theme: typeof t.theme === "string" ? t.theme : t.theme.name
648
+ };
649
+ });
650
+ const tokens = alignThemesTokenization(...themedTokens.map((i) => i.tokens));
651
+ const mergedTokens = tokens[0].map((line, lineIdx) => line.map((_token, tokenIdx) => {
652
+ const mergedToken = {
653
+ content: _token.content,
654
+ variants: {},
655
+ offset: _token.offset
656
+ };
657
+ if ("includeExplanation" in options && options.includeExplanation) mergedToken.explanation = _token.explanation;
658
+ tokens.forEach((t, themeIdx) => {
659
+ const { content: _, explanation: __, offset: ___, ...styles } = t[lineIdx][tokenIdx];
660
+ mergedToken.variants[themes[themeIdx].color] = styles;
661
+ });
662
+ return mergedToken;
663
+ }));
664
+ const mergedGrammarState = themedTokens[0].state ? new GrammarState(Object.fromEntries(themedTokens.map((s) => [s.theme, s.state?.getInternalStack(s.theme)])), themedTokens[0].state.lang) : void 0;
665
+ if (mergedGrammarState) setLastGrammarStateToMap(mergedTokens, mergedGrammarState);
666
+ return mergedTokens;
750
667
  }
751
- /**
752
- * Break tokens from multiple themes into same tokenization.
753
- *
754
- * For example, given two themes that tokenize `console.log("hello")` as:
755
- *
756
- * - `console . log (" hello ")` (6 tokens)
757
- * - `console .log ( "hello" )` (5 tokens)
758
- *
759
- * This function will return:
760
- *
761
- * - `console . log ( " hello " )` (8 tokens)
762
- * - `console . log ( " hello " )` (8 tokens)
763
- */
764
668
  function alignThemesTokenization(...themes) {
765
- const outThemes = themes.map(() => []);
766
- const count = themes.length;
767
- for (let i = 0; i < themes[0].length; i++) {
768
- const lines = themes.map((t) => t[i]);
769
- const outLines = outThemes.map(() => []);
770
- outThemes.forEach((t, i) => t.push(outLines[i]));
771
- const indexes = lines.map(() => 0);
772
- const current = lines.map((l) => l[0]);
773
- while (current.every((t) => t)) {
774
- const minLength = Math.min(...current.map((t) => t.content.length));
775
- for (let n = 0; n < count; n++) {
776
- const token = current[n];
777
- if (token.content.length === minLength) {
778
- outLines[n].push(token);
779
- indexes[n] += 1;
780
- current[n] = lines[n][indexes[n]];
781
- } else {
782
- outLines[n].push({
783
- ...token,
784
- content: token.content.slice(0, minLength)
785
- });
786
- current[n] = {
787
- ...token,
788
- content: token.content.slice(minLength),
789
- offset: token.offset + minLength
790
- };
791
- }
792
- }
793
- }
794
- }
795
- return outThemes;
669
+ const outThemes = themes.map(() => []);
670
+ const count = themes.length;
671
+ for (let i = 0; i < themes[0].length; i++) {
672
+ const lines = themes.map((t) => t[i]);
673
+ const outLines = outThemes.map(() => []);
674
+ outThemes.forEach((t, i2) => t.push(outLines[i2]));
675
+ const indexes = lines.map(() => 0);
676
+ const current = lines.map((l) => l[0]);
677
+ while (current.every((t) => t)) {
678
+ const minLength = Math.min(...current.map((t) => t.content.length));
679
+ for (let n = 0; n < count; n++) {
680
+ const token = current[n];
681
+ if (token.content.length === minLength) {
682
+ outLines[n].push(token);
683
+ indexes[n] += 1;
684
+ current[n] = lines[n][indexes[n]];
685
+ } else {
686
+ outLines[n].push({
687
+ ...token,
688
+ content: token.content.slice(0, minLength)
689
+ });
690
+ current[n] = {
691
+ ...token,
692
+ content: token.content.slice(minLength),
693
+ offset: token.offset + minLength
694
+ };
695
+ }
696
+ }
697
+ }
698
+ }
699
+ return outThemes;
796
700
  }
797
- //#endregion
798
- export { applyColorReplacements, codeToTokensBase, codeToTokensWithThemes, createShikiPrimitive, createShikiPrimitiveAsync, getLastGrammarState, getLastGrammarStateFromMap, isNoneTheme, isPlainLang, isSpecialLang, isSpecialTheme, normalizeGetter, normalizeTheme, resolveColorReplacements, setLastGrammarStateToMap, splitLines, toArray, tokenizeWithTheme };
701
+ export {
702
+ GrammarState,
703
+ Registry,
704
+ Resolver,
705
+ ShikiError,
706
+ alignThemesTokenization,
707
+ applyColorReplacements,
708
+ codeToTokensBase,
709
+ codeToTokensWithThemes,
710
+ createShikiPrimitive,
711
+ createShikiPrimitiveAsync,
712
+ getGrammarStack,
713
+ getLastGrammarState,
714
+ getLastGrammarStateFromMap,
715
+ isNoneTheme,
716
+ isPlainLang,
717
+ isSpecialLang,
718
+ isSpecialTheme,
719
+ normalizeGetter,
720
+ normalizeTheme,
721
+ resolveColorReplacements,
722
+ resolveLangAlias,
723
+ resolveLangs,
724
+ resolveThemes,
725
+ setLastGrammarStateToMap,
726
+ splitLines,
727
+ toArray,
728
+ tokenizeWithTheme
729
+ };