@btst/stack 1.9.0 → 1.10.0

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 (1529) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +7 -0
  2. package/dist/_virtual/_commonjsHelpers.mjs +5 -0
  3. package/dist/_virtual/a11y-dark.cjs +5 -0
  4. package/dist/_virtual/a11y-dark.mjs +3 -0
  5. package/dist/_virtual/atom-dark.cjs +5 -0
  6. package/dist/_virtual/atom-dark.mjs +3 -0
  7. package/dist/_virtual/base16-ateliersulphurpool.light.cjs +5 -0
  8. package/dist/_virtual/base16-ateliersulphurpool.light.mjs +3 -0
  9. package/dist/_virtual/cb.cjs +5 -0
  10. package/dist/_virtual/cb.mjs +3 -0
  11. package/dist/_virtual/coldark-cold.cjs +5 -0
  12. package/dist/_virtual/coldark-cold.mjs +3 -0
  13. package/dist/_virtual/coldark-dark.cjs +5 -0
  14. package/dist/_virtual/coldark-dark.mjs +3 -0
  15. package/dist/_virtual/coy-without-shadows.cjs +5 -0
  16. package/dist/_virtual/coy-without-shadows.mjs +3 -0
  17. package/dist/_virtual/coy.cjs +5 -0
  18. package/dist/_virtual/coy.mjs +3 -0
  19. package/dist/_virtual/darcula.cjs +5 -0
  20. package/dist/_virtual/darcula.mjs +3 -0
  21. package/dist/_virtual/dark.cjs +5 -0
  22. package/dist/_virtual/dark.mjs +3 -0
  23. package/dist/_virtual/dracula.cjs +5 -0
  24. package/dist/_virtual/dracula.mjs +3 -0
  25. package/dist/_virtual/duotone-dark.cjs +5 -0
  26. package/dist/_virtual/duotone-dark.mjs +3 -0
  27. package/dist/_virtual/duotone-earth.cjs +5 -0
  28. package/dist/_virtual/duotone-earth.mjs +3 -0
  29. package/dist/_virtual/duotone-forest.cjs +5 -0
  30. package/dist/_virtual/duotone-forest.mjs +3 -0
  31. package/dist/_virtual/duotone-light.cjs +5 -0
  32. package/dist/_virtual/duotone-light.mjs +3 -0
  33. package/dist/_virtual/duotone-sea.cjs +5 -0
  34. package/dist/_virtual/duotone-sea.mjs +3 -0
  35. package/dist/_virtual/duotone-space.cjs +5 -0
  36. package/dist/_virtual/duotone-space.mjs +3 -0
  37. package/dist/_virtual/funky.cjs +5 -0
  38. package/dist/_virtual/funky.mjs +3 -0
  39. package/dist/_virtual/ghcolors.cjs +5 -0
  40. package/dist/_virtual/ghcolors.mjs +3 -0
  41. package/dist/_virtual/gruvbox-dark.cjs +5 -0
  42. package/dist/_virtual/gruvbox-dark.mjs +3 -0
  43. package/dist/_virtual/gruvbox-light.cjs +5 -0
  44. package/dist/_virtual/gruvbox-light.mjs +3 -0
  45. package/dist/_virtual/holi-theme.cjs +5 -0
  46. package/dist/_virtual/holi-theme.mjs +3 -0
  47. package/dist/_virtual/hopscotch.cjs +5 -0
  48. package/dist/_virtual/hopscotch.mjs +3 -0
  49. package/dist/_virtual/index.cjs +9 -0
  50. package/dist/_virtual/index.mjs +7 -0
  51. package/dist/_virtual/index2.cjs +7 -0
  52. package/dist/_virtual/index2.mjs +5 -0
  53. package/dist/_virtual/index3.cjs +7 -0
  54. package/dist/_virtual/index3.mjs +5 -0
  55. package/dist/_virtual/index4.cjs +9 -0
  56. package/dist/_virtual/index4.mjs +7 -0
  57. package/dist/_virtual/index5.cjs +5 -0
  58. package/dist/_virtual/index5.mjs +3 -0
  59. package/dist/_virtual/index6.cjs +5 -0
  60. package/dist/_virtual/index6.mjs +3 -0
  61. package/dist/_virtual/index7.cjs +5 -0
  62. package/dist/_virtual/index7.mjs +3 -0
  63. package/dist/_virtual/index8.cjs +5 -0
  64. package/dist/_virtual/index8.mjs +3 -0
  65. package/dist/_virtual/interopRequireDefault.cjs +5 -0
  66. package/dist/_virtual/interopRequireDefault.mjs +3 -0
  67. package/dist/_virtual/lucario.cjs +5 -0
  68. package/dist/_virtual/lucario.mjs +3 -0
  69. package/dist/_virtual/material-dark.cjs +5 -0
  70. package/dist/_virtual/material-dark.mjs +3 -0
  71. package/dist/_virtual/material-light.cjs +5 -0
  72. package/dist/_virtual/material-light.mjs +3 -0
  73. package/dist/_virtual/material-oceanic.cjs +5 -0
  74. package/dist/_virtual/material-oceanic.mjs +3 -0
  75. package/dist/_virtual/night-owl.cjs +5 -0
  76. package/dist/_virtual/night-owl.mjs +3 -0
  77. package/dist/_virtual/nord.cjs +5 -0
  78. package/dist/_virtual/nord.mjs +3 -0
  79. package/dist/_virtual/okaidia.cjs +5 -0
  80. package/dist/_virtual/okaidia.mjs +3 -0
  81. package/dist/_virtual/one-dark.cjs +5 -0
  82. package/dist/_virtual/one-dark.mjs +3 -0
  83. package/dist/_virtual/one-light.cjs +5 -0
  84. package/dist/_virtual/one-light.mjs +3 -0
  85. package/dist/_virtual/pojoaque.cjs +5 -0
  86. package/dist/_virtual/pojoaque.mjs +3 -0
  87. package/dist/_virtual/prism.cjs +5 -0
  88. package/dist/_virtual/prism.mjs +3 -0
  89. package/dist/_virtual/shades-of-purple.cjs +5 -0
  90. package/dist/_virtual/shades-of-purple.mjs +3 -0
  91. package/dist/_virtual/solarized-dark-atom.cjs +5 -0
  92. package/dist/_virtual/solarized-dark-atom.mjs +3 -0
  93. package/dist/_virtual/solarizedlight.cjs +5 -0
  94. package/dist/_virtual/solarizedlight.mjs +3 -0
  95. package/dist/_virtual/synthwave84.cjs +5 -0
  96. package/dist/_virtual/synthwave84.mjs +3 -0
  97. package/dist/_virtual/tomorrow.cjs +5 -0
  98. package/dist/_virtual/tomorrow.mjs +3 -0
  99. package/dist/_virtual/twilight.cjs +5 -0
  100. package/dist/_virtual/twilight.mjs +3 -0
  101. package/dist/_virtual/use-sync-external-store-shim.development.cjs +5 -0
  102. package/dist/_virtual/use-sync-external-store-shim.development.mjs +3 -0
  103. package/dist/_virtual/use-sync-external-store-shim.development2.cjs +5 -0
  104. package/dist/_virtual/use-sync-external-store-shim.development2.mjs +3 -0
  105. package/dist/_virtual/use-sync-external-store-shim.production.cjs +5 -0
  106. package/dist/_virtual/use-sync-external-store-shim.production.min.cjs +5 -0
  107. package/dist/_virtual/use-sync-external-store-shim.production.min.mjs +3 -0
  108. package/dist/_virtual/use-sync-external-store-shim.production.mjs +3 -0
  109. package/dist/_virtual/vs.cjs +5 -0
  110. package/dist/_virtual/vs.mjs +3 -0
  111. package/dist/_virtual/vsc-dark-plus.cjs +5 -0
  112. package/dist/_virtual/vsc-dark-plus.mjs +3 -0
  113. package/dist/_virtual/with-selector.cjs +9 -0
  114. package/dist/_virtual/with-selector.development.cjs +5 -0
  115. package/dist/_virtual/with-selector.development.mjs +3 -0
  116. package/dist/_virtual/with-selector.development2.cjs +5 -0
  117. package/dist/_virtual/with-selector.development2.mjs +3 -0
  118. package/dist/_virtual/with-selector.mjs +7 -0
  119. package/dist/_virtual/with-selector.production.cjs +5 -0
  120. package/dist/_virtual/with-selector.production.min.cjs +5 -0
  121. package/dist/_virtual/with-selector.production.min.mjs +3 -0
  122. package/dist/_virtual/with-selector.production.mjs +3 -0
  123. package/dist/_virtual/with-selector2.cjs +7 -0
  124. package/dist/_virtual/with-selector2.mjs +5 -0
  125. package/dist/_virtual/with-selector3.cjs +5 -0
  126. package/dist/_virtual/with-selector3.mjs +3 -0
  127. package/dist/_virtual/with-selector4.cjs +5 -0
  128. package/dist/_virtual/with-selector4.mjs +3 -0
  129. package/dist/_virtual/xonokai.cjs +5 -0
  130. package/dist/_virtual/xonokai.mjs +3 -0
  131. package/dist/_virtual/z-touch.cjs +5 -0
  132. package/dist/_virtual/z-touch.mjs +3 -0
  133. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.cjs +9 -0
  134. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +7 -0
  135. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.cjs +9 -0
  136. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +7 -0
  137. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.cjs +14 -0
  138. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
  139. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.cjs +13 -0
  140. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.mjs +11 -0
  141. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.cjs +7 -0
  142. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +5 -0
  143. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.cjs +7 -0
  144. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +5 -0
  145. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.cjs +17 -0
  146. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
  147. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.cjs +13 -0
  148. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +11 -0
  149. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.cjs +12 -0
  150. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
  151. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +16 -0
  152. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +14 -0
  153. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +11 -0
  154. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
  155. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.cjs +13 -0
  156. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
  157. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.cjs +13 -0
  158. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +11 -0
  159. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.cjs +21 -0
  160. package/dist/node_modules/.pnpm/@babel_runtime@7.28.4/node_modules/@babel/runtime/helpers/interopRequireDefault.mjs +19 -0
  161. package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.cjs +62 -0
  162. package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +64 -3
  163. package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.0/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +1 -1
  164. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +236 -0
  165. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +236 -2
  166. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +17 -0
  167. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +19 -4
  168. package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -1
  169. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.cjs +269 -0
  170. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.mjs +243 -0
  171. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.cjs +48 -0
  172. package/dist/node_modules/.pnpm/@floating-ui_react@0.27.16_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react/dist/floating-ui.react.utils.mjs +32 -0
  173. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +4 -0
  174. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +3 -1
  175. package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.cjs +15 -15
  176. package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types_re_947719a27ff11ec6f09710dd9e85efc5/node_modules/@radix-ui/react-accordion/dist/index.mjs +1 -1
  177. package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.12_@types_react-dom@19.2.3_@types_react@19.2.6__@types__d025a77f62ee83ca6bd8b0ea1f9de738/node_modules/@radix-ui/react-collapsible/dist/index.cjs +12 -12
  178. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs +2 -0
  179. package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.16_@types_react-dom@19.2.3_@types_react@19.2.6__@type_a50051c7210b6fbd5be09388bda08578/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +3 -2
  180. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs +569 -0
  181. package/dist/node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +544 -0
  182. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.cjs +178 -0
  183. package/dist/node_modules/.pnpm/@radix-ui_react-toggle-group@1.1.11_@types_react-dom@19.2.3_@types_react@19.2.6__@types_35b57316ac5b867853bccd72352fef32/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +169 -0
  184. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.cjs +54 -0
  185. package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1.10_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_e02209ddc23a9de32bfddf93e8b4dc03/node_modules/@radix-ui/react-toggle/dist/index.mjs +37 -0
  186. package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.cjs +519 -0
  187. package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_react_13303e30111c8a8dd7effa9eaa043fd3/node_modules/@radix-ui/react-tooltip/dist/index.mjs +492 -0
  188. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +2 -0
  189. package/dist/node_modules/.pnpm/@radix-ui_react-visually-hidden@1.2.3_@types_react-dom@19.2.3_@types_react@19.2.6__@typ_f453379bbd5a4932ec515167f81be42a/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +2 -1
  190. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.cjs +6410 -0
  191. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/index.mjs +6305 -0
  192. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.cjs +22 -0
  193. package/dist/node_modules/.pnpm/@tiptap_core@3.15.3_@tiptap_pm@3.15.3/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.mjs +16 -0
  194. package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.cjs +77 -0
  195. package/dist/node_modules/.pnpm/@tiptap_extension-blockquote@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-blockquote/dist/index.mjs +74 -0
  196. package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.cjs +96 -0
  197. package/dist/node_modules/.pnpm/@tiptap_extension-bold@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-bold/dist/index.mjs +90 -0
  198. package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.cjs +375 -0
  199. package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-bubble-menu/dist/index.mjs +372 -0
  200. package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.cjs +150 -0
  201. package/dist/node_modules/.pnpm/@tiptap_extension-code-block-lowlight@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@ti_2245ac34d84b5693aa60775b0f7781e3/node_modules/@tiptap/extension-code-block-lowlight/dist/index.mjs +144 -0
  202. package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.cjs +325 -0
  203. package/dist/node_modules/.pnpm/@tiptap_extension-code-block@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-code-block/dist/index.mjs +318 -0
  204. package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.cjs +72 -0
  205. package/dist/node_modules/.pnpm/@tiptap_extension-code@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-code/dist/index.mjs +68 -0
  206. package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.cjs +18 -0
  207. package/dist/node_modules/.pnpm/@tiptap_extension-document@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-document/dist/index.mjs +16 -0
  208. package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.cjs +246 -0
  209. package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-floating-menu/dist/index.mjs +243 -0
  210. package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.cjs +68 -0
  211. package/dist/node_modules/.pnpm/@tiptap_extension-hard-break@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-hard-break/dist/index.mjs +66 -0
  212. package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.cjs +88 -0
  213. package/dist/node_modules/.pnpm/@tiptap_extension-heading@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-heading/dist/index.mjs +86 -0
  214. package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.cjs +82 -0
  215. package/dist/node_modules/.pnpm/@tiptap_extension-horizontal-rule@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-horizontal-rule/dist/index.mjs +80 -0
  216. package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.cjs +156 -0
  217. package/dist/node_modules/.pnpm/@tiptap_extension-image@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-image/dist/index.mjs +153 -0
  218. package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.cjs +94 -0
  219. package/dist/node_modules/.pnpm/@tiptap_extension-italic@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-italic/dist/index.mjs +88 -0
  220. package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.cjs +421 -0
  221. package/dist/node_modules/.pnpm/@tiptap_extension-link@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-link/dist/index.mjs +418 -0
  222. package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.cjs +1060 -0
  223. package/dist/node_modules/.pnpm/@tiptap_extension-list@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-list/dist/index.mjs +1049 -0
  224. package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.cjs +54 -0
  225. package/dist/node_modules/.pnpm/@tiptap_extension-paragraph@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-paragraph/dist/index.mjs +52 -0
  226. package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.cjs +81 -0
  227. package/dist/node_modules/.pnpm/@tiptap_extension-strike@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-strike/dist/index.mjs +77 -0
  228. package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.cjs +580 -0
  229. package/dist/node_modules/.pnpm/@tiptap_extension-table@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extension-table/dist/index.mjs +568 -0
  230. package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.cjs +346 -0
  231. package/dist/node_modules/.pnpm/@tiptap_extension-text-style@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text-style/dist/index.mjs +339 -0
  232. package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.cjs +18 -0
  233. package/dist/node_modules/.pnpm/@tiptap_extension-text@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-text/dist/index.mjs +16 -0
  234. package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.cjs +216 -0
  235. package/dist/node_modules/.pnpm/@tiptap_extension-typography@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-typography/dist/index.mjs +192 -0
  236. package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.cjs +76 -0
  237. package/dist/node_modules/.pnpm/@tiptap_extension-underline@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3_/node_modules/@tiptap/extension-underline/dist/index.mjs +74 -0
  238. package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.cjs +364 -0
  239. package/dist/node_modules/.pnpm/@tiptap_extensions@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/extensions/dist/index.mjs +357 -0
  240. package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.cjs +958 -0
  241. package/dist/node_modules/.pnpm/@tiptap_markdown@3.15.3_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tiptap_pm@3.15.3/node_modules/@tiptap/markdown/dist/index.mjs +947 -0
  242. package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.cjs +1030 -0
  243. package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/index.mjs +909 -0
  244. package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.cjs +122 -0
  245. package/dist/node_modules/.pnpm/@tiptap_react@3.15.3_@floating-ui_dom@1.7.4_@tiptap_core@3.15.3_@tiptap_pm@3.15.3__@tip_d7a2a9a319317617a8908309649a6dda/node_modules/@tiptap/react/dist/menus/index.mjs +116 -0
  246. package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.cjs +97 -0
  247. package/dist/node_modules/.pnpm/@tiptap_starter-kit@3.15.3/node_modules/@tiptap/starter-kit/dist/index.mjs +95 -0
  248. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.cjs +1034 -0
  249. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +1020 -0
  250. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.cjs +43 -0
  251. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +39 -0
  252. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.cjs +281 -0
  253. package/dist/node_modules/.pnpm/@use-gesture_core@10.3.1/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +279 -0
  254. package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.cjs +36 -0
  255. package/dist/node_modules/.pnpm/@use-gesture_react@10.3.1_react@19.2.0/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +27 -0
  256. package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.cjs +117 -0
  257. package/dist/node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.mjs +115 -0
  258. package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.cjs +2136 -0
  259. package/dist/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.mjs +2134 -0
  260. package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.cjs +39 -0
  261. package/dist/node_modules/.pnpm/character-reference-invalid@2.0.1/node_modules/character-reference-invalid/index.mjs +37 -0
  262. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.cjs +53 -0
  263. package/dist/node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.mjs +51 -0
  264. package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.cjs +23 -0
  265. package/dist/node_modules/.pnpm/decode-named-character-reference@1.2.0/node_modules/decode-named-character-reference/index.mjs +21 -0
  266. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.cjs +57 -0
  267. package/dist/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.mjs +55 -0
  268. package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.cjs +645 -0
  269. package/dist/node_modules/.pnpm/fast-equals@5.4.0/node_modules/fast-equals/dist/es/index.mjs +641 -0
  270. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.cjs +91 -0
  271. package/dist/node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.mjs +89 -0
  272. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.cjs +314 -0
  273. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.mjs +312 -0
  274. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.cjs +24 -0
  275. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/index.mjs +22 -0
  276. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.cjs +50 -0
  277. package/dist/node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +48 -0
  278. package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.cjs +541 -0
  279. package/dist/node_modules/.pnpm/he-tree-react@1.2.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/he-tree-react/dist/index.mjs +533 -0
  280. package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.cjs +153 -0
  281. package/dist/node_modules/.pnpm/helper-js@3.1.6/node_modules/helper-js/dist/index.esm.mjs +145 -0
  282. package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.cjs +868 -0
  283. package/dist/node_modules/.pnpm/immer@11.1.3/node_modules/immer/dist/immer.mjs +859 -0
  284. package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.cjs +20 -0
  285. package/dist/node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.mjs +18 -0
  286. package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.cjs +17 -0
  287. package/dist/node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.mjs +15 -0
  288. package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.cjs +17 -0
  289. package/dist/node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.mjs +15 -0
  290. package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.cjs +21 -0
  291. package/dist/node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.mjs +19 -0
  292. package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.cjs +1753 -0
  293. package/dist/node_modules/.pnpm/linkifyjs@4.3.2/node_modules/linkifyjs/dist/linkify.mjs +1742 -0
  294. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.cjs +131 -0
  295. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/common.mjs +89 -0
  296. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.cjs +470 -0
  297. package/dist/node_modules/.pnpm/lowlight@3.3.0/node_modules/lowlight/lib/index.mjs +464 -0
  298. package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.cjs +2177 -0
  299. package/dist/node_modules/.pnpm/marked@15.0.12/node_modules/marked/lib/marked.esm.mjs +2167 -0
  300. package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.cjs +23 -0
  301. package/dist/node_modules/.pnpm/next-themes@0.4.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/next-themes/dist/index.mjs +6 -0
  302. package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.cjs +472 -0
  303. package/dist/node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.mjs +466 -0
  304. package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.cjs +139 -0
  305. package/dist/node_modules/.pnpm/orderedmap@2.1.1/node_modules/orderedmap/dist/index.mjs +137 -0
  306. package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.cjs +410 -0
  307. package/dist/node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.mjs +408 -0
  308. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.cjs +18 -0
  309. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.mjs +15 -0
  310. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.cjs +65 -0
  311. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.mjs +63 -0
  312. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.cjs +102 -0
  313. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/find.mjs +100 -0
  314. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.cjs +319 -0
  315. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.mjs +317 -0
  316. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.cjs +16 -0
  317. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.mjs +14 -0
  318. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.cjs +565 -0
  319. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/svg.mjs +563 -0
  320. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.cjs +17 -0
  321. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.mjs +15 -0
  322. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.cjs +15 -0
  323. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.mjs +13 -0
  324. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.cjs +48 -0
  325. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.mjs +46 -0
  326. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.cjs +65 -0
  327. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.mjs +63 -0
  328. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.cjs +36 -0
  329. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.mjs +34 -0
  330. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.cjs +32 -0
  331. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.mjs +30 -0
  332. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.cjs +33 -0
  333. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.mjs +31 -0
  334. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.cjs +23 -0
  335. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.mjs +15 -0
  336. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.cjs +21 -0
  337. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xlink.mjs +19 -0
  338. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.cjs +13 -0
  339. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xml.mjs +11 -0
  340. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.cjs +13 -0
  341. package/dist/node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/xmlns.mjs +11 -0
  342. package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.cjs +673 -0
  343. package/dist/node_modules/.pnpm/prosemirror-commands@1.7.1/node_modules/prosemirror-commands/dist/index.mjs +650 -0
  344. package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.cjs +148 -0
  345. package/dist/node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.mjs +146 -0
  346. package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.cjs +242 -0
  347. package/dist/node_modules/.pnpm/prosemirror-gapcursor@1.4.0/node_modules/prosemirror-gapcursor/dist/index.mjs +239 -0
  348. package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.cjs +418 -0
  349. package/dist/node_modules/.pnpm/prosemirror-history@1.5.0/node_modules/prosemirror-history/dist/index.mjs +414 -0
  350. package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.cjs +131 -0
  351. package/dist/node_modules/.pnpm/prosemirror-keymap@1.2.3/node_modules/prosemirror-keymap/dist/index.mjs +128 -0
  352. package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.cjs +3478 -0
  353. package/dist/node_modules/.pnpm/prosemirror-model@1.25.4/node_modules/prosemirror-model/dist/index.mjs +3464 -0
  354. package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.cjs +163 -0
  355. package/dist/node_modules/.pnpm/prosemirror-schema-list@1.5.1/node_modules/prosemirror-schema-list/dist/index.mjs +158 -0
  356. package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.cjs +1012 -0
  357. package/dist/node_modules/.pnpm/prosemirror-state@1.4.4/node_modules/prosemirror-state/dist/index.mjs +1002 -0
  358. package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.cjs +2211 -0
  359. package/dist/node_modules/.pnpm/prosemirror-tables@1.8.1/node_modules/prosemirror-tables/dist/index.mjs +2161 -0
  360. package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.cjs +2183 -0
  361. package/dist/node_modules/.pnpm/prosemirror-transform@1.10.5/node_modules/prosemirror-transform/dist/index.mjs +2160 -0
  362. package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.cjs +5817 -0
  363. package/dist/node_modules/.pnpm/prosemirror-view@1.41.3/node_modules/prosemirror-view/dist/index.mjs +5813 -0
  364. package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.cjs +101 -0
  365. package/dist/node_modules/.pnpm/react-base-virtual-list@1.1.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-base-virtual-list/dist/index.mjs +94 -0
  366. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.cjs +807 -0
  367. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-medium-image-zoom/dist/index.mjs +800 -0
  368. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.cjs +2418 -0
  369. package/dist/node_modules/.pnpm/react-resizable-panels@2.1.9_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-resizable-panels/dist/react-resizable-panels.esm.mjs +2393 -0
  370. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.cjs +166 -0
  371. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark.mjs +164 -0
  372. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.cjs +173 -0
  373. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/atom-dark.mjs +171 -0
  374. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.cjs +217 -0
  375. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/base16-ateliersulphurpool.light.mjs +215 -0
  376. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.cjs +181 -0
  377. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/cb.mjs +179 -0
  378. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.cjs +406 -0
  379. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-cold.mjs +404 -0
  380. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.cjs +406 -0
  381. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coldark-dark.mjs +404 -0
  382. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.cjs +202 -0
  383. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy-without-shadows.mjs +200 -0
  384. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.cjs +269 -0
  385. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/coy.mjs +267 -0
  386. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.cjs +221 -0
  387. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/darcula.mjs +219 -0
  388. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.cjs +174 -0
  389. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dark.mjs +172 -0
  390. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.cjs +174 -0
  391. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/dracula.mjs +172 -0
  392. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.cjs +238 -0
  393. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-dark.mjs +236 -0
  394. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.cjs +238 -0
  395. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-earth.mjs +236 -0
  396. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.cjs +238 -0
  397. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-forest.mjs +236 -0
  398. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.cjs +238 -0
  399. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-light.mjs +236 -0
  400. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.cjs +238 -0
  401. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-sea.mjs +236 -0
  402. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.cjs +238 -0
  403. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/duotone-space.mjs +236 -0
  404. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.cjs +181 -0
  405. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/funky.mjs +179 -0
  406. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.cjs +198 -0
  407. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/ghcolors.mjs +196 -0
  408. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.cjs +197 -0
  409. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-dark.mjs +195 -0
  410. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.cjs +197 -0
  411. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/gruvbox-light.mjs +195 -0
  412. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.cjs +214 -0
  413. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/holi-theme.mjs +212 -0
  414. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.cjs +168 -0
  415. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/hopscotch.mjs +166 -0
  416. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.cjs +373 -0
  417. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.mjs +371 -0
  418. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.cjs +174 -0
  419. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/lucario.mjs +172 -0
  420. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.cjs +215 -0
  421. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-dark.mjs +213 -0
  422. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.cjs +223 -0
  423. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-light.mjs +221 -0
  424. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.cjs +219 -0
  425. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/material-oceanic.mjs +217 -0
  426. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.cjs +212 -0
  427. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/night-owl.mjs +210 -0
  428. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.cjs +172 -0
  429. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/nord.mjs +170 -0
  430. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.cjs +176 -0
  431. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/okaidia.mjs +174 -0
  432. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.cjs +521 -0
  433. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-dark.mjs +519 -0
  434. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.cjs +509 -0
  435. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/one-light.mjs +507 -0
  436. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.cjs +181 -0
  437. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/pojoaque.mjs +179 -0
  438. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.cjs +212 -0
  439. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/prism.mjs +210 -0
  440. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.cjs +254 -0
  441. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/shades-of-purple.mjs +252 -0
  442. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.cjs +173 -0
  443. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarized-dark-atom.mjs +171 -0
  444. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.cjs +188 -0
  445. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/solarizedlight.mjs +186 -0
  446. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.cjs +203 -0
  447. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/synthwave84.mjs +201 -0
  448. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.cjs +173 -0
  449. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/tomorrow.mjs +171 -0
  450. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.cjs +234 -0
  451. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/twilight.mjs +232 -0
  452. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.cjs +226 -0
  453. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vs.mjs +224 -0
  454. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.cjs +302 -0
  455. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/vsc-dark-plus.mjs +300 -0
  456. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.cjs +200 -0
  457. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/xonokai.mjs +198 -0
  458. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.cjs +216 -0
  459. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/z-touch.mjs +214 -0
  460. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.cjs +8 -0
  461. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +6 -0
  462. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.cjs +121 -0
  463. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +110 -0
  464. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.cjs +394 -0
  465. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +388 -0
  466. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.cjs +9 -0
  467. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +7 -0
  468. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.cjs +12 -0
  469. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
  470. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.cjs +196 -0
  471. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.0/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +194 -0
  472. package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.cjs +1867 -0
  473. package/dist/node_modules/.pnpm/react-zoom-pan-pinch@3.7.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-zoom-pan-pinch/dist/index.esm.mjs +1854 -0
  474. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.cjs +66 -0
  475. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abap.mjs +64 -0
  476. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.cjs +70 -0
  477. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/abnf.mjs +68 -0
  478. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.cjs +37 -0
  479. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/actionscript.mjs +35 -0
  480. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.cjs +38 -0
  481. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ada.mjs +36 -0
  482. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.cjs +38 -0
  483. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/agda.mjs +36 -0
  484. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.cjs +42 -0
  485. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/al.mjs +40 -0
  486. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.cjs +81 -0
  487. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/antlr4.mjs +79 -0
  488. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.cjs +63 -0
  489. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apacheconf.mjs +61 -0
  490. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.cjs +93 -0
  491. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apex.mjs +91 -0
  492. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.cjs +48 -0
  493. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/apl.mjs +46 -0
  494. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.cjs +33 -0
  495. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/applescript.mjs +31 -0
  496. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.cjs +64 -0
  497. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aql.mjs +62 -0
  498. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.cjs +26 -0
  499. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arduino.mjs +24 -0
  500. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.cjs +24 -0
  501. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arff.mjs +22 -0
  502. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.cjs +61 -0
  503. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/armasm.mjs +59 -0
  504. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.cjs +106 -0
  505. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/arturo.mjs +104 -0
  506. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.cjs +245 -0
  507. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asciidoc.mjs +243 -0
  508. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.cjs +44 -0
  509. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asm6502.mjs +42 -0
  510. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.cjs +56 -0
  511. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/asmatmel.mjs +54 -0
  512. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.cjs +78 -0
  513. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/aspnet.mjs +76 -0
  514. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.cjs +59 -0
  515. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autohotkey.mjs +57 -0
  516. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.cjs +50 -0
  517. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/autoit.mjs +48 -0
  518. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.cjs +203 -0
  519. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avisynth.mjs +201 -0
  520. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.cjs +61 -0
  521. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/avro-idl.mjs +59 -0
  522. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.cjs +43 -0
  523. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/awk.mjs +41 -0
  524. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.cjs +254 -0
  525. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bash.mjs +252 -0
  526. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.cjs +33 -0
  527. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/basic.mjs +31 -0
  528. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.cjs +114 -0
  529. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/batch.mjs +112 -0
  530. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.cjs +43 -0
  531. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbcode.mjs +41 -0
  532. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.cjs +34 -0
  533. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bbj.mjs +32 -0
  534. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.cjs +89 -0
  535. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bicep.mjs +87 -0
  536. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.cjs +39 -0
  537. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/birb.mjs +37 -0
  538. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.cjs +55 -0
  539. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bison.mjs +53 -0
  540. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.cjs +34 -0
  541. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bnf.mjs +32 -0
  542. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.cjs +78 -0
  543. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bqn.mjs +76 -0
  544. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.cjs +34 -0
  545. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brainfuck.mjs +32 -0
  546. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.cjs +61 -0
  547. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/brightscript.mjs +59 -0
  548. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.cjs +43 -0
  549. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bro.mjs +41 -0
  550. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.cjs +92 -0
  551. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/bsl.mjs +90 -0
  552. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.cjs +99 -0
  553. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/c.mjs +97 -0
  554. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.cjs +63 -0
  555. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cfscript.mjs +61 -0
  556. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.cjs +78 -0
  557. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/chaiscript.mjs +76 -0
  558. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.cjs +35 -0
  559. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cil.mjs +33 -0
  560. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.cjs +24 -0
  561. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkc.mjs +22 -0
  562. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.cjs +25 -0
  563. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cilkcpp.mjs +23 -0
  564. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.cjs +47 -0
  565. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clike.mjs +45 -0
  566. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.cjs +47 -0
  567. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/clojure.mjs +45 -0
  568. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.cjs +48 -0
  569. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cmake.mjs +46 -0
  570. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.cjs +66 -0
  571. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cobol.mjs +64 -0
  572. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.cjs +102 -0
  573. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coffeescript.mjs +100 -0
  574. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.cjs +78 -0
  575. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/concurnas.mjs +76 -0
  576. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.cjs +152 -0
  577. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cooklang.mjs +150 -0
  578. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.cjs +71 -0
  579. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/coq.mjs +69 -0
  580. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.cjs +133 -0
  581. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cpp.mjs +131 -0
  582. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.cjs +71 -0
  583. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/crystal.mjs +69 -0
  584. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.cjs +491 -0
  585. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csharp.mjs +489 -0
  586. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.cjs +273 -0
  587. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cshtml.mjs +271 -0
  588. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.cjs +80 -0
  589. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csp.mjs +78 -0
  590. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.cjs +134 -0
  591. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css-extras.mjs +132 -0
  592. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.cjs +94 -0
  593. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/css.mjs +92 -0
  594. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.cjs +20 -0
  595. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/csv.mjs +18 -0
  596. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.cjs +102 -0
  597. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cue.mjs +100 -0
  598. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.cjs +48 -0
  599. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/cypher.mjs +46 -0
  600. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.cjs +103 -0
  601. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/d.mjs +101 -0
  602. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.cjs +99 -0
  603. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dart.mjs +97 -0
  604. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.cjs +56 -0
  605. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dataweave.mjs +54 -0
  606. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.cjs +44 -0
  607. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dax.mjs +42 -0
  608. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.cjs +85 -0
  609. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dhall.mjs +83 -0
  610. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.cjs +77 -0
  611. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/diff.mjs +75 -0
  612. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.cjs +73 -0
  613. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/django.mjs +71 -0
  614. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.cjs +47 -0
  615. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dns-zone-file.mjs +45 -0
  616. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.cjs +133 -0
  617. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/docker.mjs +131 -0
  618. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.cjs +95 -0
  619. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/dot.mjs +93 -0
  620. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.cjs +34 -0
  621. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ebnf.mjs +32 -0
  622. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.cjs +41 -0
  623. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/editorconfig.mjs +39 -0
  624. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.cjs +49 -0
  625. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/eiffel.mjs +47 -0
  626. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.cjs +44 -0
  627. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ejs.mjs +42 -0
  628. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.cjs +115 -0
  629. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elixir.mjs +113 -0
  630. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.cjs +63 -0
  631. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/elm.mjs +61 -0
  632. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.cjs +45 -0
  633. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erb.mjs +43 -0
  634. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.cjs +57 -0
  635. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/erlang.mjs +55 -0
  636. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.cjs +42 -0
  637. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/etlua.mjs +40 -0
  638. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.cjs +82 -0
  639. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/excel-formula.mjs +80 -0
  640. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.cjs +941 -0
  641. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/factor.mjs +939 -0
  642. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.cjs +46 -0
  643. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/false.mjs +44 -0
  644. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.cjs +55 -0
  645. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/firestore-security-rules.mjs +53 -0
  646. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.cjs +52 -0
  647. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/flow.mjs +50 -0
  648. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.cjs +55 -0
  649. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fortran.mjs +53 -0
  650. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.cjs +96 -0
  651. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/fsharp.mjs +94 -0
  652. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.cjs +139 -0
  653. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ftl.mjs +137 -0
  654. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.cjs +65 -0
  655. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gap.mjs +63 -0
  656. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.cjs +30 -0
  657. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gcode.mjs +28 -0
  658. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.cjs +44 -0
  659. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gdscript.mjs +42 -0
  660. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.cjs +44 -0
  661. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gedcom.mjs +42 -0
  662. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.cjs +56 -0
  663. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gettext.mjs +54 -0
  664. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.cjs +99 -0
  665. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gherkin.mjs +97 -0
  666. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.cjs +77 -0
  667. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/git.mjs +75 -0
  668. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.cjs +21 -0
  669. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/glsl.mjs +19 -0
  670. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.cjs +30 -0
  671. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gml.mjs +28 -0
  672. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.cjs +65 -0
  673. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gn.mjs +63 -0
  674. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.cjs +38 -0
  675. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go-module.mjs +36 -0
  676. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.cjs +46 -0
  677. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/go.mjs +44 -0
  678. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.cjs +76 -0
  679. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/gradle.mjs +74 -0
  680. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.cjs +230 -0
  681. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/graphql.mjs +228 -0
  682. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.cjs +79 -0
  683. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/groovy.mjs +77 -0
  684. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.cjs +178 -0
  685. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haml.mjs +176 -0
  686. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.cjs +59 -0
  687. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/handlebars.mjs +57 -0
  688. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.cjs +84 -0
  689. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haskell.mjs +82 -0
  690. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.cjs +94 -0
  691. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/haxe.mjs +92 -0
  692. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.cjs +79 -0
  693. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hcl.mjs +77 -0
  694. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.cjs +37 -0
  695. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hlsl.mjs +35 -0
  696. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.cjs +29 -0
  697. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hoon.mjs +27 -0
  698. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.cjs +29 -0
  699. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hpkp.mjs +27 -0
  700. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.cjs +28 -0
  701. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/hsts.mjs +26 -0
  702. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.cjs +168 -0
  703. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/http.mjs +166 -0
  704. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.cjs +31 -0
  705. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ichigojam.mjs +29 -0
  706. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.cjs +37 -0
  707. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icon.mjs +35 -0
  708. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.cjs +165 -0
  709. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/icu-message-format.mjs +163 -0
  710. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.cjs +35 -0
  711. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/idris.mjs +33 -0
  712. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.cjs +50 -0
  713. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/iecst.mjs +48 -0
  714. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.cjs +35 -0
  715. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ignore.mjs +33 -0
  716. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.cjs +81 -0
  717. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/inform7.mjs +79 -0
  718. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.cjs +56 -0
  719. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ini.mjs +54 -0
  720. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.cjs +39 -0
  721. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/io.mjs +37 -0
  722. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.cjs +45 -0
  723. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/j.mjs +43 -0
  724. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.cjs +168 -0
  725. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/java.mjs +166 -0
  726. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.cjs +113 -0
  727. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoc.mjs +111 -0
  728. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.cjs +98 -0
  729. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javadoclike.mjs +96 -0
  730. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.cjs +200 -0
  731. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javascript.mjs +198 -0
  732. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.cjs +153 -0
  733. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/javastacktrace.mjs +151 -0
  734. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.cjs +30 -0
  735. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jexl.mjs +28 -0
  736. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.cjs +63 -0
  737. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jolie.mjs +61 -0
  738. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.cjs +84 -0
  739. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jq.mjs +82 -0
  740. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.cjs +165 -0
  741. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-extras.mjs +163 -0
  742. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.cjs +371 -0
  743. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/js-templates.mjs +369 -0
  744. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.cjs +107 -0
  745. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsdoc.mjs +105 -0
  746. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.cjs +40 -0
  747. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json.mjs +38 -0
  748. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.cjs +39 -0
  749. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/json5.mjs +37 -0
  750. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.cjs +23 -0
  751. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsonp.mjs +21 -0
  752. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.cjs +57 -0
  753. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsstacktrace.mjs +55 -0
  754. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.cjs +196 -0
  755. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/jsx.mjs +194 -0
  756. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.cjs +54 -0
  757. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/julia.mjs +52 -0
  758. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.cjs +67 -0
  759. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keepalived.mjs +65 -0
  760. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.cjs +58 -0
  761. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/keyman.mjs +56 -0
  762. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.cjs +101 -0
  763. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kotlin.mjs +99 -0
  764. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.cjs +119 -0
  765. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kumir.mjs +117 -0
  766. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.cjs +58 -0
  767. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/kusto.mjs +56 -0
  768. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.cjs +81 -0
  769. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latex.mjs +79 -0
  770. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.cjs +90 -0
  771. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/latte.mjs +88 -0
  772. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.cjs +70 -0
  773. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/less.mjs +68 -0
  774. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.cjs +95 -0
  775. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lilypond.mjs +93 -0
  776. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.cjs +39 -0
  777. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/linker-script.mjs +37 -0
  778. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.cjs +87 -0
  779. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/liquid.mjs +85 -0
  780. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.cjs +227 -0
  781. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lisp.mjs +225 -0
  782. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.cjs +136 -0
  783. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/livescript.mjs +134 -0
  784. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.cjs +35 -0
  785. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/llvm.mjs +33 -0
  786. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.cjs +133 -0
  787. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/log.mjs +131 -0
  788. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.cjs +64 -0
  789. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lolcode.mjs +62 -0
  790. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.cjs +37 -0
  791. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/lua.mjs +35 -0
  792. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.cjs +47 -0
  793. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/magma.mjs +45 -0
  794. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.cjs +46 -0
  795. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/makefile.mjs +44 -0
  796. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.cjs +403 -0
  797. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markdown.mjs +401 -0
  798. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.cjs +139 -0
  799. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup-templating.mjs +137 -0
  800. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.cjs +206 -0
  801. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/markup.mjs +204 -0
  802. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.cjs +61 -0
  803. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mata.mjs +59 -0
  804. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.cjs +28 -0
  805. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/matlab.mjs +26 -0
  806. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.cjs +102 -0
  807. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/maxscript.mjs +100 -0
  808. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.cjs +60 -0
  809. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mel.mjs +58 -0
  810. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.cjs +126 -0
  811. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mermaid.mjs +124 -0
  812. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.cjs +106 -0
  813. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/metafont.mjs +104 -0
  814. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.cjs +27 -0
  815. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mizar.mjs +25 -0
  816. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.cjs +312 -0
  817. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/mongodb.mjs +310 -0
  818. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.cjs +45 -0
  819. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/monkey.mjs +43 -0
  820. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.cjs +74 -0
  821. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/moonscript.mjs +72 -0
  822. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.cjs +40 -0
  823. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n1ql.mjs +38 -0
  824. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.cjs +30 -0
  825. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/n4js.mjs +28 -0
  826. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.cjs +23 -0
  827. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
  828. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.cjs +180 -0
  829. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/naniscript.mjs +178 -0
  830. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.cjs +40 -0
  831. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nasm.mjs +38 -0
  832. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.cjs +58 -0
  833. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/neon.mjs +56 -0
  834. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.cjs +143 -0
  835. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nevod.mjs +141 -0
  836. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.cjs +67 -0
  837. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nginx.mjs +65 -0
  838. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.cjs +61 -0
  839. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nim.mjs +59 -0
  840. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.cjs +52 -0
  841. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nix.mjs +50 -0
  842. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.cjs +47 -0
  843. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/nsis.mjs +45 -0
  844. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.cjs +28 -0
  845. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/objectivec.mjs +26 -0
  846. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.cjs +73 -0
  847. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ocaml.mjs +71 -0
  848. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.cjs +102 -0
  849. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/odin.mjs +100 -0
  850. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.cjs +83 -0
  851. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/opencl.mjs +81 -0
  852. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.cjs +37 -0
  853. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/openqasm.mjs +35 -0
  854. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.cjs +45 -0
  855. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/oz.mjs +43 -0
  856. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.cjs +67 -0
  857. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parigp.mjs +65 -0
  858. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.cjs +93 -0
  859. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/parser.mjs +91 -0
  860. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.cjs +87 -0
  861. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascal.mjs +85 -0
  862. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.cjs +101 -0
  863. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pascaligo.mjs +99 -0
  864. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.cjs +68 -0
  865. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pcaxis.mjs +66 -0
  866. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.cjs +58 -0
  867. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/peoplecode.mjs +56 -0
  868. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.cjs +164 -0
  869. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/perl.mjs +162 -0
  870. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.cjs +32 -0
  871. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php-extras.mjs +30 -0
  872. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.cjs +366 -0
  873. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/php.mjs +364 -0
  874. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.cjs +49 -0
  875. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/phpdoc.mjs +47 -0
  876. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.cjs +127 -0
  877. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plant-uml.mjs +125 -0
  878. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.cjs +34 -0
  879. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/plsql.mjs +32 -0
  880. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.cjs +71 -0
  881. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powerquery.mjs +69 -0
  882. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.cjs +72 -0
  883. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/powershell.mjs +70 -0
  884. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.cjs +32 -0
  885. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/processing.mjs +30 -0
  886. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.cjs +33 -0
  887. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/prolog.mjs +31 -0
  888. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.cjs +113 -0
  889. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/promql.mjs +111 -0
  890. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.cjs +28 -0
  891. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/properties.mjs +26 -0
  892. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.cjs +60 -0
  893. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/protobuf.mjs +58 -0
  894. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.cjs +53 -0
  895. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/psl.mjs +51 -0
  896. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.cjs +225 -0
  897. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pug.mjs +223 -0
  898. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.cjs +159 -0
  899. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/puppet.mjs +157 -0
  900. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.cjs +110 -0
  901. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/pure.mjs +108 -0
  902. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.cjs +87 -0
  903. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purebasic.mjs +85 -0
  904. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.cjs +47 -0
  905. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/purescript.mjs +45 -0
  906. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.cjs +84 -0
  907. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/python.mjs +82 -0
  908. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.cjs +68 -0
  909. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/q.mjs +66 -0
  910. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.cjs +98 -0
  911. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qml.mjs +96 -0
  912. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.cjs +40 -0
  913. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qore.mjs +38 -0
  914. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.cjs +156 -0
  915. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/qsharp.mjs +154 -0
  916. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.cjs +37 -0
  917. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/r.mjs +35 -0
  918. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.cjs +33 -0
  919. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/racket.mjs +31 -0
  920. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.cjs +44 -0
  921. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/reason.mjs +42 -0
  922. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.cjs +116 -0
  923. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/regex.mjs +114 -0
  924. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.cjs +43 -0
  925. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rego.mjs +41 -0
  926. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.cjs +38 -0
  927. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/renpy.mjs +36 -0
  928. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.cjs +80 -0
  929. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rescript.mjs +78 -0
  930. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.cjs +225 -0
  931. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rest.mjs +223 -0
  932. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.cjs +45 -0
  933. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rip.mjs +43 -0
  934. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.cjs +42 -0
  935. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/roboconf.mjs +40 -0
  936. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.cjs +115 -0
  937. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/robotframework.mjs +113 -0
  938. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.cjs +211 -0
  939. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/ruby.mjs +209 -0
  940. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.cjs +138 -0
  941. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/rust.mjs +136 -0
  942. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.cjs +372 -0
  943. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sas.mjs +370 -0
  944. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.cjs +90 -0
  945. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sass.mjs +88 -0
  946. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.cjs +69 -0
  947. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scala.mjs +67 -0
  948. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.cjs +147 -0
  949. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scheme.mjs +145 -0
  950. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.cjs +95 -0
  951. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/scss.mjs +93 -0
  952. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.cjs +87 -0
  953. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/shell-session.mjs +85 -0
  954. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.cjs +99 -0
  955. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smali.mjs +97 -0
  956. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.cjs +52 -0
  957. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smalltalk.mjs +50 -0
  958. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.cjs +152 -0
  959. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/smarty.mjs +150 -0
  960. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.cjs +81 -0
  961. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sml.mjs +79 -0
  962. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.cjs +39 -0
  963. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solidity.mjs +37 -0
  964. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.cjs +62 -0
  965. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/solution-file.mjs +60 -0
  966. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.cjs +115 -0
  967. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/soy.mjs +113 -0
  968. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.cjs +32 -0
  969. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sparql.mjs +30 -0
  970. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.cjs +39 -0
  971. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/splunk-spl.mjs +37 -0
  972. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.cjs +53 -0
  973. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sqf.mjs +51 -0
  974. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.cjs +50 -0
  975. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/sql.mjs +48 -0
  976. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.cjs +61 -0
  977. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/squirrel.mjs +59 -0
  978. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.cjs +77 -0
  979. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stan.mjs +75 -0
  980. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.cjs +94 -0
  981. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stata.mjs +92 -0
  982. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.cjs +154 -0
  983. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/stylus.mjs +152 -0
  984. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.cjs +48 -0
  985. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/supercollider.mjs +46 -0
  986. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.cjs +161 -0
  987. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/swift.mjs +159 -0
  988. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.cjs +83 -0
  989. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/systemd.mjs +81 -0
  990. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.cjs +21 -0
  991. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-cs.mjs +19 -0
  992. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.cjs +60 -0
  993. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-templating.mjs +58 -0
  994. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.cjs +20 -0
  995. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/t4-vb.mjs +18 -0
  996. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.cjs +39 -0
  997. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tap.mjs +37 -0
  998. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.cjs +63 -0
  999. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tcl.mjs +61 -0
  1000. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.cjs +309 -0
  1001. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/textile.mjs +307 -0
  1002. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.cjs +74 -0
  1003. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/toml.mjs +72 -0
  1004. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.cjs +90 -0
  1005. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tremor.mjs +88 -0
  1006. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.cjs +37 -0
  1007. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tsx.mjs +35 -0
  1008. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.cjs +70 -0
  1009. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/tt2.mjs +68 -0
  1010. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.cjs +68 -0
  1011. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/turtle.mjs +66 -0
  1012. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.cjs +57 -0
  1013. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/twig.mjs +55 -0
  1014. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.cjs +76 -0
  1015. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typescript.mjs +74 -0
  1016. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.cjs +93 -0
  1017. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/typoscript.mjs +91 -0
  1018. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.cjs +57 -0
  1019. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/unrealscript.mjs +55 -0
  1020. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.cjs +67 -0
  1021. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uorazor.mjs +65 -0
  1022. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.cjs +109 -0
  1023. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/uri.mjs +107 -0
  1024. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.cjs +100 -0
  1025. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/v.mjs +98 -0
  1026. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.cjs +105 -0
  1027. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vala.mjs +103 -0
  1028. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.cjs +40 -0
  1029. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vbnet.mjs +38 -0
  1030. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.cjs +88 -0
  1031. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/velocity.mjs +86 -0
  1032. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.cjs +42 -0
  1033. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/verilog.mjs +40 -0
  1034. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.cjs +42 -0
  1035. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vhdl.mjs +40 -0
  1036. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.cjs +27 -0
  1037. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/vim.mjs +25 -0
  1038. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.cjs +46 -0
  1039. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/visual-basic.mjs +44 -0
  1040. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.cjs +39 -0
  1041. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/warpscript.mjs +37 -0
  1042. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.cjs +47 -0
  1043. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wasm.mjs +45 -0
  1044. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.cjs +124 -0
  1045. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/web-idl.mjs +122 -0
  1046. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.cjs +116 -0
  1047. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wgsl.mjs +114 -0
  1048. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.cjs +95 -0
  1049. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wiki.mjs +93 -0
  1050. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.cjs +46 -0
  1051. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wolfram.mjs +44 -0
  1052. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.cjs +109 -0
  1053. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/wren.mjs +107 -0
  1054. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.cjs +136 -0
  1055. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xeora.mjs +134 -0
  1056. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.cjs +52 -0
  1057. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xml-doc.mjs +50 -0
  1058. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.cjs +34 -0
  1059. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xojo.mjs +32 -0
  1060. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.cjs +208 -0
  1061. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/xquery.mjs +206 -0
  1062. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.cjs +133 -0
  1063. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yaml.mjs +131 -0
  1064. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.cjs +34 -0
  1065. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/yang.mjs +32 -0
  1066. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.cjs +135 -0
  1067. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lang/zig.mjs +133 -0
  1068. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.cjs +605 -0
  1069. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/all.mjs +603 -0
  1070. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.cjs +273 -0
  1071. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.mjs +271 -0
  1072. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.cjs +767 -0
  1073. package/dist/node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.mjs +765 -0
  1074. package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.cjs +209 -0
  1075. package/dist/node_modules/.pnpm/rope-sequence@1.3.4/node_modules/rope-sequence/dist/index.mjs +207 -0
  1076. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.cjs +16 -0
  1077. package/dist/node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.mjs +14 -0
  1078. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +181 -0
  1079. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +175 -0
  1080. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.cjs +32 -0
  1081. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.mjs +26 -0
  1082. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +254 -0
  1083. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +248 -0
  1084. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.cjs +30 -0
  1085. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.mjs +24 -0
  1086. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
  1087. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
  1088. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
  1089. package/dist/node_modules/.pnpm/use-sync-external-store@1.2.2_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
  1090. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.cjs +115 -0
  1091. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.mjs +109 -0
  1092. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.cjs +103 -0
  1093. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.mjs +97 -0
  1094. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +112 -0
  1095. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.mjs +106 -0
  1096. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +83 -0
  1097. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.mjs +77 -0
  1098. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.cjs +21 -0
  1099. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.mjs +19 -0
  1100. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.cjs +21 -0
  1101. package/dist/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/with-selector.mjs +19 -0
  1102. package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.cjs +125 -0
  1103. package/dist/node_modules/.pnpm/w3c-keyname@2.2.8/node_modules/w3c-keyname/index.mjs +121 -0
  1104. package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.cjs +112 -0
  1105. package/dist/node_modules/.pnpm/zundo@2.3.0_zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0_/node_modules/zundo/dist/index.mjs +110 -0
  1106. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.cjs +47 -0
  1107. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/index.mjs +39 -0
  1108. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.cjs +339 -0
  1109. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/middleware.mjs +336 -0
  1110. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.cjs +34 -0
  1111. package/dist/node_modules/.pnpm/zustand@4.5.5_@types_react@19.2.6_immer@11.1.3_react@19.2.0/node_modules/zustand/esm/vanilla.mjs +32 -0
  1112. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-input.cjs +5 -5
  1113. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-layout.cjs +3 -3
  1114. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-message.cjs +10 -10
  1115. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +6 -6
  1116. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/shared/error-placeholder.cjs +2 -2
  1117. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/tool-call-display.cjs +6 -6
  1118. package/dist/packages/better-stack/src/plugins/blog/client/components/forms/image-field.cjs +4 -4
  1119. package/dist/packages/better-stack/src/plugins/blog/client/components/forms/post-forms.cjs +2 -2
  1120. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/empty-list.cjs +2 -2
  1121. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/error-placeholder.cjs +2 -2
  1122. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/on-this-page.cjs +2 -2
  1123. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-card.cjs +2 -2
  1124. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/post-navigation.cjs +3 -3
  1125. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/search-modal.cjs +2 -2
  1126. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +4 -4
  1127. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +1 -1
  1128. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +3 -3
  1129. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/relation-field.cjs +3 -3
  1130. package/dist/packages/better-stack/src/plugins/cms/client/components/inverse-relations-panel.cjs +5 -5
  1131. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +2 -2
  1132. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +7 -7
  1133. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +2 -2
  1134. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +2 -2
  1135. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +2 -2
  1136. package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.cjs +5 -5
  1137. package/dist/packages/better-stack/src/plugins/form-builder/client/components/forms/form-renderer.mjs +1 -1
  1138. package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-builder-page.internal.cjs +3 -3
  1139. package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/form-list-page.internal.cjs +7 -7
  1140. package/dist/packages/better-stack/src/plugins/form-builder/client/components/pages/submissions-page.internal.cjs +4 -4
  1141. package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/default-error.cjs +2 -2
  1142. package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/empty-state.cjs +2 -2
  1143. package/dist/packages/better-stack/src/plugins/form-builder/client/components/shared/pagination.cjs +2 -2
  1144. package/dist/packages/better-stack/src/plugins/route-docs/client/components/pages/docs-page.cjs +22 -22
  1145. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.cjs +36 -0
  1146. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.mjs +34 -0
  1147. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.cjs +21 -0
  1148. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/loading/page-list-skeleton.mjs +19 -0
  1149. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.cjs +96 -0
  1150. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/page-renderer.mjs +93 -0
  1151. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.cjs +19 -0
  1152. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.cjs +223 -0
  1153. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.mjs +221 -0
  1154. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-builder-page.mjs +17 -0
  1155. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.cjs +19 -0
  1156. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.cjs +151 -0
  1157. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.internal.mjs +149 -0
  1158. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/pages/page-list-page.mjs +17 -0
  1159. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.cjs +17 -0
  1160. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/default-error.mjs +15 -0
  1161. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.cjs +16 -0
  1162. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/empty-state.mjs +14 -0
  1163. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.cjs +27 -0
  1164. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/page-wrapper.mjs +25 -0
  1165. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.cjs +39 -0
  1166. package/dist/packages/better-stack/src/plugins/ui-builder/client/components/shared/pagination.mjs +37 -0
  1167. package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.cjs +437 -0
  1168. package/dist/packages/better-stack/src/plugins/ui-builder/client/hooks/ui-builder-hooks.mjs +427 -0
  1169. package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.cjs +60 -0
  1170. package/dist/packages/better-stack/src/plugins/ui-builder/client/localization/index.mjs +58 -0
  1171. package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.cjs +193 -0
  1172. package/dist/packages/better-stack/src/plugins/ui-builder/client/plugin.mjs +191 -0
  1173. package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.cjs +479 -0
  1174. package/dist/packages/better-stack/src/plugins/ui-builder/client/registry.mjs +474 -0
  1175. package/dist/packages/better-stack/src/plugins/ui-builder/schemas.cjs +23 -0
  1176. package/dist/packages/better-stack/src/plugins/ui-builder/schemas.mjs +19 -0
  1177. package/dist/packages/ui/src/components/accordion.cjs +2 -2
  1178. package/dist/packages/ui/src/components/accordion.mjs +1 -1
  1179. package/dist/packages/ui/src/components/auto-form/fields/array.cjs +5 -5
  1180. package/dist/packages/ui/src/components/auto-form/fields/array.mjs +1 -1
  1181. package/dist/packages/ui/src/components/auto-form/fields/date.cjs +2 -2
  1182. package/dist/packages/ui/src/components/auto-form/fields/date.mjs +1 -1
  1183. package/dist/packages/ui/src/components/auto-form/fields/enum.cjs +2 -2
  1184. package/dist/packages/ui/src/components/auto-form/fields/enum.mjs +1 -1
  1185. package/dist/packages/ui/src/components/auto-form/fields/object.cjs +9 -9
  1186. package/dist/packages/ui/src/components/auto-form/fields/object.mjs +1 -1
  1187. package/dist/packages/ui/src/components/auto-form/fields/radio-group.cjs +2 -2
  1188. package/dist/packages/ui/src/components/auto-form/fields/radio-group.mjs +1 -1
  1189. package/dist/packages/ui/src/components/auto-form/index.cjs +5 -5
  1190. package/dist/packages/ui/src/components/auto-form/index.mjs +1 -1
  1191. package/dist/packages/ui/src/components/button.cjs +4 -2
  1192. package/dist/packages/ui/src/components/button.mjs +4 -2
  1193. package/dist/packages/ui/src/components/calendar.cjs +4 -4
  1194. package/dist/packages/ui/src/components/card.cjs +11 -0
  1195. package/dist/packages/ui/src/components/card.mjs +11 -1
  1196. package/dist/packages/ui/src/components/carousel.cjs +3 -3
  1197. package/dist/packages/ui/src/components/checkbox.cjs +2 -2
  1198. package/dist/packages/ui/src/components/command.cjs +33 -2
  1199. package/dist/packages/ui/src/components/command.mjs +31 -2
  1200. package/dist/packages/ui/src/components/date-picker.cjs +2 -2
  1201. package/dist/packages/ui/src/components/dialog.cjs +9 -3
  1202. package/dist/packages/ui/src/components/dialog.mjs +7 -2
  1203. package/dist/packages/ui/src/components/dropdown-menu.cjs +14 -0
  1204. package/dist/packages/ui/src/components/dropdown-menu.mjs +15 -2
  1205. package/dist/packages/ui/src/components/form-builder/components/index.cjs +15 -15
  1206. package/dist/packages/ui/src/components/form-builder/edit-field-dialog.cjs +2 -2
  1207. package/dist/packages/ui/src/components/form-builder/edit-field-dialog.mjs +1 -1
  1208. package/dist/packages/ui/src/components/form-builder/form-preview.cjs +5 -5
  1209. package/dist/packages/ui/src/components/form-builder/form-preview.mjs +1 -1
  1210. package/dist/packages/ui/src/components/form-builder/nested-field-editor-dialog.cjs +2 -2
  1211. package/dist/packages/ui/src/components/form-builder/sortable-field.cjs +6 -6
  1212. package/dist/packages/ui/src/components/form-builder/step-tabs.cjs +7 -7
  1213. package/dist/packages/ui/src/components/markdown-content.cjs +2 -2
  1214. package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.cjs +112 -0
  1215. package/dist/packages/ui/src/components/minimal-tiptap/components/bubble-menu/link-bubble-menu.mjs +96 -0
  1216. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.cjs +97 -0
  1217. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-block.mjs +78 -0
  1218. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.cjs +34 -0
  1219. package/dist/packages/ui/src/components/minimal-tiptap/components/image/image-edit-dialog.mjs +32 -0
  1220. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.cjs +94 -0
  1221. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-block.mjs +75 -0
  1222. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.cjs +64 -0
  1223. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-edit-popover.mjs +48 -0
  1224. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.cjs +72 -0
  1225. package/dist/packages/ui/src/components/minimal-tiptap/components/link/link-popover-block.mjs +56 -0
  1226. package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.cjs +38 -0
  1227. package/dist/packages/ui/src/components/minimal-tiptap/components/measured-container.mjs +22 -0
  1228. package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.cjs +71 -0
  1229. package/dist/packages/ui/src/components/minimal-tiptap/components/section/five.mjs +66 -0
  1230. package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.cjs +66 -0
  1231. package/dist/packages/ui/src/components/minimal-tiptap/components/section/four.mjs +61 -0
  1232. package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.cjs +141 -0
  1233. package/dist/packages/ui/src/components/minimal-tiptap/components/section/one.mjs +122 -0
  1234. package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.cjs +197 -0
  1235. package/dist/packages/ui/src/components/minimal-tiptap/components/section/three.mjs +178 -0
  1236. package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.cjs +90 -0
  1237. package/dist/packages/ui/src/components/minimal-tiptap/components/section/two.mjs +85 -0
  1238. package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.cjs +40 -0
  1239. package/dist/packages/ui/src/components/minimal-tiptap/components/shortcut-key.mjs +38 -0
  1240. package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.cjs +60 -0
  1241. package/dist/packages/ui/src/components/minimal-tiptap/components/spinner.mjs +44 -0
  1242. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.cjs +30 -0
  1243. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-button.mjs +25 -0
  1244. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.cjs +108 -0
  1245. package/dist/packages/ui/src/components/minimal-tiptap/components/toolbar-section.mjs +89 -0
  1246. package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.cjs +28 -0
  1247. package/dist/packages/ui/src/components/minimal-tiptap/extensions/code-block-lowlight/code-block-lowlight.mjs +23 -0
  1248. package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.cjs +24 -0
  1249. package/dist/packages/ui/src/components/minimal-tiptap/extensions/color/color.mjs +22 -0
  1250. package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.cjs +94 -0
  1251. package/dist/packages/ui/src/components/minimal-tiptap/extensions/file-handler/index.mjs +92 -0
  1252. package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.cjs +18 -0
  1253. package/dist/packages/ui/src/components/minimal-tiptap/extensions/horizontal-rule/horizontal-rule.mjs +13 -0
  1254. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.cjs +139 -0
  1255. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-actions.mjs +121 -0
  1256. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.cjs +36 -0
  1257. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-overlay.mjs +20 -0
  1258. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.cjs +312 -0
  1259. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/image-view-block.mjs +296 -0
  1260. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.cjs +32 -0
  1261. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/components/resize-handle.mjs +30 -0
  1262. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.cjs +139 -0
  1263. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-drag-resize.mjs +137 -0
  1264. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.cjs +55 -0
  1265. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/hooks/use-image-actions.mjs +39 -0
  1266. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.cjs +233 -0
  1267. package/dist/packages/ui/src/components/minimal-tiptap/extensions/image/image.mjs +231 -0
  1268. package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.cjs +57 -0
  1269. package/dist/packages/ui/src/components/minimal-tiptap/extensions/markdown-paste/markdown-paste.mjs +52 -0
  1270. package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.cjs +20 -0
  1271. package/dist/packages/ui/src/components/minimal-tiptap/extensions/reset-marks-on-enter/reset-marks-on-enter.mjs +18 -0
  1272. package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.cjs +13 -0
  1273. package/dist/packages/ui/src/components/minimal-tiptap/extensions/unset-all-marks/unset-all-marks.mjs +11 -0
  1274. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.cjs +45 -0
  1275. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-container-size.mjs +43 -0
  1276. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.cjs +259 -0
  1277. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-minimal-tiptap.mjs +240 -0
  1278. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.cjs +39 -0
  1279. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-theme.mjs +20 -0
  1280. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.cjs +33 -0
  1281. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-throttle.mjs +31 -0
  1282. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.cjs +33 -0
  1283. package/dist/packages/ui/src/components/minimal-tiptap/hooks/use-tiptap-editor.mjs +31 -0
  1284. package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.cjs +119 -0
  1285. package/dist/packages/ui/src/components/minimal-tiptap/minimal-tiptap.mjs +113 -0
  1286. package/dist/packages/ui/src/components/minimal-tiptap/utils.cjs +164 -0
  1287. package/dist/packages/ui/src/components/minimal-tiptap/utils.mjs +153 -0
  1288. package/dist/packages/ui/src/components/multi-select.cjs +3 -3
  1289. package/dist/packages/ui/src/components/radio-group.cjs +2 -2
  1290. package/dist/packages/ui/src/components/resizable.cjs +51 -0
  1291. package/dist/packages/ui/src/components/resizable.mjs +47 -0
  1292. package/dist/packages/ui/src/components/select.cjs +13 -6
  1293. package/dist/packages/ui/src/components/select.mjs +9 -2
  1294. package/dist/packages/ui/src/components/sheet.cjs +2 -2
  1295. package/dist/packages/ui/src/components/toggle-group.cjs +85 -0
  1296. package/dist/packages/ui/src/components/toggle-group.mjs +68 -0
  1297. package/dist/packages/ui/src/components/toggle.cjs +46 -0
  1298. package/dist/packages/ui/src/components/toggle.mjs +43 -0
  1299. package/dist/packages/ui/src/components/tooltip.cjs +58 -0
  1300. package/dist/packages/ui/src/components/tooltip.mjs +53 -0
  1301. package/dist/packages/ui/src/components/ui-builder/components/code-panel.cjs +65 -0
  1302. package/dist/packages/ui/src/components/ui-builder/components/code-panel.mjs +63 -0
  1303. package/dist/packages/ui/src/components/ui-builder/components/codeblock.cjs +68 -0
  1304. package/dist/packages/ui/src/components/ui-builder/components/codeblock.mjs +66 -0
  1305. package/dist/packages/ui/src/components/ui-builder/components/flexbox.cjs +84 -0
  1306. package/dist/packages/ui/src/components/ui-builder/components/flexbox.mjs +67 -0
  1307. package/dist/packages/ui/src/components/ui-builder/components/grid.cjs +110 -0
  1308. package/dist/packages/ui/src/components/ui-builder/components/grid.mjs +93 -0
  1309. package/dist/packages/ui/src/components/ui-builder/components/icon.cjs +80 -0
  1310. package/dist/packages/ui/src/components/ui-builder/components/icon.mjs +61 -0
  1311. package/dist/packages/ui/src/components/ui-builder/components/markdown.cjs +82 -0
  1312. package/dist/packages/ui/src/components/ui-builder/components/markdown.mjs +74 -0
  1313. package/dist/packages/ui/src/components/ui-builder/index.cjs +274 -0
  1314. package/dist/packages/ui/src/components/ui-builder/index.mjs +262 -0
  1315. package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.cjs +295 -0
  1316. package/dist/packages/ui/src/components/ui-builder/internal/canvas/auto-frame.mjs +289 -0
  1317. package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.cjs +171 -0
  1318. package/dist/packages/ui/src/components/ui-builder/internal/canvas/resizable-wrapper.mjs +168 -0
  1319. package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.cjs +230 -0
  1320. package/dist/packages/ui/src/components/ui-builder/internal/components/add-component-popover.mjs +224 -0
  1321. package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.cjs +24 -0
  1322. package/dist/packages/ui/src/components/ui-builder/internal/components/dev-profiler.mjs +22 -0
  1323. package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.cjs +41 -0
  1324. package/dist/packages/ui/src/components/ui-builder/internal/components/divider-control.mjs +39 -0
  1325. package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.cjs +329 -0
  1326. package/dist/packages/ui/src/components/ui-builder/internal/components/element-selector.mjs +326 -0
  1327. package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.cjs +19 -0
  1328. package/dist/packages/ui/src/components/ui-builder/internal/components/error-fallback.mjs +17 -0
  1329. package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.cjs +95 -0
  1330. package/dist/packages/ui/src/components/ui-builder/internal/components/layer-menu.mjs +93 -0
  1331. package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.cjs +555 -0
  1332. package/dist/packages/ui/src/components/ui-builder/internal/components/multi-select.mjs +540 -0
  1333. package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.cjs +72 -0
  1334. package/dist/packages/ui/src/components/ui-builder/internal/components/name-edit.mjs +70 -0
  1335. package/dist/packages/ui/src/components/ui-builder/internal/components/nav.cjs +702 -0
  1336. package/dist/packages/ui/src/components/ui-builder/internal/components/nav.mjs +700 -0
  1337. package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.cjs +208 -0
  1338. package/dist/packages/ui/src/components/ui-builder/internal/components/tree-row-node.mjs +205 -0
  1339. package/dist/packages/ui/src/components/ui-builder/internal/config-panel.cjs +124 -0
  1340. package/dist/packages/ui/src/components/ui-builder/internal/config-panel.mjs +119 -0
  1341. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.cjs +68 -0
  1342. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drag-handle.mjs +62 -0
  1343. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.cjs +156 -0
  1344. package/dist/packages/ui/src/components/ui-builder/internal/dnd/drop-zone.mjs +150 -0
  1345. package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.cjs +372 -0
  1346. package/dist/packages/ui/src/components/ui-builder/internal/editor-panel.mjs +370 -0
  1347. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.cjs +55 -0
  1348. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/children-searchable-select.mjs +53 -0
  1349. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.cjs +169 -0
  1350. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/breakpoint-classname-control.mjs +167 -0
  1351. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.cjs +60 -0
  1352. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-group-control.mjs +58 -0
  1353. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.cjs +207 -0
  1354. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-item-control.mjs +205 -0
  1355. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.cjs +65 -0
  1356. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/classname-multiselect.mjs +63 -0
  1357. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.cjs +654 -0
  1358. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/config.mjs +650 -0
  1359. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.cjs +11 -0
  1360. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/helpers.mjs +8 -0
  1361. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.cjs +186 -0
  1362. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/icons.mjs +173 -0
  1363. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.cjs +8 -0
  1364. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/index.mjs +6 -0
  1365. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.cjs +66 -0
  1366. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-config.mjs +58 -0
  1367. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.cjs +68 -0
  1368. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/theme-aware-dropdown-option.mjs +66 -0
  1369. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.cjs +282 -0
  1370. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/classname-control/toggle-group.mjs +279 -0
  1371. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.cjs +65 -0
  1372. package/dist/packages/ui/src/components/ui-builder/internal/form-fields/iconname-field.mjs +63 -0
  1373. package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.cjs +287 -0
  1374. package/dist/packages/ui/src/components/ui-builder/internal/layers-panel.mjs +278 -0
  1375. package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +269 -0
  1376. package/dist/packages/ui/src/components/ui-builder/internal/props-panel.mjs +263 -0
  1377. package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.cjs +259 -0
  1378. package/dist/packages/ui/src/components/ui-builder/internal/tailwind-theme-panel.mjs +257 -0
  1379. package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.cjs +780 -0
  1380. package/dist/packages/ui/src/components/ui-builder/internal/utils/base-colors.mjs +777 -0
  1381. package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.cjs +173 -0
  1382. package/dist/packages/ui/src/components/ui-builder/internal/utils/render-utils.mjs +171 -0
  1383. package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.cjs +10324 -0
  1384. package/dist/packages/ui/src/components/ui-builder/internal/utils/tailwind-classes.mjs +10279 -0
  1385. package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.cjs +180 -0
  1386. package/dist/packages/ui/src/components/ui-builder/internal/utils/templates.mjs +176 -0
  1387. package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.cjs +349 -0
  1388. package/dist/packages/ui/src/components/ui-builder/internal/variables-panel.mjs +347 -0
  1389. package/dist/packages/ui/src/components/ui-builder/layer-renderer.cjs +32 -0
  1390. package/dist/packages/ui/src/components/ui-builder/layer-renderer.mjs +26 -0
  1391. package/dist/packages/ui/src/components/ui-builder/types.cjs +7 -0
  1392. package/dist/packages/ui/src/components/ui-builder/types.mjs +5 -0
  1393. package/dist/packages/ui/src/hooks/use-copy-to-clipboard.cjs +41 -0
  1394. package/dist/packages/ui/src/hooks/use-copy-to-clipboard.mjs +25 -0
  1395. package/dist/packages/ui/src/hooks/use-debounce.cjs +1 -3
  1396. package/dist/packages/ui/src/hooks/use-debounce.mjs +1 -3
  1397. package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.cjs +24 -0
  1398. package/dist/packages/ui/src/hooks/use-keyboard-shortcuts.mjs +22 -0
  1399. package/dist/packages/ui/src/hooks/use-store.cjs +14 -0
  1400. package/dist/packages/ui/src/hooks/use-store.mjs +12 -0
  1401. package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.cjs +16 -0
  1402. package/dist/packages/ui/src/lib/ui-builder/context/auto-scroll-constants.mjs +11 -0
  1403. package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.cjs +40 -0
  1404. package/dist/packages/ui/src/lib/ui-builder/context/collision-debug.mjs +35 -0
  1405. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.cjs +159 -0
  1406. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context-colission-utils.mjs +157 -0
  1407. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.cjs +91 -0
  1408. package/dist/packages/ui/src/lib/ui-builder/context/dnd-context.mjs +88 -0
  1409. package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.cjs +21 -0
  1410. package/dist/packages/ui/src/lib/ui-builder/context/dnd-contexts.mjs +16 -0
  1411. package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.cjs +17 -0
  1412. package/dist/packages/ui/src/lib/ui-builder/context/dnd-utils.mjs +15 -0
  1413. package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.cjs +44 -0
  1414. package/dist/packages/ui/src/lib/ui-builder/context/drag-overlay.mjs +41 -0
  1415. package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.cjs +126 -0
  1416. package/dist/packages/ui/src/lib/ui-builder/hooks/use-auto-scroll.mjs +124 -0
  1417. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.cjs +55 -0
  1418. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-event-handlers.mjs +53 -0
  1419. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.cjs +21 -0
  1420. package/dist/packages/ui/src/lib/ui-builder/hooks/use-dnd-sensors.mjs +19 -0
  1421. package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.cjs +27 -0
  1422. package/dist/packages/ui/src/lib/ui-builder/hooks/use-drop-validation.mjs +25 -0
  1423. package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.cjs +23 -0
  1424. package/dist/packages/ui/src/lib/ui-builder/hooks/use-keyboard-shortcuts-dnd.mjs +21 -0
  1425. package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.cjs +185 -0
  1426. package/dist/packages/ui/src/lib/ui-builder/registry/form-field-overrides.mjs +177 -0
  1427. package/dist/packages/ui/src/lib/ui-builder/store/editor-store.cjs +38 -0
  1428. package/dist/packages/ui/src/lib/ui-builder/store/editor-store.mjs +36 -0
  1429. package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.cjs +41 -0
  1430. package/dist/packages/ui/src/lib/ui-builder/store/editor-utils.mjs +38 -0
  1431. package/dist/packages/ui/src/lib/ui-builder/store/layer-store.cjs +384 -0
  1432. package/dist/packages/ui/src/lib/ui-builder/store/layer-store.mjs +381 -0
  1433. package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.cjs +326 -0
  1434. package/dist/packages/ui/src/lib/ui-builder/store/layer-utils.mjs +311 -0
  1435. package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.cjs +94 -0
  1436. package/dist/packages/ui/src/lib/ui-builder/store/schema-utils.mjs +89 -0
  1437. package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.cjs +19 -0
  1438. package/dist/packages/ui/src/lib/ui-builder/utils/get-scroll-parent.mjs +17 -0
  1439. package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.cjs +30 -0
  1440. package/dist/packages/ui/src/lib/ui-builder/utils/variable-resolver.mjs +23 -0
  1441. package/dist/plugins/cms/api/index.d.cts +2 -2
  1442. package/dist/plugins/cms/api/index.d.mts +2 -2
  1443. package/dist/plugins/cms/api/index.d.ts +2 -2
  1444. package/dist/plugins/cms/client/hooks/index.d.cts +1 -1
  1445. package/dist/plugins/cms/client/hooks/index.d.mts +1 -1
  1446. package/dist/plugins/cms/client/hooks/index.d.ts +1 -1
  1447. package/dist/plugins/cms/client/index.d.cts +2 -2
  1448. package/dist/plugins/cms/client/index.d.mts +2 -2
  1449. package/dist/plugins/cms/client/index.d.ts +2 -2
  1450. package/dist/plugins/cms/query-keys.d.cts +1 -1
  1451. package/dist/plugins/cms/query-keys.d.mts +1 -1
  1452. package/dist/plugins/cms/query-keys.d.ts +1 -1
  1453. package/dist/plugins/form-builder/api/index.d.cts +1 -1
  1454. package/dist/plugins/form-builder/api/index.d.mts +1 -1
  1455. package/dist/plugins/form-builder/api/index.d.ts +1 -1
  1456. package/dist/plugins/form-builder/client/components/index.d.cts +1 -1
  1457. package/dist/plugins/form-builder/client/components/index.d.mts +1 -1
  1458. package/dist/plugins/form-builder/client/components/index.d.ts +1 -1
  1459. package/dist/plugins/form-builder/client/index.d.cts +2 -2
  1460. package/dist/plugins/form-builder/client/index.d.mts +2 -2
  1461. package/dist/plugins/form-builder/client/index.d.ts +2 -2
  1462. package/dist/plugins/ui-builder/client/components/index.cjs +12 -0
  1463. package/dist/plugins/ui-builder/client/components/index.d.cts +118 -0
  1464. package/dist/plugins/ui-builder/client/components/index.d.mts +118 -0
  1465. package/dist/plugins/ui-builder/client/components/index.d.ts +118 -0
  1466. package/dist/plugins/ui-builder/client/components/index.mjs +3 -0
  1467. package/dist/plugins/ui-builder/client/hooks/index.cjs +15 -0
  1468. package/dist/plugins/ui-builder/client/hooks/index.d.cts +154 -0
  1469. package/dist/plugins/ui-builder/client/hooks/index.d.mts +154 -0
  1470. package/dist/plugins/ui-builder/client/hooks/index.d.ts +154 -0
  1471. package/dist/plugins/ui-builder/client/hooks/index.mjs +1 -0
  1472. package/dist/plugins/ui-builder/client/index.cjs +38 -0
  1473. package/dist/plugins/ui-builder/client/index.d.cts +349 -0
  1474. package/dist/plugins/ui-builder/client/index.d.mts +349 -0
  1475. package/dist/plugins/ui-builder/client/index.d.ts +349 -0
  1476. package/dist/plugins/ui-builder/client/index.mjs +8 -0
  1477. package/dist/plugins/ui-builder/client.css +2 -0
  1478. package/dist/plugins/ui-builder/index.cjs +9 -0
  1479. package/dist/plugins/ui-builder/index.d.cts +47 -0
  1480. package/dist/plugins/ui-builder/index.d.mts +47 -0
  1481. package/dist/plugins/ui-builder/index.d.ts +47 -0
  1482. package/dist/plugins/ui-builder/index.mjs +1 -0
  1483. package/dist/plugins/ui-builder/style.css +26 -0
  1484. package/dist/shared/{stack.BIh2AXaW.d.cts → stack.8nldKomx.d.cts} +1 -10
  1485. package/dist/shared/{stack.BIh2AXaW.d.mts → stack.8nldKomx.d.mts} +1 -10
  1486. package/dist/shared/{stack.BIh2AXaW.d.ts → stack.8nldKomx.d.ts} +1 -10
  1487. package/dist/shared/stack.BD1m-4yB.d.ts +116 -0
  1488. package/dist/shared/stack.BSM2cgoq.d.cts +116 -0
  1489. package/dist/shared/{stack.oGOteE6g.d.mts → stack.BsXokfNh.d.cts} +1 -1
  1490. package/dist/shared/{stack.oGOteE6g.d.cts → stack.BsXokfNh.d.mts} +1 -1
  1491. package/dist/shared/{stack.oGOteE6g.d.ts → stack.BsXokfNh.d.ts} +1 -1
  1492. package/dist/shared/stack.CLtOoAqF.d.mts +116 -0
  1493. package/dist/shared/{stack.AX5nZ6A3.d.ts → stack.Co034Fpm.d.cts} +0 -21
  1494. package/dist/shared/{stack.AX5nZ6A3.d.cts → stack.Co034Fpm.d.mts} +0 -21
  1495. package/dist/shared/{stack.AX5nZ6A3.d.mts → stack.Co034Fpm.d.ts} +0 -21
  1496. package/dist/shared/stack.CqfZWfjJ.d.cts +42 -0
  1497. package/dist/shared/stack.MMntCVZZ.d.ts +42 -0
  1498. package/dist/shared/stack.e1FN86dE.d.mts +42 -0
  1499. package/package.json +54 -1
  1500. package/src/plugins/cms/client/components/forms/content-form.tsx +2 -2
  1501. package/src/plugins/form-builder/client/components/forms/form-renderer.tsx +1 -1
  1502. package/src/plugins/ui-builder/client/components/index.ts +10 -0
  1503. package/src/plugins/ui-builder/client/components/loading/index.ts +2 -0
  1504. package/src/plugins/ui-builder/client/components/loading/page-builder-skeleton.tsx +46 -0
  1505. package/src/plugins/ui-builder/client/components/loading/page-list-skeleton.tsx +25 -0
  1506. package/src/plugins/ui-builder/client/components/page-renderer.tsx +230 -0
  1507. package/src/plugins/ui-builder/client/components/pages/page-builder-page.internal.tsx +344 -0
  1508. package/src/plugins/ui-builder/client/components/pages/page-builder-page.tsx +26 -0
  1509. package/src/plugins/ui-builder/client/components/pages/page-list-page.internal.tsx +217 -0
  1510. package/src/plugins/ui-builder/client/components/pages/page-list-page.tsx +22 -0
  1511. package/src/plugins/ui-builder/client/components/shared/default-error.tsx +30 -0
  1512. package/src/plugins/ui-builder/client/components/shared/empty-state.tsx +26 -0
  1513. package/src/plugins/ui-builder/client/components/shared/page-wrapper.tsx +32 -0
  1514. package/src/plugins/ui-builder/client/components/shared/pagination.tsx +52 -0
  1515. package/src/plugins/ui-builder/client/hooks/index.tsx +20 -0
  1516. package/src/plugins/ui-builder/client/hooks/ui-builder-hooks.tsx +691 -0
  1517. package/src/plugins/ui-builder/client/index.ts +64 -0
  1518. package/src/plugins/ui-builder/client/localization/index.ts +64 -0
  1519. package/src/plugins/ui-builder/client/overrides.ts +99 -0
  1520. package/src/plugins/ui-builder/client/plugin.tsx +315 -0
  1521. package/src/plugins/ui-builder/client/registry.ts +611 -0
  1522. package/src/plugins/ui-builder/client.css +2 -0
  1523. package/src/plugins/ui-builder/index.ts +41 -0
  1524. package/src/plugins/ui-builder/schemas.ts +48 -0
  1525. package/src/plugins/ui-builder/style.css +26 -0
  1526. package/src/plugins/ui-builder/types.ts +137 -0
  1527. package/src/plugins/index.ts +0 -0
  1528. /package/dist/packages/ui/src/components/auto-form/{utils.cjs → helpers.cjs} +0 -0
  1529. /package/dist/packages/ui/src/components/auto-form/{utils.mjs → helpers.mjs} +0 -0
