@nextcloud/vue 8.30.0 → 8.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1105) hide show
  1. package/CHANGELOG.md +48 -2
  2. package/dist/Components/NcActionButton.cjs +1 -1
  3. package/dist/Components/NcActionButton.mjs +1 -1
  4. package/dist/Components/NcActionButtonGroup.cjs +1 -1
  5. package/dist/Components/NcActionButtonGroup.mjs +1 -1
  6. package/dist/Components/NcActionCheckbox.cjs +1 -1
  7. package/dist/Components/NcActionCheckbox.mjs +1 -1
  8. package/dist/Components/NcActionInput.cjs +1 -1
  9. package/dist/Components/NcActionInput.mjs +1 -1
  10. package/dist/Components/NcActionLink.cjs +6 -6
  11. package/dist/Components/NcActionLink.cjs.map +1 -1
  12. package/dist/Components/NcActionLink.mjs +6 -6
  13. package/dist/Components/NcActionLink.mjs.map +1 -1
  14. package/dist/Components/NcActionRadio.cjs +1 -1
  15. package/dist/Components/NcActionRadio.mjs +1 -1
  16. package/dist/Components/NcActionRouter.cjs +4 -5
  17. package/dist/Components/NcActionRouter.cjs.map +1 -1
  18. package/dist/Components/NcActionRouter.mjs +4 -5
  19. package/dist/Components/NcActionRouter.mjs.map +1 -1
  20. package/dist/Components/NcActionText.cjs +4 -4
  21. package/dist/Components/NcActionText.cjs.map +1 -1
  22. package/dist/Components/NcActionText.mjs +4 -4
  23. package/dist/Components/NcActionText.mjs.map +1 -1
  24. package/dist/Components/NcActionTextEditable.cjs +1 -1
  25. package/dist/Components/NcActionTextEditable.mjs +1 -1
  26. package/dist/Components/NcActions.cjs +1 -1
  27. package/dist/Components/NcActions.mjs +1 -1
  28. package/dist/Components/NcAppContent.cjs +1 -1
  29. package/dist/Components/NcAppContent.mjs +1 -1
  30. package/dist/Components/NcAppContentList.cjs +6 -0
  31. package/dist/Components/NcAppContentList.cjs.map +1 -1
  32. package/dist/Components/NcAppContentList.mjs +6 -0
  33. package/dist/Components/NcAppContentList.mjs.map +1 -1
  34. package/dist/Components/NcAppNavigation.cjs +1 -1
  35. package/dist/Components/NcAppNavigation.mjs +1 -1
  36. package/dist/Components/NcAppNavigationCaption.cjs +1 -1
  37. package/dist/Components/NcAppNavigationCaption.mjs +1 -1
  38. package/dist/Components/NcAppNavigationIconBullet.cjs +5 -2
  39. package/dist/Components/NcAppNavigationIconBullet.cjs.map +1 -1
  40. package/dist/Components/NcAppNavigationIconBullet.mjs +5 -2
  41. package/dist/Components/NcAppNavigationIconBullet.mjs.map +1 -1
  42. package/dist/Components/NcAppNavigationItem.cjs +1 -1
  43. package/dist/Components/NcAppNavigationItem.mjs +1 -1
  44. package/dist/Components/NcAppNavigationNew.cjs +2 -65
  45. package/dist/Components/NcAppNavigationNew.cjs.map +1 -1
  46. package/dist/Components/NcAppNavigationNew.mjs +2 -65
  47. package/dist/Components/NcAppNavigationNew.mjs.map +1 -1
  48. package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
  49. package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
  50. package/dist/Components/NcAppNavigationSearch.cjs +1 -1
  51. package/dist/Components/NcAppNavigationSearch.mjs +1 -1
  52. package/dist/Components/NcAppNavigationSettings.cjs +1 -1
  53. package/dist/Components/NcAppNavigationSettings.mjs +1 -1
  54. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  55. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  56. package/dist/Components/NcAppSettingsDialog.cjs +1 -1
  57. package/dist/Components/NcAppSettingsDialog.mjs +1 -1
  58. package/dist/Components/NcAppSettingsSection.cjs +2 -57
  59. package/dist/Components/NcAppSettingsSection.cjs.map +1 -1
  60. package/dist/Components/NcAppSettingsSection.mjs +2 -57
  61. package/dist/Components/NcAppSettingsSection.mjs.map +1 -1
  62. package/dist/Components/NcAppSidebar.cjs +1 -1
  63. package/dist/Components/NcAppSidebar.mjs +1 -1
  64. package/dist/Components/NcAppSidebarHeader.cjs +1 -1
  65. package/dist/Components/NcAppSidebarHeader.mjs +1 -1
  66. package/dist/Components/NcAppSidebarTab.cjs +8 -4
  67. package/dist/Components/NcAppSidebarTab.cjs.map +1 -1
  68. package/dist/Components/NcAppSidebarTab.mjs +8 -4
  69. package/dist/Components/NcAppSidebarTab.mjs.map +1 -1
  70. package/dist/Components/NcAssistantButton.cjs +1 -1
  71. package/dist/Components/NcAssistantButton.mjs +1 -1
  72. package/dist/Components/NcAssistantIcon.cjs +1 -1
  73. package/dist/Components/NcAssistantIcon.mjs +1 -1
  74. package/dist/Components/NcAvatar.cjs +1 -1
  75. package/dist/Components/NcAvatar.mjs +1 -1
  76. package/dist/Components/NcBlurHash.cjs +1 -1
  77. package/dist/Components/NcBlurHash.mjs +1 -1
  78. package/dist/Components/NcBreadcrumb.cjs +1 -1
  79. package/dist/Components/NcBreadcrumb.mjs +1 -1
  80. package/dist/Components/NcBreadcrumbs.cjs +1 -1
  81. package/dist/Components/NcBreadcrumbs.mjs +1 -1
  82. package/dist/Components/NcButton.cjs +2 -332
  83. package/dist/Components/NcButton.cjs.map +1 -1
  84. package/dist/Components/NcButton.mjs +2 -332
  85. package/dist/Components/NcButton.mjs.map +1 -1
  86. package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
  87. package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
  88. package/dist/Components/NcChip.cjs +23 -15
  89. package/dist/Components/NcChip.cjs.map +1 -1
  90. package/dist/Components/NcChip.mjs +23 -15
  91. package/dist/Components/NcChip.mjs.map +1 -1
  92. package/dist/Components/NcCollectionList.cjs +1 -1
  93. package/dist/Components/NcCollectionList.mjs +1 -1
  94. package/dist/Components/NcColorPicker.cjs +1 -1
  95. package/dist/Components/NcColorPicker.mjs +1 -1
  96. package/dist/Components/NcContent.cjs +1 -1
  97. package/dist/Components/NcContent.mjs +1 -1
  98. package/dist/Components/NcCounterBubble.cjs +1 -1
  99. package/dist/Components/NcCounterBubble.mjs +1 -1
  100. package/dist/Components/NcDashboardWidget.cjs +1 -1
  101. package/dist/Components/NcDashboardWidget.mjs +1 -1
  102. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  103. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  104. package/dist/Components/NcDateTime.cjs +1 -1
  105. package/dist/Components/NcDateTime.mjs +1 -1
  106. package/dist/Components/NcDateTimePicker.cjs +67 -23
  107. package/dist/Components/NcDateTimePicker.cjs.map +1 -1
  108. package/dist/Components/NcDateTimePicker.mjs +67 -23
  109. package/dist/Components/NcDateTimePicker.mjs.map +1 -1
  110. package/dist/Components/NcDateTimePickerNative.cjs +39 -19
  111. package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
  112. package/dist/Components/NcDateTimePickerNative.mjs +39 -19
  113. package/dist/Components/NcDateTimePickerNative.mjs.map +1 -1
  114. package/dist/Components/NcDialog.cjs +1 -1
  115. package/dist/Components/NcDialog.mjs +1 -1
  116. package/dist/Components/NcDialogButton.cjs +1 -1
  117. package/dist/Components/NcDialogButton.mjs +1 -1
  118. package/dist/Components/NcEllipsisedOption.cjs +3 -3
  119. package/dist/Components/NcEllipsisedOption.cjs.map +1 -1
  120. package/dist/Components/NcEllipsisedOption.mjs +3 -3
  121. package/dist/Components/NcEllipsisedOption.mjs.map +1 -1
  122. package/dist/Components/NcEmojiPicker.cjs +1 -1
  123. package/dist/Components/NcEmojiPicker.mjs +1 -1
  124. package/dist/Components/NcEmptyContent.cjs +6 -3
  125. package/dist/Components/NcEmptyContent.cjs.map +1 -1
  126. package/dist/Components/NcEmptyContent.mjs +6 -3
  127. package/dist/Components/NcEmptyContent.mjs.map +1 -1
  128. package/dist/Components/NcGuestContent.cjs +2 -2
  129. package/dist/Components/NcGuestContent.cjs.map +1 -1
  130. package/dist/Components/NcGuestContent.mjs +2 -2
  131. package/dist/Components/NcGuestContent.mjs.map +1 -1
  132. package/dist/Components/NcHeaderButton.cjs +2 -61
  133. package/dist/Components/NcHeaderButton.cjs.map +1 -1
  134. package/dist/Components/NcHeaderButton.mjs +2 -61
  135. package/dist/Components/NcHeaderButton.mjs.map +1 -1
  136. package/dist/Components/NcHeaderMenu.cjs +1 -1
  137. package/dist/Components/NcHeaderMenu.mjs +1 -1
  138. package/dist/Components/NcHighlight.cjs +1 -1
  139. package/dist/Components/NcHighlight.mjs +1 -1
  140. package/dist/Components/NcIconSvgWrapper.cjs +1 -1
  141. package/dist/Components/NcIconSvgWrapper.mjs +1 -1
  142. package/dist/Components/NcInputField.cjs +1 -1
  143. package/dist/Components/NcInputField.mjs +1 -1
  144. package/dist/Components/NcKbd.cjs +65 -0
  145. package/dist/Components/NcKbd.cjs.map +1 -0
  146. package/dist/Components/NcKbd.mjs +66 -0
  147. package/dist/Components/NcKbd.mjs.map +1 -0
  148. package/dist/Components/NcListItem.cjs +1 -1
  149. package/dist/Components/NcListItem.mjs +1 -1
  150. package/dist/Components/NcListItemIcon.cjs +1 -1
  151. package/dist/Components/NcListItemIcon.mjs +1 -1
  152. package/dist/Components/NcLoadingIcon.cjs +2 -2
  153. package/dist/Components/NcLoadingIcon.cjs.map +1 -1
  154. package/dist/Components/NcLoadingIcon.mjs +2 -2
  155. package/dist/Components/NcLoadingIcon.mjs.map +1 -1
  156. package/dist/Components/NcModal.cjs +83 -54
  157. package/dist/Components/NcModal.cjs.map +1 -1
  158. package/dist/Components/NcModal.mjs +82 -53
  159. package/dist/Components/NcModal.mjs.map +1 -1
  160. package/dist/Components/NcNoteCard.cjs +12 -12
  161. package/dist/Components/NcNoteCard.cjs.map +1 -1
  162. package/dist/Components/NcNoteCard.mjs +12 -12
  163. package/dist/Components/NcNoteCard.mjs.map +1 -1
  164. package/dist/Components/NcPasswordField.cjs +1 -1
  165. package/dist/Components/NcPasswordField.mjs +1 -1
  166. package/dist/Components/NcPopover.cjs +1 -1
  167. package/dist/Components/NcPopover.mjs +1 -1
  168. package/dist/Components/NcProgressBar.cjs +1 -1
  169. package/dist/Components/NcProgressBar.mjs +1 -1
  170. package/dist/Components/NcRadioGroup.cjs +4 -0
  171. package/dist/Components/NcRadioGroup.cjs.map +1 -0
  172. package/dist/Components/NcRadioGroup.mjs +5 -0
  173. package/dist/Components/NcRadioGroup.mjs.map +1 -0
  174. package/dist/Components/NcRadioGroupButton.cjs +4 -0
  175. package/dist/Components/NcRadioGroupButton.cjs.map +1 -0
  176. package/dist/Components/NcRadioGroupButton.mjs +5 -0
  177. package/dist/Components/NcRadioGroupButton.mjs.map +1 -0
  178. package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
  179. package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
  180. package/dist/Components/NcRichContenteditable.cjs +2 -2
  181. package/dist/Components/NcRichContenteditable.mjs +2 -2
  182. package/dist/Components/NcRichText.cjs +10 -10
  183. package/dist/Components/NcRichText.mjs +17 -17
  184. package/dist/Components/NcSelect.cjs +1 -1
  185. package/dist/Components/NcSelect.mjs +1 -1
  186. package/dist/Components/NcSelectTags.cjs +1 -1
  187. package/dist/Components/NcSelectTags.mjs +1 -1
  188. package/dist/Components/NcSelectUsers.cjs +1 -1
  189. package/dist/Components/NcSelectUsers.mjs +1 -1
  190. package/dist/Components/NcSettingsInputText.cjs +1 -1
  191. package/dist/Components/NcSettingsInputText.mjs +1 -1
  192. package/dist/Components/NcSettingsSection.cjs +1 -1
  193. package/dist/Components/NcSettingsSection.mjs +1 -1
  194. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  195. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  196. package/dist/Components/NcTextArea.cjs +1 -1
  197. package/dist/Components/NcTextArea.mjs +1 -1
  198. package/dist/Components/NcTextField.cjs +1 -1
  199. package/dist/Components/NcTextField.mjs +1 -1
  200. package/dist/Components/NcThemeProvider.cjs +1 -1
  201. package/dist/Components/NcThemeProvider.mjs +1 -1
  202. package/dist/Components/NcTimezonePicker.cjs +1 -1
  203. package/dist/Components/NcTimezonePicker.mjs +1 -1
  204. package/dist/Components/NcUserBubble.cjs +1 -1
  205. package/dist/Components/NcUserBubble.mjs +1 -1
  206. package/dist/Components/NcUserStatusIcon.cjs +1 -1
  207. package/dist/Components/NcUserStatusIcon.mjs +1 -1
  208. package/dist/Components/NcVNodes.cjs +3 -3
  209. package/dist/Components/NcVNodes.cjs.map +1 -1
  210. package/dist/Components/NcVNodes.mjs +3 -3
  211. package/dist/Components/NcVNodes.mjs.map +1 -1
  212. package/dist/Composables/useFormatDateTime.cjs +28 -15
  213. package/dist/Composables/useFormatDateTime.cjs.map +1 -1
  214. package/dist/Composables/useFormatDateTime.mjs +28 -15
  215. package/dist/Composables/useFormatDateTime.mjs.map +1 -1
  216. package/dist/Composables/useHotKey.cjs +4 -3
  217. package/dist/Composables/useHotKey.cjs.map +1 -1
  218. package/dist/Composables/useHotKey.mjs +3 -2
  219. package/dist/Composables/useHotKey.mjs.map +1 -1
  220. package/dist/Composables/useIsDarkTheme.cjs +5 -2
  221. package/dist/Composables/useIsDarkTheme.cjs.map +1 -1
  222. package/dist/Composables/useIsDarkTheme.mjs +5 -2
  223. package/dist/Composables/useIsDarkTheme.mjs.map +1 -1
  224. package/dist/Composables/useIsFullscreen.cjs.map +1 -1
  225. package/dist/Composables/useIsFullscreen.mjs.map +1 -1
  226. package/dist/Composables/useIsMobile.cjs.map +1 -1
  227. package/dist/Composables/useIsMobile.mjs.map +1 -1
  228. package/dist/Directives/Focus.cjs.map +1 -1
  229. package/dist/Directives/Focus.mjs.map +1 -1
  230. package/dist/Directives/Linkify.cjs +6 -7
  231. package/dist/Directives/Linkify.cjs.map +1 -1
  232. package/dist/Directives/Linkify.mjs +6 -6
  233. package/dist/Directives/Linkify.mjs.map +1 -1
  234. package/dist/Directives/Tooltip.cjs.map +1 -1
  235. package/dist/Directives/Tooltip.mjs.map +1 -1
  236. package/dist/Functions/a11y.cjs +2 -2
  237. package/dist/Functions/a11y.cjs.map +1 -1
  238. package/dist/Functions/a11y.mjs +2 -2
  239. package/dist/Functions/a11y.mjs.map +1 -1
  240. package/dist/Functions/contactsMenu.cjs +3 -2
  241. package/dist/Functions/contactsMenu.cjs.map +1 -1
  242. package/dist/Functions/contactsMenu.mjs +3 -2
  243. package/dist/Functions/contactsMenu.mjs.map +1 -1
  244. package/dist/Functions/dialog.cjs +20 -5
  245. package/dist/Functions/dialog.cjs.map +1 -1
  246. package/dist/Functions/dialog.mjs +20 -5
  247. package/dist/Functions/dialog.mjs.map +1 -1
  248. package/dist/Functions/emoji.cjs +1 -1
  249. package/dist/Functions/emoji.mjs +1 -1
  250. package/dist/Functions/isDarkTheme.cjs.map +1 -1
  251. package/dist/Functions/isDarkTheme.mjs.map +1 -1
  252. package/dist/Functions/preloadImage.cjs.map +1 -1
  253. package/dist/Functions/preloadImage.mjs.map +1 -1
  254. package/dist/Functions/reference.cjs +2 -2
  255. package/dist/Functions/reference.mjs +10 -10
  256. package/dist/Functions/registerReference.cjs +1 -1
  257. package/dist/Functions/registerReference.mjs +5 -5
  258. package/dist/Functions/usernameToColor.cjs +2 -2
  259. package/dist/Functions/usernameToColor.cjs.map +1 -1
  260. package/dist/Functions/usernameToColor.mjs +2 -2
  261. package/dist/Functions/usernameToColor.mjs.map +1 -1
  262. package/dist/Mixins/clickOutsideOptions.cjs.map +1 -1
  263. package/dist/Mixins/clickOutsideOptions.mjs.map +1 -1
  264. package/dist/Mixins/isFullscreen.cjs.map +1 -1
  265. package/dist/Mixins/isFullscreen.mjs.map +1 -1
  266. package/dist/Mixins/isMobile.cjs.map +1 -1
  267. package/dist/Mixins/isMobile.mjs.map +1 -1
  268. package/dist/Mixins/richEditor.cjs +1 -1
  269. package/dist/Mixins/richEditor.mjs +1 -1
  270. package/dist/assets/NcActionButton-DwJihiLc.css +119 -0
  271. package/dist/assets/NcActionButtonGroup-CRXLyFpx.css +47 -0
  272. package/dist/assets/NcActionCheckbox-DvdNISIs.css +80 -0
  273. package/dist/assets/NcActionInput-DsGwr3wt.css +230 -0
  274. package/dist/assets/NcActionLink-7Wp6P-Nk.css +102 -0
  275. package/dist/assets/NcActionRadio-CLsR2Ore.css +79 -0
  276. package/dist/assets/NcActionRouter-ByijfQtF.css +113 -0
  277. package/dist/assets/NcActionText-CR_yvwWo.css +117 -0
  278. package/dist/assets/NcActionTextEditable-CCWTiT5c.css +252 -0
  279. package/dist/assets/NcActions-B4-9qwLn.css +80 -0
  280. package/dist/assets/NcAppContent-BpjG38I8.css +124 -0
  281. package/dist/assets/NcAppNavigation-Bg4Oe7WC.css +110 -0
  282. package/dist/assets/NcAppNavigationCaption-C7GtQb_y.css +49 -0
  283. package/dist/assets/NcAppNavigationIconBullet-DLQJkObX.css +30 -0
  284. package/dist/assets/NcAppNavigationItem-UaB3qdsS.css +232 -0
  285. package/dist/assets/NcAppNavigationNew-D8_2ab9R.css +27 -0
  286. package/dist/assets/NcAppNavigationNewItem-Cjbn5XkO.css +217 -0
  287. package/dist/assets/NcAppNavigationSearch-o97SOfOb.css +41 -0
  288. package/dist/assets/NcAppNavigationSettings-1YRzh-xl.css +74 -0
  289. package/dist/assets/NcAppNavigationToggle-DgwbZOWc.css +27 -0
  290. package/dist/assets/NcAppSettingsDialog-DH3DIIwL.css +74 -0
  291. package/dist/assets/NcAppSettingsSection-Dq0eTGEp.css +30 -0
  292. package/dist/assets/NcAppSidebar-Bd2cj1W-.css +349 -0
  293. package/dist/assets/NcAppSidebarTab-IcebyGtN.css +34 -0
  294. package/dist/assets/NcAssistantIcon-BoOnqVRr.css +35 -0
  295. package/dist/assets/NcAvatar-Cm4kVIfS.css +133 -0
  296. package/dist/assets/NcBreadcrumb-0xB19h6f.css +68 -0
  297. package/dist/assets/NcBreadcrumbs-DahxPGJY.css +37 -0
  298. package/dist/assets/NcButton-uQUvp7DS.css +219 -0
  299. package/dist/assets/NcCheckboxRadioSwitch-BcHKt-lf.css +224 -0
  300. package/dist/assets/NcChip-Cc17FJEC.css +65 -0
  301. package/dist/assets/NcCollectionList-hRgvNUMR.css +221 -0
  302. package/dist/assets/NcColorPicker-CCqpXoam.css +180 -0
  303. package/dist/assets/NcContent-IIXgAj_u.css +85 -0
  304. package/dist/assets/NcCounterBubble-sz81L2Mt.css +53 -0
  305. package/dist/assets/NcDashboardWidget-DzJMoJ_B.css +73 -0
  306. package/dist/assets/NcDashboardWidgetItem-CAsF_ZMZ.css +85 -0
  307. package/dist/assets/NcDateTimePicker-C6sMtYzL.css +895 -0
  308. package/dist/assets/NcDateTimePickerNative-ZqMiOh_m.css +60 -0
  309. package/dist/assets/NcDialog-COuFb47k.css +132 -0
  310. package/dist/assets/NcEllipsisedOption-DRkFZ9bI.css +34 -0
  311. package/dist/assets/NcEmojiPicker-B-iLLj37.css +550 -0
  312. package/dist/assets/NcEmptyContent-xdTcF0yQ.css +68 -0
  313. package/dist/assets/NcGuestContent-BkegjnLL.css +50 -0
  314. package/dist/assets/NcHeaderButton-CeT-dsLr.css +54 -0
  315. package/dist/assets/NcHeaderMenu-BXb9npZp.css +88 -0
  316. package/dist/assets/NcIconSvgWrapper-DJQ2Kuip.css +46 -0
  317. package/dist/assets/NcInputConfirmCancel-CkhRZCfD.css +39 -0
  318. package/dist/assets/NcInputField-BI3vWgSo.css +206 -0
  319. package/dist/assets/NcKbd-BGW1_Jb7.css +36 -0
  320. package/dist/assets/NcListItem-rxOwDYE-.css +186 -0
  321. package/dist/assets/NcListItemIcon-Co3jVZZ8.css +72 -0
  322. package/dist/assets/NcLoadingIcon-C7S2_wmi.css +24 -0
  323. package/dist/assets/NcMentionBubble-CaztX9Pv.css +73 -0
  324. package/dist/assets/NcModal-4ZPVUmG2.css +289 -0
  325. package/dist/assets/NcNoteCard-Dz5-u2BY.css +67 -0
  326. package/dist/assets/NcPasswordField-mhXQk8aT.css +21 -0
  327. package/dist/assets/NcProgressBar-CU_ib_HL.css +56 -0
  328. package/dist/assets/NcRadioGroup-CNgjqqiP.css +49 -0
  329. package/dist/assets/NcRadioGroupButton-6mf16D0h.css +86 -0
  330. package/dist/assets/NcRelatedResourcesPanel-BgMc8bue.css +158 -0
  331. package/dist/assets/NcRichContenteditable-Ds_cptgr.css +274 -0
  332. package/dist/assets/NcRichText-CVy4zTPr.css +331 -0
  333. package/dist/assets/NcSelect-B1pyRV6j.css +201 -0
  334. package/dist/assets/NcSelectUsers-CfOSPgtz.css +4 -0
  335. package/dist/assets/NcSettingsInputText-18lfGViv.css +35 -0
  336. package/dist/assets/NcSettingsSection-D_qeKnRb.css +57 -0
  337. package/dist/assets/NcSettingsSelectGroup-B9FlWQVH.css +23 -0
  338. package/dist/assets/NcTextArea-B6zS3CRN.css +136 -0
  339. package/dist/assets/NcUserBubble-uIpJvFoQ.css +48 -0
  340. package/dist/assets/NcUserStatusIcon-Bw8yMFMP.css +34 -0
  341. package/dist/assets/referencePickerModal-CGtNx7ew.css +396 -0
  342. package/dist/chunks/GenRandomId-D7iOvpZS.cjs +6 -0
  343. package/dist/chunks/GenRandomId-D7iOvpZS.cjs.map +1 -0
  344. package/dist/chunks/GenRandomId-F5ebeBB_.mjs +7 -0
  345. package/dist/chunks/GenRandomId-F5ebeBB_.mjs.map +1 -0
  346. package/dist/chunks/NcActionButton-CZsSFAT4.mjs +184 -0
  347. package/dist/chunks/NcActionButton-CZsSFAT4.mjs.map +1 -0
  348. package/dist/chunks/NcActionButton-lJ0IA3IS.cjs +183 -0
  349. package/dist/chunks/NcActionButton-lJ0IA3IS.cjs.map +1 -0
  350. package/dist/chunks/NcActionButtonGroup-CIvAeDpU.mjs +52 -0
  351. package/dist/chunks/NcActionButtonGroup-CIvAeDpU.mjs.map +1 -0
  352. package/dist/chunks/NcActionButtonGroup-CQZL14Nz.cjs +51 -0
  353. package/dist/chunks/NcActionButtonGroup-CQZL14Nz.cjs.map +1 -0
  354. package/dist/chunks/NcActionCheckbox-BAuN4ZMC.mjs +143 -0
  355. package/dist/chunks/NcActionCheckbox-BAuN4ZMC.mjs.map +1 -0
  356. package/dist/chunks/NcActionCheckbox-BvMmq0jL.cjs +142 -0
  357. package/dist/chunks/NcActionCheckbox-BvMmq0jL.cjs.map +1 -0
  358. package/dist/chunks/NcActionInput-CfznemNH.mjs +291 -0
  359. package/dist/chunks/NcActionInput-CfznemNH.mjs.map +1 -0
  360. package/dist/chunks/NcActionInput-DfjLV0Gg.cjs +291 -0
  361. package/dist/chunks/NcActionInput-DfjLV0Gg.cjs.map +1 -0
  362. package/dist/chunks/NcActionRadio-Bg5VuF7I.mjs +151 -0
  363. package/dist/chunks/NcActionRadio-Bg5VuF7I.mjs.map +1 -0
  364. package/dist/chunks/NcActionRadio-CBh6AlC4.cjs +152 -0
  365. package/dist/chunks/NcActionRadio-CBh6AlC4.cjs.map +1 -0
  366. package/dist/chunks/NcActionTextEditable-BhucWrOO.cjs +126 -0
  367. package/dist/chunks/NcActionTextEditable-BhucWrOO.cjs.map +1 -0
  368. package/dist/chunks/NcActionTextEditable-CSP4OjpU.mjs +127 -0
  369. package/dist/chunks/NcActionTextEditable-CSP4OjpU.mjs.map +1 -0
  370. package/dist/chunks/NcActions-A918mfXE.mjs +909 -0
  371. package/dist/chunks/NcActions-A918mfXE.mjs.map +1 -0
  372. package/dist/chunks/NcActions-D3N_As6c.cjs +910 -0
  373. package/dist/chunks/NcActions-D3N_As6c.cjs.map +1 -0
  374. package/dist/chunks/NcAppContent-CCyPMvUa.cjs +359 -0
  375. package/dist/chunks/NcAppContent-CCyPMvUa.cjs.map +1 -0
  376. package/dist/chunks/NcAppContent-DFlcxER-.mjs +360 -0
  377. package/dist/chunks/NcAppContent-DFlcxER-.mjs.map +1 -0
  378. package/dist/chunks/NcAppNavigation-CCHYn0D6.cjs +175 -0
  379. package/dist/chunks/NcAppNavigation-CCHYn0D6.cjs.map +1 -0
  380. package/dist/chunks/NcAppNavigation-CLF6-i2t.mjs +174 -0
  381. package/dist/chunks/NcAppNavigation-CLF6-i2t.mjs.map +1 -0
  382. package/dist/chunks/NcAppNavigationCaption-CsG8P-1P.mjs +81 -0
  383. package/dist/chunks/NcAppNavigationCaption-CsG8P-1P.mjs.map +1 -0
  384. package/dist/chunks/NcAppNavigationCaption-DhW300oH.cjs +80 -0
  385. package/dist/chunks/NcAppNavigationCaption-DhW300oH.cjs.map +1 -0
  386. package/dist/chunks/NcAppNavigationItem-CwuKVEUN.mjs +524 -0
  387. package/dist/chunks/NcAppNavigationItem-CwuKVEUN.mjs.map +1 -0
  388. package/dist/chunks/NcAppNavigationItem-HZVy5JEa.cjs +523 -0
  389. package/dist/chunks/NcAppNavigationItem-HZVy5JEa.cjs.map +1 -0
  390. package/dist/chunks/NcAppNavigationNew-DbqusDUV.mjs +78 -0
  391. package/dist/chunks/NcAppNavigationNew-DbqusDUV.mjs.map +1 -0
  392. package/dist/chunks/NcAppNavigationNew-T56pahiu.cjs +77 -0
  393. package/dist/chunks/NcAppNavigationNew-T56pahiu.cjs.map +1 -0
  394. package/dist/chunks/NcAppNavigationNewItem-BsnZWCLW.mjs +97 -0
  395. package/dist/chunks/NcAppNavigationNewItem-BsnZWCLW.mjs.map +1 -0
  396. package/dist/chunks/NcAppNavigationNewItem-DMRZwa_y.cjs +96 -0
  397. package/dist/chunks/NcAppNavigationNewItem-DMRZwa_y.cjs.map +1 -0
  398. package/dist/chunks/NcAppNavigationSearch-BlG1xMok.cjs +104 -0
  399. package/dist/chunks/NcAppNavigationSearch-BlG1xMok.cjs.map +1 -0
  400. package/dist/chunks/NcAppNavigationSearch-DCMN2cWp.mjs +105 -0
  401. package/dist/chunks/NcAppNavigationSearch-DCMN2cWp.mjs.map +1 -0
  402. package/dist/chunks/NcAppNavigationSettings-DlIDzhxh.cjs +91 -0
  403. package/dist/chunks/NcAppNavigationSettings-DlIDzhxh.cjs.map +1 -0
  404. package/dist/chunks/NcAppNavigationSettings-n8OaxTbE.mjs +92 -0
  405. package/dist/chunks/NcAppNavigationSettings-n8OaxTbE.mjs.map +1 -0
  406. package/dist/chunks/NcAppNavigationToggle-ClYKr8Zn.mjs +130 -0
  407. package/dist/chunks/NcAppNavigationToggle-ClYKr8Zn.mjs.map +1 -0
  408. package/dist/chunks/NcAppNavigationToggle-Cn1UvxNP.cjs +129 -0
  409. package/dist/chunks/NcAppNavigationToggle-Cn1UvxNP.cjs.map +1 -0
  410. package/dist/chunks/NcAppSettingsDialog-Cpjr8Tca.mjs +132 -0
  411. package/dist/chunks/NcAppSettingsDialog-Cpjr8Tca.mjs.map +1 -0
  412. package/dist/chunks/NcAppSettingsDialog-R6Y-tl6d.cjs +134 -0
  413. package/dist/chunks/NcAppSettingsDialog-R6Y-tl6d.cjs.map +1 -0
  414. package/dist/chunks/NcAppSettingsSection-BNVlt4g0.mjs +88 -0
  415. package/dist/chunks/NcAppSettingsSection-BNVlt4g0.mjs.map +1 -0
  416. package/dist/chunks/NcAppSettingsSection-CTqViPnP.cjs +87 -0
  417. package/dist/chunks/NcAppSettingsSection-CTqViPnP.cjs.map +1 -0
  418. package/dist/chunks/NcAppSidebar-CVcOP4bk.mjs +831 -0
  419. package/dist/chunks/NcAppSidebar-CVcOP4bk.mjs.map +1 -0
  420. package/dist/chunks/NcAppSidebar-Ddt82bsA.cjs +832 -0
  421. package/dist/chunks/NcAppSidebar-Ddt82bsA.cjs.map +1 -0
  422. package/dist/chunks/NcAppSidebarHeader-CBE4tNYb.mjs +51 -0
  423. package/dist/chunks/NcAppSidebarHeader-CBE4tNYb.mjs.map +1 -0
  424. package/dist/chunks/NcAppSidebarHeader-D-c_yxvx.cjs +50 -0
  425. package/dist/chunks/NcAppSidebarHeader-D-c_yxvx.cjs.map +1 -0
  426. package/dist/chunks/NcAssistantButton-WQvWhoAr.cjs +96 -0
  427. package/dist/chunks/NcAssistantButton-WQvWhoAr.cjs.map +1 -0
  428. package/dist/chunks/NcAssistantButton-lDdWOemf.mjs +97 -0
  429. package/dist/chunks/NcAssistantButton-lDdWOemf.mjs.map +1 -0
  430. package/dist/chunks/NcAssistantIcon-BTjYuSQ9.mjs +73 -0
  431. package/dist/chunks/NcAssistantIcon-BTjYuSQ9.mjs.map +1 -0
  432. package/dist/chunks/NcAssistantIcon-RDQ8YhZE.cjs +72 -0
  433. package/dist/chunks/NcAssistantIcon-RDQ8YhZE.cjs.map +1 -0
  434. package/dist/chunks/NcAvatar-Cupl4prm.mjs +633 -0
  435. package/dist/chunks/NcAvatar-Cupl4prm.mjs.map +1 -0
  436. package/dist/chunks/NcAvatar-D_0Aw88L.cjs +634 -0
  437. package/dist/chunks/NcAvatar-D_0Aw88L.cjs.map +1 -0
  438. package/dist/chunks/NcBlurHash-CR0v4QBK.cjs +115 -0
  439. package/dist/chunks/NcBlurHash-CR0v4QBK.cjs.map +1 -0
  440. package/dist/chunks/NcBlurHash-DZmsBU0q.mjs +116 -0
  441. package/dist/chunks/NcBlurHash-DZmsBU0q.mjs.map +1 -0
  442. package/dist/chunks/NcBreadcrumb-FbePEaGS.cjs +252 -0
  443. package/dist/chunks/NcBreadcrumb-FbePEaGS.cjs.map +1 -0
  444. package/dist/chunks/NcBreadcrumb-VJGW992x.mjs +253 -0
  445. package/dist/chunks/NcBreadcrumb-VJGW992x.mjs.map +1 -0
  446. package/dist/chunks/NcBreadcrumbs-CrNBCyUa.cjs +515 -0
  447. package/dist/chunks/NcBreadcrumbs-CrNBCyUa.cjs.map +1 -0
  448. package/dist/chunks/NcBreadcrumbs-DJSAcn8x.mjs +513 -0
  449. package/dist/chunks/NcBreadcrumbs-DJSAcn8x.mjs.map +1 -0
  450. package/dist/chunks/NcButton-D3CaJu1f.mjs +346 -0
  451. package/dist/chunks/NcButton-D3CaJu1f.mjs.map +1 -0
  452. package/dist/chunks/NcButton-DK7bNZIL.cjs +345 -0
  453. package/dist/chunks/NcButton-DK7bNZIL.cjs.map +1 -0
  454. package/dist/chunks/NcCheckboxRadioSwitch-CDFUoj2J.cjs +752 -0
  455. package/dist/chunks/NcCheckboxRadioSwitch-CDFUoj2J.cjs.map +1 -0
  456. package/dist/chunks/NcCheckboxRadioSwitch-ezquUuPz.mjs +753 -0
  457. package/dist/chunks/NcCheckboxRadioSwitch-ezquUuPz.mjs.map +1 -0
  458. package/dist/chunks/NcCollectionList-w-7M5HGN.mjs +431 -0
  459. package/dist/chunks/NcCollectionList-w-7M5HGN.mjs.map +1 -0
  460. package/dist/chunks/NcCollectionList-zAI6Ysc0.cjs +433 -0
  461. package/dist/chunks/NcCollectionList-zAI6Ysc0.cjs.map +1 -0
  462. package/dist/chunks/NcColorPicker-DpLU-oKM.mjs +157 -0
  463. package/dist/chunks/NcColorPicker-DpLU-oKM.mjs.map +1 -0
  464. package/dist/chunks/NcColorPicker-F-UP8OaJ.cjs +156 -0
  465. package/dist/chunks/NcColorPicker-F-UP8OaJ.cjs.map +1 -0
  466. package/dist/chunks/NcContent-C0_AA_wt.mjs +108 -0
  467. package/dist/chunks/NcContent-C0_AA_wt.mjs.map +1 -0
  468. package/dist/chunks/NcContent-DITvuNbF.cjs +107 -0
  469. package/dist/chunks/NcContent-DITvuNbF.cjs.map +1 -0
  470. package/dist/chunks/NcCounterBubble-BKPpoBiy.mjs +122 -0
  471. package/dist/chunks/NcCounterBubble-BKPpoBiy.mjs.map +1 -0
  472. package/dist/chunks/NcCounterBubble-B_H3NCef.cjs +121 -0
  473. package/dist/chunks/NcCounterBubble-B_H3NCef.cjs.map +1 -0
  474. package/dist/chunks/NcDashboardWidget--n1nzfhg.cjs +146 -0
  475. package/dist/chunks/NcDashboardWidget--n1nzfhg.cjs.map +1 -0
  476. package/dist/chunks/NcDashboardWidget-CEL-DhKX.mjs +147 -0
  477. package/dist/chunks/NcDashboardWidget-CEL-DhKX.mjs.map +1 -0
  478. package/dist/chunks/NcDashboardWidgetItem-DeQtScn8.mjs +151 -0
  479. package/dist/chunks/NcDashboardWidgetItem-DeQtScn8.mjs.map +1 -0
  480. package/dist/chunks/NcDashboardWidgetItem-loanO02A.cjs +150 -0
  481. package/dist/chunks/NcDashboardWidgetItem-loanO02A.cjs.map +1 -0
  482. package/dist/chunks/NcDateTime-DE-ltgw2.cjs +76 -0
  483. package/dist/chunks/NcDateTime-DE-ltgw2.cjs.map +1 -0
  484. package/dist/chunks/NcDateTime-enXYuwj8.mjs +77 -0
  485. package/dist/chunks/NcDateTime-enXYuwj8.mjs.map +1 -0
  486. package/dist/chunks/NcDialog-BM_wTqUn.mjs +290 -0
  487. package/dist/chunks/NcDialog-BM_wTqUn.mjs.map +1 -0
  488. package/dist/chunks/NcDialog-CG2sufkb.cjs +289 -0
  489. package/dist/chunks/NcDialog-CG2sufkb.cjs.map +1 -0
  490. package/dist/chunks/NcDialogButton-Cr0wVMne.mjs +131 -0
  491. package/dist/chunks/NcDialogButton-Cr0wVMne.mjs.map +1 -0
  492. package/dist/chunks/NcDialogButton-DkfxsIhv.cjs +130 -0
  493. package/dist/chunks/NcDialogButton-DkfxsIhv.cjs.map +1 -0
  494. package/dist/chunks/NcEmojiPicker-BV_iVlIv.mjs +319 -0
  495. package/dist/chunks/NcEmojiPicker-BV_iVlIv.mjs.map +1 -0
  496. package/dist/chunks/NcEmojiPicker-fgsuVz7X.cjs +320 -0
  497. package/dist/chunks/NcEmojiPicker-fgsuVz7X.cjs.map +1 -0
  498. package/dist/chunks/NcHeaderButton-CNQVz4QP.cjs +63 -0
  499. package/dist/chunks/NcHeaderButton-CNQVz4QP.cjs.map +1 -0
  500. package/dist/chunks/NcHeaderButton-TJML067P.mjs +64 -0
  501. package/dist/chunks/NcHeaderButton-TJML067P.mjs.map +1 -0
  502. package/dist/chunks/NcHeaderMenu-BzyFhg55.cjs +235 -0
  503. package/dist/chunks/NcHeaderMenu-BzyFhg55.cjs.map +1 -0
  504. package/dist/chunks/NcHeaderMenu-D5ddiKnF.mjs +236 -0
  505. package/dist/chunks/NcHeaderMenu-D5ddiKnF.mjs.map +1 -0
  506. package/dist/chunks/NcIconSvgWrapper-BCVwmZN2.mjs +112 -0
  507. package/dist/chunks/NcIconSvgWrapper-BCVwmZN2.mjs.map +1 -0
  508. package/dist/chunks/NcIconSvgWrapper-DoVPfeNg.cjs +114 -0
  509. package/dist/chunks/NcIconSvgWrapper-DoVPfeNg.cjs.map +1 -0
  510. package/dist/chunks/NcInputConfirmCancel-C8WnMK2V.mjs +115 -0
  511. package/dist/chunks/NcInputConfirmCancel-C8WnMK2V.mjs.map +1 -0
  512. package/dist/chunks/NcInputConfirmCancel-DVVTaxWi.cjs +114 -0
  513. package/dist/chunks/NcInputConfirmCancel-DVVTaxWi.cjs.map +1 -0
  514. package/dist/chunks/NcInputField-1ujONIvp.mjs +276 -0
  515. package/dist/chunks/NcInputField-1ujONIvp.mjs.map +1 -0
  516. package/dist/chunks/NcInputField-LBv3nCrt.cjs +275 -0
  517. package/dist/chunks/NcInputField-LBv3nCrt.cjs.map +1 -0
  518. package/dist/chunks/NcListItem-DFEvD1TA.cjs +292 -0
  519. package/dist/chunks/NcListItem-DFEvD1TA.cjs.map +1 -0
  520. package/dist/chunks/NcListItem-DNMfT12A.mjs +293 -0
  521. package/dist/chunks/NcListItem-DNMfT12A.mjs.map +1 -0
  522. package/dist/chunks/NcListItemIcon-OzD38-2R.cjs +177 -0
  523. package/dist/chunks/NcListItemIcon-OzD38-2R.cjs.map +1 -0
  524. package/dist/chunks/NcListItemIcon-PNp6Wael.mjs +178 -0
  525. package/dist/chunks/NcListItemIcon-PNp6Wael.mjs.map +1 -0
  526. package/dist/chunks/NcPasswordField-D2iDTTpp.mjs +321 -0
  527. package/dist/chunks/NcPasswordField-D2iDTTpp.mjs.map +1 -0
  528. package/dist/chunks/NcPasswordField-lqTDeja4.cjs +323 -0
  529. package/dist/chunks/NcPasswordField-lqTDeja4.cjs.map +1 -0
  530. package/dist/chunks/NcPopover-DrXnNOgM.cjs +328 -0
  531. package/dist/chunks/NcPopover-DrXnNOgM.cjs.map +1 -0
  532. package/dist/chunks/NcPopover-nzbq2IjT.mjs +327 -0
  533. package/dist/chunks/NcPopover-nzbq2IjT.mjs.map +1 -0
  534. package/dist/chunks/NcProgressBar-BwnuvxiZ.mjs +120 -0
  535. package/dist/chunks/NcProgressBar-BwnuvxiZ.mjs.map +1 -0
  536. package/dist/chunks/NcProgressBar-D10gQgAY.cjs +119 -0
  537. package/dist/chunks/NcProgressBar-D10gQgAY.cjs.map +1 -0
  538. package/dist/chunks/NcRadioGroup-DsnIVQZJ.cjs +102 -0
  539. package/dist/chunks/NcRadioGroup-DsnIVQZJ.cjs.map +1 -0
  540. package/dist/chunks/NcRadioGroup-sZaH_3Y0.mjs +101 -0
  541. package/dist/chunks/NcRadioGroup-sZaH_3Y0.mjs.map +1 -0
  542. package/dist/chunks/NcRadioGroupButton-B6m10k9G.mjs +63 -0
  543. package/dist/chunks/NcRadioGroupButton-B6m10k9G.mjs.map +1 -0
  544. package/dist/chunks/NcRadioGroupButton-CDf_01-t.cjs +62 -0
  545. package/dist/chunks/NcRadioGroupButton-CDf_01-t.cjs.map +1 -0
  546. package/dist/chunks/NcRelatedResourcesPanel-Q6jZk-Pm.mjs +439 -0
  547. package/dist/chunks/NcRelatedResourcesPanel-Q6jZk-Pm.mjs.map +1 -0
  548. package/dist/chunks/NcRelatedResourcesPanel-bfv-6W_Z.cjs +440 -0
  549. package/dist/chunks/NcRelatedResourcesPanel-bfv-6W_Z.cjs.map +1 -0
  550. package/dist/chunks/NcRichContenteditable-8_poOeSx.mjs +795 -0
  551. package/dist/chunks/NcRichContenteditable-8_poOeSx.mjs.map +1 -0
  552. package/dist/chunks/NcRichContenteditable-CtLNSs0S.cjs +798 -0
  553. package/dist/chunks/NcRichContenteditable-CtLNSs0S.cjs.map +1 -0
  554. package/dist/chunks/NcRichText-CEsiozf5.cjs +3704 -0
  555. package/dist/chunks/NcRichText-CEsiozf5.cjs.map +1 -0
  556. package/dist/chunks/NcRichText-Dnx5x9WS.mjs +3677 -0
  557. package/dist/chunks/NcRichText-Dnx5x9WS.mjs.map +1 -0
  558. package/dist/chunks/NcSavingIndicatorIcon-DFyB2KRK.cjs.map +1 -1
  559. package/dist/chunks/NcSavingIndicatorIcon-U7AIamCl.mjs.map +1 -1
  560. package/dist/chunks/NcSelect-TjZw7TJ_.mjs +601 -0
  561. package/dist/chunks/NcSelect-TjZw7TJ_.mjs.map +1 -0
  562. package/dist/chunks/NcSelect-bo6wla87.cjs +602 -0
  563. package/dist/chunks/NcSelect-bo6wla87.cjs.map +1 -0
  564. package/dist/chunks/NcSelectTags-CytnLDOw.mjs +349 -0
  565. package/dist/chunks/NcSelectTags-CytnLDOw.mjs.map +1 -0
  566. package/dist/chunks/NcSelectTags-D2OSaAfO.cjs +350 -0
  567. package/dist/chunks/NcSelectTags-D2OSaAfO.cjs.map +1 -0
  568. package/dist/chunks/NcSelectUsers-Bm0877Tm.mjs +199 -0
  569. package/dist/chunks/NcSelectUsers-Bm0877Tm.mjs.map +1 -0
  570. package/dist/chunks/NcSelectUsers-wcRyExkC.cjs +198 -0
  571. package/dist/chunks/NcSelectUsers-wcRyExkC.cjs.map +1 -0
  572. package/dist/chunks/NcSettingsInputText-DPAtsY2T.mjs +134 -0
  573. package/dist/chunks/NcSettingsInputText-DPAtsY2T.mjs.map +1 -0
  574. package/dist/chunks/NcSettingsInputText-DaFMiOS6.cjs +133 -0
  575. package/dist/chunks/NcSettingsInputText-DaFMiOS6.cjs.map +1 -0
  576. package/dist/chunks/NcSettingsSection-CX5q924g.mjs +120 -0
  577. package/dist/chunks/NcSettingsSection-CX5q924g.mjs.map +1 -0
  578. package/dist/chunks/NcSettingsSection-r4NOxKIz.cjs +119 -0
  579. package/dist/chunks/NcSettingsSection-r4NOxKIz.cjs.map +1 -0
  580. package/dist/chunks/NcSettingsSelectGroup-CR4XLrgs.mjs +253 -0
  581. package/dist/chunks/NcSettingsSelectGroup-CR4XLrgs.mjs.map +1 -0
  582. package/dist/chunks/NcSettingsSelectGroup-DYYAPkgp.cjs +255 -0
  583. package/dist/chunks/NcSettingsSelectGroup-DYYAPkgp.cjs.map +1 -0
  584. package/dist/chunks/NcTextArea-If_ygOSv.mjs +223 -0
  585. package/dist/chunks/NcTextArea-If_ygOSv.mjs.map +1 -0
  586. package/dist/chunks/NcTextArea-iDhGI-Ko.cjs +222 -0
  587. package/dist/chunks/NcTextArea-iDhGI-Ko.cjs.map +1 -0
  588. package/dist/chunks/NcTextField-BE9R1pLt.mjs +162 -0
  589. package/dist/chunks/NcTextField-BE9R1pLt.mjs.map +1 -0
  590. package/dist/chunks/NcTextField-OPiMgNR7.cjs +161 -0
  591. package/dist/chunks/NcTextField-OPiMgNR7.cjs.map +1 -0
  592. package/dist/chunks/NcThemeProvider-DbNRSwkX.cjs +52 -0
  593. package/dist/chunks/NcThemeProvider-DbNRSwkX.cjs.map +1 -0
  594. package/dist/chunks/NcThemeProvider-E_S5rhIQ.mjs +53 -0
  595. package/dist/chunks/NcThemeProvider-E_S5rhIQ.mjs.map +1 -0
  596. package/dist/chunks/NcTimezonePicker-D4y736xC.mjs +217 -0
  597. package/dist/chunks/NcTimezonePicker-D4y736xC.mjs.map +1 -0
  598. package/dist/chunks/NcTimezonePicker-DPpWz5fa.cjs +216 -0
  599. package/dist/chunks/NcTimezonePicker-DPpWz5fa.cjs.map +1 -0
  600. package/dist/chunks/NcUserBubble-8Mts76ii.mjs +222 -0
  601. package/dist/chunks/NcUserBubble-8Mts76ii.mjs.map +1 -0
  602. package/dist/chunks/NcUserBubble-Bb9WBP1S.cjs +223 -0
  603. package/dist/chunks/NcUserBubble-Bb9WBP1S.cjs.map +1 -0
  604. package/dist/chunks/NcUserStatusIcon-BWxo_etm.mjs +147 -0
  605. package/dist/chunks/NcUserStatusIcon-BWxo_etm.mjs.map +1 -0
  606. package/dist/chunks/NcUserStatusIcon-DV2H-KfR.cjs +148 -0
  607. package/dist/chunks/NcUserStatusIcon-DV2H-KfR.cjs.map +1 -0
  608. package/dist/chunks/ScopeComponent-CDX-s-IV.cjs +13 -0
  609. package/dist/chunks/ScopeComponent-CDX-s-IV.cjs.map +1 -0
  610. package/dist/chunks/ScopeComponent-DsONbC6w.mjs +14 -0
  611. package/dist/chunks/ScopeComponent-DsONbC6w.mjs.map +1 -0
  612. package/dist/chunks/_l10n-9b4TMo5Q.cjs +138 -0
  613. package/dist/chunks/_l10n-9b4TMo5Q.cjs.map +1 -0
  614. package/dist/chunks/_l10n-DSLCwJSN.mjs +139 -0
  615. package/dist/chunks/_l10n-DSLCwJSN.mjs.map +1 -0
  616. package/dist/chunks/actionGlobal-DqVa7c7G.mjs.map +1 -1
  617. package/dist/chunks/actionGlobal-L0Ls8tPJ.cjs.map +1 -1
  618. package/dist/chunks/actionText-D_3-6fCH.cjs +90 -0
  619. package/dist/chunks/actionText-D_3-6fCH.cjs.map +1 -0
  620. package/dist/chunks/actionText-ZM1k96ts.mjs +91 -0
  621. package/dist/chunks/actionText-ZM1k96ts.mjs.map +1 -0
  622. package/dist/chunks/autolink-BPlRHRHR.cjs +110 -0
  623. package/dist/chunks/autolink-BPlRHRHR.cjs.map +1 -0
  624. package/dist/chunks/autolink-D2pIbi92.mjs +111 -0
  625. package/dist/chunks/autolink-D2pIbi92.mjs.map +1 -0
  626. package/dist/chunks/colors-BMiIMYXK.mjs +135 -0
  627. package/dist/chunks/colors-BMiIMYXK.mjs.map +1 -0
  628. package/dist/chunks/colors-DcbJ13is.cjs +134 -0
  629. package/dist/chunks/colors-DcbJ13is.cjs.map +1 -0
  630. package/dist/chunks/constants-Bls5liKo.mjs.map +1 -1
  631. package/dist/chunks/constants-C_lA-vcp.cjs.map +1 -1
  632. package/dist/chunks/createElementId-5skgwxOP.mjs +9 -0
  633. package/dist/chunks/createElementId-5skgwxOP.mjs.map +1 -0
  634. package/dist/chunks/createElementId-DaJhnLzq.cjs +8 -0
  635. package/dist/chunks/createElementId-DaJhnLzq.cjs.map +1 -0
  636. package/dist/chunks/customPickerElements-BPROmh4T.mjs +140 -0
  637. package/dist/chunks/customPickerElements-BPROmh4T.mjs.map +1 -0
  638. package/dist/chunks/customPickerElements-DBEOrbce.cjs +139 -0
  639. package/dist/chunks/customPickerElements-DBEOrbce.cjs.map +1 -0
  640. package/dist/chunks/emoji-BCCCB3t3.cjs +67 -0
  641. package/dist/chunks/emoji-BCCCB3t3.cjs.map +1 -0
  642. package/dist/chunks/emoji-V6ytyzoR.mjs +66 -0
  643. package/dist/chunks/emoji-V6ytyzoR.mjs.map +1 -0
  644. package/dist/chunks/focusTrap-BibOtksr.mjs +36 -0
  645. package/dist/chunks/focusTrap-BibOtksr.mjs.map +1 -0
  646. package/dist/chunks/focusTrap-DhhUL4JZ.cjs +35 -0
  647. package/dist/chunks/focusTrap-DhhUL4JZ.cjs.map +1 -0
  648. package/dist/chunks/getAvatarUrl-C8Q41hfR.mjs +16 -0
  649. package/dist/chunks/getAvatarUrl-C8Q41hfR.mjs.map +1 -0
  650. package/dist/chunks/getAvatarUrl-DwWyuiUZ.cjs +15 -0
  651. package/dist/chunks/getAvatarUrl-DwWyuiUZ.cjs.map +1 -0
  652. package/dist/chunks/index-BsEMR4S4.mjs +179 -0
  653. package/dist/chunks/index-BsEMR4S4.mjs.map +1 -0
  654. package/dist/chunks/index-CmwBGDjr.cjs +192 -0
  655. package/dist/chunks/index-CmwBGDjr.cjs.map +1 -0
  656. package/dist/chunks/index-D_jGr37E.cjs +182 -0
  657. package/dist/chunks/index-D_jGr37E.cjs.map +1 -0
  658. package/dist/chunks/index-JArK0Dbx.mjs +193 -0
  659. package/dist/chunks/index-JArK0Dbx.mjs.map +1 -0
  660. package/dist/chunks/legacy-DUgfmdiS.cjs +6 -0
  661. package/dist/chunks/legacy-DUgfmdiS.cjs.map +1 -0
  662. package/dist/chunks/legacy-NU_qxPFK.mjs +7 -0
  663. package/dist/chunks/legacy-NU_qxPFK.mjs.map +1 -0
  664. package/dist/chunks/logger-3HuiEIF6.cjs.map +1 -1
  665. package/dist/chunks/logger-D3RVzcfQ.mjs.map +1 -1
  666. package/dist/chunks/mdi-CKSXwCsV.mjs +27 -0
  667. package/dist/chunks/mdi-CKSXwCsV.mjs.map +1 -0
  668. package/dist/chunks/mdi-Nhb6SBw8.cjs +26 -0
  669. package/dist/chunks/mdi-Nhb6SBw8.cjs.map +1 -0
  670. package/dist/chunks/platform-CC2ecGvV.mjs +5 -0
  671. package/dist/chunks/platform-CC2ecGvV.mjs.map +1 -0
  672. package/dist/chunks/platform-oKxQ1agV.cjs +4 -0
  673. package/dist/chunks/platform-oKxQ1agV.cjs.map +1 -0
  674. package/dist/chunks/referencePickerModal-CusxgEsK.cjs +1119 -0
  675. package/dist/chunks/referencePickerModal-CusxgEsK.cjs.map +1 -0
  676. package/dist/chunks/referencePickerModal-DpJUQ5fq.mjs +1117 -0
  677. package/dist/chunks/referencePickerModal-DpJUQ5fq.mjs.map +1 -0
  678. package/dist/chunks/useAppSettingsDialog-CPqmms-u.cjs +9 -0
  679. package/dist/chunks/useAppSettingsDialog-CPqmms-u.cjs.map +1 -0
  680. package/dist/chunks/useAppSettingsDialog-Dn48dw1k.mjs +10 -0
  681. package/dist/chunks/useAppSettingsDialog-Dn48dw1k.mjs.map +1 -0
  682. package/dist/chunks/useModelMigration-DBUi8saj.mjs +25 -0
  683. package/dist/chunks/useModelMigration-DBUi8saj.mjs.map +1 -0
  684. package/dist/chunks/useModelMigration-HPf30klj.cjs +26 -0
  685. package/dist/chunks/useModelMigration-HPf30klj.cjs.map +1 -0
  686. package/dist/chunks/useNcRadioGroup-DaZbEKbf.mjs +14 -0
  687. package/dist/chunks/useNcRadioGroup-DaZbEKbf.mjs.map +1 -0
  688. package/dist/chunks/useNcRadioGroup-Djvu7bo0.cjs +13 -0
  689. package/dist/chunks/useNcRadioGroup-Djvu7bo0.cjs.map +1 -0
  690. package/dist/chunks/useTrapStackControl-2gEo3rvr.mjs +23 -0
  691. package/dist/chunks/useTrapStackControl-2gEo3rvr.mjs.map +1 -0
  692. package/dist/chunks/useTrapStackControl-dthvITlQ.cjs +22 -0
  693. package/dist/chunks/useTrapStackControl-dthvITlQ.cjs.map +1 -0
  694. package/dist/components/NcAppSettingsDialog/index.d.ts +5 -0
  695. package/dist/components/NcAppSettingsDialog/useAppSettingsDialog.d.ts +24 -0
  696. package/dist/components/NcCollectionList/service.d.ts +7 -0
  697. package/dist/components/NcColorPicker/index.d.ts +5 -0
  698. package/dist/components/NcKbd/index.d.ts +1 -0
  699. package/dist/components/NcRadioGroup/index.d.ts +5 -0
  700. package/dist/components/NcRadioGroup/useNcRadioGroup.d.ts +14 -0
  701. package/dist/components/NcRadioGroupButton/index.d.ts +5 -0
  702. package/dist/composables/actions/useActionText.d.ts +4 -1
  703. package/dist/composables/index.d.ts +9 -0
  704. package/dist/composables/useFormatDateTime/index.d.ts +7 -5
  705. package/dist/composables/useHotKey/index.d.ts +4 -2
  706. package/dist/composables/useIsDarkTheme/constants.d.ts +0 -1
  707. package/dist/composables/useIsDarkTheme/index.d.ts +2 -1
  708. package/dist/composables/useIsMobile/index.d.ts +23 -0
  709. package/dist/composables/useModelMigration.d.ts +6 -5
  710. package/dist/composables/useTrapStackControl.d.ts +1 -1
  711. package/dist/directives/Linkify/index.d.ts +3 -0
  712. package/dist/functions/a11y/index.d.ts +3 -3
  713. package/dist/functions/contactsMenu/index.d.ts +2 -2
  714. package/dist/functions/dialog/index.d.ts +1 -0
  715. package/dist/functions/emoji/emoji.d.ts +2 -2
  716. package/dist/functions/emoji/index.d.ts +1 -1
  717. package/dist/functions/isDarkTheme/index.d.ts +2 -1
  718. package/dist/functions/preloadImage/index.d.ts +1 -0
  719. package/dist/functions/reference/index.d.ts +3 -3
  720. package/dist/functions/reference/widgets.d.ts +1 -0
  721. package/dist/functions/registerReference/index.d.ts +2 -2
  722. package/dist/index.cjs +95 -88
  723. package/dist/index.cjs.map +1 -1
  724. package/dist/index.mjs +91 -84
  725. package/dist/index.mjs.map +1 -1
  726. package/dist/plugin.d.ts +1 -0
  727. package/dist/utils/UserStatus.d.ts +6 -1
  728. package/dist/utils/colors.d.ts +36 -0
  729. package/dist/utils/createElementId.d.ts +11 -0
  730. package/dist/utils/getAvatarUrl.d.ts +1 -0
  731. package/dist/utils/platform.d.ts +1 -0
  732. package/package.json +31 -27
  733. package/dist/assets/NcActionButton-D8Lyueq3.css +0 -119
  734. package/dist/assets/NcActionButtonGroup-oAqMyrzr.css +0 -47
  735. package/dist/assets/NcActionCheckbox-BlyPt7DF.css +0 -80
  736. package/dist/assets/NcActionInput-D79204Jr.css +0 -226
  737. package/dist/assets/NcActionLink-CNMaob5P.css +0 -102
  738. package/dist/assets/NcActionRadio-CodyhP86.css +0 -79
  739. package/dist/assets/NcActionRouter-zXuKLsvi.css +0 -113
  740. package/dist/assets/NcActionText-Rad4JSXq.css +0 -117
  741. package/dist/assets/NcActionTextEditable-i1KSVe0J.css +0 -244
  742. package/dist/assets/NcActions-Bjgv1Dku.css +0 -80
  743. package/dist/assets/NcAppContent-Bb5hgGi3.css +0 -124
  744. package/dist/assets/NcAppNavigation-WhHdkLQF.css +0 -110
  745. package/dist/assets/NcAppNavigationCaption-DU9PxTvu.css +0 -49
  746. package/dist/assets/NcAppNavigationIconBullet-CeBYVy6t.css +0 -30
  747. package/dist/assets/NcAppNavigationItem-DKcGNjYx.css +0 -226
  748. package/dist/assets/NcAppNavigationNew-Dbo2rvXH.css +0 -27
  749. package/dist/assets/NcAppNavigationNewItem-CS2gLROV.css +0 -211
  750. package/dist/assets/NcAppNavigationSearch-CD7kv7L_.css +0 -41
  751. package/dist/assets/NcAppNavigationSettings-_Qi3rUlw.css +0 -74
  752. package/dist/assets/NcAppNavigationToggle-C5IMygw1.css +0 -27
  753. package/dist/assets/NcAppSettingsDialog-kKMMsdb3.css +0 -74
  754. package/dist/assets/NcAppSettingsSection-Bl2-D3_g.css +0 -30
  755. package/dist/assets/NcAppSidebar-u0G_qQMh.css +0 -349
  756. package/dist/assets/NcAppSidebarTab-Blv6UfuA.css +0 -34
  757. package/dist/assets/NcAssistantIcon-BFNU0uqH.css +0 -35
  758. package/dist/assets/NcAvatar-BqNcvkxP.css +0 -134
  759. package/dist/assets/NcBreadcrumb-DqaFt2qu.css +0 -68
  760. package/dist/assets/NcBreadcrumbs-CFRjXqRg.css +0 -37
  761. package/dist/assets/NcButton-C_LOxojs.css +0 -219
  762. package/dist/assets/NcCheckboxRadioSwitch-CC2zuvLL.css +0 -216
  763. package/dist/assets/NcChip-CF4Q149V.css +0 -65
  764. package/dist/assets/NcCollectionList-yjTCAR46.css +0 -221
  765. package/dist/assets/NcColorPicker-DBcVuSwg.css +0 -172
  766. package/dist/assets/NcContent-DH4tX3N4.css +0 -85
  767. package/dist/assets/NcCounterBubble-CI-DxLjL.css +0 -53
  768. package/dist/assets/NcDashboardWidget-CrhZaGWD.css +0 -73
  769. package/dist/assets/NcDashboardWidgetItem-B8_6-_k8.css +0 -85
  770. package/dist/assets/NcDateTimePicker-Ce57VAyL.css +0 -893
  771. package/dist/assets/NcDateTimePickerNative-CYS2ORfo.css +0 -60
  772. package/dist/assets/NcDialog-X7BRqUGJ.css +0 -132
  773. package/dist/assets/NcEllipsisedOption-DGr9_bIL.css +0 -34
  774. package/dist/assets/NcEmojiPicker-BRSm8OUy.css +0 -546
  775. package/dist/assets/NcEmptyContent-CHVEJoER.css +0 -68
  776. package/dist/assets/NcGuestContent-ByAkjts7.css +0 -50
  777. package/dist/assets/NcHeaderButton-BRhv2o2J.css +0 -54
  778. package/dist/assets/NcHeaderMenu-Cjb3kKi1.css +0 -88
  779. package/dist/assets/NcIconSvgWrapper-DX_XWpAs.css +0 -46
  780. package/dist/assets/NcInputConfirmCancel-BanazdhC.css +0 -39
  781. package/dist/assets/NcInputField-DAiNwtp_.css +0 -206
  782. package/dist/assets/NcListItem-KrH47Efg.css +0 -186
  783. package/dist/assets/NcListItemIcon-UmX9YoH3.css +0 -72
  784. package/dist/assets/NcLoadingIcon-DbbToJVp.css +0 -24
  785. package/dist/assets/NcMentionBubble-UsTMm5VD.css +0 -73
  786. package/dist/assets/NcModal-Cy3UOuI2.css +0 -287
  787. package/dist/assets/NcNoteCard-ChweF_5Q.css +0 -67
  788. package/dist/assets/NcPasswordField-DVK8tuPi.css +0 -21
  789. package/dist/assets/NcProgressBar-DTCznR-m.css +0 -56
  790. package/dist/assets/NcRelatedResourcesPanel-DhStLIO2.css +0 -158
  791. package/dist/assets/NcRichContenteditable-DZLSoy84.css +0 -274
  792. package/dist/assets/NcRichText-CWVHZl8s.css +0 -329
  793. package/dist/assets/NcSelect-GdIw6cIy.css +0 -199
  794. package/dist/assets/NcSelectUsers-BOwQNNMf.css +0 -4
  795. package/dist/assets/NcSettingsInputText-Bsp_6DjJ.css +0 -35
  796. package/dist/assets/NcSettingsSection-uKqWTbhb.css +0 -57
  797. package/dist/assets/NcSettingsSelectGroup-tjJNoh16.css +0 -23
  798. package/dist/assets/NcTextArea-vxeIyeSg.css +0 -136
  799. package/dist/assets/NcUserBubble-BsTKRhKz.css +0 -48
  800. package/dist/assets/NcUserStatusIcon-Dc-aUzBe.css +0 -34
  801. package/dist/assets/referencePickerModal-DrvqNTIf.css +0 -396
  802. package/dist/chunks/GenColors-BjsCKF7S.cjs +0 -133
  803. package/dist/chunks/GenColors-BjsCKF7S.cjs.map +0 -1
  804. package/dist/chunks/GenColors-BrpkL3hT.mjs +0 -134
  805. package/dist/chunks/GenColors-BrpkL3hT.mjs.map +0 -1
  806. package/dist/chunks/GenRandomId-BQDud3d4.cjs +0 -6
  807. package/dist/chunks/GenRandomId-BQDud3d4.cjs.map +0 -1
  808. package/dist/chunks/GenRandomId-CMooMQt0.mjs +0 -7
  809. package/dist/chunks/GenRandomId-CMooMQt0.mjs.map +0 -1
  810. package/dist/chunks/NcActionButton-BhSk7AAp.cjs +0 -181
  811. package/dist/chunks/NcActionButton-BhSk7AAp.cjs.map +0 -1
  812. package/dist/chunks/NcActionButton-DC3oAI2L.mjs +0 -182
  813. package/dist/chunks/NcActionButton-DC3oAI2L.mjs.map +0 -1
  814. package/dist/chunks/NcActionButtonGroup-Cr4OSmyb.cjs +0 -51
  815. package/dist/chunks/NcActionButtonGroup-Cr4OSmyb.cjs.map +0 -1
  816. package/dist/chunks/NcActionButtonGroup-hhh3GBSS.mjs +0 -52
  817. package/dist/chunks/NcActionButtonGroup-hhh3GBSS.mjs.map +0 -1
  818. package/dist/chunks/NcActionCheckbox-DSMKeccY.mjs +0 -139
  819. package/dist/chunks/NcActionCheckbox-DSMKeccY.mjs.map +0 -1
  820. package/dist/chunks/NcActionCheckbox-JX-QaTD6.cjs +0 -138
  821. package/dist/chunks/NcActionCheckbox-JX-QaTD6.cjs.map +0 -1
  822. package/dist/chunks/NcActionInput-B5ysJl2S.mjs +0 -286
  823. package/dist/chunks/NcActionInput-B5ysJl2S.mjs.map +0 -1
  824. package/dist/chunks/NcActionInput-DdaafMi8.cjs +0 -286
  825. package/dist/chunks/NcActionInput-DdaafMi8.cjs.map +0 -1
  826. package/dist/chunks/NcActionRadio-BUCQ6VxA.cjs +0 -148
  827. package/dist/chunks/NcActionRadio-BUCQ6VxA.cjs.map +0 -1
  828. package/dist/chunks/NcActionRadio-yAm71xxU.mjs +0 -147
  829. package/dist/chunks/NcActionRadio-yAm71xxU.mjs.map +0 -1
  830. package/dist/chunks/NcActionTextEditable-CTXGUIPM.cjs +0 -124
  831. package/dist/chunks/NcActionTextEditable-CTXGUIPM.cjs.map +0 -1
  832. package/dist/chunks/NcActionTextEditable-CpxJ_LEa.mjs +0 -125
  833. package/dist/chunks/NcActionTextEditable-CpxJ_LEa.mjs.map +0 -1
  834. package/dist/chunks/NcActions-DRCkAU8h.cjs +0 -888
  835. package/dist/chunks/NcActions-DRCkAU8h.cjs.map +0 -1
  836. package/dist/chunks/NcActions-DdARGGZ_.mjs +0 -887
  837. package/dist/chunks/NcActions-DdARGGZ_.mjs.map +0 -1
  838. package/dist/chunks/NcAppContent-BS7BiMG0.mjs +0 -361
  839. package/dist/chunks/NcAppContent-BS7BiMG0.mjs.map +0 -1
  840. package/dist/chunks/NcAppContent-POt1Lj3W.cjs +0 -360
  841. package/dist/chunks/NcAppContent-POt1Lj3W.cjs.map +0 -1
  842. package/dist/chunks/NcAppNavigation-BKxSUpcQ.cjs +0 -174
  843. package/dist/chunks/NcAppNavigation-BKxSUpcQ.cjs.map +0 -1
  844. package/dist/chunks/NcAppNavigation-BvEa92PC.mjs +0 -173
  845. package/dist/chunks/NcAppNavigation-BvEa92PC.mjs.map +0 -1
  846. package/dist/chunks/NcAppNavigationCaption-BpmzZDPj.cjs +0 -77
  847. package/dist/chunks/NcAppNavigationCaption-BpmzZDPj.cjs.map +0 -1
  848. package/dist/chunks/NcAppNavigationCaption-O4l8dFkh.mjs +0 -78
  849. package/dist/chunks/NcAppNavigationCaption-O4l8dFkh.mjs.map +0 -1
  850. package/dist/chunks/NcAppNavigationItem-BFF0p136.mjs +0 -517
  851. package/dist/chunks/NcAppNavigationItem-BFF0p136.mjs.map +0 -1
  852. package/dist/chunks/NcAppNavigationItem-D1CEGuhm.cjs +0 -516
  853. package/dist/chunks/NcAppNavigationItem-D1CEGuhm.cjs.map +0 -1
  854. package/dist/chunks/NcAppNavigationNewItem-CTAoGkDy.cjs +0 -96
  855. package/dist/chunks/NcAppNavigationNewItem-CTAoGkDy.cjs.map +0 -1
  856. package/dist/chunks/NcAppNavigationNewItem-D4fJeBl0.mjs +0 -97
  857. package/dist/chunks/NcAppNavigationNewItem-D4fJeBl0.mjs.map +0 -1
  858. package/dist/chunks/NcAppNavigationSearch-B9OkdsuE.mjs +0 -101
  859. package/dist/chunks/NcAppNavigationSearch-B9OkdsuE.mjs.map +0 -1
  860. package/dist/chunks/NcAppNavigationSearch-CaBrnpf9.cjs +0 -100
  861. package/dist/chunks/NcAppNavigationSearch-CaBrnpf9.cjs.map +0 -1
  862. package/dist/chunks/NcAppNavigationSettings-DV5ZnR2s.cjs +0 -85
  863. package/dist/chunks/NcAppNavigationSettings-DV5ZnR2s.cjs.map +0 -1
  864. package/dist/chunks/NcAppNavigationSettings-Do0e5oWy.mjs +0 -86
  865. package/dist/chunks/NcAppNavigationSettings-Do0e5oWy.mjs.map +0 -1
  866. package/dist/chunks/NcAppNavigationToggle-DGppWo0q.cjs +0 -128
  867. package/dist/chunks/NcAppNavigationToggle-DGppWo0q.cjs.map +0 -1
  868. package/dist/chunks/NcAppNavigationToggle-VxL1CfJY.mjs +0 -129
  869. package/dist/chunks/NcAppNavigationToggle-VxL1CfJY.mjs.map +0 -1
  870. package/dist/chunks/NcAppSettingsDialog-BDo3la0P.cjs +0 -223
  871. package/dist/chunks/NcAppSettingsDialog-BDo3la0P.cjs.map +0 -1
  872. package/dist/chunks/NcAppSettingsDialog-BwsIc_QT.mjs +0 -221
  873. package/dist/chunks/NcAppSettingsDialog-BwsIc_QT.mjs.map +0 -1
  874. package/dist/chunks/NcAppSidebar-AR-D7HSj.mjs +0 -816
  875. package/dist/chunks/NcAppSidebar-AR-D7HSj.mjs.map +0 -1
  876. package/dist/chunks/NcAppSidebar-Cvyq-kN5.cjs +0 -817
  877. package/dist/chunks/NcAppSidebar-Cvyq-kN5.cjs.map +0 -1
  878. package/dist/chunks/NcAppSidebarHeader-BUXD8c9i.cjs +0 -49
  879. package/dist/chunks/NcAppSidebarHeader-BUXD8c9i.cjs.map +0 -1
  880. package/dist/chunks/NcAppSidebarHeader-G2VD8Nfl.mjs +0 -50
  881. package/dist/chunks/NcAppSidebarHeader-G2VD8Nfl.mjs.map +0 -1
  882. package/dist/chunks/NcAssistantButton-Ck1NUjhl.mjs +0 -97
  883. package/dist/chunks/NcAssistantButton-Ck1NUjhl.mjs.map +0 -1
  884. package/dist/chunks/NcAssistantButton-gD3MKoYS.cjs +0 -96
  885. package/dist/chunks/NcAssistantButton-gD3MKoYS.cjs.map +0 -1
  886. package/dist/chunks/NcAssistantIcon-D_xelcY2.cjs +0 -68
  887. package/dist/chunks/NcAssistantIcon-D_xelcY2.cjs.map +0 -1
  888. package/dist/chunks/NcAssistantIcon-tjSguP9N.mjs +0 -69
  889. package/dist/chunks/NcAssistantIcon-tjSguP9N.mjs.map +0 -1
  890. package/dist/chunks/NcAvatar-BEIBwiA6.mjs +0 -624
  891. package/dist/chunks/NcAvatar-BEIBwiA6.mjs.map +0 -1
  892. package/dist/chunks/NcAvatar-DS1H-VrZ.cjs +0 -625
  893. package/dist/chunks/NcAvatar-DS1H-VrZ.cjs.map +0 -1
  894. package/dist/chunks/NcBlurHash-CJ8retHx.cjs +0 -115
  895. package/dist/chunks/NcBlurHash-CJ8retHx.cjs.map +0 -1
  896. package/dist/chunks/NcBlurHash-do2wxY-0.mjs +0 -116
  897. package/dist/chunks/NcBlurHash-do2wxY-0.mjs.map +0 -1
  898. package/dist/chunks/NcBreadcrumb-BYYXWaif.mjs +0 -237
  899. package/dist/chunks/NcBreadcrumb-BYYXWaif.mjs.map +0 -1
  900. package/dist/chunks/NcBreadcrumb-HtgcEJgs.cjs +0 -236
  901. package/dist/chunks/NcBreadcrumb-HtgcEJgs.cjs.map +0 -1
  902. package/dist/chunks/NcBreadcrumbs-CQcnjGJO.cjs +0 -495
  903. package/dist/chunks/NcBreadcrumbs-CQcnjGJO.cjs.map +0 -1
  904. package/dist/chunks/NcBreadcrumbs-cj5ip2-X.mjs +0 -493
  905. package/dist/chunks/NcBreadcrumbs-cj5ip2-X.mjs.map +0 -1
  906. package/dist/chunks/NcCheckboxRadioSwitch-B-lXOnEF.cjs +0 -725
  907. package/dist/chunks/NcCheckboxRadioSwitch-B-lXOnEF.cjs.map +0 -1
  908. package/dist/chunks/NcCheckboxRadioSwitch-DqdNvkCt.mjs +0 -726
  909. package/dist/chunks/NcCheckboxRadioSwitch-DqdNvkCt.mjs.map +0 -1
  910. package/dist/chunks/NcCollectionList-CLv50tJ3.mjs +0 -424
  911. package/dist/chunks/NcCollectionList-CLv50tJ3.mjs.map +0 -1
  912. package/dist/chunks/NcCollectionList-DXNSOjPG.cjs +0 -426
  913. package/dist/chunks/NcCollectionList-DXNSOjPG.cjs.map +0 -1
  914. package/dist/chunks/NcColorPicker-52xaYx9k.mjs +0 -255
  915. package/dist/chunks/NcColorPicker-52xaYx9k.mjs.map +0 -1
  916. package/dist/chunks/NcColorPicker-CbiIpVlT.cjs +0 -254
  917. package/dist/chunks/NcColorPicker-CbiIpVlT.cjs.map +0 -1
  918. package/dist/chunks/NcContent-BbmqoSY7.mjs +0 -104
  919. package/dist/chunks/NcContent-BbmqoSY7.mjs.map +0 -1
  920. package/dist/chunks/NcContent-DH7uH5Gv.cjs +0 -103
  921. package/dist/chunks/NcContent-DH7uH5Gv.cjs.map +0 -1
  922. package/dist/chunks/NcCounterBubble-BRrUO34D.cjs +0 -115
  923. package/dist/chunks/NcCounterBubble-BRrUO34D.cjs.map +0 -1
  924. package/dist/chunks/NcCounterBubble-CDfRYl8B.mjs +0 -116
  925. package/dist/chunks/NcCounterBubble-CDfRYl8B.mjs.map +0 -1
  926. package/dist/chunks/NcDashboardWidget-809lybR1.mjs +0 -147
  927. package/dist/chunks/NcDashboardWidget-809lybR1.mjs.map +0 -1
  928. package/dist/chunks/NcDashboardWidget-DhJAJn-_.cjs +0 -146
  929. package/dist/chunks/NcDashboardWidget-DhJAJn-_.cjs.map +0 -1
  930. package/dist/chunks/NcDashboardWidgetItem-6JbU9gp1.mjs +0 -150
  931. package/dist/chunks/NcDashboardWidgetItem-6JbU9gp1.mjs.map +0 -1
  932. package/dist/chunks/NcDashboardWidgetItem-CgO8qJUQ.cjs +0 -149
  933. package/dist/chunks/NcDashboardWidgetItem-CgO8qJUQ.cjs.map +0 -1
  934. package/dist/chunks/NcDateTime-Cl-PZpLN.cjs +0 -76
  935. package/dist/chunks/NcDateTime-Cl-PZpLN.cjs.map +0 -1
  936. package/dist/chunks/NcDateTime-kanSdMgW.mjs +0 -77
  937. package/dist/chunks/NcDateTime-kanSdMgW.mjs.map +0 -1
  938. package/dist/chunks/NcDialog-C1b3UtA7.mjs +0 -282
  939. package/dist/chunks/NcDialog-C1b3UtA7.mjs.map +0 -1
  940. package/dist/chunks/NcDialog-ps0F3IQM.cjs +0 -281
  941. package/dist/chunks/NcDialog-ps0F3IQM.cjs.map +0 -1
  942. package/dist/chunks/NcDialogButton-CEdM0Qnr.cjs +0 -128
  943. package/dist/chunks/NcDialogButton-CEdM0Qnr.cjs.map +0 -1
  944. package/dist/chunks/NcDialogButton-Di9tU3e_.mjs +0 -129
  945. package/dist/chunks/NcDialogButton-Di9tU3e_.mjs.map +0 -1
  946. package/dist/chunks/NcEmojiPicker-CdH7bAGd.cjs +0 -314
  947. package/dist/chunks/NcEmojiPicker-CdH7bAGd.cjs.map +0 -1
  948. package/dist/chunks/NcEmojiPicker-CyZg0bCF.mjs +0 -313
  949. package/dist/chunks/NcEmojiPicker-CyZg0bCF.mjs.map +0 -1
  950. package/dist/chunks/NcHeaderMenu-BWFubuox.cjs +0 -232
  951. package/dist/chunks/NcHeaderMenu-BWFubuox.cjs.map +0 -1
  952. package/dist/chunks/NcHeaderMenu-Dq_Avv2T.mjs +0 -233
  953. package/dist/chunks/NcHeaderMenu-Dq_Avv2T.mjs.map +0 -1
  954. package/dist/chunks/NcIconSvgWrapper-Cb-cPj1R.mjs +0 -111
  955. package/dist/chunks/NcIconSvgWrapper-Cb-cPj1R.mjs.map +0 -1
  956. package/dist/chunks/NcIconSvgWrapper-CrnN5Sq5.cjs +0 -113
  957. package/dist/chunks/NcIconSvgWrapper-CrnN5Sq5.cjs.map +0 -1
  958. package/dist/chunks/NcInputConfirmCancel-DA740BJ-.mjs +0 -109
  959. package/dist/chunks/NcInputConfirmCancel-DA740BJ-.mjs.map +0 -1
  960. package/dist/chunks/NcInputConfirmCancel-Dz7-CkOl.cjs +0 -108
  961. package/dist/chunks/NcInputConfirmCancel-Dz7-CkOl.cjs.map +0 -1
  962. package/dist/chunks/NcInputField-BNSfmQqu.mjs +0 -272
  963. package/dist/chunks/NcInputField-BNSfmQqu.mjs.map +0 -1
  964. package/dist/chunks/NcInputField-cT3u4gMS.cjs +0 -271
  965. package/dist/chunks/NcInputField-cT3u4gMS.cjs.map +0 -1
  966. package/dist/chunks/NcListItem-Bx9qm5xC.cjs +0 -286
  967. package/dist/chunks/NcListItem-Bx9qm5xC.cjs.map +0 -1
  968. package/dist/chunks/NcListItem-CifyXFmv.mjs +0 -287
  969. package/dist/chunks/NcListItem-CifyXFmv.mjs.map +0 -1
  970. package/dist/chunks/NcListItemIcon-CZrilo88.mjs +0 -176
  971. package/dist/chunks/NcListItemIcon-CZrilo88.mjs.map +0 -1
  972. package/dist/chunks/NcListItemIcon-DMhlNuU9.cjs +0 -175
  973. package/dist/chunks/NcListItemIcon-DMhlNuU9.cjs.map +0 -1
  974. package/dist/chunks/NcPasswordField-DSdrAkZy.mjs +0 -305
  975. package/dist/chunks/NcPasswordField-DSdrAkZy.mjs.map +0 -1
  976. package/dist/chunks/NcPasswordField-DcFBNVHn.cjs +0 -307
  977. package/dist/chunks/NcPasswordField-DcFBNVHn.cjs.map +0 -1
  978. package/dist/chunks/NcPopover-DjeDGPXc.cjs +0 -310
  979. package/dist/chunks/NcPopover-DjeDGPXc.cjs.map +0 -1
  980. package/dist/chunks/NcPopover-DxTXnL3u.mjs +0 -309
  981. package/dist/chunks/NcPopover-DxTXnL3u.mjs.map +0 -1
  982. package/dist/chunks/NcProgressBar-CI_nOrPg.mjs +0 -116
  983. package/dist/chunks/NcProgressBar-CI_nOrPg.mjs.map +0 -1
  984. package/dist/chunks/NcProgressBar-lh4Gtdfr.cjs +0 -115
  985. package/dist/chunks/NcProgressBar-lh4Gtdfr.cjs.map +0 -1
  986. package/dist/chunks/NcRelatedResourcesPanel-BR_ggojH.cjs +0 -427
  987. package/dist/chunks/NcRelatedResourcesPanel-BR_ggojH.cjs.map +0 -1
  988. package/dist/chunks/NcRelatedResourcesPanel-DyvwxDjI.mjs +0 -426
  989. package/dist/chunks/NcRelatedResourcesPanel-DyvwxDjI.mjs.map +0 -1
  990. package/dist/chunks/NcRichContenteditable-CMQnS1Wz.mjs +0 -749
  991. package/dist/chunks/NcRichContenteditable-CMQnS1Wz.mjs.map +0 -1
  992. package/dist/chunks/NcRichContenteditable-DtkaJmwG.cjs +0 -752
  993. package/dist/chunks/NcRichContenteditable-DtkaJmwG.cjs.map +0 -1
  994. package/dist/chunks/NcRichText-7B9lDtoo.cjs +0 -3714
  995. package/dist/chunks/NcRichText-7B9lDtoo.cjs.map +0 -1
  996. package/dist/chunks/NcRichText-MMeidJmP.mjs +0 -3685
  997. package/dist/chunks/NcRichText-MMeidJmP.mjs.map +0 -1
  998. package/dist/chunks/NcSelect-CrxryIo3.cjs +0 -580
  999. package/dist/chunks/NcSelect-CrxryIo3.cjs.map +0 -1
  1000. package/dist/chunks/NcSelect-okD5YTJq.mjs +0 -579
  1001. package/dist/chunks/NcSelect-okD5YTJq.mjs.map +0 -1
  1002. package/dist/chunks/NcSelectTags-BPxmiMto.mjs +0 -324
  1003. package/dist/chunks/NcSelectTags-BPxmiMto.mjs.map +0 -1
  1004. package/dist/chunks/NcSelectTags-BZqBdSqC.cjs +0 -325
  1005. package/dist/chunks/NcSelectTags-BZqBdSqC.cjs.map +0 -1
  1006. package/dist/chunks/NcSelectUsers-CshAjqE_.cjs +0 -196
  1007. package/dist/chunks/NcSelectUsers-CshAjqE_.cjs.map +0 -1
  1008. package/dist/chunks/NcSelectUsers-DK3EtvnG.mjs +0 -197
  1009. package/dist/chunks/NcSelectUsers-DK3EtvnG.mjs.map +0 -1
  1010. package/dist/chunks/NcSettingsInputText-BKoaCiQU.mjs +0 -132
  1011. package/dist/chunks/NcSettingsInputText-BKoaCiQU.mjs.map +0 -1
  1012. package/dist/chunks/NcSettingsInputText-D7eoCI2o.cjs +0 -131
  1013. package/dist/chunks/NcSettingsInputText-D7eoCI2o.cjs.map +0 -1
  1014. package/dist/chunks/NcSettingsSection-Bmo90KQR.cjs +0 -106
  1015. package/dist/chunks/NcSettingsSection-Bmo90KQR.cjs.map +0 -1
  1016. package/dist/chunks/NcSettingsSection-fe_YIg-L.mjs +0 -107
  1017. package/dist/chunks/NcSettingsSection-fe_YIg-L.mjs.map +0 -1
  1018. package/dist/chunks/NcSettingsSelectGroup-CUUKv6lH.mjs +0 -237
  1019. package/dist/chunks/NcSettingsSelectGroup-CUUKv6lH.mjs.map +0 -1
  1020. package/dist/chunks/NcSettingsSelectGroup-Dd04CVAM.cjs +0 -239
  1021. package/dist/chunks/NcSettingsSelectGroup-Dd04CVAM.cjs.map +0 -1
  1022. package/dist/chunks/NcTextArea-B2hcap39.cjs +0 -219
  1023. package/dist/chunks/NcTextArea-B2hcap39.cjs.map +0 -1
  1024. package/dist/chunks/NcTextArea-BFLuhsEv.mjs +0 -220
  1025. package/dist/chunks/NcTextArea-BFLuhsEv.mjs.map +0 -1
  1026. package/dist/chunks/NcTextField-DDJqk3SI.cjs +0 -147
  1027. package/dist/chunks/NcTextField-DDJqk3SI.cjs.map +0 -1
  1028. package/dist/chunks/NcTextField-eKuP0G6I.mjs +0 -148
  1029. package/dist/chunks/NcTextField-eKuP0G6I.mjs.map +0 -1
  1030. package/dist/chunks/NcThemeProvider-25ResoIv.mjs +0 -53
  1031. package/dist/chunks/NcThemeProvider-25ResoIv.mjs.map +0 -1
  1032. package/dist/chunks/NcThemeProvider-BqGPTeWg.cjs +0 -52
  1033. package/dist/chunks/NcThemeProvider-BqGPTeWg.cjs.map +0 -1
  1034. package/dist/chunks/NcTimezonePicker-BbqblRd7.mjs +0 -215
  1035. package/dist/chunks/NcTimezonePicker-BbqblRd7.mjs.map +0 -1
  1036. package/dist/chunks/NcTimezonePicker-DV_arh0f.cjs +0 -214
  1037. package/dist/chunks/NcTimezonePicker-DV_arh0f.cjs.map +0 -1
  1038. package/dist/chunks/NcUserBubble-C7XtYsrf.mjs +0 -221
  1039. package/dist/chunks/NcUserBubble-C7XtYsrf.mjs.map +0 -1
  1040. package/dist/chunks/NcUserBubble-DuyMsPzl.cjs +0 -222
  1041. package/dist/chunks/NcUserBubble-DuyMsPzl.cjs.map +0 -1
  1042. package/dist/chunks/NcUserStatusIcon-CKPJ27oi.cjs +0 -145
  1043. package/dist/chunks/NcUserStatusIcon-CKPJ27oi.cjs.map +0 -1
  1044. package/dist/chunks/NcUserStatusIcon-DQr5EGWZ.mjs +0 -144
  1045. package/dist/chunks/NcUserStatusIcon-DQr5EGWZ.mjs.map +0 -1
  1046. package/dist/chunks/ScopeComponent-B_NOkzpc.mjs +0 -14
  1047. package/dist/chunks/ScopeComponent-B_NOkzpc.mjs.map +0 -1
  1048. package/dist/chunks/ScopeComponent-CbzbU6pi.cjs +0 -13
  1049. package/dist/chunks/ScopeComponent-CbzbU6pi.cjs.map +0 -1
  1050. package/dist/chunks/_l10n-CW0YfIWk.mjs +0 -145
  1051. package/dist/chunks/_l10n-CW0YfIWk.mjs.map +0 -1
  1052. package/dist/chunks/_l10n-RKohWu5d.cjs +0 -144
  1053. package/dist/chunks/_l10n-RKohWu5d.cjs.map +0 -1
  1054. package/dist/chunks/actionText-BcrK4uH1.cjs +0 -89
  1055. package/dist/chunks/actionText-BcrK4uH1.cjs.map +0 -1
  1056. package/dist/chunks/actionText-fFcUPi2g.mjs +0 -90
  1057. package/dist/chunks/actionText-fFcUPi2g.mjs.map +0 -1
  1058. package/dist/chunks/autolink-BAgL31EZ.cjs +0 -109
  1059. package/dist/chunks/autolink-BAgL31EZ.cjs.map +0 -1
  1060. package/dist/chunks/autolink-cbuFALXr.mjs +0 -110
  1061. package/dist/chunks/autolink-cbuFALXr.mjs.map +0 -1
  1062. package/dist/chunks/customPickerElements-CH9vlHLd.mjs +0 -118
  1063. package/dist/chunks/customPickerElements-CH9vlHLd.mjs.map +0 -1
  1064. package/dist/chunks/customPickerElements-Q3Y7fgZ1.cjs +0 -117
  1065. package/dist/chunks/customPickerElements-Q3Y7fgZ1.cjs.map +0 -1
  1066. package/dist/chunks/emoji-BY_D0V5K.mjs +0 -65
  1067. package/dist/chunks/emoji-BY_D0V5K.mjs.map +0 -1
  1068. package/dist/chunks/emoji-VgSjNTd5.cjs +0 -66
  1069. package/dist/chunks/emoji-VgSjNTd5.cjs.map +0 -1
  1070. package/dist/chunks/focusTrap-DUTqW_IG.cjs +0 -34
  1071. package/dist/chunks/focusTrap-DUTqW_IG.cjs.map +0 -1
  1072. package/dist/chunks/focusTrap-HJQ4pqHV.mjs +0 -35
  1073. package/dist/chunks/focusTrap-HJQ4pqHV.mjs.map +0 -1
  1074. package/dist/chunks/getAvatarUrl-Du9Y3cPO.cjs +0 -14
  1075. package/dist/chunks/getAvatarUrl-Du9Y3cPO.cjs.map +0 -1
  1076. package/dist/chunks/getAvatarUrl-IhLacDEr.mjs +0 -15
  1077. package/dist/chunks/getAvatarUrl-IhLacDEr.mjs.map +0 -1
  1078. package/dist/chunks/index-AlIgEQXL.cjs +0 -181
  1079. package/dist/chunks/index-AlIgEQXL.cjs.map +0 -1
  1080. package/dist/chunks/index-B8gPNa8c.mjs +0 -178
  1081. package/dist/chunks/index-B8gPNa8c.mjs.map +0 -1
  1082. package/dist/chunks/index-Bz6q9mZw.mjs +0 -175
  1083. package/dist/chunks/index-Bz6q9mZw.mjs.map +0 -1
  1084. package/dist/chunks/index-DIJxEozm.cjs +0 -174
  1085. package/dist/chunks/index-DIJxEozm.cjs.map +0 -1
  1086. package/dist/chunks/legacy-KBXhWdRy.cjs +0 -5
  1087. package/dist/chunks/legacy-KBXhWdRy.cjs.map +0 -1
  1088. package/dist/chunks/legacy-MK4GvP26.mjs +0 -6
  1089. package/dist/chunks/legacy-MK4GvP26.mjs.map +0 -1
  1090. package/dist/chunks/mdi-BBwE-MZC.cjs +0 -24
  1091. package/dist/chunks/mdi-BBwE-MZC.cjs.map +0 -1
  1092. package/dist/chunks/mdi-DXu6GWVJ.mjs +0 -25
  1093. package/dist/chunks/mdi-DXu6GWVJ.mjs.map +0 -1
  1094. package/dist/chunks/referencePickerModal-B2nPzrke.mjs +0 -1077
  1095. package/dist/chunks/referencePickerModal-B2nPzrke.mjs.map +0 -1
  1096. package/dist/chunks/referencePickerModal-BINQW-pL.cjs +0 -1079
  1097. package/dist/chunks/referencePickerModal-BINQW-pL.cjs.map +0 -1
  1098. package/dist/chunks/useModelMigration-D5zhrNXr.cjs +0 -26
  1099. package/dist/chunks/useModelMigration-D5zhrNXr.cjs.map +0 -1
  1100. package/dist/chunks/useModelMigration-EhAWvqDD.mjs +0 -25
  1101. package/dist/chunks/useModelMigration-EhAWvqDD.mjs.map +0 -1
  1102. package/dist/chunks/useTrapStackControl-CTZTSUOt.cjs +0 -22
  1103. package/dist/chunks/useTrapStackControl-CTZTSUOt.cjs.map +0 -1
  1104. package/dist/chunks/useTrapStackControl-yqM2SDEs.mjs +0 -23
  1105. package/dist/chunks/useTrapStackControl-yqM2SDEs.mjs.map +0 -1
