@fewangsit/wangsvue 1.5.219-alpha.2 → 1.5.219-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1052) hide show
  1. package/changelog/index.d.ts +164 -0
  2. package/changelogpage/index.d.ts +184 -0
  3. package/comment/index.d.ts +187 -0
  4. package/components.d.ts +21 -0
  5. package/detailmember/index.d.ts +77 -0
  6. package/detailsprint/index.d.ts +86 -0
  7. package/inputinitialname/index.d.ts +118 -0
  8. package/inputrepositoryname/index.d.ts +86 -0
  9. package/loading-page-BrQattYE.js +1 -0
  10. package/loading-page-CgfbWppy.js +1 -0
  11. package/loading-page-CoC9UhfC.js +4 -0
  12. package/loading-page-CoXtqoc9.js +4 -0
  13. package/loading-page-DbLuqCHa.js +1 -0
  14. package/loading-page-f8D03l3G.js +4 -0
  15. package/loading-plane-CgfbWppy.js +1 -0
  16. package/loading-plane-CoXtqoc9.js +4 -0
  17. package/loading-table-Bdr9ZhtP.js +1 -0
  18. package/loading-table-ByUoWqUo.js +4 -0
  19. package/loading-table-BygEMzFM.js +4 -0
  20. package/loading-table-BzrSQlA0.js +1 -0
  21. package/loading-table-D9bw9OcI.js +4 -0
  22. package/loading-table-chOgXi94.js +1 -0
  23. package/no-data-CTKux8RI.js +4 -0
  24. package/no-data-Cgze_Rvp.js +1 -0
  25. package/no-data-DLHO1L_u.js +4 -0
  26. package/no-data-Dep79CBh.js +1 -0
  27. package/no-data-g0dJCy2p.js +4 -0
  28. package/no-data-y1X5WtcQ.js +1 -0
  29. package/notificationitem/index.d.ts +107 -0
  30. package/package.json +1 -1
  31. package/stats.html +1 -1
  32. package/style.css +2 -2
  33. package/summaryaccordion/index.d.ts +121 -0
  34. package/taskdetail/index.d.ts +82 -0
  35. package/taskdetailpbi/index.d.ts +35 -0
  36. package/tasktable/index.d.ts +87 -0
  37. package/wangsvue.es.js +66312 -170
  38. package/wangsvue.js +66314 -0
  39. package/wangsvue.system.js +234 -67600
  40. package/animation/index.es.js +0 -69
  41. package/assets/lottiejs/loading-page.es.js +0 -20
  42. package/assets/lottiejs/loading-plane.es.js +0 -4
  43. package/assets/lottiejs/loading-table.es.js +0 -20
  44. package/assets/lottiejs/no-data.es.js +0 -20
  45. package/backgroundimagecropper/index.es.js +0 -76
  46. package/badge/index.es.js +0 -121
  47. package/badgegroup/index.es.js +0 -80
  48. package/basecalendar/index.es.js +0 -1399
  49. package/basetree/index.es.js +0 -269
  50. package/breadcrumb/index.es.js +0 -54
  51. package/button/index.es.js +0 -126
  52. package/buttonbulkaction/index.es.js +0 -237
  53. package/buttoncopy/index.es.js +0 -34
  54. package/buttondownload/index.es.js +0 -162
  55. package/buttonfilter/index.es.js +0 -37
  56. package/buttonradio/index.es.js +0 -117
  57. package/buttonsearch/index.es.js +0 -86
  58. package/buttonselecttree/index.es.js +0 -281
  59. package/buttontoggle/index.es.js +0 -13
  60. package/calendar/index.es.js +0 -172
  61. package/card/index.es.js +0 -49
  62. package/checkbox/index.es.js +0 -166
  63. package/codesnippet/index.es.js +0 -138
  64. package/codesnippetadapter/index.es.js +0 -30
  65. package/columnlist/index.es.js +0 -282
  66. package/config/defaultProps.es.js +0 -24
  67. package/config/index.es.js +0 -13
  68. package/config/locale.es.js +0 -41
  69. package/customcolumn/index.es.js +0 -155
  70. package/datatable/index.es.js +0 -1328
  71. package/dialog/index.es.js +0 -121
  72. package/dialogconfirm/index.es.js +0 -155
  73. package/dialogform/index.es.js +0 -260
  74. package/dialogselecttree/index.es.js +0 -317
  75. package/directives/focus.es.js +0 -18
  76. package/directives/index.es.js +0 -2
  77. package/directives/tooltip.es.js +0 -1
  78. package/dropdown/index.es.js +0 -297
  79. package/editor/index.es.js +0 -1160
  80. package/editorbutton/index.es.js +0 -30
  81. package/event-bus/index.es.js +0 -5
  82. package/event-bus/mitt.es.js +0 -70
  83. package/fieldwrapper/index.es.js +0 -45
  84. package/fileupload/index.es.js +0 -266
  85. package/filtercontainer/index.es.js +0 -347
  86. package/form/index.es.js +0 -238
  87. package/gallerypreview/index.es.js +0 -157
  88. package/icon/index.es.js +0 -84
  89. package/image/index.es.js +0 -224
  90. package/imagecompressor/index.es.js +0 -701
  91. package/imageinputinfo/index.es.js +0 -50
  92. package/inlinemessage/index.es.js +0 -106
  93. package/inputbadge/index.es.js +0 -261
  94. package/inputcurrency/index.es.js +0 -186
  95. package/inputemail/index.es.js +0 -51
  96. package/inputgroup/index.es.js +0 -34
  97. package/inputnumber/index.es.js +0 -310
  98. package/inputpassword/index.es.js +0 -147
  99. package/inputphonenumber/index.es.js +0 -1060
  100. package/inputrangenumber/index.es.js +0 -165
  101. package/inputtext/index.es.js +0 -317
  102. package/inputurl/index.es.js +0 -63
  103. package/invisiblefield/index.es.js +0 -35
  104. package/litedropdown/index.es.js +0 -108
  105. package/loading/index.es.js +0 -26
  106. package/loading-page-BXZ4fLOS.js +0 -8
  107. package/loading-page-BuLpsb_1.js +0 -8
  108. package/loading-page-CNqVBg__.js +0 -4
  109. package/loading-page-DbhhZih2.js +0 -4
  110. package/loading-page-DjfWXoOy.js +0 -8
  111. package/loading-page-S-KRY5zm.js +0 -4
  112. package/loading-plane-C1mi7Whv.js +0 -4
  113. package/loading-plane-CWq1hz_l.js +0 -8
  114. package/loading-table-B7LAXzAp.js +0 -4
  115. package/loading-table-BLmgKUsR.js +0 -4
  116. package/loading-table-CG7-cuhv.js +0 -8
  117. package/loading-table-CUPS49ta.js +0 -4
  118. package/loading-table-CuWWrTbv.js +0 -8
  119. package/loading-table-DbBzVwaZ.js +0 -8
  120. package/mentionlist/index.es.js +0 -91
  121. package/mentionsection/index.es.js +0 -62
  122. package/menu/index.es.js +0 -87
  123. package/menuitem/index.es.js +0 -67
  124. package/multirow/index.es.js +0 -53
  125. package/multiselect/index.es.js +0 -221
  126. package/no-data-B781skt3.js +0 -4
  127. package/no-data-CAksOnDl.js +0 -4
  128. package/no-data-DCsjBXQR.js +0 -4
  129. package/no-data-Dz0QOe7Q.js +0 -8
  130. package/no-data-_Huxiv9q.js +0 -8
  131. package/no-data-ybRQontJ.js +0 -8
  132. package/overlaypanel/index.es.js +0 -62
  133. package/paginator/index.es.js +0 -53
  134. package/plugins/WangsVue.es.js +0 -363
  135. package/plugins/formValidation.es.js +0 -19
  136. package/progressbar/index.es.js +0 -50
  137. package/quickfilter/index.es.js +0 -153
  138. package/tabmenu/index.es.js +0 -31
  139. package/textarea/index.es.js +0 -130
  140. package/timeline/index.es.js +0 -149
  141. package/timelinecontentbytype/index.es.js +0 -133
  142. package/toast/index.es.js +0 -87
  143. package/toggleswitch/index.es.js +0 -107
  144. package/tree/index.es.js +0 -379
  145. package/treenode/index.es.js +0 -631
  146. package/treesearchinput/index.es.js +0 -62
  147. package/usergroup/index.es.js +0 -101
  148. package/username/index.es.js +0 -160
  149. package/utils/addAttachment.util.es.js +0 -50
  150. package/utils/baseToast.util.es.js +0 -52
  151. package/utils/convertJsonImage.util.es.js +0 -28
  152. package/utils/date.util.es.js +0 -253
  153. package/utils/exportToExcel.util.es.js +0 -89
  154. package/utils/filterOptions.util.es.js +0 -10
  155. package/utils/genPlaceholder.util.es.js +0 -51
  156. package/utils/getProjectPermission.util.es.js +0 -20
  157. package/utils/getSalesRole.util.es.js +0 -7
  158. package/utils/getUser.util.es.js +0 -4
  159. package/utils/getUserType.util.es.js +0 -18
  160. package/utils/index.es.js +0 -3
  161. package/utils/isIntersect.es.js +0 -6
  162. package/utils/mergePropsWithDefaults.util.es.js +0 -10
  163. package/utils/object.util.es.js +0 -95
  164. package/utils/queryParamsStringfy.util.es.js +0 -23
  165. package/utils/role.util.es.js +0 -8
  166. package/utils/statusSeverity.util.es.js +0 -36
  167. package/utils/textFormatter.util.es.js +0 -32
  168. package/utils/toast.util.es.js +0 -20
  169. package/utils/xlsx.util.es.js +0 -15
  170. package/validatormessage/index.es.js +0 -19
  171. package/vendor/@popperjs/core/lib/createPopper.es.js +0 -149
  172. package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +0 -19
  173. package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +0 -38
  174. package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +0 -61
  175. package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +0 -53
  176. package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +0 -7
  177. package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +0 -10
  178. package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +0 -27
  179. package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +0 -9
  180. package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +0 -21
  181. package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +0 -6
  182. package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +0 -14
  183. package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +0 -51
  184. package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +0 -21
  185. package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +0 -16
  186. package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +0 -31
  187. package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +0 -13
  188. package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +0 -13
  189. package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +0 -9
  190. package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +0 -21
  191. package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +0 -7
  192. package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +0 -8
  193. package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +0 -7
  194. package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +0 -22
  195. package/vendor/@popperjs/core/lib/enums.es.js +0 -45
  196. package/vendor/@popperjs/core/lib/index.es.js +0 -1
  197. package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +0 -71
  198. package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +0 -72
  199. package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +0 -130
  200. package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +0 -40
  201. package/vendor/@popperjs/core/lib/modifiers/flip.es.js +0 -113
  202. package/vendor/@popperjs/core/lib/modifiers/hide.es.js +0 -57
  203. package/vendor/@popperjs/core/lib/modifiers/index.es.js +0 -1
  204. package/vendor/@popperjs/core/lib/modifiers/offset.es.js +0 -42
  205. package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +0 -19
  206. package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +0 -105
  207. package/vendor/@popperjs/core/lib/popper-lite.es.js +0 -1
  208. package/vendor/@popperjs/core/lib/popper.es.js +0 -17
  209. package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +0 -35
  210. package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +0 -59
  211. package/vendor/@popperjs/core/lib/utils/debounce.es.js +0 -17
  212. package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +0 -47
  213. package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +0 -9
  214. package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +0 -6
  215. package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +0 -6
  216. package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +0 -11
  217. package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +0 -6
  218. package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +0 -14
  219. package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +0 -12
  220. package/vendor/@popperjs/core/lib/utils/getVariation.es.js +0 -6
  221. package/vendor/@popperjs/core/lib/utils/math.es.js +0 -8
  222. package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +0 -16
  223. package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +0 -7
  224. package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +0 -39
  225. package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +0 -11
  226. package/vendor/@popperjs/core/lib/utils/userAgent.es.js +0 -12
  227. package/vendor/@popperjs/core/lib/utils/within.es.js +0 -12
  228. package/vendor/@tiptap/core/dist/index.es.js +0 -4362
  229. package/vendor/@tiptap/extension-bold/dist/index.es.js +0 -81
  230. package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +0 -202
  231. package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +0 -66
  232. package/vendor/@tiptap/extension-code/dist/index.es.js +0 -59
  233. package/vendor/@tiptap/extension-document/dist/index.es.js +0 -9
  234. package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +0 -154
  235. package/vendor/@tiptap/extension-heading/dist/index.es.js +0 -70
  236. package/vendor/@tiptap/extension-history/dist/index.es.js +0 -39
  237. package/vendor/@tiptap/extension-image/dist/index.es.js +0 -67
  238. package/vendor/@tiptap/extension-italic/dist/index.es.js +0 -80
  239. package/vendor/@tiptap/extension-link/dist/index.es.js +0 -351
  240. package/vendor/@tiptap/extension-list-item/dist/index.es.js +0 -33
  241. package/vendor/@tiptap/extension-mention/dist/index.es.js +0 -165
  242. package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +0 -84
  243. package/vendor/@tiptap/extension-paragraph/dist/index.es.js +0 -35
  244. package/vendor/@tiptap/extension-placeholder/dist/index.es.js +0 -59
  245. package/vendor/@tiptap/extension-text/dist/index.es.js +0 -8
  246. package/vendor/@tiptap/extension-underline/dist/index.es.js +0 -46
  247. package/vendor/@tiptap/pm/commands/dist/index.es.js +0 -1
  248. package/vendor/@tiptap/pm/history/dist/index.es.js +0 -1
  249. package/vendor/@tiptap/pm/keymap/dist/index.es.js +0 -1
  250. package/vendor/@tiptap/pm/model/dist/index.es.js +0 -1
  251. package/vendor/@tiptap/pm/schema-list/dist/index.es.js +0 -1
  252. package/vendor/@tiptap/pm/state/dist/index.es.js +0 -1
  253. package/vendor/@tiptap/pm/transform/dist/index.es.js +0 -1
  254. package/vendor/@tiptap/pm/view/dist/index.es.js +0 -1
  255. package/vendor/@tiptap/suggestion/dist/index.es.js +0 -215
  256. package/vendor/@tiptap/vue-3/dist/index.es.js +0 -535
  257. package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +0 -22
  258. package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +0 -163
  259. package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +0 -61
  260. package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +0 -203
  261. package/vendor/@wangs-ui/core/components/p-DPHEi31J.es.js +0 -160
  262. package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +0 -1447
  263. package/vendor/@wangs-ui/core/components/p-Duri5p90.es.js +0 -184
  264. package/vendor/@wangs-ui/core/components/wangs-button.es.js +0 -38
  265. package/vendor/@wangs-ui/core/components/wangs-icon.es.js +0 -5
  266. package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +0 -5
  267. package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +0 -5
  268. package/vendor/@wangs-ui/core/dist/esm/index-DCkh3cGv.es.js +0 -340
  269. package/vendor/@wangs-ui/core/dist/esm/index.es.js +0 -1
  270. package/vendor/@wangs-ui/core/dist/index.es.js +0 -1
  271. package/vendor/@wangs-ui/vue/dist/index.es.js +0 -98
  272. package/vendor/base64toblob/base64toblob.es.js +0 -37
  273. package/vendor/highlight.js/es/core.es.js +0 -7
  274. package/vendor/highlight.js/es/languages/javascript.es.js +0 -700
  275. package/vendor/highlight.js/es/languages/json.es.js +0 -41
  276. package/vendor/highlight.js/es/languages/typescript.es.js +0 -803
  277. package/vendor/highlight.js/es/languages/vbscript-html.es.js +0 -16
  278. package/vendor/highlight.js/lib/core.es.js +0 -1541
  279. package/vendor/linkifyjs/dist/linkify.es.es.js +0 -1158
  280. package/vendor/lodash/_Symbol.es.js +0 -14
  281. package/vendor/lodash/_baseGetTag.es.js +0 -23
  282. package/vendor/lodash/_baseTrim.es.js +0 -17
  283. package/vendor/lodash/_freeGlobal.es.js +0 -13
  284. package/vendor/lodash/_getRawTag.es.js +0 -34
  285. package/vendor/lodash/_objectToString.es.js +0 -16
  286. package/vendor/lodash/_root.es.js +0 -15
  287. package/vendor/lodash/_trimmedEndIndex.es.js +0 -18
  288. package/vendor/lodash/debounce.es.js +0 -98
  289. package/vendor/lodash/isObject.es.js +0 -15
  290. package/vendor/lodash/isObjectLike.es.js +0 -14
  291. package/vendor/lodash/isSymbol.es.js +0 -18
  292. package/vendor/lodash/now.es.js +0 -16
  293. package/vendor/lodash/throttle.es.js +0 -30
  294. package/vendor/lodash/toNumber.es.js +0 -38
  295. package/vendor/lodash-es/_DataView.es.js +0 -6
  296. package/vendor/lodash-es/_Hash.es.js +0 -21
  297. package/vendor/lodash-es/_LazyWrapper.es.js +0 -1
  298. package/vendor/lodash-es/_ListCache.es.js +0 -21
  299. package/vendor/lodash-es/_LodashWrapper.es.js +0 -1
  300. package/vendor/lodash-es/_Map.es.js +0 -6
  301. package/vendor/lodash-es/_MapCache.es.js +0 -21
  302. package/vendor/lodash-es/_Promise.es.js +0 -6
  303. package/vendor/lodash-es/_Set.es.js +0 -6
  304. package/vendor/lodash-es/_SetCache.es.js +0 -15
  305. package/vendor/lodash-es/_Stack.es.js +0 -18
  306. package/vendor/lodash-es/_Symbol.es.js +0 -5
  307. package/vendor/lodash-es/_Uint8Array.es.js +0 -5
  308. package/vendor/lodash-es/_WeakMap.es.js +0 -6
  309. package/vendor/lodash-es/_apply.es.js +0 -1
  310. package/vendor/lodash-es/_arrayAggregator.es.js +0 -1
  311. package/vendor/lodash-es/_arrayEach.es.js +0 -12
  312. package/vendor/lodash-es/_arrayEachRight.es.js +0 -1
  313. package/vendor/lodash-es/_arrayEvery.es.js +0 -1
  314. package/vendor/lodash-es/_arrayFilter.es.js +0 -13
  315. package/vendor/lodash-es/_arrayIncludes.es.js +0 -1
  316. package/vendor/lodash-es/_arrayIncludesWith.es.js +0 -1
  317. package/vendor/lodash-es/_arrayLikeKeys.es.js +0 -24
  318. package/vendor/lodash-es/_arrayMap.es.js +0 -1
  319. package/vendor/lodash-es/_arrayPush.es.js +0 -10
  320. package/vendor/lodash-es/_arrayReduce.es.js +0 -1
  321. package/vendor/lodash-es/_arrayReduceRight.es.js +0 -1
  322. package/vendor/lodash-es/_arraySample.es.js +0 -1
  323. package/vendor/lodash-es/_arraySampleSize.es.js +0 -1
  324. package/vendor/lodash-es/_arrayShuffle.es.js +0 -1
  325. package/vendor/lodash-es/_arraySome.es.js +0 -12
  326. package/vendor/lodash-es/_asciiSize.es.js +0 -1
  327. package/vendor/lodash-es/_asciiToArray.es.js +0 -1
  328. package/vendor/lodash-es/_asciiWords.es.js +0 -1
  329. package/vendor/lodash-es/_assignMergeValue.es.js +0 -1
  330. package/vendor/lodash-es/_assignValue.es.js +0 -13
  331. package/vendor/lodash-es/_assocIndexOf.es.js +0 -13
  332. package/vendor/lodash-es/_baseAggregator.es.js +0 -1
  333. package/vendor/lodash-es/_baseAssign.es.js +0 -1
  334. package/vendor/lodash-es/_baseAssignIn.es.js +0 -1
  335. package/vendor/lodash-es/_baseAssignValue.es.js +0 -16
  336. package/vendor/lodash-es/_baseAt.es.js +0 -1
  337. package/vendor/lodash-es/_baseClamp.es.js +0 -1
  338. package/vendor/lodash-es/_baseClone.es.js +0 -73
  339. package/vendor/lodash-es/_baseConforms.es.js +0 -1
  340. package/vendor/lodash-es/_baseConformsTo.es.js +0 -1
  341. package/vendor/lodash-es/_baseCreate.es.js +0 -21
  342. package/vendor/lodash-es/_baseDelay.es.js +0 -1
  343. package/vendor/lodash-es/_baseDifference.es.js +0 -1
  344. package/vendor/lodash-es/_baseEach.es.js +0 -1
  345. package/vendor/lodash-es/_baseEachRight.es.js +0 -1
  346. package/vendor/lodash-es/_baseEvery.es.js +0 -1
  347. package/vendor/lodash-es/_baseExtremum.es.js +0 -1
  348. package/vendor/lodash-es/_baseFill.es.js +0 -1
  349. package/vendor/lodash-es/_baseFilter.es.js +0 -1
  350. package/vendor/lodash-es/_baseFindIndex.es.js +0 -1
  351. package/vendor/lodash-es/_baseFindKey.es.js +0 -1
  352. package/vendor/lodash-es/_baseFlatten.es.js +0 -1
  353. package/vendor/lodash-es/_baseFor.es.js +0 -1
  354. package/vendor/lodash-es/_baseForOwn.es.js +0 -1
  355. package/vendor/lodash-es/_baseForOwnRight.es.js +0 -1
  356. package/vendor/lodash-es/_baseForRight.es.js +0 -1
  357. package/vendor/lodash-es/_baseFunctions.es.js +0 -1
  358. package/vendor/lodash-es/_baseGet.es.js +0 -1
  359. package/vendor/lodash-es/_baseGetAllKeys.es.js +0 -9
  360. package/vendor/lodash-es/_baseGetTag.es.js +0 -14
  361. package/vendor/lodash-es/_baseGt.es.js +0 -1
  362. package/vendor/lodash-es/_baseHas.es.js +0 -1
  363. package/vendor/lodash-es/_baseHasIn.es.js +0 -1
  364. package/vendor/lodash-es/_baseInRange.es.js +0 -1
  365. package/vendor/lodash-es/_baseIndexOf.es.js +0 -1
  366. package/vendor/lodash-es/_baseIndexOfWith.es.js +0 -1
  367. package/vendor/lodash-es/_baseIntersection.es.js +0 -1
  368. package/vendor/lodash-es/_baseInverter.es.js +0 -1
  369. package/vendor/lodash-es/_baseInvoke.es.js +0 -1
  370. package/vendor/lodash-es/_baseIsArguments.es.js +0 -9
  371. package/vendor/lodash-es/_baseIsArrayBuffer.es.js +0 -1
  372. package/vendor/lodash-es/_baseIsDate.es.js +0 -1
  373. package/vendor/lodash-es/_baseIsEqual.es.js +0 -14
  374. package/vendor/lodash-es/_baseIsEqualDeep.es.js +0 -45
  375. package/vendor/lodash-es/_baseIsMap.es.js +0 -9
  376. package/vendor/lodash-es/_baseIsMatch.es.js +0 -1
  377. package/vendor/lodash-es/_baseIsNaN.es.js +0 -1
  378. package/vendor/lodash-es/_baseIsNative.es.js +0 -22
  379. package/vendor/lodash-es/_baseIsRegExp.es.js +0 -1
  380. package/vendor/lodash-es/_baseIsSet.es.js +0 -9
  381. package/vendor/lodash-es/_baseIsTypedArray.es.js +0 -14
  382. package/vendor/lodash-es/_baseIteratee.es.js +0 -1
  383. package/vendor/lodash-es/_baseKeys.es.js +0 -19
  384. package/vendor/lodash-es/_baseKeysIn.es.js +0 -1
  385. package/vendor/lodash-es/_baseLodash.es.js +0 -1
  386. package/vendor/lodash-es/_baseLt.es.js +0 -1
  387. package/vendor/lodash-es/_baseMap.es.js +0 -1
  388. package/vendor/lodash-es/_baseMatches.es.js +0 -1
  389. package/vendor/lodash-es/_baseMatchesProperty.es.js +0 -1
  390. package/vendor/lodash-es/_baseMean.es.js +0 -1
  391. package/vendor/lodash-es/_baseMerge.es.js +0 -1
  392. package/vendor/lodash-es/_baseMergeDeep.es.js +0 -1
  393. package/vendor/lodash-es/_baseNth.es.js +0 -1
  394. package/vendor/lodash-es/_baseOrderBy.es.js +0 -1
  395. package/vendor/lodash-es/_basePick.es.js +0 -1
  396. package/vendor/lodash-es/_basePickBy.es.js +0 -1
  397. package/vendor/lodash-es/_baseProperty.es.js +0 -1
  398. package/vendor/lodash-es/_basePropertyDeep.es.js +0 -1
  399. package/vendor/lodash-es/_basePropertyOf.es.js +0 -1
  400. package/vendor/lodash-es/_basePullAll.es.js +0 -1
  401. package/vendor/lodash-es/_basePullAt.es.js +0 -1
  402. package/vendor/lodash-es/_baseRandom.es.js +0 -1
  403. package/vendor/lodash-es/_baseRange.es.js +0 -1
  404. package/vendor/lodash-es/_baseReduce.es.js +0 -1
  405. package/vendor/lodash-es/_baseRepeat.es.js +0 -1
  406. package/vendor/lodash-es/_baseRest.es.js +0 -1
  407. package/vendor/lodash-es/_baseSample.es.js +0 -1
  408. package/vendor/lodash-es/_baseSampleSize.es.js +0 -1
  409. package/vendor/lodash-es/_baseSet.es.js +0 -1
  410. package/vendor/lodash-es/_baseSetData.es.js +0 -1
  411. package/vendor/lodash-es/_baseSetToString.es.js +0 -1
  412. package/vendor/lodash-es/_baseShuffle.es.js +0 -1
  413. package/vendor/lodash-es/_baseSlice.es.js +0 -1
  414. package/vendor/lodash-es/_baseSome.es.js +0 -1
  415. package/vendor/lodash-es/_baseSortBy.es.js +0 -1
  416. package/vendor/lodash-es/_baseSortedIndex.es.js +0 -1
  417. package/vendor/lodash-es/_baseSortedIndexBy.es.js +0 -1
  418. package/vendor/lodash-es/_baseSortedUniq.es.js +0 -1
  419. package/vendor/lodash-es/_baseSum.es.js +0 -1
  420. package/vendor/lodash-es/_baseTimes.es.js +0 -10
  421. package/vendor/lodash-es/_baseToNumber.es.js +0 -1
  422. package/vendor/lodash-es/_baseToPairs.es.js +0 -1
  423. package/vendor/lodash-es/_baseToString.es.js +0 -1
  424. package/vendor/lodash-es/_baseTrim.es.js +0 -8
  425. package/vendor/lodash-es/_baseUnary.es.js +0 -8
  426. package/vendor/lodash-es/_baseUniq.es.js +0 -1
  427. package/vendor/lodash-es/_baseUnset.es.js +0 -1
  428. package/vendor/lodash-es/_baseUpdate.es.js +0 -1
  429. package/vendor/lodash-es/_baseValues.es.js +0 -1
  430. package/vendor/lodash-es/_baseWhile.es.js +0 -1
  431. package/vendor/lodash-es/_baseWrapperValue.es.js +0 -1
  432. package/vendor/lodash-es/_baseXor.es.js +0 -1
  433. package/vendor/lodash-es/_baseZipObject.es.js +0 -1
  434. package/vendor/lodash-es/_cacheHas.es.js +0 -6
  435. package/vendor/lodash-es/_castArrayLikeObject.es.js +0 -1
  436. package/vendor/lodash-es/_castFunction.es.js +0 -1
  437. package/vendor/lodash-es/_castPath.es.js +0 -1
  438. package/vendor/lodash-es/_castRest.es.js +0 -1
  439. package/vendor/lodash-es/_castSlice.es.js +0 -1
  440. package/vendor/lodash-es/_charsEndIndex.es.js +0 -1
  441. package/vendor/lodash-es/_charsStartIndex.es.js +0 -1
  442. package/vendor/lodash-es/_cloneArrayBuffer.es.js +0 -9
  443. package/vendor/lodash-es/_cloneBuffer.es.js +0 -14
  444. package/vendor/lodash-es/_cloneDataView.es.js +0 -8
  445. package/vendor/lodash-es/_cloneRegExp.es.js +0 -9
  446. package/vendor/lodash-es/_cloneSymbol.es.js +0 -8
  447. package/vendor/lodash-es/_cloneTypedArray.es.js +0 -8
  448. package/vendor/lodash-es/_compareAscending.es.js +0 -1
  449. package/vendor/lodash-es/_compareMultiple.es.js +0 -1
  450. package/vendor/lodash-es/_composeArgs.es.js +0 -1
  451. package/vendor/lodash-es/_composeArgsRight.es.js +0 -1
  452. package/vendor/lodash-es/_copyArray.es.js +0 -1
  453. package/vendor/lodash-es/_copyObject.es.js +0 -1
  454. package/vendor/lodash-es/_copySymbols.es.js +0 -1
  455. package/vendor/lodash-es/_copySymbolsIn.es.js +0 -1
  456. package/vendor/lodash-es/_coreJsData.es.js +0 -5
  457. package/vendor/lodash-es/_countHolders.es.js +0 -1
  458. package/vendor/lodash-es/_createAggregator.es.js +0 -1
  459. package/vendor/lodash-es/_createAssigner.es.js +0 -1
  460. package/vendor/lodash-es/_createBaseEach.es.js +0 -1
  461. package/vendor/lodash-es/_createBaseFor.es.js +0 -1
  462. package/vendor/lodash-es/_createBind.es.js +0 -1
  463. package/vendor/lodash-es/_createCaseFirst.es.js +0 -1
  464. package/vendor/lodash-es/_createCompounder.es.js +0 -1
  465. package/vendor/lodash-es/_createCtor.es.js +0 -1
  466. package/vendor/lodash-es/_createCurry.es.js +0 -1
  467. package/vendor/lodash-es/_createFind.es.js +0 -1
  468. package/vendor/lodash-es/_createFlow.es.js +0 -1
  469. package/vendor/lodash-es/_createHybrid.es.js +0 -1
  470. package/vendor/lodash-es/_createInverter.es.js +0 -1
  471. package/vendor/lodash-es/_createMathOperation.es.js +0 -1
  472. package/vendor/lodash-es/_createOver.es.js +0 -1
  473. package/vendor/lodash-es/_createPadding.es.js +0 -1
  474. package/vendor/lodash-es/_createPartial.es.js +0 -1
  475. package/vendor/lodash-es/_createRange.es.js +0 -1
  476. package/vendor/lodash-es/_createRecurry.es.js +0 -1
  477. package/vendor/lodash-es/_createRelationalOperation.es.js +0 -1
  478. package/vendor/lodash-es/_createRound.es.js +0 -1
  479. package/vendor/lodash-es/_createSet.es.js +0 -1
  480. package/vendor/lodash-es/_createToPairs.es.js +0 -1
  481. package/vendor/lodash-es/_createWrap.es.js +0 -1
  482. package/vendor/lodash-es/_customDefaultsAssignIn.es.js +0 -1
  483. package/vendor/lodash-es/_customDefaultsMerge.es.js +0 -1
  484. package/vendor/lodash-es/_customOmitClone.es.js +0 -1
  485. package/vendor/lodash-es/_deburrLetter.es.js +0 -1
  486. package/vendor/lodash-es/_defineProperty.es.js +0 -12
  487. package/vendor/lodash-es/_equalArrays.es.js +0 -50
  488. package/vendor/lodash-es/_equalByTag.es.js +0 -59
  489. package/vendor/lodash-es/_equalObjects.es.js +0 -50
  490. package/vendor/lodash-es/_escapeHtmlChar.es.js +0 -1
  491. package/vendor/lodash-es/_escapeStringChar.es.js +0 -1
  492. package/vendor/lodash-es/_flatRest.es.js +0 -1
  493. package/vendor/lodash-es/_freeGlobal.es.js +0 -4
  494. package/vendor/lodash-es/_getAllKeys.es.js +0 -9
  495. package/vendor/lodash-es/_getAllKeysIn.es.js +0 -1
  496. package/vendor/lodash-es/_getData.es.js +0 -1
  497. package/vendor/lodash-es/_getFuncName.es.js +0 -1
  498. package/vendor/lodash-es/_getHolder.es.js +0 -1
  499. package/vendor/lodash-es/_getMapData.es.js +0 -8
  500. package/vendor/lodash-es/_getMatchData.es.js +0 -1
  501. package/vendor/lodash-es/_getNative.es.js +0 -9
  502. package/vendor/lodash-es/_getPrototype.es.js +0 -5
  503. package/vendor/lodash-es/_getRawTag.es.js +0 -25
  504. package/vendor/lodash-es/_getSymbols.es.js +0 -17
  505. package/vendor/lodash-es/_getSymbolsIn.es.js +0 -1
  506. package/vendor/lodash-es/_getTag.es.js +0 -34
  507. package/vendor/lodash-es/_getValue.es.js +0 -6
  508. package/vendor/lodash-es/_getView.es.js +0 -1
  509. package/vendor/lodash-es/_getWrapDetails.es.js +0 -1
  510. package/vendor/lodash-es/_hasPath.es.js +0 -1
  511. package/vendor/lodash-es/_hasUnicode.es.js +0 -1
  512. package/vendor/lodash-es/_hasUnicodeWord.es.js +0 -1
  513. package/vendor/lodash-es/_hashClear.es.js +0 -8
  514. package/vendor/lodash-es/_hashDelete.es.js +0 -8
  515. package/vendor/lodash-es/_hashGet.es.js +0 -15
  516. package/vendor/lodash-es/_hashHas.es.js +0 -10
  517. package/vendor/lodash-es/_hashSet.es.js +0 -11
  518. package/vendor/lodash-es/_initCloneArray.es.js +0 -13
  519. package/vendor/lodash-es/_initCloneByTag.es.js +0 -43
  520. package/vendor/lodash-es/_initCloneObject.es.js +0 -9
  521. package/vendor/lodash-es/_insertWrapDetails.es.js +0 -1
  522. package/vendor/lodash-es/_isFlattenable.es.js +0 -1
  523. package/vendor/lodash-es/_isIndex.es.js +0 -10
  524. package/vendor/lodash-es/_isIterateeCall.es.js +0 -1
  525. package/vendor/lodash-es/_isKey.es.js +0 -1
  526. package/vendor/lodash-es/_isKeyable.es.js +0 -7
  527. package/vendor/lodash-es/_isLaziable.es.js +0 -1
  528. package/vendor/lodash-es/_isMaskable.es.js +0 -1
  529. package/vendor/lodash-es/_isMasked.es.js +0 -11
  530. package/vendor/lodash-es/_isPrototype.es.js +0 -8
  531. package/vendor/lodash-es/_isStrictComparable.es.js +0 -1
  532. package/vendor/lodash-es/_iteratorToArray.es.js +0 -1
  533. package/vendor/lodash-es/_lazyClone.es.js +0 -1
  534. package/vendor/lodash-es/_lazyReverse.es.js +0 -1
  535. package/vendor/lodash-es/_lazyValue.es.js +0 -1
  536. package/vendor/lodash-es/_listCacheClear.es.js +0 -7
  537. package/vendor/lodash-es/_listCacheDelete.es.js +0 -20
  538. package/vendor/lodash-es/_listCacheGet.es.js +0 -8
  539. package/vendor/lodash-es/_listCacheHas.es.js +0 -7
  540. package/vendor/lodash-es/_listCacheSet.es.js +0 -14
  541. package/vendor/lodash-es/_mapCacheClear.es.js +0 -14
  542. package/vendor/lodash-es/_mapCacheDelete.es.js +0 -9
  543. package/vendor/lodash-es/_mapCacheGet.es.js +0 -7
  544. package/vendor/lodash-es/_mapCacheHas.es.js +0 -7
  545. package/vendor/lodash-es/_mapCacheSet.es.js +0 -10
  546. package/vendor/lodash-es/_mapToArray.es.js +0 -10
  547. package/vendor/lodash-es/_matchesStrictComparable.es.js +0 -1
  548. package/vendor/lodash-es/_memoizeCapped.es.js +0 -1
  549. package/vendor/lodash-es/_mergeData.es.js +0 -1
  550. package/vendor/lodash-es/_metaMap.es.js +0 -1
  551. package/vendor/lodash-es/_nativeCreate.es.js +0 -5
  552. package/vendor/lodash-es/_nativeKeys.es.js +0 -5
  553. package/vendor/lodash-es/_nativeKeysIn.es.js +0 -1
  554. package/vendor/lodash-es/_nodeUtil.es.js +0 -18
  555. package/vendor/lodash-es/_objectToString.es.js +0 -8
  556. package/vendor/lodash-es/_overArg.es.js +0 -8
  557. package/vendor/lodash-es/_overRest.es.js +0 -1
  558. package/vendor/lodash-es/_parent.es.js +0 -1
  559. package/vendor/lodash-es/_reEscape.es.js +0 -1
  560. package/vendor/lodash-es/_reEvaluate.es.js +0 -1
  561. package/vendor/lodash-es/_reInterpolate.es.js +0 -1
  562. package/vendor/lodash-es/_realNames.es.js +0 -1
  563. package/vendor/lodash-es/_reorder.es.js +0 -1
  564. package/vendor/lodash-es/_replaceHolders.es.js +0 -1
  565. package/vendor/lodash-es/_root.es.js +0 -6
  566. package/vendor/lodash-es/_safeGet.es.js +0 -1
  567. package/vendor/lodash-es/_setCacheAdd.es.js +0 -8
  568. package/vendor/lodash-es/_setCacheHas.es.js +0 -6
  569. package/vendor/lodash-es/_setData.es.js +0 -1
  570. package/vendor/lodash-es/_setToArray.es.js +0 -10
  571. package/vendor/lodash-es/_setToPairs.es.js +0 -1
  572. package/vendor/lodash-es/_setToString.es.js +0 -1
  573. package/vendor/lodash-es/_setWrapToString.es.js +0 -1
  574. package/vendor/lodash-es/_shortOut.es.js +0 -1
  575. package/vendor/lodash-es/_shuffleSelf.es.js +0 -1
  576. package/vendor/lodash-es/_stackClear.es.js +0 -8
  577. package/vendor/lodash-es/_stackDelete.es.js +0 -8
  578. package/vendor/lodash-es/_stackGet.es.js +0 -6
  579. package/vendor/lodash-es/_stackHas.es.js +0 -6
  580. package/vendor/lodash-es/_stackSet.es.js +0 -22
  581. package/vendor/lodash-es/_strictIndexOf.es.js +0 -1
  582. package/vendor/lodash-es/_strictLastIndexOf.es.js +0 -1
  583. package/vendor/lodash-es/_stringSize.es.js +0 -1
  584. package/vendor/lodash-es/_stringToArray.es.js +0 -1
  585. package/vendor/lodash-es/_stringToPath.es.js +0 -1
  586. package/vendor/lodash-es/_toKey.es.js +0 -1
  587. package/vendor/lodash-es/_toSource.es.js +0 -18
  588. package/vendor/lodash-es/_trimmedEndIndex.es.js +0 -10
  589. package/vendor/lodash-es/_unescapeHtmlChar.es.js +0 -1
  590. package/vendor/lodash-es/_unicodeSize.es.js +0 -1
  591. package/vendor/lodash-es/_unicodeToArray.es.js +0 -1
  592. package/vendor/lodash-es/_unicodeWords.es.js +0 -1
  593. package/vendor/lodash-es/_updateWrapDetails.es.js +0 -1
  594. package/vendor/lodash-es/_wrapperClone.es.js +0 -1
  595. package/vendor/lodash-es/add.es.js +0 -1
  596. package/vendor/lodash-es/after.es.js +0 -1
  597. package/vendor/lodash-es/array.default.es.js +0 -1
  598. package/vendor/lodash-es/array.es.js +0 -1
  599. package/vendor/lodash-es/ary.es.js +0 -1
  600. package/vendor/lodash-es/assign.es.js +0 -1
  601. package/vendor/lodash-es/assignIn.es.js +0 -1
  602. package/vendor/lodash-es/assignInWith.es.js +0 -1
  603. package/vendor/lodash-es/assignWith.es.js +0 -1
  604. package/vendor/lodash-es/at.es.js +0 -1
  605. package/vendor/lodash-es/attempt.es.js +0 -1
  606. package/vendor/lodash-es/before.es.js +0 -1
  607. package/vendor/lodash-es/bind.es.js +0 -1
  608. package/vendor/lodash-es/bindAll.es.js +0 -1
  609. package/vendor/lodash-es/bindKey.es.js +0 -1
  610. package/vendor/lodash-es/camelCase.es.js +0 -1
  611. package/vendor/lodash-es/capitalize.es.js +0 -1
  612. package/vendor/lodash-es/castArray.es.js +0 -1
  613. package/vendor/lodash-es/ceil.es.js +0 -1
  614. package/vendor/lodash-es/chain.es.js +0 -1
  615. package/vendor/lodash-es/chunk.es.js +0 -1
  616. package/vendor/lodash-es/clamp.es.js +0 -1
  617. package/vendor/lodash-es/clone.es.js +0 -1
  618. package/vendor/lodash-es/cloneDeep.es.js +0 -8
  619. package/vendor/lodash-es/cloneDeepWith.es.js +0 -1
  620. package/vendor/lodash-es/cloneWith.es.js +0 -1
  621. package/vendor/lodash-es/collection.default.es.js +0 -1
  622. package/vendor/lodash-es/collection.es.js +0 -1
  623. package/vendor/lodash-es/commit.es.js +0 -1
  624. package/vendor/lodash-es/compact.es.js +0 -1
  625. package/vendor/lodash-es/concat.es.js +0 -1
  626. package/vendor/lodash-es/cond.es.js +0 -1
  627. package/vendor/lodash-es/conforms.es.js +0 -1
  628. package/vendor/lodash-es/conformsTo.es.js +0 -1
  629. package/vendor/lodash-es/constant.es.js +0 -1
  630. package/vendor/lodash-es/countBy.es.js +0 -1
  631. package/vendor/lodash-es/create.es.js +0 -1
  632. package/vendor/lodash-es/curry.es.js +0 -1
  633. package/vendor/lodash-es/curryRight.es.js +0 -1
  634. package/vendor/lodash-es/date.default.es.js +0 -1
  635. package/vendor/lodash-es/date.es.js +0 -1
  636. package/vendor/lodash-es/debounce.es.js +0 -89
  637. package/vendor/lodash-es/deburr.es.js +0 -1
  638. package/vendor/lodash-es/defaultTo.es.js +0 -1
  639. package/vendor/lodash-es/defaults.es.js +0 -1
  640. package/vendor/lodash-es/defaultsDeep.es.js +0 -1
  641. package/vendor/lodash-es/defer.es.js +0 -1
  642. package/vendor/lodash-es/delay.es.js +0 -1
  643. package/vendor/lodash-es/difference.es.js +0 -1
  644. package/vendor/lodash-es/differenceBy.es.js +0 -1
  645. package/vendor/lodash-es/differenceWith.es.js +0 -1
  646. package/vendor/lodash-es/divide.es.js +0 -1
  647. package/vendor/lodash-es/drop.es.js +0 -1
  648. package/vendor/lodash-es/dropRight.es.js +0 -1
  649. package/vendor/lodash-es/dropRightWhile.es.js +0 -1
  650. package/vendor/lodash-es/dropWhile.es.js +0 -1
  651. package/vendor/lodash-es/each.es.js +0 -1
  652. package/vendor/lodash-es/eachRight.es.js +0 -1
  653. package/vendor/lodash-es/endsWith.es.js +0 -1
  654. package/vendor/lodash-es/entries.es.js +0 -1
  655. package/vendor/lodash-es/entriesIn.es.js +0 -1
  656. package/vendor/lodash-es/eq.es.js +0 -6
  657. package/vendor/lodash-es/escape.es.js +0 -1
  658. package/vendor/lodash-es/escapeRegExp.es.js +0 -1
  659. package/vendor/lodash-es/every.es.js +0 -1
  660. package/vendor/lodash-es/extend.es.js +0 -1
  661. package/vendor/lodash-es/extendWith.es.js +0 -1
  662. package/vendor/lodash-es/fill.es.js +0 -1
  663. package/vendor/lodash-es/filter.es.js +0 -1
  664. package/vendor/lodash-es/find.es.js +0 -1
  665. package/vendor/lodash-es/findIndex.es.js +0 -1
  666. package/vendor/lodash-es/findKey.es.js +0 -1
  667. package/vendor/lodash-es/findLast.es.js +0 -1
  668. package/vendor/lodash-es/findLastIndex.es.js +0 -1
  669. package/vendor/lodash-es/findLastKey.es.js +0 -1
  670. package/vendor/lodash-es/first.es.js +0 -1
  671. package/vendor/lodash-es/flatMap.es.js +0 -1
  672. package/vendor/lodash-es/flatMapDeep.es.js +0 -1
  673. package/vendor/lodash-es/flatMapDepth.es.js +0 -1
  674. package/vendor/lodash-es/flatten.es.js +0 -1
  675. package/vendor/lodash-es/flattenDeep.es.js +0 -1
  676. package/vendor/lodash-es/flattenDepth.es.js +0 -1
  677. package/vendor/lodash-es/flip.es.js +0 -1
  678. package/vendor/lodash-es/floor.es.js +0 -1
  679. package/vendor/lodash-es/flow.es.js +0 -1
  680. package/vendor/lodash-es/flowRight.es.js +0 -1
  681. package/vendor/lodash-es/forEach.es.js +0 -1
  682. package/vendor/lodash-es/forEachRight.es.js +0 -1
  683. package/vendor/lodash-es/forIn.es.js +0 -1
  684. package/vendor/lodash-es/forInRight.es.js +0 -1
  685. package/vendor/lodash-es/forOwn.es.js +0 -1
  686. package/vendor/lodash-es/forOwnRight.es.js +0 -1
  687. package/vendor/lodash-es/fromPairs.es.js +0 -1
  688. package/vendor/lodash-es/function.default.es.js +0 -1
  689. package/vendor/lodash-es/function.es.js +0 -1
  690. package/vendor/lodash-es/functions.es.js +0 -1
  691. package/vendor/lodash-es/functionsIn.es.js +0 -1
  692. package/vendor/lodash-es/get.es.js +0 -1
  693. package/vendor/lodash-es/groupBy.es.js +0 -1
  694. package/vendor/lodash-es/gt.es.js +0 -1
  695. package/vendor/lodash-es/gte.es.js +0 -1
  696. package/vendor/lodash-es/has.es.js +0 -1
  697. package/vendor/lodash-es/hasIn.es.js +0 -1
  698. package/vendor/lodash-es/head.es.js +0 -1
  699. package/vendor/lodash-es/identity.es.js +0 -1
  700. package/vendor/lodash-es/inRange.es.js +0 -1
  701. package/vendor/lodash-es/includes.es.js +0 -1
  702. package/vendor/lodash-es/indexOf.es.js +0 -1
  703. package/vendor/lodash-es/initial.es.js +0 -1
  704. package/vendor/lodash-es/intersection.es.js +0 -1
  705. package/vendor/lodash-es/intersectionBy.es.js +0 -1
  706. package/vendor/lodash-es/intersectionWith.es.js +0 -1
  707. package/vendor/lodash-es/invert.es.js +0 -1
  708. package/vendor/lodash-es/invertBy.es.js +0 -1
  709. package/vendor/lodash-es/invoke.es.js +0 -1
  710. package/vendor/lodash-es/invokeMap.es.js +0 -1
  711. package/vendor/lodash-es/isArguments.es.js +0 -13
  712. package/vendor/lodash-es/isArray.es.js +0 -4
  713. package/vendor/lodash-es/isArrayBuffer.es.js +0 -1
  714. package/vendor/lodash-es/isArrayLike.es.js +0 -8
  715. package/vendor/lodash-es/isArrayLikeObject.es.js +0 -1
  716. package/vendor/lodash-es/isBoolean.es.js +0 -1
  717. package/vendor/lodash-es/isBuffer.es.js +0 -11
  718. package/vendor/lodash-es/isDate.es.js +0 -1
  719. package/vendor/lodash-es/isElement.es.js +0 -1
  720. package/vendor/lodash-es/isEmpty.es.js +0 -1
  721. package/vendor/lodash-es/isEqual.es.js +0 -7
  722. package/vendor/lodash-es/isEqualWith.es.js +0 -1
  723. package/vendor/lodash-es/isError.es.js +0 -1
  724. package/vendor/lodash-es/isFinite.es.js +0 -1
  725. package/vendor/lodash-es/isFunction.es.js +0 -13
  726. package/vendor/lodash-es/isInteger.es.js +0 -1
  727. package/vendor/lodash-es/isLength.es.js +0 -7
  728. package/vendor/lodash-es/isMap.es.js +0 -8
  729. package/vendor/lodash-es/isMatch.es.js +0 -1
  730. package/vendor/lodash-es/isMatchWith.es.js +0 -1
  731. package/vendor/lodash-es/isNaN.es.js +0 -1
  732. package/vendor/lodash-es/isNative.es.js +0 -1
  733. package/vendor/lodash-es/isNil.es.js +0 -1
  734. package/vendor/lodash-es/isNull.es.js +0 -1
  735. package/vendor/lodash-es/isNumber.es.js +0 -1
  736. package/vendor/lodash-es/isObject.es.js +0 -7
  737. package/vendor/lodash-es/isObjectLike.es.js +0 -6
  738. package/vendor/lodash-es/isPlainObject.es.js +0 -1
  739. package/vendor/lodash-es/isRegExp.es.js +0 -1
  740. package/vendor/lodash-es/isSafeInteger.es.js +0 -1
  741. package/vendor/lodash-es/isSet.es.js +0 -8
  742. package/vendor/lodash-es/isString.es.js +0 -1
  743. package/vendor/lodash-es/isSymbol.es.js +0 -9
  744. package/vendor/lodash-es/isTypedArray.es.js +0 -8
  745. package/vendor/lodash-es/isUndefined.es.js +0 -1
  746. package/vendor/lodash-es/isWeakMap.es.js +0 -1
  747. package/vendor/lodash-es/isWeakSet.es.js +0 -1
  748. package/vendor/lodash-es/iteratee.es.js +0 -1
  749. package/vendor/lodash-es/join.es.js +0 -1
  750. package/vendor/lodash-es/kebabCase.es.js +0 -1
  751. package/vendor/lodash-es/keyBy.es.js +0 -1
  752. package/vendor/lodash-es/keys.es.js +0 -9
  753. package/vendor/lodash-es/keysIn.es.js +0 -1
  754. package/vendor/lodash-es/lang.default.es.js +0 -1
  755. package/vendor/lodash-es/lang.es.js +0 -1
  756. package/vendor/lodash-es/last.es.js +0 -1
  757. package/vendor/lodash-es/lastIndexOf.es.js +0 -1
  758. package/vendor/lodash-es/lodash.default.es.js +0 -1
  759. package/vendor/lodash-es/lodash.es.js +0 -1
  760. package/vendor/lodash-es/lowerCase.es.js +0 -1
  761. package/vendor/lodash-es/lowerFirst.es.js +0 -1
  762. package/vendor/lodash-es/lt.es.js +0 -1
  763. package/vendor/lodash-es/lte.es.js +0 -1
  764. package/vendor/lodash-es/map.es.js +0 -1
  765. package/vendor/lodash-es/mapKeys.es.js +0 -1
  766. package/vendor/lodash-es/mapValues.es.js +0 -1
  767. package/vendor/lodash-es/matches.es.js +0 -1
  768. package/vendor/lodash-es/matchesProperty.es.js +0 -1
  769. package/vendor/lodash-es/math.default.es.js +0 -1
  770. package/vendor/lodash-es/math.es.js +0 -1
  771. package/vendor/lodash-es/max.es.js +0 -1
  772. package/vendor/lodash-es/maxBy.es.js +0 -1
  773. package/vendor/lodash-es/mean.es.js +0 -1
  774. package/vendor/lodash-es/meanBy.es.js +0 -1
  775. package/vendor/lodash-es/memoize.es.js +0 -1
  776. package/vendor/lodash-es/merge.es.js +0 -1
  777. package/vendor/lodash-es/mergeWith.es.js +0 -1
  778. package/vendor/lodash-es/method.es.js +0 -1
  779. package/vendor/lodash-es/methodOf.es.js +0 -1
  780. package/vendor/lodash-es/min.es.js +0 -1
  781. package/vendor/lodash-es/minBy.es.js +0 -1
  782. package/vendor/lodash-es/mixin.es.js +0 -1
  783. package/vendor/lodash-es/multiply.es.js +0 -1
  784. package/vendor/lodash-es/negate.es.js +0 -1
  785. package/vendor/lodash-es/next.es.js +0 -1
  786. package/vendor/lodash-es/noop.es.js +0 -1
  787. package/vendor/lodash-es/now.es.js +0 -7
  788. package/vendor/lodash-es/nth.es.js +0 -1
  789. package/vendor/lodash-es/nthArg.es.js +0 -1
  790. package/vendor/lodash-es/number.default.es.js +0 -1
  791. package/vendor/lodash-es/number.es.js +0 -1
  792. package/vendor/lodash-es/object.default.es.js +0 -1
  793. package/vendor/lodash-es/object.es.js +0 -1
  794. package/vendor/lodash-es/omit.es.js +0 -1
  795. package/vendor/lodash-es/omitBy.es.js +0 -1
  796. package/vendor/lodash-es/once.es.js +0 -1
  797. package/vendor/lodash-es/orderBy.es.js +0 -1
  798. package/vendor/lodash-es/over.es.js +0 -1
  799. package/vendor/lodash-es/overArgs.es.js +0 -1
  800. package/vendor/lodash-es/overEvery.es.js +0 -1
  801. package/vendor/lodash-es/overSome.es.js +0 -1
  802. package/vendor/lodash-es/pad.es.js +0 -1
  803. package/vendor/lodash-es/padEnd.es.js +0 -1
  804. package/vendor/lodash-es/padStart.es.js +0 -1
  805. package/vendor/lodash-es/parseInt.es.js +0 -1
  806. package/vendor/lodash-es/partial.es.js +0 -1
  807. package/vendor/lodash-es/partialRight.es.js +0 -1
  808. package/vendor/lodash-es/partition.es.js +0 -1
  809. package/vendor/lodash-es/pick.es.js +0 -1
  810. package/vendor/lodash-es/pickBy.es.js +0 -1
  811. package/vendor/lodash-es/plant.es.js +0 -1
  812. package/vendor/lodash-es/property.es.js +0 -1
  813. package/vendor/lodash-es/propertyOf.es.js +0 -1
  814. package/vendor/lodash-es/pull.es.js +0 -1
  815. package/vendor/lodash-es/pullAll.es.js +0 -1
  816. package/vendor/lodash-es/pullAllBy.es.js +0 -1
  817. package/vendor/lodash-es/pullAllWith.es.js +0 -1
  818. package/vendor/lodash-es/pullAt.es.js +0 -1
  819. package/vendor/lodash-es/random.es.js +0 -1
  820. package/vendor/lodash-es/range.es.js +0 -1
  821. package/vendor/lodash-es/rangeRight.es.js +0 -1
  822. package/vendor/lodash-es/rearg.es.js +0 -1
  823. package/vendor/lodash-es/reduce.es.js +0 -1
  824. package/vendor/lodash-es/reduceRight.es.js +0 -1
  825. package/vendor/lodash-es/reject.es.js +0 -1
  826. package/vendor/lodash-es/remove.es.js +0 -1
  827. package/vendor/lodash-es/repeat.es.js +0 -1
  828. package/vendor/lodash-es/replace.es.js +0 -1
  829. package/vendor/lodash-es/rest.es.js +0 -1
  830. package/vendor/lodash-es/result.es.js +0 -1
  831. package/vendor/lodash-es/reverse.es.js +0 -1
  832. package/vendor/lodash-es/round.es.js +0 -1
  833. package/vendor/lodash-es/sample.es.js +0 -1
  834. package/vendor/lodash-es/sampleSize.es.js +0 -1
  835. package/vendor/lodash-es/seq.default.es.js +0 -1
  836. package/vendor/lodash-es/seq.es.js +0 -1
  837. package/vendor/lodash-es/set.es.js +0 -1
  838. package/vendor/lodash-es/setWith.es.js +0 -1
  839. package/vendor/lodash-es/shuffle.es.js +0 -1
  840. package/vendor/lodash-es/size.es.js +0 -1
  841. package/vendor/lodash-es/slice.es.js +0 -1
  842. package/vendor/lodash-es/snakeCase.es.js +0 -1
  843. package/vendor/lodash-es/some.es.js +0 -1
  844. package/vendor/lodash-es/sortBy.es.js +0 -1
  845. package/vendor/lodash-es/sortedIndex.es.js +0 -1
  846. package/vendor/lodash-es/sortedIndexBy.es.js +0 -1
  847. package/vendor/lodash-es/sortedIndexOf.es.js +0 -1
  848. package/vendor/lodash-es/sortedLastIndex.es.js +0 -1
  849. package/vendor/lodash-es/sortedLastIndexBy.es.js +0 -1
  850. package/vendor/lodash-es/sortedLastIndexOf.es.js +0 -1
  851. package/vendor/lodash-es/sortedUniq.es.js +0 -1
  852. package/vendor/lodash-es/sortedUniqBy.es.js +0 -1
  853. package/vendor/lodash-es/split.es.js +0 -1
  854. package/vendor/lodash-es/spread.es.js +0 -1
  855. package/vendor/lodash-es/startCase.es.js +0 -1
  856. package/vendor/lodash-es/startsWith.es.js +0 -1
  857. package/vendor/lodash-es/string.default.es.js +0 -1
  858. package/vendor/lodash-es/string.es.js +0 -1
  859. package/vendor/lodash-es/stubArray.es.js +0 -6
  860. package/vendor/lodash-es/stubFalse.es.js +0 -6
  861. package/vendor/lodash-es/stubObject.es.js +0 -1
  862. package/vendor/lodash-es/stubString.es.js +0 -1
  863. package/vendor/lodash-es/stubTrue.es.js +0 -1
  864. package/vendor/lodash-es/subtract.es.js +0 -1
  865. package/vendor/lodash-es/sum.es.js +0 -1
  866. package/vendor/lodash-es/sumBy.es.js +0 -1
  867. package/vendor/lodash-es/tail.es.js +0 -1
  868. package/vendor/lodash-es/take.es.js +0 -1
  869. package/vendor/lodash-es/takeRight.es.js +0 -1
  870. package/vendor/lodash-es/takeRightWhile.es.js +0 -1
  871. package/vendor/lodash-es/takeWhile.es.js +0 -1
  872. package/vendor/lodash-es/tap.es.js +0 -1
  873. package/vendor/lodash-es/template.es.js +0 -1
  874. package/vendor/lodash-es/templateSettings.es.js +0 -1
  875. package/vendor/lodash-es/throttle.es.js +0 -1
  876. package/vendor/lodash-es/thru.es.js +0 -1
  877. package/vendor/lodash-es/times.es.js +0 -1
  878. package/vendor/lodash-es/toArray.es.js +0 -1
  879. package/vendor/lodash-es/toFinite.es.js +0 -1
  880. package/vendor/lodash-es/toInteger.es.js +0 -1
  881. package/vendor/lodash-es/toIterator.es.js +0 -1
  882. package/vendor/lodash-es/toJSON.es.js +0 -1
  883. package/vendor/lodash-es/toLength.es.js +0 -1
  884. package/vendor/lodash-es/toLower.es.js +0 -1
  885. package/vendor/lodash-es/toNumber.es.js +0 -29
  886. package/vendor/lodash-es/toPairs.es.js +0 -1
  887. package/vendor/lodash-es/toPairsIn.es.js +0 -1
  888. package/vendor/lodash-es/toPath.es.js +0 -1
  889. package/vendor/lodash-es/toPlainObject.es.js +0 -1
  890. package/vendor/lodash-es/toSafeInteger.es.js +0 -1
  891. package/vendor/lodash-es/toString.es.js +0 -6
  892. package/vendor/lodash-es/toUpper.es.js +0 -1
  893. package/vendor/lodash-es/transform.es.js +0 -1
  894. package/vendor/lodash-es/trim.es.js +0 -1
  895. package/vendor/lodash-es/trimEnd.es.js +0 -1
  896. package/vendor/lodash-es/trimStart.es.js +0 -1
  897. package/vendor/lodash-es/truncate.es.js +0 -1
  898. package/vendor/lodash-es/unary.es.js +0 -1
  899. package/vendor/lodash-es/unescape.es.js +0 -1
  900. package/vendor/lodash-es/union.es.js +0 -1
  901. package/vendor/lodash-es/unionBy.es.js +0 -1
  902. package/vendor/lodash-es/unionWith.es.js +0 -1
  903. package/vendor/lodash-es/uniq.es.js +0 -1
  904. package/vendor/lodash-es/uniqBy.es.js +0 -1
  905. package/vendor/lodash-es/uniqWith.es.js +0 -1
  906. package/vendor/lodash-es/uniqueId.es.js +0 -9
  907. package/vendor/lodash-es/unset.es.js +0 -1
  908. package/vendor/lodash-es/unzip.es.js +0 -1
  909. package/vendor/lodash-es/unzipWith.es.js +0 -1
  910. package/vendor/lodash-es/update.es.js +0 -1
  911. package/vendor/lodash-es/updateWith.es.js +0 -1
  912. package/vendor/lodash-es/upperCase.es.js +0 -1
  913. package/vendor/lodash-es/upperFirst.es.js +0 -1
  914. package/vendor/lodash-es/util.default.es.js +0 -1
  915. package/vendor/lodash-es/util.es.js +0 -1
  916. package/vendor/lodash-es/value.es.js +0 -1
  917. package/vendor/lodash-es/valueOf.es.js +0 -1
  918. package/vendor/lodash-es/values.es.js +0 -1
  919. package/vendor/lodash-es/valuesIn.es.js +0 -1
  920. package/vendor/lodash-es/without.es.js +0 -1
  921. package/vendor/lodash-es/words.es.js +0 -1
  922. package/vendor/lodash-es/wrap.es.js +0 -1
  923. package/vendor/lodash-es/wrapperAt.es.js +0 -1
  924. package/vendor/lodash-es/wrapperChain.es.js +0 -1
  925. package/vendor/lodash-es/wrapperLodash.es.js +0 -1
  926. package/vendor/lodash-es/wrapperReverse.es.js +0 -1
  927. package/vendor/lodash-es/wrapperValue.es.js +0 -1
  928. package/vendor/lodash-es/xor.es.js +0 -1
  929. package/vendor/lodash-es/xorBy.es.js +0 -1
  930. package/vendor/lodash-es/xorWith.es.js +0 -1
  931. package/vendor/lodash-es/zip.es.js +0 -1
  932. package/vendor/lodash-es/zipObject.es.js +0 -1
  933. package/vendor/lodash-es/zipObjectDeep.es.js +0 -1
  934. package/vendor/lodash-es/zipWith.es.js +0 -1
  935. package/vendor/orderedmap/dist/index.es.js +0 -119
  936. package/vendor/primevue/api/api.esm.es.js +0 -276
  937. package/vendor/primevue/avatar/avatar.esm.es.js +0 -85
  938. package/vendor/primevue/avatar/style/avatarstyle.esm.es.js +0 -21
  939. package/vendor/primevue/avatargroup/avatargroup.esm.es.js +0 -27
  940. package/vendor/primevue/avatargroup/style/avatargroupstyle.esm.es.js +0 -11
  941. package/vendor/primevue/badge/badge.esm.es.js +0 -43
  942. package/vendor/primevue/badge/style/badgestyle.esm.es.js +0 -26
  943. package/vendor/primevue/base/style/basestyle.esm.es.js +0 -129
  944. package/vendor/primevue/basecomponent/basecomponent.esm.es.js +0 -475
  945. package/vendor/primevue/basedirective/basedirective.esm.es.js +0 -326
  946. package/vendor/primevue/baseicon/baseicon.esm.es.js +0 -87
  947. package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +0 -9
  948. package/vendor/primevue/button/button.esm.es.js +0 -167
  949. package/vendor/primevue/button/style/buttonstyle.esm.es.js +0 -63
  950. package/vendor/primevue/card/card.esm.es.js +0 -41
  951. package/vendor/primevue/card/style/cardstyle.esm.es.js +0 -18
  952. package/vendor/primevue/checkbox/checkbox.esm.es.js +0 -197
  953. package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +0 -22
  954. package/vendor/primevue/config/config.esm.es.js +0 -230
  955. package/vendor/primevue/dialog/dialog.esm.es.js +0 -641
  956. package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +0 -59
  957. package/vendor/primevue/dropdown/dropdown.esm.es.js +0 -1443
  958. package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +0 -67
  959. package/vendor/primevue/fileupload/fileupload.esm.es.js +0 -870
  960. package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +0 -37
  961. package/vendor/primevue/focustrap/focustrap.esm.es.js +0 -167
  962. package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +0 -4
  963. package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +0 -26
  964. package/vendor/primevue/icons/angledoubleright/index.esm.es.js +0 -26
  965. package/vendor/primevue/icons/angledown/index.esm.es.js +0 -24
  966. package/vendor/primevue/icons/angleleft/index.esm.es.js +0 -24
  967. package/vendor/primevue/icons/angleright/index.esm.es.js +0 -24
  968. package/vendor/primevue/icons/angleup/index.esm.es.js +0 -24
  969. package/vendor/primevue/icons/blank/index.esm.es.js +0 -26
  970. package/vendor/primevue/icons/check/index.esm.es.js +0 -24
  971. package/vendor/primevue/icons/chevrondown/index.esm.es.js +0 -24
  972. package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +0 -32
  973. package/vendor/primevue/icons/eye/index.esm.es.js +0 -26
  974. package/vendor/primevue/icons/eyeslash/index.esm.es.js +0 -26
  975. package/vendor/primevue/icons/infocircle/index.esm.es.js +0 -26
  976. package/vendor/primevue/icons/plus/index.esm.es.js +0 -24
  977. package/vendor/primevue/icons/refresh/index.esm.es.js +0 -26
  978. package/vendor/primevue/icons/search/index.esm.es.js +0 -26
  979. package/vendor/primevue/icons/searchminus/index.esm.es.js +0 -26
  980. package/vendor/primevue/icons/searchplus/index.esm.es.js +0 -26
  981. package/vendor/primevue/icons/spinner/index.esm.es.js +0 -24
  982. package/vendor/primevue/icons/times/index.esm.es.js +0 -24
  983. package/vendor/primevue/icons/timescircle/index.esm.es.js +0 -26
  984. package/vendor/primevue/icons/undo/index.esm.es.js +0 -26
  985. package/vendor/primevue/icons/upload/index.esm.es.js +0 -26
  986. package/vendor/primevue/icons/windowmaximize/index.esm.es.js +0 -26
  987. package/vendor/primevue/icons/windowminimize/index.esm.es.js +0 -26
  988. package/vendor/primevue/image/image.esm.es.js +0 -426
  989. package/vendor/primevue/image/style/imagestyle.esm.es.js +0 -40
  990. package/vendor/primevue/inputgroup/inputgroup.esm.es.js +0 -27
  991. package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +0 -11
  992. package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +0 -27
  993. package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +0 -11
  994. package/vendor/primevue/inputnumber/inputnumber.esm.es.js +0 -1205
  995. package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +0 -40
  996. package/vendor/primevue/inputtext/inputtext.esm.es.js +0 -68
  997. package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +0 -20
  998. package/vendor/primevue/menu/menu.esm.es.js +0 -606
  999. package/vendor/primevue/menu/style/menustyle.esm.es.js +0 -33
  1000. package/vendor/primevue/message/message.esm.es.js +0 -215
  1001. package/vendor/primevue/message/style/messagestyle.esm.es.js +0 -19
  1002. package/vendor/primevue/multiselect/multiselect.esm.es.js +0 -1631
  1003. package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +0 -76
  1004. package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +0 -5
  1005. package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +0 -400
  1006. package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +0 -19
  1007. package/vendor/primevue/paginator/paginator.esm.es.js +0 -882
  1008. package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +0 -88
  1009. package/vendor/primevue/password/password.esm.es.js +0 -516
  1010. package/vendor/primevue/password/style/passwordstyle.esm.es.js +0 -47
  1011. package/vendor/primevue/portal/portal.esm.es.js +0 -40
  1012. package/vendor/primevue/progressbar/progressbar.esm.es.js +0 -74
  1013. package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +0 -20
  1014. package/vendor/primevue/ripple/ripple.esm.es.js +0 -118
  1015. package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +0 -11
  1016. package/vendor/primevue/selectbutton/selectbutton.esm.es.js +0 -324
  1017. package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +0 -25
  1018. package/vendor/primevue/skeleton/skeleton.esm.es.js +0 -69
  1019. package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +0 -23
  1020. package/vendor/primevue/textarea/style/textareastyle.esm.es.js +0 -19
  1021. package/vendor/primevue/textarea/textarea.esm.es.js +0 -86
  1022. package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +0 -20
  1023. package/vendor/primevue/timeline/timeline.esm.es.js +0 -87
  1024. package/vendor/primevue/toast/style/toaststyle.esm.es.js +0 -81
  1025. package/vendor/primevue/toast/toast.esm.es.js +0 -500
  1026. package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +0 -5
  1027. package/vendor/primevue/toastservice/toastservice.esm.es.js +0 -25
  1028. package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +0 -13
  1029. package/vendor/primevue/tooltip/tooltip.esm.es.js +0 -453
  1030. package/vendor/primevue/usestyle/usestyle.esm.es.js +0 -115
  1031. package/vendor/primevue/usetoast/usetoast.esm.es.js +0 -13
  1032. package/vendor/primevue/utils/utils.esm.es.js +0 -1386
  1033. package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +0 -9
  1034. package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +0 -931
  1035. package/vendor/prosemirror-commands/dist/index.es.js +0 -521
  1036. package/vendor/prosemirror-history/dist/index.es.js +0 -356
  1037. package/vendor/prosemirror-keymap/dist/index.es.js +0 -80
  1038. package/vendor/prosemirror-model/dist/index.es.js +0 -3205
  1039. package/vendor/prosemirror-schema-list/dist/index.es.js +0 -129
  1040. package/vendor/prosemirror-state/dist/index.es.js +0 -934
  1041. package/vendor/prosemirror-transform/dist/index.es.js +0 -1824
  1042. package/vendor/prosemirror-view/dist/index.es.js +0 -5150
  1043. package/vendor/rope-sequence/dist/index.es.js +0 -183
  1044. package/vendor/simplebar-core/dist/index.es.js +0 -767
  1045. package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +0 -189
  1046. package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +0 -669
  1047. package/vendor/tippy.js/dist/tippy.esm.es.js +0 -1168
  1048. package/vendor/vee-validate/dist/vee-validate.esm.es.js +0 -2042
  1049. package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +0 -1382
  1050. package/vendor/vue-demi/lib/index.es.js +0 -1
  1051. package/vendor/w3c-keyname/index.es.js +0 -104
  1052. package/wangsvue.esm.browser.js +0 -67705
