@lotte-innovate/ui-component-test 0.1.76 → 0.1.77

Sign up to get free protection for your applications and to get access to all the features.
Files changed (478) hide show
  1. package/README.md +9 -11
  2. package/dist/globals.css +2 -2
  3. package/dist/lib/_virtual/index.mjs +1 -1
  4. package/dist/lib/_virtual/index2.mjs +1 -1
  5. package/dist/lib/_virtual/index3.mjs +1 -1
  6. package/dist/lib/_virtual/react-is.development.mjs +2 -0
  7. package/dist/lib/_virtual/react-is.development.mjs.map +1 -0
  8. package/dist/lib/_virtual/react-is.production.min.mjs +2 -0
  9. package/dist/lib/_virtual/react-is.production.min.mjs.map +1 -0
  10. package/dist/lib/components/Editor/index.d.ts +10 -5
  11. package/dist/lib/components/Editor/index.js +50 -6
  12. package/dist/lib/components/Footer/index.js +8 -1
  13. package/dist/lib/components/Gnb/GnbInfo.js +1 -0
  14. package/dist/lib/components/Gnb/GnbLogo.js +3 -4
  15. package/dist/lib/components/Gnb/GnbMenu.js +1 -0
  16. package/dist/lib/components/Gnb/GnbRoot.js +4 -2
  17. package/dist/lib/components/Grid/Pagination.d.ts +2 -0
  18. package/dist/lib/components/Grid/Pagination.js +17 -0
  19. package/dist/lib/components/Grid/index.d.ts +1 -2
  20. package/dist/lib/components/Grid/index.js +40 -47
  21. package/dist/lib/components/Grid/useGrid.d.ts +1 -1
  22. package/dist/lib/components/Grid/useGrid.js +19 -11
  23. package/dist/lib/components/Slider/index.d.ts +2 -1
  24. package/dist/lib/components/index.d.ts +2 -1
  25. package/dist/lib/components/index.js +3 -1
  26. package/dist/lib/dist/lib/components/BarChart/index.mjs.map +1 -1
  27. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbEllipsis.mjs.map +1 -1
  28. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbItem.mjs.map +1 -1
  29. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbLink.mjs.map +1 -1
  30. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbList.mjs.map +1 -1
  31. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbPage.mjs.map +1 -1
  32. package/dist/lib/dist/lib/components/Breadcrumb/BreadcrumbSeparator.mjs.map +1 -1
  33. package/dist/lib/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  34. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -1
  35. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
  36. package/dist/lib/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
  37. package/dist/lib/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
  38. package/dist/lib/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
  39. package/dist/lib/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -1
  40. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
  41. package/dist/lib/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -1
  42. package/dist/lib/dist/lib/components/Editor/index.mjs +1 -1
  43. package/dist/lib/dist/lib/components/Footer/index.mjs +1 -1
  44. package/dist/lib/dist/lib/components/Gnb/GnbInfo.mjs +1 -0
  45. package/dist/lib/dist/lib/components/Gnb/GnbInfo.mjs.map +1 -1
  46. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs +1 -1
  47. package/dist/lib/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -1
  48. package/dist/lib/dist/lib/components/Gnb/GnbMenu.mjs +2 -1
  49. package/dist/lib/dist/lib/components/Gnb/GnbMenu.mjs.map +1 -1
  50. package/dist/lib/dist/lib/components/Gnb/GnbRoot.mjs +1 -1
  51. package/dist/lib/dist/lib/components/Grid/Pagination.mjs +2 -0
  52. package/dist/lib/dist/lib/components/Grid/Pagination.mjs.map +1 -0
  53. package/dist/lib/dist/lib/components/Grid/index.mjs +3 -0
  54. package/dist/lib/dist/lib/components/Grid/index.mjs.map +1 -0
  55. package/dist/lib/dist/lib/components/Grid/useGrid.mjs +3 -0
  56. package/dist/lib/dist/lib/components/Grid/useGrid.mjs.map +1 -0
  57. package/dist/lib/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -1
  58. package/dist/lib/dist/lib/components/LineChart/index.mjs.map +1 -1
  59. package/dist/lib/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -1
  60. package/dist/lib/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
  61. package/dist/lib/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -1
  62. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
  63. package/dist/lib/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -1
  64. package/dist/lib/dist/lib/components/PieChart/index.mjs.map +1 -1
  65. package/dist/lib/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -1
  66. package/dist/lib/dist/lib/components/RadarChart/index.mjs.map +1 -1
  67. package/dist/lib/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
  68. package/dist/lib/dist/lib/constants.mjs +1 -1
  69. package/dist/lib/dist/lib/constants.mjs.map +1 -1
  70. package/dist/lib/dist/lib/index.mjs +1 -1
  71. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.mjs +2 -0
  72. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/ScriptLoader2.mjs.map +1 -0
  73. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.mjs +2 -0
  74. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/TinyMCE.mjs.map +1 -0
  75. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.mjs +2 -0
  76. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/Utils.mjs.map +1 -0
  77. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.mjs +2 -0
  78. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/Editor.mjs.map +1 -0
  79. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.mjs +2 -0
  80. package/dist/lib/node_modules/@tinymce/tinymce-react/lib/es2015/main/ts/components/EditorPropTypes.mjs.map +1 -0
  81. package/dist/lib/node_modules/marked/lib/marked.esm.mjs +2 -0
  82. package/dist/lib/node_modules/marked/lib/marked.esm.mjs.map +1 -0
  83. package/dist/lib/node_modules/object-assign/index.mjs +7 -0
  84. package/dist/lib/node_modules/object-assign/index.mjs.map +1 -0
  85. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs +2 -0
  86. package/dist/lib/node_modules/prop-types/checkPropTypes.mjs.map +1 -0
  87. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs +2 -0
  88. package/dist/lib/node_modules/prop-types/factoryWithThrowingShims.mjs.map +1 -0
  89. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs +2 -0
  90. package/dist/lib/node_modules/prop-types/factoryWithTypeCheckers.mjs.map +1 -0
  91. package/dist/lib/node_modules/prop-types/index.mjs +2 -0
  92. package/dist/lib/node_modules/prop-types/index.mjs.map +1 -0
  93. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs +2 -0
  94. package/dist/lib/node_modules/prop-types/lib/ReactPropTypesSecret.mjs.map +1 -0
  95. package/dist/lib/node_modules/prop-types/lib/has.mjs +2 -0
  96. package/dist/lib/node_modules/prop-types/lib/has.mjs.map +1 -0
  97. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs +10 -0
  98. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.mjs.map +1 -0
  99. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs +10 -0
  100. package/dist/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.mjs.map +1 -0
  101. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs +2 -0
  102. package/dist/lib/node_modules/prop-types/node_modules/react-is/index.mjs.map +1 -0
  103. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  104. package/dist/lib/types.d.ts +2 -1
  105. package/dist/tsconfig.tsbuildinfo +1 -1
  106. package/package.json +6 -6
  107. package/dist/lib/_virtual/_commonjsHelpers.mjs +0 -2
  108. package/dist/lib/_virtual/_commonjsHelpers.mjs.map +0 -1
  109. package/dist/lib/_virtual/_interop_require_default.mjs +0 -2
  110. package/dist/lib/_virtual/_interop_require_default.mjs.map +0 -1
  111. package/dist/lib/_virtual/_interop_require_wildcard.mjs +0 -2
  112. package/dist/lib/_virtual/_interop_require_wildcard.mjs.map +0 -1
  113. package/dist/lib/_virtual/action-async-storage.external.mjs +0 -2
  114. package/dist/lib/_virtual/action-async-storage.external.mjs.map +0 -1
  115. package/dist/lib/_virtual/add-base-path.mjs +0 -2
  116. package/dist/lib/_virtual/add-base-path.mjs.map +0 -1
  117. package/dist/lib/_virtual/add-locale.mjs +0 -2
  118. package/dist/lib/_virtual/add-locale.mjs.map +0 -1
  119. package/dist/lib/_virtual/add-locale2.mjs +0 -2
  120. package/dist/lib/_virtual/add-locale2.mjs.map +0 -1
  121. package/dist/lib/_virtual/add-path-prefix.mjs +0 -2
  122. package/dist/lib/_virtual/add-path-prefix.mjs.map +0 -1
  123. package/dist/lib/_virtual/amp-context.shared-runtime.mjs +0 -2
  124. package/dist/lib/_virtual/amp-context.shared-runtime.mjs.map +0 -1
  125. package/dist/lib/_virtual/amp-mode.mjs +0 -2
  126. package/dist/lib/_virtual/amp-mode.mjs.map +0 -1
  127. package/dist/lib/_virtual/app-paths.mjs +0 -2
  128. package/dist/lib/_virtual/app-paths.mjs.map +0 -1
  129. package/dist/lib/_virtual/app-router-context.shared-runtime.mjs +0 -2
  130. package/dist/lib/_virtual/app-router-context.shared-runtime.mjs.map +0 -1
  131. package/dist/lib/_virtual/async-local-storage.mjs +0 -2
  132. package/dist/lib/_virtual/async-local-storage.mjs.map +0 -1
  133. package/dist/lib/_virtual/bailout-to-client-rendering.mjs +0 -2
  134. package/dist/lib/_virtual/bailout-to-client-rendering.mjs.map +0 -1
  135. package/dist/lib/_virtual/bailout-to-csr.mjs +0 -2
  136. package/dist/lib/_virtual/bailout-to-csr.mjs.map +0 -1
  137. package/dist/lib/_virtual/client-hook-in-server-component-error.mjs +0 -2
  138. package/dist/lib/_virtual/client-hook-in-server-component-error.mjs.map +0 -1
  139. package/dist/lib/_virtual/detect-domain-locale.mjs +0 -2
  140. package/dist/lib/_virtual/detect-domain-locale.mjs.map +0 -1
  141. package/dist/lib/_virtual/detect-domain-locale2.mjs +0 -2
  142. package/dist/lib/_virtual/detect-domain-locale2.mjs.map +0 -1
  143. package/dist/lib/_virtual/ensure-leading-slash.mjs +0 -2
  144. package/dist/lib/_virtual/ensure-leading-slash.mjs.map +0 -1
  145. package/dist/lib/_virtual/escape-regexp.mjs +0 -2
  146. package/dist/lib/_virtual/escape-regexp.mjs.map +0 -1
  147. package/dist/lib/_virtual/format-url.mjs +0 -2
  148. package/dist/lib/_virtual/format-url.mjs.map +0 -1
  149. package/dist/lib/_virtual/get-domain-locale.mjs +0 -2
  150. package/dist/lib/_virtual/get-domain-locale.mjs.map +0 -1
  151. package/dist/lib/_virtual/get-img-props.mjs +0 -2
  152. package/dist/lib/_virtual/get-img-props.mjs.map +0 -1
  153. package/dist/lib/_virtual/get-segment-value.mjs +0 -2
  154. package/dist/lib/_virtual/get-segment-value.mjs.map +0 -1
  155. package/dist/lib/_virtual/has-base-path.mjs +0 -2
  156. package/dist/lib/_virtual/has-base-path.mjs.map +0 -1
  157. package/dist/lib/_virtual/head-manager-context.shared-runtime.mjs +0 -2
  158. package/dist/lib/_virtual/head-manager-context.shared-runtime.mjs.map +0 -1
  159. package/dist/lib/_virtual/head.mjs +0 -2
  160. package/dist/lib/_virtual/head.mjs.map +0 -1
  161. package/dist/lib/_virtual/hooks-client-context.shared-runtime.mjs +0 -2
  162. package/dist/lib/_virtual/hooks-client-context.shared-runtime.mjs.map +0 -1
  163. package/dist/lib/_virtual/image-blur-svg.mjs +0 -2
  164. package/dist/lib/_virtual/image-blur-svg.mjs.map +0 -1
  165. package/dist/lib/_virtual/image-component.mjs +0 -2
  166. package/dist/lib/_virtual/image-component.mjs.map +0 -1
  167. package/dist/lib/_virtual/image-config-context.shared-runtime.mjs +0 -2
  168. package/dist/lib/_virtual/image-config-context.shared-runtime.mjs.map +0 -1
  169. package/dist/lib/_virtual/image-config.mjs +0 -2
  170. package/dist/lib/_virtual/image-config.mjs.map +0 -1
  171. package/dist/lib/_virtual/image-external.mjs +0 -2
  172. package/dist/lib/_virtual/image-external.mjs.map +0 -1
  173. package/dist/lib/_virtual/image-loader.mjs +0 -2
  174. package/dist/lib/_virtual/image-loader.mjs.map +0 -1
  175. package/dist/lib/_virtual/image.mjs +0 -2
  176. package/dist/lib/_virtual/image.mjs.map +0 -1
  177. package/dist/lib/_virtual/index4.mjs +0 -2
  178. package/dist/lib/_virtual/index4.mjs.map +0 -1
  179. package/dist/lib/_virtual/index5.mjs +0 -2
  180. package/dist/lib/_virtual/index5.mjs.map +0 -1
  181. package/dist/lib/_virtual/index6.mjs +0 -2
  182. package/dist/lib/_virtual/index6.mjs.map +0 -1
  183. package/dist/lib/_virtual/index7.mjs +0 -2
  184. package/dist/lib/_virtual/index7.mjs.map +0 -1
  185. package/dist/lib/_virtual/index8.mjs +0 -2
  186. package/dist/lib/_virtual/index8.mjs.map +0 -1
  187. package/dist/lib/_virtual/index9.mjs +0 -2
  188. package/dist/lib/_virtual/index9.mjs.map +0 -1
  189. package/dist/lib/_virtual/interception-routes.mjs +0 -2
  190. package/dist/lib/_virtual/interception-routes.mjs.map +0 -1
  191. package/dist/lib/_virtual/interpolate-as.mjs +0 -2
  192. package/dist/lib/_virtual/interpolate-as.mjs.map +0 -1
  193. package/dist/lib/_virtual/is-dynamic.mjs +0 -2
  194. package/dist/lib/_virtual/is-dynamic.mjs.map +0 -1
  195. package/dist/lib/_virtual/is-local-url.mjs +0 -2
  196. package/dist/lib/_virtual/is-local-url.mjs.map +0 -1
  197. package/dist/lib/_virtual/link.mjs +0 -2
  198. package/dist/lib/_virtual/link.mjs.map +0 -1
  199. package/dist/lib/_virtual/link2.mjs +0 -2
  200. package/dist/lib/_virtual/link2.mjs.map +0 -1
  201. package/dist/lib/_virtual/match-remote-pattern.mjs +0 -2
  202. package/dist/lib/_virtual/match-remote-pattern.mjs.map +0 -1
  203. package/dist/lib/_virtual/navigation.mjs +0 -2
  204. package/dist/lib/_virtual/navigation.mjs.map +0 -1
  205. package/dist/lib/_virtual/navigation2.mjs +0 -2
  206. package/dist/lib/_virtual/navigation2.mjs.map +0 -1
  207. package/dist/lib/_virtual/normalize-locale-path.mjs +0 -2
  208. package/dist/lib/_virtual/normalize-locale-path.mjs.map +0 -1
  209. package/dist/lib/_virtual/normalize-locale-path2.mjs +0 -2
  210. package/dist/lib/_virtual/normalize-locale-path2.mjs.map +0 -1
  211. package/dist/lib/_virtual/normalize-trailing-slash.mjs +0 -2
  212. package/dist/lib/_virtual/normalize-trailing-slash.mjs.map +0 -1
  213. package/dist/lib/_virtual/not-found.mjs +0 -2
  214. package/dist/lib/_virtual/not-found.mjs.map +0 -1
  215. package/dist/lib/_virtual/omit.mjs +0 -2
  216. package/dist/lib/_virtual/omit.mjs.map +0 -1
  217. package/dist/lib/_virtual/parse-path.mjs +0 -2
  218. package/dist/lib/_virtual/parse-path.mjs.map +0 -1
  219. package/dist/lib/_virtual/path-has-prefix.mjs +0 -2
  220. package/dist/lib/_virtual/path-has-prefix.mjs.map +0 -1
  221. package/dist/lib/_virtual/querystring.mjs +0 -2
  222. package/dist/lib/_virtual/querystring.mjs.map +0 -1
  223. package/dist/lib/_virtual/redirect-status-code.mjs +0 -2
  224. package/dist/lib/_virtual/redirect-status-code.mjs.map +0 -1
  225. package/dist/lib/_virtual/redirect.mjs +0 -2
  226. package/dist/lib/_virtual/redirect.mjs.map +0 -1
  227. package/dist/lib/_virtual/remove-trailing-slash.mjs +0 -2
  228. package/dist/lib/_virtual/remove-trailing-slash.mjs.map +0 -1
  229. package/dist/lib/_virtual/request-async-storage.external.mjs +0 -2
  230. package/dist/lib/_virtual/request-async-storage.external.mjs.map +0 -1
  231. package/dist/lib/_virtual/request-idle-callback.mjs +0 -2
  232. package/dist/lib/_virtual/request-idle-callback.mjs.map +0 -1
  233. package/dist/lib/_virtual/resolve-href.mjs +0 -2
  234. package/dist/lib/_virtual/resolve-href.mjs.map +0 -1
  235. package/dist/lib/_virtual/route-matcher.mjs +0 -2
  236. package/dist/lib/_virtual/route-matcher.mjs.map +0 -1
  237. package/dist/lib/_virtual/route-regex.mjs +0 -2
  238. package/dist/lib/_virtual/route-regex.mjs.map +0 -1
  239. package/dist/lib/_virtual/router-context.shared-runtime.mjs +0 -2
  240. package/dist/lib/_virtual/router-context.shared-runtime.mjs.map +0 -1
  241. package/dist/lib/_virtual/router-reducer-types.mjs +0 -2
  242. package/dist/lib/_virtual/router-reducer-types.mjs.map +0 -1
  243. package/dist/lib/_virtual/segment.mjs +0 -2
  244. package/dist/lib/_virtual/segment.mjs.map +0 -1
  245. package/dist/lib/_virtual/server-inserted-html.shared-runtime.mjs +0 -2
  246. package/dist/lib/_virtual/server-inserted-html.shared-runtime.mjs.map +0 -1
  247. package/dist/lib/_virtual/side-effect.mjs +0 -2
  248. package/dist/lib/_virtual/side-effect.mjs.map +0 -1
  249. package/dist/lib/_virtual/sorted-routes.mjs +0 -2
  250. package/dist/lib/_virtual/sorted-routes.mjs.map +0 -1
  251. package/dist/lib/_virtual/static-generation-async-storage.external.mjs +0 -2
  252. package/dist/lib/_virtual/static-generation-async-storage.external.mjs.map +0 -1
  253. package/dist/lib/_virtual/toastui-editor-plugin-color-syntax.mjs +0 -2
  254. package/dist/lib/_virtual/toastui-editor-plugin-color-syntax.mjs.map +0 -1
  255. package/dist/lib/_virtual/toastui-editor-plugin-color-syntax2.mjs +0 -2
  256. package/dist/lib/_virtual/toastui-editor-plugin-color-syntax2.mjs.map +0 -1
  257. package/dist/lib/_virtual/toastui-editor-viewer.mjs +0 -2
  258. package/dist/lib/_virtual/toastui-editor-viewer.mjs.map +0 -1
  259. package/dist/lib/_virtual/toastui-editor-viewer2.mjs +0 -2
  260. package/dist/lib/_virtual/toastui-editor-viewer2.mjs.map +0 -1
  261. package/dist/lib/_virtual/tui-color-picker.mjs +0 -2
  262. package/dist/lib/_virtual/tui-color-picker.mjs.map +0 -1
  263. package/dist/lib/_virtual/use-intersection.mjs +0 -2
  264. package/dist/lib/_virtual/use-intersection.mjs.map +0 -1
  265. package/dist/lib/_virtual/utils.mjs +0 -2
  266. package/dist/lib/_virtual/utils.mjs.map +0 -1
  267. package/dist/lib/_virtual/warn-once.mjs +0 -2
  268. package/dist/lib/_virtual/warn-once.mjs.map +0 -1
  269. package/dist/lib/dist/lib/components/Timeline/TimelineConnector.mjs +0 -2
  270. package/dist/lib/dist/lib/components/Timeline/TimelineConnector.mjs.map +0 -1
  271. package/dist/lib/dist/lib/components/Timeline/TimelineContent.mjs +0 -2
  272. package/dist/lib/dist/lib/components/Timeline/TimelineContent.mjs.map +0 -1
  273. package/dist/lib/dist/lib/components/Timeline/TimelineDescription.mjs +0 -2
  274. package/dist/lib/dist/lib/components/Timeline/TimelineDescription.mjs.map +0 -1
  275. package/dist/lib/dist/lib/components/Timeline/TimelineHeader.mjs +0 -2
  276. package/dist/lib/dist/lib/components/Timeline/TimelineHeader.mjs.map +0 -1
  277. package/dist/lib/dist/lib/components/Timeline/TimelineIcon.mjs +0 -2
  278. package/dist/lib/dist/lib/components/Timeline/TimelineIcon.mjs.map +0 -1
  279. package/dist/lib/dist/lib/components/Timeline/TimelineItem.mjs +0 -2
  280. package/dist/lib/dist/lib/components/Timeline/TimelineItem.mjs.map +0 -1
  281. package/dist/lib/dist/lib/components/Timeline/TimelineRoot.mjs +0 -3
  282. package/dist/lib/dist/lib/components/Timeline/TimelineRoot.mjs.map +0 -1
  283. package/dist/lib/dist/lib/components/Timeline/TimelineTime.mjs +0 -2
  284. package/dist/lib/dist/lib/components/Timeline/TimelineTime.mjs.map +0 -1
  285. package/dist/lib/dist/lib/components/Timeline/TimelineTitle.mjs +0 -2
  286. package/dist/lib/dist/lib/components/Timeline/TimelineTitle.mjs.map +0 -1
  287. package/dist/lib/dist/lib/components/Timeline/index.mjs +0 -2
  288. package/dist/lib/dist/lib/components/Timeline/index.mjs.map +0 -1
  289. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_default.mjs +0 -2
  290. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_default.mjs.map +0 -1
  291. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs +0 -2
  292. package/dist/lib/node_modules/@swc/helpers/cjs/_interop_require_wildcard.mjs.map +0 -1
  293. package/dist/lib/node_modules/@toast-ui/editor/dist/esm/index.mjs +0 -37
  294. package/dist/lib/node_modules/@toast-ui/editor/dist/esm/index.mjs.map +0 -1
  295. package/dist/lib/node_modules/@toast-ui/editor/dist/toastui-editor-viewer.mjs +0 -24
  296. package/dist/lib/node_modules/@toast-ui/editor/dist/toastui-editor-viewer.mjs.map +0 -1
  297. package/dist/lib/node_modules/@toast-ui/editor-plugin-color-syntax/dist/toastui-editor-plugin-color-syntax.mjs +0 -8
  298. package/dist/lib/node_modules/@toast-ui/editor-plugin-color-syntax/dist/toastui-editor-plugin-color-syntax.mjs.map +0 -1
  299. package/dist/lib/node_modules/@toast-ui/react-editor/dist/esm/index.mjs +0 -22
  300. package/dist/lib/node_modules/@toast-ui/react-editor/dist/esm/index.mjs.map +0 -1
  301. package/dist/lib/node_modules/next/dist/client/add-base-path.mjs +0 -2
  302. package/dist/lib/node_modules/next/dist/client/add-base-path.mjs.map +0 -1
  303. package/dist/lib/node_modules/next/dist/client/add-locale.mjs +0 -2
  304. package/dist/lib/node_modules/next/dist/client/add-locale.mjs.map +0 -1
  305. package/dist/lib/node_modules/next/dist/client/components/action-async-storage.external.mjs +0 -2
  306. package/dist/lib/node_modules/next/dist/client/components/action-async-storage.external.mjs.map +0 -1
  307. package/dist/lib/node_modules/next/dist/client/components/async-local-storage.mjs +0 -2
  308. package/dist/lib/node_modules/next/dist/client/components/async-local-storage.mjs.map +0 -1
  309. package/dist/lib/node_modules/next/dist/client/components/bailout-to-client-rendering.mjs +0 -2
  310. package/dist/lib/node_modules/next/dist/client/components/bailout-to-client-rendering.mjs.map +0 -1
  311. package/dist/lib/node_modules/next/dist/client/components/client-hook-in-server-component-error.mjs +0 -2
  312. package/dist/lib/node_modules/next/dist/client/components/client-hook-in-server-component-error.mjs.map +0 -1
  313. package/dist/lib/node_modules/next/dist/client/components/navigation.mjs +0 -2
  314. package/dist/lib/node_modules/next/dist/client/components/navigation.mjs.map +0 -1
  315. package/dist/lib/node_modules/next/dist/client/components/not-found.mjs +0 -2
  316. package/dist/lib/node_modules/next/dist/client/components/not-found.mjs.map +0 -1
  317. package/dist/lib/node_modules/next/dist/client/components/redirect-status-code.mjs +0 -2
  318. package/dist/lib/node_modules/next/dist/client/components/redirect-status-code.mjs.map +0 -1
  319. package/dist/lib/node_modules/next/dist/client/components/redirect.mjs +0 -2
  320. package/dist/lib/node_modules/next/dist/client/components/redirect.mjs.map +0 -1
  321. package/dist/lib/node_modules/next/dist/client/components/request-async-storage.external.mjs +0 -2
  322. package/dist/lib/node_modules/next/dist/client/components/request-async-storage.external.mjs.map +0 -1
  323. package/dist/lib/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.mjs +0 -2
  324. package/dist/lib/node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.mjs.map +0 -1
  325. package/dist/lib/node_modules/next/dist/client/components/router-reducer/router-reducer-types.mjs +0 -2
  326. package/dist/lib/node_modules/next/dist/client/components/router-reducer/router-reducer-types.mjs.map +0 -1
  327. package/dist/lib/node_modules/next/dist/client/components/static-generation-async-storage.external.mjs +0 -2
  328. package/dist/lib/node_modules/next/dist/client/components/static-generation-async-storage.external.mjs.map +0 -1
  329. package/dist/lib/node_modules/next/dist/client/detect-domain-locale.mjs +0 -2
  330. package/dist/lib/node_modules/next/dist/client/detect-domain-locale.mjs.map +0 -1
  331. package/dist/lib/node_modules/next/dist/client/get-domain-locale.mjs +0 -2
  332. package/dist/lib/node_modules/next/dist/client/get-domain-locale.mjs.map +0 -1
  333. package/dist/lib/node_modules/next/dist/client/has-base-path.mjs +0 -2
  334. package/dist/lib/node_modules/next/dist/client/has-base-path.mjs.map +0 -1
  335. package/dist/lib/node_modules/next/dist/client/image-component.mjs +0 -2
  336. package/dist/lib/node_modules/next/dist/client/image-component.mjs.map +0 -1
  337. package/dist/lib/node_modules/next/dist/client/link.mjs +0 -2
  338. package/dist/lib/node_modules/next/dist/client/link.mjs.map +0 -1
  339. package/dist/lib/node_modules/next/dist/client/normalize-locale-path.mjs +0 -2
  340. package/dist/lib/node_modules/next/dist/client/normalize-locale-path.mjs.map +0 -1
  341. package/dist/lib/node_modules/next/dist/client/normalize-trailing-slash.mjs +0 -2
  342. package/dist/lib/node_modules/next/dist/client/normalize-trailing-slash.mjs.map +0 -1
  343. package/dist/lib/node_modules/next/dist/client/request-idle-callback.mjs +0 -2
  344. package/dist/lib/node_modules/next/dist/client/request-idle-callback.mjs.map +0 -1
  345. package/dist/lib/node_modules/next/dist/client/resolve-href.mjs +0 -2
  346. package/dist/lib/node_modules/next/dist/client/resolve-href.mjs.map +0 -1
  347. package/dist/lib/node_modules/next/dist/client/use-intersection.mjs +0 -2
  348. package/dist/lib/node_modules/next/dist/client/use-intersection.mjs.map +0 -1
  349. package/dist/lib/node_modules/next/dist/compiled/micromatch/index.mjs +0 -23
  350. package/dist/lib/node_modules/next/dist/compiled/micromatch/index.mjs.map +0 -1
  351. package/dist/lib/node_modules/next/dist/server/future/helpers/interception-routes.mjs +0 -2
  352. package/dist/lib/node_modules/next/dist/server/future/helpers/interception-routes.mjs.map +0 -1
  353. package/dist/lib/node_modules/next/dist/shared/lib/amp-context.shared-runtime.mjs +0 -2
  354. package/dist/lib/node_modules/next/dist/shared/lib/amp-context.shared-runtime.mjs.map +0 -1
  355. package/dist/lib/node_modules/next/dist/shared/lib/amp-mode.mjs +0 -2
  356. package/dist/lib/node_modules/next/dist/shared/lib/amp-mode.mjs.map +0 -1
  357. package/dist/lib/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs +0 -2
  358. package/dist/lib/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.mjs.map +0 -1
  359. package/dist/lib/node_modules/next/dist/shared/lib/escape-regexp.mjs +0 -2
  360. package/dist/lib/node_modules/next/dist/shared/lib/escape-regexp.mjs.map +0 -1
  361. package/dist/lib/node_modules/next/dist/shared/lib/get-img-props.mjs +0 -2
  362. package/dist/lib/node_modules/next/dist/shared/lib/get-img-props.mjs.map +0 -1
  363. package/dist/lib/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.mjs +0 -2
  364. package/dist/lib/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.mjs.map +0 -1
  365. package/dist/lib/node_modules/next/dist/shared/lib/head.mjs +0 -2
  366. package/dist/lib/node_modules/next/dist/shared/lib/head.mjs.map +0 -1
  367. package/dist/lib/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs +0 -2
  368. package/dist/lib/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.mjs.map +0 -1
  369. package/dist/lib/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.mjs +0 -2
  370. package/dist/lib/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.mjs.map +0 -1
  371. package/dist/lib/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.mjs +0 -2
  372. package/dist/lib/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.mjs.map +0 -1
  373. package/dist/lib/node_modules/next/dist/shared/lib/image-blur-svg.mjs +0 -2
  374. package/dist/lib/node_modules/next/dist/shared/lib/image-blur-svg.mjs.map +0 -1
  375. package/dist/lib/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.mjs +0 -2
  376. package/dist/lib/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.mjs.map +0 -1
  377. package/dist/lib/node_modules/next/dist/shared/lib/image-config.mjs +0 -2
  378. package/dist/lib/node_modules/next/dist/shared/lib/image-config.mjs.map +0 -1
  379. package/dist/lib/node_modules/next/dist/shared/lib/image-external.mjs +0 -2
  380. package/dist/lib/node_modules/next/dist/shared/lib/image-external.mjs.map +0 -1
  381. package/dist/lib/node_modules/next/dist/shared/lib/image-loader.mjs +0 -2
  382. package/dist/lib/node_modules/next/dist/shared/lib/image-loader.mjs.map +0 -1
  383. package/dist/lib/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs +0 -2
  384. package/dist/lib/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.mjs.map +0 -1
  385. package/dist/lib/node_modules/next/dist/shared/lib/match-remote-pattern.mjs +0 -2
  386. package/dist/lib/node_modules/next/dist/shared/lib/match-remote-pattern.mjs.map +0 -1
  387. package/dist/lib/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.mjs +0 -2
  388. package/dist/lib/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.mjs.map +0 -1
  389. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/add-locale.mjs +0 -2
  390. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/add-locale.mjs.map +0 -1
  391. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.mjs +0 -2
  392. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.mjs.map +0 -1
  393. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/app-paths.mjs +0 -2
  394. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/app-paths.mjs.map +0 -1
  395. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/format-url.mjs +0 -2
  396. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/format-url.mjs.map +0 -1
  397. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/index.mjs +0 -2
  398. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/index.mjs.map +0 -1
  399. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/interpolate-as.mjs +0 -2
  400. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/interpolate-as.mjs.map +0 -1
  401. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/is-dynamic.mjs +0 -2
  402. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/is-dynamic.mjs.map +0 -1
  403. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/is-local-url.mjs +0 -2
  404. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/is-local-url.mjs.map +0 -1
  405. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/omit.mjs +0 -2
  406. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/omit.mjs.map +0 -1
  407. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/parse-path.mjs +0 -2
  408. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/parse-path.mjs.map +0 -1
  409. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.mjs +0 -2
  410. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.mjs.map +0 -1
  411. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/querystring.mjs +0 -2
  412. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/querystring.mjs.map +0 -1
  413. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.mjs +0 -2
  414. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.mjs.map +0 -1
  415. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/route-matcher.mjs +0 -2
  416. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/route-matcher.mjs.map +0 -1
  417. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/route-regex.mjs +0 -2
  418. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/route-regex.mjs.map +0 -1
  419. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/sorted-routes.mjs +0 -2
  420. package/dist/lib/node_modules/next/dist/shared/lib/router/utils/sorted-routes.mjs.map +0 -1
  421. package/dist/lib/node_modules/next/dist/shared/lib/router-context.shared-runtime.mjs +0 -2
  422. package/dist/lib/node_modules/next/dist/shared/lib/router-context.shared-runtime.mjs.map +0 -1
  423. package/dist/lib/node_modules/next/dist/shared/lib/segment.mjs +0 -2
  424. package/dist/lib/node_modules/next/dist/shared/lib/segment.mjs.map +0 -1
  425. package/dist/lib/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs +0 -2
  426. package/dist/lib/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.mjs.map +0 -1
  427. package/dist/lib/node_modules/next/dist/shared/lib/side-effect.mjs +0 -2
  428. package/dist/lib/node_modules/next/dist/shared/lib/side-effect.mjs.map +0 -1
  429. package/dist/lib/node_modules/next/dist/shared/lib/utils/warn-once.mjs +0 -2
  430. package/dist/lib/node_modules/next/dist/shared/lib/utils/warn-once.mjs.map +0 -1
  431. package/dist/lib/node_modules/next/dist/shared/lib/utils.mjs +0 -2
  432. package/dist/lib/node_modules/next/dist/shared/lib/utils.mjs.map +0 -1
  433. package/dist/lib/node_modules/next/image.mjs +0 -2
  434. package/dist/lib/node_modules/next/image.mjs.map +0 -1
  435. package/dist/lib/node_modules/next/link.mjs +0 -2
  436. package/dist/lib/node_modules/next/link.mjs.map +0 -1
  437. package/dist/lib/node_modules/next/navigation.mjs +0 -2
  438. package/dist/lib/node_modules/next/navigation.mjs.map +0 -1
  439. package/dist/lib/node_modules/orderedmap/dist/index.mjs +0 -2
  440. package/dist/lib/node_modules/orderedmap/dist/index.mjs.map +0 -1
  441. package/dist/lib/node_modules/orderedmap/dist/index2.mjs +0 -2
  442. package/dist/lib/node_modules/orderedmap/dist/index2.mjs.map +0 -1
  443. package/dist/lib/node_modules/prosemirror-commands/dist/index.mjs +0 -2
  444. package/dist/lib/node_modules/prosemirror-commands/dist/index.mjs.map +0 -1
  445. package/dist/lib/node_modules/prosemirror-history/dist/index.mjs +0 -2
  446. package/dist/lib/node_modules/prosemirror-history/dist/index.mjs.map +0 -1
  447. package/dist/lib/node_modules/prosemirror-inputrules/dist/index.mjs +0 -2
  448. package/dist/lib/node_modules/prosemirror-inputrules/dist/index.mjs.map +0 -1
  449. package/dist/lib/node_modules/prosemirror-inputrules/dist/index2.mjs +0 -2
  450. package/dist/lib/node_modules/prosemirror-inputrules/dist/index2.mjs.map +0 -1
  451. package/dist/lib/node_modules/prosemirror-keymap/dist/index.mjs +0 -2
  452. package/dist/lib/node_modules/prosemirror-keymap/dist/index.mjs.map +0 -1
  453. package/dist/lib/node_modules/prosemirror-keymap/dist/index2.mjs +0 -2
  454. package/dist/lib/node_modules/prosemirror-keymap/dist/index2.mjs.map +0 -1
  455. package/dist/lib/node_modules/prosemirror-model/dist/index.mjs +0 -2
  456. package/dist/lib/node_modules/prosemirror-model/dist/index.mjs.map +0 -1
  457. package/dist/lib/node_modules/prosemirror-model/dist/index2.mjs +0 -2
  458. package/dist/lib/node_modules/prosemirror-model/dist/index2.mjs.map +0 -1
  459. package/dist/lib/node_modules/prosemirror-state/dist/index.mjs +0 -2
  460. package/dist/lib/node_modules/prosemirror-state/dist/index.mjs.map +0 -1
  461. package/dist/lib/node_modules/prosemirror-state/dist/index2.mjs +0 -2
  462. package/dist/lib/node_modules/prosemirror-state/dist/index2.mjs.map +0 -1
  463. package/dist/lib/node_modules/prosemirror-transform/dist/index.mjs +0 -2
  464. package/dist/lib/node_modules/prosemirror-transform/dist/index.mjs.map +0 -1
  465. package/dist/lib/node_modules/prosemirror-transform/dist/index2.mjs +0 -2
  466. package/dist/lib/node_modules/prosemirror-transform/dist/index2.mjs.map +0 -1
  467. package/dist/lib/node_modules/prosemirror-view/dist/index.mjs +0 -2
  468. package/dist/lib/node_modules/prosemirror-view/dist/index.mjs.map +0 -1
  469. package/dist/lib/node_modules/prosemirror-view/dist/index2.mjs +0 -2
  470. package/dist/lib/node_modules/prosemirror-view/dist/index2.mjs.map +0 -1
  471. package/dist/lib/node_modules/rope-sequence/dist/index.mjs +0 -2
  472. package/dist/lib/node_modules/rope-sequence/dist/index.mjs.map +0 -1
  473. package/dist/lib/node_modules/tui-color-picker/dist/tui-color-picker.mjs +0 -10
  474. package/dist/lib/node_modules/tui-color-picker/dist/tui-color-picker.mjs.map +0 -1
  475. package/dist/lib/node_modules/w3c-keyname/index.mjs +0 -2
  476. package/dist/lib/node_modules/w3c-keyname/index.mjs.map +0 -1
  477. package/dist/lib/node_modules/w3c-keyname/index2.mjs +0 -2
  478. package/dist/lib/node_modules/w3c-keyname/index2.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"index2.mjs","sources":["../../../../../node_modules/prosemirror-transform/dist/index.cjs"],"sourcesContent":["'use strict';\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\nfunction _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; } catch (e) { return typeof fn === \"function\"; } }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar prosemirrorModel = require('prosemirror-model');\nvar lower16 = 0xffff;\nvar factor16 = Math.pow(2, 16);\nfunction makeRecover(index, offset) {\n return index + offset * factor16;\n}\nfunction recoverIndex(value) {\n return value & lower16;\n}\nfunction recoverOffset(value) {\n return (value - (value & lower16)) / factor16;\n}\nvar DEL_BEFORE = 1,\n DEL_AFTER = 2,\n DEL_ACROSS = 4,\n DEL_SIDE = 8;\nvar MapResult = function () {\n function MapResult(pos, delInfo, recover) {\n _classCallCheck(this, MapResult);\n this.pos = pos;\n this.delInfo = delInfo;\n this.recover = recover;\n }\n _createClass(MapResult, [{\n key: \"deleted\",\n get: function get() {\n return (this.delInfo & DEL_SIDE) > 0;\n }\n }, {\n key: \"deletedBefore\",\n get: function get() {\n return (this.delInfo & (DEL_BEFORE | DEL_ACROSS)) > 0;\n }\n }, {\n key: \"deletedAfter\",\n get: function get() {\n return (this.delInfo & (DEL_AFTER | DEL_ACROSS)) > 0;\n }\n }, {\n key: \"deletedAcross\",\n get: function get() {\n return (this.delInfo & DEL_ACROSS) > 0;\n }\n }]);\n return MapResult;\n}();\nvar StepMap = function () {\n function StepMap(ranges) {\n var inverted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n _classCallCheck(this, StepMap);\n this.ranges = ranges;\n this.inverted = inverted;\n if (!ranges.length && StepMap.empty) return StepMap.empty;\n }\n _createClass(StepMap, [{\n key: \"recover\",\n value: function recover(value) {\n var diff = 0,\n index = recoverIndex(value);\n if (!this.inverted) for (var i = 0; i < index; i++) diff += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];\n return this.ranges[index * 3] + diff + recoverOffset(value);\n }\n }, {\n key: \"mapResult\",\n value: function mapResult(pos) {\n var assoc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return this._map(pos, assoc, false);\n }\n }, {\n key: \"map\",\n value: function map(pos) {\n var assoc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return this._map(pos, assoc, true);\n }\n }, {\n key: \"_map\",\n value: function _map(pos, assoc, simple) {\n var diff = 0,\n oldIndex = this.inverted ? 2 : 1,\n newIndex = this.inverted ? 1 : 2;\n for (var i = 0; i < this.ranges.length; i += 3) {\n var start = this.ranges[i] - (this.inverted ? diff : 0);\n if (start > pos) break;\n var oldSize = this.ranges[i + oldIndex],\n newSize = this.ranges[i + newIndex],\n end = start + oldSize;\n if (pos <= end) {\n var side = !oldSize ? assoc : pos == start ? -1 : pos == end ? 1 : assoc;\n var result = start + diff + (side < 0 ? 0 : newSize);\n if (simple) return result;\n var recover = pos == (assoc < 0 ? start : end) ? null : makeRecover(i / 3, pos - start);\n var del = pos == start ? DEL_AFTER : pos == end ? DEL_BEFORE : DEL_ACROSS;\n if (assoc < 0 ? pos != start : pos != end) del |= DEL_SIDE;\n return new MapResult(result, del, recover);\n }\n diff += newSize - oldSize;\n }\n return simple ? pos + diff : new MapResult(pos + diff, 0, null);\n }\n }, {\n key: \"touches\",\n value: function touches(pos, recover) {\n var diff = 0,\n index = recoverIndex(recover);\n var oldIndex = this.inverted ? 2 : 1,\n newIndex = this.inverted ? 1 : 2;\n for (var i = 0; i < this.ranges.length; i += 3) {\n var start = this.ranges[i] - (this.inverted ? diff : 0);\n if (start > pos) break;\n var oldSize = this.ranges[i + oldIndex],\n end = start + oldSize;\n if (pos <= end && i == index * 3) return true;\n diff += this.ranges[i + newIndex] - oldSize;\n }\n return false;\n }\n }, {\n key: \"forEach\",\n value: function forEach(f) {\n var oldIndex = this.inverted ? 2 : 1,\n newIndex = this.inverted ? 1 : 2;\n for (var i = 0, diff = 0; i < this.ranges.length; i += 3) {\n var start = this.ranges[i],\n oldStart = start - (this.inverted ? diff : 0),\n newStart = start + (this.inverted ? 0 : diff);\n var oldSize = this.ranges[i + oldIndex],\n newSize = this.ranges[i + newIndex];\n f(oldStart, oldStart + oldSize, newStart, newStart + newSize);\n diff += newSize - oldSize;\n }\n }\n }, {\n key: \"invert\",\n value: function invert() {\n return new StepMap(this.ranges, !this.inverted);\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return (this.inverted ? \"-\" : \"\") + JSON.stringify(this.ranges);\n }\n }], [{\n key: \"offset\",\n value: function offset(n) {\n return n == 0 ? StepMap.empty : new StepMap(n < 0 ? [0, -n, 0] : [0, 0, n]);\n }\n }]);\n return StepMap;\n}();\nStepMap.empty = new StepMap([]);\nvar Mapping = function () {\n function Mapping() {\n var maps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var mirror = arguments.length > 1 ? arguments[1] : undefined;\n var from = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var to = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : maps.length;\n _classCallCheck(this, Mapping);\n this.maps = maps;\n this.mirror = mirror;\n this.from = from;\n this.to = to;\n }\n _createClass(Mapping, [{\n key: \"slice\",\n value: function slice() {\n var from = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var to = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.maps.length;\n return new Mapping(this.maps, this.mirror, from, to);\n }\n }, {\n key: \"copy\",\n value: function copy() {\n return new Mapping(this.maps.slice(), this.mirror && this.mirror.slice(), this.from, this.to);\n }\n }, {\n key: \"appendMap\",\n value: function appendMap(map, mirrors) {\n this.to = this.maps.push(map);\n if (mirrors != null) this.setMirror(this.maps.length - 1, mirrors);\n }\n }, {\n key: \"appendMapping\",\n value: function appendMapping(mapping) {\n for (var i = 0, startSize = this.maps.length; i < mapping.maps.length; i++) {\n var mirr = mapping.getMirror(i);\n this.appendMap(mapping.maps[i], mirr != null && mirr < i ? startSize + mirr : undefined);\n }\n }\n }, {\n key: \"getMirror\",\n value: function getMirror(n) {\n if (this.mirror) for (var i = 0; i < this.mirror.length; i++) if (this.mirror[i] == n) return this.mirror[i + (i % 2 ? -1 : 1)];\n }\n }, {\n key: \"setMirror\",\n value: function setMirror(n, m) {\n if (!this.mirror) this.mirror = [];\n this.mirror.push(n, m);\n }\n }, {\n key: \"appendMappingInverted\",\n value: function appendMappingInverted(mapping) {\n for (var i = mapping.maps.length - 1, totalSize = this.maps.length + mapping.maps.length; i >= 0; i--) {\n var mirr = mapping.getMirror(i);\n this.appendMap(mapping.maps[i].invert(), mirr != null && mirr > i ? totalSize - mirr - 1 : undefined);\n }\n }\n }, {\n key: \"invert\",\n value: function invert() {\n var inverse = new Mapping();\n inverse.appendMappingInverted(this);\n return inverse;\n }\n }, {\n key: \"map\",\n value: function map(pos) {\n var assoc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n if (this.mirror) return this._map(pos, assoc, true);\n for (var i = this.from; i < this.to; i++) pos = this.maps[i].map(pos, assoc);\n return pos;\n }\n }, {\n key: \"mapResult\",\n value: function mapResult(pos) {\n var assoc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return this._map(pos, assoc, false);\n }\n }, {\n key: \"_map\",\n value: function _map(pos, assoc, simple) {\n var delInfo = 0;\n for (var i = this.from; i < this.to; i++) {\n var map = this.maps[i],\n result = map.mapResult(pos, assoc);\n if (result.recover != null) {\n var corr = this.getMirror(i);\n if (corr != null && corr > i && corr < this.to) {\n i = corr;\n pos = this.maps[corr].recover(result.recover);\n continue;\n }\n }\n delInfo |= result.delInfo;\n pos = result.pos;\n }\n return simple ? pos : new MapResult(pos, delInfo, null);\n }\n }]);\n return Mapping;\n}();\nvar stepsByID = Object.create(null);\nvar Step = function () {\n function Step() {\n _classCallCheck(this, Step);\n }\n _createClass(Step, [{\n key: \"getMap\",\n value: function getMap() {\n return StepMap.empty;\n }\n }, {\n key: \"merge\",\n value: function merge(other) {\n return null;\n }\n }], [{\n key: \"fromJSON\",\n value: function fromJSON(schema, json) {\n if (!json || !json.stepType) throw new RangeError(\"Invalid input for Step.fromJSON\");\n var type = stepsByID[json.stepType];\n if (!type) throw new RangeError(\"No step type \".concat(json.stepType, \" defined\"));\n return type.fromJSON(schema, json);\n }\n }, {\n key: \"jsonID\",\n value: function jsonID(id, stepClass) {\n if (id in stepsByID) throw new RangeError(\"Duplicate use of step JSON ID \" + id);\n stepsByID[id] = stepClass;\n stepClass.prototype.jsonID = id;\n return stepClass;\n }\n }]);\n return Step;\n}();\nvar StepResult = function () {\n function StepResult(doc, failed) {\n _classCallCheck(this, StepResult);\n this.doc = doc;\n this.failed = failed;\n }\n _createClass(StepResult, null, [{\n key: \"ok\",\n value: function ok(doc) {\n return new StepResult(doc, null);\n }\n }, {\n key: \"fail\",\n value: function fail(message) {\n return new StepResult(null, message);\n }\n }, {\n key: \"fromReplace\",\n value: function fromReplace(doc, from, to, slice) {\n try {\n return StepResult.ok(doc.replace(from, to, slice));\n } catch (e) {\n if (e instanceof prosemirrorModel.ReplaceError) return StepResult.fail(e.message);\n throw e;\n }\n }\n }]);\n return StepResult;\n}();\nfunction mapFragment(fragment, f, parent) {\n var mapped = [];\n for (var i = 0; i < fragment.childCount; i++) {\n var child = fragment.child(i);\n if (child.content.size) child = child.copy(mapFragment(child.content, f, child));\n if (child.isInline) child = f(child, parent, i);\n mapped.push(child);\n }\n return prosemirrorModel.Fragment.fromArray(mapped);\n}\nvar AddMarkStep = function (_Step) {\n _inherits(AddMarkStep, _Step);\n var _super = _createSuper(AddMarkStep);\n function AddMarkStep(from, to, mark) {\n var _this;\n _classCallCheck(this, AddMarkStep);\n _this = _super.call(this);\n _this.from = from;\n _this.to = to;\n _this.mark = mark;\n return _this;\n }\n _createClass(AddMarkStep, [{\n key: \"apply\",\n value: function apply(doc) {\n var _this2 = this;\n var oldSlice = doc.slice(this.from, this.to),\n $from = doc.resolve(this.from);\n var parent = $from.node($from.sharedDepth(this.to));\n var slice = new prosemirrorModel.Slice(mapFragment(oldSlice.content, function (node, parent) {\n if (!node.isAtom || !parent.type.allowsMarkType(_this2.mark.type)) return node;\n return node.mark(_this2.mark.addToSet(node.marks));\n }, parent), oldSlice.openStart, oldSlice.openEnd);\n return StepResult.fromReplace(doc, this.from, this.to, slice);\n }\n }, {\n key: \"invert\",\n value: function invert() {\n return new RemoveMarkStep(this.from, this.to, this.mark);\n }\n }, {\n key: \"map\",\n value: function map(mapping) {\n var from = mapping.mapResult(this.from, 1),\n to = mapping.mapResult(this.to, -1);\n if (from.deleted && to.deleted || from.pos >= to.pos) return null;\n return new AddMarkStep(from.pos, to.pos, this.mark);\n }\n }, {\n key: \"merge\",\n value: function merge(other) {\n if (other instanceof AddMarkStep && other.mark.eq(this.mark) && this.from <= other.to && this.to >= other.from) return new AddMarkStep(Math.min(this.from, other.from), Math.max(this.to, other.to), this.mark);\n return null;\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return {\n stepType: \"addMark\",\n mark: this.mark.toJSON(),\n from: this.from,\n to: this.to\n };\n }\n }], [{\n key: \"fromJSON\",\n value: function fromJSON(schema, json) {\n if (typeof json.from != \"number\" || typeof json.to != \"number\") throw new RangeError(\"Invalid input for AddMarkStep.fromJSON\");\n return new AddMarkStep(json.from, json.to, schema.markFromJSON(json.mark));\n }\n }]);\n return AddMarkStep;\n}(Step);\nStep.jsonID(\"addMark\", AddMarkStep);\nvar RemoveMarkStep = function (_Step2) {\n _inherits(RemoveMarkStep, _Step2);\n var _super2 = _createSuper(RemoveMarkStep);\n function RemoveMarkStep(from, to, mark) {\n var _this3;\n _classCallCheck(this, RemoveMarkStep);\n _this3 = _super2.call(this);\n _this3.from = from;\n _this3.to = to;\n _this3.mark = mark;\n return _this3;\n }\n _createClass(RemoveMarkStep, [{\n key: \"apply\",\n value: function apply(doc) {\n var _this4 = this;\n var oldSlice = doc.slice(this.from, this.to);\n var slice = new prosemirrorModel.Slice(mapFragment(oldSlice.content, function (node) {\n return node.mark(_this4.mark.removeFromSet(node.marks));\n }, doc), oldSlice.openStart, oldSlice.openEnd);\n return StepResult.fromReplace(doc, this.from, this.to, slice);\n }\n }, {\n key: \"invert\",\n value: function invert() {\n return new AddMarkStep(this.from, this.to, this.mark);\n }\n }, {\n key: \"map\",\n value: function map(mapping) {\n var from = mapping.mapResult(this.from, 1),\n to = mapping.mapResult(this.to, -1);\n if (from.deleted && to.deleted || from.pos >= to.pos) return null;\n return new RemoveMarkStep(from.pos, to.pos, this.mark);\n }\n }, {\n key: \"merge\",\n value: function merge(other) {\n if (other instanceof RemoveMarkStep && other.mark.eq(this.mark) && this.from <= other.to && this.to >= other.from) return new RemoveMarkStep(Math.min(this.from, other.from), Math.max(this.to, other.to), this.mark);\n return null;\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return {\n stepType: \"removeMark\",\n mark: this.mark.toJSON(),\n from: this.from,\n to: this.to\n };\n }\n }], [{\n key: \"fromJSON\",\n value: function fromJSON(schema, json) {\n if (typeof json.from != \"number\" || typeof json.to != \"number\") throw new RangeError(\"Invalid input for RemoveMarkStep.fromJSON\");\n return new RemoveMarkStep(json.from, json.to, schema.markFromJSON(json.mark));\n }\n }]);\n return RemoveMarkStep;\n}(Step);\nStep.jsonID(\"removeMark\", RemoveMarkStep);\nvar AddNodeMarkStep = function (_Step3) {\n _inherits(AddNodeMarkStep, _Step3);\n var _super3 = _createSuper(AddNodeMarkStep);\n function AddNodeMarkStep(pos, mark) {\n var _this5;\n _classCallCheck(this, AddNodeMarkStep);\n _this5 = _super3.call(this);\n _this5.pos = pos;\n _this5.mark = mark;\n return _this5;\n }\n _createClass(AddNodeMarkStep, [{\n key: \"apply\",\n value: function apply(doc) {\n var node = doc.nodeAt(this.pos);\n if (!node) return StepResult.fail(\"No node at mark step's position\");\n var updated = node.type.create(node.attrs, null, this.mark.addToSet(node.marks));\n return StepResult.fromReplace(doc, this.pos, this.pos + 1, new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(updated), 0, node.isLeaf ? 0 : 1));\n }\n }, {\n key: \"invert\",\n value: function invert(doc) {\n var node = doc.nodeAt(this.pos);\n if (node) {\n var newSet = this.mark.addToSet(node.marks);\n if (newSet.length == node.marks.length) {\n for (var i = 0; i < node.marks.length; i++) if (!node.marks[i].isInSet(newSet)) return new AddNodeMarkStep(this.pos, node.marks[i]);\n return new AddNodeMarkStep(this.pos, this.mark);\n }\n }\n return new RemoveNodeMarkStep(this.pos, this.mark);\n }\n }, {\n key: \"map\",\n value: function map(mapping) {\n var pos = mapping.mapResult(this.pos, 1);\n return pos.deletedAfter ? null : new AddNodeMarkStep(pos.pos, this.mark);\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return {\n stepType: \"addNodeMark\",\n pos: this.pos,\n mark: this.mark.toJSON()\n };\n }\n }], [{\n key: \"fromJSON\",\n value: function fromJSON(schema, json) {\n if (typeof json.pos != \"number\") throw new RangeError(\"Invalid input for AddNodeMarkStep.fromJSON\");\n return new AddNodeMarkStep(json.pos, schema.markFromJSON(json.mark));\n }\n }]);\n return AddNodeMarkStep;\n}(Step);\nStep.jsonID(\"addNodeMark\", AddNodeMarkStep);\nvar RemoveNodeMarkStep = function (_Step4) {\n _inherits(RemoveNodeMarkStep, _Step4);\n var _super4 = _createSuper(RemoveNodeMarkStep);\n function RemoveNodeMarkStep(pos, mark) {\n var _this6;\n _classCallCheck(this, RemoveNodeMarkStep);\n _this6 = _super4.call(this);\n _this6.pos = pos;\n _this6.mark = mark;\n return _this6;\n }\n _createClass(RemoveNodeMarkStep, [{\n key: \"apply\",\n value: function apply(doc) {\n var node = doc.nodeAt(this.pos);\n if (!node) return StepResult.fail(\"No node at mark step's position\");\n var updated = node.type.create(node.attrs, null, this.mark.removeFromSet(node.marks));\n return StepResult.fromReplace(doc, this.pos, this.pos + 1, new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(updated), 0, node.isLeaf ? 0 : 1));\n }\n }, {\n key: \"invert\",\n value: function invert(doc) {\n var node = doc.nodeAt(this.pos);\n if (!node || !this.mark.isInSet(node.marks)) return this;\n return new AddNodeMarkStep(this.pos, this.mark);\n }\n }, {\n key: \"map\",\n value: function map(mapping) {\n var pos = mapping.mapResult(this.pos, 1);\n return pos.deletedAfter ? null : new RemoveNodeMarkStep(pos.pos, this.mark);\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return {\n stepType: \"removeNodeMark\",\n pos: this.pos,\n mark: this.mark.toJSON()\n };\n }\n }], [{\n key: \"fromJSON\",\n value: function fromJSON(schema, json) {\n if (typeof json.pos != \"number\") throw new RangeError(\"Invalid input for RemoveNodeMarkStep.fromJSON\");\n return new RemoveNodeMarkStep(json.pos, schema.markFromJSON(json.mark));\n }\n }]);\n return RemoveNodeMarkStep;\n}(Step);\nStep.jsonID(\"removeNodeMark\", RemoveNodeMarkStep);\nvar ReplaceStep = function (_Step5) {\n _inherits(ReplaceStep, _Step5);\n var _super5 = _createSuper(ReplaceStep);\n function ReplaceStep(from, to, slice) {\n var _this7;\n var structure = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n _classCallCheck(this, ReplaceStep);\n _this7 = _super5.call(this);\n _this7.from = from;\n _this7.to = to;\n _this7.slice = slice;\n _this7.structure = structure;\n return _this7;\n }\n _createClass(ReplaceStep, [{\n key: \"apply\",\n value: function apply(doc) {\n if (this.structure && contentBetween(doc, this.from, this.to)) return StepResult.fail(\"Structure replace would overwrite content\");\n return StepResult.fromReplace(doc, this.from, this.to, this.slice);\n }\n }, {\n key: \"getMap\",\n value: function getMap() {\n return new StepMap([this.from, this.to - this.from, this.slice.size]);\n }\n }, {\n key: \"invert\",\n value: function invert(doc) {\n return new ReplaceStep(this.from, this.from + this.slice.size, doc.slice(this.from, this.to));\n }\n }, {\n key: \"map\",\n value: function map(mapping) {\n var from = mapping.mapResult(this.from, 1),\n to = mapping.mapResult(this.to, -1);\n if (from.deletedAcross && to.deletedAcross) return null;\n return new ReplaceStep(from.pos, Math.max(from.pos, to.pos), this.slice);\n }\n }, {\n key: \"merge\",\n value: function merge(other) {\n if (!(other instanceof ReplaceStep) || other.structure || this.structure) return null;\n if (this.from + this.slice.size == other.from && !this.slice.openEnd && !other.slice.openStart) {\n var slice = this.slice.size + other.slice.size == 0 ? prosemirrorModel.Slice.empty : new prosemirrorModel.Slice(this.slice.content.append(other.slice.content), this.slice.openStart, other.slice.openEnd);\n return new ReplaceStep(this.from, this.to + (other.to - other.from), slice, this.structure);\n } else if (other.to == this.from && !this.slice.openStart && !other.slice.openEnd) {\n var _slice = this.slice.size + other.slice.size == 0 ? prosemirrorModel.Slice.empty : new prosemirrorModel.Slice(other.slice.content.append(this.slice.content), other.slice.openStart, this.slice.openEnd);\n return new ReplaceStep(other.from, this.to, _slice, this.structure);\n } else {\n return null;\n }\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n var json = {\n stepType: \"replace\",\n from: this.from,\n to: this.to\n };\n if (this.slice.size) json.slice = this.slice.toJSON();\n if (this.structure) json.structure = true;\n return json;\n }\n }], [{\n key: \"fromJSON\",\n value: function fromJSON(schema, json) {\n if (typeof json.from != \"number\" || typeof json.to != \"number\") throw new RangeError(\"Invalid input for ReplaceStep.fromJSON\");\n return new ReplaceStep(json.from, json.to, prosemirrorModel.Slice.fromJSON(schema, json.slice), !!json.structure);\n }\n }]);\n return ReplaceStep;\n}(Step);\nStep.jsonID(\"replace\", ReplaceStep);\nvar ReplaceAroundStep = function (_Step6) {\n _inherits(ReplaceAroundStep, _Step6);\n var _super6 = _createSuper(ReplaceAroundStep);\n function ReplaceAroundStep(from, to, gapFrom, gapTo, slice, insert) {\n var _this8;\n var structure = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;\n _classCallCheck(this, ReplaceAroundStep);\n _this8 = _super6.call(this);\n _this8.from = from;\n _this8.to = to;\n _this8.gapFrom = gapFrom;\n _this8.gapTo = gapTo;\n _this8.slice = slice;\n _this8.insert = insert;\n _this8.structure = structure;\n return _this8;\n }\n _createClass(ReplaceAroundStep, [{\n key: \"apply\",\n value: function apply(doc) {\n if (this.structure && (contentBetween(doc, this.from, this.gapFrom) || contentBetween(doc, this.gapTo, this.to))) return StepResult.fail(\"Structure gap-replace would overwrite content\");\n var gap = doc.slice(this.gapFrom, this.gapTo);\n if (gap.openStart || gap.openEnd) return StepResult.fail(\"Gap is not a flat range\");\n var inserted = this.slice.insertAt(this.insert, gap.content);\n if (!inserted) return StepResult.fail(\"Content does not fit in gap\");\n return StepResult.fromReplace(doc, this.from, this.to, inserted);\n }\n }, {\n key: \"getMap\",\n value: function getMap() {\n return new StepMap([this.from, this.gapFrom - this.from, this.insert, this.gapTo, this.to - this.gapTo, this.slice.size - this.insert]);\n }\n }, {\n key: \"invert\",\n value: function invert(doc) {\n var gap = this.gapTo - this.gapFrom;\n return new ReplaceAroundStep(this.from, this.from + this.slice.size + gap, this.from + this.insert, this.from + this.insert + gap, doc.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);\n }\n }, {\n key: \"map\",\n value: function map(mapping) {\n var from = mapping.mapResult(this.from, 1),\n to = mapping.mapResult(this.to, -1);\n var gapFrom = this.from == this.gapFrom ? from.pos : mapping.map(this.gapFrom, -1);\n var gapTo = this.to == this.gapTo ? to.pos : mapping.map(this.gapTo, 1);\n if (from.deletedAcross && to.deletedAcross || gapFrom < from.pos || gapTo > to.pos) return null;\n return new ReplaceAroundStep(from.pos, to.pos, gapFrom, gapTo, this.slice, this.insert, this.structure);\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n var json = {\n stepType: \"replaceAround\",\n from: this.from,\n to: this.to,\n gapFrom: this.gapFrom,\n gapTo: this.gapTo,\n insert: this.insert\n };\n if (this.slice.size) json.slice = this.slice.toJSON();\n if (this.structure) json.structure = true;\n return json;\n }\n }], [{\n key: \"fromJSON\",\n value: function fromJSON(schema, json) {\n if (typeof json.from != \"number\" || typeof json.to != \"number\" || typeof json.gapFrom != \"number\" || typeof json.gapTo != \"number\" || typeof json.insert != \"number\") throw new RangeError(\"Invalid input for ReplaceAroundStep.fromJSON\");\n return new ReplaceAroundStep(json.from, json.to, json.gapFrom, json.gapTo, prosemirrorModel.Slice.fromJSON(schema, json.slice), json.insert, !!json.structure);\n }\n }]);\n return ReplaceAroundStep;\n}(Step);\nStep.jsonID(\"replaceAround\", ReplaceAroundStep);\nfunction contentBetween(doc, from, to) {\n var $from = doc.resolve(from),\n dist = to - from,\n depth = $from.depth;\n while (dist > 0 && depth > 0 && $from.indexAfter(depth) == $from.node(depth).childCount) {\n depth--;\n dist--;\n }\n if (dist > 0) {\n var next = $from.node(depth).maybeChild($from.indexAfter(depth));\n while (dist > 0) {\n if (!next || next.isLeaf) return true;\n next = next.firstChild;\n dist--;\n }\n }\n return false;\n}\nfunction _addMark(tr, from, to, mark) {\n var removed = [],\n added = [];\n var removing, adding;\n tr.doc.nodesBetween(from, to, function (node, pos, parent) {\n if (!node.isInline) return;\n var marks = node.marks;\n if (!mark.isInSet(marks) && parent.type.allowsMarkType(mark.type)) {\n var start = Math.max(pos, from),\n end = Math.min(pos + node.nodeSize, to);\n var newSet = mark.addToSet(marks);\n for (var i = 0; i < marks.length; i++) {\n if (!marks[i].isInSet(newSet)) {\n if (removing && removing.to == start && removing.mark.eq(marks[i])) removing.to = end;else removed.push(removing = new RemoveMarkStep(start, end, marks[i]));\n }\n }\n if (adding && adding.to == start) adding.to = end;else added.push(adding = new AddMarkStep(start, end, mark));\n }\n });\n removed.forEach(function (s) {\n return tr.step(s);\n });\n added.forEach(function (s) {\n return tr.step(s);\n });\n}\nfunction _removeMark(tr, from, to, mark) {\n var matched = [],\n step = 0;\n tr.doc.nodesBetween(from, to, function (node, pos) {\n if (!node.isInline) return;\n step++;\n var toRemove = null;\n if (mark instanceof prosemirrorModel.MarkType) {\n var set = node.marks,\n found;\n while (found = mark.isInSet(set)) {\n (toRemove || (toRemove = [])).push(found);\n set = found.removeFromSet(set);\n }\n } else if (mark) {\n if (mark.isInSet(node.marks)) toRemove = [mark];\n } else {\n toRemove = node.marks;\n }\n if (toRemove && toRemove.length) {\n var end = Math.min(pos + node.nodeSize, to);\n for (var i = 0; i < toRemove.length; i++) {\n var style = toRemove[i],\n _found = void 0;\n for (var j = 0; j < matched.length; j++) {\n var m = matched[j];\n if (m.step == step - 1 && style.eq(matched[j].style)) _found = m;\n }\n if (_found) {\n _found.to = end;\n _found.step = step;\n } else {\n matched.push({\n style: style,\n from: Math.max(pos, from),\n to: end,\n step: step\n });\n }\n }\n }\n });\n matched.forEach(function (m) {\n return tr.step(new RemoveMarkStep(m.from, m.to, m.style));\n });\n}\nfunction _clearIncompatible(tr, pos, parentType) {\n var match = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : parentType.contentMatch;\n var clearNewlines = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n var node = tr.doc.nodeAt(pos);\n var replSteps = [],\n cur = pos + 1;\n for (var i = 0; i < node.childCount; i++) {\n var child = node.child(i),\n end = cur + child.nodeSize;\n var allowed = match.matchType(child.type);\n if (!allowed) {\n replSteps.push(new ReplaceStep(cur, end, prosemirrorModel.Slice.empty));\n } else {\n match = allowed;\n for (var j = 0; j < child.marks.length; j++) if (!parentType.allowsMarkType(child.marks[j].type)) tr.step(new RemoveMarkStep(cur, end, child.marks[j]));\n if (clearNewlines && child.isText && parentType.whitespace != \"pre\") {\n var m = void 0,\n newline = /\\r?\\n|\\r/g,\n slice = void 0;\n while (m = newline.exec(child.text)) {\n if (!slice) slice = new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(parentType.schema.text(\" \", parentType.allowedMarks(child.marks))), 0, 0);\n replSteps.push(new ReplaceStep(cur + m.index, cur + m.index + m[0].length, slice));\n }\n }\n }\n cur = end;\n }\n if (!match.validEnd) {\n var fill = match.fillBefore(prosemirrorModel.Fragment.empty, true);\n tr.replace(cur, cur, new prosemirrorModel.Slice(fill, 0, 0));\n }\n for (var _i = replSteps.length - 1; _i >= 0; _i--) tr.step(replSteps[_i]);\n}\nfunction canCut(node, start, end) {\n return (start == 0 || node.canReplace(start, node.childCount)) && (end == node.childCount || node.canReplace(0, end));\n}\nfunction liftTarget(range) {\n var parent = range.parent;\n var content = parent.content.cutByIndex(range.startIndex, range.endIndex);\n for (var depth = range.depth;; --depth) {\n var node = range.$from.node(depth);\n var index = range.$from.index(depth),\n endIndex = range.$to.indexAfter(depth);\n if (depth < range.depth && node.canReplace(index, endIndex, content)) return depth;\n if (depth == 0 || node.type.spec.isolating || !canCut(node, index, endIndex)) break;\n }\n return null;\n}\nfunction _lift(tr, range, target) {\n var $from = range.$from,\n $to = range.$to,\n depth = range.depth;\n var gapStart = $from.before(depth + 1),\n gapEnd = $to.after(depth + 1);\n var start = gapStart,\n end = gapEnd;\n var before = prosemirrorModel.Fragment.empty,\n openStart = 0;\n for (var d = depth, splitting = false; d > target; d--) if (splitting || $from.index(d) > 0) {\n splitting = true;\n before = prosemirrorModel.Fragment.from($from.node(d).copy(before));\n openStart++;\n } else {\n start--;\n }\n var after = prosemirrorModel.Fragment.empty,\n openEnd = 0;\n for (var _d = depth, _splitting = false; _d > target; _d--) if (_splitting || $to.after(_d + 1) < $to.end(_d)) {\n _splitting = true;\n after = prosemirrorModel.Fragment.from($to.node(_d).copy(after));\n openEnd++;\n } else {\n end++;\n }\n tr.step(new ReplaceAroundStep(start, end, gapStart, gapEnd, new prosemirrorModel.Slice(before.append(after), openStart, openEnd), before.size - openStart, true));\n}\nfunction findWrapping(range, nodeType) {\n var attrs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var innerRange = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : range;\n var around = findWrappingOutside(range, nodeType);\n var inner = around && findWrappingInside(innerRange, nodeType);\n if (!inner) return null;\n return around.map(withAttrs).concat({\n type: nodeType,\n attrs: attrs\n }).concat(inner.map(withAttrs));\n}\nfunction withAttrs(type) {\n return {\n type: type,\n attrs: null\n };\n}\nfunction findWrappingOutside(range, type) {\n var parent = range.parent,\n startIndex = range.startIndex,\n endIndex = range.endIndex;\n var around = parent.contentMatchAt(startIndex).findWrapping(type);\n if (!around) return null;\n var outer = around.length ? around[0] : type;\n return parent.canReplaceWith(startIndex, endIndex, outer) ? around : null;\n}\nfunction findWrappingInside(range, type) {\n var parent = range.parent,\n startIndex = range.startIndex,\n endIndex = range.endIndex;\n var inner = parent.child(startIndex);\n var inside = type.contentMatch.findWrapping(inner.type);\n if (!inside) return null;\n var lastType = inside.length ? inside[inside.length - 1] : type;\n var innerMatch = lastType.contentMatch;\n for (var i = startIndex; innerMatch && i < endIndex; i++) innerMatch = innerMatch.matchType(parent.child(i).type);\n if (!innerMatch || !innerMatch.validEnd) return null;\n return inside;\n}\nfunction _wrap2(tr, range, wrappers) {\n var content = prosemirrorModel.Fragment.empty;\n for (var i = wrappers.length - 1; i >= 0; i--) {\n if (content.size) {\n var match = wrappers[i].type.contentMatch.matchFragment(content);\n if (!match || !match.validEnd) throw new RangeError(\"Wrapper type given to Transform.wrap does not form valid content of its parent wrapper\");\n }\n content = prosemirrorModel.Fragment.from(wrappers[i].type.create(wrappers[i].attrs, content));\n }\n var start = range.start,\n end = range.end;\n tr.step(new ReplaceAroundStep(start, end, start, end, new prosemirrorModel.Slice(content, 0, 0), wrappers.length, true));\n}\nfunction _setBlockType(tr, from, to, type, attrs) {\n if (!type.isTextblock) throw new RangeError(\"Type given to setBlockType should be a textblock\");\n var mapFrom = tr.steps.length;\n tr.doc.nodesBetween(from, to, function (node, pos) {\n var attrsHere = typeof attrs == \"function\" ? attrs(node) : attrs;\n if (node.isTextblock && !node.hasMarkup(type, attrsHere) && canChangeType(tr.doc, tr.mapping.slice(mapFrom).map(pos), type)) {\n var convertNewlines = null;\n if (type.schema.linebreakReplacement) {\n var pre = type.whitespace == \"pre\",\n supportLinebreak = !!type.contentMatch.matchType(type.schema.linebreakReplacement);\n if (pre && !supportLinebreak) convertNewlines = false;else if (!pre && supportLinebreak) convertNewlines = true;\n }\n if (convertNewlines === false) replaceLinebreaks(tr, node, pos, mapFrom);\n _clearIncompatible(tr, tr.mapping.slice(mapFrom).map(pos, 1), type, undefined, convertNewlines === null);\n var mapping = tr.mapping.slice(mapFrom);\n var startM = mapping.map(pos, 1),\n endM = mapping.map(pos + node.nodeSize, 1);\n tr.step(new ReplaceAroundStep(startM, endM, startM + 1, endM - 1, new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(type.create(attrsHere, null, node.marks)), 0, 0), 1, true));\n if (convertNewlines === true) replaceNewlines(tr, node, pos, mapFrom);\n return false;\n }\n });\n}\nfunction replaceNewlines(tr, node, pos, mapFrom) {\n node.forEach(function (child, offset) {\n if (child.isText) {\n var m,\n newline = /\\r?\\n|\\r/g;\n while (m = newline.exec(child.text)) {\n var start = tr.mapping.slice(mapFrom).map(pos + 1 + offset + m.index);\n tr.replaceWith(start, start + 1, node.type.schema.linebreakReplacement.create());\n }\n }\n });\n}\nfunction replaceLinebreaks(tr, node, pos, mapFrom) {\n node.forEach(function (child, offset) {\n if (child.type == child.type.schema.linebreakReplacement) {\n var start = tr.mapping.slice(mapFrom).map(pos + 1 + offset);\n tr.replaceWith(start, start + 1, node.type.schema.text(\"\\n\"));\n }\n });\n}\nfunction canChangeType(doc, pos, type) {\n var $pos = doc.resolve(pos),\n index = $pos.index();\n return $pos.parent.canReplaceWith(index, index + 1, type);\n}\nfunction _setNodeMarkup(tr, pos, type, attrs, marks) {\n var node = tr.doc.nodeAt(pos);\n if (!node) throw new RangeError(\"No node at given position\");\n if (!type) type = node.type;\n var newNode = type.create(attrs, null, marks || node.marks);\n if (node.isLeaf) return tr.replaceWith(pos, pos + node.nodeSize, newNode);\n if (!type.validContent(node.content)) throw new RangeError(\"Invalid content for node type \" + type.name);\n tr.step(new ReplaceAroundStep(pos, pos + node.nodeSize, pos + 1, pos + node.nodeSize - 1, new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(newNode), 0, 0), 1, true));\n}\nfunction canSplit(doc, pos) {\n var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var typesAfter = arguments.length > 3 ? arguments[3] : undefined;\n var $pos = doc.resolve(pos),\n base = $pos.depth - depth;\n var innerType = typesAfter && typesAfter[typesAfter.length - 1] || $pos.parent;\n if (base < 0 || $pos.parent.type.spec.isolating || !$pos.parent.canReplace($pos.index(), $pos.parent.childCount) || !innerType.type.validContent($pos.parent.content.cutByIndex($pos.index(), $pos.parent.childCount))) return false;\n for (var d = $pos.depth - 1, i = depth - 2; d > base; d--, i--) {\n var node = $pos.node(d),\n _index = $pos.index(d);\n if (node.type.spec.isolating) return false;\n var rest = node.content.cutByIndex(_index, node.childCount);\n var overrideChild = typesAfter && typesAfter[i + 1];\n if (overrideChild) rest = rest.replaceChild(0, overrideChild.type.create(overrideChild.attrs));\n var after = typesAfter && typesAfter[i] || node;\n if (!node.canReplace(_index + 1, node.childCount) || !after.type.validContent(rest)) return false;\n }\n var index = $pos.indexAfter(base);\n var baseType = typesAfter && typesAfter[0];\n return $pos.node(base).canReplaceWith(index, index, baseType ? baseType.type : $pos.node(base + 1).type);\n}\nfunction _split(tr, pos) {\n var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n var typesAfter = arguments.length > 3 ? arguments[3] : undefined;\n var $pos = tr.doc.resolve(pos),\n before = prosemirrorModel.Fragment.empty,\n after = prosemirrorModel.Fragment.empty;\n for (var d = $pos.depth, e = $pos.depth - depth, i = depth - 1; d > e; d--, i--) {\n before = prosemirrorModel.Fragment.from($pos.node(d).copy(before));\n var typeAfter = typesAfter && typesAfter[i];\n after = prosemirrorModel.Fragment.from(typeAfter ? typeAfter.type.create(typeAfter.attrs, after) : $pos.node(d).copy(after));\n }\n tr.step(new ReplaceStep(pos, pos, new prosemirrorModel.Slice(before.append(after), depth, depth), true));\n}\nfunction canJoin(doc, pos) {\n var $pos = doc.resolve(pos),\n index = $pos.index();\n return joinable($pos.nodeBefore, $pos.nodeAfter) && $pos.parent.canReplace(index, index + 1);\n}\nfunction canAppendWithSubstitutedLinebreaks(a, b) {\n if (!b.content.size) a.type.compatibleContent(b.type);\n var match = a.contentMatchAt(a.childCount);\n var linebreakReplacement = a.type.schema.linebreakReplacement;\n for (var i = 0; i < b.childCount; i++) {\n var child = b.child(i);\n var type = child.type == linebreakReplacement ? a.type.schema.nodes.text : child.type;\n match = match.matchType(type);\n if (!match) return false;\n if (!a.type.allowsMarks(child.marks)) return false;\n }\n return match.validEnd;\n}\nfunction joinable(a, b) {\n return !!(a && b && !a.isLeaf && canAppendWithSubstitutedLinebreaks(a, b));\n}\nfunction joinPoint(doc, pos) {\n var dir = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;\n var $pos = doc.resolve(pos);\n for (var d = $pos.depth;; d--) {\n var before = void 0,\n after = void 0,\n index = $pos.index(d);\n if (d == $pos.depth) {\n before = $pos.nodeBefore;\n after = $pos.nodeAfter;\n } else if (dir > 0) {\n before = $pos.node(d + 1);\n index++;\n after = $pos.node(d).maybeChild(index);\n } else {\n before = $pos.node(d).maybeChild(index - 1);\n after = $pos.node(d + 1);\n }\n if (before && !before.isTextblock && joinable(before, after) && $pos.node(d).canReplace(index, index + 1)) return pos;\n if (d == 0) break;\n pos = dir < 0 ? $pos.before(d) : $pos.after(d);\n }\n}\nfunction _join(tr, pos, depth) {\n var convertNewlines = null;\n var linebreakReplacement = tr.doc.type.schema.linebreakReplacement;\n var $before = tr.doc.resolve(pos - depth),\n beforeType = $before.node().type;\n if (linebreakReplacement && beforeType.inlineContent) {\n var pre = beforeType.whitespace == \"pre\";\n var supportLinebreak = !!beforeType.contentMatch.matchType(linebreakReplacement);\n if (pre && !supportLinebreak) convertNewlines = false;else if (!pre && supportLinebreak) convertNewlines = true;\n }\n var mapFrom = tr.steps.length;\n if (convertNewlines === false) {\n var $after = tr.doc.resolve(pos + depth);\n replaceLinebreaks(tr, $after.node(), $after.before(), mapFrom);\n }\n if (beforeType.inlineContent) _clearIncompatible(tr, pos + depth - 1, beforeType, $before.node().contentMatchAt($before.index()), convertNewlines == null);\n var mapping = tr.mapping.slice(mapFrom),\n start = mapping.map(pos - depth);\n tr.step(new ReplaceStep(start, mapping.map(pos + depth, -1), prosemirrorModel.Slice.empty, true));\n if (convertNewlines === true) {\n var $full = tr.doc.resolve(start);\n replaceNewlines(tr, $full.node(), $full.before(), tr.steps.length);\n }\n return tr;\n}\nfunction insertPoint(doc, pos, nodeType) {\n var $pos = doc.resolve(pos);\n if ($pos.parent.canReplaceWith($pos.index(), $pos.index(), nodeType)) return pos;\n if ($pos.parentOffset == 0) for (var d = $pos.depth - 1; d >= 0; d--) {\n var index = $pos.index(d);\n if ($pos.node(d).canReplaceWith(index, index, nodeType)) return $pos.before(d + 1);\n if (index > 0) return null;\n }\n if ($pos.parentOffset == $pos.parent.content.size) for (var _d2 = $pos.depth - 1; _d2 >= 0; _d2--) {\n var _index2 = $pos.indexAfter(_d2);\n if ($pos.node(_d2).canReplaceWith(_index2, _index2, nodeType)) return $pos.after(_d2 + 1);\n if (_index2 < $pos.node(_d2).childCount) return null;\n }\n return null;\n}\nfunction dropPoint(doc, pos, slice) {\n var $pos = doc.resolve(pos);\n if (!slice.content.size) return pos;\n var content = slice.content;\n for (var i = 0; i < slice.openStart; i++) content = content.firstChild.content;\n for (var pass = 1; pass <= (slice.openStart == 0 && slice.size ? 2 : 1); pass++) {\n for (var d = $pos.depth; d >= 0; d--) {\n var bias = d == $pos.depth ? 0 : $pos.pos <= ($pos.start(d + 1) + $pos.end(d + 1)) / 2 ? -1 : 1;\n var insertPos = $pos.index(d) + (bias > 0 ? 1 : 0);\n var parent = $pos.node(d),\n fits = false;\n if (pass == 1) {\n fits = parent.canReplace(insertPos, insertPos, content);\n } else {\n var wrapping = parent.contentMatchAt(insertPos).findWrapping(content.firstChild.type);\n fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0]);\n }\n if (fits) return bias == 0 ? $pos.pos : bias < 0 ? $pos.before(d + 1) : $pos.after(d + 1);\n }\n }\n return null;\n}\nfunction replaceStep(doc, from) {\n var to = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : from;\n var slice = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : prosemirrorModel.Slice.empty;\n if (from == to && !slice.size) return null;\n var $from = doc.resolve(from),\n $to = doc.resolve(to);\n if (fitsTrivially($from, $to, slice)) return new ReplaceStep(from, to, slice);\n return new Fitter($from, $to, slice).fit();\n}\nfunction fitsTrivially($from, $to, slice) {\n return !slice.openStart && !slice.openEnd && $from.start() == $to.start() && $from.parent.canReplace($from.index(), $to.index(), slice.content);\n}\nvar Fitter = function () {\n function Fitter($from, $to, unplaced) {\n _classCallCheck(this, Fitter);\n this.$from = $from;\n this.$to = $to;\n this.unplaced = unplaced;\n this.frontier = [];\n this.placed = prosemirrorModel.Fragment.empty;\n for (var i = 0; i <= $from.depth; i++) {\n var node = $from.node(i);\n this.frontier.push({\n type: node.type,\n match: node.contentMatchAt($from.indexAfter(i))\n });\n }\n for (var _i2 = $from.depth; _i2 > 0; _i2--) this.placed = prosemirrorModel.Fragment.from($from.node(_i2).copy(this.placed));\n }\n _createClass(Fitter, [{\n key: \"depth\",\n get: function get() {\n return this.frontier.length - 1;\n }\n }, {\n key: \"fit\",\n value: function fit() {\n while (this.unplaced.size) {\n var fit = this.findFittable();\n if (fit) this.placeNodes(fit);else this.openMore() || this.dropNode();\n }\n var moveInline = this.mustMoveInline(),\n placedSize = this.placed.size - this.depth - this.$from.depth;\n var $from = this.$from,\n $to = this.close(moveInline < 0 ? this.$to : $from.doc.resolve(moveInline));\n if (!$to) return null;\n var content = this.placed,\n openStart = $from.depth,\n openEnd = $to.depth;\n while (openStart && openEnd && content.childCount == 1) {\n content = content.firstChild.content;\n openStart--;\n openEnd--;\n }\n var slice = new prosemirrorModel.Slice(content, openStart, openEnd);\n if (moveInline > -1) return new ReplaceAroundStep($from.pos, moveInline, this.$to.pos, this.$to.end(), slice, placedSize);\n if (slice.size || $from.pos != this.$to.pos) return new ReplaceStep($from.pos, $to.pos, slice);\n return null;\n }\n }, {\n key: \"findFittable\",\n value: function findFittable() {\n var startDepth = this.unplaced.openStart;\n for (var cur = this.unplaced.content, d = 0, openEnd = this.unplaced.openEnd; d < startDepth; d++) {\n var node = cur.firstChild;\n if (cur.childCount > 1) openEnd = 0;\n if (node.type.spec.isolating && openEnd <= d) {\n startDepth = d;\n break;\n }\n cur = node.content;\n }\n for (var pass = 1; pass <= 2; pass++) {\n for (var sliceDepth = pass == 1 ? startDepth : this.unplaced.openStart; sliceDepth >= 0; sliceDepth--) {\n var fragment = void 0,\n parent = null;\n if (sliceDepth) {\n parent = contentAt(this.unplaced.content, sliceDepth - 1).firstChild;\n fragment = parent.content;\n } else {\n fragment = this.unplaced.content;\n }\n var first = fragment.firstChild;\n for (var frontierDepth = this.depth; frontierDepth >= 0; frontierDepth--) {\n var _this$frontier$fronti = this.frontier[frontierDepth],\n type = _this$frontier$fronti.type,\n match = _this$frontier$fronti.match,\n _wrap = void 0,\n inject = null;\n if (pass == 1 && (first ? match.matchType(first.type) || (inject = match.fillBefore(prosemirrorModel.Fragment.from(first), false)) : parent && type.compatibleContent(parent.type))) return {\n sliceDepth: sliceDepth,\n frontierDepth: frontierDepth,\n parent: parent,\n inject: inject\n };else if (pass == 2 && first && (_wrap = match.findWrapping(first.type))) return {\n sliceDepth: sliceDepth,\n frontierDepth: frontierDepth,\n parent: parent,\n wrap: _wrap\n };\n if (parent && match.matchType(parent.type)) break;\n }\n }\n }\n }\n }, {\n key: \"openMore\",\n value: function openMore() {\n var _this$unplaced = this.unplaced,\n content = _this$unplaced.content,\n openStart = _this$unplaced.openStart,\n openEnd = _this$unplaced.openEnd;\n var inner = contentAt(content, openStart);\n if (!inner.childCount || inner.firstChild.isLeaf) return false;\n this.unplaced = new prosemirrorModel.Slice(content, openStart + 1, Math.max(openEnd, inner.size + openStart >= content.size - openEnd ? openStart + 1 : 0));\n return true;\n }\n }, {\n key: \"dropNode\",\n value: function dropNode() {\n var _this$unplaced2 = this.unplaced,\n content = _this$unplaced2.content,\n openStart = _this$unplaced2.openStart,\n openEnd = _this$unplaced2.openEnd;\n var inner = contentAt(content, openStart);\n if (inner.childCount <= 1 && openStart > 0) {\n var openAtEnd = content.size - openStart <= openStart + inner.size;\n this.unplaced = new prosemirrorModel.Slice(dropFromFragment(content, openStart - 1, 1), openStart - 1, openAtEnd ? openStart - 1 : openEnd);\n } else {\n this.unplaced = new prosemirrorModel.Slice(dropFromFragment(content, openStart, 1), openStart, openEnd);\n }\n }\n }, {\n key: \"placeNodes\",\n value: function placeNodes(_ref) {\n var sliceDepth = _ref.sliceDepth,\n frontierDepth = _ref.frontierDepth,\n parent = _ref.parent,\n inject = _ref.inject,\n wrap = _ref.wrap;\n while (this.depth > frontierDepth) this.closeFrontierNode();\n if (wrap) for (var i = 0; i < wrap.length; i++) this.openFrontierNode(wrap[i]);\n var slice = this.unplaced,\n fragment = parent ? parent.content : slice.content;\n var openStart = slice.openStart - sliceDepth;\n var taken = 0,\n add = [];\n var _this$frontier$fronti2 = this.frontier[frontierDepth],\n match = _this$frontier$fronti2.match,\n type = _this$frontier$fronti2.type;\n if (inject) {\n for (var _i3 = 0; _i3 < inject.childCount; _i3++) add.push(inject.child(_i3));\n match = match.matchFragment(inject);\n }\n var openEndCount = fragment.size + sliceDepth - (slice.content.size - slice.openEnd);\n while (taken < fragment.childCount) {\n var next = fragment.child(taken),\n matches = match.matchType(next.type);\n if (!matches) break;\n taken++;\n if (taken > 1 || openStart == 0 || next.content.size) {\n match = matches;\n add.push(closeNodeStart(next.mark(type.allowedMarks(next.marks)), taken == 1 ? openStart : 0, taken == fragment.childCount ? openEndCount : -1));\n }\n }\n var toEnd = taken == fragment.childCount;\n if (!toEnd) openEndCount = -1;\n this.placed = addToFragment(this.placed, frontierDepth, prosemirrorModel.Fragment.from(add));\n this.frontier[frontierDepth].match = match;\n if (toEnd && openEndCount < 0 && parent && parent.type == this.frontier[this.depth].type && this.frontier.length > 1) this.closeFrontierNode();\n for (var _i4 = 0, cur = fragment; _i4 < openEndCount; _i4++) {\n var node = cur.lastChild;\n this.frontier.push({\n type: node.type,\n match: node.contentMatchAt(node.childCount)\n });\n cur = node.content;\n }\n this.unplaced = !toEnd ? new prosemirrorModel.Slice(dropFromFragment(slice.content, sliceDepth, taken), slice.openStart, slice.openEnd) : sliceDepth == 0 ? prosemirrorModel.Slice.empty : new prosemirrorModel.Slice(dropFromFragment(slice.content, sliceDepth - 1, 1), sliceDepth - 1, openEndCount < 0 ? slice.openEnd : sliceDepth - 1);\n }\n }, {\n key: \"mustMoveInline\",\n value: function mustMoveInline() {\n if (!this.$to.parent.isTextblock) return -1;\n var top = this.frontier[this.depth],\n level;\n if (!top.type.isTextblock || !contentAfterFits(this.$to, this.$to.depth, top.type, top.match, false) || this.$to.depth == this.depth && (level = this.findCloseLevel(this.$to)) && level.depth == this.depth) return -1;\n var depth = this.$to.depth,\n after = this.$to.after(depth);\n while (depth > 1 && after == this.$to.end(--depth)) ++after;\n return after;\n }\n }, {\n key: \"findCloseLevel\",\n value: function findCloseLevel($to) {\n scan: for (var i = Math.min(this.depth, $to.depth); i >= 0; i--) {\n var _this$frontier$i = this.frontier[i],\n match = _this$frontier$i.match,\n type = _this$frontier$i.type;\n var dropInner = i < $to.depth && $to.end(i + 1) == $to.pos + ($to.depth - (i + 1));\n var fit = contentAfterFits($to, i, type, match, dropInner);\n if (!fit) continue;\n for (var d = i - 1; d >= 0; d--) {\n var _this$frontier$d = this.frontier[d],\n _match = _this$frontier$d.match,\n _type = _this$frontier$d.type;\n var matches = contentAfterFits($to, d, _type, _match, true);\n if (!matches || matches.childCount) continue scan;\n }\n return {\n depth: i,\n fit: fit,\n move: dropInner ? $to.doc.resolve($to.after(i + 1)) : $to\n };\n }\n }\n }, {\n key: \"close\",\n value: function close($to) {\n var close = this.findCloseLevel($to);\n if (!close) return null;\n while (this.depth > close.depth) this.closeFrontierNode();\n if (close.fit.childCount) this.placed = addToFragment(this.placed, close.depth, close.fit);\n $to = close.move;\n for (var d = close.depth + 1; d <= $to.depth; d++) {\n var node = $to.node(d),\n add = node.type.contentMatch.fillBefore(node.content, true, $to.index(d));\n this.openFrontierNode(node.type, node.attrs, add);\n }\n return $to;\n }\n }, {\n key: \"openFrontierNode\",\n value: function openFrontierNode(type) {\n var attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var content = arguments.length > 2 ? arguments[2] : undefined;\n var top = this.frontier[this.depth];\n top.match = top.match.matchType(type);\n this.placed = addToFragment(this.placed, this.depth, prosemirrorModel.Fragment.from(type.create(attrs, content)));\n this.frontier.push({\n type: type,\n match: type.contentMatch\n });\n }\n }, {\n key: \"closeFrontierNode\",\n value: function closeFrontierNode() {\n var open = this.frontier.pop();\n var add = open.match.fillBefore(prosemirrorModel.Fragment.empty, true);\n if (add.childCount) this.placed = addToFragment(this.placed, this.frontier.length, add);\n }\n }]);\n return Fitter;\n}();\nfunction dropFromFragment(fragment, depth, count) {\n if (depth == 0) return fragment.cutByIndex(count, fragment.childCount);\n return fragment.replaceChild(0, fragment.firstChild.copy(dropFromFragment(fragment.firstChild.content, depth - 1, count)));\n}\nfunction addToFragment(fragment, depth, content) {\n if (depth == 0) return fragment.append(content);\n return fragment.replaceChild(fragment.childCount - 1, fragment.lastChild.copy(addToFragment(fragment.lastChild.content, depth - 1, content)));\n}\nfunction contentAt(fragment, depth) {\n for (var i = 0; i < depth; i++) fragment = fragment.firstChild.content;\n return fragment;\n}\nfunction closeNodeStart(node, openStart, openEnd) {\n if (openStart <= 0) return node;\n var frag = node.content;\n if (openStart > 1) frag = frag.replaceChild(0, closeNodeStart(frag.firstChild, openStart - 1, frag.childCount == 1 ? openEnd - 1 : 0));\n if (openStart > 0) {\n frag = node.type.contentMatch.fillBefore(frag).append(frag);\n if (openEnd <= 0) frag = frag.append(node.type.contentMatch.matchFragment(frag).fillBefore(prosemirrorModel.Fragment.empty, true));\n }\n return node.copy(frag);\n}\nfunction contentAfterFits($to, depth, type, match, open) {\n var node = $to.node(depth),\n index = open ? $to.indexAfter(depth) : $to.index(depth);\n if (index == node.childCount && !type.compatibleContent(node.type)) return null;\n var fit = match.fillBefore(node.content, true, index);\n return fit && !invalidMarks(type, node.content, index) ? fit : null;\n}\nfunction invalidMarks(type, fragment, start) {\n for (var i = start; i < fragment.childCount; i++) if (!type.allowsMarks(fragment.child(i).marks)) return true;\n return false;\n}\nfunction definesContent(type) {\n return type.spec.defining || type.spec.definingForContent;\n}\nfunction _replaceRange(tr, from, to, slice) {\n if (!slice.size) return tr.deleteRange(from, to);\n var $from = tr.doc.resolve(from),\n $to = tr.doc.resolve(to);\n if (fitsTrivially($from, $to, slice)) return tr.step(new ReplaceStep(from, to, slice));\n var targetDepths = coveredDepths($from, tr.doc.resolve(to));\n if (targetDepths[targetDepths.length - 1] == 0) targetDepths.pop();\n var preferredTarget = -($from.depth + 1);\n targetDepths.unshift(preferredTarget);\n for (var d = $from.depth, pos = $from.pos - 1; d > 0; d--, pos--) {\n var spec = $from.node(d).type.spec;\n if (spec.defining || spec.definingAsContext || spec.isolating) break;\n if (targetDepths.indexOf(d) > -1) preferredTarget = d;else if ($from.before(d) == pos) targetDepths.splice(1, 0, -d);\n }\n var preferredTargetIndex = targetDepths.indexOf(preferredTarget);\n var leftNodes = [],\n preferredDepth = slice.openStart;\n for (var content = slice.content, i = 0;; i++) {\n var node = content.firstChild;\n leftNodes.push(node);\n if (i == slice.openStart) break;\n content = node.content;\n }\n for (var _d3 = preferredDepth - 1; _d3 >= 0; _d3--) {\n var leftNode = leftNodes[_d3],\n def = definesContent(leftNode.type);\n if (def && !leftNode.sameMarkup($from.node(Math.abs(preferredTarget) - 1))) preferredDepth = _d3;else if (def || !leftNode.type.isTextblock) break;\n }\n for (var j = slice.openStart; j >= 0; j--) {\n var openDepth = (j + preferredDepth + 1) % (slice.openStart + 1);\n var insert = leftNodes[openDepth];\n if (!insert) continue;\n for (var _i5 = 0; _i5 < targetDepths.length; _i5++) {\n var targetDepth = targetDepths[(_i5 + preferredTargetIndex) % targetDepths.length],\n expand = true;\n if (targetDepth < 0) {\n expand = false;\n targetDepth = -targetDepth;\n }\n var parent = $from.node(targetDepth - 1),\n index = $from.index(targetDepth - 1);\n if (parent.canReplaceWith(index, index, insert.type, insert.marks)) return tr.replace($from.before(targetDepth), expand ? $to.after(targetDepth) : to, new prosemirrorModel.Slice(closeFragment(slice.content, 0, slice.openStart, openDepth), openDepth, slice.openEnd));\n }\n }\n var startSteps = tr.steps.length;\n for (var _i6 = targetDepths.length - 1; _i6 >= 0; _i6--) {\n tr.replace(from, to, slice);\n if (tr.steps.length > startSteps) break;\n var depth = targetDepths[_i6];\n if (depth < 0) continue;\n from = $from.before(depth);\n to = $to.after(depth);\n }\n}\nfunction closeFragment(fragment, depth, oldOpen, newOpen, parent) {\n if (depth < oldOpen) {\n var first = fragment.firstChild;\n fragment = fragment.replaceChild(0, first.copy(closeFragment(first.content, depth + 1, oldOpen, newOpen, first)));\n }\n if (depth > newOpen) {\n var match = parent.contentMatchAt(0);\n var start = match.fillBefore(fragment).append(fragment);\n fragment = start.append(match.matchFragment(start).fillBefore(prosemirrorModel.Fragment.empty, true));\n }\n return fragment;\n}\nfunction _replaceRangeWith(tr, from, to, node) {\n if (!node.isInline && from == to && tr.doc.resolve(from).parent.content.size) {\n var point = insertPoint(tr.doc, from, node.type);\n if (point != null) from = to = point;\n }\n tr.replaceRange(from, to, new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(node), 0, 0));\n}\nfunction _deleteRange(tr, from, to) {\n var $from = tr.doc.resolve(from),\n $to = tr.doc.resolve(to);\n var covered = coveredDepths($from, $to);\n for (var i = 0; i < covered.length; i++) {\n var depth = covered[i],\n last = i == covered.length - 1;\n if (last && depth == 0 || $from.node(depth).type.contentMatch.validEnd) return tr[\"delete\"]($from.start(depth), $to.end(depth));\n if (depth > 0 && (last || $from.node(depth - 1).canReplace($from.index(depth - 1), $to.indexAfter(depth - 1)))) return tr[\"delete\"]($from.before(depth), $to.after(depth));\n }\n for (var d = 1; d <= $from.depth && d <= $to.depth; d++) {\n if (from - $from.start(d) == $from.depth - d && to > $from.end(d) && $to.end(d) - to != $to.depth - d && $from.start(d - 1) == $to.start(d - 1) && $from.node(d - 1).canReplace($from.index(d - 1), $to.index(d - 1))) return tr[\"delete\"]($from.before(d), to);\n }\n tr[\"delete\"](from, to);\n}\nfunction coveredDepths($from, $to) {\n var result = [],\n minDepth = Math.min($from.depth, $to.depth);\n for (var d = minDepth; d >= 0; d--) {\n var start = $from.start(d);\n if (start < $from.pos - ($from.depth - d) || $to.end(d) > $to.pos + ($to.depth - d) || $from.node(d).type.spec.isolating || $to.node(d).type.spec.isolating) break;\n if (start == $to.start(d) || d == $from.depth && d == $to.depth && $from.parent.inlineContent && $to.parent.inlineContent && d && $to.start(d - 1) == start - 1) result.push(d);\n }\n return result;\n}\nvar AttrStep = function (_Step7) {\n _inherits(AttrStep, _Step7);\n var _super7 = _createSuper(AttrStep);\n function AttrStep(pos, attr, value) {\n var _this9;\n _classCallCheck(this, AttrStep);\n _this9 = _super7.call(this);\n _this9.pos = pos;\n _this9.attr = attr;\n _this9.value = value;\n return _this9;\n }\n _createClass(AttrStep, [{\n key: \"apply\",\n value: function apply(doc) {\n var node = doc.nodeAt(this.pos);\n if (!node) return StepResult.fail(\"No node at attribute step's position\");\n var attrs = Object.create(null);\n for (var name in node.attrs) attrs[name] = node.attrs[name];\n attrs[this.attr] = this.value;\n var updated = node.type.create(attrs, null, node.marks);\n return StepResult.fromReplace(doc, this.pos, this.pos + 1, new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(updated), 0, node.isLeaf ? 0 : 1));\n }\n }, {\n key: \"getMap\",\n value: function getMap() {\n return StepMap.empty;\n }\n }, {\n key: \"invert\",\n value: function invert(doc) {\n return new AttrStep(this.pos, this.attr, doc.nodeAt(this.pos).attrs[this.attr]);\n }\n }, {\n key: \"map\",\n value: function map(mapping) {\n var pos = mapping.mapResult(this.pos, 1);\n return pos.deletedAfter ? null : new AttrStep(pos.pos, this.attr, this.value);\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return {\n stepType: \"attr\",\n pos: this.pos,\n attr: this.attr,\n value: this.value\n };\n }\n }], [{\n key: \"fromJSON\",\n value: function fromJSON(schema, json) {\n if (typeof json.pos != \"number\" || typeof json.attr != \"string\") throw new RangeError(\"Invalid input for AttrStep.fromJSON\");\n return new AttrStep(json.pos, json.attr, json.value);\n }\n }]);\n return AttrStep;\n}(Step);\nStep.jsonID(\"attr\", AttrStep);\nvar DocAttrStep = function (_Step8) {\n _inherits(DocAttrStep, _Step8);\n var _super8 = _createSuper(DocAttrStep);\n function DocAttrStep(attr, value) {\n var _this10;\n _classCallCheck(this, DocAttrStep);\n _this10 = _super8.call(this);\n _this10.attr = attr;\n _this10.value = value;\n return _this10;\n }\n _createClass(DocAttrStep, [{\n key: \"apply\",\n value: function apply(doc) {\n var attrs = Object.create(null);\n for (var name in doc.attrs) attrs[name] = doc.attrs[name];\n attrs[this.attr] = this.value;\n var updated = doc.type.create(attrs, doc.content, doc.marks);\n return StepResult.ok(updated);\n }\n }, {\n key: \"getMap\",\n value: function getMap() {\n return StepMap.empty;\n }\n }, {\n key: \"invert\",\n value: function invert(doc) {\n return new DocAttrStep(this.attr, doc.attrs[this.attr]);\n }\n }, {\n key: \"map\",\n value: function map(mapping) {\n return this;\n }\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return {\n stepType: \"docAttr\",\n attr: this.attr,\n value: this.value\n };\n }\n }], [{\n key: \"fromJSON\",\n value: function fromJSON(schema, json) {\n if (typeof json.attr != \"string\") throw new RangeError(\"Invalid input for DocAttrStep.fromJSON\");\n return new DocAttrStep(json.attr, json.value);\n }\n }]);\n return DocAttrStep;\n}(Step);\nStep.jsonID(\"docAttr\", DocAttrStep);\nexports.TransformError = function (_Error) {\n _inherits(TransformError, _Error);\n var _super9 = _createSuper(TransformError);\n function TransformError() {\n _classCallCheck(this, TransformError);\n return _super9.apply(this, arguments);\n }\n return _createClass(TransformError);\n}(_wrapNativeSuper(Error));\nexports.TransformError = function TransformError(message) {\n var err = Error.call(this, message);\n err.__proto__ = TransformError.prototype;\n return err;\n};\nexports.TransformError.prototype = Object.create(Error.prototype);\nexports.TransformError.prototype.constructor = exports.TransformError;\nexports.TransformError.prototype.name = \"TransformError\";\nvar Transform = function () {\n function Transform(doc) {\n _classCallCheck(this, Transform);\n this.doc = doc;\n this.steps = [];\n this.docs = [];\n this.mapping = new Mapping();\n }\n _createClass(Transform, [{\n key: \"before\",\n get: function get() {\n return this.docs.length ? this.docs[0] : this.doc;\n }\n }, {\n key: \"step\",\n value: function step(_step) {\n var result = this.maybeStep(_step);\n if (result.failed) throw new exports.TransformError(result.failed);\n return this;\n }\n }, {\n key: \"maybeStep\",\n value: function maybeStep(step) {\n var result = step.apply(this.doc);\n if (!result.failed) this.addStep(step, result.doc);\n return result;\n }\n }, {\n key: \"docChanged\",\n get: function get() {\n return this.steps.length > 0;\n }\n }, {\n key: \"addStep\",\n value: function addStep(step, doc) {\n this.docs.push(this.doc);\n this.steps.push(step);\n this.mapping.appendMap(step.getMap());\n this.doc = doc;\n }\n }, {\n key: \"replace\",\n value: function replace(from) {\n var to = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : from;\n var slice = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : prosemirrorModel.Slice.empty;\n var step = replaceStep(this.doc, from, to, slice);\n if (step) this.step(step);\n return this;\n }\n }, {\n key: \"replaceWith\",\n value: function replaceWith(from, to, content) {\n return this.replace(from, to, new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(content), 0, 0));\n }\n }, {\n key: \"delete\",\n value: function _delete(from, to) {\n return this.replace(from, to, prosemirrorModel.Slice.empty);\n }\n }, {\n key: \"insert\",\n value: function insert(pos, content) {\n return this.replaceWith(pos, pos, content);\n }\n }, {\n key: \"replaceRange\",\n value: function replaceRange(from, to, slice) {\n _replaceRange(this, from, to, slice);\n return this;\n }\n }, {\n key: \"replaceRangeWith\",\n value: function replaceRangeWith(from, to, node) {\n _replaceRangeWith(this, from, to, node);\n return this;\n }\n }, {\n key: \"deleteRange\",\n value: function deleteRange(from, to) {\n _deleteRange(this, from, to);\n return this;\n }\n }, {\n key: \"lift\",\n value: function lift(range, target) {\n _lift(this, range, target);\n return this;\n }\n }, {\n key: \"join\",\n value: function join(pos) {\n var depth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n _join(this, pos, depth);\n return this;\n }\n }, {\n key: \"wrap\",\n value: function wrap(range, wrappers) {\n _wrap2(this, range, wrappers);\n return this;\n }\n }, {\n key: \"setBlockType\",\n value: function setBlockType(from) {\n var to = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : from;\n var type = arguments.length > 2 ? arguments[2] : undefined;\n var attrs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n _setBlockType(this, from, to, type, attrs);\n return this;\n }\n }, {\n key: \"setNodeMarkup\",\n value: function setNodeMarkup(pos, type) {\n var attrs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var marks = arguments.length > 3 ? arguments[3] : undefined;\n _setNodeMarkup(this, pos, type, attrs, marks);\n return this;\n }\n }, {\n key: \"setNodeAttribute\",\n value: function setNodeAttribute(pos, attr, value) {\n this.step(new AttrStep(pos, attr, value));\n return this;\n }\n }, {\n key: \"setDocAttribute\",\n value: function setDocAttribute(attr, value) {\n this.step(new DocAttrStep(attr, value));\n return this;\n }\n }, {\n key: \"addNodeMark\",\n value: function addNodeMark(pos, mark) {\n this.step(new AddNodeMarkStep(pos, mark));\n return this;\n }\n }, {\n key: \"removeNodeMark\",\n value: function removeNodeMark(pos, mark) {\n if (!(mark instanceof prosemirrorModel.Mark)) {\n var node = this.doc.nodeAt(pos);\n if (!node) throw new RangeError(\"No node at position \" + pos);\n mark = mark.isInSet(node.marks);\n if (!mark) return this;\n }\n this.step(new RemoveNodeMarkStep(pos, mark));\n return this;\n }\n }, {\n key: \"split\",\n value: function split(pos) {\n var depth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n var typesAfter = arguments.length > 2 ? arguments[2] : undefined;\n _split(this, pos, depth, typesAfter);\n return this;\n }\n }, {\n key: \"addMark\",\n value: function addMark(from, to, mark) {\n _addMark(this, from, to, mark);\n return this;\n }\n }, {\n key: \"removeMark\",\n value: function removeMark(from, to, mark) {\n _removeMark(this, from, to, mark);\n return this;\n }\n }, {\n key: \"clearIncompatible\",\n value: function clearIncompatible(pos, parentType, match) {\n _clearIncompatible(this, pos, parentType, match);\n return this;\n }\n }]);\n return Transform;\n}();\nexports.AddMarkStep = AddMarkStep;\nexports.AddNodeMarkStep = AddNodeMarkStep;\nexports.AttrStep = AttrStep;\nexports.DocAttrStep = DocAttrStep;\nexports.MapResult = MapResult;\nexports.Mapping = Mapping;\nexports.RemoveMarkStep = RemoveMarkStep;\nexports.RemoveNodeMarkStep = RemoveNodeMarkStep;\nexports.ReplaceAroundStep = ReplaceAroundStep;\nexports.ReplaceStep = ReplaceStep;\nexports.Step = Step;\nexports.StepMap = StepMap;\nexports.StepResult = StepResult;\nexports.Transform = Transform;\nexports.canJoin = canJoin;\nexports.canSplit = canSplit;\nexports.dropPoint = dropPoint;\nexports.findWrapping = findWrapping;\nexports.insertPoint = insertPoint;\nexports.joinPoint = joinPoint;\nexports.liftTarget = liftTarget;\nexports.replaceStep = replaceStep;\n"],"names":["_wrapNativeSuper","Class","_cache","Map","undefined","fn","Function","toString","call","indexOf","e","_isNativeFunction","TypeError","has","get","set","Wrapper","_construct","arguments","_getPrototypeOf","this","constructor","prototype","Object","create","value","enumerable","writable","configurable","_setPrototypeOf","Parent","args","_isNativeReflectConstruct","Reflect","construct","bind","a","push","apply","instance","_inherits","subClass","superClass","defineProperty","o","p","setPrototypeOf","__proto__","_createSuper","Derived","hasNativeReflectConstruct","result","Super","NewTarget","self","_typeof","ReferenceError","_assertThisInitialized","_possibleConstructorReturn","sham","Proxy","Boolean","valueOf","getPrototypeOf","Symbol","iterator","_classCallCheck","Constructor","_defineProperties","target","props","i","length","descriptor","arg","key","input","hint","prim","toPrimitive","res","_toPrimitive","String","_createClass","protoProps","staticProps","prosemirrorModel","require$$0","factor16","Math","pow","recoverIndex","MapResult","pos","delInfo","recover","StepMap","ranges","inverted","empty","diff","index","recoverOffset","assoc","_map","simple","oldIndex","newIndex","start","oldSize","newSize","end","del","f","oldStart","newStart","JSON","stringify","n","Mapping","maps","mirror","from","to","slice","map","mirrors","setMirror","mapping","startSize","mirr","getMirror","appendMap","m","totalSize","invert","inverse","appendMappingInverted","mapResult","corr","stepsByID","Step","other","schema","json","stepType","RangeError","type","concat","fromJSON","id","stepClass","jsonID","StepResult","doc","failed","message","ok","replace","ReplaceError","fail","mapFragment","fragment","parent","mapped","childCount","child","content","size","copy","isInline","Fragment","fromArray","AddMarkStep","_Step","_super","mark","_this","_this2","oldSlice","$from","resolve","node","sharedDepth","Slice","isAtom","allowsMarkType","addToSet","marks","openStart","openEnd","fromReplace","RemoveMarkStep","deleted","eq","min","max","toJSON","markFromJSON","_Step2","_super2","_this3","_this4","removeFromSet","AddNodeMarkStep","_Step3","_super3","_this5","nodeAt","updated","attrs","isLeaf","newSet","isInSet","RemoveNodeMarkStep","deletedAfter","_Step4","_super4","_this6","ReplaceStep","_Step5","_super5","_this7","structure","contentBetween","deletedAcross","_slice","append","ReplaceAroundStep","_Step6","_super6","gapFrom","gapTo","insert","_this8","gap","inserted","insertAt","removeBetween","dist","depth","indexAfter","next","maybeChild","firstChild","_clearIncompatible","tr","parentType","match","contentMatch","clearNewlines","replSteps","cur","nodeSize","allowed","matchType","j","step","isText","whitespace","newline","exec","text","allowedMarks","validEnd","fill","fillBefore","_i","canCut","canReplace","withAttrs","replaceNewlines","mapFrom","forEach","offset","replaceWith","linebreakReplacement","replaceLinebreaks","joinable","b","compatibleContent","contentMatchAt","nodes","allowsMarks","canAppendWithSubstitutedLinebreaks","insertPoint","nodeType","$pos","canReplaceWith","parentOffset","d","before","_d2","_index2","after","replaceStep","$to","fitsTrivially","Fitter","fit","unplaced","frontier","placed","_i2","findFittable","placeNodes","openMore","dropNode","moveInline","mustMoveInline","placedSize","close","startDepth","spec","isolating","pass","sliceDepth","first","contentAt","frontierDepth","_this$frontier$fronti","_wrap","inject","findWrapping","wrap","_this$unplaced","inner","_this$unplaced2","openAtEnd","dropFromFragment","_ref","closeFrontierNode","openFrontierNode","taken","add","_this$frontier$fronti2","_i3","matchFragment","openEndCount","matches","closeNodeStart","toEnd","addToFragment","_i4","lastChild","isTextblock","level","top","contentAfterFits","findCloseLevel","scan","_this$frontier$i","dropInner","_this$frontier$d","_match","move","pop","count","cutByIndex","replaceChild","frag","open","invalidMarks","closeFragment","oldOpen","newOpen","coveredDepths","inlineContent","AttrStep","_Step7","_super7","attr","_this9","name","DocAttrStep","_Step8","_super8","_this10","exports","TransformError","_Error","_super9","Error","err","Transform","steps","docs","_step","maybeStep","addStep","getMap","deleteRange","targetDepths","preferredTarget","unshift","defining","definingAsContext","splice","preferredTargetIndex","leftNodes","preferredDepth","_d3","leftNode","def","definingForContent","sameMarkup","abs","openDepth","_i5","targetDepth","expand","startSteps","_i6","_replaceRange","point","replaceRange","_replaceRangeWith","covered","last","_deleteRange","range","gapStart","gapEnd","splitting","_d","_splitting","_lift","convertNewlines","$before","beforeType","pre","supportLinebreak","$after","$full","_join","wrappers","_wrap2","nodesBetween","attrsHere","hasMarkup","canChangeType","startM","endM","_setBlockType","newNode","validContent","_setNodeMarkup","Mark","typesAfter","typeAfter","_split","removing","adding","removed","added","s","_addMark","matched","toRemove","MarkType","found","style","_found","_removeMark","canJoin","nodeBefore","nodeAfter","canSplit","base","innerType","_index","rest","overrideChild","baseType","dropPoint","bias","insertPos","fits","wrapping","innerRange","around","startIndex","endIndex","outer","findWrappingOutside","inside","innerMatch","findWrappingInside","joinPoint","dir","liftTarget"],"mappings":"0KAEA,SAASA,EAAiBC,GAAS,IAAIC,EAAwB,mBAARC,IAAqB,IAAIA,SAAQC,EAA8nB,OAAnnBJ,EAAmB,SAA0BC,GAAS,GAAc,OAAVA,IAE7J,SAA2BI,GAAM,IAAM,OAAgE,IAAzDC,SAASC,SAASC,KAAKH,GAAII,QAAQ,iBAA2B,MAAOC,GAAK,MAAqB,mBAAPL,CAAoB,CAAA,CAFsBM,CAAkBV,GAAQ,OAAOA,EAAO,GAAqB,mBAAVA,EAAwB,MAAM,IAAIW,UAAU,sDAAyD,QAAsB,IAAXV,EAAwB,CAAE,GAAIA,EAAOW,IAAIZ,GAAQ,OAAOC,EAAOY,IAAIb,GAAQC,EAAOa,IAAId,EAAOe,EAAS,CAAG,SAASA,IAAY,OAAOC,EAAWhB,EAAOiB,UAAWC,EAAgBC,MAAMC,YAAe,CAAiJ,OAAhJL,EAAQM,UAAYC,OAAOC,OAAOvB,EAAMqB,UAAW,CAAED,YAAa,CAAEI,MAAOT,EAASU,YAAY,EAAOC,UAAU,EAAMC,cAAc,KAAkBC,EAAgBb,EAASf,EAAO,EAAWD,EAAiBC,EAAO,CACrvB,SAASgB,EAAWa,EAAQC,EAAM9B,GAA4V,OAAhTgB,EAA/Be,IAA4CC,QAAQC,UAAUC,OAA8B,SAAoBL,EAAQC,EAAM9B,GAAS,IAAImC,EAAI,CAAC,MAAOA,EAAEC,KAAKC,MAAMF,EAAGL,GAAO,IAAsDQ,EAAW,IAA/CjC,SAAS6B,KAAK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