@@ -0,0 +1,3704 @@
1
+ require('../assets/NcRichText-CVy4zTPr.css');
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __defProps = Object.defineProperties;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
+ var __getOwnPropNames = Object.getOwnPropertyNames;
9
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
13
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14
+ var __spreadValues = (a, b) => {
15
+ for (var prop in b || (b = {}))
16
+ if (__hasOwnProp.call(b, prop))
17
+ __defNormalProp(a, prop, b[prop]);
18
+ if (__getOwnPropSymbols)
19
+ for (var prop of __getOwnPropSymbols(b)) {
20
+ if (__propIsEnum.call(b, prop))
21
+ __defNormalProp(a, prop, b[prop]);
22
+ }
23
+ return a;
24
+ };
25
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
26
+ var __copyProps = (to, from, except, desc) => {
27
+ if (from && typeof from === "object" || typeof from === "function") {
28
+ for (let key of __getOwnPropNames(from))
29
+ if (!__hasOwnProp.call(to, key) && key !== except)
30
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
31
+ }
32
+ return to;
33
+ };
34
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
35
+ // If the importer is in node compatibility mode or this is not an ESM
36
+ // file that has been converted to a CommonJS file using a Babel-
37
+ // compatible transform (i.e. "__esModule" has not been set), then set
38
+ // "default" to the CommonJS "module.exports" for node compatibility.
39
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
40
+ mod
41
+ ));
42
+ const rehypeExternalLinks = require("rehype-external-links");
43
+ const rehype2react = require("rehype-react");
44
+ const breaks = require("remark-breaks");
45
+ const remarkParse = require("remark-parse");
46
+ const remark2rehype = require("remark-rehype");
47
+ const remarkUnlinkProtocols = require("remark-unlink-protocols");
48
+ const unified = require("unified");
49
+ const Vue = require("vue");
50
+ const vueRouter = require("vue-router");
51
+ const NcCheckboxRadioSwitch = require("./NcCheckboxRadioSwitch-CDFUoj2J.cjs");
52
+ const auth = require("@nextcloud/auth");
53
+ const axios = require("@nextcloud/axios");
54
+ const router = require("@nextcloud/router");
55
+ const _public = require("@nextcloud/sharing/public");
56
+ const referencePickerModal = require("./referencePickerModal-CusxgEsK.cjs");
57
+ const logger = require("./logger-3HuiEIF6.cjs");
58
+ const autolink = require("./autolink-BPlRHRHR.cjs");
59
+ const _pluginVue2_normalizer = require("./_plugin-vue2_normalizer-V0q-tHlQ.cjs");
60
+ const GenRandomId = require("./GenRandomId-D7iOvpZS.cjs");
61
+ const unistBuilder = require("unist-builder");
62
+ const unistUtilVisit = require("unist-util-visit");
63
+ const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
64
+ const rehypeExternalLinks__default = /* @__PURE__ */ _interopDefault(rehypeExternalLinks);
65
+ const rehype2react__default = /* @__PURE__ */ _interopDefault(rehype2react);
66
+ const breaks__default = /* @__PURE__ */ _interopDefault(breaks);
67
+ const remarkParse__default = /* @__PURE__ */ _interopDefault(remarkParse);
68
+ const remark2rehype__default = /* @__PURE__ */ _interopDefault(remark2rehype);
69
+ const remarkUnlinkProtocols__default = /* @__PURE__ */ _interopDefault(remarkUnlinkProtocols);
70
+ const axios__default = /* @__PURE__ */ _interopDefault(axios);
71
+ const _sfc_main$1 = {
72
+ name: "NcReferenceList",
73
+ components: {
74
+ NcReferenceWidget: referencePickerModal.NcReferenceWidget
75
+ },
76
+ /* eslint vue/require-prop-comment: warn -- TODO: Add a proper doc block about what this props do */
77
+ props: {
78
+ text: {
79
+ type: String,
80
+ default: ""
81
+ },
82
+ referenceData: {
83
+ type: Array,
84
+ default: null
85
+ },
86
+ limit: {
87
+ type: Number,
88
+ default: 1
89
+ },
90
+ displayFallback: {
91
+ type: Boolean,
92
+ default: false
93
+ },
94
+ interactive: {
95
+ type: Boolean,
96
+ // eslint-disable-next-line vue/no-boolean-default
97
+ default: true
98
+ },
99
+ interactiveOptIn: {
100
+ type: Boolean,
101
+ default: false
102
+ }
103
+ },
104
+ data() {
105
+ return {
106
+ references: null,
107
+ loading: true
108
+ };
109
+ },
110
+ computed: {
111
+ isVisible() {
112
+ return this.loading || this.displayedReferences.length !== 0;
113
+ },
114
+ values() {
115
+ if (this.referenceData) {
116
+ return this.referenceData;
117
+ }
118
+ if (this.displayFallback && !this.loading && !this.references) {
119
+ return [this.fallbackReference];
120
+ }
121
+ return this.references ? Object.values(this.references) : [];
122
+ },
123
+ firstReference() {
124
+ var _a;
125
+ return (_a = this.values[0]) != null ? _a : null;
126
+ },
127
+ displayedReferences() {
128
+ return this.values.filter(Boolean).slice(0, this.limit);
129
+ },
130
+ fallbackReference() {
131
+ return {
132
+ accessible: true,
133
+ openGraphObject: {
134
+ id: this.text,
135
+ link: this.text,
136
+ name: this.text
137
+ },
138
+ richObjectType: "open-graph"
139
+ };
140
+ }
141
+ },
142
+ watch: {
143
+ text: "fetch"
144
+ },
145
+ mounted() {
146
+ this.fetch();
147
+ },
148
+ methods: {
149
+ fetch() {
150
+ this.loading = true;
151
+ if (this.referenceData) {
152
+ this.references = null;
153
+ this.loading = false;
154
+ return;
155
+ }
156
+ if (!new RegExp(autolink.URL_PATTERN).exec(this.text)) {
157
+ this.references = null;
158
+ this.loading = false;
159
+ return;
160
+ }
161
+ this.resolve().then((response) => {
162
+ this.references = response.data.ocs.data.references;
163
+ this.loading = false;
164
+ this.$emit("loaded");
165
+ }).catch((error) => {
166
+ logger.logger.error("Failed to extract references", { error });
167
+ this.loading = false;
168
+ this.$emit("loaded");
169
+ });
170
+ },
171
+ resolve() {
172
+ const match = new RegExp(autolink.URL_PATTERN).exec(this.text.trim());
173
+ const isPublic = auth.getCurrentUser() === null;
174
+ if (this.limit === 1 && match) {
175
+ return isPublic ? axios__default.default.get(router.generateOcsUrl("references/resolvePublic") + "?reference=".concat(encodeURIComponent(match[0]), "&sharingToken=").concat(_public.getSharingToken())) : axios__default.default.get(router.generateOcsUrl("references/resolve") + "?reference=".concat(encodeURIComponent(match[0])));
176
+ }
177
+ return isPublic ? axios__default.default.post(router.generateOcsUrl("references/extractPublic"), {
178
+ text: this.text,
179
+ resolve: true,
180
+ limit: this.limit,
181
+ sharingToken: _public.getSharingToken()
182
+ }) : axios__default.default.post(router.generateOcsUrl("references/extract"), {
183
+ text: this.text,
184
+ resolve: true,
185
+ limit: this.limit
186
+ });
187
+ }
188
+ }
189
+ };
190
+ var _sfc_render$1 = function render() {
191
+ var _vm = this, _c = _vm._self._c;
192
+ return _vm.isVisible ? _c("div", { staticClass: "widgets--list", class: { "icon-loading": _vm.loading } }, _vm._l(_vm.displayedReferences, function(reference) {
193
+ var _a;
194
+ return _c("NcReferenceWidget", { key: (_a = reference.openGraphObject) == null ? void 0 : _a.id, attrs: { "reference": reference, "interactive": _vm.interactive, "interactive-opt-in": _vm.interactiveOptIn } });
195
+ }), 1) : _vm._e();
196
+ };
197
+ var _sfc_staticRenderFns$1 = [];
198
+ var __component__$1 = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
199
+ _sfc_main$1,
200
+ _sfc_render$1,
201
+ _sfc_staticRenderFns$1,
202
+ false,
203
+ null,
204
+ "a50e616b"
205
+ );
206
+ const NcReferenceList = __component__$1.exports;
207
+ function ccount(value, character) {
208
+ const source = String(value);
209
+ if (typeof character !== "string") {
210
+ throw new TypeError("Expected character");
211
+ }
212
+ let count = 0;
213
+ let index = source.indexOf(character);
214
+ while (index !== -1) {
215
+ count++;
216
+ index = source.indexOf(character, index + character.length);
217
+ }
218
+ return count;
219
+ }
220
+ function ok$1() {
221
+ }
222
+ const asciiAlpha = regexCheck(/[A-Za-z]/);
223
+ const asciiAlphanumeric = regexCheck(/[\dA-Za-z]/);
224
+ function asciiControl(code2) {
225
+ return (
226
+ // Special whitespace codes (which have negative values), C0 and Control
227
+ // character DEL
228
+ code2 !== null && (code2 < 32 || code2 === 127)
229
+ );
230
+ }
231
+ function markdownLineEnding(code2) {
232
+ return code2 !== null && code2 < -2;
233
+ }
234
+ function markdownLineEndingOrSpace(code2) {
235
+ return code2 !== null && (code2 < 0 || code2 === 32);
236
+ }
237
+ function markdownSpace(code2) {
238
+ return code2 === -2 || code2 === -1 || code2 === 32;
239
+ }
240
+ const unicodePunctuation = regexCheck(new RegExp("\\p{P}|\\p{S}", "u"));
241
+ const unicodeWhitespace = regexCheck(/\s/);
242
+ function regexCheck(regex) {
243
+ return check;
244
+ function check(code2) {
245
+ return code2 !== null && code2 > -1 && regex.test(String.fromCharCode(code2));
246
+ }
247
+ }
248
+ function escapeStringRegexp(string) {
249
+ if (typeof string !== "string") {
250
+ throw new TypeError("Expected a string");
251
+ }
252
+ return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
253
+ }
254
+ const convert = (
255
+ // Note: overloads in JSDoc can’t yet use different `@template`s.
256
+ /**
257
+ * @type {(
258
+ * (<Condition extends string>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & {type: Condition}) &
259
+ * (<Condition extends Props>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Condition) &
260
+ * (<Condition extends TestFunction>(test: Condition) => (node: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node & Predicate<Condition, Node>) &
261
+ * ((test?: null | undefined) => (node?: unknown, index?: number | null | undefined, parent?: Parent | null | undefined, context?: unknown) => node is Node) &
262
+ * ((test?: Test) => Check)
263
+ * )}
264
+ */
265
+ /**
266
+ * @param {Test} [test]
267
+ * @returns {Check}
268
+ */
269
+ function(test) {
270
+ if (test === null || test === void 0) {
271
+ return ok;
272
+ }
273
+ if (typeof test === "function") {
274
+ return castFactory(test);
275
+ }
276
+ if (typeof test === "object") {
277
+ return Array.isArray(test) ? anyFactory(test) : propsFactory(test);
278
+ }
279
+ if (typeof test === "string") {
280
+ return typeFactory(test);
281
+ }
282
+ throw new Error("Expected function, string, or object as test");
283
+ }
284
+ );
285
+ function anyFactory(tests) {
286
+ const checks = [];
287
+ let index = -1;
288
+ while (++index < tests.length) {
289
+ checks[index] = convert(tests[index]);
290
+ }
291
+ return castFactory(any);
292
+ function any(...parameters) {
293
+ let index2 = -1;
294
+ while (++index2 < checks.length) {
295
+ if (checks[index2].apply(this, parameters)) return true;
296
+ }
297
+ return false;
298
+ }
299
+ }
300
+ function propsFactory(check) {
301
+ const checkAsRecord = (
302
+ /** @type {Record<string, unknown>} */
303
+ check
304
+ );
305
+ return castFactory(all2);
306
+ function all2(node2) {
307
+ const nodeAsRecord = (
308
+ /** @type {Record<string, unknown>} */
309
+ /** @type {unknown} */
310
+ node2
311
+ );
312
+ let key;
313
+ for (key in check) {
314
+ if (nodeAsRecord[key] !== checkAsRecord[key]) return false;
315
+ }
316
+ return true;
317
+ }
318
+ }
319
+ function typeFactory(check) {
320
+ return castFactory(type);
321
+ function type(node2) {
322
+ return node2 && node2.type === check;
323
+ }
324
+ }
325
+ function castFactory(testFunction) {
326
+ return check;
327
+ function check(value, index, parent) {
328
+ return Boolean(
329
+ looksLikeANode(value) && testFunction.call(
330
+ this,
331
+ value,
332
+ typeof index === "number" ? index : void 0,
333
+ parent || void 0
334
+ )
335
+ );
336
+ }
337
+ }
338
+ function ok() {
339
+ return true;
340
+ }
341
+ function looksLikeANode(value) {
342
+ return value !== null && typeof value === "object" && "type" in value;
343
+ }
344
+ function color(d) {
345
+ return d;
346
+ }
347
+ const empty = [];
348
+ const CONTINUE = true;
349
+ const EXIT = false;
350
+ const SKIP = "skip";
351
+ function visitParents(tree, test, visitor, reverse) {
352
+ let check;
353
+ {
354
+ check = test;
355
+ }
356
+ const is = convert(check);
357
+ const step = 1;
358
+ factory(tree, void 0, [])();
359
+ function factory(node2, index, parents) {
360
+ const value = (
361
+ /** @type {Record<string, unknown>} */
362
+ node2 && typeof node2 === "object" ? node2 : {}
363
+ );
364
+ if (typeof value.type === "string") {
365
+ const name = (
366
+ // `hast`
367
+ typeof value.tagName === "string" ? value.tagName : (
368
+ // `xast`
369
+ typeof value.name === "string" ? value.name : void 0
370
+ )
371
+ );
372
+ Object.defineProperty(visit, "name", {
373
+ value: "node (" + color(node2.type + (name ? "<" + name + ">" : "")) + ")"
374
+ });
375
+ }
376
+ return visit;
377
+ function visit() {
378
+ let result = empty;
379
+ let subresult;
380
+ let offset;
381
+ let grandparents;
382
+ if (is(node2, index, parents[parents.length - 1] || void 0)) {
383
+ result = toResult(visitor(node2, parents));
384
+ if (result[0] === EXIT) {
385
+ return result;
386
+ }
387
+ }
388
+ if ("children" in node2 && node2.children) {
389
+ const nodeAsParent = (
390
+ /** @type {UnistParent} */
391
+ node2
392
+ );
393
+ if (nodeAsParent.children && result[0] !== SKIP) {
394
+ offset = -1 + step;
395
+ grandparents = parents.concat(nodeAsParent);
396
+ while (offset > -1 && offset < nodeAsParent.children.length) {
397
+ const child = nodeAsParent.children[offset];
398
+ subresult = factory(child, offset, grandparents)();
399
+ if (subresult[0] === EXIT) {
400
+ return subresult;
401
+ }
402
+ offset = typeof subresult[1] === "number" ? subresult[1] : offset + step;
403
+ }
404
+ }
405
+ }
406
+ return result;
407
+ }
408
+ }
409
+ }
410
+ function toResult(value) {
411
+ if (Array.isArray(value)) {
412
+ return value;
413
+ }
414
+ if (typeof value === "number") {
415
+ return [CONTINUE, value];
416
+ }
417
+ return value === null || value === void 0 ? empty : [value];
418
+ }
419
+ function findAndReplace(tree, list2, options) {
420
+ const settings = options || {};
421
+ const ignored = convert(settings.ignore || []);
422
+ const pairs = toPairs(list2);
423
+ let pairIndex = -1;
424
+ while (++pairIndex < pairs.length) {
425
+ visitParents(tree, "text", visitor);
426
+ }
427
+ function visitor(node2, parents) {
428
+ let index = -1;
429
+ let grandparent;
430
+ while (++index < parents.length) {
431
+ const parent = parents[index];
432
+ const siblings = grandparent ? grandparent.children : void 0;
433
+ if (ignored(
434
+ parent,
435
+ siblings ? siblings.indexOf(parent) : void 0,
436
+ grandparent
437
+ )) {
438
+ return;
439
+ }
440
+ grandparent = parent;
441
+ }
442
+ if (grandparent) {
443
+ return handler(node2, parents);
444
+ }
445
+ }
446
+ function handler(node2, parents) {
447
+ const parent = parents[parents.length - 1];
448
+ const find = pairs[pairIndex][0];
449
+ const replace2 = pairs[pairIndex][1];
450
+ let start = 0;
451
+ const siblings = parent.children;
452
+ const index = siblings.indexOf(node2);
453
+ let change = false;
454
+ let nodes = [];
455
+ find.lastIndex = 0;
456
+ let match = find.exec(node2.value);
457
+ while (match) {
458
+ const position = match.index;
459
+ const matchObject = {
460
+ index: match.index,
461
+ input: match.input,
462
+ stack: [...parents, node2]
463
+ };
464
+ let value = replace2(...match, matchObject);
465
+ if (typeof value === "string") {
466
+ value = value.length > 0 ? { type: "text", value } : void 0;
467
+ }
468
+ if (value === false) {
469
+ find.lastIndex = position + 1;
470
+ } else {
471
+ if (start !== position) {
472
+ nodes.push({
473
+ type: "text",
474
+ value: node2.value.slice(start, position)
475
+ });
476
+ }
477
+ if (Array.isArray(value)) {
478
+ nodes.push(...value);
479
+ } else if (value) {
480
+ nodes.push(value);
481
+ }
482
+ start = position + match[0].length;
483
+ change = true;
484
+ }
485
+ if (!find.global) {
486
+ break;
487
+ }
488
+ match = find.exec(node2.value);
489
+ }
490
+ if (change) {
491
+ if (start < node2.value.length) {
492
+ nodes.push({ type: "text", value: node2.value.slice(start) });
493
+ }
494
+ parent.children.splice(index, 1, ...nodes);
495
+ } else {
496
+ nodes = [node2];
497
+ }
498
+ return index + nodes.length;
499
+ }
500
+ }
501
+ function toPairs(tupleOrList) {
502
+ const result = [];
503
+ if (!Array.isArray(tupleOrList)) {
504
+ throw new TypeError("Expected find and replace tuple or list of tuples");
505
+ }
506
+ const list2 = !tupleOrList[0] || Array.isArray(tupleOrList[0]) ? tupleOrList : [tupleOrList];
507
+ let index = -1;
508
+ while (++index < list2.length) {
509
+ const tuple = list2[index];
510
+ result.push([toExpression(tuple[0]), toFunction(tuple[1])]);
511
+ }
512
+ return result;
513
+ }
514
+ function toExpression(find) {
515
+ return typeof find === "string" ? new RegExp(escapeStringRegexp(find), "g") : find;
516
+ }
517
+ function toFunction(replace2) {
518
+ return typeof replace2 === "function" ? replace2 : function() {
519
+ return replace2;
520
+ };
521
+ }
522
+ const inConstruct = "phrasing";
523
+ const notInConstruct = ["autolink", "link", "image", "label"];
524
+ function gfmAutolinkLiteralFromMarkdown() {
525
+ return {
526
+ transforms: [transformGfmAutolinkLiterals],
527
+ enter: {
528
+ literalAutolink: enterLiteralAutolink,
529
+ literalAutolinkEmail: enterLiteralAutolinkValue,
530
+ literalAutolinkHttp: enterLiteralAutolinkValue,
531
+ literalAutolinkWww: enterLiteralAutolinkValue
532
+ },
533
+ exit: {
534
+ literalAutolink: exitLiteralAutolink,
535
+ literalAutolinkEmail: exitLiteralAutolinkEmail,
536
+ literalAutolinkHttp: exitLiteralAutolinkHttp,
537
+ literalAutolinkWww: exitLiteralAutolinkWww
538
+ }
539
+ };
540
+ }
541
+ function gfmAutolinkLiteralToMarkdown() {
542
+ return {
543
+ unsafe: [
544
+ {
545
+ character: "@",
546
+ before: "[+\\-.\\w]",
547
+ after: "[\\-.\\w]",
548
+ inConstruct,
549
+ notInConstruct
550
+ },
551
+ {
552
+ character: ".",
553
+ before: "[Ww]",
554
+ after: "[\\-.\\w]",
555
+ inConstruct,
556
+ notInConstruct
557
+ },
558
+ {
559
+ character: ":",
560
+ before: "[ps]",
561
+ after: "\\/",
562
+ inConstruct,
563
+ notInConstruct
564
+ }
565
+ ]
566
+ };
567
+ }
568
+ function enterLiteralAutolink(token) {
569
+ this.enter({ type: "link", title: null, url: "", children: [] }, token);
570
+ }
571
+ function enterLiteralAutolinkValue(token) {
572
+ this.config.enter.autolinkProtocol.call(this, token);
573
+ }
574
+ function exitLiteralAutolinkHttp(token) {
575
+ this.config.exit.autolinkProtocol.call(this, token);
576
+ }
577
+ function exitLiteralAutolinkWww(token) {
578
+ this.config.exit.data.call(this, token);
579
+ const node2 = this.stack[this.stack.length - 1];
580
+ ok$1(node2.type === "link");
581
+ node2.url = "http://" + this.sliceSerialize(token);
582
+ }
583
+ function exitLiteralAutolinkEmail(token) {
584
+ this.config.exit.autolinkEmail.call(this, token);
585
+ }
586
+ function exitLiteralAutolink(token) {
587
+ this.exit(token);
588
+ }
589
+ function transformGfmAutolinkLiterals(tree) {
590
+ findAndReplace(
591
+ tree,
592
+ [
593
+ [/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl],
594
+ [/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g, findEmail]
595
+ ],
596
+ { ignore: ["link", "linkReference"] }
597
+ );
598
+ }
599
+ function findUrl(_, protocol, domain2, path2, match) {
600
+ let prefix = "";
601
+ if (!previous(match)) {
602
+ return false;
603
+ }
604
+ if (/^w/i.test(protocol)) {
605
+ domain2 = protocol + domain2;
606
+ protocol = "";
607
+ prefix = "http://";
608
+ }
609
+ if (!isCorrectDomain(domain2)) {
610
+ return false;
611
+ }
612
+ const parts = splitUrl(domain2 + path2);
613
+ if (!parts[0]) return false;
614
+ const result = {
615
+ type: "link",
616
+ title: null,
617
+ url: prefix + protocol + parts[0],
618
+ children: [{ type: "text", value: protocol + parts[0] }]
619
+ };
620
+ if (parts[1]) {
621
+ return [result, { type: "text", value: parts[1] }];
622
+ }
623
+ return result;
624
+ }
625
+ function findEmail(_, atext, label, match) {
626
+ if (
627
+ // Not an expected previous character.
628
+ !previous(match, true) || // Label ends in not allowed character.
629
+ /[-\d_]$/.test(label)
630
+ ) {
631
+ return false;
632
+ }
633
+ return {
634
+ type: "link",
635
+ title: null,
636
+ url: "mailto:" + atext + "@" + label,
637
+ children: [{ type: "text", value: atext + "@" + label }]
638
+ };
639
+ }
640
+ function isCorrectDomain(domain2) {
641
+ const parts = domain2.split(".");
642
+ if (parts.length < 2 || parts[parts.length - 1] && (/_/.test(parts[parts.length - 1]) || !/[a-zA-Z\d]/.test(parts[parts.length - 1])) || parts[parts.length - 2] && (/_/.test(parts[parts.length - 2]) || !/[a-zA-Z\d]/.test(parts[parts.length - 2]))) {
643
+ return false;
644
+ }
645
+ return true;
646
+ }
647
+ function splitUrl(url) {
648
+ const trailExec = /[!"&'),.:;<>?\]}]+$/.exec(url);
649
+ if (!trailExec) {
650
+ return [url, void 0];
651
+ }
652
+ url = url.slice(0, trailExec.index);
653
+ let trail2 = trailExec[0];
654
+ let closingParenIndex = trail2.indexOf(")");
655
+ const openingParens = ccount(url, "(");
656
+ let closingParens = ccount(url, ")");
657
+ while (closingParenIndex !== -1 && openingParens > closingParens) {
658
+ url += trail2.slice(0, closingParenIndex + 1);
659
+ trail2 = trail2.slice(closingParenIndex + 1);
660
+ closingParenIndex = trail2.indexOf(")");
661
+ closingParens++;
662
+ }
663
+ return [url, trail2];
664
+ }
665
+ function previous(match, email) {
666
+ const code2 = match.input.charCodeAt(match.index - 1);
667
+ return (match.index === 0 || unicodeWhitespace(code2) || unicodePunctuation(code2)) && (!email || code2 !== 47);
668
+ }
669
+ function normalizeIdentifier(value) {
670
+ return value.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
671
+ }
672
+ footnoteReference.peek = footnoteReferencePeek;
673
+ function gfmFootnoteFromMarkdown() {
674
+ return {
675
+ enter: {
676
+ gfmFootnoteDefinition: enterFootnoteDefinition,
677
+ gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,
678
+ gfmFootnoteCall: enterFootnoteCall,
679
+ gfmFootnoteCallString: enterFootnoteCallString
680
+ },
681
+ exit: {
682
+ gfmFootnoteDefinition: exitFootnoteDefinition,
683
+ gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,
684
+ gfmFootnoteCall: exitFootnoteCall,
685
+ gfmFootnoteCallString: exitFootnoteCallString
686
+ }
687
+ };
688
+ }
689
+ function gfmFootnoteToMarkdown() {
690
+ return {
691
+ // This is on by default already.
692
+ unsafe: [{ character: "[", inConstruct: ["phrasing", "label", "reference"] }],
693
+ handlers: { footnoteDefinition, footnoteReference }
694
+ };
695
+ }
696
+ function enterFootnoteDefinition(token) {
697
+ this.enter(
698
+ { type: "footnoteDefinition", identifier: "", label: "", children: [] },
699
+ token
700
+ );
701
+ }
702
+ function enterFootnoteDefinitionLabelString() {
703
+ this.buffer();
704
+ }
705
+ function exitFootnoteDefinitionLabelString(token) {
706
+ const label = this.resume();
707
+ const node2 = this.stack[this.stack.length - 1];
708
+ ok$1(node2.type === "footnoteDefinition");
709
+ node2.label = label;
710
+ node2.identifier = normalizeIdentifier(
711
+ this.sliceSerialize(token)
712
+ ).toLowerCase();
713
+ }
714
+ function exitFootnoteDefinition(token) {
715
+ this.exit(token);
716
+ }
717
+ function enterFootnoteCall(token) {
718
+ this.enter({ type: "footnoteReference", identifier: "", label: "" }, token);
719
+ }
720
+ function enterFootnoteCallString() {
721
+ this.buffer();
722
+ }
723
+ function exitFootnoteCallString(token) {
724
+ const label = this.resume();
725
+ const node2 = this.stack[this.stack.length - 1];
726
+ ok$1(node2.type === "footnoteReference");
727
+ node2.label = label;
728
+ node2.identifier = normalizeIdentifier(
729
+ this.sliceSerialize(token)
730
+ ).toLowerCase();
731
+ }
732
+ function exitFootnoteCall(token) {
733
+ this.exit(token);
734
+ }
735
+ function footnoteReference(node2, _, state, info) {
736
+ const tracker = state.createTracker(info);
737
+ let value = tracker.move("[^");
738
+ const exit2 = state.enter("footnoteReference");
739
+ const subexit = state.enter("reference");
740
+ value += tracker.move(
741
+ state.safe(state.associationId(node2), __spreadProps(__spreadValues({}, tracker.current()), {
742
+ before: value,
743
+ after: "]"
744
+ }))
745
+ );
746
+ subexit();
747
+ exit2();
748
+ value += tracker.move("]");
749
+ return value;
750
+ }
751
+ function footnoteReferencePeek() {
752
+ return "[";
753
+ }
754
+ function footnoteDefinition(node2, _, state, info) {
755
+ const tracker = state.createTracker(info);
756
+ let value = tracker.move("[^");
757
+ const exit2 = state.enter("footnoteDefinition");
758
+ const subexit = state.enter("label");
759
+ value += tracker.move(
760
+ state.safe(state.associationId(node2), __spreadProps(__spreadValues({}, tracker.current()), {
761
+ before: value,
762
+ after: "]"
763
+ }))
764
+ );
765
+ subexit();
766
+ value += tracker.move(
767
+ "]:" + (node2.children && node2.children.length > 0 ? " " : "")
768
+ );
769
+ tracker.shift(4);
770
+ value += tracker.move(
771
+ state.indentLines(state.containerFlow(node2, tracker.current()), map$2)
772
+ );
773
+ exit2();
774
+ return value;
775
+ }
776
+ function map$2(line, index, blank) {
777
+ if (index === 0) {
778
+ return line;
779
+ }
780
+ return (blank ? "" : " ") + line;
781
+ }
782
+ const constructsWithoutStrikethrough = [
783
+ "autolink",
784
+ "destinationLiteral",
785
+ "destinationRaw",
786
+ "reference",
787
+ "titleQuote",
788
+ "titleApostrophe"
789
+ ];
790
+ handleDelete.peek = peekDelete;
791
+ function gfmStrikethroughFromMarkdown() {
792
+ return {
793
+ canContainEols: ["delete"],
794
+ enter: { strikethrough: enterStrikethrough },
795
+ exit: { strikethrough: exitStrikethrough }
796
+ };
797
+ }
798
+ function gfmStrikethroughToMarkdown() {
799
+ return {
800
+ unsafe: [
801
+ {
802
+ character: "~",
803
+ inConstruct: "phrasing",
804
+ notInConstruct: constructsWithoutStrikethrough
805
+ }
806
+ ],
807
+ handlers: { delete: handleDelete }
808
+ };
809
+ }
810
+ function enterStrikethrough(token) {
811
+ this.enter({ type: "delete", children: [] }, token);
812
+ }
813
+ function exitStrikethrough(token) {
814
+ this.exit(token);
815
+ }
816
+ function handleDelete(node2, _, state, info) {
817
+ const tracker = state.createTracker(info);
818
+ const exit2 = state.enter("strikethrough");
819
+ let value = tracker.move("~~");
820
+ value += state.containerPhrasing(node2, __spreadProps(__spreadValues({}, tracker.current()), {
821
+ before: value,
822
+ after: "~"
823
+ }));
824
+ value += tracker.move("~~");
825
+ exit2();
826
+ return value;
827
+ }
828
+ function peekDelete() {
829
+ return "~";
830
+ }
831
+ function markdownTable(table, options = {}) {
832
+ const align = (options.align || []).concat();
833
+ const stringLength = options.stringLength || defaultStringLength;
834
+ const alignments = [];
835
+ const cellMatrix = [];
836
+ const sizeMatrix = [];
837
+ const longestCellByColumn = [];
838
+ let mostCellsPerRow = 0;
839
+ let rowIndex = -1;
840
+ while (++rowIndex < table.length) {
841
+ const row2 = [];
842
+ const sizes2 = [];
843
+ let columnIndex2 = -1;
844
+ if (table[rowIndex].length > mostCellsPerRow) {
845
+ mostCellsPerRow = table[rowIndex].length;
846
+ }
847
+ while (++columnIndex2 < table[rowIndex].length) {
848
+ const cell = serialize(table[rowIndex][columnIndex2]);
849
+ if (options.alignDelimiters !== false) {
850
+ const size = stringLength(cell);
851
+ sizes2[columnIndex2] = size;
852
+ if (longestCellByColumn[columnIndex2] === void 0 || size > longestCellByColumn[columnIndex2]) {
853
+ longestCellByColumn[columnIndex2] = size;
854
+ }
855
+ }
856
+ row2.push(cell);
857
+ }
858
+ cellMatrix[rowIndex] = row2;
859
+ sizeMatrix[rowIndex] = sizes2;
860
+ }
861
+ let columnIndex = -1;
862
+ if (typeof align === "object" && "length" in align) {
863
+ while (++columnIndex < mostCellsPerRow) {
864
+ alignments[columnIndex] = toAlignment(align[columnIndex]);
865
+ }
866
+ } else {
867
+ const code2 = toAlignment(align);
868
+ while (++columnIndex < mostCellsPerRow) {
869
+ alignments[columnIndex] = code2;
870
+ }
871
+ }
872
+ columnIndex = -1;
873
+ const row = [];
874
+ const sizes = [];
875
+ while (++columnIndex < mostCellsPerRow) {
876
+ const code2 = alignments[columnIndex];
877
+ let before = "";
878
+ let after = "";
879
+ if (code2 === 99) {
880
+ before = ":";
881
+ after = ":";
882
+ } else if (code2 === 108) {
883
+ before = ":";
884
+ } else if (code2 === 114) {
885
+ after = ":";
886
+ }
887
+ let size = options.alignDelimiters === false ? 1 : Math.max(
888
+ 1,
889
+ longestCellByColumn[columnIndex] - before.length - after.length
890
+ );
891
+ const cell = before + "-".repeat(size) + after;
892
+ if (options.alignDelimiters !== false) {
893
+ size = before.length + size + after.length;
894
+ if (size > longestCellByColumn[columnIndex]) {
895
+ longestCellByColumn[columnIndex] = size;
896
+ }
897
+ sizes[columnIndex] = size;
898
+ }
899
+ row[columnIndex] = cell;
900
+ }
901
+ cellMatrix.splice(1, 0, row);
902
+ sizeMatrix.splice(1, 0, sizes);
903
+ rowIndex = -1;
904
+ const lines = [];
905
+ while (++rowIndex < cellMatrix.length) {
906
+ const row2 = cellMatrix[rowIndex];
907
+ const sizes2 = sizeMatrix[rowIndex];
908
+ columnIndex = -1;
909
+ const line = [];
910
+ while (++columnIndex < mostCellsPerRow) {
911
+ const cell = row2[columnIndex] || "";
912
+ let before = "";
913
+ let after = "";
914
+ if (options.alignDelimiters !== false) {
915
+ const size = longestCellByColumn[columnIndex] - (sizes2[columnIndex] || 0);
916
+ const code2 = alignments[columnIndex];
917
+ if (code2 === 114) {
918
+ before = " ".repeat(size);
919
+ } else if (code2 === 99) {
920
+ if (size % 2) {
921
+ before = " ".repeat(size / 2 + 0.5);
922
+ after = " ".repeat(size / 2 - 0.5);
923
+ } else {
924
+ before = " ".repeat(size / 2);
925
+ after = before;
926
+ }
927
+ } else {
928
+ after = " ".repeat(size);
929
+ }
930
+ }
931
+ if (options.delimiterStart !== false && !columnIndex) {
932
+ line.push("|");
933
+ }
934
+ if (options.padding !== false && // Don’t add the opening space if we’re not aligning and the cell is
935
+ // empty: there will be a closing space.
936
+ !(options.alignDelimiters === false && cell === "") && (options.delimiterStart !== false || columnIndex)) {
937
+ line.push(" ");
938
+ }
939
+ if (options.alignDelimiters !== false) {
940
+ line.push(before);
941
+ }
942
+ line.push(cell);
943
+ if (options.alignDelimiters !== false) {
944
+ line.push(after);
945
+ }
946
+ if (options.padding !== false) {
947
+ line.push(" ");
948
+ }
949
+ if (options.delimiterEnd !== false || columnIndex !== mostCellsPerRow - 1) {
950
+ line.push("|");
951
+ }
952
+ }
953
+ lines.push(
954
+ options.delimiterEnd === false ? line.join("").replace(/ +$/, "") : line.join("")
955
+ );
956
+ }
957
+ return lines.join("\n");
958
+ }
959
+ function serialize(value) {
960
+ return value === null || value === void 0 ? "" : String(value);
961
+ }
962
+ function defaultStringLength(value) {
963
+ return value.length;
964
+ }
965
+ function toAlignment(value) {
966
+ const code2 = typeof value === "string" ? value.codePointAt(0) : 0;
967
+ return code2 === 67 || code2 === 99 ? 99 : code2 === 76 || code2 === 108 ? 108 : code2 === 82 || code2 === 114 ? 114 : 0;
968
+ }
969
+ function blockquote(node2, _, state, info) {
970
+ const exit2 = state.enter("blockquote");
971
+ const tracker = state.createTracker(info);
972
+ tracker.move("> ");
973
+ tracker.shift(2);
974
+ const value = state.indentLines(
975
+ state.containerFlow(node2, tracker.current()),
976
+ map$1
977
+ );
978
+ exit2();
979
+ return value;
980
+ }
981
+ function map$1(line, _, blank) {
982
+ return ">" + (blank ? "" : " ") + line;
983
+ }
984
+ function patternInScope(stack, pattern) {
985
+ return listInScope(stack, pattern.inConstruct, true) && !listInScope(stack, pattern.notInConstruct, false);
986
+ }
987
+ function listInScope(stack, list2, none) {
988
+ if (typeof list2 === "string") {
989
+ list2 = [list2];
990
+ }
991
+ if (!list2 || list2.length === 0) {
992
+ return none;
993
+ }
994
+ let index = -1;
995
+ while (++index < list2.length) {
996
+ if (stack.includes(list2[index])) {
997
+ return true;
998
+ }
999
+ }
1000
+ return false;
1001
+ }
1002
+ function hardBreak(_, _1, state, info) {
1003
+ let index = -1;
1004
+ while (++index < state.unsafe.length) {
1005
+ if (state.unsafe[index].character === "\n" && patternInScope(state.stack, state.unsafe[index])) {
1006
+ return /[ \t]/.test(info.before) ? "" : " ";
1007
+ }
1008
+ }
1009
+ return "\\\n";
1010
+ }
1011
+ function longestStreak(value, substring) {
1012
+ const source = String(value);
1013
+ let index = source.indexOf(substring);
1014
+ let expected = index;
1015
+ let count = 0;
1016
+ let max = 0;
1017
+ if (typeof substring !== "string") {
1018
+ throw new TypeError("Expected substring");
1019
+ }
1020
+ while (index !== -1) {
1021
+ if (index === expected) {
1022
+ if (++count > max) {
1023
+ max = count;
1024
+ }
1025
+ } else {
1026
+ count = 1;
1027
+ }
1028
+ expected = index + substring.length;
1029
+ index = source.indexOf(substring, expected);
1030
+ }
1031
+ return max;
1032
+ }
1033
+ function formatCodeAsIndented(node2, state) {
1034
+ return Boolean(
1035
+ state.options.fences === false && node2.value && // If there’s no info…
1036
+ !node2.lang && // And there’s a non-whitespace character…
1037
+ /[^ \r\n]/.test(node2.value) && // And the value doesn’t start or end in a blank…
1038
+ !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node2.value)
1039
+ );
1040
+ }
1041
+ function checkFence(state) {
1042
+ const marker = state.options.fence || "`";
1043
+ if (marker !== "`" && marker !== "~") {
1044
+ throw new Error(
1045
+ "Cannot serialize code with `" + marker + "` for `options.fence`, expected `` ` `` or `~`"
1046
+ );
1047
+ }
1048
+ return marker;
1049
+ }
1050
+ function code$1(node2, _, state, info) {
1051
+ const marker = checkFence(state);
1052
+ const raw = node2.value || "";
1053
+ const suffix = marker === "`" ? "GraveAccent" : "Tilde";
1054
+ if (formatCodeAsIndented(node2, state)) {
1055
+ const exit3 = state.enter("codeIndented");
1056
+ const value2 = state.indentLines(raw, map);
1057
+ exit3();
1058
+ return value2;
1059
+ }
1060
+ const tracker = state.createTracker(info);
1061
+ const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
1062
+ const exit2 = state.enter("codeFenced");
1063
+ let value = tracker.move(sequence);
1064
+ if (node2.lang) {
1065
+ const subexit = state.enter("codeFencedLang".concat(suffix));
1066
+ value += tracker.move(
1067
+ state.safe(node2.lang, __spreadValues({
1068
+ before: value,
1069
+ after: " ",
1070
+ encode: ["`"]
1071
+ }, tracker.current()))
1072
+ );
1073
+ subexit();
1074
+ }
1075
+ if (node2.lang && node2.meta) {
1076
+ const subexit = state.enter("codeFencedMeta".concat(suffix));
1077
+ value += tracker.move(" ");
1078
+ value += tracker.move(
1079
+ state.safe(node2.meta, __spreadValues({
1080
+ before: value,
1081
+ after: "\n",
1082
+ encode: ["`"]
1083
+ }, tracker.current()))
1084
+ );
1085
+ subexit();
1086
+ }
1087
+ value += tracker.move("\n");
1088
+ if (raw) {
1089
+ value += tracker.move(raw + "\n");
1090
+ }
1091
+ value += tracker.move(sequence);
1092
+ exit2();
1093
+ return value;
1094
+ }
1095
+ function map(line, _, blank) {
1096
+ return (blank ? "" : " ") + line;
1097
+ }
1098
+ function checkQuote(state) {
1099
+ const marker = state.options.quote || '"';
1100
+ if (marker !== '"' && marker !== "'") {
1101
+ throw new Error(
1102
+ "Cannot serialize title with `" + marker + "` for `options.quote`, expected `\"`, or `'`"
1103
+ );
1104
+ }
1105
+ return marker;
1106
+ }
1107
+ function definition(node2, _, state, info) {
1108
+ const quote = checkQuote(state);
1109
+ const suffix = quote === '"' ? "Quote" : "Apostrophe";
1110
+ const exit2 = state.enter("definition");
1111
+ let subexit = state.enter("label");
1112
+ const tracker = state.createTracker(info);
1113
+ let value = tracker.move("[");
1114
+ value += tracker.move(
1115
+ state.safe(state.associationId(node2), __spreadValues({
1116
+ before: value,
1117
+ after: "]"
1118
+ }, tracker.current()))
1119
+ );
1120
+ value += tracker.move("]: ");
1121
+ subexit();
1122
+ if (
1123
+ // If there’s no url, or…
1124
+ !node2.url || // If there are control characters or whitespace.
1125
+ /[\0- \u007F]/.test(node2.url)
1126
+ ) {
1127
+ subexit = state.enter("destinationLiteral");
1128
+ value += tracker.move("<");
1129
+ value += tracker.move(
1130
+ state.safe(node2.url, __spreadValues({ before: value, after: ">" }, tracker.current()))
1131
+ );
1132
+ value += tracker.move(">");
1133
+ } else {
1134
+ subexit = state.enter("destinationRaw");
1135
+ value += tracker.move(
1136
+ state.safe(node2.url, __spreadValues({
1137
+ before: value,
1138
+ after: node2.title ? " " : "\n"
1139
+ }, tracker.current()))
1140
+ );
1141
+ }
1142
+ subexit();
1143
+ if (node2.title) {
1144
+ subexit = state.enter("title".concat(suffix));
1145
+ value += tracker.move(" " + quote);
1146
+ value += tracker.move(
1147
+ state.safe(node2.title, __spreadValues({
1148
+ before: value,
1149
+ after: quote
1150
+ }, tracker.current()))
1151
+ );
1152
+ value += tracker.move(quote);
1153
+ subexit();
1154
+ }
1155
+ exit2();
1156
+ return value;
1157
+ }
1158
+ function checkEmphasis(state) {
1159
+ const marker = state.options.emphasis || "*";
1160
+ if (marker !== "*" && marker !== "_") {
1161
+ throw new Error(
1162
+ "Cannot serialize emphasis with `" + marker + "` for `options.emphasis`, expected `*`, or `_`"
1163
+ );
1164
+ }
1165
+ return marker;
1166
+ }
1167
+ emphasis.peek = emphasisPeek;
1168
+ function emphasis(node2, _, state, info) {
1169
+ const marker = checkEmphasis(state);
1170
+ const exit2 = state.enter("emphasis");
1171
+ const tracker = state.createTracker(info);
1172
+ let value = tracker.move(marker);
1173
+ value += tracker.move(
1174
+ state.containerPhrasing(node2, __spreadValues({
1175
+ before: value,
1176
+ after: marker
1177
+ }, tracker.current()))
1178
+ );
1179
+ value += tracker.move(marker);
1180
+ exit2();
1181
+ return value;
1182
+ }
1183
+ function emphasisPeek(_, _1, state) {
1184
+ return state.options.emphasis || "*";
1185
+ }
1186
+ const emptyOptions$1 = {};
1187
+ function toString(value, options) {
1188
+ const settings = emptyOptions$1;
1189
+ const includeImageAlt = typeof settings.includeImageAlt === "boolean" ? settings.includeImageAlt : true;
1190
+ const includeHtml = typeof settings.includeHtml === "boolean" ? settings.includeHtml : true;
1191
+ return one(value, includeImageAlt, includeHtml);
1192
+ }
1193
+ function one(value, includeImageAlt, includeHtml) {
1194
+ if (node(value)) {
1195
+ if ("value" in value) {
1196
+ return value.type === "html" && !includeHtml ? "" : value.value;
1197
+ }
1198
+ if (includeImageAlt && "alt" in value && value.alt) {
1199
+ return value.alt;
1200
+ }
1201
+ if ("children" in value) {
1202
+ return all(value.children, includeImageAlt, includeHtml);
1203
+ }
1204
+ }
1205
+ if (Array.isArray(value)) {
1206
+ return all(value, includeImageAlt, includeHtml);
1207
+ }
1208
+ return "";
1209
+ }
1210
+ function all(values, includeImageAlt, includeHtml) {
1211
+ const result = [];
1212
+ let index = -1;
1213
+ while (++index < values.length) {
1214
+ result[index] = one(values[index], includeImageAlt, includeHtml);
1215
+ }
1216
+ return result.join("");
1217
+ }
1218
+ function node(value) {
1219
+ return Boolean(value && typeof value === "object");
1220
+ }
1221
+ function formatHeadingAsSetext(node2, state) {
1222
+ let literalWithBreak = false;
1223
+ unistUtilVisit.visit(node2, function(node3) {
1224
+ if ("value" in node3 && /\r?\n|\r/.test(node3.value) || node3.type === "break") {
1225
+ literalWithBreak = true;
1226
+ return unistUtilVisit.EXIT;
1227
+ }
1228
+ });
1229
+ return Boolean(
1230
+ (!node2.depth || node2.depth < 3) && toString(node2) && (state.options.setext || literalWithBreak)
1231
+ );
1232
+ }
1233
+ function heading(node2, _, state, info) {
1234
+ const rank = Math.max(Math.min(6, node2.depth || 1), 1);
1235
+ const tracker = state.createTracker(info);
1236
+ if (formatHeadingAsSetext(node2, state)) {
1237
+ const exit3 = state.enter("headingSetext");
1238
+ const subexit2 = state.enter("phrasing");
1239
+ const value2 = state.containerPhrasing(node2, __spreadProps(__spreadValues({}, tracker.current()), {
1240
+ before: "\n",
1241
+ after: "\n"
1242
+ }));
1243
+ subexit2();
1244
+ exit3();
1245
+ return value2 + "\n" + (rank === 1 ? "=" : "-").repeat(
1246
+ // The whole size…
1247
+ value2.length - // Minus the position of the character after the last EOL (or
1248
+ // 0 if there is none)…
1249
+ (Math.max(value2.lastIndexOf("\r"), value2.lastIndexOf("\n")) + 1)
1250
+ );
1251
+ }
1252
+ const sequence = "#".repeat(rank);
1253
+ const exit2 = state.enter("headingAtx");
1254
+ const subexit = state.enter("phrasing");
1255
+ tracker.move(sequence + " ");
1256
+ let value = state.containerPhrasing(node2, __spreadValues({
1257
+ before: "# ",
1258
+ after: "\n"
1259
+ }, tracker.current()));
1260
+ if (/^[\t ]/.test(value)) {
1261
+ value = "&#x" + value.charCodeAt(0).toString(16).toUpperCase() + ";" + value.slice(1);
1262
+ }
1263
+ value = value ? sequence + " " + value : sequence;
1264
+ if (state.options.closeAtx) {
1265
+ value += " " + sequence;
1266
+ }
1267
+ subexit();
1268
+ exit2();
1269
+ return value;
1270
+ }
1271
+ html.peek = htmlPeek;
1272
+ function html(node2) {
1273
+ return node2.value || "";
1274
+ }
1275
+ function htmlPeek() {
1276
+ return "<";
1277
+ }
1278
+ image.peek = imagePeek;
1279
+ function image(node2, _, state, info) {
1280
+ const quote = checkQuote(state);
1281
+ const suffix = quote === '"' ? "Quote" : "Apostrophe";
1282
+ const exit2 = state.enter("image");
1283
+ let subexit = state.enter("label");
1284
+ const tracker = state.createTracker(info);
1285
+ let value = tracker.move("![");
1286
+ value += tracker.move(
1287
+ state.safe(node2.alt, __spreadValues({ before: value, after: "]" }, tracker.current()))
1288
+ );
1289
+ value += tracker.move("](");
1290
+ subexit();
1291
+ if (
1292
+ // If there’s no url but there is a title…
1293
+ !node2.url && node2.title || // If there are control characters or whitespace.
1294
+ /[\0- \u007F]/.test(node2.url)
1295
+ ) {
1296
+ subexit = state.enter("destinationLiteral");
1297
+ value += tracker.move("<");
1298
+ value += tracker.move(
1299
+ state.safe(node2.url, __spreadValues({ before: value, after: ">" }, tracker.current()))
1300
+ );
1301
+ value += tracker.move(">");
1302
+ } else {
1303
+ subexit = state.enter("destinationRaw");
1304
+ value += tracker.move(
1305
+ state.safe(node2.url, __spreadValues({
1306
+ before: value,
1307
+ after: node2.title ? " " : ")"
1308
+ }, tracker.current()))
1309
+ );
1310
+ }
1311
+ subexit();
1312
+ if (node2.title) {
1313
+ subexit = state.enter("title".concat(suffix));
1314
+ value += tracker.move(" " + quote);
1315
+ value += tracker.move(
1316
+ state.safe(node2.title, __spreadValues({
1317
+ before: value,
1318
+ after: quote
1319
+ }, tracker.current()))
1320
+ );
1321
+ value += tracker.move(quote);
1322
+ subexit();
1323
+ }
1324
+ value += tracker.move(")");
1325
+ exit2();
1326
+ return value;
1327
+ }
1328
+ function imagePeek() {
1329
+ return "!";
1330
+ }
1331
+ imageReference.peek = imageReferencePeek;
1332
+ function imageReference(node2, _, state, info) {
1333
+ const type = node2.referenceType;
1334
+ const exit2 = state.enter("imageReference");
1335
+ let subexit = state.enter("label");
1336
+ const tracker = state.createTracker(info);
1337
+ let value = tracker.move("![");
1338
+ const alt = state.safe(node2.alt, __spreadValues({
1339
+ before: value,
1340
+ after: "]"
1341
+ }, tracker.current()));
1342
+ value += tracker.move(alt + "][");
1343
+ subexit();
1344
+ const stack = state.stack;
1345
+ state.stack = [];
1346
+ subexit = state.enter("reference");
1347
+ const reference = state.safe(state.associationId(node2), __spreadValues({
1348
+ before: value,
1349
+ after: "]"
1350
+ }, tracker.current()));
1351
+ subexit();
1352
+ state.stack = stack;
1353
+ exit2();
1354
+ if (type === "full" || !alt || alt !== reference) {
1355
+ value += tracker.move(reference + "]");
1356
+ } else if (type === "shortcut") {
1357
+ value = value.slice(0, -1);
1358
+ } else {
1359
+ value += tracker.move("]");
1360
+ }
1361
+ return value;
1362
+ }
1363
+ function imageReferencePeek() {
1364
+ return "!";
1365
+ }
1366
+ inlineCode.peek = inlineCodePeek;
1367
+ function inlineCode(node2, _, state) {
1368
+ let value = node2.value || "";
1369
+ let sequence = "`";
1370
+ let index = -1;
1371
+ while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) {
1372
+ sequence += "`";
1373
+ }
1374
+ if (/[^ \r\n]/.test(value) && (/^[ \r\n]/.test(value) && /[ \r\n]$/.test(value) || /^`|`$/.test(value))) {
1375
+ value = " " + value + " ";
1376
+ }
1377
+ while (++index < state.unsafe.length) {
1378
+ const pattern = state.unsafe[index];
1379
+ const expression = state.compilePattern(pattern);
1380
+ let match;
1381
+ if (!pattern.atBreak) continue;
1382
+ while (match = expression.exec(value)) {
1383
+ let position = match.index;
1384
+ if (value.charCodeAt(position) === 10 && value.charCodeAt(position - 1) === 13) {
1385
+ position--;
1386
+ }
1387
+ value = value.slice(0, position) + " " + value.slice(match.index + 1);
1388
+ }
1389
+ }
1390
+ return sequence + value + sequence;
1391
+ }
1392
+ function inlineCodePeek() {
1393
+ return "`";
1394
+ }
1395
+ function formatLinkAsAutolink(node2, state) {
1396
+ const raw = toString(node2);
1397
+ return Boolean(
1398
+ !state.options.resourceLink && // If there’s a url…
1399
+ node2.url && // And there’s a no title…
1400
+ !node2.title && // And the content of `node` is a single text node…
1401
+ node2.children && node2.children.length === 1 && node2.children[0].type === "text" && // And if the url is the same as the content…
1402
+ (raw === node2.url || "mailto:" + raw === node2.url) && // And that starts w/ a protocol…
1403
+ /^[a-z][a-z+.-]+:/i.test(node2.url) && // And that doesn’t contain ASCII control codes (character escapes and
1404
+ // references don’t work), space, or angle brackets…
1405
+ !/[\0- <>\u007F]/.test(node2.url)
1406
+ );
1407
+ }
1408
+ link.peek = linkPeek;
1409
+ function link(node2, _, state, info) {
1410
+ const quote = checkQuote(state);
1411
+ const suffix = quote === '"' ? "Quote" : "Apostrophe";
1412
+ const tracker = state.createTracker(info);
1413
+ let exit2;
1414
+ let subexit;
1415
+ if (formatLinkAsAutolink(node2, state)) {
1416
+ const stack = state.stack;
1417
+ state.stack = [];
1418
+ exit2 = state.enter("autolink");
1419
+ let value2 = tracker.move("<");
1420
+ value2 += tracker.move(
1421
+ state.containerPhrasing(node2, __spreadValues({
1422
+ before: value2,
1423
+ after: ">"
1424
+ }, tracker.current()))
1425
+ );
1426
+ value2 += tracker.move(">");
1427
+ exit2();
1428
+ state.stack = stack;
1429
+ return value2;
1430
+ }
1431
+ exit2 = state.enter("link");
1432
+ subexit = state.enter("label");
1433
+ let value = tracker.move("[");
1434
+ value += tracker.move(
1435
+ state.containerPhrasing(node2, __spreadValues({
1436
+ before: value,
1437
+ after: "]("
1438
+ }, tracker.current()))
1439
+ );
1440
+ value += tracker.move("](");
1441
+ subexit();
1442
+ if (
1443
+ // If there’s no url but there is a title…
1444
+ !node2.url && node2.title || // If there are control characters or whitespace.
1445
+ /[\0- \u007F]/.test(node2.url)
1446
+ ) {
1447
+ subexit = state.enter("destinationLiteral");
1448
+ value += tracker.move("<");
1449
+ value += tracker.move(
1450
+ state.safe(node2.url, __spreadValues({ before: value, after: ">" }, tracker.current()))
1451
+ );
1452
+ value += tracker.move(">");
1453
+ } else {
1454
+ subexit = state.enter("destinationRaw");
1455
+ value += tracker.move(
1456
+ state.safe(node2.url, __spreadValues({
1457
+ before: value,
1458
+ after: node2.title ? " " : ")"
1459
+ }, tracker.current()))
1460
+ );
1461
+ }
1462
+ subexit();
1463
+ if (node2.title) {
1464
+ subexit = state.enter("title".concat(suffix));
1465
+ value += tracker.move(" " + quote);
1466
+ value += tracker.move(
1467
+ state.safe(node2.title, __spreadValues({
1468
+ before: value,
1469
+ after: quote
1470
+ }, tracker.current()))
1471
+ );
1472
+ value += tracker.move(quote);
1473
+ subexit();
1474
+ }
1475
+ value += tracker.move(")");
1476
+ exit2();
1477
+ return value;
1478
+ }
1479
+ function linkPeek(node2, _, state) {
1480
+ return formatLinkAsAutolink(node2, state) ? "<" : "[";
1481
+ }
1482
+ linkReference.peek = linkReferencePeek;
1483
+ function linkReference(node2, _, state, info) {
1484
+ const type = node2.referenceType;
1485
+ const exit2 = state.enter("linkReference");
1486
+ let subexit = state.enter("label");
1487
+ const tracker = state.createTracker(info);
1488
+ let value = tracker.move("[");
1489
+ const text2 = state.containerPhrasing(node2, __spreadValues({
1490
+ before: value,
1491
+ after: "]"
1492
+ }, tracker.current()));
1493
+ value += tracker.move(text2 + "][");
1494
+ subexit();
1495
+ const stack = state.stack;
1496
+ state.stack = [];
1497
+ subexit = state.enter("reference");
1498
+ const reference = state.safe(state.associationId(node2), __spreadValues({
1499
+ before: value,
1500
+ after: "]"
1501
+ }, tracker.current()));
1502
+ subexit();
1503
+ state.stack = stack;
1504
+ exit2();
1505
+ if (type === "full" || !text2 || text2 !== reference) {
1506
+ value += tracker.move(reference + "]");
1507
+ } else if (type === "shortcut") {
1508
+ value = value.slice(0, -1);
1509
+ } else {
1510
+ value += tracker.move("]");
1511
+ }
1512
+ return value;
1513
+ }
1514
+ function linkReferencePeek() {
1515
+ return "[";
1516
+ }
1517
+ function checkBullet(state) {
1518
+ const marker = state.options.bullet || "*";
1519
+ if (marker !== "*" && marker !== "+" && marker !== "-") {
1520
+ throw new Error(
1521
+ "Cannot serialize items with `" + marker + "` for `options.bullet`, expected `*`, `+`, or `-`"
1522
+ );
1523
+ }
1524
+ return marker;
1525
+ }
1526
+ function checkBulletOther(state) {
1527
+ const bullet = checkBullet(state);
1528
+ const bulletOther = state.options.bulletOther;
1529
+ if (!bulletOther) {
1530
+ return bullet === "*" ? "-" : "*";
1531
+ }
1532
+ if (bulletOther !== "*" && bulletOther !== "+" && bulletOther !== "-") {
1533
+ throw new Error(
1534
+ "Cannot serialize items with `" + bulletOther + "` for `options.bulletOther`, expected `*`, `+`, or `-`"
1535
+ );
1536
+ }
1537
+ if (bulletOther === bullet) {
1538
+ throw new Error(
1539
+ "Expected `bullet` (`" + bullet + "`) and `bulletOther` (`" + bulletOther + "`) to be different"
1540
+ );
1541
+ }
1542
+ return bulletOther;
1543
+ }
1544
+ function checkBulletOrdered(state) {
1545
+ const marker = state.options.bulletOrdered || ".";
1546
+ if (marker !== "." && marker !== ")") {
1547
+ throw new Error(
1548
+ "Cannot serialize items with `" + marker + "` for `options.bulletOrdered`, expected `.` or `)`"
1549
+ );
1550
+ }
1551
+ return marker;
1552
+ }
1553
+ function checkRule(state) {
1554
+ const marker = state.options.rule || "*";
1555
+ if (marker !== "*" && marker !== "-" && marker !== "_") {
1556
+ throw new Error(
1557
+ "Cannot serialize rules with `" + marker + "` for `options.rule`, expected `*`, `-`, or `_`"
1558
+ );
1559
+ }
1560
+ return marker;
1561
+ }
1562
+ function list(node2, parent, state, info) {
1563
+ const exit2 = state.enter("list");
1564
+ const bulletCurrent = state.bulletCurrent;
1565
+ let bullet = node2.ordered ? checkBulletOrdered(state) : checkBullet(state);
1566
+ const bulletOther = node2.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1567
+ let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
1568
+ if (!node2.ordered) {
1569
+ const firstListItem = node2.children ? node2.children[0] : void 0;
1570
+ if (
1571
+ // Bullet could be used as a thematic break marker:
1572
+ (bullet === "*" || bullet === "-") && // Empty first list item:
1573
+ firstListItem && (!firstListItem.children || !firstListItem.children[0]) && // Directly in two other list items:
1574
+ state.stack[state.stack.length - 1] === "list" && state.stack[state.stack.length - 2] === "listItem" && state.stack[state.stack.length - 3] === "list" && state.stack[state.stack.length - 4] === "listItem" && // That are each the first child.
1575
+ state.indexStack[state.indexStack.length - 1] === 0 && state.indexStack[state.indexStack.length - 2] === 0 && state.indexStack[state.indexStack.length - 3] === 0
1576
+ ) {
1577
+ useDifferentMarker = true;
1578
+ }
1579
+ if (checkRule(state) === bullet && firstListItem) {
1580
+ let index = -1;
1581
+ while (++index < node2.children.length) {
1582
+ const item = node2.children[index];
1583
+ if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
1584
+ useDifferentMarker = true;
1585
+ break;
1586
+ }
1587
+ }
1588
+ }
1589
+ }
1590
+ if (useDifferentMarker) {
1591
+ bullet = bulletOther;
1592
+ }
1593
+ state.bulletCurrent = bullet;
1594
+ const value = state.containerFlow(node2, info);
1595
+ state.bulletLastUsed = bullet;
1596
+ state.bulletCurrent = bulletCurrent;
1597
+ exit2();
1598
+ return value;
1599
+ }
1600
+ function checkListItemIndent(state) {
1601
+ const style = state.options.listItemIndent || "one";
1602
+ if (style !== "tab" && style !== "one" && style !== "mixed") {
1603
+ throw new Error(
1604
+ "Cannot serialize items with `" + style + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`"
1605
+ );
1606
+ }
1607
+ return style;
1608
+ }
1609
+ function listItem(node2, parent, state, info) {
1610
+ const listItemIndent = checkListItemIndent(state);
1611
+ let bullet = state.bulletCurrent || checkBullet(state);
1612
+ if (parent && parent.type === "list" && parent.ordered) {
1613
+ bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node2)) + bullet;
1614
+ }
1615
+ let size = bullet.length + 1;
1616
+ if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node2.spread)) {
1617
+ size = Math.ceil(size / 4) * 4;
1618
+ }
1619
+ const tracker = state.createTracker(info);
1620
+ tracker.move(bullet + " ".repeat(size - bullet.length));
1621
+ tracker.shift(size);
1622
+ const exit2 = state.enter("listItem");
1623
+ const value = state.indentLines(
1624
+ state.containerFlow(node2, tracker.current()),
1625
+ map2
1626
+ );
1627
+ exit2();
1628
+ return value;
1629
+ function map2(line, index, blank) {
1630
+ if (index) {
1631
+ return (blank ? "" : " ".repeat(size)) + line;
1632
+ }
1633
+ return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
1634
+ }
1635
+ }
1636
+ function paragraph(node2, _, state, info) {
1637
+ const exit2 = state.enter("paragraph");
1638
+ const subexit = state.enter("phrasing");
1639
+ const value = state.containerPhrasing(node2, info);
1640
+ subexit();
1641
+ exit2();
1642
+ return value;
1643
+ }
1644
+ const phrasing = (
1645
+ /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
1646
+ convert([
1647
+ "break",
1648
+ "delete",
1649
+ "emphasis",
1650
+ // To do: next major: removed since footnotes were added to GFM.
1651
+ "footnote",
1652
+ "footnoteReference",
1653
+ "image",
1654
+ "imageReference",
1655
+ "inlineCode",
1656
+ // Enabled by `mdast-util-math`:
1657
+ "inlineMath",
1658
+ "link",
1659
+ "linkReference",
1660
+ // Enabled by `mdast-util-mdx`:
1661
+ "mdxJsxTextElement",
1662
+ // Enabled by `mdast-util-mdx`:
1663
+ "mdxTextExpression",
1664
+ "strong",
1665
+ "text",
1666
+ // Enabled by `mdast-util-directive`:
1667
+ "textDirective"
1668
+ ])
1669
+ );
1670
+ function root(node2, _, state, info) {
1671
+ const hasPhrasing = node2.children.some(function(d) {
1672
+ return phrasing(d);
1673
+ });
1674
+ const fn = hasPhrasing ? state.containerPhrasing : state.containerFlow;
1675
+ return fn.call(state, node2, info);
1676
+ }
1677
+ function checkStrong(state) {
1678
+ const marker = state.options.strong || "*";
1679
+ if (marker !== "*" && marker !== "_") {
1680
+ throw new Error(
1681
+ "Cannot serialize strong with `" + marker + "` for `options.strong`, expected `*`, or `_`"
1682
+ );
1683
+ }
1684
+ return marker;
1685
+ }
1686
+ strong.peek = strongPeek;
1687
+ function strong(node2, _, state, info) {
1688
+ const marker = checkStrong(state);
1689
+ const exit2 = state.enter("strong");
1690
+ const tracker = state.createTracker(info);
1691
+ let value = tracker.move(marker + marker);
1692
+ value += tracker.move(
1693
+ state.containerPhrasing(node2, __spreadValues({
1694
+ before: value,
1695
+ after: marker
1696
+ }, tracker.current()))
1697
+ );
1698
+ value += tracker.move(marker + marker);
1699
+ exit2();
1700
+ return value;
1701
+ }
1702
+ function strongPeek(_, _1, state) {
1703
+ return state.options.strong || "*";
1704
+ }
1705
+ function text$1(node2, _, state, info) {
1706
+ return state.safe(node2.value, info);
1707
+ }
1708
+ function checkRuleRepetition(state) {
1709
+ const repetition = state.options.ruleRepetition || 3;
1710
+ if (repetition < 3) {
1711
+ throw new Error(
1712
+ "Cannot serialize rules with repetition `" + repetition + "` for `options.ruleRepetition`, expected `3` or more"
1713
+ );
1714
+ }
1715
+ return repetition;
1716
+ }
1717
+ function thematicBreak(_, _1, state) {
1718
+ const value = (checkRule(state) + (state.options.ruleSpaces ? " " : "")).repeat(checkRuleRepetition(state));
1719
+ return state.options.ruleSpaces ? value.slice(0, -1) : value;
1720
+ }
1721
+ const handle = {
1722
+ blockquote,
1723
+ break: hardBreak,
1724
+ code: code$1,
1725
+ definition,
1726
+ emphasis,
1727
+ hardBreak,
1728
+ heading,
1729
+ html,
1730
+ image,
1731
+ imageReference,
1732
+ inlineCode,
1733
+ link,
1734
+ linkReference,
1735
+ list,
1736
+ listItem,
1737
+ paragraph,
1738
+ root,
1739
+ strong,
1740
+ text: text$1,
1741
+ thematicBreak
1742
+ };
1743
+ function gfmTableFromMarkdown() {
1744
+ return {
1745
+ enter: {
1746
+ table: enterTable,
1747
+ tableData: enterCell,
1748
+ tableHeader: enterCell,
1749
+ tableRow: enterRow
1750
+ },
1751
+ exit: {
1752
+ codeText: exitCodeText,
1753
+ table: exitTable,
1754
+ tableData: exit,
1755
+ tableHeader: exit,
1756
+ tableRow: exit
1757
+ }
1758
+ };
1759
+ }
1760
+ function enterTable(token) {
1761
+ const align = token._align;
1762
+ this.enter(
1763
+ {
1764
+ type: "table",
1765
+ align: align.map(function(d) {
1766
+ return d === "none" ? null : d;
1767
+ }),
1768
+ children: []
1769
+ },
1770
+ token
1771
+ );
1772
+ this.data.inTable = true;
1773
+ }
1774
+ function exitTable(token) {
1775
+ this.exit(token);
1776
+ this.data.inTable = void 0;
1777
+ }
1778
+ function enterRow(token) {
1779
+ this.enter({ type: "tableRow", children: [] }, token);
1780
+ }
1781
+ function exit(token) {
1782
+ this.exit(token);
1783
+ }
1784
+ function enterCell(token) {
1785
+ this.enter({ type: "tableCell", children: [] }, token);
1786
+ }
1787
+ function exitCodeText(token) {
1788
+ let value = this.resume();
1789
+ if (this.data.inTable) {
1790
+ value = value.replace(/\\([\\|])/g, replace);
1791
+ }
1792
+ const node2 = this.stack[this.stack.length - 1];
1793
+ ok$1(node2.type === "inlineCode");
1794
+ node2.value = value;
1795
+ this.exit(token);
1796
+ }
1797
+ function replace($0, $1) {
1798
+ return $1 === "|" ? $1 : $0;
1799
+ }
1800
+ function gfmTableToMarkdown(options) {
1801
+ const settings = options || {};
1802
+ const padding = settings.tableCellPadding;
1803
+ const alignDelimiters = settings.tablePipeAlign;
1804
+ const stringLength = settings.stringLength;
1805
+ const around = padding ? " " : "|";
1806
+ return {
1807
+ unsafe: [
1808
+ { character: "\r", inConstruct: "tableCell" },
1809
+ { character: "\n", inConstruct: "tableCell" },
1810
+ // A pipe, when followed by a tab or space (padding), or a dash or colon
1811
+ // (unpadded delimiter row), could result in a table.
1812
+ { atBreak: true, character: "|", after: "[ :-]" },
1813
+ // A pipe in a cell must be encoded.
1814
+ { character: "|", inConstruct: "tableCell" },
1815
+ // A colon must be followed by a dash, in which case it could start a
1816
+ // delimiter row.
1817
+ { atBreak: true, character: ":", after: "-" },
1818
+ // A delimiter row can also start with a dash, when followed by more
1819
+ // dashes, a colon, or a pipe.
1820
+ // This is a stricter version than the built in check for lists, thematic
1821
+ // breaks, and setex heading underlines though:
1822
+ // <https://github.com/syntax-tree/mdast-util-to-markdown/blob/51a2038/lib/unsafe.js#L57>
1823
+ { atBreak: true, character: "-", after: "[:|-]" }
1824
+ ],
1825
+ handlers: {
1826
+ inlineCode: inlineCodeWithTable,
1827
+ table: handleTable,
1828
+ tableCell: handleTableCell,
1829
+ tableRow: handleTableRow
1830
+ }
1831
+ };
1832
+ function handleTable(node2, _, state, info) {
1833
+ return serializeData(handleTableAsData(node2, state, info), node2.align);
1834
+ }
1835
+ function handleTableRow(node2, _, state, info) {
1836
+ const row = handleTableRowAsData(node2, state, info);
1837
+ const value = serializeData([row]);
1838
+ return value.slice(0, value.indexOf("\n"));
1839
+ }
1840
+ function handleTableCell(node2, _, state, info) {
1841
+ const exit2 = state.enter("tableCell");
1842
+ const subexit = state.enter("phrasing");
1843
+ const value = state.containerPhrasing(node2, __spreadProps(__spreadValues({}, info), {
1844
+ before: around,
1845
+ after: around
1846
+ }));
1847
+ subexit();
1848
+ exit2();
1849
+ return value;
1850
+ }
1851
+ function serializeData(matrix, align) {
1852
+ return markdownTable(matrix, {
1853
+ align,
1854
+ // @ts-expect-error: `markdown-table` types should support `null`.
1855
+ alignDelimiters,
1856
+ // @ts-expect-error: `markdown-table` types should support `null`.
1857
+ padding,
1858
+ // @ts-expect-error: `markdown-table` types should support `null`.
1859
+ stringLength
1860
+ });
1861
+ }
1862
+ function handleTableAsData(node2, state, info) {
1863
+ const children = node2.children;
1864
+ let index = -1;
1865
+ const result = [];
1866
+ const subexit = state.enter("table");
1867
+ while (++index < children.length) {
1868
+ result[index] = handleTableRowAsData(children[index], state, info);
1869
+ }
1870
+ subexit();
1871
+ return result;
1872
+ }
1873
+ function handleTableRowAsData(node2, state, info) {
1874
+ const children = node2.children;
1875
+ let index = -1;
1876
+ const result = [];
1877
+ const subexit = state.enter("tableRow");
1878
+ while (++index < children.length) {
1879
+ result[index] = handleTableCell(children[index], node2, state, info);
1880
+ }
1881
+ subexit();
1882
+ return result;
1883
+ }
1884
+ function inlineCodeWithTable(node2, parent, state) {
1885
+ let value = handle.inlineCode(node2, parent, state);
1886
+ if (state.stack.includes("tableCell")) {
1887
+ value = value.replace(/\|/g, "\\$&");
1888
+ }
1889
+ return value;
1890
+ }
1891
+ }
1892
+ function gfmTaskListItemFromMarkdown() {
1893
+ return {
1894
+ exit: {
1895
+ taskListCheckValueChecked: exitCheck,
1896
+ taskListCheckValueUnchecked: exitCheck,
1897
+ paragraph: exitParagraphWithTaskListItem
1898
+ }
1899
+ };
1900
+ }
1901
+ function gfmTaskListItemToMarkdown() {
1902
+ return {
1903
+ unsafe: [{ atBreak: true, character: "-", after: "[:|-]" }],
1904
+ handlers: { listItem: listItemWithTaskListItem }
1905
+ };
1906
+ }
1907
+ function exitCheck(token) {
1908
+ const node2 = this.stack[this.stack.length - 2];
1909
+ ok$1(node2.type === "listItem");
1910
+ node2.checked = token.type === "taskListCheckValueChecked";
1911
+ }
1912
+ function exitParagraphWithTaskListItem(token) {
1913
+ const parent = this.stack[this.stack.length - 2];
1914
+ if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
1915
+ const node2 = this.stack[this.stack.length - 1];
1916
+ ok$1(node2.type === "paragraph");
1917
+ const head = node2.children[0];
1918
+ if (head && head.type === "text") {
1919
+ const siblings = parent.children;
1920
+ let index = -1;
1921
+ let firstParaghraph;
1922
+ while (++index < siblings.length) {
1923
+ const sibling = siblings[index];
1924
+ if (sibling.type === "paragraph") {
1925
+ firstParaghraph = sibling;
1926
+ break;
1927
+ }
1928
+ }
1929
+ if (firstParaghraph === node2) {
1930
+ head.value = head.value.slice(1);
1931
+ if (head.value.length === 0) {
1932
+ node2.children.shift();
1933
+ } else if (node2.position && head.position && typeof head.position.start.offset === "number") {
1934
+ head.position.start.column++;
1935
+ head.position.start.offset++;
1936
+ node2.position.start = Object.assign({}, head.position.start);
1937
+ }
1938
+ }
1939
+ }
1940
+ }
1941
+ this.exit(token);
1942
+ }
1943
+ function listItemWithTaskListItem(node2, parent, state, info) {
1944
+ const head = node2.children[0];
1945
+ const checkable = typeof node2.checked === "boolean" && head && head.type === "paragraph";
1946
+ const checkbox = "[" + (node2.checked ? "x" : " ") + "] ";
1947
+ const tracker = state.createTracker(info);
1948
+ if (checkable) {
1949
+ tracker.move(checkbox);
1950
+ }
1951
+ let value = handle.listItem(node2, parent, state, __spreadValues(__spreadValues({}, info), tracker.current()));
1952
+ if (checkable) {
1953
+ value = value.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, check);
1954
+ }
1955
+ return value;
1956
+ function check($0) {
1957
+ return $0 + checkbox;
1958
+ }
1959
+ }
1960
+ function gfmFromMarkdown() {
1961
+ return [
1962
+ gfmAutolinkLiteralFromMarkdown(),
1963
+ gfmFootnoteFromMarkdown(),
1964
+ gfmStrikethroughFromMarkdown(),
1965
+ gfmTableFromMarkdown(),
1966
+ gfmTaskListItemFromMarkdown()
1967
+ ];
1968
+ }
1969
+ function gfmToMarkdown(options) {
1970
+ return {
1971
+ extensions: [
1972
+ gfmAutolinkLiteralToMarkdown(),
1973
+ gfmFootnoteToMarkdown(),
1974
+ gfmStrikethroughToMarkdown(),
1975
+ gfmTableToMarkdown(options),
1976
+ gfmTaskListItemToMarkdown()
1977
+ ]
1978
+ };
1979
+ }
1980
+ function splice(list2, start, remove, items) {
1981
+ const end = list2.length;
1982
+ let chunkStart = 0;
1983
+ let parameters;
1984
+ if (start < 0) {
1985
+ start = -start > end ? 0 : end + start;
1986
+ } else {
1987
+ start = start > end ? end : start;
1988
+ }
1989
+ remove = remove > 0 ? remove : 0;
1990
+ if (items.length < 1e4) {
1991
+ parameters = Array.from(items);
1992
+ parameters.unshift(start, remove);
1993
+ list2.splice(...parameters);
1994
+ } else {
1995
+ if (remove) list2.splice(start, remove);
1996
+ while (chunkStart < items.length) {
1997
+ parameters = items.slice(chunkStart, chunkStart + 1e4);
1998
+ parameters.unshift(start, 0);
1999
+ list2.splice(...parameters);
2000
+ chunkStart += 1e4;
2001
+ start += 1e4;
2002
+ }
2003
+ }
2004
+ }
2005
+ const hasOwnProperty = {}.hasOwnProperty;
2006
+ function combineExtensions(extensions) {
2007
+ const all2 = {};
2008
+ let index = -1;
2009
+ while (++index < extensions.length) {
2010
+ syntaxExtension(all2, extensions[index]);
2011
+ }
2012
+ return all2;
2013
+ }
2014
+ function syntaxExtension(all2, extension) {
2015
+ let hook;
2016
+ for (hook in extension) {
2017
+ const maybe = hasOwnProperty.call(all2, hook) ? all2[hook] : void 0;
2018
+ const left = maybe || (all2[hook] = {});
2019
+ const right = extension[hook];
2020
+ let code2;
2021
+ if (right) {
2022
+ for (code2 in right) {
2023
+ if (!hasOwnProperty.call(left, code2)) left[code2] = [];
2024
+ const value = right[code2];
2025
+ constructs(
2026
+ // @ts-expect-error Looks like a list.
2027
+ left[code2],
2028
+ Array.isArray(value) ? value : value ? [value] : []
2029
+ );
2030
+ }
2031
+ }
2032
+ }
2033
+ }
2034
+ function constructs(existing, list2) {
2035
+ let index = -1;
2036
+ const before = [];
2037
+ while (++index < list2.length) {
2038
+ (list2[index].add === "after" ? existing : before).push(list2[index]);
2039
+ }
2040
+ splice(existing, 0, 0, before);
2041
+ }
2042
+ const wwwPrefix = {
2043
+ tokenize: tokenizeWwwPrefix,
2044
+ partial: true
2045
+ };
2046
+ const domain = {
2047
+ tokenize: tokenizeDomain,
2048
+ partial: true
2049
+ };
2050
+ const path = {
2051
+ tokenize: tokenizePath,
2052
+ partial: true
2053
+ };
2054
+ const trail = {
2055
+ tokenize: tokenizeTrail,
2056
+ partial: true
2057
+ };
2058
+ const emailDomainDotTrail = {
2059
+ tokenize: tokenizeEmailDomainDotTrail,
2060
+ partial: true
2061
+ };
2062
+ const wwwAutolink = {
2063
+ tokenize: tokenizeWwwAutolink,
2064
+ previous: previousWww
2065
+ };
2066
+ const protocolAutolink = {
2067
+ tokenize: tokenizeProtocolAutolink,
2068
+ previous: previousProtocol
2069
+ };
2070
+ const emailAutolink = {
2071
+ tokenize: tokenizeEmailAutolink,
2072
+ previous: previousEmail
2073
+ };
2074
+ const text = {};
2075
+ function gfmAutolinkLiteral() {
2076
+ return {
2077
+ text
2078
+ };
2079
+ }
2080
+ let code = 48;
2081
+ while (code < 123) {
2082
+ text[code] = emailAutolink;
2083
+ code++;
2084
+ if (code === 58) code = 65;
2085
+ else if (code === 91) code = 97;
2086
+ }
2087
+ text[43] = emailAutolink;
2088
+ text[45] = emailAutolink;
2089
+ text[46] = emailAutolink;
2090
+ text[95] = emailAutolink;
2091
+ text[72] = [emailAutolink, protocolAutolink];
2092
+ text[104] = [emailAutolink, protocolAutolink];
2093
+ text[87] = [emailAutolink, wwwAutolink];
2094
+ text[119] = [emailAutolink, wwwAutolink];
2095
+ function tokenizeEmailAutolink(effects, ok2, nok) {
2096
+ const self = this;
2097
+ let dot;
2098
+ let data;
2099
+ return start;
2100
+ function start(code2) {
2101
+ if (!gfmAtext(code2) || !previousEmail.call(self, self.previous) || previousUnbalanced(self.events)) {
2102
+ return nok(code2);
2103
+ }
2104
+ effects.enter("literalAutolink");
2105
+ effects.enter("literalAutolinkEmail");
2106
+ return atext(code2);
2107
+ }
2108
+ function atext(code2) {
2109
+ if (gfmAtext(code2)) {
2110
+ effects.consume(code2);
2111
+ return atext;
2112
+ }
2113
+ if (code2 === 64) {
2114
+ effects.consume(code2);
2115
+ return emailDomain;
2116
+ }
2117
+ return nok(code2);
2118
+ }
2119
+ function emailDomain(code2) {
2120
+ if (code2 === 46) {
2121
+ return effects.check(
2122
+ emailDomainDotTrail,
2123
+ emailDomainAfter,
2124
+ emailDomainDot
2125
+ )(code2);
2126
+ }
2127
+ if (code2 === 45 || code2 === 95 || asciiAlphanumeric(code2)) {
2128
+ data = true;
2129
+ effects.consume(code2);
2130
+ return emailDomain;
2131
+ }
2132
+ return emailDomainAfter(code2);
2133
+ }
2134
+ function emailDomainDot(code2) {
2135
+ effects.consume(code2);
2136
+ dot = true;
2137
+ return emailDomain;
2138
+ }
2139
+ function emailDomainAfter(code2) {
2140
+ if (data && dot && asciiAlpha(self.previous)) {
2141
+ effects.exit("literalAutolinkEmail");
2142
+ effects.exit("literalAutolink");
2143
+ return ok2(code2);
2144
+ }
2145
+ return nok(code2);
2146
+ }
2147
+ }
2148
+ function tokenizeWwwAutolink(effects, ok2, nok) {
2149
+ const self = this;
2150
+ return wwwStart;
2151
+ function wwwStart(code2) {
2152
+ if (code2 !== 87 && code2 !== 119 || !previousWww.call(self, self.previous) || previousUnbalanced(self.events)) {
2153
+ return nok(code2);
2154
+ }
2155
+ effects.enter("literalAutolink");
2156
+ effects.enter("literalAutolinkWww");
2157
+ return effects.check(
2158
+ wwwPrefix,
2159
+ effects.attempt(domain, effects.attempt(path, wwwAfter), nok),
2160
+ nok
2161
+ )(code2);
2162
+ }
2163
+ function wwwAfter(code2) {
2164
+ effects.exit("literalAutolinkWww");
2165
+ effects.exit("literalAutolink");
2166
+ return ok2(code2);
2167
+ }
2168
+ }
2169
+ function tokenizeProtocolAutolink(effects, ok2, nok) {
2170
+ const self = this;
2171
+ let buffer = "";
2172
+ let seen = false;
2173
+ return protocolStart;
2174
+ function protocolStart(code2) {
2175
+ if ((code2 === 72 || code2 === 104) && previousProtocol.call(self, self.previous) && !previousUnbalanced(self.events)) {
2176
+ effects.enter("literalAutolink");
2177
+ effects.enter("literalAutolinkHttp");
2178
+ buffer += String.fromCodePoint(code2);
2179
+ effects.consume(code2);
2180
+ return protocolPrefixInside;
2181
+ }
2182
+ return nok(code2);
2183
+ }
2184
+ function protocolPrefixInside(code2) {
2185
+ if (asciiAlpha(code2) && buffer.length < 5) {
2186
+ buffer += String.fromCodePoint(code2);
2187
+ effects.consume(code2);
2188
+ return protocolPrefixInside;
2189
+ }
2190
+ if (code2 === 58) {
2191
+ const protocol = buffer.toLowerCase();
2192
+ if (protocol === "http" || protocol === "https") {
2193
+ effects.consume(code2);
2194
+ return protocolSlashesInside;
2195
+ }
2196
+ }
2197
+ return nok(code2);
2198
+ }
2199
+ function protocolSlashesInside(code2) {
2200
+ if (code2 === 47) {
2201
+ effects.consume(code2);
2202
+ if (seen) {
2203
+ return afterProtocol;
2204
+ }
2205
+ seen = true;
2206
+ return protocolSlashesInside;
2207
+ }
2208
+ return nok(code2);
2209
+ }
2210
+ function afterProtocol(code2) {
2211
+ return code2 === null || asciiControl(code2) || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2) || unicodePunctuation(code2) ? nok(code2) : effects.attempt(domain, effects.attempt(path, protocolAfter), nok)(code2);
2212
+ }
2213
+ function protocolAfter(code2) {
2214
+ effects.exit("literalAutolinkHttp");
2215
+ effects.exit("literalAutolink");
2216
+ return ok2(code2);
2217
+ }
2218
+ }
2219
+ function tokenizeWwwPrefix(effects, ok2, nok) {
2220
+ let size = 0;
2221
+ return wwwPrefixInside;
2222
+ function wwwPrefixInside(code2) {
2223
+ if ((code2 === 87 || code2 === 119) && size < 3) {
2224
+ size++;
2225
+ effects.consume(code2);
2226
+ return wwwPrefixInside;
2227
+ }
2228
+ if (code2 === 46 && size === 3) {
2229
+ effects.consume(code2);
2230
+ return wwwPrefixAfter;
2231
+ }
2232
+ return nok(code2);
2233
+ }
2234
+ function wwwPrefixAfter(code2) {
2235
+ return code2 === null ? nok(code2) : ok2(code2);
2236
+ }
2237
+ }
2238
+ function tokenizeDomain(effects, ok2, nok) {
2239
+ let underscoreInLastSegment;
2240
+ let underscoreInLastLastSegment;
2241
+ let seen;
2242
+ return domainInside;
2243
+ function domainInside(code2) {
2244
+ if (code2 === 46 || code2 === 95) {
2245
+ return effects.check(trail, domainAfter, domainAtPunctuation)(code2);
2246
+ }
2247
+ if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2) || code2 !== 45 && unicodePunctuation(code2)) {
2248
+ return domainAfter(code2);
2249
+ }
2250
+ seen = true;
2251
+ effects.consume(code2);
2252
+ return domainInside;
2253
+ }
2254
+ function domainAtPunctuation(code2) {
2255
+ if (code2 === 95) {
2256
+ underscoreInLastSegment = true;
2257
+ } else {
2258
+ underscoreInLastLastSegment = underscoreInLastSegment;
2259
+ underscoreInLastSegment = void 0;
2260
+ }
2261
+ effects.consume(code2);
2262
+ return domainInside;
2263
+ }
2264
+ function domainAfter(code2) {
2265
+ if (underscoreInLastLastSegment || underscoreInLastSegment || !seen) {
2266
+ return nok(code2);
2267
+ }
2268
+ return ok2(code2);
2269
+ }
2270
+ }
2271
+ function tokenizePath(effects, ok2) {
2272
+ let sizeOpen = 0;
2273
+ let sizeClose = 0;
2274
+ return pathInside;
2275
+ function pathInside(code2) {
2276
+ if (code2 === 40) {
2277
+ sizeOpen++;
2278
+ effects.consume(code2);
2279
+ return pathInside;
2280
+ }
2281
+ if (code2 === 41 && sizeClose < sizeOpen) {
2282
+ return pathAtPunctuation(code2);
2283
+ }
2284
+ if (code2 === 33 || code2 === 34 || code2 === 38 || code2 === 39 || code2 === 41 || code2 === 42 || code2 === 44 || code2 === 46 || code2 === 58 || code2 === 59 || code2 === 60 || code2 === 63 || code2 === 93 || code2 === 95 || code2 === 126) {
2285
+ return effects.check(trail, ok2, pathAtPunctuation)(code2);
2286
+ }
2287
+ if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
2288
+ return ok2(code2);
2289
+ }
2290
+ effects.consume(code2);
2291
+ return pathInside;
2292
+ }
2293
+ function pathAtPunctuation(code2) {
2294
+ if (code2 === 41) {
2295
+ sizeClose++;
2296
+ }
2297
+ effects.consume(code2);
2298
+ return pathInside;
2299
+ }
2300
+ }
2301
+ function tokenizeTrail(effects, ok2, nok) {
2302
+ return trail2;
2303
+ function trail2(code2) {
2304
+ if (code2 === 33 || code2 === 34 || code2 === 39 || code2 === 41 || code2 === 42 || code2 === 44 || code2 === 46 || code2 === 58 || code2 === 59 || code2 === 63 || code2 === 95 || code2 === 126) {
2305
+ effects.consume(code2);
2306
+ return trail2;
2307
+ }
2308
+ if (code2 === 38) {
2309
+ effects.consume(code2);
2310
+ return trailCharRefStart;
2311
+ }
2312
+ if (code2 === 93) {
2313
+ effects.consume(code2);
2314
+ return trailBracketAfter;
2315
+ }
2316
+ if (
2317
+ // `<` is an end.
2318
+ code2 === 60 || // So is whitespace.
2319
+ code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)
2320
+ ) {
2321
+ return ok2(code2);
2322
+ }
2323
+ return nok(code2);
2324
+ }
2325
+ function trailBracketAfter(code2) {
2326
+ if (code2 === null || code2 === 40 || code2 === 91 || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
2327
+ return ok2(code2);
2328
+ }
2329
+ return trail2(code2);
2330
+ }
2331
+ function trailCharRefStart(code2) {
2332
+ return asciiAlpha(code2) ? trailCharRefInside(code2) : nok(code2);
2333
+ }
2334
+ function trailCharRefInside(code2) {
2335
+ if (code2 === 59) {
2336
+ effects.consume(code2);
2337
+ return trail2;
2338
+ }
2339
+ if (asciiAlpha(code2)) {
2340
+ effects.consume(code2);
2341
+ return trailCharRefInside;
2342
+ }
2343
+ return nok(code2);
2344
+ }
2345
+ }
2346
+ function tokenizeEmailDomainDotTrail(effects, ok2, nok) {
2347
+ return start;
2348
+ function start(code2) {
2349
+ effects.consume(code2);
2350
+ return after;
2351
+ }
2352
+ function after(code2) {
2353
+ return asciiAlphanumeric(code2) ? nok(code2) : ok2(code2);
2354
+ }
2355
+ }
2356
+ function previousWww(code2) {
2357
+ return code2 === null || code2 === 40 || code2 === 42 || code2 === 95 || code2 === 91 || code2 === 93 || code2 === 126 || markdownLineEndingOrSpace(code2);
2358
+ }
2359
+ function previousProtocol(code2) {
2360
+ return !asciiAlpha(code2);
2361
+ }
2362
+ function previousEmail(code2) {
2363
+ return !(code2 === 47 || gfmAtext(code2));
2364
+ }
2365
+ function gfmAtext(code2) {
2366
+ return code2 === 43 || code2 === 45 || code2 === 46 || code2 === 95 || asciiAlphanumeric(code2);
2367
+ }
2368
+ function previousUnbalanced(events) {
2369
+ let index = events.length;
2370
+ let result = false;
2371
+ while (index--) {
2372
+ const token = events[index][1];
2373
+ if ((token.type === "labelLink" || token.type === "labelImage") && !token._balanced) {
2374
+ result = true;
2375
+ break;
2376
+ }
2377
+ if (token._gfmAutolinkLiteralWalkedInto) {
2378
+ result = false;
2379
+ break;
2380
+ }
2381
+ }
2382
+ if (events.length > 0 && !result) {
2383
+ events[events.length - 1][1]._gfmAutolinkLiteralWalkedInto = true;
2384
+ }
2385
+ return result;
2386
+ }
2387
+ function classifyCharacter(code2) {
2388
+ if (code2 === null || markdownLineEndingOrSpace(code2) || unicodeWhitespace(code2)) {
2389
+ return 1;
2390
+ }
2391
+ if (unicodePunctuation(code2)) {
2392
+ return 2;
2393
+ }
2394
+ }
2395
+ function resolveAll(constructs2, events, context) {
2396
+ const called = [];
2397
+ let index = -1;
2398
+ while (++index < constructs2.length) {
2399
+ const resolve = constructs2[index].resolveAll;
2400
+ if (resolve && !called.includes(resolve)) {
2401
+ events = resolve(events, context);
2402
+ called.push(resolve);
2403
+ }
2404
+ }
2405
+ return events;
2406
+ }
2407
+ function factorySpace(effects, ok2, type, max) {
2408
+ const limit = max ? max - 1 : Number.POSITIVE_INFINITY;
2409
+ let size = 0;
2410
+ return start;
2411
+ function start(code2) {
2412
+ if (markdownSpace(code2)) {
2413
+ effects.enter(type);
2414
+ return prefix(code2);
2415
+ }
2416
+ return ok2(code2);
2417
+ }
2418
+ function prefix(code2) {
2419
+ if (markdownSpace(code2) && size++ < limit) {
2420
+ effects.consume(code2);
2421
+ return prefix;
2422
+ }
2423
+ effects.exit(type);
2424
+ return ok2(code2);
2425
+ }
2426
+ }
2427
+ const blankLine = {
2428
+ tokenize: tokenizeBlankLine,
2429
+ partial: true
2430
+ };
2431
+ function tokenizeBlankLine(effects, ok2, nok) {
2432
+ return start;
2433
+ function start(code2) {
2434
+ return markdownSpace(code2) ? factorySpace(effects, after, "linePrefix")(code2) : after(code2);
2435
+ }
2436
+ function after(code2) {
2437
+ return code2 === null || markdownLineEnding(code2) ? ok2(code2) : nok(code2);
2438
+ }
2439
+ }
2440
+ const indent = {
2441
+ tokenize: tokenizeIndent,
2442
+ partial: true
2443
+ };
2444
+ function gfmFootnote() {
2445
+ return {
2446
+ document: {
2447
+ [91]: {
2448
+ tokenize: tokenizeDefinitionStart,
2449
+ continuation: {
2450
+ tokenize: tokenizeDefinitionContinuation
2451
+ },
2452
+ exit: gfmFootnoteDefinitionEnd
2453
+ }
2454
+ },
2455
+ text: {
2456
+ [91]: {
2457
+ tokenize: tokenizeGfmFootnoteCall
2458
+ },
2459
+ [93]: {
2460
+ add: "after",
2461
+ tokenize: tokenizePotentialGfmFootnoteCall,
2462
+ resolveTo: resolveToPotentialGfmFootnoteCall
2463
+ }
2464
+ }
2465
+ };
2466
+ }
2467
+ function tokenizePotentialGfmFootnoteCall(effects, ok2, nok) {
2468
+ const self = this;
2469
+ let index = self.events.length;
2470
+ const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = []);
2471
+ let labelStart;
2472
+ while (index--) {
2473
+ const token = self.events[index][1];
2474
+ if (token.type === "labelImage") {
2475
+ labelStart = token;
2476
+ break;
2477
+ }
2478
+ if (token.type === "gfmFootnoteCall" || token.type === "labelLink" || token.type === "label" || token.type === "image" || token.type === "link") {
2479
+ break;
2480
+ }
2481
+ }
2482
+ return start;
2483
+ function start(code2) {
2484
+ if (!labelStart || !labelStart._balanced) {
2485
+ return nok(code2);
2486
+ }
2487
+ const id = normalizeIdentifier(
2488
+ self.sliceSerialize({
2489
+ start: labelStart.end,
2490
+ end: self.now()
2491
+ })
2492
+ );
2493
+ if (id.codePointAt(0) !== 94 || !defined.includes(id.slice(1))) {
2494
+ return nok(code2);
2495
+ }
2496
+ effects.enter("gfmFootnoteCallLabelMarker");
2497
+ effects.consume(code2);
2498
+ effects.exit("gfmFootnoteCallLabelMarker");
2499
+ return ok2(code2);
2500
+ }
2501
+ }
2502
+ function resolveToPotentialGfmFootnoteCall(events, context) {
2503
+ let index = events.length;
2504
+ while (index--) {
2505
+ if (events[index][1].type === "labelImage" && events[index][0] === "enter") {
2506
+ events[index][1];
2507
+ break;
2508
+ }
2509
+ }
2510
+ events[index + 1][1].type = "data";
2511
+ events[index + 3][1].type = "gfmFootnoteCallLabelMarker";
2512
+ const call = {
2513
+ type: "gfmFootnoteCall",
2514
+ start: Object.assign({}, events[index + 3][1].start),
2515
+ end: Object.assign({}, events[events.length - 1][1].end)
2516
+ };
2517
+ const marker = {
2518
+ type: "gfmFootnoteCallMarker",
2519
+ start: Object.assign({}, events[index + 3][1].end),
2520
+ end: Object.assign({}, events[index + 3][1].end)
2521
+ };
2522
+ marker.end.column++;
2523
+ marker.end.offset++;
2524
+ marker.end._bufferIndex++;
2525
+ const string = {
2526
+ type: "gfmFootnoteCallString",
2527
+ start: Object.assign({}, marker.end),
2528
+ end: Object.assign({}, events[events.length - 1][1].start)
2529
+ };
2530
+ const chunk = {
2531
+ type: "chunkString",
2532
+ contentType: "string",
2533
+ start: Object.assign({}, string.start),
2534
+ end: Object.assign({}, string.end)
2535
+ };
2536
+ const replacement = [
2537
+ // Take the `labelImageMarker` (now `data`, the `!`)
2538
+ events[index + 1],
2539
+ events[index + 2],
2540
+ ["enter", call, context],
2541
+ // The `[`
2542
+ events[index + 3],
2543
+ events[index + 4],
2544
+ // The `^`.
2545
+ ["enter", marker, context],
2546
+ ["exit", marker, context],
2547
+ // Everything in between.
2548
+ ["enter", string, context],
2549
+ ["enter", chunk, context],
2550
+ ["exit", chunk, context],
2551
+ ["exit", string, context],
2552
+ // The ending (`]`, properly parsed and labelled).
2553
+ events[events.length - 2],
2554
+ events[events.length - 1],
2555
+ ["exit", call, context]
2556
+ ];
2557
+ events.splice(index, events.length - index + 1, ...replacement);
2558
+ return events;
2559
+ }
2560
+ function tokenizeGfmFootnoteCall(effects, ok2, nok) {
2561
+ const self = this;
2562
+ const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = []);
2563
+ let size = 0;
2564
+ let data;
2565
+ return start;
2566
+ function start(code2) {
2567
+ effects.enter("gfmFootnoteCall");
2568
+ effects.enter("gfmFootnoteCallLabelMarker");
2569
+ effects.consume(code2);
2570
+ effects.exit("gfmFootnoteCallLabelMarker");
2571
+ return callStart;
2572
+ }
2573
+ function callStart(code2) {
2574
+ if (code2 !== 94) return nok(code2);
2575
+ effects.enter("gfmFootnoteCallMarker");
2576
+ effects.consume(code2);
2577
+ effects.exit("gfmFootnoteCallMarker");
2578
+ effects.enter("gfmFootnoteCallString");
2579
+ effects.enter("chunkString").contentType = "string";
2580
+ return callData;
2581
+ }
2582
+ function callData(code2) {
2583
+ if (
2584
+ // Too long.
2585
+ size > 999 || // Closing brace with nothing.
2586
+ code2 === 93 && !data || // Space or tab is not supported by GFM for some reason.
2587
+ // `\n` and `[` not being supported makes sense.
2588
+ code2 === null || code2 === 91 || markdownLineEndingOrSpace(code2)
2589
+ ) {
2590
+ return nok(code2);
2591
+ }
2592
+ if (code2 === 93) {
2593
+ effects.exit("chunkString");
2594
+ const token = effects.exit("gfmFootnoteCallString");
2595
+ if (!defined.includes(normalizeIdentifier(self.sliceSerialize(token)))) {
2596
+ return nok(code2);
2597
+ }
2598
+ effects.enter("gfmFootnoteCallLabelMarker");
2599
+ effects.consume(code2);
2600
+ effects.exit("gfmFootnoteCallLabelMarker");
2601
+ effects.exit("gfmFootnoteCall");
2602
+ return ok2;
2603
+ }
2604
+ if (!markdownLineEndingOrSpace(code2)) {
2605
+ data = true;
2606
+ }
2607
+ size++;
2608
+ effects.consume(code2);
2609
+ return code2 === 92 ? callEscape : callData;
2610
+ }
2611
+ function callEscape(code2) {
2612
+ if (code2 === 91 || code2 === 92 || code2 === 93) {
2613
+ effects.consume(code2);
2614
+ size++;
2615
+ return callData;
2616
+ }
2617
+ return callData(code2);
2618
+ }
2619
+ }
2620
+ function tokenizeDefinitionStart(effects, ok2, nok) {
2621
+ const self = this;
2622
+ const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = []);
2623
+ let identifier;
2624
+ let size = 0;
2625
+ let data;
2626
+ return start;
2627
+ function start(code2) {
2628
+ effects.enter("gfmFootnoteDefinition")._container = true;
2629
+ effects.enter("gfmFootnoteDefinitionLabel");
2630
+ effects.enter("gfmFootnoteDefinitionLabelMarker");
2631
+ effects.consume(code2);
2632
+ effects.exit("gfmFootnoteDefinitionLabelMarker");
2633
+ return labelAtMarker;
2634
+ }
2635
+ function labelAtMarker(code2) {
2636
+ if (code2 === 94) {
2637
+ effects.enter("gfmFootnoteDefinitionMarker");
2638
+ effects.consume(code2);
2639
+ effects.exit("gfmFootnoteDefinitionMarker");
2640
+ effects.enter("gfmFootnoteDefinitionLabelString");
2641
+ effects.enter("chunkString").contentType = "string";
2642
+ return labelInside;
2643
+ }
2644
+ return nok(code2);
2645
+ }
2646
+ function labelInside(code2) {
2647
+ if (
2648
+ // Too long.
2649
+ size > 999 || // Closing brace with nothing.
2650
+ code2 === 93 && !data || // Space or tab is not supported by GFM for some reason.
2651
+ // `\n` and `[` not being supported makes sense.
2652
+ code2 === null || code2 === 91 || markdownLineEndingOrSpace(code2)
2653
+ ) {
2654
+ return nok(code2);
2655
+ }
2656
+ if (code2 === 93) {
2657
+ effects.exit("chunkString");
2658
+ const token = effects.exit("gfmFootnoteDefinitionLabelString");
2659
+ identifier = normalizeIdentifier(self.sliceSerialize(token));
2660
+ effects.enter("gfmFootnoteDefinitionLabelMarker");
2661
+ effects.consume(code2);
2662
+ effects.exit("gfmFootnoteDefinitionLabelMarker");
2663
+ effects.exit("gfmFootnoteDefinitionLabel");
2664
+ return labelAfter;
2665
+ }
2666
+ if (!markdownLineEndingOrSpace(code2)) {
2667
+ data = true;
2668
+ }
2669
+ size++;
2670
+ effects.consume(code2);
2671
+ return code2 === 92 ? labelEscape : labelInside;
2672
+ }
2673
+ function labelEscape(code2) {
2674
+ if (code2 === 91 || code2 === 92 || code2 === 93) {
2675
+ effects.consume(code2);
2676
+ size++;
2677
+ return labelInside;
2678
+ }
2679
+ return labelInside(code2);
2680
+ }
2681
+ function labelAfter(code2) {
2682
+ if (code2 === 58) {
2683
+ effects.enter("definitionMarker");
2684
+ effects.consume(code2);
2685
+ effects.exit("definitionMarker");
2686
+ if (!defined.includes(identifier)) {
2687
+ defined.push(identifier);
2688
+ }
2689
+ return factorySpace(
2690
+ effects,
2691
+ whitespaceAfter,
2692
+ "gfmFootnoteDefinitionWhitespace"
2693
+ );
2694
+ }
2695
+ return nok(code2);
2696
+ }
2697
+ function whitespaceAfter(code2) {
2698
+ return ok2(code2);
2699
+ }
2700
+ }
2701
+ function tokenizeDefinitionContinuation(effects, ok2, nok) {
2702
+ return effects.check(blankLine, ok2, effects.attempt(indent, ok2, nok));
2703
+ }
2704
+ function gfmFootnoteDefinitionEnd(effects) {
2705
+ effects.exit("gfmFootnoteDefinition");
2706
+ }
2707
+ function tokenizeIndent(effects, ok2, nok) {
2708
+ const self = this;
2709
+ return factorySpace(
2710
+ effects,
2711
+ afterPrefix,
2712
+ "gfmFootnoteDefinitionIndent",
2713
+ 4 + 1
2714
+ );
2715
+ function afterPrefix(code2) {
2716
+ const tail = self.events[self.events.length - 1];
2717
+ return tail && tail[1].type === "gfmFootnoteDefinitionIndent" && tail[2].sliceSerialize(tail[1], true).length === 4 ? ok2(code2) : nok(code2);
2718
+ }
2719
+ }
2720
+ function gfmStrikethrough(options) {
2721
+ const options_ = options || {};
2722
+ let single = options_.singleTilde;
2723
+ const tokenizer = {
2724
+ tokenize: tokenizeStrikethrough,
2725
+ resolveAll: resolveAllStrikethrough
2726
+ };
2727
+ if (single === null || single === void 0) {
2728
+ single = true;
2729
+ }
2730
+ return {
2731
+ text: {
2732
+ [126]: tokenizer
2733
+ },
2734
+ insideSpan: {
2735
+ null: [tokenizer]
2736
+ },
2737
+ attentionMarkers: {
2738
+ null: [126]
2739
+ }
2740
+ };
2741
+ function resolveAllStrikethrough(events, context) {
2742
+ let index = -1;
2743
+ while (++index < events.length) {
2744
+ if (events[index][0] === "enter" && events[index][1].type === "strikethroughSequenceTemporary" && events[index][1]._close) {
2745
+ let open = index;
2746
+ while (open--) {
2747
+ if (events[open][0] === "exit" && events[open][1].type === "strikethroughSequenceTemporary" && events[open][1]._open && // If the sizes are the same:
2748
+ events[index][1].end.offset - events[index][1].start.offset === events[open][1].end.offset - events[open][1].start.offset) {
2749
+ events[index][1].type = "strikethroughSequence";
2750
+ events[open][1].type = "strikethroughSequence";
2751
+ const strikethrough = {
2752
+ type: "strikethrough",
2753
+ start: Object.assign({}, events[open][1].start),
2754
+ end: Object.assign({}, events[index][1].end)
2755
+ };
2756
+ const text2 = {
2757
+ type: "strikethroughText",
2758
+ start: Object.assign({}, events[open][1].end),
2759
+ end: Object.assign({}, events[index][1].start)
2760
+ };
2761
+ const nextEvents = [
2762
+ ["enter", strikethrough, context],
2763
+ ["enter", events[open][1], context],
2764
+ ["exit", events[open][1], context],
2765
+ ["enter", text2, context]
2766
+ ];
2767
+ const insideSpan = context.parser.constructs.insideSpan.null;
2768
+ if (insideSpan) {
2769
+ splice(
2770
+ nextEvents,
2771
+ nextEvents.length,
2772
+ 0,
2773
+ resolveAll(insideSpan, events.slice(open + 1, index), context)
2774
+ );
2775
+ }
2776
+ splice(nextEvents, nextEvents.length, 0, [
2777
+ ["exit", text2, context],
2778
+ ["enter", events[index][1], context],
2779
+ ["exit", events[index][1], context],
2780
+ ["exit", strikethrough, context]
2781
+ ]);
2782
+ splice(events, open - 1, index - open + 3, nextEvents);
2783
+ index = open + nextEvents.length - 2;
2784
+ break;
2785
+ }
2786
+ }
2787
+ }
2788
+ }
2789
+ index = -1;
2790
+ while (++index < events.length) {
2791
+ if (events[index][1].type === "strikethroughSequenceTemporary") {
2792
+ events[index][1].type = "data";
2793
+ }
2794
+ }
2795
+ return events;
2796
+ }
2797
+ function tokenizeStrikethrough(effects, ok2, nok) {
2798
+ const previous2 = this.previous;
2799
+ const events = this.events;
2800
+ let size = 0;
2801
+ return start;
2802
+ function start(code2) {
2803
+ if (previous2 === 126 && events[events.length - 1][1].type !== "characterEscape") {
2804
+ return nok(code2);
2805
+ }
2806
+ effects.enter("strikethroughSequenceTemporary");
2807
+ return more(code2);
2808
+ }
2809
+ function more(code2) {
2810
+ const before = classifyCharacter(previous2);
2811
+ if (code2 === 126) {
2812
+ if (size > 1) return nok(code2);
2813
+ effects.consume(code2);
2814
+ size++;
2815
+ return more;
2816
+ }
2817
+ if (size < 2 && !single) return nok(code2);
2818
+ const token = effects.exit("strikethroughSequenceTemporary");
2819
+ const after = classifyCharacter(code2);
2820
+ token._open = !after || after === 2 && Boolean(before);
2821
+ token._close = !before || before === 2 && Boolean(after);
2822
+ return ok2(code2);
2823
+ }
2824
+ }
2825
+ }
2826
+ class EditMap {
2827
+ /**
2828
+ * Create a new edit map.
2829
+ */
2830
+ constructor() {
2831
+ this.map = [];
2832
+ }
2833
+ /**
2834
+ * Create an edit: a remove and/or add at a certain place.
2835
+ *
2836
+ * @param {number} index
2837
+ * @param {number} remove
2838
+ * @param {Array<Event>} add
2839
+ * @returns {undefined}
2840
+ */
2841
+ add(index, remove, add) {
2842
+ addImpl(this, index, remove, add);
2843
+ }
2844
+ // To do: add this when moving to `micromark`.
2845
+ // /**
2846
+ // * Create an edit: but insert `add` before existing additions.
2847
+ // *
2848
+ // * @param {number} index
2849
+ // * @param {number} remove
2850
+ // * @param {Array<Event>} add
2851
+ // * @returns {undefined}
2852
+ // */
2853
+ // addBefore(index, remove, add) {
2854
+ // addImpl(this, index, remove, add, true)
2855
+ // }
2856
+ /**
2857
+ * Done, change the events.
2858
+ *
2859
+ * @param {Array<Event>} events
2860
+ * @returns {undefined}
2861
+ */
2862
+ consume(events) {
2863
+ this.map.sort(function(a, b) {
2864
+ return a[0] - b[0];
2865
+ });
2866
+ if (this.map.length === 0) {
2867
+ return;
2868
+ }
2869
+ let index = this.map.length;
2870
+ const vecs = [];
2871
+ while (index > 0) {
2872
+ index -= 1;
2873
+ vecs.push(
2874
+ events.slice(this.map[index][0] + this.map[index][1]),
2875
+ this.map[index][2]
2876
+ );
2877
+ events.length = this.map[index][0];
2878
+ }
2879
+ vecs.push([...events]);
2880
+ events.length = 0;
2881
+ let slice = vecs.pop();
2882
+ while (slice) {
2883
+ events.push(...slice);
2884
+ slice = vecs.pop();
2885
+ }
2886
+ this.map.length = 0;
2887
+ }
2888
+ }
2889
+ function addImpl(editMap, at, remove, add) {
2890
+ let index = 0;
2891
+ if (remove === 0 && add.length === 0) {
2892
+ return;
2893
+ }
2894
+ while (index < editMap.map.length) {
2895
+ if (editMap.map[index][0] === at) {
2896
+ editMap.map[index][1] += remove;
2897
+ editMap.map[index][2].push(...add);
2898
+ return;
2899
+ }
2900
+ index += 1;
2901
+ }
2902
+ editMap.map.push([at, remove, add]);
2903
+ }
2904
+ function gfmTableAlign(events, index) {
2905
+ let inDelimiterRow = false;
2906
+ const align = [];
2907
+ while (index < events.length) {
2908
+ const event = events[index];
2909
+ if (inDelimiterRow) {
2910
+ if (event[0] === "enter") {
2911
+ if (event[1].type === "tableContent") {
2912
+ align.push(
2913
+ events[index + 1][1].type === "tableDelimiterMarker" ? "left" : "none"
2914
+ );
2915
+ }
2916
+ } else if (event[1].type === "tableContent") {
2917
+ if (events[index - 1][1].type === "tableDelimiterMarker") {
2918
+ const alignIndex = align.length - 1;
2919
+ align[alignIndex] = align[alignIndex] === "left" ? "center" : "right";
2920
+ }
2921
+ } else if (event[1].type === "tableDelimiterRow") {
2922
+ break;
2923
+ }
2924
+ } else if (event[0] === "enter" && event[1].type === "tableDelimiterRow") {
2925
+ inDelimiterRow = true;
2926
+ }
2927
+ index += 1;
2928
+ }
2929
+ return align;
2930
+ }
2931
+ function gfmTable() {
2932
+ return {
2933
+ flow: {
2934
+ null: {
2935
+ tokenize: tokenizeTable,
2936
+ resolveAll: resolveTable
2937
+ }
2938
+ }
2939
+ };
2940
+ }
2941
+ function tokenizeTable(effects, ok2, nok) {
2942
+ const self = this;
2943
+ let size = 0;
2944
+ let sizeB = 0;
2945
+ let seen;
2946
+ return start;
2947
+ function start(code2) {
2948
+ let index = self.events.length - 1;
2949
+ while (index > -1) {
2950
+ const type = self.events[index][1].type;
2951
+ if (type === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
2952
+ type === "linePrefix")
2953
+ index--;
2954
+ else break;
2955
+ }
2956
+ const tail = index > -1 ? self.events[index][1].type : null;
2957
+ const next = tail === "tableHead" || tail === "tableRow" ? bodyRowStart : headRowBefore;
2958
+ if (next === bodyRowStart && self.parser.lazy[self.now().line]) {
2959
+ return nok(code2);
2960
+ }
2961
+ return next(code2);
2962
+ }
2963
+ function headRowBefore(code2) {
2964
+ effects.enter("tableHead");
2965
+ effects.enter("tableRow");
2966
+ return headRowStart(code2);
2967
+ }
2968
+ function headRowStart(code2) {
2969
+ if (code2 === 124) {
2970
+ return headRowBreak(code2);
2971
+ }
2972
+ seen = true;
2973
+ sizeB += 1;
2974
+ return headRowBreak(code2);
2975
+ }
2976
+ function headRowBreak(code2) {
2977
+ if (code2 === null) {
2978
+ return nok(code2);
2979
+ }
2980
+ if (markdownLineEnding(code2)) {
2981
+ if (sizeB > 1) {
2982
+ sizeB = 0;
2983
+ self.interrupt = true;
2984
+ effects.exit("tableRow");
2985
+ effects.enter("lineEnding");
2986
+ effects.consume(code2);
2987
+ effects.exit("lineEnding");
2988
+ return headDelimiterStart;
2989
+ }
2990
+ return nok(code2);
2991
+ }
2992
+ if (markdownSpace(code2)) {
2993
+ return factorySpace(effects, headRowBreak, "whitespace")(code2);
2994
+ }
2995
+ sizeB += 1;
2996
+ if (seen) {
2997
+ seen = false;
2998
+ size += 1;
2999
+ }
3000
+ if (code2 === 124) {
3001
+ effects.enter("tableCellDivider");
3002
+ effects.consume(code2);
3003
+ effects.exit("tableCellDivider");
3004
+ seen = true;
3005
+ return headRowBreak;
3006
+ }
3007
+ effects.enter("data");
3008
+ return headRowData(code2);
3009
+ }
3010
+ function headRowData(code2) {
3011
+ if (code2 === null || code2 === 124 || markdownLineEndingOrSpace(code2)) {
3012
+ effects.exit("data");
3013
+ return headRowBreak(code2);
3014
+ }
3015
+ effects.consume(code2);
3016
+ return code2 === 92 ? headRowEscape : headRowData;
3017
+ }
3018
+ function headRowEscape(code2) {
3019
+ if (code2 === 92 || code2 === 124) {
3020
+ effects.consume(code2);
3021
+ return headRowData;
3022
+ }
3023
+ return headRowData(code2);
3024
+ }
3025
+ function headDelimiterStart(code2) {
3026
+ self.interrupt = false;
3027
+ if (self.parser.lazy[self.now().line]) {
3028
+ return nok(code2);
3029
+ }
3030
+ effects.enter("tableDelimiterRow");
3031
+ seen = false;
3032
+ if (markdownSpace(code2)) {
3033
+ return factorySpace(
3034
+ effects,
3035
+ headDelimiterBefore,
3036
+ "linePrefix",
3037
+ self.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
3038
+ )(code2);
3039
+ }
3040
+ return headDelimiterBefore(code2);
3041
+ }
3042
+ function headDelimiterBefore(code2) {
3043
+ if (code2 === 45 || code2 === 58) {
3044
+ return headDelimiterValueBefore(code2);
3045
+ }
3046
+ if (code2 === 124) {
3047
+ seen = true;
3048
+ effects.enter("tableCellDivider");
3049
+ effects.consume(code2);
3050
+ effects.exit("tableCellDivider");
3051
+ return headDelimiterCellBefore;
3052
+ }
3053
+ return headDelimiterNok(code2);
3054
+ }
3055
+ function headDelimiterCellBefore(code2) {
3056
+ if (markdownSpace(code2)) {
3057
+ return factorySpace(effects, headDelimiterValueBefore, "whitespace")(code2);
3058
+ }
3059
+ return headDelimiterValueBefore(code2);
3060
+ }
3061
+ function headDelimiterValueBefore(code2) {
3062
+ if (code2 === 58) {
3063
+ sizeB += 1;
3064
+ seen = true;
3065
+ effects.enter("tableDelimiterMarker");
3066
+ effects.consume(code2);
3067
+ effects.exit("tableDelimiterMarker");
3068
+ return headDelimiterLeftAlignmentAfter;
3069
+ }
3070
+ if (code2 === 45) {
3071
+ sizeB += 1;
3072
+ return headDelimiterLeftAlignmentAfter(code2);
3073
+ }
3074
+ if (code2 === null || markdownLineEnding(code2)) {
3075
+ return headDelimiterCellAfter(code2);
3076
+ }
3077
+ return headDelimiterNok(code2);
3078
+ }
3079
+ function headDelimiterLeftAlignmentAfter(code2) {
3080
+ if (code2 === 45) {
3081
+ effects.enter("tableDelimiterFiller");
3082
+ return headDelimiterFiller(code2);
3083
+ }
3084
+ return headDelimiterNok(code2);
3085
+ }
3086
+ function headDelimiterFiller(code2) {
3087
+ if (code2 === 45) {
3088
+ effects.consume(code2);
3089
+ return headDelimiterFiller;
3090
+ }
3091
+ if (code2 === 58) {
3092
+ seen = true;
3093
+ effects.exit("tableDelimiterFiller");
3094
+ effects.enter("tableDelimiterMarker");
3095
+ effects.consume(code2);
3096
+ effects.exit("tableDelimiterMarker");
3097
+ return headDelimiterRightAlignmentAfter;
3098
+ }
3099
+ effects.exit("tableDelimiterFiller");
3100
+ return headDelimiterRightAlignmentAfter(code2);
3101
+ }
3102
+ function headDelimiterRightAlignmentAfter(code2) {
3103
+ if (markdownSpace(code2)) {
3104
+ return factorySpace(effects, headDelimiterCellAfter, "whitespace")(code2);
3105
+ }
3106
+ return headDelimiterCellAfter(code2);
3107
+ }
3108
+ function headDelimiterCellAfter(code2) {
3109
+ if (code2 === 124) {
3110
+ return headDelimiterBefore(code2);
3111
+ }
3112
+ if (code2 === null || markdownLineEnding(code2)) {
3113
+ if (!seen || size !== sizeB) {
3114
+ return headDelimiterNok(code2);
3115
+ }
3116
+ effects.exit("tableDelimiterRow");
3117
+ effects.exit("tableHead");
3118
+ return ok2(code2);
3119
+ }
3120
+ return headDelimiterNok(code2);
3121
+ }
3122
+ function headDelimiterNok(code2) {
3123
+ return nok(code2);
3124
+ }
3125
+ function bodyRowStart(code2) {
3126
+ effects.enter("tableRow");
3127
+ return bodyRowBreak(code2);
3128
+ }
3129
+ function bodyRowBreak(code2) {
3130
+ if (code2 === 124) {
3131
+ effects.enter("tableCellDivider");
3132
+ effects.consume(code2);
3133
+ effects.exit("tableCellDivider");
3134
+ return bodyRowBreak;
3135
+ }
3136
+ if (code2 === null || markdownLineEnding(code2)) {
3137
+ effects.exit("tableRow");
3138
+ return ok2(code2);
3139
+ }
3140
+ if (markdownSpace(code2)) {
3141
+ return factorySpace(effects, bodyRowBreak, "whitespace")(code2);
3142
+ }
3143
+ effects.enter("data");
3144
+ return bodyRowData(code2);
3145
+ }
3146
+ function bodyRowData(code2) {
3147
+ if (code2 === null || code2 === 124 || markdownLineEndingOrSpace(code2)) {
3148
+ effects.exit("data");
3149
+ return bodyRowBreak(code2);
3150
+ }
3151
+ effects.consume(code2);
3152
+ return code2 === 92 ? bodyRowEscape : bodyRowData;
3153
+ }
3154
+ function bodyRowEscape(code2) {
3155
+ if (code2 === 92 || code2 === 124) {
3156
+ effects.consume(code2);
3157
+ return bodyRowData;
3158
+ }
3159
+ return bodyRowData(code2);
3160
+ }
3161
+ }
3162
+ function resolveTable(events, context) {
3163
+ let index = -1;
3164
+ let inFirstCellAwaitingPipe = true;
3165
+ let rowKind = 0;
3166
+ let lastCell = [0, 0, 0, 0];
3167
+ let cell = [0, 0, 0, 0];
3168
+ let afterHeadAwaitingFirstBodyRow = false;
3169
+ let lastTableEnd = 0;
3170
+ let currentTable;
3171
+ let currentBody;
3172
+ let currentCell;
3173
+ const map2 = new EditMap();
3174
+ while (++index < events.length) {
3175
+ const event = events[index];
3176
+ const token = event[1];
3177
+ if (event[0] === "enter") {
3178
+ if (token.type === "tableHead") {
3179
+ afterHeadAwaitingFirstBodyRow = false;
3180
+ if (lastTableEnd !== 0) {
3181
+ flushTableEnd(map2, context, lastTableEnd, currentTable, currentBody);
3182
+ currentBody = void 0;
3183
+ lastTableEnd = 0;
3184
+ }
3185
+ currentTable = {
3186
+ type: "table",
3187
+ start: Object.assign({}, token.start),
3188
+ // Note: correct end is set later.
3189
+ end: Object.assign({}, token.end)
3190
+ };
3191
+ map2.add(index, 0, [["enter", currentTable, context]]);
3192
+ } else if (token.type === "tableRow" || token.type === "tableDelimiterRow") {
3193
+ inFirstCellAwaitingPipe = true;
3194
+ currentCell = void 0;
3195
+ lastCell = [0, 0, 0, 0];
3196
+ cell = [0, index + 1, 0, 0];
3197
+ if (afterHeadAwaitingFirstBodyRow) {
3198
+ afterHeadAwaitingFirstBodyRow = false;
3199
+ currentBody = {
3200
+ type: "tableBody",
3201
+ start: Object.assign({}, token.start),
3202
+ // Note: correct end is set later.
3203
+ end: Object.assign({}, token.end)
3204
+ };
3205
+ map2.add(index, 0, [["enter", currentBody, context]]);
3206
+ }
3207
+ rowKind = token.type === "tableDelimiterRow" ? 2 : currentBody ? 3 : 1;
3208
+ } else if (rowKind && (token.type === "data" || token.type === "tableDelimiterMarker" || token.type === "tableDelimiterFiller")) {
3209
+ inFirstCellAwaitingPipe = false;
3210
+ if (cell[2] === 0) {
3211
+ if (lastCell[1] !== 0) {
3212
+ cell[0] = cell[1];
3213
+ currentCell = flushCell(
3214
+ map2,
3215
+ context,
3216
+ lastCell,
3217
+ rowKind,
3218
+ void 0,
3219
+ currentCell
3220
+ );
3221
+ lastCell = [0, 0, 0, 0];
3222
+ }
3223
+ cell[2] = index;
3224
+ }
3225
+ } else if (token.type === "tableCellDivider") {
3226
+ if (inFirstCellAwaitingPipe) {
3227
+ inFirstCellAwaitingPipe = false;
3228
+ } else {
3229
+ if (lastCell[1] !== 0) {
3230
+ cell[0] = cell[1];
3231
+ currentCell = flushCell(
3232
+ map2,
3233
+ context,
3234
+ lastCell,
3235
+ rowKind,
3236
+ void 0,
3237
+ currentCell
3238
+ );
3239
+ }
3240
+ lastCell = cell;
3241
+ cell = [lastCell[1], index, 0, 0];
3242
+ }
3243
+ }
3244
+ } else if (token.type === "tableHead") {
3245
+ afterHeadAwaitingFirstBodyRow = true;
3246
+ lastTableEnd = index;
3247
+ } else if (token.type === "tableRow" || token.type === "tableDelimiterRow") {
3248
+ lastTableEnd = index;
3249
+ if (lastCell[1] !== 0) {
3250
+ cell[0] = cell[1];
3251
+ currentCell = flushCell(
3252
+ map2,
3253
+ context,
3254
+ lastCell,
3255
+ rowKind,
3256
+ index,
3257
+ currentCell
3258
+ );
3259
+ } else if (cell[1] !== 0) {
3260
+ currentCell = flushCell(map2, context, cell, rowKind, index, currentCell);
3261
+ }
3262
+ rowKind = 0;
3263
+ } else if (rowKind && (token.type === "data" || token.type === "tableDelimiterMarker" || token.type === "tableDelimiterFiller")) {
3264
+ cell[3] = index;
3265
+ }
3266
+ }
3267
+ if (lastTableEnd !== 0) {
3268
+ flushTableEnd(map2, context, lastTableEnd, currentTable, currentBody);
3269
+ }
3270
+ map2.consume(context.events);
3271
+ index = -1;
3272
+ while (++index < context.events.length) {
3273
+ const event = context.events[index];
3274
+ if (event[0] === "enter" && event[1].type === "table") {
3275
+ event[1]._align = gfmTableAlign(context.events, index);
3276
+ }
3277
+ }
3278
+ return events;
3279
+ }
3280
+ function flushCell(map2, context, range, rowKind, rowEnd, previousCell) {
3281
+ const groupName = rowKind === 1 ? "tableHeader" : rowKind === 2 ? "tableDelimiter" : "tableData";
3282
+ const valueName = "tableContent";
3283
+ if (range[0] !== 0) {
3284
+ previousCell.end = Object.assign({}, getPoint(context.events, range[0]));
3285
+ map2.add(range[0], 0, [["exit", previousCell, context]]);
3286
+ }
3287
+ const now = getPoint(context.events, range[1]);
3288
+ previousCell = {
3289
+ type: groupName,
3290
+ start: Object.assign({}, now),
3291
+ // Note: correct end is set later.
3292
+ end: Object.assign({}, now)
3293
+ };
3294
+ map2.add(range[1], 0, [["enter", previousCell, context]]);
3295
+ if (range[2] !== 0) {
3296
+ const relatedStart = getPoint(context.events, range[2]);
3297
+ const relatedEnd = getPoint(context.events, range[3]);
3298
+ const valueToken = {
3299
+ type: valueName,
3300
+ start: Object.assign({}, relatedStart),
3301
+ end: Object.assign({}, relatedEnd)
3302
+ };
3303
+ map2.add(range[2], 0, [["enter", valueToken, context]]);
3304
+ if (rowKind !== 2) {
3305
+ const start = context.events[range[2]];
3306
+ const end = context.events[range[3]];
3307
+ start[1].end = Object.assign({}, end[1].end);
3308
+ start[1].type = "chunkText";
3309
+ start[1].contentType = "text";
3310
+ if (range[3] > range[2] + 1) {
3311
+ const a = range[2] + 1;
3312
+ const b = range[3] - range[2] - 1;
3313
+ map2.add(a, b, []);
3314
+ }
3315
+ }
3316
+ map2.add(range[3] + 1, 0, [["exit", valueToken, context]]);
3317
+ }
3318
+ if (rowEnd !== void 0) {
3319
+ previousCell.end = Object.assign({}, getPoint(context.events, rowEnd));
3320
+ map2.add(rowEnd, 0, [["exit", previousCell, context]]);
3321
+ previousCell = void 0;
3322
+ }
3323
+ return previousCell;
3324
+ }
3325
+ function flushTableEnd(map2, context, index, table, tableBody) {
3326
+ const exits = [];
3327
+ const related = getPoint(context.events, index);
3328
+ if (tableBody) {
3329
+ tableBody.end = Object.assign({}, related);
3330
+ exits.push(["exit", tableBody, context]);
3331
+ }
3332
+ table.end = Object.assign({}, related);
3333
+ exits.push(["exit", table, context]);
3334
+ map2.add(index + 1, 0, exits);
3335
+ }
3336
+ function getPoint(events, index) {
3337
+ const event = events[index];
3338
+ const side = event[0] === "enter" ? "start" : "end";
3339
+ return event[1][side];
3340
+ }
3341
+ const tasklistCheck = {
3342
+ tokenize: tokenizeTasklistCheck
3343
+ };
3344
+ function gfmTaskListItem() {
3345
+ return {
3346
+ text: {
3347
+ [91]: tasklistCheck
3348
+ }
3349
+ };
3350
+ }
3351
+ function tokenizeTasklistCheck(effects, ok2, nok) {
3352
+ const self = this;
3353
+ return open;
3354
+ function open(code2) {
3355
+ if (
3356
+ // Exit if there’s stuff before.
3357
+ self.previous !== null || // Exit if not in the first content that is the first child of a list
3358
+ // item.
3359
+ !self._gfmTasklistFirstContentOfListItem
3360
+ ) {
3361
+ return nok(code2);
3362
+ }
3363
+ effects.enter("taskListCheck");
3364
+ effects.enter("taskListCheckMarker");
3365
+ effects.consume(code2);
3366
+ effects.exit("taskListCheckMarker");
3367
+ return inside;
3368
+ }
3369
+ function inside(code2) {
3370
+ if (markdownLineEndingOrSpace(code2)) {
3371
+ effects.enter("taskListCheckValueUnchecked");
3372
+ effects.consume(code2);
3373
+ effects.exit("taskListCheckValueUnchecked");
3374
+ return close;
3375
+ }
3376
+ if (code2 === 88 || code2 === 120) {
3377
+ effects.enter("taskListCheckValueChecked");
3378
+ effects.consume(code2);
3379
+ effects.exit("taskListCheckValueChecked");
3380
+ return close;
3381
+ }
3382
+ return nok(code2);
3383
+ }
3384
+ function close(code2) {
3385
+ if (code2 === 93) {
3386
+ effects.enter("taskListCheckMarker");
3387
+ effects.consume(code2);
3388
+ effects.exit("taskListCheckMarker");
3389
+ effects.exit("taskListCheck");
3390
+ return after;
3391
+ }
3392
+ return nok(code2);
3393
+ }
3394
+ function after(code2) {
3395
+ if (markdownLineEnding(code2)) {
3396
+ return ok2(code2);
3397
+ }
3398
+ if (markdownSpace(code2)) {
3399
+ return effects.check(
3400
+ {
3401
+ tokenize: spaceThenNonSpace
3402
+ },
3403
+ ok2,
3404
+ nok
3405
+ )(code2);
3406
+ }
3407
+ return nok(code2);
3408
+ }
3409
+ }
3410
+ function spaceThenNonSpace(effects, ok2, nok) {
3411
+ return factorySpace(effects, after, "whitespace");
3412
+ function after(code2) {
3413
+ return code2 === null ? nok(code2) : ok2(code2);
3414
+ }
3415
+ }
3416
+ function gfm(options) {
3417
+ return combineExtensions([
3418
+ gfmAutolinkLiteral(),
3419
+ gfmFootnote(),
3420
+ gfmStrikethrough(options),
3421
+ gfmTable(),
3422
+ gfmTaskListItem()
3423
+ ]);
3424
+ }
3425
+ const emptyOptions = {};
3426
+ function remarkGfm(options) {
3427
+ const self = (
3428
+ /** @type {Processor<Root>} */
3429
+ this
3430
+ );
3431
+ const settings = options || emptyOptions;
3432
+ const data = self.data();
3433
+ const micromarkExtensions = data.micromarkExtensions || (data.micromarkExtensions = []);
3434
+ const fromMarkdownExtensions = data.fromMarkdownExtensions || (data.fromMarkdownExtensions = []);
3435
+ const toMarkdownExtensions = data.toMarkdownExtensions || (data.toMarkdownExtensions = []);
3436
+ micromarkExtensions.push(gfm(settings));
3437
+ fromMarkdownExtensions.push(gfmFromMarkdown());
3438
+ toMarkdownExtensions.push(gfmToMarkdown(settings));
3439
+ }
3440
+ function remarkPlaceholder() {
3441
+ return function(ast) {
3442
+ unistUtilVisit.visit(ast, (node2) => node2.type === "text", visitor);
3443
+ function visitor(node2, index, parent) {
3444
+ const placeholders = node2.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3445
+ const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
3446
+ if (!matches) {
3447
+ return unistBuilder.u("text", entry);
3448
+ }
3449
+ const [, component] = matches;
3450
+ return unistBuilder.u("element", {
3451
+ tagName: "#".concat(component)
3452
+ });
3453
+ });
3454
+ parent.children.splice(index, 1, ...placeholders);
3455
+ }
3456
+ };
3457
+ }
3458
+ function prepareTextNode({ h, context }, text2) {
3459
+ if (context.autolink) {
3460
+ text2 = autolink.parseUrl(text2);
3461
+ }
3462
+ if (Array.isArray(text2)) {
3463
+ return text2.map((entry) => {
3464
+ if (typeof entry === "string") {
3465
+ return entry;
3466
+ }
3467
+ const { component, props } = entry;
3468
+ const componentClass = component.name === "NcLink" ? void 0 : "rich-text--component";
3469
+ return h(component, {
3470
+ props,
3471
+ class: componentClass
3472
+ });
3473
+ });
3474
+ }
3475
+ return text2;
3476
+ }
3477
+ function remarkUnescape() {
3478
+ return function(tree) {
3479
+ unistUtilVisit.visit(tree, (node2) => ["text", "code", "inlineCode"].includes(node2.type), (node2, index, parent) => {
3480
+ parent.children.splice(index, 1, __spreadProps(__spreadValues({}, node2), {
3481
+ value: node2.value.replace(/&lt;/gmi, "<").replace(/&gt;/gmi, ">")
3482
+ }));
3483
+ return [unistUtilVisit.SKIP, index + 1];
3484
+ });
3485
+ };
3486
+ }
3487
+ const LINK_PROTOCOLS = ["http", "https", "mailto", "tel"];
3488
+ const rehypeHighlight = Vue.ref(null);
3489
+ async function importRehypeHighlightLibrary() {
3490
+ const module2 = await import("rehype-highlight");
3491
+ rehypeHighlight.value = module2.default;
3492
+ }
3493
+ const _sfc_main = {
3494
+ name: "NcRichText",
3495
+ components: {
3496
+ NcReferenceList
3497
+ },
3498
+ /* eslint vue/require-prop-comment: warn -- TODO: Add a proper doc block about what this props do */
3499
+ props: {
3500
+ text: {
3501
+ type: String,
3502
+ default: ""
3503
+ },
3504
+ arguments: {
3505
+ type: Object,
3506
+ default: () => {
3507
+ return {};
3508
+ }
3509
+ },
3510
+ referenceLimit: {
3511
+ type: Number,
3512
+ default: 0
3513
+ },
3514
+ referenceInteractive: {
3515
+ type: Boolean,
3516
+ // eslint-disable-next-line vue/no-boolean-default
3517
+ default: true
3518
+ },
3519
+ referenceInteractiveOptIn: {
3520
+ type: Boolean,
3521
+ default: false
3522
+ },
3523
+ /** Provide data upfront to avoid extra http request */
3524
+ references: {
3525
+ type: Array,
3526
+ default: null
3527
+ },
3528
+ /** Provide basic Markdown syntax */
3529
+ useMarkdown: {
3530
+ type: Boolean,
3531
+ default: false
3532
+ },
3533
+ /** Provide GitHub Flavored Markdown syntax */
3534
+ useExtendedMarkdown: {
3535
+ type: Boolean,
3536
+ default: false
3537
+ },
3538
+ /** Provide event from rendered markdown inputs */
3539
+ interactive: {
3540
+ type: Boolean,
3541
+ default: false
3542
+ },
3543
+ autolink: {
3544
+ type: Boolean,
3545
+ // eslint-disable-next-line vue/no-boolean-default
3546
+ default: true
3547
+ }
3548
+ },
3549
+ emits: [
3550
+ "interact-todo",
3551
+ "interact:todo"
3552
+ ],
3553
+ data() {
3554
+ return {
3555
+ parentId: GenRandomId.GenRandomId(5)
3556
+ };
3557
+ },
3558
+ methods: {
3559
+ renderPlaintext(h) {
3560
+ const placeholders = this.text.split(/(\{[a-z\-_.0-9]+\})/ig).map((entry) => {
3561
+ const matches = entry.match(/^\{([a-z\-_.0-9]+)\}$/i);
3562
+ if (!matches) {
3563
+ return prepareTextNode({ h, context: this }, entry);
3564
+ }
3565
+ const argumentId = matches[1];
3566
+ const argument = this.arguments[argumentId];
3567
+ if (typeof argument === "object") {
3568
+ const { component, props } = argument;
3569
+ return h(component, {
3570
+ props,
3571
+ class: "rich-text--component"
3572
+ });
3573
+ }
3574
+ if (argument) {
3575
+ return h("span", { class: "rich-text--fallback" }, argument);
3576
+ }
3577
+ return entry;
3578
+ });
3579
+ return h("div", { class: "rich-text--wrapper" }, [
3580
+ h("div", {}, placeholders.flat()),
3581
+ this.referenceLimit > 0 ? h("div", { class: "rich-text--reference-widget" }, [
3582
+ h(NcReferenceList, {
3583
+ props: {
3584
+ text: this.text,
3585
+ referenceData: this.references,
3586
+ interactive: this.referenceInteractive,
3587
+ interactiveOptIn: this.referenceInteractiveOptIn
3588
+ }
3589
+ })
3590
+ ]) : null
3591
+ ]);
3592
+ },
3593
+ renderMarkdown(h) {
3594
+ const renderedMarkdown = unified.unified().use(remarkParse__default.default).use(autolink.remarkAutolink, {
3595
+ autolink: this.autolink,
3596
+ useMarkdown: this.useMarkdown,
3597
+ useExtendedMarkdown: this.useExtendedMarkdown
3598
+ }).use(remarkUnescape).use(this.useExtendedMarkdown ? remarkGfm : void 0).use(breaks__default.default).use(remarkUnlinkProtocols__default.default, { except: LINK_PROTOCOLS }).use(remark2rehype__default.default, {
3599
+ handlers: {
3600
+ component(toHast, node2) {
3601
+ return toHast(node2, node2.component, { value: node2.value });
3602
+ }
3603
+ }
3604
+ }).use(this.useExtendedMarkdown ? rehypeHighlight.value : void 0).use(remarkPlaceholder).use(rehypeExternalLinks__default.default, {
3605
+ target: "_blank",
3606
+ rel: ["noopener noreferrer"]
3607
+ }).use(rehype2react__default.default, {
3608
+ createElement: (tag, attrs, children) => {
3609
+ var _a, _b;
3610
+ if (!tag.startsWith("#")) {
3611
+ if (this.useExtendedMarkdown) {
3612
+ if (tag === "code" && !rehypeHighlight.value && ((_b = (_a = attrs == null ? void 0 : attrs.attrs) == null ? void 0 : _a.class) == null ? void 0 : _b.includes("language"))) {
3613
+ importRehypeHighlightLibrary();
3614
+ }
3615
+ let nestedNode = null;
3616
+ if (tag === "li" && Array.isArray(children) && children[0].tag === "input" && children[0].data.attrs.type === "checkbox") {
3617
+ const [inputNode, ...labelParts] = children;
3618
+ const nestedNodeIndex = labelParts.findIndex((child) => ["ul", "ol", "li", "blockquote", "pre"].includes(child.tag));
3619
+ if (nestedNodeIndex !== -1) {
3620
+ nestedNode = labelParts[nestedNodeIndex];
3621
+ labelParts.splice(nestedNodeIndex);
3622
+ }
3623
+ const id = this.parentId + "-markdown-input-" + GenRandomId.GenRandomId(5);
3624
+ const inputComponent = h(NcCheckboxRadioSwitch.NcCheckboxRadioSwitch, {
3625
+ attrs: __spreadProps(__spreadValues({}, inputNode.data.attrs), {
3626
+ id,
3627
+ disabled: !this.interactive
3628
+ }),
3629
+ on: {
3630
+ "update:checked": () => {
3631
+ this.$emit("interact-todo", id);
3632
+ this.$emit("interact:todo", id);
3633
+ }
3634
+ }
3635
+ }, labelParts);
3636
+ return h(tag, attrs, [inputComponent, nestedNode]);
3637
+ }
3638
+ }
3639
+ if (tag === "a") {
3640
+ const route = autolink.getRoute(this.$router, attrs.attrs.href);
3641
+ if (route) {
3642
+ delete attrs.attrs.href;
3643
+ delete attrs.attrs.target;
3644
+ return h(vueRouter.RouterLink, __spreadProps(__spreadValues({}, attrs), {
3645
+ props: {
3646
+ to: route
3647
+ }
3648
+ }), children);
3649
+ }
3650
+ }
3651
+ return h(tag, attrs, children);
3652
+ }
3653
+ const placeholder = this.arguments[tag.slice(1)];
3654
+ if (!placeholder) {
3655
+ return h("span", __spreadValues(__spreadValues({}, { attrs }), { class: "rich-text--fallback" }), ["{".concat(tag.slice(1), "}")]);
3656
+ }
3657
+ if (!placeholder.component) {
3658
+ return h("span", attrs, [placeholder]);
3659
+ }
3660
+ return h(
3661
+ placeholder.component,
3662
+ {
3663
+ attrs,
3664
+ props: placeholder.props,
3665
+ class: "rich-text--component"
3666
+ },
3667
+ children
3668
+ );
3669
+ },
3670
+ prefix: false
3671
+ }).processSync(this.text.replace(/<[^>]+>/g, (match) => match.replace(/</g, "&lt;")).replace(/&gt;/gmi, ">")).result;
3672
+ return h("div", { class: "rich-text--wrapper rich-text--wrapper-markdown" }, [
3673
+ renderedMarkdown,
3674
+ this.referenceLimit > 0 ? h("div", { class: "rich-text--reference-widget" }, [
3675
+ h(NcReferenceList, {
3676
+ props: {
3677
+ text: this.text,
3678
+ referenceData: this.references,
3679
+ interactive: this.referenceInteractive,
3680
+ interactiveOptIn: this.referenceInteractiveOptIn
3681
+ }
3682
+ })
3683
+ ]) : null
3684
+ ]);
3685
+ }
3686
+ },
3687
+ render(h) {
3688
+ return this.useMarkdown || this.useExtendedMarkdown ? this.renderMarkdown(h) : this.renderPlaintext(h);
3689
+ }
3690
+ };
3691
+ const _sfc_render = null;
3692
+ const _sfc_staticRenderFns = null;
3693
+ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
3694
+ _sfc_main,
3695
+ _sfc_render,
3696
+ _sfc_staticRenderFns,
3697
+ false,
3698
+ null,
3699
+ "726bb0f8"
3700
+ );
3701
+ const NcRichText = __component__.exports;
3702
+ exports.NcReferenceList = NcReferenceList;
3703
+ exports.NcRichText = NcRichText;
3704
+ //# sourceMappingURL=NcRichText-CEsiozf5.cjs.map