@@ -1,1824 +0,0 @@
1
- import { b as Slice, F as Fragment, M as Mark, d as MarkType, R as ReplaceError } from "../../prosemirror-model/dist/index.es.js";
2
- const lower16 = 65535;
3
- const factor16 = Math.pow(2, 16);
4
- function makeRecover(index, offset) {
5
- return index + offset * factor16;
6
- }
7
- function recoverIndex(value) {
8
- return value & lower16;
9
- }
10
- function recoverOffset(value) {
11
- return (value - (value & lower16)) / factor16;
12
- }
13
- const DEL_BEFORE = 1, DEL_AFTER = 2, DEL_ACROSS = 4, DEL_SIDE = 8;
14
- class MapResult {
15
- /**
16
- @internal
17
- */
18
- constructor(pos, delInfo, recover) {
19
- this.pos = pos;
20
- this.delInfo = delInfo;
21
- this.recover = recover;
22
- }
23
- /**
24
- Tells you whether the position was deleted, that is, whether the
25
- step removed the token on the side queried (via the `assoc`)
26
- argument from the document.
27
- */
28
- get deleted() {
29
- return (this.delInfo & DEL_SIDE) > 0;
30
- }
31
- /**
32
- Tells you whether the token before the mapped position was deleted.
33
- */
34
- get deletedBefore() {
35
- return (this.delInfo & (DEL_BEFORE | DEL_ACROSS)) > 0;
36
- }
37
- /**
38
- True when the token after the mapped position was deleted.
39
- */
40
- get deletedAfter() {
41
- return (this.delInfo & (DEL_AFTER | DEL_ACROSS)) > 0;
42
- }
43
- /**
44
- Tells whether any of the steps mapped through deletes across the
45
- position (including both the token before and after the
46
- position).
47
- */
48
- get deletedAcross() {
49
- return (this.delInfo & DEL_ACROSS) > 0;
50
- }
51
- }
52
- class StepMap {
53
- /**
54
- Create a position map. The modifications to the document are
55
- represented as an array of numbers, in which each group of three
56
- represents a modified chunk as `[start, oldSize, newSize]`.
57
- */
58
- constructor(ranges, inverted = false) {
59
- this.ranges = ranges;
60
- this.inverted = inverted;
61
- if (!ranges.length && StepMap.empty)
62
- return StepMap.empty;
63
- }
64
- /**
65
- @internal
66
- */
67
- recover(value) {
68
- let diff = 0, index = recoverIndex(value);
69
- if (!this.inverted)
70
- for (let i = 0; i < index; i++)
71
- diff += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
72
- return this.ranges[index * 3] + diff + recoverOffset(value);
73
- }
74
- mapResult(pos, assoc = 1) {
75
- return this._map(pos, assoc, false);
76
- }
77
- map(pos, assoc = 1) {
78
- return this._map(pos, assoc, true);
79
- }
80
- /**
81
- @internal
82
- */
83
- _map(pos, assoc, simple) {
84
- let diff = 0, oldIndex = this.inverted ? 2 : 1, newIndex = this.inverted ? 1 : 2;
85
- for (let i = 0; i < this.ranges.length; i += 3) {
86
- let start = this.ranges[i] - (this.inverted ? diff : 0);
87
- if (start > pos)
88
- break;
89
- let oldSize = this.ranges[i + oldIndex], newSize = this.ranges[i + newIndex], end = start + oldSize;
90
- if (pos <= end) {
91
- let side = !oldSize ? assoc : pos == start ? -1 : pos == end ? 1 : assoc;
92
- let result = start + diff + (side < 0 ? 0 : newSize);
93
- if (simple)
94
- return result;
95
- let recover = pos == (assoc < 0 ? start : end) ? null : makeRecover(i / 3, pos - start);
96
- let del = pos == start ? DEL_AFTER : pos == end ? DEL_BEFORE : DEL_ACROSS;
97
- if (assoc < 0 ? pos != start : pos != end)
98
- del |= DEL_SIDE;
99
- return new MapResult(result, del, recover);
100
- }
101
- diff += newSize - oldSize;
102
- }
103
- return simple ? pos + diff : new MapResult(pos + diff, 0, null);
104
- }
105
- /**
106
- @internal
107
- */
108
- touches(pos, recover) {
109
- let diff = 0, index = recoverIndex(recover);
110
- let oldIndex = this.inverted ? 2 : 1, newIndex = this.inverted ? 1 : 2;
111
- for (let i = 0; i < this.ranges.length; i += 3) {
112
- let start = this.ranges[i] - (this.inverted ? diff : 0);
113
- if (start > pos)
114
- break;
115
- let oldSize = this.ranges[i + oldIndex], end = start + oldSize;
116
- if (pos <= end && i == index * 3)
117
- return true;
118
- diff += this.ranges[i + newIndex] - oldSize;
119
- }
120
- return false;
121
- }
122
- /**
123
- Calls the given function on each of the changed ranges included in
124
- this map.
125
- */
126
- forEach(f) {
127
- let oldIndex = this.inverted ? 2 : 1, newIndex = this.inverted ? 1 : 2;
128
- for (let i = 0, diff = 0; i < this.ranges.length; i += 3) {
129
- let start = this.ranges[i], oldStart = start - (this.inverted ? diff : 0), newStart = start + (this.inverted ? 0 : diff);
130
- let oldSize = this.ranges[i + oldIndex], newSize = this.ranges[i + newIndex];
131
- f(oldStart, oldStart + oldSize, newStart, newStart + newSize);
132
- diff += newSize - oldSize;
133
- }
134
- }
135
- /**
136
- Create an inverted version of this map. The result can be used to
137
- map positions in the post-step document to the pre-step document.
138
- */
139
- invert() {
140
- return new StepMap(this.ranges, !this.inverted);
141
- }
142
- /**
143
- @internal
144
- */
145
- toString() {
146
- return (this.inverted ? "-" : "") + JSON.stringify(this.ranges);
147
- }
148
- /**
149
- Create a map that moves all positions by offset `n` (which may be
150
- negative). This can be useful when applying steps meant for a
151
- sub-document to a larger document, or vice-versa.
152
- */
153
- static offset(n) {
154
- return n == 0 ? StepMap.empty : new StepMap(n < 0 ? [0, -n, 0] : [0, 0, n]);
155
- }
156
- }
157
- StepMap.empty = new StepMap([]);
158
- class Mapping {
159
- /**
160
- Create a new mapping with the given position maps.
161
- */
162
- constructor(maps, mirror, from = 0, to = maps ? maps.length : 0) {
163
- this.mirror = mirror;
164
- this.from = from;
165
- this.to = to;
166
- this._maps = maps || [];
167
- this.ownData = !(maps || mirror);
168
- }
169
- /**
170
- The step maps in this mapping.
171
- */
172
- get maps() {
173
- return this._maps;
174
- }
175
- /**
176
- Create a mapping that maps only through a part of this one.
177
- */
178
- slice(from = 0, to = this.maps.length) {
179
- return new Mapping(this._maps, this.mirror, from, to);
180
- }
181
- /**
182
- Add a step map to the end of this mapping. If `mirrors` is
183
- given, it should be the index of the step map that is the mirror
184
- image of this one.
185
- */
186
- appendMap(map, mirrors) {
187
- if (!this.ownData) {
188
- this._maps = this._maps.slice();
189
- this.mirror = this.mirror && this.mirror.slice();
190
- this.ownData = true;
191
- }
192
- this.to = this._maps.push(map);
193
- if (mirrors != null)
194
- this.setMirror(this._maps.length - 1, mirrors);
195
- }
196
- /**
197
- Add all the step maps in a given mapping to this one (preserving
198
- mirroring information).
199
- */
200
- appendMapping(mapping) {
201
- for (let i = 0, startSize = this._maps.length; i < mapping._maps.length; i++) {
202
- let mirr = mapping.getMirror(i);
203
- this.appendMap(mapping._maps[i], mirr != null && mirr < i ? startSize + mirr : void 0);
204
- }
205
- }
206
- /**
207
- Finds the offset of the step map that mirrors the map at the
208
- given offset, in this mapping (as per the second argument to
209
- `appendMap`).
210
- */
211
- getMirror(n) {
212
- if (this.mirror) {
213
- for (let i = 0; i < this.mirror.length; i++)
214
- if (this.mirror[i] == n)
215
- return this.mirror[i + (i % 2 ? -1 : 1)];
216
- }
217
- }
218
- /**
219
- @internal
220
- */
221
- setMirror(n, m) {
222
- if (!this.mirror)
223
- this.mirror = [];
224
- this.mirror.push(n, m);
225
- }
226
- /**
227
- Append the inverse of the given mapping to this one.
228
- */
229
- appendMappingInverted(mapping) {
230
- for (let i = mapping.maps.length - 1, totalSize = this._maps.length + mapping._maps.length; i >= 0; i--) {
231
- let mirr = mapping.getMirror(i);
232
- this.appendMap(mapping._maps[i].invert(), mirr != null && mirr > i ? totalSize - mirr - 1 : void 0);
233
- }
234
- }
235
- /**
236
- Create an inverted version of this mapping.
237
- */
238
- invert() {
239
- let inverse = new Mapping();
240
- inverse.appendMappingInverted(this);
241
- return inverse;
242
- }
243
- /**
244
- Map a position through this mapping.
245
- */
246
- map(pos, assoc = 1) {
247
- if (this.mirror)
248
- return this._map(pos, assoc, true);
249
- for (let i = this.from; i < this.to; i++)
250
- pos = this._maps[i].map(pos, assoc);
251
- return pos;
252
- }
253
- /**
254
- Map a position through this mapping, returning a mapping
255
- result.
256
- */
257
- mapResult(pos, assoc = 1) {
258
- return this._map(pos, assoc, false);
259
- }
260
- /**
261
- @internal
262
- */
263
- _map(pos, assoc, simple) {
264
- let delInfo = 0;
265
- for (let i = this.from; i < this.to; i++) {
266
- let map = this._maps[i], result = map.mapResult(pos, assoc);
267
- if (result.recover != null) {
268
- let corr = this.getMirror(i);
269
- if (corr != null && corr > i && corr < this.to) {
270
- i = corr;
271
- pos = this._maps[corr].recover(result.recover);
272
- continue;
273
- }
274
- }
275
- delInfo |= result.delInfo;
276
- pos = result.pos;
277
- }
278
- return simple ? pos : new MapResult(pos, delInfo, null);
279
- }
280
- }
281
- const stepsByID = /* @__PURE__ */ Object.create(null);
282
- class Step {
283
- /**
284
- Get the step map that represents the changes made by this step,
285
- and which can be used to transform between positions in the old
286
- and the new document.
287
- */
288
- getMap() {
289
- return StepMap.empty;
290
- }
291
- /**
292
- Try to merge this step with another one, to be applied directly
293
- after it. Returns the merged step when possible, null if the
294
- steps can't be merged.
295
- */
296
- merge(other) {
297
- return null;
298
- }
299
- /**
300
- Deserialize a step from its JSON representation. Will call
301
- through to the step class' own implementation of this method.
302
- */
303
- static fromJSON(schema, json) {
304
- if (!json || !json.stepType)
305
- throw new RangeError("Invalid input for Step.fromJSON");
306
- let type = stepsByID[json.stepType];
307
- if (!type)
308
- throw new RangeError(`No step type ${json.stepType} defined`);
309
- return type.fromJSON(schema, json);
310
- }
311
- /**
312
- To be able to serialize steps to JSON, each step needs a string
313
- ID to attach to its JSON representation. Use this method to
314
- register an ID for your step classes. Try to pick something
315
- that's unlikely to clash with steps from other modules.
316
- */
317
- static jsonID(id, stepClass) {
318
- if (id in stepsByID)
319
- throw new RangeError("Duplicate use of step JSON ID " + id);
320
- stepsByID[id] = stepClass;
321
- stepClass.prototype.jsonID = id;
322
- return stepClass;
323
- }
324
- }
325
- class StepResult {
326
- /**
327
- @internal
328
- */
329
- constructor(doc, failed) {
330
- this.doc = doc;
331
- this.failed = failed;
332
- }
333
- /**
334
- Create a successful step result.
335
- */
336
- static ok(doc) {
337
- return new StepResult(doc, null);
338
- }
339
- /**
340
- Create a failed step result.
341
- */
342
- static fail(message) {
343
- return new StepResult(null, message);
344
- }
345
- /**
346
- Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
347
- arguments. Create a successful result if it succeeds, and a
348
- failed one if it throws a `ReplaceError`.
349
- */
350
- static fromReplace(doc, from, to, slice) {
351
- try {
352
- return StepResult.ok(doc.replace(from, to, slice));
353
- } catch (e) {
354
- if (e instanceof ReplaceError)
355
- return StepResult.fail(e.message);
356
- throw e;
357
- }
358
- }
359
- }
360
- function mapFragment(fragment, f, parent) {
361
- let mapped = [];
362
- for (let i = 0; i < fragment.childCount; i++) {
363
- let child = fragment.child(i);
364
- if (child.content.size)
365
- child = child.copy(mapFragment(child.content, f, child));
366
- if (child.isInline)
367
- child = f(child, parent, i);
368
- mapped.push(child);
369
- }
370
- return Fragment.fromArray(mapped);
371
- }
372
- class AddMarkStep extends Step {
373
- /**
374
- Create a mark step.
375
- */
376
- constructor(from, to, mark) {
377
- super();
378
- this.from = from;
379
- this.to = to;
380
- this.mark = mark;
381
- }
382
- apply(doc) {
383
- let oldSlice = doc.slice(this.from, this.to), $from = doc.resolve(this.from);
384
- let parent = $from.node($from.sharedDepth(this.to));
385
- let slice = new Slice(mapFragment(oldSlice.content, (node, parent2) => {
386
- if (!node.isAtom || !parent2.type.allowsMarkType(this.mark.type))
387
- return node;
388
- return node.mark(this.mark.addToSet(node.marks));
389
- }, parent), oldSlice.openStart, oldSlice.openEnd);
390
- return StepResult.fromReplace(doc, this.from, this.to, slice);
391
- }
392
- invert() {
393
- return new RemoveMarkStep(this.from, this.to, this.mark);
394
- }
395
- map(mapping) {
396
- let from = mapping.mapResult(this.from, 1), to = mapping.mapResult(this.to, -1);
397
- if (from.deleted && to.deleted || from.pos >= to.pos)
398
- return null;
399
- return new AddMarkStep(from.pos, to.pos, this.mark);
400
- }
401
- merge(other) {
402
- if (other instanceof AddMarkStep && other.mark.eq(this.mark) && this.from <= other.to && this.to >= other.from)
403
- return new AddMarkStep(Math.min(this.from, other.from), Math.max(this.to, other.to), this.mark);
404
- return null;
405
- }
406
- toJSON() {
407
- return {
408
- stepType: "addMark",
409
- mark: this.mark.toJSON(),
410
- from: this.from,
411
- to: this.to
412
- };
413
- }
414
- /**
415
- @internal
416
- */
417
- static fromJSON(schema, json) {
418
- if (typeof json.from != "number" || typeof json.to != "number")
419
- throw new RangeError("Invalid input for AddMarkStep.fromJSON");
420
- return new AddMarkStep(json.from, json.to, schema.markFromJSON(json.mark));
421
- }
422
- }
423
- Step.jsonID("addMark", AddMarkStep);
424
- class RemoveMarkStep extends Step {
425
- /**
426
- Create a mark-removing step.
427
- */
428
- constructor(from, to, mark) {
429
- super();
430
- this.from = from;
431
- this.to = to;
432
- this.mark = mark;
433
- }
434
- apply(doc) {
435
- let oldSlice = doc.slice(this.from, this.to);
436
- let slice = new Slice(mapFragment(oldSlice.content, (node) => {
437
- return node.mark(this.mark.removeFromSet(node.marks));
438
- }, doc), oldSlice.openStart, oldSlice.openEnd);
439
- return StepResult.fromReplace(doc, this.from, this.to, slice);
440
- }
441
- invert() {
442
- return new AddMarkStep(this.from, this.to, this.mark);
443
- }
444
- map(mapping) {
445
- let from = mapping.mapResult(this.from, 1), to = mapping.mapResult(this.to, -1);
446
- if (from.deleted && to.deleted || from.pos >= to.pos)
447
- return null;
448
- return new RemoveMarkStep(from.pos, to.pos, this.mark);
449
- }
450
- merge(other) {
451
- if (other instanceof RemoveMarkStep && other.mark.eq(this.mark) && this.from <= other.to && this.to >= other.from)
452
- return new RemoveMarkStep(Math.min(this.from, other.from), Math.max(this.to, other.to), this.mark);
453
- return null;
454
- }
455
- toJSON() {
456
- return {
457
- stepType: "removeMark",
458
- mark: this.mark.toJSON(),
459
- from: this.from,
460
- to: this.to
461
- };
462
- }
463
- /**
464
- @internal
465
- */
466
- static fromJSON(schema, json) {
467
- if (typeof json.from != "number" || typeof json.to != "number")
468
- throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
469
- return new RemoveMarkStep(json.from, json.to, schema.markFromJSON(json.mark));
470
- }
471
- }
472
- Step.jsonID("removeMark", RemoveMarkStep);
473
- class AddNodeMarkStep extends Step {
474
- /**
475
- Create a node mark step.
476
- */
477
- constructor(pos, mark) {
478
- super();
479
- this.pos = pos;
480
- this.mark = mark;
481
- }
482
- apply(doc) {
483
- let node = doc.nodeAt(this.pos);
484
- if (!node)
485
- return StepResult.fail("No node at mark step's position");
486
- let updated = node.type.create(node.attrs, null, this.mark.addToSet(node.marks));
487
- return StepResult.fromReplace(doc, this.pos, this.pos + 1, new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1));
488
- }
489
- invert(doc) {
490
- let node = doc.nodeAt(this.pos);
491
- if (node) {
492
- let newSet = this.mark.addToSet(node.marks);
493
- if (newSet.length == node.marks.length) {
494
- for (let i = 0; i < node.marks.length; i++)
495
- if (!node.marks[i].isInSet(newSet))
496
- return new AddNodeMarkStep(this.pos, node.marks[i]);
497
- return new AddNodeMarkStep(this.pos, this.mark);
498
- }
499
- }
500
- return new RemoveNodeMarkStep(this.pos, this.mark);
501
- }
502
- map(mapping) {
503
- let pos = mapping.mapResult(this.pos, 1);
504
- return pos.deletedAfter ? null : new AddNodeMarkStep(pos.pos, this.mark);
505
- }
506
- toJSON() {
507
- return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
508
- }
509
- /**
510
- @internal
511
- */
512
- static fromJSON(schema, json) {
513
- if (typeof json.pos != "number")
514
- throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
515
- return new AddNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
516
- }
517
- }
518
- Step.jsonID("addNodeMark", AddNodeMarkStep);
519
- class RemoveNodeMarkStep extends Step {
520
- /**
521
- Create a mark-removing step.
522
- */
523
- constructor(pos, mark) {
524
- super();
525
- this.pos = pos;
526
- this.mark = mark;
527
- }
528
- apply(doc) {
529
- let node = doc.nodeAt(this.pos);
530
- if (!node)
531
- return StepResult.fail("No node at mark step's position");
532
- let updated = node.type.create(node.attrs, null, this.mark.removeFromSet(node.marks));
533
- return StepResult.fromReplace(doc, this.pos, this.pos + 1, new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1));
534
- }
535
- invert(doc) {
536
- let node = doc.nodeAt(this.pos);
537
- if (!node || !this.mark.isInSet(node.marks))
538
- return this;
539
- return new AddNodeMarkStep(this.pos, this.mark);
540
- }
541
- map(mapping) {
542
- let pos = mapping.mapResult(this.pos, 1);
543
- return pos.deletedAfter ? null : new RemoveNodeMarkStep(pos.pos, this.mark);
544
- }
545
- toJSON() {
546
- return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
547
- }
548
- /**
549
- @internal
550
- */
551
- static fromJSON(schema, json) {
552
- if (typeof json.pos != "number")
553
- throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
554
- return new RemoveNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
555
- }
556
- }
557
- Step.jsonID("removeNodeMark", RemoveNodeMarkStep);
558
- class ReplaceStep extends Step {
559
- /**
560
- The given `slice` should fit the 'gap' between `from` and
561
- `to`—the depths must line up, and the surrounding nodes must be
562
- able to be joined with the open sides of the slice. When
563
- `structure` is true, the step will fail if the content between
564
- from and to is not just a sequence of closing and then opening
565
- tokens (this is to guard against rebased replace steps
566
- overwriting something they weren't supposed to).
567
- */
568
- constructor(from, to, slice, structure = false) {
569
- super();
570
- this.from = from;
571
- this.to = to;
572
- this.slice = slice;
573
- this.structure = structure;
574
- }
575
- apply(doc) {
576
- if (this.structure && contentBetween(doc, this.from, this.to))
577
- return StepResult.fail("Structure replace would overwrite content");
578
- return StepResult.fromReplace(doc, this.from, this.to, this.slice);
579
- }
580
- getMap() {
581
- return new StepMap([this.from, this.to - this.from, this.slice.size]);
582
- }
583
- invert(doc) {
584
- return new ReplaceStep(this.from, this.from + this.slice.size, doc.slice(this.from, this.to));
585
- }
586
- map(mapping) {
587
- let from = mapping.mapResult(this.from, 1), to = mapping.mapResult(this.to, -1);
588
- if (from.deletedAcross && to.deletedAcross)
589
- return null;
590
- return new ReplaceStep(from.pos, Math.max(from.pos, to.pos), this.slice, this.structure);
591
- }
592
- merge(other) {
593
- if (!(other instanceof ReplaceStep) || other.structure || this.structure)
594
- return null;
595
- if (this.from + this.slice.size == other.from && !this.slice.openEnd && !other.slice.openStart) {
596
- let slice = this.slice.size + other.slice.size == 0 ? Slice.empty : new Slice(this.slice.content.append(other.slice.content), this.slice.openStart, other.slice.openEnd);
597
- return new ReplaceStep(this.from, this.to + (other.to - other.from), slice, this.structure);
598
- } else if (other.to == this.from && !this.slice.openStart && !other.slice.openEnd) {
599
- let slice = this.slice.size + other.slice.size == 0 ? Slice.empty : new Slice(other.slice.content.append(this.slice.content), other.slice.openStart, this.slice.openEnd);
600
- return new ReplaceStep(other.from, this.to, slice, this.structure);
601
- } else {
602
- return null;
603
- }
604
- }
605
- toJSON() {
606
- let json = { stepType: "replace", from: this.from, to: this.to };
607
- if (this.slice.size)
608
- json.slice = this.slice.toJSON();
609
- if (this.structure)
610
- json.structure = true;
611
- return json;
612
- }
613
- /**
614
- @internal
615
- */
616
- static fromJSON(schema, json) {
617
- if (typeof json.from != "number" || typeof json.to != "number")
618
- throw new RangeError("Invalid input for ReplaceStep.fromJSON");
619
- return new ReplaceStep(json.from, json.to, Slice.fromJSON(schema, json.slice), !!json.structure);
620
- }
621
- }
622
- Step.jsonID("replace", ReplaceStep);
623
- class ReplaceAroundStep extends Step {
624
- /**
625
- Create a replace-around step with the given range and gap.
626
- `insert` should be the point in the slice into which the content
627
- of the gap should be moved. `structure` has the same meaning as
628
- it has in the [`ReplaceStep`](https://prosemirror.net/docs/ref/#transform.ReplaceStep) class.
629
- */
630
- constructor(from, to, gapFrom, gapTo, slice, insert, structure = false) {
631
- super();
632
- this.from = from;
633
- this.to = to;
634
- this.gapFrom = gapFrom;
635
- this.gapTo = gapTo;
636
- this.slice = slice;
637
- this.insert = insert;
638
- this.structure = structure;
639
- }
640
- apply(doc) {
641
- if (this.structure && (contentBetween(doc, this.from, this.gapFrom) || contentBetween(doc, this.gapTo, this.to)))
642
- return StepResult.fail("Structure gap-replace would overwrite content");
643
- let gap = doc.slice(this.gapFrom, this.gapTo);
644
- if (gap.openStart || gap.openEnd)
645
- return StepResult.fail("Gap is not a flat range");
646
- let inserted = this.slice.insertAt(this.insert, gap.content);
647
- if (!inserted)
648
- return StepResult.fail("Content does not fit in gap");
649
- return StepResult.fromReplace(doc, this.from, this.to, inserted);
650
- }
651
- getMap() {
652
- return new StepMap([
653
- this.from,
654
- this.gapFrom - this.from,
655
- this.insert,
656
- this.gapTo,
657
- this.to - this.gapTo,
658
- this.slice.size - this.insert
659
- ]);
660
- }
661
- invert(doc) {
662
- let gap = this.gapTo - this.gapFrom;
663
- 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);
664
- }
665
- map(mapping) {
666
- let from = mapping.mapResult(this.from, 1), to = mapping.mapResult(this.to, -1);
667
- let gapFrom = this.from == this.gapFrom ? from.pos : mapping.map(this.gapFrom, -1);
668
- let gapTo = this.to == this.gapTo ? to.pos : mapping.map(this.gapTo, 1);
669
- if (from.deletedAcross && to.deletedAcross || gapFrom < from.pos || gapTo > to.pos)
670
- return null;
671
- return new ReplaceAroundStep(from.pos, to.pos, gapFrom, gapTo, this.slice, this.insert, this.structure);
672
- }
673
- toJSON() {
674
- let json = {
675
- stepType: "replaceAround",
676
- from: this.from,
677
- to: this.to,
678
- gapFrom: this.gapFrom,
679
- gapTo: this.gapTo,
680
- insert: this.insert
681
- };
682
- if (this.slice.size)
683
- json.slice = this.slice.toJSON();
684
- if (this.structure)
685
- json.structure = true;
686
- return json;
687
- }
688
- /**
689
- @internal
690
- */
691
- static fromJSON(schema, json) {
692
- if (typeof json.from != "number" || typeof json.to != "number" || typeof json.gapFrom != "number" || typeof json.gapTo != "number" || typeof json.insert != "number")
693
- throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
694
- return new ReplaceAroundStep(json.from, json.to, json.gapFrom, json.gapTo, Slice.fromJSON(schema, json.slice), json.insert, !!json.structure);
695
- }
696
- }
697
- Step.jsonID("replaceAround", ReplaceAroundStep);
698
- function contentBetween(doc, from, to) {
699
- let $from = doc.resolve(from), dist = to - from, depth = $from.depth;
700
- while (dist > 0 && depth > 0 && $from.indexAfter(depth) == $from.node(depth).childCount) {
701
- depth--;
702
- dist--;
703
- }
704
- if (dist > 0) {
705
- let next = $from.node(depth).maybeChild($from.indexAfter(depth));
706
- while (dist > 0) {
707
- if (!next || next.isLeaf)
708
- return true;
709
- next = next.firstChild;
710
- dist--;
711
- }
712
- }
713
- return false;
714
- }
715
- function addMark(tr, from, to, mark) {
716
- let removed = [], added = [];
717
- let removing, adding;
718
- tr.doc.nodesBetween(from, to, (node, pos, parent) => {
719
- if (!node.isInline)
720
- return;
721
- let marks = node.marks;
722
- if (!mark.isInSet(marks) && parent.type.allowsMarkType(mark.type)) {
723
- let start = Math.max(pos, from), end = Math.min(pos + node.nodeSize, to);
724
- let newSet = mark.addToSet(marks);
725
- for (let i = 0; i < marks.length; i++) {
726
- if (!marks[i].isInSet(newSet)) {
727
- if (removing && removing.to == start && removing.mark.eq(marks[i]))
728
- removing.to = end;
729
- else
730
- removed.push(removing = new RemoveMarkStep(start, end, marks[i]));
731
- }
732
- }
733
- if (adding && adding.to == start)
734
- adding.to = end;
735
- else
736
- added.push(adding = new AddMarkStep(start, end, mark));
737
- }
738
- });
739
- removed.forEach((s) => tr.step(s));
740
- added.forEach((s) => tr.step(s));
741
- }
742
- function removeMark(tr, from, to, mark) {
743
- let matched = [], step = 0;
744
- tr.doc.nodesBetween(from, to, (node, pos) => {
745
- if (!node.isInline)
746
- return;
747
- step++;
748
- let toRemove = null;
749
- if (mark instanceof MarkType) {
750
- let set = node.marks, found;
751
- while (found = mark.isInSet(set)) {
752
- (toRemove || (toRemove = [])).push(found);
753
- set = found.removeFromSet(set);
754
- }
755
- } else if (mark) {
756
- if (mark.isInSet(node.marks))
757
- toRemove = [mark];
758
- } else {
759
- toRemove = node.marks;
760
- }
761
- if (toRemove && toRemove.length) {
762
- let end = Math.min(pos + node.nodeSize, to);
763
- for (let i = 0; i < toRemove.length; i++) {
764
- let style = toRemove[i], found;
765
- for (let j = 0; j < matched.length; j++) {
766
- let m = matched[j];
767
- if (m.step == step - 1 && style.eq(matched[j].style))
768
- found = m;
769
- }
770
- if (found) {
771
- found.to = end;
772
- found.step = step;
773
- } else {
774
- matched.push({ style, from: Math.max(pos, from), to: end, step });
775
- }
776
- }
777
- }
778
- });
779
- matched.forEach((m) => tr.step(new RemoveMarkStep(m.from, m.to, m.style)));
780
- }
781
- function clearIncompatible(tr, pos, parentType, match = parentType.contentMatch, clearNewlines = true) {
782
- let node = tr.doc.nodeAt(pos);
783
- let replSteps = [], cur = pos + 1;
784
- for (let i = 0; i < node.childCount; i++) {
785
- let child = node.child(i), end = cur + child.nodeSize;
786
- let allowed = match.matchType(child.type);
787
- if (!allowed) {
788
- replSteps.push(new ReplaceStep(cur, end, Slice.empty));
789
- } else {
790
- match = allowed;
791
- for (let j = 0; j < child.marks.length; j++)
792
- if (!parentType.allowsMarkType(child.marks[j].type))
793
- tr.step(new RemoveMarkStep(cur, end, child.marks[j]));
794
- if (clearNewlines && child.isText && parentType.whitespace != "pre") {
795
- let m, newline = /\r?\n|\r/g, slice;
796
- while (m = newline.exec(child.text)) {
797
- if (!slice)
798
- slice = new Slice(Fragment.from(parentType.schema.text(" ", parentType.allowedMarks(child.marks))), 0, 0);
799
- replSteps.push(new ReplaceStep(cur + m.index, cur + m.index + m[0].length, slice));
800
- }
801
- }
802
- }
803
- cur = end;
804
- }
805
- if (!match.validEnd) {
806
- let fill = match.fillBefore(Fragment.empty, true);
807
- tr.replace(cur, cur, new Slice(fill, 0, 0));
808
- }
809
- for (let i = replSteps.length - 1; i >= 0; i--)
810
- tr.step(replSteps[i]);
811
- }
812
- function canCut(node, start, end) {
813
- return (start == 0 || node.canReplace(start, node.childCount)) && (end == node.childCount || node.canReplace(0, end));
814
- }
815
- function liftTarget(range) {
816
- let parent = range.parent;
817
- let content = parent.content.cutByIndex(range.startIndex, range.endIndex);
818
- for (let depth = range.depth; ; --depth) {
819
- let node = range.$from.node(depth);
820
- let index = range.$from.index(depth), endIndex = range.$to.indexAfter(depth);
821
- if (depth < range.depth && node.canReplace(index, endIndex, content))
822
- return depth;
823
- if (depth == 0 || node.type.spec.isolating || !canCut(node, index, endIndex))
824
- break;
825
- }
826
- return null;
827
- }
828
- function lift(tr, range, target) {
829
- let { $from, $to, depth } = range;
830
- let gapStart = $from.before(depth + 1), gapEnd = $to.after(depth + 1);
831
- let start = gapStart, end = gapEnd;
832
- let before = Fragment.empty, openStart = 0;
833
- for (let d = depth, splitting = false; d > target; d--)
834
- if (splitting || $from.index(d) > 0) {
835
- splitting = true;
836
- before = Fragment.from($from.node(d).copy(before));
837
- openStart++;
838
- } else {
839
- start--;
840
- }
841
- let after = Fragment.empty, openEnd = 0;
842
- for (let d = depth, splitting = false; d > target; d--)
843
- if (splitting || $to.after(d + 1) < $to.end(d)) {
844
- splitting = true;
845
- after = Fragment.from($to.node(d).copy(after));
846
- openEnd++;
847
- } else {
848
- end++;
849
- }
850
- tr.step(new ReplaceAroundStep(start, end, gapStart, gapEnd, new Slice(before.append(after), openStart, openEnd), before.size - openStart, true));
851
- }
852
- function findWrapping(range, nodeType, attrs = null, innerRange = range) {
853
- let around = findWrappingOutside(range, nodeType);
854
- let inner = around && findWrappingInside(innerRange, nodeType);
855
- if (!inner)
856
- return null;
857
- return around.map(withAttrs).concat({ type: nodeType, attrs }).concat(inner.map(withAttrs));
858
- }
859
- function withAttrs(type) {
860
- return { type, attrs: null };
861
- }
862
- function findWrappingOutside(range, type) {
863
- let { parent, startIndex, endIndex } = range;
864
- let around = parent.contentMatchAt(startIndex).findWrapping(type);
865
- if (!around)
866
- return null;
867
- let outer = around.length ? around[0] : type;
868
- return parent.canReplaceWith(startIndex, endIndex, outer) ? around : null;
869
- }
870
- function findWrappingInside(range, type) {
871
- let { parent, startIndex, endIndex } = range;
872
- let inner = parent.child(startIndex);
873
- let inside = type.contentMatch.findWrapping(inner.type);
874
- if (!inside)
875
- return null;
876
- let lastType = inside.length ? inside[inside.length - 1] : type;
877
- let innerMatch = lastType.contentMatch;
878
- for (let i = startIndex; innerMatch && i < endIndex; i++)
879
- innerMatch = innerMatch.matchType(parent.child(i).type);
880
- if (!innerMatch || !innerMatch.validEnd)
881
- return null;
882
- return inside;
883
- }
884
- function wrap(tr, range, wrappers) {
885
- let content = Fragment.empty;
886
- for (let i = wrappers.length - 1; i >= 0; i--) {
887
- if (content.size) {
888
- let match = wrappers[i].type.contentMatch.matchFragment(content);
889
- if (!match || !match.validEnd)
890
- throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
891
- }
892
- content = Fragment.from(wrappers[i].type.create(wrappers[i].attrs, content));
893
- }
894
- let start = range.start, end = range.end;
895
- tr.step(new ReplaceAroundStep(start, end, start, end, new Slice(content, 0, 0), wrappers.length, true));
896
- }
897
- function setBlockType(tr, from, to, type, attrs) {
898
- if (!type.isTextblock)
899
- throw new RangeError("Type given to setBlockType should be a textblock");
900
- let mapFrom = tr.steps.length;
901
- tr.doc.nodesBetween(from, to, (node, pos) => {
902
- let attrsHere = typeof attrs == "function" ? attrs(node) : attrs;
903
- if (node.isTextblock && !node.hasMarkup(type, attrsHere) && canChangeType(tr.doc, tr.mapping.slice(mapFrom).map(pos), type)) {
904
- let convertNewlines = null;
905
- if (type.schema.linebreakReplacement) {
906
- let pre = type.whitespace == "pre", supportLinebreak = !!type.contentMatch.matchType(type.schema.linebreakReplacement);
907
- if (pre && !supportLinebreak)
908
- convertNewlines = false;
909
- else if (!pre && supportLinebreak)
910
- convertNewlines = true;
911
- }
912
- if (convertNewlines === false)
913
- replaceLinebreaks(tr, node, pos, mapFrom);
914
- clearIncompatible(tr, tr.mapping.slice(mapFrom).map(pos, 1), type, void 0, convertNewlines === null);
915
- let mapping = tr.mapping.slice(mapFrom);
916
- let startM = mapping.map(pos, 1), endM = mapping.map(pos + node.nodeSize, 1);
917
- tr.step(new ReplaceAroundStep(startM, endM, startM + 1, endM - 1, new Slice(Fragment.from(type.create(attrsHere, null, node.marks)), 0, 0), 1, true));
918
- if (convertNewlines === true)
919
- replaceNewlines(tr, node, pos, mapFrom);
920
- return false;
921
- }
922
- });
923
- }
924
- function replaceNewlines(tr, node, pos, mapFrom) {
925
- node.forEach((child, offset) => {
926
- if (child.isText) {
927
- let m, newline = /\r?\n|\r/g;
928
- while (m = newline.exec(child.text)) {
929
- let start = tr.mapping.slice(mapFrom).map(pos + 1 + offset + m.index);
930
- tr.replaceWith(start, start + 1, node.type.schema.linebreakReplacement.create());
931
- }
932
- }
933
- });
934
- }
935
- function replaceLinebreaks(tr, node, pos, mapFrom) {
936
- node.forEach((child, offset) => {
937
- if (child.type == child.type.schema.linebreakReplacement) {
938
- let start = tr.mapping.slice(mapFrom).map(pos + 1 + offset);
939
- tr.replaceWith(start, start + 1, node.type.schema.text("\n"));
940
- }
941
- });
942
- }
943
- function canChangeType(doc, pos, type) {
944
- let $pos = doc.resolve(pos), index = $pos.index();
945
- return $pos.parent.canReplaceWith(index, index + 1, type);
946
- }
947
- function setNodeMarkup(tr, pos, type, attrs, marks) {
948
- let node = tr.doc.nodeAt(pos);
949
- if (!node)
950
- throw new RangeError("No node at given position");
951
- if (!type)
952
- type = node.type;
953
- let newNode = type.create(attrs, null, marks || node.marks);
954
- if (node.isLeaf)
955
- return tr.replaceWith(pos, pos + node.nodeSize, newNode);
956
- if (!type.validContent(node.content))
957
- throw new RangeError("Invalid content for node type " + type.name);
958
- tr.step(new ReplaceAroundStep(pos, pos + node.nodeSize, pos + 1, pos + node.nodeSize - 1, new Slice(Fragment.from(newNode), 0, 0), 1, true));
959
- }
960
- function canSplit(doc, pos, depth = 1, typesAfter) {
961
- let $pos = doc.resolve(pos), base = $pos.depth - depth;
962
- let innerType = typesAfter && typesAfter[typesAfter.length - 1] || $pos.parent;
963
- 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)))
964
- return false;
965
- for (let d = $pos.depth - 1, i = depth - 2; d > base; d--, i--) {
966
- let node = $pos.node(d), index2 = $pos.index(d);
967
- if (node.type.spec.isolating)
968
- return false;
969
- let rest = node.content.cutByIndex(index2, node.childCount);
970
- let overrideChild = typesAfter && typesAfter[i + 1];
971
- if (overrideChild)
972
- rest = rest.replaceChild(0, overrideChild.type.create(overrideChild.attrs));
973
- let after = typesAfter && typesAfter[i] || node;
974
- if (!node.canReplace(index2 + 1, node.childCount) || !after.type.validContent(rest))
975
- return false;
976
- }
977
- let index = $pos.indexAfter(base);
978
- let baseType = typesAfter && typesAfter[0];
979
- return $pos.node(base).canReplaceWith(index, index, baseType ? baseType.type : $pos.node(base + 1).type);
980
- }
981
- function split(tr, pos, depth = 1, typesAfter) {
982
- let $pos = tr.doc.resolve(pos), before = Fragment.empty, after = Fragment.empty;
983
- for (let d = $pos.depth, e = $pos.depth - depth, i = depth - 1; d > e; d--, i--) {
984
- before = Fragment.from($pos.node(d).copy(before));
985
- let typeAfter = typesAfter && typesAfter[i];
986
- after = Fragment.from(typeAfter ? typeAfter.type.create(typeAfter.attrs, after) : $pos.node(d).copy(after));
987
- }
988
- tr.step(new ReplaceStep(pos, pos, new Slice(before.append(after), depth, depth), true));
989
- }
990
- function canJoin(doc, pos) {
991
- let $pos = doc.resolve(pos), index = $pos.index();
992
- return joinable($pos.nodeBefore, $pos.nodeAfter) && $pos.parent.canReplace(index, index + 1);
993
- }
994
- function canAppendWithSubstitutedLinebreaks(a, b) {
995
- if (!b.content.size)
996
- a.type.compatibleContent(b.type);
997
- let match = a.contentMatchAt(a.childCount);
998
- let { linebreakReplacement } = a.type.schema;
999
- for (let i = 0; i < b.childCount; i++) {
1000
- let child = b.child(i);
1001
- let type = child.type == linebreakReplacement ? a.type.schema.nodes.text : child.type;
1002
- match = match.matchType(type);
1003
- if (!match)
1004
- return false;
1005
- if (!a.type.allowsMarks(child.marks))
1006
- return false;
1007
- }
1008
- return match.validEnd;
1009
- }
1010
- function joinable(a, b) {
1011
- return !!(a && b && !a.isLeaf && canAppendWithSubstitutedLinebreaks(a, b));
1012
- }
1013
- function joinPoint(doc, pos, dir = -1) {
1014
- let $pos = doc.resolve(pos);
1015
- for (let d = $pos.depth; ; d--) {
1016
- let before, after, index = $pos.index(d);
1017
- if (d == $pos.depth) {
1018
- before = $pos.nodeBefore;
1019
- after = $pos.nodeAfter;
1020
- } else if (dir > 0) {
1021
- before = $pos.node(d + 1);
1022
- index++;
1023
- after = $pos.node(d).maybeChild(index);
1024
- } else {
1025
- before = $pos.node(d).maybeChild(index - 1);
1026
- after = $pos.node(d + 1);
1027
- }
1028
- if (before && !before.isTextblock && joinable(before, after) && $pos.node(d).canReplace(index, index + 1))
1029
- return pos;
1030
- if (d == 0)
1031
- break;
1032
- pos = dir < 0 ? $pos.before(d) : $pos.after(d);
1033
- }
1034
- }
1035
- function join(tr, pos, depth) {
1036
- let convertNewlines = null;
1037
- let { linebreakReplacement } = tr.doc.type.schema;
1038
- let $before = tr.doc.resolve(pos - depth), beforeType = $before.node().type;
1039
- if (linebreakReplacement && beforeType.inlineContent) {
1040
- let pre = beforeType.whitespace == "pre";
1041
- let supportLinebreak = !!beforeType.contentMatch.matchType(linebreakReplacement);
1042
- if (pre && !supportLinebreak)
1043
- convertNewlines = false;
1044
- else if (!pre && supportLinebreak)
1045
- convertNewlines = true;
1046
- }
1047
- let mapFrom = tr.steps.length;
1048
- if (convertNewlines === false) {
1049
- let $after = tr.doc.resolve(pos + depth);
1050
- replaceLinebreaks(tr, $after.node(), $after.before(), mapFrom);
1051
- }
1052
- if (beforeType.inlineContent)
1053
- clearIncompatible(tr, pos + depth - 1, beforeType, $before.node().contentMatchAt($before.index()), convertNewlines == null);
1054
- let mapping = tr.mapping.slice(mapFrom), start = mapping.map(pos - depth);
1055
- tr.step(new ReplaceStep(start, mapping.map(pos + depth, -1), Slice.empty, true));
1056
- if (convertNewlines === true) {
1057
- let $full = tr.doc.resolve(start);
1058
- replaceNewlines(tr, $full.node(), $full.before(), tr.steps.length);
1059
- }
1060
- return tr;
1061
- }
1062
- function insertPoint(doc, pos, nodeType) {
1063
- let $pos = doc.resolve(pos);
1064
- if ($pos.parent.canReplaceWith($pos.index(), $pos.index(), nodeType))
1065
- return pos;
1066
- if ($pos.parentOffset == 0)
1067
- for (let d = $pos.depth - 1; d >= 0; d--) {
1068
- let index = $pos.index(d);
1069
- if ($pos.node(d).canReplaceWith(index, index, nodeType))
1070
- return $pos.before(d + 1);
1071
- if (index > 0)
1072
- return null;
1073
- }
1074
- if ($pos.parentOffset == $pos.parent.content.size)
1075
- for (let d = $pos.depth - 1; d >= 0; d--) {
1076
- let index = $pos.indexAfter(d);
1077
- if ($pos.node(d).canReplaceWith(index, index, nodeType))
1078
- return $pos.after(d + 1);
1079
- if (index < $pos.node(d).childCount)
1080
- return null;
1081
- }
1082
- return null;
1083
- }
1084
- function dropPoint(doc, pos, slice) {
1085
- let $pos = doc.resolve(pos);
1086
- if (!slice.content.size)
1087
- return pos;
1088
- let content = slice.content;
1089
- for (let i = 0; i < slice.openStart; i++)
1090
- content = content.firstChild.content;
1091
- for (let pass = 1; pass <= (slice.openStart == 0 && slice.size ? 2 : 1); pass++) {
1092
- for (let d = $pos.depth; d >= 0; d--) {
1093
- let bias = d == $pos.depth ? 0 : $pos.pos <= ($pos.start(d + 1) + $pos.end(d + 1)) / 2 ? -1 : 1;
1094
- let insertPos = $pos.index(d) + (bias > 0 ? 1 : 0);
1095
- let parent = $pos.node(d), fits = false;
1096
- if (pass == 1) {
1097
- fits = parent.canReplace(insertPos, insertPos, content);
1098
- } else {
1099
- let wrapping = parent.contentMatchAt(insertPos).findWrapping(content.firstChild.type);
1100
- fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0]);
1101
- }
1102
- if (fits)
1103
- return bias == 0 ? $pos.pos : bias < 0 ? $pos.before(d + 1) : $pos.after(d + 1);
1104
- }
1105
- }
1106
- return null;
1107
- }
1108
- function replaceStep(doc, from, to = from, slice = Slice.empty) {
1109
- if (from == to && !slice.size)
1110
- return null;
1111
- let $from = doc.resolve(from), $to = doc.resolve(to);
1112
- if (fitsTrivially($from, $to, slice))
1113
- return new ReplaceStep(from, to, slice);
1114
- return new Fitter($from, $to, slice).fit();
1115
- }
1116
- function fitsTrivially($from, $to, slice) {
1117
- return !slice.openStart && !slice.openEnd && $from.start() == $to.start() && $from.parent.canReplace($from.index(), $to.index(), slice.content);
1118
- }
1119
- class Fitter {
1120
- constructor($from, $to, unplaced) {
1121
- this.$from = $from;
1122
- this.$to = $to;
1123
- this.unplaced = unplaced;
1124
- this.frontier = [];
1125
- this.placed = Fragment.empty;
1126
- for (let i = 0; i <= $from.depth; i++) {
1127
- let node = $from.node(i);
1128
- this.frontier.push({
1129
- type: node.type,
1130
- match: node.contentMatchAt($from.indexAfter(i))
1131
- });
1132
- }
1133
- for (let i = $from.depth; i > 0; i--)
1134
- this.placed = Fragment.from($from.node(i).copy(this.placed));
1135
- }
1136
- get depth() {
1137
- return this.frontier.length - 1;
1138
- }
1139
- fit() {
1140
- while (this.unplaced.size) {
1141
- let fit = this.findFittable();
1142
- if (fit)
1143
- this.placeNodes(fit);
1144
- else
1145
- this.openMore() || this.dropNode();
1146
- }
1147
- let moveInline = this.mustMoveInline(), placedSize = this.placed.size - this.depth - this.$from.depth;
1148
- let $from = this.$from, $to = this.close(moveInline < 0 ? this.$to : $from.doc.resolve(moveInline));
1149
- if (!$to)
1150
- return null;
1151
- let content = this.placed, openStart = $from.depth, openEnd = $to.depth;
1152
- while (openStart && openEnd && content.childCount == 1) {
1153
- content = content.firstChild.content;
1154
- openStart--;
1155
- openEnd--;
1156
- }
1157
- let slice = new Slice(content, openStart, openEnd);
1158
- if (moveInline > -1)
1159
- return new ReplaceAroundStep($from.pos, moveInline, this.$to.pos, this.$to.end(), slice, placedSize);
1160
- if (slice.size || $from.pos != this.$to.pos)
1161
- return new ReplaceStep($from.pos, $to.pos, slice);
1162
- return null;
1163
- }
1164
- // Find a position on the start spine of `this.unplaced` that has
1165
- // content that can be moved somewhere on the frontier. Returns two
1166
- // depths, one for the slice and one for the frontier.
1167
- findFittable() {
1168
- let startDepth = this.unplaced.openStart;
1169
- for (let cur = this.unplaced.content, d = 0, openEnd = this.unplaced.openEnd; d < startDepth; d++) {
1170
- let node = cur.firstChild;
1171
- if (cur.childCount > 1)
1172
- openEnd = 0;
1173
- if (node.type.spec.isolating && openEnd <= d) {
1174
- startDepth = d;
1175
- break;
1176
- }
1177
- cur = node.content;
1178
- }
1179
- for (let pass = 1; pass <= 2; pass++) {
1180
- for (let sliceDepth = pass == 1 ? startDepth : this.unplaced.openStart; sliceDepth >= 0; sliceDepth--) {
1181
- let fragment, parent = null;
1182
- if (sliceDepth) {
1183
- parent = contentAt(this.unplaced.content, sliceDepth - 1).firstChild;
1184
- fragment = parent.content;
1185
- } else {
1186
- fragment = this.unplaced.content;
1187
- }
1188
- let first = fragment.firstChild;
1189
- for (let frontierDepth = this.depth; frontierDepth >= 0; frontierDepth--) {
1190
- let { type, match } = this.frontier[frontierDepth], wrap2, inject = null;
1191
- if (pass == 1 && (first ? match.matchType(first.type) || (inject = match.fillBefore(Fragment.from(first), false)) : parent && type.compatibleContent(parent.type)))
1192
- return { sliceDepth, frontierDepth, parent, inject };
1193
- else if (pass == 2 && first && (wrap2 = match.findWrapping(first.type)))
1194
- return { sliceDepth, frontierDepth, parent, wrap: wrap2 };
1195
- if (parent && match.matchType(parent.type))
1196
- break;
1197
- }
1198
- }
1199
- }
1200
- }
1201
- openMore() {
1202
- let { content, openStart, openEnd } = this.unplaced;
1203
- let inner = contentAt(content, openStart);
1204
- if (!inner.childCount || inner.firstChild.isLeaf)
1205
- return false;
1206
- this.unplaced = new Slice(content, openStart + 1, Math.max(openEnd, inner.size + openStart >= content.size - openEnd ? openStart + 1 : 0));
1207
- return true;
1208
- }
1209
- dropNode() {
1210
- let { content, openStart, openEnd } = this.unplaced;
1211
- let inner = contentAt(content, openStart);
1212
- if (inner.childCount <= 1 && openStart > 0) {
1213
- let openAtEnd = content.size - openStart <= openStart + inner.size;
1214
- this.unplaced = new Slice(dropFromFragment(content, openStart - 1, 1), openStart - 1, openAtEnd ? openStart - 1 : openEnd);
1215
- } else {
1216
- this.unplaced = new Slice(dropFromFragment(content, openStart, 1), openStart, openEnd);
1217
- }
1218
- }
1219
- // Move content from the unplaced slice at `sliceDepth` to the
1220
- // frontier node at `frontierDepth`. Close that frontier node when
1221
- // applicable.
1222
- placeNodes({ sliceDepth, frontierDepth, parent, inject, wrap: wrap2 }) {
1223
- while (this.depth > frontierDepth)
1224
- this.closeFrontierNode();
1225
- if (wrap2)
1226
- for (let i = 0; i < wrap2.length; i++)
1227
- this.openFrontierNode(wrap2[i]);
1228
- let slice = this.unplaced, fragment = parent ? parent.content : slice.content;
1229
- let openStart = slice.openStart - sliceDepth;
1230
- let taken = 0, add = [];
1231
- let { match, type } = this.frontier[frontierDepth];
1232
- if (inject) {
1233
- for (let i = 0; i < inject.childCount; i++)
1234
- add.push(inject.child(i));
1235
- match = match.matchFragment(inject);
1236
- }
1237
- let openEndCount = fragment.size + sliceDepth - (slice.content.size - slice.openEnd);
1238
- while (taken < fragment.childCount) {
1239
- let next = fragment.child(taken), matches = match.matchType(next.type);
1240
- if (!matches)
1241
- break;
1242
- taken++;
1243
- if (taken > 1 || openStart == 0 || next.content.size) {
1244
- match = matches;
1245
- add.push(closeNodeStart(next.mark(type.allowedMarks(next.marks)), taken == 1 ? openStart : 0, taken == fragment.childCount ? openEndCount : -1));
1246
- }
1247
- }
1248
- let toEnd = taken == fragment.childCount;
1249
- if (!toEnd)
1250
- openEndCount = -1;
1251
- this.placed = addToFragment(this.placed, frontierDepth, Fragment.from(add));
1252
- this.frontier[frontierDepth].match = match;
1253
- if (toEnd && openEndCount < 0 && parent && parent.type == this.frontier[this.depth].type && this.frontier.length > 1)
1254
- this.closeFrontierNode();
1255
- for (let i = 0, cur = fragment; i < openEndCount; i++) {
1256
- let node = cur.lastChild;
1257
- this.frontier.push({ type: node.type, match: node.contentMatchAt(node.childCount) });
1258
- cur = node.content;
1259
- }
1260
- this.unplaced = !toEnd ? new Slice(dropFromFragment(slice.content, sliceDepth, taken), slice.openStart, slice.openEnd) : sliceDepth == 0 ? Slice.empty : new Slice(dropFromFragment(slice.content, sliceDepth - 1, 1), sliceDepth - 1, openEndCount < 0 ? slice.openEnd : sliceDepth - 1);
1261
- }
1262
- mustMoveInline() {
1263
- if (!this.$to.parent.isTextblock)
1264
- return -1;
1265
- let top = this.frontier[this.depth], level;
1266
- 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)
1267
- return -1;
1268
- let { depth } = this.$to, after = this.$to.after(depth);
1269
- while (depth > 1 && after == this.$to.end(--depth))
1270
- ++after;
1271
- return after;
1272
- }
1273
- findCloseLevel($to) {
1274
- scan: for (let i = Math.min(this.depth, $to.depth); i >= 0; i--) {
1275
- let { match, type } = this.frontier[i];
1276
- let dropInner = i < $to.depth && $to.end(i + 1) == $to.pos + ($to.depth - (i + 1));
1277
- let fit = contentAfterFits($to, i, type, match, dropInner);
1278
- if (!fit)
1279
- continue;
1280
- for (let d = i - 1; d >= 0; d--) {
1281
- let { match: match2, type: type2 } = this.frontier[d];
1282
- let matches = contentAfterFits($to, d, type2, match2, true);
1283
- if (!matches || matches.childCount)
1284
- continue scan;
1285
- }
1286
- return { depth: i, fit, move: dropInner ? $to.doc.resolve($to.after(i + 1)) : $to };
1287
- }
1288
- }
1289
- close($to) {
1290
- let close = this.findCloseLevel($to);
1291
- if (!close)
1292
- return null;
1293
- while (this.depth > close.depth)
1294
- this.closeFrontierNode();
1295
- if (close.fit.childCount)
1296
- this.placed = addToFragment(this.placed, close.depth, close.fit);
1297
- $to = close.move;
1298
- for (let d = close.depth + 1; d <= $to.depth; d++) {
1299
- let node = $to.node(d), add = node.type.contentMatch.fillBefore(node.content, true, $to.index(d));
1300
- this.openFrontierNode(node.type, node.attrs, add);
1301
- }
1302
- return $to;
1303
- }
1304
- openFrontierNode(type, attrs = null, content) {
1305
- let top = this.frontier[this.depth];
1306
- top.match = top.match.matchType(type);
1307
- this.placed = addToFragment(this.placed, this.depth, Fragment.from(type.create(attrs, content)));
1308
- this.frontier.push({ type, match: type.contentMatch });
1309
- }
1310
- closeFrontierNode() {
1311
- let open = this.frontier.pop();
1312
- let add = open.match.fillBefore(Fragment.empty, true);
1313
- if (add.childCount)
1314
- this.placed = addToFragment(this.placed, this.frontier.length, add);
1315
- }
1316
- }
1317
- function dropFromFragment(fragment, depth, count) {
1318
- if (depth == 0)
1319
- return fragment.cutByIndex(count, fragment.childCount);
1320
- return fragment.replaceChild(0, fragment.firstChild.copy(dropFromFragment(fragment.firstChild.content, depth - 1, count)));
1321
- }
1322
- function addToFragment(fragment, depth, content) {
1323
- if (depth == 0)
1324
- return fragment.append(content);
1325
- return fragment.replaceChild(fragment.childCount - 1, fragment.lastChild.copy(addToFragment(fragment.lastChild.content, depth - 1, content)));
1326
- }
1327
- function contentAt(fragment, depth) {
1328
- for (let i = 0; i < depth; i++)
1329
- fragment = fragment.firstChild.content;
1330
- return fragment;
1331
- }
1332
- function closeNodeStart(node, openStart, openEnd) {
1333
- if (openStart <= 0)
1334
- return node;
1335
- let frag = node.content;
1336
- if (openStart > 1)
1337
- frag = frag.replaceChild(0, closeNodeStart(frag.firstChild, openStart - 1, frag.childCount == 1 ? openEnd - 1 : 0));
1338
- if (openStart > 0) {
1339
- frag = node.type.contentMatch.fillBefore(frag).append(frag);
1340
- if (openEnd <= 0)
1341
- frag = frag.append(node.type.contentMatch.matchFragment(frag).fillBefore(Fragment.empty, true));
1342
- }
1343
- return node.copy(frag);
1344
- }
1345
- function contentAfterFits($to, depth, type, match, open) {
1346
- let node = $to.node(depth), index = open ? $to.indexAfter(depth) : $to.index(depth);
1347
- if (index == node.childCount && !type.compatibleContent(node.type))
1348
- return null;
1349
- let fit = match.fillBefore(node.content, true, index);
1350
- return fit && !invalidMarks(type, node.content, index) ? fit : null;
1351
- }
1352
- function invalidMarks(type, fragment, start) {
1353
- for (let i = start; i < fragment.childCount; i++)
1354
- if (!type.allowsMarks(fragment.child(i).marks))
1355
- return true;
1356
- return false;
1357
- }
1358
- function definesContent(type) {
1359
- return type.spec.defining || type.spec.definingForContent;
1360
- }
1361
- function replaceRange(tr, from, to, slice) {
1362
- if (!slice.size)
1363
- return tr.deleteRange(from, to);
1364
- let $from = tr.doc.resolve(from), $to = tr.doc.resolve(to);
1365
- if (fitsTrivially($from, $to, slice))
1366
- return tr.step(new ReplaceStep(from, to, slice));
1367
- let targetDepths = coveredDepths($from, tr.doc.resolve(to));
1368
- if (targetDepths[targetDepths.length - 1] == 0)
1369
- targetDepths.pop();
1370
- let preferredTarget = -($from.depth + 1);
1371
- targetDepths.unshift(preferredTarget);
1372
- for (let d = $from.depth, pos = $from.pos - 1; d > 0; d--, pos--) {
1373
- let spec = $from.node(d).type.spec;
1374
- if (spec.defining || spec.definingAsContext || spec.isolating)
1375
- break;
1376
- if (targetDepths.indexOf(d) > -1)
1377
- preferredTarget = d;
1378
- else if ($from.before(d) == pos)
1379
- targetDepths.splice(1, 0, -d);
1380
- }
1381
- let preferredTargetIndex = targetDepths.indexOf(preferredTarget);
1382
- let leftNodes = [], preferredDepth = slice.openStart;
1383
- for (let content = slice.content, i = 0; ; i++) {
1384
- let node = content.firstChild;
1385
- leftNodes.push(node);
1386
- if (i == slice.openStart)
1387
- break;
1388
- content = node.content;
1389
- }
1390
- for (let d = preferredDepth - 1; d >= 0; d--) {
1391
- let leftNode = leftNodes[d], def = definesContent(leftNode.type);
1392
- if (def && !leftNode.sameMarkup($from.node(Math.abs(preferredTarget) - 1)))
1393
- preferredDepth = d;
1394
- else if (def || !leftNode.type.isTextblock)
1395
- break;
1396
- }
1397
- for (let j = slice.openStart; j >= 0; j--) {
1398
- let openDepth = (j + preferredDepth + 1) % (slice.openStart + 1);
1399
- let insert = leftNodes[openDepth];
1400
- if (!insert)
1401
- continue;
1402
- for (let i = 0; i < targetDepths.length; i++) {
1403
- let targetDepth = targetDepths[(i + preferredTargetIndex) % targetDepths.length], expand = true;
1404
- if (targetDepth < 0) {
1405
- expand = false;
1406
- targetDepth = -targetDepth;
1407
- }
1408
- let parent = $from.node(targetDepth - 1), index = $from.index(targetDepth - 1);
1409
- if (parent.canReplaceWith(index, index, insert.type, insert.marks))
1410
- return tr.replace($from.before(targetDepth), expand ? $to.after(targetDepth) : to, new Slice(closeFragment(slice.content, 0, slice.openStart, openDepth), openDepth, slice.openEnd));
1411
- }
1412
- }
1413
- let startSteps = tr.steps.length;
1414
- for (let i = targetDepths.length - 1; i >= 0; i--) {
1415
- tr.replace(from, to, slice);
1416
- if (tr.steps.length > startSteps)
1417
- break;
1418
- let depth = targetDepths[i];
1419
- if (depth < 0)
1420
- continue;
1421
- from = $from.before(depth);
1422
- to = $to.after(depth);
1423
- }
1424
- }
1425
- function closeFragment(fragment, depth, oldOpen, newOpen, parent) {
1426
- if (depth < oldOpen) {
1427
- let first = fragment.firstChild;
1428
- fragment = fragment.replaceChild(0, first.copy(closeFragment(first.content, depth + 1, oldOpen, newOpen, first)));
1429
- }
1430
- if (depth > newOpen) {
1431
- let match = parent.contentMatchAt(0);
1432
- let start = match.fillBefore(fragment).append(fragment);
1433
- fragment = start.append(match.matchFragment(start).fillBefore(Fragment.empty, true));
1434
- }
1435
- return fragment;
1436
- }
1437
- function replaceRangeWith(tr, from, to, node) {
1438
- if (!node.isInline && from == to && tr.doc.resolve(from).parent.content.size) {
1439
- let point = insertPoint(tr.doc, from, node.type);
1440
- if (point != null)
1441
- from = to = point;
1442
- }
1443
- tr.replaceRange(from, to, new Slice(Fragment.from(node), 0, 0));
1444
- }
1445
- function deleteRange(tr, from, to) {
1446
- let $from = tr.doc.resolve(from), $to = tr.doc.resolve(to);
1447
- let covered = coveredDepths($from, $to);
1448
- for (let i = 0; i < covered.length; i++) {
1449
- let depth = covered[i], last = i == covered.length - 1;
1450
- if (last && depth == 0 || $from.node(depth).type.contentMatch.validEnd)
1451
- return tr.delete($from.start(depth), $to.end(depth));
1452
- if (depth > 0 && (last || $from.node(depth - 1).canReplace($from.index(depth - 1), $to.indexAfter(depth - 1))))
1453
- return tr.delete($from.before(depth), $to.after(depth));
1454
- }
1455
- for (let d = 1; d <= $from.depth && d <= $to.depth; d++) {
1456
- 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)))
1457
- return tr.delete($from.before(d), to);
1458
- }
1459
- tr.delete(from, to);
1460
- }
1461
- function coveredDepths($from, $to) {
1462
- let result = [], minDepth = Math.min($from.depth, $to.depth);
1463
- for (let d = minDepth; d >= 0; d--) {
1464
- let start = $from.start(d);
1465
- 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)
1466
- break;
1467
- if (start == $to.start(d) || d == $from.depth && d == $to.depth && $from.parent.inlineContent && $to.parent.inlineContent && d && $to.start(d - 1) == start - 1)
1468
- result.push(d);
1469
- }
1470
- return result;
1471
- }
1472
- class AttrStep extends Step {
1473
- /**
1474
- Construct an attribute step.
1475
- */
1476
- constructor(pos, attr, value) {
1477
- super();
1478
- this.pos = pos;
1479
- this.attr = attr;
1480
- this.value = value;
1481
- }
1482
- apply(doc) {
1483
- let node = doc.nodeAt(this.pos);
1484
- if (!node)
1485
- return StepResult.fail("No node at attribute step's position");
1486
- let attrs = /* @__PURE__ */ Object.create(null);
1487
- for (let name in node.attrs)
1488
- attrs[name] = node.attrs[name];
1489
- attrs[this.attr] = this.value;
1490
- let updated = node.type.create(attrs, null, node.marks);
1491
- return StepResult.fromReplace(doc, this.pos, this.pos + 1, new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1));
1492
- }
1493
- getMap() {
1494
- return StepMap.empty;
1495
- }
1496
- invert(doc) {
1497
- return new AttrStep(this.pos, this.attr, doc.nodeAt(this.pos).attrs[this.attr]);
1498
- }
1499
- map(mapping) {
1500
- let pos = mapping.mapResult(this.pos, 1);
1501
- return pos.deletedAfter ? null : new AttrStep(pos.pos, this.attr, this.value);
1502
- }
1503
- toJSON() {
1504
- return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
1505
- }
1506
- static fromJSON(schema, json) {
1507
- if (typeof json.pos != "number" || typeof json.attr != "string")
1508
- throw new RangeError("Invalid input for AttrStep.fromJSON");
1509
- return new AttrStep(json.pos, json.attr, json.value);
1510
- }
1511
- }
1512
- Step.jsonID("attr", AttrStep);
1513
- class DocAttrStep extends Step {
1514
- /**
1515
- Construct an attribute step.
1516
- */
1517
- constructor(attr, value) {
1518
- super();
1519
- this.attr = attr;
1520
- this.value = value;
1521
- }
1522
- apply(doc) {
1523
- let attrs = /* @__PURE__ */ Object.create(null);
1524
- for (let name in doc.attrs)
1525
- attrs[name] = doc.attrs[name];
1526
- attrs[this.attr] = this.value;
1527
- let updated = doc.type.create(attrs, doc.content, doc.marks);
1528
- return StepResult.ok(updated);
1529
- }
1530
- getMap() {
1531
- return StepMap.empty;
1532
- }
1533
- invert(doc) {
1534
- return new DocAttrStep(this.attr, doc.attrs[this.attr]);
1535
- }
1536
- map(mapping) {
1537
- return this;
1538
- }
1539
- toJSON() {
1540
- return { stepType: "docAttr", attr: this.attr, value: this.value };
1541
- }
1542
- static fromJSON(schema, json) {
1543
- if (typeof json.attr != "string")
1544
- throw new RangeError("Invalid input for DocAttrStep.fromJSON");
1545
- return new DocAttrStep(json.attr, json.value);
1546
- }
1547
- }
1548
- Step.jsonID("docAttr", DocAttrStep);
1549
- let TransformError = class extends Error {
1550
- };
1551
- TransformError = function TransformError2(message) {
1552
- let err = Error.call(this, message);
1553
- err.__proto__ = TransformError2.prototype;
1554
- return err;
1555
- };
1556
- TransformError.prototype = Object.create(Error.prototype);
1557
- TransformError.prototype.constructor = TransformError;
1558
- TransformError.prototype.name = "TransformError";
1559
- class Transform {
1560
- /**
1561
- Create a transform that starts with the given document.
1562
- */
1563
- constructor(doc) {
1564
- this.doc = doc;
1565
- this.steps = [];
1566
- this.docs = [];
1567
- this.mapping = new Mapping();
1568
- }
1569
- /**
1570
- The starting document.
1571
- */
1572
- get before() {
1573
- return this.docs.length ? this.docs[0] : this.doc;
1574
- }
1575
- /**
1576
- Apply a new step in this transform, saving the result. Throws an
1577
- error when the step fails.
1578
- */
1579
- step(step) {
1580
- let result = this.maybeStep(step);
1581
- if (result.failed)
1582
- throw new TransformError(result.failed);
1583
- return this;
1584
- }
1585
- /**
1586
- Try to apply a step in this transformation, ignoring it if it
1587
- fails. Returns the step result.
1588
- */
1589
- maybeStep(step) {
1590
- let result = step.apply(this.doc);
1591
- if (!result.failed)
1592
- this.addStep(step, result.doc);
1593
- return result;
1594
- }
1595
- /**
1596
- True when the document has been changed (when there are any
1597
- steps).
1598
- */
1599
- get docChanged() {
1600
- return this.steps.length > 0;
1601
- }
1602
- /**
1603
- @internal
1604
- */
1605
- addStep(step, doc) {
1606
- this.docs.push(this.doc);
1607
- this.steps.push(step);
1608
- this.mapping.appendMap(step.getMap());
1609
- this.doc = doc;
1610
- }
1611
- /**
1612
- Replace the part of the document between `from` and `to` with the
1613
- given `slice`.
1614
- */
1615
- replace(from, to = from, slice = Slice.empty) {
1616
- let step = replaceStep(this.doc, from, to, slice);
1617
- if (step)
1618
- this.step(step);
1619
- return this;
1620
- }
1621
- /**
1622
- Replace the given range with the given content, which may be a
1623
- fragment, node, or array of nodes.
1624
- */
1625
- replaceWith(from, to, content) {
1626
- return this.replace(from, to, new Slice(Fragment.from(content), 0, 0));
1627
- }
1628
- /**
1629
- Delete the content between the given positions.
1630
- */
1631
- delete(from, to) {
1632
- return this.replace(from, to, Slice.empty);
1633
- }
1634
- /**
1635
- Insert the given content at the given position.
1636
- */
1637
- insert(pos, content) {
1638
- return this.replaceWith(pos, pos, content);
1639
- }
1640
- /**
1641
- Replace a range of the document with a given slice, using
1642
- `from`, `to`, and the slice's
1643
- [`openStart`](https://prosemirror.net/docs/ref/#model.Slice.openStart) property as hints, rather
1644
- than fixed start and end points. This method may grow the
1645
- replaced area or close open nodes in the slice in order to get a
1646
- fit that is more in line with WYSIWYG expectations, by dropping
1647
- fully covered parent nodes of the replaced region when they are
1648
- marked [non-defining as
1649
- context](https://prosemirror.net/docs/ref/#model.NodeSpec.definingAsContext), or including an
1650
- open parent node from the slice that _is_ marked as [defining
1651
- its content](https://prosemirror.net/docs/ref/#model.NodeSpec.definingForContent).
1652
-
1653
- This is the method, for example, to handle paste. The similar
1654
- [`replace`](https://prosemirror.net/docs/ref/#transform.Transform.replace) method is a more
1655
- primitive tool which will _not_ move the start and end of its given
1656
- range, and is useful in situations where you need more precise
1657
- control over what happens.
1658
- */
1659
- replaceRange(from, to, slice) {
1660
- replaceRange(this, from, to, slice);
1661
- return this;
1662
- }
1663
- /**
1664
- Replace the given range with a node, but use `from` and `to` as
1665
- hints, rather than precise positions. When from and to are the same
1666
- and are at the start or end of a parent node in which the given
1667
- node doesn't fit, this method may _move_ them out towards a parent
1668
- that does allow the given node to be placed. When the given range
1669
- completely covers a parent node, this method may completely replace
1670
- that parent node.
1671
- */
1672
- replaceRangeWith(from, to, node) {
1673
- replaceRangeWith(this, from, to, node);
1674
- return this;
1675
- }
1676
- /**
1677
- Delete the given range, expanding it to cover fully covered
1678
- parent nodes until a valid replace is found.
1679
- */
1680
- deleteRange(from, to) {
1681
- deleteRange(this, from, to);
1682
- return this;
1683
- }
1684
- /**
1685
- Split the content in the given range off from its parent, if there
1686
- is sibling content before or after it, and move it up the tree to
1687
- the depth specified by `target`. You'll probably want to use
1688
- [`liftTarget`](https://prosemirror.net/docs/ref/#transform.liftTarget) to compute `target`, to make
1689
- sure the lift is valid.
1690
- */
1691
- lift(range, target) {
1692
- lift(this, range, target);
1693
- return this;
1694
- }
1695
- /**
1696
- Join the blocks around the given position. If depth is 2, their
1697
- last and first siblings are also joined, and so on.
1698
- */
1699
- join(pos, depth = 1) {
1700
- join(this, pos, depth);
1701
- return this;
1702
- }
1703
- /**
1704
- Wrap the given [range](https://prosemirror.net/docs/ref/#model.NodeRange) in the given set of wrappers.
1705
- The wrappers are assumed to be valid in this position, and should
1706
- probably be computed with [`findWrapping`](https://prosemirror.net/docs/ref/#transform.findWrapping).
1707
- */
1708
- wrap(range, wrappers) {
1709
- wrap(this, range, wrappers);
1710
- return this;
1711
- }
1712
- /**
1713
- Set the type of all textblocks (partly) between `from` and `to` to
1714
- the given node type with the given attributes.
1715
- */
1716
- setBlockType(from, to = from, type, attrs = null) {
1717
- setBlockType(this, from, to, type, attrs);
1718
- return this;
1719
- }
1720
- /**
1721
- Change the type, attributes, and/or marks of the node at `pos`.
1722
- When `type` isn't given, the existing node type is preserved,
1723
- */
1724
- setNodeMarkup(pos, type, attrs = null, marks) {
1725
- setNodeMarkup(this, pos, type, attrs, marks);
1726
- return this;
1727
- }
1728
- /**
1729
- Set a single attribute on a given node to a new value.
1730
- The `pos` addresses the document content. Use `setDocAttribute`
1731
- to set attributes on the document itself.
1732
- */
1733
- setNodeAttribute(pos, attr, value) {
1734
- this.step(new AttrStep(pos, attr, value));
1735
- return this;
1736
- }
1737
- /**
1738
- Set a single attribute on the document to a new value.
1739
- */
1740
- setDocAttribute(attr, value) {
1741
- this.step(new DocAttrStep(attr, value));
1742
- return this;
1743
- }
1744
- /**
1745
- Add a mark to the node at position `pos`.
1746
- */
1747
- addNodeMark(pos, mark) {
1748
- this.step(new AddNodeMarkStep(pos, mark));
1749
- return this;
1750
- }
1751
- /**
1752
- Remove a mark (or all marks of the given type) from the node at
1753
- position `pos`.
1754
- */
1755
- removeNodeMark(pos, mark) {
1756
- let node = this.doc.nodeAt(pos);
1757
- if (!node)
1758
- throw new RangeError("No node at position " + pos);
1759
- if (mark instanceof Mark) {
1760
- if (mark.isInSet(node.marks))
1761
- this.step(new RemoveNodeMarkStep(pos, mark));
1762
- } else {
1763
- let set = node.marks, found, steps = [];
1764
- while (found = mark.isInSet(set)) {
1765
- steps.push(new RemoveNodeMarkStep(pos, found));
1766
- set = found.removeFromSet(set);
1767
- }
1768
- for (let i = steps.length - 1; i >= 0; i--)
1769
- this.step(steps[i]);
1770
- }
1771
- return this;
1772
- }
1773
- /**
1774
- Split the node at the given position, and optionally, if `depth` is
1775
- greater than one, any number of nodes above that. By default, the
1776
- parts split off will inherit the node type of the original node.
1777
- This can be changed by passing an array of types and attributes to
1778
- use after the split (with the outermost nodes coming first).
1779
- */
1780
- split(pos, depth = 1, typesAfter) {
1781
- split(this, pos, depth, typesAfter);
1782
- return this;
1783
- }
1784
- /**
1785
- Add the given mark to the inline content between `from` and `to`.
1786
- */
1787
- addMark(from, to, mark) {
1788
- addMark(this, from, to, mark);
1789
- return this;
1790
- }
1791
- /**
1792
- Remove marks from inline nodes between `from` and `to`. When
1793
- `mark` is a single mark, remove precisely that mark. When it is
1794
- a mark type, remove all marks of that type. When it is null,
1795
- remove all marks of any type.
1796
- */
1797
- removeMark(from, to, mark) {
1798
- removeMark(this, from, to, mark);
1799
- return this;
1800
- }
1801
- /**
1802
- Removes all marks and nodes from the content of the node at
1803
- `pos` that don't match the given new parent node type. Accepts
1804
- an optional starting [content match](https://prosemirror.net/docs/ref/#model.ContentMatch) as
1805
- third argument.
1806
- */
1807
- clearIncompatible(pos, parentType, match) {
1808
- clearIncompatible(this, pos, parentType, match);
1809
- return this;
1810
- }
1811
- }
1812
- export {
1813
- Mapping as M,
1814
- ReplaceStep as R,
1815
- Transform as T,
1816
- canSplit as a,
1817
- ReplaceAroundStep as b,
1818
- canJoin as c,
1819
- dropPoint as d,
1820
- findWrapping as f,
1821
- joinPoint as j,
1822
- liftTarget as l,
1823
- replaceStep as r
1824
- };