@@ -0,0 +1,3464 @@
1
+ import OrderedMap from '../../../../orderedmap@2.1.1/node_modules/orderedmap/dist/index.mjs';
2
+
3
+ function findDiffStart(a, b, pos) {
4
+ for (let i = 0;; i++) {
5
+ if (i == a.childCount || i == b.childCount)
6
+ return a.childCount == b.childCount ? null : pos;
7
+ let childA = a.child(i), childB = b.child(i);
8
+ if (childA == childB) {
9
+ pos += childA.nodeSize;
10
+ continue;
11
+ }
12
+ if (!childA.sameMarkup(childB))
13
+ return pos;
14
+ if (childA.isText && childA.text != childB.text) {
15
+ for (let j = 0; childA.text[j] == childB.text[j]; j++)
16
+ pos++;
17
+ return pos;
18
+ }
19
+ if (childA.content.size || childB.content.size) {
20
+ let inner = findDiffStart(childA.content, childB.content, pos + 1);
21
+ if (inner != null)
22
+ return inner;
23
+ }
24
+ pos += childA.nodeSize;
25
+ }
26
+ }
27
+ function findDiffEnd(a, b, posA, posB) {
28
+ for (let iA = a.childCount, iB = b.childCount;;) {
29
+ if (iA == 0 || iB == 0)
30
+ return iA == iB ? null : { a: posA, b: posB };
31
+ let childA = a.child(--iA), childB = b.child(--iB), size = childA.nodeSize;
32
+ if (childA == childB) {
33
+ posA -= size;
34
+ posB -= size;
35
+ continue;
36
+ }
37
+ if (!childA.sameMarkup(childB))
38
+ return { a: posA, b: posB };
39
+ if (childA.isText && childA.text != childB.text) {
40
+ let same = 0, minSize = Math.min(childA.text.length, childB.text.length);
41
+ while (same < minSize && childA.text[childA.text.length - same - 1] == childB.text[childB.text.length - same - 1]) {
42
+ same++;
43
+ posA--;
44
+ posB--;
45
+ }
46
+ return { a: posA, b: posB };
47
+ }
48
+ if (childA.content.size || childB.content.size) {
49
+ let inner = findDiffEnd(childA.content, childB.content, posA - 1, posB - 1);
50
+ if (inner)
51
+ return inner;
52
+ }
53
+ posA -= size;
54
+ posB -= size;
55
+ }
56
+ }
57
+
58
+ /**
59
+ A fragment represents a node's collection of child nodes.
60
+
61
+ Like nodes, fragments are persistent data structures, and you
62
+ should not mutate them or their content. Rather, you create new
63
+ instances whenever needed. The API tries to make this easy.
64
+ */
65
+ class Fragment {
66
+ /**
67
+ @internal
68
+ */
69
+ constructor(
70
+ /**
71
+ The child nodes in this fragment.
72
+ */
73
+ content, size) {
74
+ this.content = content;
75
+ this.size = size || 0;
76
+ if (size == null)
77
+ for (let i = 0; i < content.length; i++)
78
+ this.size += content[i].nodeSize;
79
+ }
80
+ /**
81
+ Invoke a callback for all descendant nodes between the given two
82
+ positions (relative to start of this fragment). Doesn't descend
83
+ into a node when the callback returns `false`.
84
+ */
85
+ nodesBetween(from, to, f, nodeStart = 0, parent) {
86
+ for (let i = 0, pos = 0; pos < to; i++) {
87
+ let child = this.content[i], end = pos + child.nodeSize;
88
+ if (end > from && f(child, nodeStart + pos, parent || null, i) !== false && child.content.size) {
89
+ let start = pos + 1;
90
+ child.nodesBetween(Math.max(0, from - start), Math.min(child.content.size, to - start), f, nodeStart + start);
91
+ }
92
+ pos = end;
93
+ }
94
+ }
95
+ /**
96
+ Call the given callback for every descendant node. `pos` will be
97
+ relative to the start of the fragment. The callback may return
98
+ `false` to prevent traversal of a given node's children.
99
+ */
100
+ descendants(f) {
101
+ this.nodesBetween(0, this.size, f);
102
+ }
103
+ /**
104
+ Extract the text between `from` and `to`. See the same method on
105
+ [`Node`](https://prosemirror.net/docs/ref/#model.Node.textBetween).
106
+ */
107
+ textBetween(from, to, blockSeparator, leafText) {
108
+ let text = "", first = true;
109
+ this.nodesBetween(from, to, (node, pos) => {
110
+ let nodeText = node.isText ? node.text.slice(Math.max(from, pos) - pos, to - pos)
111
+ : !node.isLeaf ? ""
112
+ : leafText ? (typeof leafText === "function" ? leafText(node) : leafText)
113
+ : node.type.spec.leafText ? node.type.spec.leafText(node)
114
+ : "";
115
+ if (node.isBlock && (node.isLeaf && nodeText || node.isTextblock) && blockSeparator) {
116
+ if (first)
117
+ first = false;
118
+ else
119
+ text += blockSeparator;
120
+ }
121
+ text += nodeText;
122
+ }, 0);
123
+ return text;
124
+ }
125
+ /**
126
+ Create a new fragment containing the combined content of this
127
+ fragment and the other.
128
+ */
129
+ append(other) {
130
+ if (!other.size)
131
+ return this;
132
+ if (!this.size)
133
+ return other;
134
+ let last = this.lastChild, first = other.firstChild, content = this.content.slice(), i = 0;
135
+ if (last.isText && last.sameMarkup(first)) {
136
+ content[content.length - 1] = last.withText(last.text + first.text);
137
+ i = 1;
138
+ }
139
+ for (; i < other.content.length; i++)
140
+ content.push(other.content[i]);
141
+ return new Fragment(content, this.size + other.size);
142
+ }
143
+ /**
144
+ Cut out the sub-fragment between the two given positions.
145
+ */
146
+ cut(from, to = this.size) {
147
+ if (from == 0 && to == this.size)
148
+ return this;
149
+ let result = [], size = 0;
150
+ if (to > from)
151
+ for (let i = 0, pos = 0; pos < to; i++) {
152
+ let child = this.content[i], end = pos + child.nodeSize;
153
+ if (end > from) {
154
+ if (pos < from || end > to) {
155
+ if (child.isText)
156
+ child = child.cut(Math.max(0, from - pos), Math.min(child.text.length, to - pos));
157
+ else
158
+ child = child.cut(Math.max(0, from - pos - 1), Math.min(child.content.size, to - pos - 1));
159
+ }
160
+ result.push(child);
161
+ size += child.nodeSize;
162
+ }
163
+ pos = end;
164
+ }
165
+ return new Fragment(result, size);
166
+ }
167
+ /**
168
+ @internal
169
+ */
170
+ cutByIndex(from, to) {
171
+ if (from == to)
172
+ return Fragment.empty;
173
+ if (from == 0 && to == this.content.length)
174
+ return this;
175
+ return new Fragment(this.content.slice(from, to));
176
+ }
177
+ /**
178
+ Create a new fragment in which the node at the given index is
179
+ replaced by the given node.
180
+ */
181
+ replaceChild(index, node) {
182
+ let current = this.content[index];
183
+ if (current == node)
184
+ return this;
185
+ let copy = this.content.slice();
186
+ let size = this.size + node.nodeSize - current.nodeSize;
187
+ copy[index] = node;
188
+ return new Fragment(copy, size);
189
+ }
190
+ /**
191
+ Create a new fragment by prepending the given node to this
192
+ fragment.
193
+ */
194
+ addToStart(node) {
195
+ return new Fragment([node].concat(this.content), this.size + node.nodeSize);
196
+ }
197
+ /**
198
+ Create a new fragment by appending the given node to this
199
+ fragment.
200
+ */
201
+ addToEnd(node) {
202
+ return new Fragment(this.content.concat(node), this.size + node.nodeSize);
203
+ }
204
+ /**
205
+ Compare this fragment to another one.
206
+ */
207
+ eq(other) {
208
+ if (this.content.length != other.content.length)
209
+ return false;
210
+ for (let i = 0; i < this.content.length; i++)
211
+ if (!this.content[i].eq(other.content[i]))
212
+ return false;
213
+ return true;
214
+ }
215
+ /**
216
+ The first child of the fragment, or `null` if it is empty.
217
+ */
218
+ get firstChild() { return this.content.length ? this.content[0] : null; }
219
+ /**
220
+ The last child of the fragment, or `null` if it is empty.
221
+ */
222
+ get lastChild() { return this.content.length ? this.content[this.content.length - 1] : null; }
223
+ /**
224
+ The number of child nodes in this fragment.
225
+ */
226
+ get childCount() { return this.content.length; }
227
+ /**
228
+ Get the child node at the given index. Raise an error when the
229
+ index is out of range.
230
+ */
231
+ child(index) {
232
+ let found = this.content[index];
233
+ if (!found)
234
+ throw new RangeError("Index " + index + " out of range for " + this);
235
+ return found;
236
+ }
237
+ /**
238
+ Get the child node at the given index, if it exists.
239
+ */
240
+ maybeChild(index) {
241
+ return this.content[index] || null;
242
+ }
243
+ /**
244
+ Call `f` for every child node, passing the node, its offset
245
+ into this parent node, and its index.
246
+ */
247
+ forEach(f) {
248
+ for (let i = 0, p = 0; i < this.content.length; i++) {
249
+ let child = this.content[i];
250
+ f(child, p, i);
251
+ p += child.nodeSize;
252
+ }
253
+ }
254
+ /**
255
+ Find the first position at which this fragment and another
256
+ fragment differ, or `null` if they are the same.
257
+ */
258
+ findDiffStart(other, pos = 0) {
259
+ return findDiffStart(this, other, pos);
260
+ }
261
+ /**
262
+ Find the first position, searching from the end, at which this
263
+ fragment and the given fragment differ, or `null` if they are
264
+ the same. Since this position will not be the same in both
265
+ nodes, an object with two separate positions is returned.
266
+ */
267
+ findDiffEnd(other, pos = this.size, otherPos = other.size) {
268
+ return findDiffEnd(this, other, pos, otherPos);
269
+ }
270
+ /**
271
+ Find the index and inner offset corresponding to a given relative
272
+ position in this fragment. The result object will be reused
273
+ (overwritten) the next time the function is called. @internal
274
+ */
275
+ findIndex(pos) {
276
+ if (pos == 0)
277
+ return retIndex(0, pos);
278
+ if (pos == this.size)
279
+ return retIndex(this.content.length, pos);
280
+ if (pos > this.size || pos < 0)
281
+ throw new RangeError(`Position ${pos} outside of fragment (${this})`);
282
+ for (let i = 0, curPos = 0;; i++) {
283
+ let cur = this.child(i), end = curPos + cur.nodeSize;
284
+ if (end >= pos) {
285
+ if (end == pos)
286
+ return retIndex(i + 1, end);
287
+ return retIndex(i, curPos);
288
+ }
289
+ curPos = end;
290
+ }
291
+ }
292
+ /**
293
+ Return a debugging string that describes this fragment.
294
+ */
295
+ toString() { return "<" + this.toStringInner() + ">"; }
296
+ /**
297
+ @internal
298
+ */
299
+ toStringInner() { return this.content.join(", "); }
300
+ /**
301
+ Create a JSON-serializeable representation of this fragment.
302
+ */
303
+ toJSON() {
304
+ return this.content.length ? this.content.map(n => n.toJSON()) : null;
305
+ }
306
+ /**
307
+ Deserialize a fragment from its JSON representation.
308
+ */
309
+ static fromJSON(schema, value) {
310
+ if (!value)
311
+ return Fragment.empty;
312
+ if (!Array.isArray(value))
313
+ throw new RangeError("Invalid input for Fragment.fromJSON");
314
+ return new Fragment(value.map(schema.nodeFromJSON));
315
+ }
316
+ /**
317
+ Build a fragment from an array of nodes. Ensures that adjacent
318
+ text nodes with the same marks are joined together.
319
+ */
320
+ static fromArray(array) {
321
+ if (!array.length)
322
+ return Fragment.empty;
323
+ let joined, size = 0;
324
+ for (let i = 0; i < array.length; i++) {
325
+ let node = array[i];
326
+ size += node.nodeSize;
327
+ if (i && node.isText && array[i - 1].sameMarkup(node)) {
328
+ if (!joined)
329
+ joined = array.slice(0, i);
330
+ joined[joined.length - 1] = node
331
+ .withText(joined[joined.length - 1].text + node.text);
332
+ }
333
+ else if (joined) {
334
+ joined.push(node);
335
+ }
336
+ }
337
+ return new Fragment(joined || array, size);
338
+ }
339
+ /**
340
+ Create a fragment from something that can be interpreted as a
341
+ set of nodes. For `null`, it returns the empty fragment. For a
342
+ fragment, the fragment itself. For a node or array of nodes, a
343
+ fragment containing those nodes.
344
+ */
345
+ static from(nodes) {
346
+ if (!nodes)
347
+ return Fragment.empty;
348
+ if (nodes instanceof Fragment)
349
+ return nodes;
350
+ if (Array.isArray(nodes))
351
+ return this.fromArray(nodes);
352
+ if (nodes.attrs)
353
+ return new Fragment([nodes], nodes.nodeSize);
354
+ throw new RangeError("Can not convert " + nodes + " to a Fragment" +
355
+ (nodes.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
356
+ }
357
+ }
358
+ /**
359
+ An empty fragment. Intended to be reused whenever a node doesn't
360
+ contain anything (rather than allocating a new empty fragment for
361
+ each leaf node).
362
+ */
363
+ Fragment.empty = new Fragment([], 0);
364
+ const found = { index: 0, offset: 0 };
365
+ function retIndex(index, offset) {
366
+ found.index = index;
367
+ found.offset = offset;
368
+ return found;
369
+ }
370
+
371
+ function compareDeep(a, b) {
372
+ if (a === b)
373
+ return true;
374
+ if (!(a && typeof a == "object") ||
375
+ !(b && typeof b == "object"))
376
+ return false;
377
+ let array = Array.isArray(a);
378
+ if (Array.isArray(b) != array)
379
+ return false;
380
+ if (array) {
381
+ if (a.length != b.length)
382
+ return false;
383
+ for (let i = 0; i < a.length; i++)
384
+ if (!compareDeep(a[i], b[i]))
385
+ return false;
386
+ }
387
+ else {
388
+ for (let p in a)
389
+ if (!(p in b) || !compareDeep(a[p], b[p]))
390
+ return false;
391
+ for (let p in b)
392
+ if (!(p in a))
393
+ return false;
394
+ }
395
+ return true;
396
+ }
397
+
398
+ /**
399
+ A mark is a piece of information that can be attached to a node,
400
+ such as it being emphasized, in code font, or a link. It has a
401
+ type and optionally a set of attributes that provide further
402
+ information (such as the target of the link). Marks are created
403
+ through a `Schema`, which controls which types exist and which
404
+ attributes they have.
405
+ */
406
+ class Mark {
407
+ /**
408
+ @internal
409
+ */
410
+ constructor(
411
+ /**
412
+ The type of this mark.
413
+ */
414
+ type,
415
+ /**
416
+ The attributes associated with this mark.
417
+ */
418
+ attrs) {
419
+ this.type = type;
420
+ this.attrs = attrs;
421
+ }
422
+ /**
423
+ Given a set of marks, create a new set which contains this one as
424
+ well, in the right position. If this mark is already in the set,
425
+ the set itself is returned. If any marks that are set to be
426
+ [exclusive](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) with this mark are present,
427
+ those are replaced by this one.
428
+ */
429
+ addToSet(set) {
430
+ let copy, placed = false;
431
+ for (let i = 0; i < set.length; i++) {
432
+ let other = set[i];
433
+ if (this.eq(other))
434
+ return set;
435
+ if (this.type.excludes(other.type)) {
436
+ if (!copy)
437
+ copy = set.slice(0, i);
438
+ }
439
+ else if (other.type.excludes(this.type)) {
440
+ return set;
441
+ }
442
+ else {
443
+ if (!placed && other.type.rank > this.type.rank) {
444
+ if (!copy)
445
+ copy = set.slice(0, i);
446
+ copy.push(this);
447
+ placed = true;
448
+ }
449
+ if (copy)
450
+ copy.push(other);
451
+ }
452
+ }
453
+ if (!copy)
454
+ copy = set.slice();
455
+ if (!placed)
456
+ copy.push(this);
457
+ return copy;
458
+ }
459
+ /**
460
+ Remove this mark from the given set, returning a new set. If this
461
+ mark is not in the set, the set itself is returned.
462
+ */
463
+ removeFromSet(set) {
464
+ for (let i = 0; i < set.length; i++)
465
+ if (this.eq(set[i]))
466
+ return set.slice(0, i).concat(set.slice(i + 1));
467
+ return set;
468
+ }
469
+ /**
470
+ Test whether this mark is in the given set of marks.
471
+ */
472
+ isInSet(set) {
473
+ for (let i = 0; i < set.length; i++)
474
+ if (this.eq(set[i]))
475
+ return true;
476
+ return false;
477
+ }
478
+ /**
479
+ Test whether this mark has the same type and attributes as
480
+ another mark.
481
+ */
482
+ eq(other) {
483
+ return this == other ||
484
+ (this.type == other.type && compareDeep(this.attrs, other.attrs));
485
+ }
486
+ /**
487
+ Convert this mark to a JSON-serializeable representation.
488
+ */
489
+ toJSON() {
490
+ let obj = { type: this.type.name };
491
+ for (let _ in this.attrs) {
492
+ obj.attrs = this.attrs;
493
+ break;
494
+ }
495
+ return obj;
496
+ }
497
+ /**
498
+ Deserialize a mark from JSON.
499
+ */
500
+ static fromJSON(schema, json) {
501
+ if (!json)
502
+ throw new RangeError("Invalid input for Mark.fromJSON");
503
+ let type = schema.marks[json.type];
504
+ if (!type)
505
+ throw new RangeError(`There is no mark type ${json.type} in this schema`);
506
+ let mark = type.create(json.attrs);
507
+ type.checkAttrs(mark.attrs);
508
+ return mark;
509
+ }
510
+ /**
511
+ Test whether two sets of marks are identical.
512
+ */
513
+ static sameSet(a, b) {
514
+ if (a == b)
515
+ return true;
516
+ if (a.length != b.length)
517
+ return false;
518
+ for (let i = 0; i < a.length; i++)
519
+ if (!a[i].eq(b[i]))
520
+ return false;
521
+ return true;
522
+ }
523
+ /**
524
+ Create a properly sorted mark set from null, a single mark, or an
525
+ unsorted array of marks.
526
+ */
527
+ static setFrom(marks) {
528
+ if (!marks || Array.isArray(marks) && marks.length == 0)
529
+ return Mark.none;
530
+ if (marks instanceof Mark)
531
+ return [marks];
532
+ let copy = marks.slice();
533
+ copy.sort((a, b) => a.type.rank - b.type.rank);
534
+ return copy;
535
+ }
536
+ }
537
+ /**
538
+ The empty set of marks.
539
+ */
540
+ Mark.none = [];
541
+
542
+ /**
543
+ Error type raised by [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) when
544
+ given an invalid replacement.
545
+ */
546
+ class ReplaceError extends Error {
547
+ }
548
+ /*
549
+ ReplaceError = function(this: any, message: string) {
550
+ let err = Error.call(this, message)
551
+ ;(err as any).__proto__ = ReplaceError.prototype
552
+ return err
553
+ } as any
554
+
555
+ ReplaceError.prototype = Object.create(Error.prototype)
556
+ ReplaceError.prototype.constructor = ReplaceError
557
+ ReplaceError.prototype.name = "ReplaceError"
558
+ */
559
+ /**
560
+ A slice represents a piece cut out of a larger document. It
561
+ stores not only a fragment, but also the depth up to which nodes on
562
+ both side are ‘open’ (cut through).
563
+ */
564
+ class Slice {
565
+ /**
566
+ Create a slice. When specifying a non-zero open depth, you must
567
+ make sure that there are nodes of at least that depth at the
568
+ appropriate side of the fragment—i.e. if the fragment is an
569
+ empty paragraph node, `openStart` and `openEnd` can't be greater
570
+ than 1.
571
+
572
+ It is not necessary for the content of open nodes to conform to
573
+ the schema's content constraints, though it should be a valid
574
+ start/end/middle for such a node, depending on which sides are
575
+ open.
576
+ */
577
+ constructor(
578
+ /**
579
+ The slice's content.
580
+ */
581
+ content,
582
+ /**
583
+ The open depth at the start of the fragment.
584
+ */
585
+ openStart,
586
+ /**
587
+ The open depth at the end.
588
+ */
589
+ openEnd) {
590
+ this.content = content;
591
+ this.openStart = openStart;
592
+ this.openEnd = openEnd;
593
+ }
594
+ /**
595
+ The size this slice would add when inserted into a document.
596
+ */
597
+ get size() {
598
+ return this.content.size - this.openStart - this.openEnd;
599
+ }
600
+ /**
601
+ @internal
602
+ */
603
+ insertAt(pos, fragment) {
604
+ let content = insertInto(this.content, pos + this.openStart, fragment);
605
+ return content && new Slice(content, this.openStart, this.openEnd);
606
+ }
607
+ /**
608
+ @internal
609
+ */
610
+ removeBetween(from, to) {
611
+ return new Slice(removeRange(this.content, from + this.openStart, to + this.openStart), this.openStart, this.openEnd);
612
+ }
613
+ /**
614
+ Tests whether this slice is equal to another slice.
615
+ */
616
+ eq(other) {
617
+ return this.content.eq(other.content) && this.openStart == other.openStart && this.openEnd == other.openEnd;
618
+ }
619
+ /**
620
+ @internal
621
+ */
622
+ toString() {
623
+ return this.content + "(" + this.openStart + "," + this.openEnd + ")";
624
+ }
625
+ /**
626
+ Convert a slice to a JSON-serializable representation.
627
+ */
628
+ toJSON() {
629
+ if (!this.content.size)
630
+ return null;
631
+ let json = { content: this.content.toJSON() };
632
+ if (this.openStart > 0)
633
+ json.openStart = this.openStart;
634
+ if (this.openEnd > 0)
635
+ json.openEnd = this.openEnd;
636
+ return json;
637
+ }
638
+ /**
639
+ Deserialize a slice from its JSON representation.
640
+ */
641
+ static fromJSON(schema, json) {
642
+ if (!json)
643
+ return Slice.empty;
644
+ let openStart = json.openStart || 0, openEnd = json.openEnd || 0;
645
+ if (typeof openStart != "number" || typeof openEnd != "number")
646
+ throw new RangeError("Invalid input for Slice.fromJSON");
647
+ return new Slice(Fragment.fromJSON(schema, json.content), openStart, openEnd);
648
+ }
649
+ /**
650
+ Create a slice from a fragment by taking the maximum possible
651
+ open value on both side of the fragment.
652
+ */
653
+ static maxOpen(fragment, openIsolating = true) {
654
+ let openStart = 0, openEnd = 0;
655
+ for (let n = fragment.firstChild; n && !n.isLeaf && (openIsolating || !n.type.spec.isolating); n = n.firstChild)
656
+ openStart++;
657
+ for (let n = fragment.lastChild; n && !n.isLeaf && (openIsolating || !n.type.spec.isolating); n = n.lastChild)
658
+ openEnd++;
659
+ return new Slice(fragment, openStart, openEnd);
660
+ }
661
+ }
662
+ /**
663
+ The empty slice.
664
+ */
665
+ Slice.empty = new Slice(Fragment.empty, 0, 0);
666
+ function removeRange(content, from, to) {
667
+ let { index, offset } = content.findIndex(from), child = content.maybeChild(index);
668
+ let { index: indexTo, offset: offsetTo } = content.findIndex(to);
669
+ if (offset == from || child.isText) {
670
+ if (offsetTo != to && !content.child(indexTo).isText)
671
+ throw new RangeError("Removing non-flat range");
672
+ return content.cut(0, from).append(content.cut(to));
673
+ }
674
+ if (index != indexTo)
675
+ throw new RangeError("Removing non-flat range");
676
+ return content.replaceChild(index, child.copy(removeRange(child.content, from - offset - 1, to - offset - 1)));
677
+ }
678
+ function insertInto(content, dist, insert, parent) {
679
+ let { index, offset } = content.findIndex(dist), child = content.maybeChild(index);
680
+ if (offset == dist || child.isText) {
681
+ if (parent && !parent.canReplace(index, index, insert))
682
+ return null;
683
+ return content.cut(0, dist).append(insert).append(content.cut(dist));
684
+ }
685
+ let inner = insertInto(child.content, dist - offset - 1, insert, child);
686
+ return inner && content.replaceChild(index, child.copy(inner));
687
+ }
688
+ function replace($from, $to, slice) {
689
+ if (slice.openStart > $from.depth)
690
+ throw new ReplaceError("Inserted content deeper than insertion position");
691
+ if ($from.depth - slice.openStart != $to.depth - slice.openEnd)
692
+ throw new ReplaceError("Inconsistent open depths");
693
+ return replaceOuter($from, $to, slice, 0);
694
+ }
695
+ function replaceOuter($from, $to, slice, depth) {
696
+ let index = $from.index(depth), node = $from.node(depth);
697
+ if (index == $to.index(depth) && depth < $from.depth - slice.openStart) {
698
+ let inner = replaceOuter($from, $to, slice, depth + 1);
699
+ return node.copy(node.content.replaceChild(index, inner));
700
+ }
701
+ else if (!slice.content.size) {
702
+ return close(node, replaceTwoWay($from, $to, depth));
703
+ }
704
+ else if (!slice.openStart && !slice.openEnd && $from.depth == depth && $to.depth == depth) { // Simple, flat case
705
+ let parent = $from.parent, content = parent.content;
706
+ return close(parent, content.cut(0, $from.parentOffset).append(slice.content).append(content.cut($to.parentOffset)));
707
+ }
708
+ else {
709
+ let { start, end } = prepareSliceForReplace(slice, $from);
710
+ return close(node, replaceThreeWay($from, start, end, $to, depth));
711
+ }
712
+ }
713
+ function checkJoin(main, sub) {
714
+ if (!sub.type.compatibleContent(main.type))
715
+ throw new ReplaceError("Cannot join " + sub.type.name + " onto " + main.type.name);
716
+ }
717
+ function joinable($before, $after, depth) {
718
+ let node = $before.node(depth);
719
+ checkJoin(node, $after.node(depth));
720
+ return node;
721
+ }
722
+ function addNode(child, target) {
723
+ let last = target.length - 1;
724
+ if (last >= 0 && child.isText && child.sameMarkup(target[last]))
725
+ target[last] = child.withText(target[last].text + child.text);
726
+ else
727
+ target.push(child);
728
+ }
729
+ function addRange($start, $end, depth, target) {
730
+ let node = ($end || $start).node(depth);
731
+ let startIndex = 0, endIndex = $end ? $end.index(depth) : node.childCount;
732
+ if ($start) {
733
+ startIndex = $start.index(depth);
734
+ if ($start.depth > depth) {
735
+ startIndex++;
736
+ }
737
+ else if ($start.textOffset) {
738
+ addNode($start.nodeAfter, target);
739
+ startIndex++;
740
+ }
741
+ }
742
+ for (let i = startIndex; i < endIndex; i++)
743
+ addNode(node.child(i), target);
744
+ if ($end && $end.depth == depth && $end.textOffset)
745
+ addNode($end.nodeBefore, target);
746
+ }
747
+ function close(node, content) {
748
+ node.type.checkContent(content);
749
+ return node.copy(content);
750
+ }
751
+ function replaceThreeWay($from, $start, $end, $to, depth) {
752
+ let openStart = $from.depth > depth && joinable($from, $start, depth + 1);
753
+ let openEnd = $to.depth > depth && joinable($end, $to, depth + 1);
754
+ let content = [];
755
+ addRange(null, $from, depth, content);
756
+ if (openStart && openEnd && $start.index(depth) == $end.index(depth)) {
757
+ checkJoin(openStart, openEnd);
758
+ addNode(close(openStart, replaceThreeWay($from, $start, $end, $to, depth + 1)), content);
759
+ }
760
+ else {
761
+ if (openStart)
762
+ addNode(close(openStart, replaceTwoWay($from, $start, depth + 1)), content);
763
+ addRange($start, $end, depth, content);
764
+ if (openEnd)
765
+ addNode(close(openEnd, replaceTwoWay($end, $to, depth + 1)), content);
766
+ }
767
+ addRange($to, null, depth, content);
768
+ return new Fragment(content);
769
+ }
770
+ function replaceTwoWay($from, $to, depth) {
771
+ let content = [];
772
+ addRange(null, $from, depth, content);
773
+ if ($from.depth > depth) {
774
+ let type = joinable($from, $to, depth + 1);
775
+ addNode(close(type, replaceTwoWay($from, $to, depth + 1)), content);
776
+ }
777
+ addRange($to, null, depth, content);
778
+ return new Fragment(content);
779
+ }
780
+ function prepareSliceForReplace(slice, $along) {
781
+ let extra = $along.depth - slice.openStart, parent = $along.node(extra);
782
+ let node = parent.copy(slice.content);
783
+ for (let i = extra - 1; i >= 0; i--)
784
+ node = $along.node(i).copy(Fragment.from(node));
785
+ return { start: node.resolveNoCache(slice.openStart + extra),
786
+ end: node.resolveNoCache(node.content.size - slice.openEnd - extra) };
787
+ }
788
+
789
+ /**
790
+ You can [_resolve_](https://prosemirror.net/docs/ref/#model.Node.resolve) a position to get more
791
+ information about it. Objects of this class represent such a
792
+ resolved position, providing various pieces of context
793
+ information, and some helper methods.
794
+
795
+ Throughout this interface, methods that take an optional `depth`
796
+ parameter will interpret undefined as `this.depth` and negative
797
+ numbers as `this.depth + value`.
798
+ */
799
+ class ResolvedPos {
800
+ /**
801
+ @internal
802
+ */
803
+ constructor(
804
+ /**
805
+ The position that was resolved.
806
+ */
807
+ pos,
808
+ /**
809
+ @internal
810
+ */
811
+ path,
812
+ /**
813
+ The offset this position has into its parent node.
814
+ */
815
+ parentOffset) {
816
+ this.pos = pos;
817
+ this.path = path;
818
+ this.parentOffset = parentOffset;
819
+ this.depth = path.length / 3 - 1;
820
+ }
821
+ /**
822
+ @internal
823
+ */
824
+ resolveDepth(val) {
825
+ if (val == null)
826
+ return this.depth;
827
+ if (val < 0)
828
+ return this.depth + val;
829
+ return val;
830
+ }
831
+ /**
832
+ The parent node that the position points into. Note that even if
833
+ a position points into a text node, that node is not considered
834
+ the parent—text nodes are ‘flat’ in this model, and have no content.
835
+ */
836
+ get parent() { return this.node(this.depth); }
837
+ /**
838
+ The root node in which the position was resolved.
839
+ */
840
+ get doc() { return this.node(0); }
841
+ /**
842
+ The ancestor node at the given level. `p.node(p.depth)` is the
843
+ same as `p.parent`.
844
+ */
845
+ node(depth) { return this.path[this.resolveDepth(depth) * 3]; }
846
+ /**
847
+ The index into the ancestor at the given level. If this points
848
+ at the 3rd node in the 2nd paragraph on the top level, for
849
+ example, `p.index(0)` is 1 and `p.index(1)` is 2.
850
+ */
851
+ index(depth) { return this.path[this.resolveDepth(depth) * 3 + 1]; }
852
+ /**
853
+ The index pointing after this position into the ancestor at the
854
+ given level.
855
+ */
856
+ indexAfter(depth) {
857
+ depth = this.resolveDepth(depth);
858
+ return this.index(depth) + (depth == this.depth && !this.textOffset ? 0 : 1);
859
+ }
860
+ /**
861
+ The (absolute) position at the start of the node at the given
862
+ level.
863
+ */
864
+ start(depth) {
865
+ depth = this.resolveDepth(depth);
866
+ return depth == 0 ? 0 : this.path[depth * 3 - 1] + 1;
867
+ }
868
+ /**
869
+ The (absolute) position at the end of the node at the given
870
+ level.
871
+ */
872
+ end(depth) {
873
+ depth = this.resolveDepth(depth);
874
+ return this.start(depth) + this.node(depth).content.size;
875
+ }
876
+ /**
877
+ The (absolute) position directly before the wrapping node at the
878
+ given level, or, when `depth` is `this.depth + 1`, the original
879
+ position.
880
+ */
881
+ before(depth) {
882
+ depth = this.resolveDepth(depth);
883
+ if (!depth)
884
+ throw new RangeError("There is no position before the top-level node");
885
+ return depth == this.depth + 1 ? this.pos : this.path[depth * 3 - 1];
886
+ }
887
+ /**
888
+ The (absolute) position directly after the wrapping node at the
889
+ given level, or the original position when `depth` is `this.depth + 1`.
890
+ */
891
+ after(depth) {
892
+ depth = this.resolveDepth(depth);
893
+ if (!depth)
894
+ throw new RangeError("There is no position after the top-level node");
895
+ return depth == this.depth + 1 ? this.pos : this.path[depth * 3 - 1] + this.path[depth * 3].nodeSize;
896
+ }
897
+ /**
898
+ When this position points into a text node, this returns the
899
+ distance between the position and the start of the text node.
900
+ Will be zero for positions that point between nodes.
901
+ */
902
+ get textOffset() { return this.pos - this.path[this.path.length - 1]; }
903
+ /**
904
+ Get the node directly after the position, if any. If the position
905
+ points into a text node, only the part of that node after the
906
+ position is returned.
907
+ */
908
+ get nodeAfter() {
909
+ let parent = this.parent, index = this.index(this.depth);
910
+ if (index == parent.childCount)
911
+ return null;
912
+ let dOff = this.pos - this.path[this.path.length - 1], child = parent.child(index);
913
+ return dOff ? parent.child(index).cut(dOff) : child;
914
+ }
915
+ /**
916
+ Get the node directly before the position, if any. If the
917
+ position points into a text node, only the part of that node
918
+ before the position is returned.
919
+ */
920
+ get nodeBefore() {
921
+ let index = this.index(this.depth);
922
+ let dOff = this.pos - this.path[this.path.length - 1];
923
+ if (dOff)
924
+ return this.parent.child(index).cut(0, dOff);
925
+ return index == 0 ? null : this.parent.child(index - 1);
926
+ }
927
+ /**
928
+ Get the position at the given index in the parent node at the
929
+ given depth (which defaults to `this.depth`).
930
+ */
931
+ posAtIndex(index, depth) {
932
+ depth = this.resolveDepth(depth);
933
+ let node = this.path[depth * 3], pos = depth == 0 ? 0 : this.path[depth * 3 - 1] + 1;
934
+ for (let i = 0; i < index; i++)
935
+ pos += node.child(i).nodeSize;
936
+ return pos;
937
+ }
938
+ /**
939
+ Get the marks at this position, factoring in the surrounding
940
+ marks' [`inclusive`](https://prosemirror.net/docs/ref/#model.MarkSpec.inclusive) property. If the
941
+ position is at the start of a non-empty node, the marks of the
942
+ node after it (if any) are returned.
943
+ */
944
+ marks() {
945
+ let parent = this.parent, index = this.index();
946
+ // In an empty parent, return the empty array
947
+ if (parent.content.size == 0)
948
+ return Mark.none;
949
+ // When inside a text node, just return the text node's marks
950
+ if (this.textOffset)
951
+ return parent.child(index).marks;
952
+ let main = parent.maybeChild(index - 1), other = parent.maybeChild(index);
953
+ // If the `after` flag is true of there is no node before, make
954
+ // the node after this position the main reference.
955
+ if (!main) {
956
+ let tmp = main;
957
+ main = other;
958
+ other = tmp;
959
+ }
960
+ // Use all marks in the main node, except those that have
961
+ // `inclusive` set to false and are not present in the other node.
962
+ let marks = main.marks;
963
+ for (var i = 0; i < marks.length; i++)
964
+ if (marks[i].type.spec.inclusive === false && (!other || !marks[i].isInSet(other.marks)))
965
+ marks = marks[i--].removeFromSet(marks);
966
+ return marks;
967
+ }
968
+ /**
969
+ Get the marks after the current position, if any, except those
970
+ that are non-inclusive and not present at position `$end`. This
971
+ is mostly useful for getting the set of marks to preserve after a
972
+ deletion. Will return `null` if this position is at the end of
973
+ its parent node or its parent node isn't a textblock (in which
974
+ case no marks should be preserved).
975
+ */
976
+ marksAcross($end) {
977
+ let after = this.parent.maybeChild(this.index());
978
+ if (!after || !after.isInline)
979
+ return null;
980
+ let marks = after.marks, next = $end.parent.maybeChild($end.index());
981
+ for (var i = 0; i < marks.length; i++)
982
+ if (marks[i].type.spec.inclusive === false && (!next || !marks[i].isInSet(next.marks)))
983
+ marks = marks[i--].removeFromSet(marks);
984
+ return marks;
985
+ }
986
+ /**
987
+ The depth up to which this position and the given (non-resolved)
988
+ position share the same parent nodes.
989
+ */
990
+ sharedDepth(pos) {
991
+ for (let depth = this.depth; depth > 0; depth--)
992
+ if (this.start(depth) <= pos && this.end(depth) >= pos)
993
+ return depth;
994
+ return 0;
995
+ }
996
+ /**
997
+ Returns a range based on the place where this position and the
998
+ given position diverge around block content. If both point into
999
+ the same textblock, for example, a range around that textblock
1000
+ will be returned. If they point into different blocks, the range
1001
+ around those blocks in their shared ancestor is returned. You can
1002
+ pass in an optional predicate that will be called with a parent
1003
+ node to see if a range into that parent is acceptable.
1004
+ */
1005
+ blockRange(other = this, pred) {
1006
+ if (other.pos < this.pos)
1007
+ return other.blockRange(this);
1008
+ for (let d = this.depth - (this.parent.inlineContent || this.pos == other.pos ? 1 : 0); d >= 0; d--)
1009
+ if (other.pos <= this.end(d) && (!pred || pred(this.node(d))))
1010
+ return new NodeRange(this, other, d);
1011
+ return null;
1012
+ }
1013
+ /**
1014
+ Query whether the given position shares the same parent node.
1015
+ */
1016
+ sameParent(other) {
1017
+ return this.pos - this.parentOffset == other.pos - other.parentOffset;
1018
+ }
1019
+ /**
1020
+ Return the greater of this and the given position.
1021
+ */
1022
+ max(other) {
1023
+ return other.pos > this.pos ? other : this;
1024
+ }
1025
+ /**
1026
+ Return the smaller of this and the given position.
1027
+ */
1028
+ min(other) {
1029
+ return other.pos < this.pos ? other : this;
1030
+ }
1031
+ /**
1032
+ @internal
1033
+ */
1034
+ toString() {
1035
+ let str = "";
1036
+ for (let i = 1; i <= this.depth; i++)
1037
+ str += (str ? "/" : "") + this.node(i).type.name + "_" + this.index(i - 1);
1038
+ return str + ":" + this.parentOffset;
1039
+ }
1040
+ /**
1041
+ @internal
1042
+ */
1043
+ static resolve(doc, pos) {
1044
+ if (!(pos >= 0 && pos <= doc.content.size))
1045
+ throw new RangeError("Position " + pos + " out of range");
1046
+ let path = [];
1047
+ let start = 0, parentOffset = pos;
1048
+ for (let node = doc;;) {
1049
+ let { index, offset } = node.content.findIndex(parentOffset);
1050
+ let rem = parentOffset - offset;
1051
+ path.push(node, index, start + offset);
1052
+ if (!rem)
1053
+ break;
1054
+ node = node.child(index);
1055
+ if (node.isText)
1056
+ break;
1057
+ parentOffset = rem - 1;
1058
+ start += offset + 1;
1059
+ }
1060
+ return new ResolvedPos(pos, path, parentOffset);
1061
+ }
1062
+ /**
1063
+ @internal
1064
+ */
1065
+ static resolveCached(doc, pos) {
1066
+ let cache = resolveCache.get(doc);
1067
+ if (cache) {
1068
+ for (let i = 0; i < cache.elts.length; i++) {
1069
+ let elt = cache.elts[i];
1070
+ if (elt.pos == pos)
1071
+ return elt;
1072
+ }
1073
+ }
1074
+ else {
1075
+ resolveCache.set(doc, cache = new ResolveCache);
1076
+ }
1077
+ let result = cache.elts[cache.i] = ResolvedPos.resolve(doc, pos);
1078
+ cache.i = (cache.i + 1) % resolveCacheSize;
1079
+ return result;
1080
+ }
1081
+ }
1082
+ class ResolveCache {
1083
+ constructor() {
1084
+ this.elts = [];
1085
+ this.i = 0;
1086
+ }
1087
+ }
1088
+ const resolveCacheSize = 12, resolveCache = new WeakMap();
1089
+ /**
1090
+ Represents a flat range of content, i.e. one that starts and
1091
+ ends in the same node.
1092
+ */
1093
+ class NodeRange {
1094
+ /**
1095
+ Construct a node range. `$from` and `$to` should point into the
1096
+ same node until at least the given `depth`, since a node range
1097
+ denotes an adjacent set of nodes in a single parent node.
1098
+ */
1099
+ constructor(
1100
+ /**
1101
+ A resolved position along the start of the content. May have a
1102
+ `depth` greater than this object's `depth` property, since
1103
+ these are the positions that were used to compute the range,
1104
+ not re-resolved positions directly at its boundaries.
1105
+ */
1106
+ $from,
1107
+ /**
1108
+ A position along the end of the content. See
1109
+ caveat for [`$from`](https://prosemirror.net/docs/ref/#model.NodeRange.$from).
1110
+ */
1111
+ $to,
1112
+ /**
1113
+ The depth of the node that this range points into.
1114
+ */
1115
+ depth) {
1116
+ this.$from = $from;
1117
+ this.$to = $to;
1118
+ this.depth = depth;
1119
+ }
1120
+ /**
1121
+ The position at the start of the range.
1122
+ */
1123
+ get start() { return this.$from.before(this.depth + 1); }
1124
+ /**
1125
+ The position at the end of the range.
1126
+ */
1127
+ get end() { return this.$to.after(this.depth + 1); }
1128
+ /**
1129
+ The parent node that the range points into.
1130
+ */
1131
+ get parent() { return this.$from.node(this.depth); }
1132
+ /**
1133
+ The start index of the range in the parent node.
1134
+ */
1135
+ get startIndex() { return this.$from.index(this.depth); }
1136
+ /**
1137
+ The end index of the range in the parent node.
1138
+ */
1139
+ get endIndex() { return this.$to.indexAfter(this.depth); }
1140
+ }
1141
+
1142
+ const emptyAttrs = Object.create(null);
1143
+ /**
1144
+ This class represents a node in the tree that makes up a
1145
+ ProseMirror document. So a document is an instance of `Node`, with
1146
+ children that are also instances of `Node`.
1147
+
1148
+ Nodes are persistent data structures. Instead of changing them, you
1149
+ create new ones with the content you want. Old ones keep pointing
1150
+ at the old document shape. This is made cheaper by sharing
1151
+ structure between the old and new data as much as possible, which a
1152
+ tree shape like this (without back pointers) makes easy.
1153
+
1154
+ **Do not** directly mutate the properties of a `Node` object. See
1155
+ [the guide](https://prosemirror.net/docs/guide/#doc) for more information.
1156
+ */
1157
+ class Node {
1158
+ /**
1159
+ @internal
1160
+ */
1161
+ constructor(
1162
+ /**
1163
+ The type of node that this is.
1164
+ */
1165
+ type,
1166
+ /**
1167
+ An object mapping attribute names to values. The kind of
1168
+ attributes allowed and required are
1169
+ [determined](https://prosemirror.net/docs/ref/#model.NodeSpec.attrs) by the node type.
1170
+ */
1171
+ attrs,
1172
+ // A fragment holding the node's children.
1173
+ content,
1174
+ /**
1175
+ The marks (things like whether it is emphasized or part of a
1176
+ link) applied to this node.
1177
+ */
1178
+ marks = Mark.none) {
1179
+ this.type = type;
1180
+ this.attrs = attrs;
1181
+ this.marks = marks;
1182
+ this.content = content || Fragment.empty;
1183
+ }
1184
+ /**
1185
+ The array of this node's child nodes.
1186
+ */
1187
+ get children() { return this.content.content; }
1188
+ /**
1189
+ The size of this node, as defined by the integer-based [indexing
1190
+ scheme](https://prosemirror.net/docs/guide/#doc.indexing). For text nodes, this is the
1191
+ amount of characters. For other leaf nodes, it is one. For
1192
+ non-leaf nodes, it is the size of the content plus two (the
1193
+ start and end token).
1194
+ */
1195
+ get nodeSize() { return this.isLeaf ? 1 : 2 + this.content.size; }
1196
+ /**
1197
+ The number of children that the node has.
1198
+ */
1199
+ get childCount() { return this.content.childCount; }
1200
+ /**
1201
+ Get the child node at the given index. Raises an error when the
1202
+ index is out of range.
1203
+ */
1204
+ child(index) { return this.content.child(index); }
1205
+ /**
1206
+ Get the child node at the given index, if it exists.
1207
+ */
1208
+ maybeChild(index) { return this.content.maybeChild(index); }
1209
+ /**
1210
+ Call `f` for every child node, passing the node, its offset
1211
+ into this parent node, and its index.
1212
+ */
1213
+ forEach(f) { this.content.forEach(f); }
1214
+ /**
1215
+ Invoke a callback for all descendant nodes recursively between
1216
+ the given two positions that are relative to start of this
1217
+ node's content. The callback is invoked with the node, its
1218
+ position relative to the original node (method receiver),
1219
+ its parent node, and its child index. When the callback returns
1220
+ false for a given node, that node's children will not be
1221
+ recursed over. The last parameter can be used to specify a
1222
+ starting position to count from.
1223
+ */
1224
+ nodesBetween(from, to, f, startPos = 0) {
1225
+ this.content.nodesBetween(from, to, f, startPos, this);
1226
+ }
1227
+ /**
1228
+ Call the given callback for every descendant node. Doesn't
1229
+ descend into a node when the callback returns `false`.
1230
+ */
1231
+ descendants(f) {
1232
+ this.nodesBetween(0, this.content.size, f);
1233
+ }
1234
+ /**
1235
+ Concatenates all the text nodes found in this fragment and its
1236
+ children.
1237
+ */
1238
+ get textContent() {
1239
+ return (this.isLeaf && this.type.spec.leafText)
1240
+ ? this.type.spec.leafText(this)
1241
+ : this.textBetween(0, this.content.size, "");
1242
+ }
1243
+ /**
1244
+ Get all text between positions `from` and `to`. When
1245
+ `blockSeparator` is given, it will be inserted to separate text
1246
+ from different block nodes. If `leafText` is given, it'll be
1247
+ inserted for every non-text leaf node encountered, otherwise
1248
+ [`leafText`](https://prosemirror.net/docs/ref/#model.NodeSpec.leafText) will be used.
1249
+ */
1250
+ textBetween(from, to, blockSeparator, leafText) {
1251
+ return this.content.textBetween(from, to, blockSeparator, leafText);
1252
+ }
1253
+ /**
1254
+ Returns this node's first child, or `null` if there are no
1255
+ children.
1256
+ */
1257
+ get firstChild() { return this.content.firstChild; }
1258
+ /**
1259
+ Returns this node's last child, or `null` if there are no
1260
+ children.
1261
+ */
1262
+ get lastChild() { return this.content.lastChild; }
1263
+ /**
1264
+ Test whether two nodes represent the same piece of document.
1265
+ */
1266
+ eq(other) {
1267
+ return this == other || (this.sameMarkup(other) && this.content.eq(other.content));
1268
+ }
1269
+ /**
1270
+ Compare the markup (type, attributes, and marks) of this node to
1271
+ those of another. Returns `true` if both have the same markup.
1272
+ */
1273
+ sameMarkup(other) {
1274
+ return this.hasMarkup(other.type, other.attrs, other.marks);
1275
+ }
1276
+ /**
1277
+ Check whether this node's markup correspond to the given type,
1278
+ attributes, and marks.
1279
+ */
1280
+ hasMarkup(type, attrs, marks) {
1281
+ return this.type == type &&
1282
+ compareDeep(this.attrs, attrs || type.defaultAttrs || emptyAttrs) &&
1283
+ Mark.sameSet(this.marks, marks || Mark.none);
1284
+ }
1285
+ /**
1286
+ Create a new node with the same markup as this node, containing
1287
+ the given content (or empty, if no content is given).
1288
+ */
1289
+ copy(content = null) {
1290
+ if (content == this.content)
1291
+ return this;
1292
+ return new Node(this.type, this.attrs, content, this.marks);
1293
+ }
1294
+ /**
1295
+ Create a copy of this node, with the given set of marks instead
1296
+ of the node's own marks.
1297
+ */
1298
+ mark(marks) {
1299
+ return marks == this.marks ? this : new Node(this.type, this.attrs, this.content, marks);
1300
+ }
1301
+ /**
1302
+ Create a copy of this node with only the content between the
1303
+ given positions. If `to` is not given, it defaults to the end of
1304
+ the node.
1305
+ */
1306
+ cut(from, to = this.content.size) {
1307
+ if (from == 0 && to == this.content.size)
1308
+ return this;
1309
+ return this.copy(this.content.cut(from, to));
1310
+ }
1311
+ /**
1312
+ Cut out the part of the document between the given positions, and
1313
+ return it as a `Slice` object.
1314
+ */
1315
+ slice(from, to = this.content.size, includeParents = false) {
1316
+ if (from == to)
1317
+ return Slice.empty;
1318
+ let $from = this.resolve(from), $to = this.resolve(to);
1319
+ let depth = includeParents ? 0 : $from.sharedDepth(to);
1320
+ let start = $from.start(depth), node = $from.node(depth);
1321
+ let content = node.content.cut($from.pos - start, $to.pos - start);
1322
+ return new Slice(content, $from.depth - depth, $to.depth - depth);
1323
+ }
1324
+ /**
1325
+ Replace the part of the document between the given positions with
1326
+ the given slice. The slice must 'fit', meaning its open sides
1327
+ must be able to connect to the surrounding content, and its
1328
+ content nodes must be valid children for the node they are placed
1329
+ into. If any of this is violated, an error of type
1330
+ [`ReplaceError`](https://prosemirror.net/docs/ref/#model.ReplaceError) is thrown.
1331
+ */
1332
+ replace(from, to, slice) {
1333
+ return replace(this.resolve(from), this.resolve(to), slice);
1334
+ }
1335
+ /**
1336
+ Find the node directly after the given position.
1337
+ */
1338
+ nodeAt(pos) {
1339
+ for (let node = this;;) {
1340
+ let { index, offset } = node.content.findIndex(pos);
1341
+ node = node.maybeChild(index);
1342
+ if (!node)
1343
+ return null;
1344
+ if (offset == pos || node.isText)
1345
+ return node;
1346
+ pos -= offset + 1;
1347
+ }
1348
+ }
1349
+ /**
1350
+ Find the (direct) child node after the given offset, if any,
1351
+ and return it along with its index and offset relative to this
1352
+ node.
1353
+ */
1354
+ childAfter(pos) {
1355
+ let { index, offset } = this.content.findIndex(pos);
1356
+ return { node: this.content.maybeChild(index), index, offset };
1357
+ }
1358
+ /**
1359
+ Find the (direct) child node before the given offset, if any,
1360
+ and return it along with its index and offset relative to this
1361
+ node.
1362
+ */
1363
+ childBefore(pos) {
1364
+ if (pos == 0)
1365
+ return { node: null, index: 0, offset: 0 };
1366
+ let { index, offset } = this.content.findIndex(pos);
1367
+ if (offset < pos)
1368
+ return { node: this.content.child(index), index, offset };
1369
+ let node = this.content.child(index - 1);
1370
+ return { node, index: index - 1, offset: offset - node.nodeSize };
1371
+ }
1372
+ /**
1373
+ Resolve the given position in the document, returning an
1374
+ [object](https://prosemirror.net/docs/ref/#model.ResolvedPos) with information about its context.
1375
+ */
1376
+ resolve(pos) { return ResolvedPos.resolveCached(this, pos); }
1377
+ /**
1378
+ @internal
1379
+ */
1380
+ resolveNoCache(pos) { return ResolvedPos.resolve(this, pos); }
1381
+ /**
1382
+ Test whether a given mark or mark type occurs in this document
1383
+ between the two given positions.
1384
+ */
1385
+ rangeHasMark(from, to, type) {
1386
+ let found = false;
1387
+ if (to > from)
1388
+ this.nodesBetween(from, to, node => {
1389
+ if (type.isInSet(node.marks))
1390
+ found = true;
1391
+ return !found;
1392
+ });
1393
+ return found;
1394
+ }
1395
+ /**
1396
+ True when this is a block (non-inline node)
1397
+ */
1398
+ get isBlock() { return this.type.isBlock; }
1399
+ /**
1400
+ True when this is a textblock node, a block node with inline
1401
+ content.
1402
+ */
1403
+ get isTextblock() { return this.type.isTextblock; }
1404
+ /**
1405
+ True when this node allows inline content.
1406
+ */
1407
+ get inlineContent() { return this.type.inlineContent; }
1408
+ /**
1409
+ True when this is an inline node (a text node or a node that can
1410
+ appear among text).
1411
+ */
1412
+ get isInline() { return this.type.isInline; }
1413
+ /**
1414
+ True when this is a text node.
1415
+ */
1416
+ get isText() { return this.type.isText; }
1417
+ /**
1418
+ True when this is a leaf node.
1419
+ */
1420
+ get isLeaf() { return this.type.isLeaf; }
1421
+ /**
1422
+ True when this is an atom, i.e. when it does not have directly
1423
+ editable content. This is usually the same as `isLeaf`, but can
1424
+ be configured with the [`atom` property](https://prosemirror.net/docs/ref/#model.NodeSpec.atom)
1425
+ on a node's spec (typically used when the node is displayed as
1426
+ an uneditable [node view](https://prosemirror.net/docs/ref/#view.NodeView)).
1427
+ */
1428
+ get isAtom() { return this.type.isAtom; }
1429
+ /**
1430
+ Return a string representation of this node for debugging
1431
+ purposes.
1432
+ */
1433
+ toString() {
1434
+ if (this.type.spec.toDebugString)
1435
+ return this.type.spec.toDebugString(this);
1436
+ let name = this.type.name;
1437
+ if (this.content.size)
1438
+ name += "(" + this.content.toStringInner() + ")";
1439
+ return wrapMarks(this.marks, name);
1440
+ }
1441
+ /**
1442
+ Get the content match in this node at the given index.
1443
+ */
1444
+ contentMatchAt(index) {
1445
+ let match = this.type.contentMatch.matchFragment(this.content, 0, index);
1446
+ if (!match)
1447
+ throw new Error("Called contentMatchAt on a node with invalid content");
1448
+ return match;
1449
+ }
1450
+ /**
1451
+ Test whether replacing the range between `from` and `to` (by
1452
+ child index) with the given replacement fragment (which defaults
1453
+ to the empty fragment) would leave the node's content valid. You
1454
+ can optionally pass `start` and `end` indices into the
1455
+ replacement fragment.
1456
+ */
1457
+ canReplace(from, to, replacement = Fragment.empty, start = 0, end = replacement.childCount) {
1458
+ let one = this.contentMatchAt(from).matchFragment(replacement, start, end);
1459
+ let two = one && one.matchFragment(this.content, to);
1460
+ if (!two || !two.validEnd)
1461
+ return false;
1462
+ for (let i = start; i < end; i++)
1463
+ if (!this.type.allowsMarks(replacement.child(i).marks))
1464
+ return false;
1465
+ return true;
1466
+ }
1467
+ /**
1468
+ Test whether replacing the range `from` to `to` (by index) with
1469
+ a node of the given type would leave the node's content valid.
1470
+ */
1471
+ canReplaceWith(from, to, type, marks) {
1472
+ if (marks && !this.type.allowsMarks(marks))
1473
+ return false;
1474
+ let start = this.contentMatchAt(from).matchType(type);
1475
+ let end = start && start.matchFragment(this.content, to);
1476
+ return end ? end.validEnd : false;
1477
+ }
1478
+ /**
1479
+ Test whether the given node's content could be appended to this
1480
+ node. If that node is empty, this will only return true if there
1481
+ is at least one node type that can appear in both nodes (to avoid
1482
+ merging completely incompatible nodes).
1483
+ */
1484
+ canAppend(other) {
1485
+ if (other.content.size)
1486
+ return this.canReplace(this.childCount, this.childCount, other.content);
1487
+ else
1488
+ return this.type.compatibleContent(other.type);
1489
+ }
1490
+ /**
1491
+ Check whether this node and its descendants conform to the
1492
+ schema, and raise an exception when they do not.
1493
+ */
1494
+ check() {
1495
+ this.type.checkContent(this.content);
1496
+ this.type.checkAttrs(this.attrs);
1497
+ let copy = Mark.none;
1498
+ for (let i = 0; i < this.marks.length; i++) {
1499
+ let mark = this.marks[i];
1500
+ mark.type.checkAttrs(mark.attrs);
1501
+ copy = mark.addToSet(copy);
1502
+ }
1503
+ if (!Mark.sameSet(copy, this.marks))
1504
+ throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(m => m.type.name)}`);
1505
+ this.content.forEach(node => node.check());
1506
+ }
1507
+ /**
1508
+ Return a JSON-serializeable representation of this node.
1509
+ */
1510
+ toJSON() {
1511
+ let obj = { type: this.type.name };
1512
+ for (let _ in this.attrs) {
1513
+ obj.attrs = this.attrs;
1514
+ break;
1515
+ }
1516
+ if (this.content.size)
1517
+ obj.content = this.content.toJSON();
1518
+ if (this.marks.length)
1519
+ obj.marks = this.marks.map(n => n.toJSON());
1520
+ return obj;
1521
+ }
1522
+ /**
1523
+ Deserialize a node from its JSON representation.
1524
+ */
1525
+ static fromJSON(schema, json) {
1526
+ if (!json)
1527
+ throw new RangeError("Invalid input for Node.fromJSON");
1528
+ let marks = undefined;
1529
+ if (json.marks) {
1530
+ if (!Array.isArray(json.marks))
1531
+ throw new RangeError("Invalid mark data for Node.fromJSON");
1532
+ marks = json.marks.map(schema.markFromJSON);
1533
+ }
1534
+ if (json.type == "text") {
1535
+ if (typeof json.text != "string")
1536
+ throw new RangeError("Invalid text node in JSON");
1537
+ return schema.text(json.text, marks);
1538
+ }
1539
+ let content = Fragment.fromJSON(schema, json.content);
1540
+ let node = schema.nodeType(json.type).create(json.attrs, content, marks);
1541
+ node.type.checkAttrs(node.attrs);
1542
+ return node;
1543
+ }
1544
+ }
1545
+ Node.prototype.text = undefined;
1546
+ class TextNode extends Node {
1547
+ /**
1548
+ @internal
1549
+ */
1550
+ constructor(type, attrs, content, marks) {
1551
+ super(type, attrs, null, marks);
1552
+ if (!content)
1553
+ throw new RangeError("Empty text nodes are not allowed");
1554
+ this.text = content;
1555
+ }
1556
+ toString() {
1557
+ if (this.type.spec.toDebugString)
1558
+ return this.type.spec.toDebugString(this);
1559
+ return wrapMarks(this.marks, JSON.stringify(this.text));
1560
+ }
1561
+ get textContent() { return this.text; }
1562
+ textBetween(from, to) { return this.text.slice(from, to); }
1563
+ get nodeSize() { return this.text.length; }
1564
+ mark(marks) {
1565
+ return marks == this.marks ? this : new TextNode(this.type, this.attrs, this.text, marks);
1566
+ }
1567
+ withText(text) {
1568
+ if (text == this.text)
1569
+ return this;
1570
+ return new TextNode(this.type, this.attrs, text, this.marks);
1571
+ }
1572
+ cut(from = 0, to = this.text.length) {
1573
+ if (from == 0 && to == this.text.length)
1574
+ return this;
1575
+ return this.withText(this.text.slice(from, to));
1576
+ }
1577
+ eq(other) {
1578
+ return this.sameMarkup(other) && this.text == other.text;
1579
+ }
1580
+ toJSON() {
1581
+ let base = super.toJSON();
1582
+ base.text = this.text;
1583
+ return base;
1584
+ }
1585
+ }
1586
+ function wrapMarks(marks, str) {
1587
+ for (let i = marks.length - 1; i >= 0; i--)
1588
+ str = marks[i].type.name + "(" + str + ")";
1589
+ return str;
1590
+ }
1591
+
1592
+ /**
1593
+ Instances of this class represent a match state of a node type's
1594
+ [content expression](https://prosemirror.net/docs/ref/#model.NodeSpec.content), and can be used to
1595
+ find out whether further content matches here, and whether a given
1596
+ position is a valid end of the node.
1597
+ */
1598
+ class ContentMatch {
1599
+ /**
1600
+ @internal
1601
+ */
1602
+ constructor(
1603
+ /**
1604
+ True when this match state represents a valid end of the node.
1605
+ */
1606
+ validEnd) {
1607
+ this.validEnd = validEnd;
1608
+ /**
1609
+ @internal
1610
+ */
1611
+ this.next = [];
1612
+ /**
1613
+ @internal
1614
+ */
1615
+ this.wrapCache = [];
1616
+ }
1617
+ /**
1618
+ @internal
1619
+ */
1620
+ static parse(string, nodeTypes) {
1621
+ let stream = new TokenStream(string, nodeTypes);
1622
+ if (stream.next == null)
1623
+ return ContentMatch.empty;
1624
+ let expr = parseExpr(stream);
1625
+ if (stream.next)
1626
+ stream.err("Unexpected trailing text");
1627
+ let match = dfa(nfa(expr));
1628
+ checkForDeadEnds(match, stream);
1629
+ return match;
1630
+ }
1631
+ /**
1632
+ Match a node type, returning a match after that node if
1633
+ successful.
1634
+ */
1635
+ matchType(type) {
1636
+ for (let i = 0; i < this.next.length; i++)
1637
+ if (this.next[i].type == type)
1638
+ return this.next[i].next;
1639
+ return null;
1640
+ }
1641
+ /**
1642
+ Try to match a fragment. Returns the resulting match when
1643
+ successful.
1644
+ */
1645
+ matchFragment(frag, start = 0, end = frag.childCount) {
1646
+ let cur = this;
1647
+ for (let i = start; cur && i < end; i++)
1648
+ cur = cur.matchType(frag.child(i).type);
1649
+ return cur;
1650
+ }
1651
+ /**
1652
+ @internal
1653
+ */
1654
+ get inlineContent() {
1655
+ return this.next.length != 0 && this.next[0].type.isInline;
1656
+ }
1657
+ /**
1658
+ Get the first matching node type at this match position that can
1659
+ be generated.
1660
+ */
1661
+ get defaultType() {
1662
+ for (let i = 0; i < this.next.length; i++) {
1663
+ let { type } = this.next[i];
1664
+ if (!(type.isText || type.hasRequiredAttrs()))
1665
+ return type;
1666
+ }
1667
+ return null;
1668
+ }
1669
+ /**
1670
+ @internal
1671
+ */
1672
+ compatible(other) {
1673
+ for (let i = 0; i < this.next.length; i++)
1674
+ for (let j = 0; j < other.next.length; j++)
1675
+ if (this.next[i].type == other.next[j].type)
1676
+ return true;
1677
+ return false;
1678
+ }
1679
+ /**
1680
+ Try to match the given fragment, and if that fails, see if it can
1681
+ be made to match by inserting nodes in front of it. When
1682
+ successful, return a fragment of inserted nodes (which may be
1683
+ empty if nothing had to be inserted). When `toEnd` is true, only
1684
+ return a fragment if the resulting match goes to the end of the
1685
+ content expression.
1686
+ */
1687
+ fillBefore(after, toEnd = false, startIndex = 0) {
1688
+ let seen = [this];
1689
+ function search(match, types) {
1690
+ let finished = match.matchFragment(after, startIndex);
1691
+ if (finished && (!toEnd || finished.validEnd))
1692
+ return Fragment.from(types.map(tp => tp.createAndFill()));
1693
+ for (let i = 0; i < match.next.length; i++) {
1694
+ let { type, next } = match.next[i];
1695
+ if (!(type.isText || type.hasRequiredAttrs()) && seen.indexOf(next) == -1) {
1696
+ seen.push(next);
1697
+ let found = search(next, types.concat(type));
1698
+ if (found)
1699
+ return found;
1700
+ }
1701
+ }
1702
+ return null;
1703
+ }
1704
+ return search(this, []);
1705
+ }
1706
+ /**
1707
+ Find a set of wrapping node types that would allow a node of the
1708
+ given type to appear at this position. The result may be empty
1709
+ (when it fits directly) and will be null when no such wrapping
1710
+ exists.
1711
+ */
1712
+ findWrapping(target) {
1713
+ for (let i = 0; i < this.wrapCache.length; i += 2)
1714
+ if (this.wrapCache[i] == target)
1715
+ return this.wrapCache[i + 1];
1716
+ let computed = this.computeWrapping(target);
1717
+ this.wrapCache.push(target, computed);
1718
+ return computed;
1719
+ }
1720
+ /**
1721
+ @internal
1722
+ */
1723
+ computeWrapping(target) {
1724
+ let seen = Object.create(null), active = [{ match: this, type: null, via: null }];
1725
+ while (active.length) {
1726
+ let current = active.shift(), match = current.match;
1727
+ if (match.matchType(target)) {
1728
+ let result = [];
1729
+ for (let obj = current; obj.type; obj = obj.via)
1730
+ result.push(obj.type);
1731
+ return result.reverse();
1732
+ }
1733
+ for (let i = 0; i < match.next.length; i++) {
1734
+ let { type, next } = match.next[i];
1735
+ if (!type.isLeaf && !type.hasRequiredAttrs() && !(type.name in seen) && (!current.type || next.validEnd)) {
1736
+ active.push({ match: type.contentMatch, type, via: current });
1737
+ seen[type.name] = true;
1738
+ }
1739
+ }
1740
+ }
1741
+ return null;
1742
+ }
1743
+ /**
1744
+ The number of outgoing edges this node has in the finite
1745
+ automaton that describes the content expression.
1746
+ */
1747
+ get edgeCount() {
1748
+ return this.next.length;
1749
+ }
1750
+ /**
1751
+ Get the _n_​th outgoing edge from this node in the finite
1752
+ automaton that describes the content expression.
1753
+ */
1754
+ edge(n) {
1755
+ if (n >= this.next.length)
1756
+ throw new RangeError(`There's no ${n}th edge in this content match`);
1757
+ return this.next[n];
1758
+ }
1759
+ /**
1760
+ @internal
1761
+ */
1762
+ toString() {
1763
+ let seen = [];
1764
+ function scan(m) {
1765
+ seen.push(m);
1766
+ for (let i = 0; i < m.next.length; i++)
1767
+ if (seen.indexOf(m.next[i].next) == -1)
1768
+ scan(m.next[i].next);
1769
+ }
1770
+ scan(this);
1771
+ return seen.map((m, i) => {
1772
+ let out = i + (m.validEnd ? "*" : " ") + " ";
1773
+ for (let i = 0; i < m.next.length; i++)
1774
+ out += (i ? ", " : "") + m.next[i].type.name + "->" + seen.indexOf(m.next[i].next);
1775
+ return out;
1776
+ }).join("\n");
1777
+ }
1778
+ }
1779
+ /**
1780
+ @internal
1781
+ */
1782
+ ContentMatch.empty = new ContentMatch(true);
1783
+ class TokenStream {
1784
+ constructor(string, nodeTypes) {
1785
+ this.string = string;
1786
+ this.nodeTypes = nodeTypes;
1787
+ this.inline = null;
1788
+ this.pos = 0;
1789
+ this.tokens = string.split(/\s*(?=\b|\W|$)/);
1790
+ if (this.tokens[this.tokens.length - 1] == "")
1791
+ this.tokens.pop();
1792
+ if (this.tokens[0] == "")
1793
+ this.tokens.shift();
1794
+ }
1795
+ get next() { return this.tokens[this.pos]; }
1796
+ eat(tok) { return this.next == tok && (this.pos++ || true); }
1797
+ err(str) { throw new SyntaxError(str + " (in content expression '" + this.string + "')"); }
1798
+ }
1799
+ function parseExpr(stream) {
1800
+ let exprs = [];
1801
+ do {
1802
+ exprs.push(parseExprSeq(stream));
1803
+ } while (stream.eat("|"));
1804
+ return exprs.length == 1 ? exprs[0] : { type: "choice", exprs };
1805
+ }
1806
+ function parseExprSeq(stream) {
1807
+ let exprs = [];
1808
+ do {
1809
+ exprs.push(parseExprSubscript(stream));
1810
+ } while (stream.next && stream.next != ")" && stream.next != "|");
1811
+ return exprs.length == 1 ? exprs[0] : { type: "seq", exprs };
1812
+ }
1813
+ function parseExprSubscript(stream) {
1814
+ let expr = parseExprAtom(stream);
1815
+ for (;;) {
1816
+ if (stream.eat("+"))
1817
+ expr = { type: "plus", expr };
1818
+ else if (stream.eat("*"))
1819
+ expr = { type: "star", expr };
1820
+ else if (stream.eat("?"))
1821
+ expr = { type: "opt", expr };
1822
+ else if (stream.eat("{"))
1823
+ expr = parseExprRange(stream, expr);
1824
+ else
1825
+ break;
1826
+ }
1827
+ return expr;
1828
+ }
1829
+ function parseNum(stream) {
1830
+ if (/\D/.test(stream.next))
1831
+ stream.err("Expected number, got '" + stream.next + "'");
1832
+ let result = Number(stream.next);
1833
+ stream.pos++;
1834
+ return result;
1835
+ }
1836
+ function parseExprRange(stream, expr) {
1837
+ let min = parseNum(stream), max = min;
1838
+ if (stream.eat(",")) {
1839
+ if (stream.next != "}")
1840
+ max = parseNum(stream);
1841
+ else
1842
+ max = -1;
1843
+ }
1844
+ if (!stream.eat("}"))
1845
+ stream.err("Unclosed braced range");
1846
+ return { type: "range", min, max, expr };
1847
+ }
1848
+ function resolveName(stream, name) {
1849
+ let types = stream.nodeTypes, type = types[name];
1850
+ if (type)
1851
+ return [type];
1852
+ let result = [];
1853
+ for (let typeName in types) {
1854
+ let type = types[typeName];
1855
+ if (type.isInGroup(name))
1856
+ result.push(type);
1857
+ }
1858
+ if (result.length == 0)
1859
+ stream.err("No node type or group '" + name + "' found");
1860
+ return result;
1861
+ }
1862
+ function parseExprAtom(stream) {
1863
+ if (stream.eat("(")) {
1864
+ let expr = parseExpr(stream);
1865
+ if (!stream.eat(")"))
1866
+ stream.err("Missing closing paren");
1867
+ return expr;
1868
+ }
1869
+ else if (!/\W/.test(stream.next)) {
1870
+ let exprs = resolveName(stream, stream.next).map(type => {
1871
+ if (stream.inline == null)
1872
+ stream.inline = type.isInline;
1873
+ else if (stream.inline != type.isInline)
1874
+ stream.err("Mixing inline and block content");
1875
+ return { type: "name", value: type };
1876
+ });
1877
+ stream.pos++;
1878
+ return exprs.length == 1 ? exprs[0] : { type: "choice", exprs };
1879
+ }
1880
+ else {
1881
+ stream.err("Unexpected token '" + stream.next + "'");
1882
+ }
1883
+ }
1884
+ // Construct an NFA from an expression as returned by the parser. The
1885
+ // NFA is represented as an array of states, which are themselves
1886
+ // arrays of edges, which are `{term, to}` objects. The first state is
1887
+ // the entry state and the last node is the success state.
1888
+ //
1889
+ // Note that unlike typical NFAs, the edge ordering in this one is
1890
+ // significant, in that it is used to contruct filler content when
1891
+ // necessary.
1892
+ function nfa(expr) {
1893
+ let nfa = [[]];
1894
+ connect(compile(expr, 0), node());
1895
+ return nfa;
1896
+ function node() { return nfa.push([]) - 1; }
1897
+ function edge(from, to, term) {
1898
+ let edge = { term, to };
1899
+ nfa[from].push(edge);
1900
+ return edge;
1901
+ }
1902
+ function connect(edges, to) {
1903
+ edges.forEach(edge => edge.to = to);
1904
+ }
1905
+ function compile(expr, from) {
1906
+ if (expr.type == "choice") {
1907
+ return expr.exprs.reduce((out, expr) => out.concat(compile(expr, from)), []);
1908
+ }
1909
+ else if (expr.type == "seq") {
1910
+ for (let i = 0;; i++) {
1911
+ let next = compile(expr.exprs[i], from);
1912
+ if (i == expr.exprs.length - 1)
1913
+ return next;
1914
+ connect(next, from = node());
1915
+ }
1916
+ }
1917
+ else if (expr.type == "star") {
1918
+ let loop = node();
1919
+ edge(from, loop);
1920
+ connect(compile(expr.expr, loop), loop);
1921
+ return [edge(loop)];
1922
+ }
1923
+ else if (expr.type == "plus") {
1924
+ let loop = node();
1925
+ connect(compile(expr.expr, from), loop);
1926
+ connect(compile(expr.expr, loop), loop);
1927
+ return [edge(loop)];
1928
+ }
1929
+ else if (expr.type == "opt") {
1930
+ return [edge(from)].concat(compile(expr.expr, from));
1931
+ }
1932
+ else if (expr.type == "range") {
1933
+ let cur = from;
1934
+ for (let i = 0; i < expr.min; i++) {
1935
+ let next = node();
1936
+ connect(compile(expr.expr, cur), next);
1937
+ cur = next;
1938
+ }
1939
+ if (expr.max == -1) {
1940
+ connect(compile(expr.expr, cur), cur);
1941
+ }
1942
+ else {
1943
+ for (let i = expr.min; i < expr.max; i++) {
1944
+ let next = node();
1945
+ edge(cur, next);
1946
+ connect(compile(expr.expr, cur), next);
1947
+ cur = next;
1948
+ }
1949
+ }
1950
+ return [edge(cur)];
1951
+ }
1952
+ else if (expr.type == "name") {
1953
+ return [edge(from, undefined, expr.value)];
1954
+ }
1955
+ else {
1956
+ throw new Error("Unknown expr type");
1957
+ }
1958
+ }
1959
+ }
1960
+ function cmp(a, b) { return b - a; }
1961
+ // Get the set of nodes reachable by null edges from `node`. Omit
1962
+ // nodes with only a single null-out-edge, since they may lead to
1963
+ // needless duplicated nodes.
1964
+ function nullFrom(nfa, node) {
1965
+ let result = [];
1966
+ scan(node);
1967
+ return result.sort(cmp);
1968
+ function scan(node) {
1969
+ let edges = nfa[node];
1970
+ if (edges.length == 1 && !edges[0].term)
1971
+ return scan(edges[0].to);
1972
+ result.push(node);
1973
+ for (let i = 0; i < edges.length; i++) {
1974
+ let { term, to } = edges[i];
1975
+ if (!term && result.indexOf(to) == -1)
1976
+ scan(to);
1977
+ }
1978
+ }
1979
+ }
1980
+ // Compiles an NFA as produced by `nfa` into a DFA, modeled as a set
1981
+ // of state objects (`ContentMatch` instances) with transitions
1982
+ // between them.
1983
+ function dfa(nfa) {
1984
+ let labeled = Object.create(null);
1985
+ return explore(nullFrom(nfa, 0));
1986
+ function explore(states) {
1987
+ let out = [];
1988
+ states.forEach(node => {
1989
+ nfa[node].forEach(({ term, to }) => {
1990
+ if (!term)
1991
+ return;
1992
+ let set;
1993
+ for (let i = 0; i < out.length; i++)
1994
+ if (out[i][0] == term)
1995
+ set = out[i][1];
1996
+ nullFrom(nfa, to).forEach(node => {
1997
+ if (!set)
1998
+ out.push([term, set = []]);
1999
+ if (set.indexOf(node) == -1)
2000
+ set.push(node);
2001
+ });
2002
+ });
2003
+ });
2004
+ let state = labeled[states.join(",")] = new ContentMatch(states.indexOf(nfa.length - 1) > -1);
2005
+ for (let i = 0; i < out.length; i++) {
2006
+ let states = out[i][1].sort(cmp);
2007
+ state.next.push({ type: out[i][0], next: labeled[states.join(",")] || explore(states) });
2008
+ }
2009
+ return state;
2010
+ }
2011
+ }
2012
+ function checkForDeadEnds(match, stream) {
2013
+ for (let i = 0, work = [match]; i < work.length; i++) {
2014
+ let state = work[i], dead = !state.validEnd, nodes = [];
2015
+ for (let j = 0; j < state.next.length; j++) {
2016
+ let { type, next } = state.next[j];
2017
+ nodes.push(type.name);
2018
+ if (dead && !(type.isText || type.hasRequiredAttrs()))
2019
+ dead = false;
2020
+ if (work.indexOf(next) == -1)
2021
+ work.push(next);
2022
+ }
2023
+ if (dead)
2024
+ stream.err("Only non-generatable nodes (" + nodes.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
2025
+ }
2026
+ }
2027
+
2028
+ // For node types where all attrs have a default value (or which don't
2029
+ // have any attributes), build up a single reusable default attribute
2030
+ // object, and use it for all nodes that don't specify specific
2031
+ // attributes.
2032
+ function defaultAttrs(attrs) {
2033
+ let defaults = Object.create(null);
2034
+ for (let attrName in attrs) {
2035
+ let attr = attrs[attrName];
2036
+ if (!attr.hasDefault)
2037
+ return null;
2038
+ defaults[attrName] = attr.default;
2039
+ }
2040
+ return defaults;
2041
+ }
2042
+ function computeAttrs(attrs, value) {
2043
+ let built = Object.create(null);
2044
+ for (let name in attrs) {
2045
+ let given = value && value[name];
2046
+ if (given === undefined) {
2047
+ let attr = attrs[name];
2048
+ if (attr.hasDefault)
2049
+ given = attr.default;
2050
+ else
2051
+ throw new RangeError("No value supplied for attribute " + name);
2052
+ }
2053
+ built[name] = given;
2054
+ }
2055
+ return built;
2056
+ }
2057
+ function checkAttrs(attrs, values, type, name) {
2058
+ for (let name in values)
2059
+ if (!(name in attrs))
2060
+ throw new RangeError(`Unsupported attribute ${name} for ${type} of type ${name}`);
2061
+ for (let name in attrs) {
2062
+ let attr = attrs[name];
2063
+ if (attr.validate)
2064
+ attr.validate(values[name]);
2065
+ }
2066
+ }
2067
+ function initAttrs(typeName, attrs) {
2068
+ let result = Object.create(null);
2069
+ if (attrs)
2070
+ for (let name in attrs)
2071
+ result[name] = new Attribute(typeName, name, attrs[name]);
2072
+ return result;
2073
+ }
2074
+ /**
2075
+ Node types are objects allocated once per `Schema` and used to
2076
+ [tag](https://prosemirror.net/docs/ref/#model.Node.type) `Node` instances. They contain information
2077
+ about the node type, such as its name and what kind of node it
2078
+ represents.
2079
+ */
2080
+ class NodeType {
2081
+ /**
2082
+ @internal
2083
+ */
2084
+ constructor(
2085
+ /**
2086
+ The name the node type has in this schema.
2087
+ */
2088
+ name,
2089
+ /**
2090
+ A link back to the `Schema` the node type belongs to.
2091
+ */
2092
+ schema,
2093
+ /**
2094
+ The spec that this type is based on
2095
+ */
2096
+ spec) {
2097
+ this.name = name;
2098
+ this.schema = schema;
2099
+ this.spec = spec;
2100
+ /**
2101
+ The set of marks allowed in this node. `null` means all marks
2102
+ are allowed.
2103
+ */
2104
+ this.markSet = null;
2105
+ this.groups = spec.group ? spec.group.split(" ") : [];
2106
+ this.attrs = initAttrs(name, spec.attrs);
2107
+ this.defaultAttrs = defaultAttrs(this.attrs);
2108
+ this.contentMatch = null;
2109
+ this.inlineContent = null;
2110
+ this.isBlock = !(spec.inline || name == "text");
2111
+ this.isText = name == "text";
2112
+ }
2113
+ /**
2114
+ True if this is an inline type.
2115
+ */
2116
+ get isInline() { return !this.isBlock; }
2117
+ /**
2118
+ True if this is a textblock type, a block that contains inline
2119
+ content.
2120
+ */
2121
+ get isTextblock() { return this.isBlock && this.inlineContent; }
2122
+ /**
2123
+ True for node types that allow no content.
2124
+ */
2125
+ get isLeaf() { return this.contentMatch == ContentMatch.empty; }
2126
+ /**
2127
+ True when this node is an atom, i.e. when it does not have
2128
+ directly editable content.
2129
+ */
2130
+ get isAtom() { return this.isLeaf || !!this.spec.atom; }
2131
+ /**
2132
+ Return true when this node type is part of the given
2133
+ [group](https://prosemirror.net/docs/ref/#model.NodeSpec.group).
2134
+ */
2135
+ isInGroup(group) {
2136
+ return this.groups.indexOf(group) > -1;
2137
+ }
2138
+ /**
2139
+ The node type's [whitespace](https://prosemirror.net/docs/ref/#model.NodeSpec.whitespace) option.
2140
+ */
2141
+ get whitespace() {
2142
+ return this.spec.whitespace || (this.spec.code ? "pre" : "normal");
2143
+ }
2144
+ /**
2145
+ Tells you whether this node type has any required attributes.
2146
+ */
2147
+ hasRequiredAttrs() {
2148
+ for (let n in this.attrs)
2149
+ if (this.attrs[n].isRequired)
2150
+ return true;
2151
+ return false;
2152
+ }
2153
+ /**
2154
+ Indicates whether this node allows some of the same content as
2155
+ the given node type.
2156
+ */
2157
+ compatibleContent(other) {
2158
+ return this == other || this.contentMatch.compatible(other.contentMatch);
2159
+ }
2160
+ /**
2161
+ @internal
2162
+ */
2163
+ computeAttrs(attrs) {
2164
+ if (!attrs && this.defaultAttrs)
2165
+ return this.defaultAttrs;
2166
+ else
2167
+ return computeAttrs(this.attrs, attrs);
2168
+ }
2169
+ /**
2170
+ Create a `Node` of this type. The given attributes are
2171
+ checked and defaulted (you can pass `null` to use the type's
2172
+ defaults entirely, if no required attributes exist). `content`
2173
+ may be a `Fragment`, a node, an array of nodes, or
2174
+ `null`. Similarly `marks` may be `null` to default to the empty
2175
+ set of marks.
2176
+ */
2177
+ create(attrs = null, content, marks) {
2178
+ if (this.isText)
2179
+ throw new Error("NodeType.create can't construct text nodes");
2180
+ return new Node(this, this.computeAttrs(attrs), Fragment.from(content), Mark.setFrom(marks));
2181
+ }
2182
+ /**
2183
+ Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
2184
+ against the node type's content restrictions, and throw an error
2185
+ if it doesn't match.
2186
+ */
2187
+ createChecked(attrs = null, content, marks) {
2188
+ content = Fragment.from(content);
2189
+ this.checkContent(content);
2190
+ return new Node(this, this.computeAttrs(attrs), content, Mark.setFrom(marks));
2191
+ }
2192
+ /**
2193
+ Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
2194
+ necessary to add nodes to the start or end of the given fragment
2195
+ to make it fit the node. If no fitting wrapping can be found,
2196
+ return null. Note that, due to the fact that required nodes can
2197
+ always be created, this will always succeed if you pass null or
2198
+ `Fragment.empty` as content.
2199
+ */
2200
+ createAndFill(attrs = null, content, marks) {
2201
+ attrs = this.computeAttrs(attrs);
2202
+ content = Fragment.from(content);
2203
+ if (content.size) {
2204
+ let before = this.contentMatch.fillBefore(content);
2205
+ if (!before)
2206
+ return null;
2207
+ content = before.append(content);
2208
+ }
2209
+ let matched = this.contentMatch.matchFragment(content);
2210
+ let after = matched && matched.fillBefore(Fragment.empty, true);
2211
+ if (!after)
2212
+ return null;
2213
+ return new Node(this, attrs, content.append(after), Mark.setFrom(marks));
2214
+ }
2215
+ /**
2216
+ Returns true if the given fragment is valid content for this node
2217
+ type.
2218
+ */
2219
+ validContent(content) {
2220
+ let result = this.contentMatch.matchFragment(content);
2221
+ if (!result || !result.validEnd)
2222
+ return false;
2223
+ for (let i = 0; i < content.childCount; i++)
2224
+ if (!this.allowsMarks(content.child(i).marks))
2225
+ return false;
2226
+ return true;
2227
+ }
2228
+ /**
2229
+ Throws a RangeError if the given fragment is not valid content for this
2230
+ node type.
2231
+ @internal
2232
+ */
2233
+ checkContent(content) {
2234
+ if (!this.validContent(content))
2235
+ throw new RangeError(`Invalid content for node ${this.name}: ${content.toString().slice(0, 50)}`);
2236
+ }
2237
+ /**
2238
+ @internal
2239
+ */
2240
+ checkAttrs(attrs) {
2241
+ checkAttrs(this.attrs, attrs, "node", this.name);
2242
+ }
2243
+ /**
2244
+ Check whether the given mark type is allowed in this node.
2245
+ */
2246
+ allowsMarkType(markType) {
2247
+ return this.markSet == null || this.markSet.indexOf(markType) > -1;
2248
+ }
2249
+ /**
2250
+ Test whether the given set of marks are allowed in this node.
2251
+ */
2252
+ allowsMarks(marks) {
2253
+ if (this.markSet == null)
2254
+ return true;
2255
+ for (let i = 0; i < marks.length; i++)
2256
+ if (!this.allowsMarkType(marks[i].type))
2257
+ return false;
2258
+ return true;
2259
+ }
2260
+ /**
2261
+ Removes the marks that are not allowed in this node from the given set.
2262
+ */
2263
+ allowedMarks(marks) {
2264
+ if (this.markSet == null)
2265
+ return marks;
2266
+ let copy;
2267
+ for (let i = 0; i < marks.length; i++) {
2268
+ if (!this.allowsMarkType(marks[i].type)) {
2269
+ if (!copy)
2270
+ copy = marks.slice(0, i);
2271
+ }
2272
+ else if (copy) {
2273
+ copy.push(marks[i]);
2274
+ }
2275
+ }
2276
+ return !copy ? marks : copy.length ? copy : Mark.none;
2277
+ }
2278
+ /**
2279
+ @internal
2280
+ */
2281
+ static compile(nodes, schema) {
2282
+ let result = Object.create(null);
2283
+ nodes.forEach((name, spec) => result[name] = new NodeType(name, schema, spec));
2284
+ let topType = schema.spec.topNode || "doc";
2285
+ if (!result[topType])
2286
+ throw new RangeError("Schema is missing its top node type ('" + topType + "')");
2287
+ if (!result.text)
2288
+ throw new RangeError("Every schema needs a 'text' type");
2289
+ for (let _ in result.text.attrs)
2290
+ throw new RangeError("The text node type should not have attributes");
2291
+ return result;
2292
+ }
2293
+ }
2294
+ function validateType(typeName, attrName, type) {
2295
+ let types = type.split("|");
2296
+ return (value) => {
2297
+ let name = value === null ? "null" : typeof value;
2298
+ if (types.indexOf(name) < 0)
2299
+ throw new RangeError(`Expected value of type ${types} for attribute ${attrName} on type ${typeName}, got ${name}`);
2300
+ };
2301
+ }
2302
+ // Attribute descriptors
2303
+ class Attribute {
2304
+ constructor(typeName, attrName, options) {
2305
+ this.hasDefault = Object.prototype.hasOwnProperty.call(options, "default");
2306
+ this.default = options.default;
2307
+ this.validate = typeof options.validate == "string" ? validateType(typeName, attrName, options.validate) : options.validate;
2308
+ }
2309
+ get isRequired() {
2310
+ return !this.hasDefault;
2311
+ }
2312
+ }
2313
+ // Marks
2314
+ /**
2315
+ Like nodes, marks (which are associated with nodes to signify
2316
+ things like emphasis or being part of a link) are
2317
+ [tagged](https://prosemirror.net/docs/ref/#model.Mark.type) with type objects, which are
2318
+ instantiated once per `Schema`.
2319
+ */
2320
+ class MarkType {
2321
+ /**
2322
+ @internal
2323
+ */
2324
+ constructor(
2325
+ /**
2326
+ The name of the mark type.
2327
+ */
2328
+ name,
2329
+ /**
2330
+ @internal
2331
+ */
2332
+ rank,
2333
+ /**
2334
+ The schema that this mark type instance is part of.
2335
+ */
2336
+ schema,
2337
+ /**
2338
+ The spec on which the type is based.
2339
+ */
2340
+ spec) {
2341
+ this.name = name;
2342
+ this.rank = rank;
2343
+ this.schema = schema;
2344
+ this.spec = spec;
2345
+ this.attrs = initAttrs(name, spec.attrs);
2346
+ this.excluded = null;
2347
+ let defaults = defaultAttrs(this.attrs);
2348
+ this.instance = defaults ? new Mark(this, defaults) : null;
2349
+ }
2350
+ /**
2351
+ Create a mark of this type. `attrs` may be `null` or an object
2352
+ containing only some of the mark's attributes. The others, if
2353
+ they have defaults, will be added.
2354
+ */
2355
+ create(attrs = null) {
2356
+ if (!attrs && this.instance)
2357
+ return this.instance;
2358
+ return new Mark(this, computeAttrs(this.attrs, attrs));
2359
+ }
2360
+ /**
2361
+ @internal
2362
+ */
2363
+ static compile(marks, schema) {
2364
+ let result = Object.create(null), rank = 0;
2365
+ marks.forEach((name, spec) => result[name] = new MarkType(name, rank++, schema, spec));
2366
+ return result;
2367
+ }
2368
+ /**
2369
+ When there is a mark of this type in the given set, a new set
2370
+ without it is returned. Otherwise, the input set is returned.
2371
+ */
2372
+ removeFromSet(set) {
2373
+ for (var i = 0; i < set.length; i++)
2374
+ if (set[i].type == this) {
2375
+ set = set.slice(0, i).concat(set.slice(i + 1));
2376
+ i--;
2377
+ }
2378
+ return set;
2379
+ }
2380
+ /**
2381
+ Tests whether there is a mark of this type in the given set.
2382
+ */
2383
+ isInSet(set) {
2384
+ for (let i = 0; i < set.length; i++)
2385
+ if (set[i].type == this)
2386
+ return set[i];
2387
+ }
2388
+ /**
2389
+ @internal
2390
+ */
2391
+ checkAttrs(attrs) {
2392
+ checkAttrs(this.attrs, attrs, "mark", this.name);
2393
+ }
2394
+ /**
2395
+ Queries whether a given mark type is
2396
+ [excluded](https://prosemirror.net/docs/ref/#model.MarkSpec.excludes) by this one.
2397
+ */
2398
+ excludes(other) {
2399
+ return this.excluded.indexOf(other) > -1;
2400
+ }
2401
+ }
2402
+ /**
2403
+ A document schema. Holds [node](https://prosemirror.net/docs/ref/#model.NodeType) and [mark
2404
+ type](https://prosemirror.net/docs/ref/#model.MarkType) objects for the nodes and marks that may
2405
+ occur in conforming documents, and provides functionality for
2406
+ creating and deserializing such documents.
2407
+
2408
+ When given, the type parameters provide the names of the nodes and
2409
+ marks in this schema.
2410
+ */
2411
+ class Schema {
2412
+ /**
2413
+ Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
2414
+ */
2415
+ constructor(spec) {
2416
+ /**
2417
+ The [linebreak
2418
+ replacement](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement) node defined
2419
+ in this schema, if any.
2420
+ */
2421
+ this.linebreakReplacement = null;
2422
+ /**
2423
+ An object for storing whatever values modules may want to
2424
+ compute and cache per schema. (If you want to store something
2425
+ in it, try to use property names unlikely to clash.)
2426
+ */
2427
+ this.cached = Object.create(null);
2428
+ let instanceSpec = this.spec = {};
2429
+ for (let prop in spec)
2430
+ instanceSpec[prop] = spec[prop];
2431
+ instanceSpec.nodes = OrderedMap.from(spec.nodes),
2432
+ instanceSpec.marks = OrderedMap.from(spec.marks || {}),
2433
+ this.nodes = NodeType.compile(this.spec.nodes, this);
2434
+ this.marks = MarkType.compile(this.spec.marks, this);
2435
+ let contentExprCache = Object.create(null);
2436
+ for (let prop in this.nodes) {
2437
+ if (prop in this.marks)
2438
+ throw new RangeError(prop + " can not be both a node and a mark");
2439
+ let type = this.nodes[prop], contentExpr = type.spec.content || "", markExpr = type.spec.marks;
2440
+ type.contentMatch = contentExprCache[contentExpr] ||
2441
+ (contentExprCache[contentExpr] = ContentMatch.parse(contentExpr, this.nodes));
2442
+ type.inlineContent = type.contentMatch.inlineContent;
2443
+ if (type.spec.linebreakReplacement) {
2444
+ if (this.linebreakReplacement)
2445
+ throw new RangeError("Multiple linebreak nodes defined");
2446
+ if (!type.isInline || !type.isLeaf)
2447
+ throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");
2448
+ this.linebreakReplacement = type;
2449
+ }
2450
+ type.markSet = markExpr == "_" ? null :
2451
+ markExpr ? gatherMarks(this, markExpr.split(" ")) :
2452
+ markExpr == "" || !type.inlineContent ? [] : null;
2453
+ }
2454
+ for (let prop in this.marks) {
2455
+ let type = this.marks[prop], excl = type.spec.excludes;
2456
+ type.excluded = excl == null ? [type] : excl == "" ? [] : gatherMarks(this, excl.split(" "));
2457
+ }
2458
+ this.nodeFromJSON = json => Node.fromJSON(this, json);
2459
+ this.markFromJSON = json => Mark.fromJSON(this, json);
2460
+ this.topNodeType = this.nodes[this.spec.topNode || "doc"];
2461
+ this.cached.wrappings = Object.create(null);
2462
+ }
2463
+ /**
2464
+ Create a node in this schema. The `type` may be a string or a
2465
+ `NodeType` instance. Attributes will be extended with defaults,
2466
+ `content` may be a `Fragment`, `null`, a `Node`, or an array of
2467
+ nodes.
2468
+ */
2469
+ node(type, attrs = null, content, marks) {
2470
+ if (typeof type == "string")
2471
+ type = this.nodeType(type);
2472
+ else if (!(type instanceof NodeType))
2473
+ throw new RangeError("Invalid node type: " + type);
2474
+ else if (type.schema != this)
2475
+ throw new RangeError("Node type from different schema used (" + type.name + ")");
2476
+ return type.createChecked(attrs, content, marks);
2477
+ }
2478
+ /**
2479
+ Create a text node in the schema. Empty text nodes are not
2480
+ allowed.
2481
+ */
2482
+ text(text, marks) {
2483
+ let type = this.nodes.text;
2484
+ return new TextNode(type, type.defaultAttrs, text, Mark.setFrom(marks));
2485
+ }
2486
+ /**
2487
+ Create a mark with the given type and attributes.
2488
+ */
2489
+ mark(type, attrs) {
2490
+ if (typeof type == "string")
2491
+ type = this.marks[type];
2492
+ return type.create(attrs);
2493
+ }
2494
+ /**
2495
+ @internal
2496
+ */
2497
+ nodeType(name) {
2498
+ let found = this.nodes[name];
2499
+ if (!found)
2500
+ throw new RangeError("Unknown node type: " + name);
2501
+ return found;
2502
+ }
2503
+ }
2504
+ function gatherMarks(schema, marks) {
2505
+ let found = [];
2506
+ for (let i = 0; i < marks.length; i++) {
2507
+ let name = marks[i], mark = schema.marks[name], ok = mark;
2508
+ if (mark) {
2509
+ found.push(mark);
2510
+ }
2511
+ else {
2512
+ for (let prop in schema.marks) {
2513
+ let mark = schema.marks[prop];
2514
+ if (name == "_" || (mark.spec.group && mark.spec.group.split(" ").indexOf(name) > -1))
2515
+ found.push(ok = mark);
2516
+ }
2517
+ }
2518
+ if (!ok)
2519
+ throw new SyntaxError("Unknown mark type: '" + marks[i] + "'");
2520
+ }
2521
+ return found;
2522
+ }
2523
+
2524
+ function isTagRule(rule) { return rule.tag != null; }
2525
+ function isStyleRule(rule) { return rule.style != null; }
2526
+ /**
2527
+ A DOM parser represents a strategy for parsing DOM content into a
2528
+ ProseMirror document conforming to a given schema. Its behavior is
2529
+ defined by an array of [rules](https://prosemirror.net/docs/ref/#model.ParseRule).
2530
+ */
2531
+ class DOMParser {
2532
+ /**
2533
+ Create a parser that targets the given schema, using the given
2534
+ parsing rules.
2535
+ */
2536
+ constructor(
2537
+ /**
2538
+ The schema into which the parser parses.
2539
+ */
2540
+ schema,
2541
+ /**
2542
+ The set of [parse rules](https://prosemirror.net/docs/ref/#model.ParseRule) that the parser
2543
+ uses, in order of precedence.
2544
+ */
2545
+ rules) {
2546
+ this.schema = schema;
2547
+ this.rules = rules;
2548
+ /**
2549
+ @internal
2550
+ */
2551
+ this.tags = [];
2552
+ /**
2553
+ @internal
2554
+ */
2555
+ this.styles = [];
2556
+ let matchedStyles = this.matchedStyles = [];
2557
+ rules.forEach(rule => {
2558
+ if (isTagRule(rule)) {
2559
+ this.tags.push(rule);
2560
+ }
2561
+ else if (isStyleRule(rule)) {
2562
+ let prop = /[^=]*/.exec(rule.style)[0];
2563
+ if (matchedStyles.indexOf(prop) < 0)
2564
+ matchedStyles.push(prop);
2565
+ this.styles.push(rule);
2566
+ }
2567
+ });
2568
+ // Only normalize list elements when lists in the schema can't directly contain themselves
2569
+ this.normalizeLists = !this.tags.some(r => {
2570
+ if (!/^(ul|ol)\b/.test(r.tag) || !r.node)
2571
+ return false;
2572
+ let node = schema.nodes[r.node];
2573
+ return node.contentMatch.matchType(node);
2574
+ });
2575
+ }
2576
+ /**
2577
+ Parse a document from the content of a DOM node.
2578
+ */
2579
+ parse(dom, options = {}) {
2580
+ let context = new ParseContext(this, options, false);
2581
+ context.addAll(dom, Mark.none, options.from, options.to);
2582
+ return context.finish();
2583
+ }
2584
+ /**
2585
+ Parses the content of the given DOM node, like
2586
+ [`parse`](https://prosemirror.net/docs/ref/#model.DOMParser.parse), and takes the same set of
2587
+ options. But unlike that method, which produces a whole node,
2588
+ this one returns a slice that is open at the sides, meaning that
2589
+ the schema constraints aren't applied to the start of nodes to
2590
+ the left of the input and the end of nodes at the end.
2591
+ */
2592
+ parseSlice(dom, options = {}) {
2593
+ let context = new ParseContext(this, options, true);
2594
+ context.addAll(dom, Mark.none, options.from, options.to);
2595
+ return Slice.maxOpen(context.finish());
2596
+ }
2597
+ /**
2598
+ @internal
2599
+ */
2600
+ matchTag(dom, context, after) {
2601
+ for (let i = after ? this.tags.indexOf(after) + 1 : 0; i < this.tags.length; i++) {
2602
+ let rule = this.tags[i];
2603
+ if (matches(dom, rule.tag) &&
2604
+ (rule.namespace === undefined || dom.namespaceURI == rule.namespace) &&
2605
+ (!rule.context || context.matchesContext(rule.context))) {
2606
+ if (rule.getAttrs) {
2607
+ let result = rule.getAttrs(dom);
2608
+ if (result === false)
2609
+ continue;
2610
+ rule.attrs = result || undefined;
2611
+ }
2612
+ return rule;
2613
+ }
2614
+ }
2615
+ }
2616
+ /**
2617
+ @internal
2618
+ */
2619
+ matchStyle(prop, value, context, after) {
2620
+ for (let i = after ? this.styles.indexOf(after) + 1 : 0; i < this.styles.length; i++) {
2621
+ let rule = this.styles[i], style = rule.style;
2622
+ if (style.indexOf(prop) != 0 ||
2623
+ rule.context && !context.matchesContext(rule.context) ||
2624
+ // Test that the style string either precisely matches the prop,
2625
+ // or has an '=' sign after the prop, followed by the given
2626
+ // value.
2627
+ style.length > prop.length &&
2628
+ (style.charCodeAt(prop.length) != 61 || style.slice(prop.length + 1) != value))
2629
+ continue;
2630
+ if (rule.getAttrs) {
2631
+ let result = rule.getAttrs(value);
2632
+ if (result === false)
2633
+ continue;
2634
+ rule.attrs = result || undefined;
2635
+ }
2636
+ return rule;
2637
+ }
2638
+ }
2639
+ /**
2640
+ @internal
2641
+ */
2642
+ static schemaRules(schema) {
2643
+ let result = [];
2644
+ function insert(rule) {
2645
+ let priority = rule.priority == null ? 50 : rule.priority, i = 0;
2646
+ for (; i < result.length; i++) {
2647
+ let next = result[i], nextPriority = next.priority == null ? 50 : next.priority;
2648
+ if (nextPriority < priority)
2649
+ break;
2650
+ }
2651
+ result.splice(i, 0, rule);
2652
+ }
2653
+ for (let name in schema.marks) {
2654
+ let rules = schema.marks[name].spec.parseDOM;
2655
+ if (rules)
2656
+ rules.forEach(rule => {
2657
+ insert(rule = copy(rule));
2658
+ if (!(rule.mark || rule.ignore || rule.clearMark))
2659
+ rule.mark = name;
2660
+ });
2661
+ }
2662
+ for (let name in schema.nodes) {
2663
+ let rules = schema.nodes[name].spec.parseDOM;
2664
+ if (rules)
2665
+ rules.forEach(rule => {
2666
+ insert(rule = copy(rule));
2667
+ if (!(rule.node || rule.ignore || rule.mark))
2668
+ rule.node = name;
2669
+ });
2670
+ }
2671
+ return result;
2672
+ }
2673
+ /**
2674
+ Construct a DOM parser using the parsing rules listed in a
2675
+ schema's [node specs](https://prosemirror.net/docs/ref/#model.NodeSpec.parseDOM), reordered by
2676
+ [priority](https://prosemirror.net/docs/ref/#model.GenericParseRule.priority).
2677
+ */
2678
+ static fromSchema(schema) {
2679
+ return schema.cached.domParser ||
2680
+ (schema.cached.domParser = new DOMParser(schema, DOMParser.schemaRules(schema)));
2681
+ }
2682
+ }
2683
+ const blockTags = {
2684
+ address: true, article: true, aside: true, blockquote: true, canvas: true,
2685
+ dd: true, div: true, dl: true, fieldset: true, figcaption: true, figure: true,
2686
+ footer: true, form: true, h1: true, h2: true, h3: true, h4: true, h5: true,
2687
+ h6: true, header: true, hgroup: true, hr: true, li: true, noscript: true, ol: true,
2688
+ output: true, p: true, pre: true, section: true, table: true, tfoot: true, ul: true
2689
+ };
2690
+ const ignoreTags = {
2691
+ head: true, noscript: true, object: true, script: true, style: true, title: true
2692
+ };
2693
+ const listTags = { ol: true, ul: true };
2694
+ // Using a bitfield for node context options
2695
+ const OPT_PRESERVE_WS = 1, OPT_PRESERVE_WS_FULL = 2, OPT_OPEN_LEFT = 4;
2696
+ function wsOptionsFor(type, preserveWhitespace, base) {
2697
+ if (preserveWhitespace != null)
2698
+ return (preserveWhitespace ? OPT_PRESERVE_WS : 0) |
2699
+ (preserveWhitespace === "full" ? OPT_PRESERVE_WS_FULL : 0);
2700
+ return type && type.whitespace == "pre" ? OPT_PRESERVE_WS | OPT_PRESERVE_WS_FULL : base & ~OPT_OPEN_LEFT;
2701
+ }
2702
+ class NodeContext {
2703
+ constructor(type, attrs, marks, solid, match, options) {
2704
+ this.type = type;
2705
+ this.attrs = attrs;
2706
+ this.marks = marks;
2707
+ this.solid = solid;
2708
+ this.options = options;
2709
+ this.content = [];
2710
+ // Marks applied to the node's children
2711
+ this.activeMarks = Mark.none;
2712
+ this.match = match || (options & OPT_OPEN_LEFT ? null : type.contentMatch);
2713
+ }
2714
+ findWrapping(node) {
2715
+ if (!this.match) {
2716
+ if (!this.type)
2717
+ return [];
2718
+ let fill = this.type.contentMatch.fillBefore(Fragment.from(node));
2719
+ if (fill) {
2720
+ this.match = this.type.contentMatch.matchFragment(fill);
2721
+ }
2722
+ else {
2723
+ let start = this.type.contentMatch, wrap;
2724
+ if (wrap = start.findWrapping(node.type)) {
2725
+ this.match = start;
2726
+ return wrap;
2727
+ }
2728
+ else {
2729
+ return null;
2730
+ }
2731
+ }
2732
+ }
2733
+ return this.match.findWrapping(node.type);
2734
+ }
2735
+ finish(openEnd) {
2736
+ if (!(this.options & OPT_PRESERVE_WS)) { // Strip trailing whitespace
2737
+ let last = this.content[this.content.length - 1], m;
2738
+ if (last && last.isText && (m = /[ \t\r\n\u000c]+$/.exec(last.text))) {
2739
+ let text = last;
2740
+ if (last.text.length == m[0].length)
2741
+ this.content.pop();
2742
+ else
2743
+ this.content[this.content.length - 1] = text.withText(text.text.slice(0, text.text.length - m[0].length));
2744
+ }
2745
+ }
2746
+ let content = Fragment.from(this.content);
2747
+ if (!openEnd && this.match)
2748
+ content = content.append(this.match.fillBefore(Fragment.empty, true));
2749
+ return this.type ? this.type.create(this.attrs, content, this.marks) : content;
2750
+ }
2751
+ inlineContext(node) {
2752
+ if (this.type)
2753
+ return this.type.inlineContent;
2754
+ if (this.content.length)
2755
+ return this.content[0].isInline;
2756
+ return node.parentNode && !blockTags.hasOwnProperty(node.parentNode.nodeName.toLowerCase());
2757
+ }
2758
+ }
2759
+ class ParseContext {
2760
+ constructor(
2761
+ // The parser we are using.
2762
+ parser,
2763
+ // The options passed to this parse.
2764
+ options, isOpen) {
2765
+ this.parser = parser;
2766
+ this.options = options;
2767
+ this.isOpen = isOpen;
2768
+ this.open = 0;
2769
+ this.localPreserveWS = false;
2770
+ let topNode = options.topNode, topContext;
2771
+ let topOptions = wsOptionsFor(null, options.preserveWhitespace, 0) | (isOpen ? OPT_OPEN_LEFT : 0);
2772
+ if (topNode)
2773
+ topContext = new NodeContext(topNode.type, topNode.attrs, Mark.none, true, options.topMatch || topNode.type.contentMatch, topOptions);
2774
+ else if (isOpen)
2775
+ topContext = new NodeContext(null, null, Mark.none, true, null, topOptions);
2776
+ else
2777
+ topContext = new NodeContext(parser.schema.topNodeType, null, Mark.none, true, null, topOptions);
2778
+ this.nodes = [topContext];
2779
+ this.find = options.findPositions;
2780
+ this.needsBlock = false;
2781
+ }
2782
+ get top() {
2783
+ return this.nodes[this.open];
2784
+ }
2785
+ // Add a DOM node to the content. Text is inserted as text node,
2786
+ // otherwise, the node is passed to `addElement` or, if it has a
2787
+ // `style` attribute, `addElementWithStyles`.
2788
+ addDOM(dom, marks) {
2789
+ if (dom.nodeType == 3)
2790
+ this.addTextNode(dom, marks);
2791
+ else if (dom.nodeType == 1)
2792
+ this.addElement(dom, marks);
2793
+ }
2794
+ addTextNode(dom, marks) {
2795
+ let value = dom.nodeValue;
2796
+ let top = this.top, preserveWS = (top.options & OPT_PRESERVE_WS_FULL) ? "full"
2797
+ : this.localPreserveWS || (top.options & OPT_PRESERVE_WS) > 0;
2798
+ let { schema } = this.parser;
2799
+ if (preserveWS === "full" ||
2800
+ top.inlineContext(dom) ||
2801
+ /[^ \t\r\n\u000c]/.test(value)) {
2802
+ if (!preserveWS) {
2803
+ value = value.replace(/[ \t\r\n\u000c]+/g, " ");
2804
+ // If this starts with whitespace, and there is no node before it, or
2805
+ // a hard break, or a text node that ends with whitespace, strip the
2806
+ // leading space.
2807
+ if (/^[ \t\r\n\u000c]/.test(value) && this.open == this.nodes.length - 1) {
2808
+ let nodeBefore = top.content[top.content.length - 1];
2809
+ let domNodeBefore = dom.previousSibling;
2810
+ if (!nodeBefore ||
2811
+ (domNodeBefore && domNodeBefore.nodeName == 'BR') ||
2812
+ (nodeBefore.isText && /[ \t\r\n\u000c]$/.test(nodeBefore.text)))
2813
+ value = value.slice(1);
2814
+ }
2815
+ }
2816
+ else if (preserveWS === "full") {
2817
+ value = value.replace(/\r\n?/g, "\n");
2818
+ }
2819
+ else if (schema.linebreakReplacement && /[\r\n]/.test(value) && this.top.findWrapping(schema.linebreakReplacement.create())) {
2820
+ let lines = value.split(/\r?\n|\r/);
2821
+ for (let i = 0; i < lines.length; i++) {
2822
+ if (i)
2823
+ this.insertNode(schema.linebreakReplacement.create(), marks, true);
2824
+ if (lines[i])
2825
+ this.insertNode(schema.text(lines[i]), marks, !/\S/.test(lines[i]));
2826
+ }
2827
+ value = "";
2828
+ }
2829
+ else {
2830
+ value = value.replace(/\r?\n|\r/g, " ");
2831
+ }
2832
+ if (value)
2833
+ this.insertNode(schema.text(value), marks, !/\S/.test(value));
2834
+ this.findInText(dom);
2835
+ }
2836
+ else {
2837
+ this.findInside(dom);
2838
+ }
2839
+ }
2840
+ // Try to find a handler for the given tag and use that to parse. If
2841
+ // none is found, the element's content nodes are added directly.
2842
+ addElement(dom, marks, matchAfter) {
2843
+ let outerWS = this.localPreserveWS, top = this.top;
2844
+ if (dom.tagName == "PRE" || /pre/.test(dom.style && dom.style.whiteSpace))
2845
+ this.localPreserveWS = true;
2846
+ let name = dom.nodeName.toLowerCase(), ruleID;
2847
+ if (listTags.hasOwnProperty(name) && this.parser.normalizeLists)
2848
+ normalizeList(dom);
2849
+ let rule = (this.options.ruleFromNode && this.options.ruleFromNode(dom)) ||
2850
+ (ruleID = this.parser.matchTag(dom, this, matchAfter));
2851
+ out: if (rule ? rule.ignore : ignoreTags.hasOwnProperty(name)) {
2852
+ this.findInside(dom);
2853
+ this.ignoreFallback(dom, marks);
2854
+ }
2855
+ else if (!rule || rule.skip || rule.closeParent) {
2856
+ if (rule && rule.closeParent)
2857
+ this.open = Math.max(0, this.open - 1);
2858
+ else if (rule && rule.skip.nodeType)
2859
+ dom = rule.skip;
2860
+ let sync, oldNeedsBlock = this.needsBlock;
2861
+ if (blockTags.hasOwnProperty(name)) {
2862
+ if (top.content.length && top.content[0].isInline && this.open) {
2863
+ this.open--;
2864
+ top = this.top;
2865
+ }
2866
+ sync = true;
2867
+ if (!top.type)
2868
+ this.needsBlock = true;
2869
+ }
2870
+ else if (!dom.firstChild) {
2871
+ this.leafFallback(dom, marks);
2872
+ break out;
2873
+ }
2874
+ let innerMarks = rule && rule.skip ? marks : this.readStyles(dom, marks);
2875
+ if (innerMarks)
2876
+ this.addAll(dom, innerMarks);
2877
+ if (sync)
2878
+ this.sync(top);
2879
+ this.needsBlock = oldNeedsBlock;
2880
+ }
2881
+ else {
2882
+ let innerMarks = this.readStyles(dom, marks);
2883
+ if (innerMarks)
2884
+ this.addElementByRule(dom, rule, innerMarks, rule.consuming === false ? ruleID : undefined);
2885
+ }
2886
+ this.localPreserveWS = outerWS;
2887
+ }
2888
+ // Called for leaf DOM nodes that would otherwise be ignored
2889
+ leafFallback(dom, marks) {
2890
+ if (dom.nodeName == "BR" && this.top.type && this.top.type.inlineContent)
2891
+ this.addTextNode(dom.ownerDocument.createTextNode("\n"), marks);
2892
+ }
2893
+ // Called for ignored nodes
2894
+ ignoreFallback(dom, marks) {
2895
+ // Ignored BR nodes should at least create an inline context
2896
+ if (dom.nodeName == "BR" && (!this.top.type || !this.top.type.inlineContent))
2897
+ this.findPlace(this.parser.schema.text("-"), marks, true);
2898
+ }
2899
+ // Run any style parser associated with the node's styles. Either
2900
+ // return an updated array of marks, or null to indicate some of the
2901
+ // styles had a rule with `ignore` set.
2902
+ readStyles(dom, marks) {
2903
+ let styles = dom.style;
2904
+ // Because many properties will only show up in 'normalized' form
2905
+ // in `style.item` (i.e. text-decoration becomes
2906
+ // text-decoration-line, text-decoration-color, etc), we directly
2907
+ // query the styles mentioned in our rules instead of iterating
2908
+ // over the items.
2909
+ if (styles && styles.length)
2910
+ for (let i = 0; i < this.parser.matchedStyles.length; i++) {
2911
+ let name = this.parser.matchedStyles[i], value = styles.getPropertyValue(name);
2912
+ if (value)
2913
+ for (let after = undefined;;) {
2914
+ let rule = this.parser.matchStyle(name, value, this, after);
2915
+ if (!rule)
2916
+ break;
2917
+ if (rule.ignore)
2918
+ return null;
2919
+ if (rule.clearMark)
2920
+ marks = marks.filter(m => !rule.clearMark(m));
2921
+ else
2922
+ marks = marks.concat(this.parser.schema.marks[rule.mark].create(rule.attrs));
2923
+ if (rule.consuming === false)
2924
+ after = rule;
2925
+ else
2926
+ break;
2927
+ }
2928
+ }
2929
+ return marks;
2930
+ }
2931
+ // Look up a handler for the given node. If none are found, return
2932
+ // false. Otherwise, apply it, use its return value to drive the way
2933
+ // the node's content is wrapped, and return true.
2934
+ addElementByRule(dom, rule, marks, continueAfter) {
2935
+ let sync, nodeType;
2936
+ if (rule.node) {
2937
+ nodeType = this.parser.schema.nodes[rule.node];
2938
+ if (!nodeType.isLeaf) {
2939
+ let inner = this.enter(nodeType, rule.attrs || null, marks, rule.preserveWhitespace);
2940
+ if (inner) {
2941
+ sync = true;
2942
+ marks = inner;
2943
+ }
2944
+ }
2945
+ else if (!this.insertNode(nodeType.create(rule.attrs), marks, dom.nodeName == "BR")) {
2946
+ this.leafFallback(dom, marks);
2947
+ }
2948
+ }
2949
+ else {
2950
+ let markType = this.parser.schema.marks[rule.mark];
2951
+ marks = marks.concat(markType.create(rule.attrs));
2952
+ }
2953
+ let startIn = this.top;
2954
+ if (nodeType && nodeType.isLeaf) {
2955
+ this.findInside(dom);
2956
+ }
2957
+ else if (continueAfter) {
2958
+ this.addElement(dom, marks, continueAfter);
2959
+ }
2960
+ else if (rule.getContent) {
2961
+ this.findInside(dom);
2962
+ rule.getContent(dom, this.parser.schema).forEach(node => this.insertNode(node, marks, false));
2963
+ }
2964
+ else {
2965
+ let contentDOM = dom;
2966
+ if (typeof rule.contentElement == "string")
2967
+ contentDOM = dom.querySelector(rule.contentElement);
2968
+ else if (typeof rule.contentElement == "function")
2969
+ contentDOM = rule.contentElement(dom);
2970
+ else if (rule.contentElement)
2971
+ contentDOM = rule.contentElement;
2972
+ this.findAround(dom, contentDOM, true);
2973
+ this.addAll(contentDOM, marks);
2974
+ this.findAround(dom, contentDOM, false);
2975
+ }
2976
+ if (sync && this.sync(startIn))
2977
+ this.open--;
2978
+ }
2979
+ // Add all child nodes between `startIndex` and `endIndex` (or the
2980
+ // whole node, if not given). If `sync` is passed, use it to
2981
+ // synchronize after every block element.
2982
+ addAll(parent, marks, startIndex, endIndex) {
2983
+ let index = startIndex || 0;
2984
+ for (let dom = startIndex ? parent.childNodes[startIndex] : parent.firstChild, end = endIndex == null ? null : parent.childNodes[endIndex]; dom != end; dom = dom.nextSibling, ++index) {
2985
+ this.findAtPoint(parent, index);
2986
+ this.addDOM(dom, marks);
2987
+ }
2988
+ this.findAtPoint(parent, index);
2989
+ }
2990
+ // Try to find a way to fit the given node type into the current
2991
+ // context. May add intermediate wrappers and/or leave non-solid
2992
+ // nodes that we're in.
2993
+ findPlace(node, marks, cautious) {
2994
+ let route, sync;
2995
+ for (let depth = this.open, penalty = 0; depth >= 0; depth--) {
2996
+ let cx = this.nodes[depth];
2997
+ let found = cx.findWrapping(node);
2998
+ if (found && (!route || route.length > found.length + penalty)) {
2999
+ route = found;
3000
+ sync = cx;
3001
+ if (!found.length)
3002
+ break;
3003
+ }
3004
+ if (cx.solid) {
3005
+ if (cautious)
3006
+ break;
3007
+ penalty += 2;
3008
+ }
3009
+ }
3010
+ if (!route)
3011
+ return null;
3012
+ this.sync(sync);
3013
+ for (let i = 0; i < route.length; i++)
3014
+ marks = this.enterInner(route[i], null, marks, false);
3015
+ return marks;
3016
+ }
3017
+ // Try to insert the given node, adjusting the context when needed.
3018
+ insertNode(node, marks, cautious) {
3019
+ if (node.isInline && this.needsBlock && !this.top.type) {
3020
+ let block = this.textblockFromContext();
3021
+ if (block)
3022
+ marks = this.enterInner(block, null, marks);
3023
+ }
3024
+ let innerMarks = this.findPlace(node, marks, cautious);
3025
+ if (innerMarks) {
3026
+ this.closeExtra();
3027
+ let top = this.top;
3028
+ if (top.match)
3029
+ top.match = top.match.matchType(node.type);
3030
+ let nodeMarks = Mark.none;
3031
+ for (let m of innerMarks.concat(node.marks))
3032
+ if (top.type ? top.type.allowsMarkType(m.type) : markMayApply(m.type, node.type))
3033
+ nodeMarks = m.addToSet(nodeMarks);
3034
+ top.content.push(node.mark(nodeMarks));
3035
+ return true;
3036
+ }
3037
+ return false;
3038
+ }
3039
+ // Try to start a node of the given type, adjusting the context when
3040
+ // necessary.
3041
+ enter(type, attrs, marks, preserveWS) {
3042
+ let innerMarks = this.findPlace(type.create(attrs), marks, false);
3043
+ if (innerMarks)
3044
+ innerMarks = this.enterInner(type, attrs, marks, true, preserveWS);
3045
+ return innerMarks;
3046
+ }
3047
+ // Open a node of the given type
3048
+ enterInner(type, attrs, marks, solid = false, preserveWS) {
3049
+ this.closeExtra();
3050
+ let top = this.top;
3051
+ top.match = top.match && top.match.matchType(type);
3052
+ let options = wsOptionsFor(type, preserveWS, top.options);
3053
+ if ((top.options & OPT_OPEN_LEFT) && top.content.length == 0)
3054
+ options |= OPT_OPEN_LEFT;
3055
+ let applyMarks = Mark.none;
3056
+ marks = marks.filter(m => {
3057
+ if (top.type ? top.type.allowsMarkType(m.type) : markMayApply(m.type, type)) {
3058
+ applyMarks = m.addToSet(applyMarks);
3059
+ return false;
3060
+ }
3061
+ return true;
3062
+ });
3063
+ this.nodes.push(new NodeContext(type, attrs, applyMarks, solid, null, options));
3064
+ this.open++;
3065
+ return marks;
3066
+ }
3067
+ // Make sure all nodes above this.open are finished and added to
3068
+ // their parents
3069
+ closeExtra(openEnd = false) {
3070
+ let i = this.nodes.length - 1;
3071
+ if (i > this.open) {
3072
+ for (; i > this.open; i--)
3073
+ this.nodes[i - 1].content.push(this.nodes[i].finish(openEnd));
3074
+ this.nodes.length = this.open + 1;
3075
+ }
3076
+ }
3077
+ finish() {
3078
+ this.open = 0;
3079
+ this.closeExtra(this.isOpen);
3080
+ return this.nodes[0].finish(!!(this.isOpen || this.options.topOpen));
3081
+ }
3082
+ sync(to) {
3083
+ for (let i = this.open; i >= 0; i--) {
3084
+ if (this.nodes[i] == to) {
3085
+ this.open = i;
3086
+ return true;
3087
+ }
3088
+ else if (this.localPreserveWS) {
3089
+ this.nodes[i].options |= OPT_PRESERVE_WS;
3090
+ }
3091
+ }
3092
+ return false;
3093
+ }
3094
+ get currentPos() {
3095
+ this.closeExtra();
3096
+ let pos = 0;
3097
+ for (let i = this.open; i >= 0; i--) {
3098
+ let content = this.nodes[i].content;
3099
+ for (let j = content.length - 1; j >= 0; j--)
3100
+ pos += content[j].nodeSize;
3101
+ if (i)
3102
+ pos++;
3103
+ }
3104
+ return pos;
3105
+ }
3106
+ findAtPoint(parent, offset) {
3107
+ if (this.find)
3108
+ for (let i = 0; i < this.find.length; i++) {
3109
+ if (this.find[i].node == parent && this.find[i].offset == offset)
3110
+ this.find[i].pos = this.currentPos;
3111
+ }
3112
+ }
3113
+ findInside(parent) {
3114
+ if (this.find)
3115
+ for (let i = 0; i < this.find.length; i++) {
3116
+ if (this.find[i].pos == null && parent.nodeType == 1 && parent.contains(this.find[i].node))
3117
+ this.find[i].pos = this.currentPos;
3118
+ }
3119
+ }
3120
+ findAround(parent, content, before) {
3121
+ if (parent != content && this.find)
3122
+ for (let i = 0; i < this.find.length; i++) {
3123
+ if (this.find[i].pos == null && parent.nodeType == 1 && parent.contains(this.find[i].node)) {
3124
+ let pos = content.compareDocumentPosition(this.find[i].node);
3125
+ if (pos & (before ? 2 : 4))
3126
+ this.find[i].pos = this.currentPos;
3127
+ }
3128
+ }
3129
+ }
3130
+ findInText(textNode) {
3131
+ if (this.find)
3132
+ for (let i = 0; i < this.find.length; i++) {
3133
+ if (this.find[i].node == textNode)
3134
+ this.find[i].pos = this.currentPos - (textNode.nodeValue.length - this.find[i].offset);
3135
+ }
3136
+ }
3137
+ // Determines whether the given context string matches this context.
3138
+ matchesContext(context) {
3139
+ if (context.indexOf("|") > -1)
3140
+ return context.split(/\s*\|\s*/).some(this.matchesContext, this);
3141
+ let parts = context.split("/");
3142
+ let option = this.options.context;
3143
+ let useRoot = !this.isOpen && (!option || option.parent.type == this.nodes[0].type);
3144
+ let minDepth = -(option ? option.depth + 1 : 0) + (useRoot ? 0 : 1);
3145
+ let match = (i, depth) => {
3146
+ for (; i >= 0; i--) {
3147
+ let part = parts[i];
3148
+ if (part == "") {
3149
+ if (i == parts.length - 1 || i == 0)
3150
+ continue;
3151
+ for (; depth >= minDepth; depth--)
3152
+ if (match(i - 1, depth))
3153
+ return true;
3154
+ return false;
3155
+ }
3156
+ else {
3157
+ let next = depth > 0 || (depth == 0 && useRoot) ? this.nodes[depth].type
3158
+ : option && depth >= minDepth ? option.node(depth - minDepth).type
3159
+ : null;
3160
+ if (!next || (next.name != part && !next.isInGroup(part)))
3161
+ return false;
3162
+ depth--;
3163
+ }
3164
+ }
3165
+ return true;
3166
+ };
3167
+ return match(parts.length - 1, this.open);
3168
+ }
3169
+ textblockFromContext() {
3170
+ let $context = this.options.context;
3171
+ if ($context)
3172
+ for (let d = $context.depth; d >= 0; d--) {
3173
+ let deflt = $context.node(d).contentMatchAt($context.indexAfter(d)).defaultType;
3174
+ if (deflt && deflt.isTextblock && deflt.defaultAttrs)
3175
+ return deflt;
3176
+ }
3177
+ for (let name in this.parser.schema.nodes) {
3178
+ let type = this.parser.schema.nodes[name];
3179
+ if (type.isTextblock && type.defaultAttrs)
3180
+ return type;
3181
+ }
3182
+ }
3183
+ }
3184
+ // Kludge to work around directly nested list nodes produced by some
3185
+ // tools and allowed by browsers to mean that the nested list is
3186
+ // actually part of the list item above it.
3187
+ function normalizeList(dom) {
3188
+ for (let child = dom.firstChild, prevItem = null; child; child = child.nextSibling) {
3189
+ let name = child.nodeType == 1 ? child.nodeName.toLowerCase() : null;
3190
+ if (name && listTags.hasOwnProperty(name) && prevItem) {
3191
+ prevItem.appendChild(child);
3192
+ child = prevItem;
3193
+ }
3194
+ else if (name == "li") {
3195
+ prevItem = child;
3196
+ }
3197
+ else if (name) {
3198
+ prevItem = null;
3199
+ }
3200
+ }
3201
+ }
3202
+ // Apply a CSS selector.
3203
+ function matches(dom, selector) {
3204
+ return (dom.matches || dom.msMatchesSelector || dom.webkitMatchesSelector || dom.mozMatchesSelector).call(dom, selector);
3205
+ }
3206
+ function copy(obj) {
3207
+ let copy = {};
3208
+ for (let prop in obj)
3209
+ copy[prop] = obj[prop];
3210
+ return copy;
3211
+ }
3212
+ // Used when finding a mark at the top level of a fragment parse.
3213
+ // Checks whether it would be reasonable to apply a given mark type to
3214
+ // a given node, by looking at the way the mark occurs in the schema.
3215
+ function markMayApply(markType, nodeType) {
3216
+ let nodes = nodeType.schema.nodes;
3217
+ for (let name in nodes) {
3218
+ let parent = nodes[name];
3219
+ if (!parent.allowsMarkType(markType))
3220
+ continue;
3221
+ let seen = [], scan = (match) => {
3222
+ seen.push(match);
3223
+ for (let i = 0; i < match.edgeCount; i++) {
3224
+ let { type, next } = match.edge(i);
3225
+ if (type == nodeType)
3226
+ return true;
3227
+ if (seen.indexOf(next) < 0 && scan(next))
3228
+ return true;
3229
+ }
3230
+ };
3231
+ if (scan(parent.contentMatch))
3232
+ return true;
3233
+ }
3234
+ }
3235
+
3236
+ /**
3237
+ A DOM serializer knows how to convert ProseMirror nodes and
3238
+ marks of various types to DOM nodes.
3239
+ */
3240
+ class DOMSerializer {
3241
+ /**
3242
+ Create a serializer. `nodes` should map node names to functions
3243
+ that take a node and return a description of the corresponding
3244
+ DOM. `marks` does the same for mark names, but also gets an
3245
+ argument that tells it whether the mark's content is block or
3246
+ inline content (for typical use, it'll always be inline). A mark
3247
+ serializer may be `null` to indicate that marks of that type
3248
+ should not be serialized.
3249
+ */
3250
+ constructor(
3251
+ /**
3252
+ The node serialization functions.
3253
+ */
3254
+ nodes,
3255
+ /**
3256
+ The mark serialization functions.
3257
+ */
3258
+ marks) {
3259
+ this.nodes = nodes;
3260
+ this.marks = marks;
3261
+ }
3262
+ /**
3263
+ Serialize the content of this fragment to a DOM fragment. When
3264
+ not in the browser, the `document` option, containing a DOM
3265
+ document, should be passed so that the serializer can create
3266
+ nodes.
3267
+ */
3268
+ serializeFragment(fragment, options = {}, target) {
3269
+ if (!target)
3270
+ target = doc(options).createDocumentFragment();
3271
+ let top = target, active = [];
3272
+ fragment.forEach(node => {
3273
+ if (active.length || node.marks.length) {
3274
+ let keep = 0, rendered = 0;
3275
+ while (keep < active.length && rendered < node.marks.length) {
3276
+ let next = node.marks[rendered];
3277
+ if (!this.marks[next.type.name]) {
3278
+ rendered++;
3279
+ continue;
3280
+ }
3281
+ if (!next.eq(active[keep][0]) || next.type.spec.spanning === false)
3282
+ break;
3283
+ keep++;
3284
+ rendered++;
3285
+ }
3286
+ while (keep < active.length)
3287
+ top = active.pop()[1];
3288
+ while (rendered < node.marks.length) {
3289
+ let add = node.marks[rendered++];
3290
+ let markDOM = this.serializeMark(add, node.isInline, options);
3291
+ if (markDOM) {
3292
+ active.push([add, top]);
3293
+ top.appendChild(markDOM.dom);
3294
+ top = markDOM.contentDOM || markDOM.dom;
3295
+ }
3296
+ }
3297
+ }
3298
+ top.appendChild(this.serializeNodeInner(node, options));
3299
+ });
3300
+ return target;
3301
+ }
3302
+ /**
3303
+ @internal
3304
+ */
3305
+ serializeNodeInner(node, options) {
3306
+ let { dom, contentDOM } = renderSpec(doc(options), this.nodes[node.type.name](node), null, node.attrs);
3307
+ if (contentDOM) {
3308
+ if (node.isLeaf)
3309
+ throw new RangeError("Content hole not allowed in a leaf node spec");
3310
+ this.serializeFragment(node.content, options, contentDOM);
3311
+ }
3312
+ return dom;
3313
+ }
3314
+ /**
3315
+ Serialize this node to a DOM node. This can be useful when you
3316
+ need to serialize a part of a document, as opposed to the whole
3317
+ document. To serialize a whole document, use
3318
+ [`serializeFragment`](https://prosemirror.net/docs/ref/#model.DOMSerializer.serializeFragment) on
3319
+ its [content](https://prosemirror.net/docs/ref/#model.Node.content).
3320
+ */
3321
+ serializeNode(node, options = {}) {
3322
+ let dom = this.serializeNodeInner(node, options);
3323
+ for (let i = node.marks.length - 1; i >= 0; i--) {
3324
+ let wrap = this.serializeMark(node.marks[i], node.isInline, options);
3325
+ if (wrap) {
3326
+ (wrap.contentDOM || wrap.dom).appendChild(dom);
3327
+ dom = wrap.dom;
3328
+ }
3329
+ }
3330
+ return dom;
3331
+ }
3332
+ /**
3333
+ @internal
3334
+ */
3335
+ serializeMark(mark, inline, options = {}) {
3336
+ let toDOM = this.marks[mark.type.name];
3337
+ return toDOM && renderSpec(doc(options), toDOM(mark, inline), null, mark.attrs);
3338
+ }
3339
+ static renderSpec(doc, structure, xmlNS = null, blockArraysIn) {
3340
+ return renderSpec(doc, structure, xmlNS, blockArraysIn);
3341
+ }
3342
+ /**
3343
+ Build a serializer using the [`toDOM`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDOM)
3344
+ properties in a schema's node and mark specs.
3345
+ */
3346
+ static fromSchema(schema) {
3347
+ return schema.cached.domSerializer ||
3348
+ (schema.cached.domSerializer = new DOMSerializer(this.nodesFromSchema(schema), this.marksFromSchema(schema)));
3349
+ }
3350
+ /**
3351
+ Gather the serializers in a schema's node specs into an object.
3352
+ This can be useful as a base to build a custom serializer from.
3353
+ */
3354
+ static nodesFromSchema(schema) {
3355
+ let result = gatherToDOM(schema.nodes);
3356
+ if (!result.text)
3357
+ result.text = node => node.text;
3358
+ return result;
3359
+ }
3360
+ /**
3361
+ Gather the serializers in a schema's mark specs into an object.
3362
+ */
3363
+ static marksFromSchema(schema) {
3364
+ return gatherToDOM(schema.marks);
3365
+ }
3366
+ }
3367
+ function gatherToDOM(obj) {
3368
+ let result = {};
3369
+ for (let name in obj) {
3370
+ let toDOM = obj[name].spec.toDOM;
3371
+ if (toDOM)
3372
+ result[name] = toDOM;
3373
+ }
3374
+ return result;
3375
+ }
3376
+ function doc(options) {
3377
+ return options.document || window.document;
3378
+ }
3379
+ const suspiciousAttributeCache = new WeakMap();
3380
+ function suspiciousAttributes(attrs) {
3381
+ let value = suspiciousAttributeCache.get(attrs);
3382
+ if (value === undefined)
3383
+ suspiciousAttributeCache.set(attrs, value = suspiciousAttributesInner(attrs));
3384
+ return value;
3385
+ }
3386
+ function suspiciousAttributesInner(attrs) {
3387
+ let result = null;
3388
+ function scan(value) {
3389
+ if (value && typeof value == "object") {
3390
+ if (Array.isArray(value)) {
3391
+ if (typeof value[0] == "string") {
3392
+ if (!result)
3393
+ result = [];
3394
+ result.push(value);
3395
+ }
3396
+ else {
3397
+ for (let i = 0; i < value.length; i++)
3398
+ scan(value[i]);
3399
+ }
3400
+ }
3401
+ else {
3402
+ for (let prop in value)
3403
+ scan(value[prop]);
3404
+ }
3405
+ }
3406
+ }
3407
+ scan(attrs);
3408
+ return result;
3409
+ }
3410
+ function renderSpec(doc, structure, xmlNS, blockArraysIn) {
3411
+ if (typeof structure == "string")
3412
+ return { dom: doc.createTextNode(structure) };
3413
+ if (structure.nodeType != null)
3414
+ return { dom: structure };
3415
+ if (structure.dom && structure.dom.nodeType != null)
3416
+ return structure;
3417
+ let tagName = structure[0], suspicious;
3418
+ if (typeof tagName != "string")
3419
+ throw new RangeError("Invalid array passed to renderSpec");
3420
+ if (blockArraysIn && (suspicious = suspiciousAttributes(blockArraysIn)) &&
3421
+ suspicious.indexOf(structure) > -1)
3422
+ throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");
3423
+ let space = tagName.indexOf(" ");
3424
+ if (space > 0) {
3425
+ xmlNS = tagName.slice(0, space);
3426
+ tagName = tagName.slice(space + 1);
3427
+ }
3428
+ let contentDOM;
3429
+ let dom = (xmlNS ? doc.createElementNS(xmlNS, tagName) : doc.createElement(tagName));
3430
+ let attrs = structure[1], start = 1;
3431
+ if (attrs && typeof attrs == "object" && attrs.nodeType == null && !Array.isArray(attrs)) {
3432
+ start = 2;
3433
+ for (let name in attrs)
3434
+ if (attrs[name] != null) {
3435
+ let space = name.indexOf(" ");
3436
+ if (space > 0)
3437
+ dom.setAttributeNS(name.slice(0, space), name.slice(space + 1), attrs[name]);
3438
+ else if (name == "style" && dom.style)
3439
+ dom.style.cssText = attrs[name];
3440
+ else
3441
+ dom.setAttribute(name, attrs[name]);
3442
+ }
3443
+ }
3444
+ for (let i = start; i < structure.length; i++) {
3445
+ let child = structure[i];
3446
+ if (child === 0) {
3447
+ if (i < structure.length - 1 || i > start)
3448
+ throw new RangeError("Content hole must be the only child of its parent node");
3449
+ return { dom, contentDOM: dom };
3450
+ }
3451
+ else {
3452
+ let { dom: inner, contentDOM: innerContent } = renderSpec(doc, child, xmlNS, blockArraysIn);
3453
+ dom.appendChild(inner);
3454
+ if (innerContent) {
3455
+ if (contentDOM)
3456
+ throw new RangeError("Multiple content holes");
3457
+ contentDOM = innerContent;
3458
+ }
3459
+ }
3460
+ }
3461
+ return { dom, contentDOM };
3462
+ }
3463
+
3464
+ export { ContentMatch, DOMParser, DOMSerializer, Fragment, Mark, MarkType, Node, NodeRange, NodeType, ReplaceError, ResolvedPos, Schema, Slice };