jodit-pro 4.9.22 → 4.9.27

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 (299) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +44 -44
  4. package/es2015/jodit.js +229 -101
  5. package/es2015/jodit.min.js +7 -7
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +193 -161
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +30 -30
  9. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  11. package/es2015/plugins/backup/backup.css +1 -1
  12. package/es2015/plugins/backup/backup.js +1 -1
  13. package/es2015/plugins/backup/backup.min.js +1 -1
  14. package/es2015/plugins/button-generator/button-generator.css +1 -1
  15. package/es2015/plugins/button-generator/button-generator.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  17. package/es2015/plugins/change-case/change-case.js +1 -1
  18. package/es2015/plugins/change-case/change-case.min.js +1 -1
  19. package/es2015/plugins/color-picker/color-picker.css +1 -1
  20. package/es2015/plugins/color-picker/color-picker.js +1 -1
  21. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  22. package/es2015/plugins/emoji/emoji.css +1 -1
  23. package/es2015/plugins/emoji/emoji.js +1 -1
  24. package/es2015/plugins/emoji/emoji.min.js +1 -1
  25. package/es2015/plugins/export-docs/export-docs.js +1 -1
  26. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  27. package/es2015/plugins/finder/finder.css +1 -1
  28. package/es2015/plugins/finder/finder.js +1 -1
  29. package/es2015/plugins/finder/finder.min.js +1 -1
  30. package/es2015/plugins/google-maps/google-maps.css +1 -1
  31. package/es2015/plugins/google-maps/google-maps.js +1 -1
  32. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  33. package/es2015/plugins/google-search/google-search.js +1 -1
  34. package/es2015/plugins/google-search/google-search.min.js +1 -1
  35. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  36. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  38. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  39. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  40. package/es2015/plugins/keyboard/keyboard.css +1 -1
  41. package/es2015/plugins/keyboard/keyboard.js +1 -1
  42. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  43. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  44. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  45. package/es2015/plugins/page-break/page-break.js +1 -1
  46. package/es2015/plugins/page-break/page-break.min.js +1 -1
  47. package/es2015/plugins/paste-code/paste-code.css +1 -1
  48. package/es2015/plugins/paste-code/paste-code.js +1 -1
  49. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  50. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  51. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  52. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  53. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  54. package/es2015/plugins/style/style.css +1 -1
  55. package/es2015/plugins/style/style.js +1 -1
  56. package/es2015/plugins/style/style.min.js +1 -1
  57. package/es2015/plugins/todo-list/todo-list.css +1 -1
  58. package/es2015/plugins/todo-list/todo-list.js +1 -1
  59. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  60. package/es2015/plugins/translate/translate.css +1 -1
  61. package/es2015/plugins/translate/translate.js +1 -1
  62. package/es2015/plugins/translate/translate.min.js +1 -1
  63. package/es2015/plugins/tune-block/tune-block.css +1 -1
  64. package/es2015/plugins/tune-block/tune-block.js +1 -1
  65. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  66. package/es2018/jodit.fat.min.js +30 -30
  67. package/es2018/jodit.min.js +16 -16
  68. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
  69. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  70. package/es2018/plugins/backup/backup.min.js +1 -1
  71. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  72. package/es2018/plugins/change-case/change-case.min.js +1 -1
  73. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  74. package/es2018/plugins/emoji/emoji.min.js +1 -1
  75. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  76. package/es2018/plugins/finder/finder.min.js +1 -1
  77. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  78. package/es2018/plugins/google-search/google-search.min.js +1 -1
  79. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  80. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  81. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  82. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  83. package/es2018/plugins/page-break/page-break.min.js +1 -1
  84. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  85. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  86. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  87. package/es2018/plugins/style/style.min.js +1 -1
  88. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  89. package/es2018/plugins/translate/translate.min.js +1 -1
  90. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  91. package/es2021/jodit.css +1 -1
  92. package/es2021/jodit.fat.min.js +32 -32
  93. package/es2021/jodit.js +229 -101
  94. package/es2021/jodit.min.js +24 -24
  95. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  96. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +194 -162
  97. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
  98. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  99. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  100. package/es2021/plugins/backup/backup.css +1 -1
  101. package/es2021/plugins/backup/backup.js +1 -1
  102. package/es2021/plugins/backup/backup.min.js +1 -1
  103. package/es2021/plugins/button-generator/button-generator.css +1 -1
  104. package/es2021/plugins/button-generator/button-generator.js +1 -1
  105. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  106. package/es2021/plugins/change-case/change-case.js +1 -1
  107. package/es2021/plugins/change-case/change-case.min.js +1 -1
  108. package/es2021/plugins/color-picker/color-picker.css +1 -1
  109. package/es2021/plugins/color-picker/color-picker.js +1 -1
  110. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  111. package/es2021/plugins/emoji/emoji.css +1 -1
  112. package/es2021/plugins/emoji/emoji.js +1 -1
  113. package/es2021/plugins/emoji/emoji.min.js +1 -1
  114. package/es2021/plugins/export-docs/export-docs.js +1 -1
  115. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  116. package/es2021/plugins/finder/finder.css +1 -1
  117. package/es2021/plugins/finder/finder.js +1 -1
  118. package/es2021/plugins/finder/finder.min.js +1 -1
  119. package/es2021/plugins/google-maps/google-maps.css +1 -1
  120. package/es2021/plugins/google-maps/google-maps.js +1 -1
  121. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  122. package/es2021/plugins/google-search/google-search.js +1 -1
  123. package/es2021/plugins/google-search/google-search.min.js +1 -1
  124. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  125. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  126. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  127. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  128. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  129. package/es2021/plugins/keyboard/keyboard.css +1 -1
  130. package/es2021/plugins/keyboard/keyboard.js +1 -1
  131. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  132. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  133. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  134. package/es2021/plugins/page-break/page-break.js +1 -1
  135. package/es2021/plugins/page-break/page-break.min.js +1 -1
  136. package/es2021/plugins/paste-code/paste-code.css +1 -1
  137. package/es2021/plugins/paste-code/paste-code.js +1 -1
  138. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  139. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  140. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  141. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  142. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  143. package/es2021/plugins/style/style.css +1 -1
  144. package/es2021/plugins/style/style.js +1 -1
  145. package/es2021/plugins/style/style.min.js +1 -1
  146. package/es2021/plugins/todo-list/todo-list.css +1 -1
  147. package/es2021/plugins/todo-list/todo-list.js +1 -1
  148. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  149. package/es2021/plugins/translate/translate.css +1 -1
  150. package/es2021/plugins/translate/translate.js +1 -1
  151. package/es2021/plugins/translate/translate.min.js +1 -1
  152. package/es2021/plugins/tune-block/tune-block.css +1 -1
  153. package/es2021/plugins/tune-block/tune-block.js +1 -1
  154. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  155. package/es2021.en/jodit.css +1 -1
  156. package/es2021.en/jodit.fat.min.js +83 -83
  157. package/es2021.en/jodit.js +229 -101
  158. package/es2021.en/jodit.min.js +10 -10
  159. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  160. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +194 -162
  161. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +20 -20
  162. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  163. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  164. package/es2021.en/plugins/backup/backup.css +1 -1
  165. package/es2021.en/plugins/backup/backup.js +1 -1
  166. package/es2021.en/plugins/backup/backup.min.js +1 -1
  167. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  168. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  169. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  170. package/es2021.en/plugins/change-case/change-case.js +1 -1
  171. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  172. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  173. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  174. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  175. package/es2021.en/plugins/emoji/emoji.css +1 -1
  176. package/es2021.en/plugins/emoji/emoji.js +1 -1
  177. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  178. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  179. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  180. package/es2021.en/plugins/finder/finder.css +1 -1
  181. package/es2021.en/plugins/finder/finder.js +1 -1
  182. package/es2021.en/plugins/finder/finder.min.js +1 -1
  183. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  184. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  185. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  186. package/es2021.en/plugins/google-search/google-search.js +1 -1
  187. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  188. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  189. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  190. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  191. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  192. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  193. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  194. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  195. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  196. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  197. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  198. package/es2021.en/plugins/page-break/page-break.js +1 -1
  199. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  200. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  201. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  202. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  203. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  204. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  205. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  206. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  207. package/es2021.en/plugins/style/style.css +1 -1
  208. package/es2021.en/plugins/style/style.js +1 -1
  209. package/es2021.en/plugins/style/style.min.js +1 -1
  210. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  211. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  212. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  213. package/es2021.en/plugins/translate/translate.css +1 -1
  214. package/es2021.en/plugins/translate/translate.js +1 -1
  215. package/es2021.en/plugins/translate/translate.min.js +1 -1
  216. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  217. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  218. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  219. package/es5/jodit.css +2 -2
  220. package/es5/jodit.fat.min.js +2 -2
  221. package/es5/jodit.js +249 -105
  222. package/es5/jodit.min.css +2 -2
  223. package/es5/jodit.min.js +2 -2
  224. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  225. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +221 -174
  226. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  227. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  228. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  229. package/es5/plugins/backup/backup.css +1 -1
  230. package/es5/plugins/backup/backup.js +1 -1
  231. package/es5/plugins/backup/backup.min.js +1 -1
  232. package/es5/plugins/button-generator/button-generator.css +1 -1
  233. package/es5/plugins/button-generator/button-generator.js +1 -1
  234. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  235. package/es5/plugins/change-case/change-case.js +1 -1
  236. package/es5/plugins/change-case/change-case.min.js +1 -1
  237. package/es5/plugins/color-picker/color-picker.css +1 -1
  238. package/es5/plugins/color-picker/color-picker.js +1 -1
  239. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  240. package/es5/plugins/emoji/emoji.css +1 -1
  241. package/es5/plugins/emoji/emoji.js +1 -1
  242. package/es5/plugins/emoji/emoji.min.js +1 -1
  243. package/es5/plugins/export-docs/export-docs.js +1 -1
  244. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  245. package/es5/plugins/finder/finder.css +1 -1
  246. package/es5/plugins/finder/finder.js +1 -1
  247. package/es5/plugins/finder/finder.min.js +1 -1
  248. package/es5/plugins/google-maps/google-maps.css +1 -1
  249. package/es5/plugins/google-maps/google-maps.js +1 -1
  250. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  251. package/es5/plugins/google-search/google-search.js +1 -1
  252. package/es5/plugins/google-search/google-search.min.js +1 -1
  253. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  254. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  255. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  256. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  257. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  258. package/es5/plugins/keyboard/keyboard.css +1 -1
  259. package/es5/plugins/keyboard/keyboard.js +1 -1
  260. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  261. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  262. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  263. package/es5/plugins/page-break/page-break.js +1 -1
  264. package/es5/plugins/page-break/page-break.min.js +1 -1
  265. package/es5/plugins/paste-code/paste-code.css +1 -1
  266. package/es5/plugins/paste-code/paste-code.js +1 -1
  267. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  268. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  269. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  270. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  271. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  272. package/es5/plugins/style/style.css +1 -1
  273. package/es5/plugins/style/style.js +1 -1
  274. package/es5/plugins/style/style.min.js +1 -1
  275. package/es5/plugins/todo-list/todo-list.css +1 -1
  276. package/es5/plugins/todo-list/todo-list.js +1 -1
  277. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  278. package/es5/plugins/translate/translate.css +1 -1
  279. package/es5/plugins/translate/translate.js +1 -1
  280. package/es5/plugins/translate/translate.min.js +1 -1
  281. package/es5/plugins/tune-block/tune-block.css +1 -1
  282. package/es5/plugins/tune-block/tune-block.js +1 -1
  283. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  284. package/es5/polyfills.fat.min.js +1 -1
  285. package/es5/polyfills.js +1 -1
  286. package/es5/polyfills.min.js +1 -1
  287. package/esm/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -1
  288. package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +1 -1
  289. package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +7 -1
  290. package/esm/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +3 -1
  291. package/esm/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -1
  292. package/esm/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +7 -1
  293. package/package.json +1 -1
  294. package/types/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +5 -1
  295. package/types/plugins/ai-assistant-pro/ui/main-panel/main-panel.d.ts +1 -1
  296. package/types/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +7 -1
  297. package/types/plugins/ai-assistant-pro/ui/settings-popup/dialog-settings.d.ts +3 -1
  298. package/types/plugins/ai-assistant-pro/ui/settings-popup/global-settings.d.ts +5 -1
  299. package/types/plugins/ai-assistant-pro/ui/settings-popup/settings-popup.d.ts +7 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.9.22
4
+ * Version: v4.9.27
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -5344,7 +5344,7 @@ UIGlobalSettings = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__de
5344
5344
 
5345
5345
  "use strict";
5346
5346
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5347
- /* harmony export */ marked: function() { return /* binding */ d; }
5347
+ /* harmony export */ marked: function() { return /* binding */ g; }
5348
5348
  /* harmony export */ });
5349
5349
  /* unused harmony exports Hooks, Lexer, Marked, Parser, Renderer, TextRenderer, Tokenizer, defaults, getDefaults, lexer, options, parse, parseInline, parser, setOptions, use, walkTokens */
5350
5350
  function _define_property(obj, key, value) {
@@ -5362,14 +5362,14 @@ function _define_property(obj, key, value) {
5362
5362
  }
5363
5363
  var _class;
5364
5364
  /**
5365
- * marked v17.0.1 - a markdown parser
5366
- * Copyright (c) 2018-2025, MarkedJS. (MIT License)
5365
+ * marked v17.0.3 - a markdown parser
5366
+ * Copyright (c) 2018-2026, MarkedJS. (MIT License)
5367
5367
  * Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
5368
5368
  * https://github.com/markedjs/marked
5369
5369
  */ /**
5370
5370
  * DO NOT EDIT THIS FILE
5371
5371
  * The code in this file is generated from files in ./src/
5372
- */ function L() {
5372
+ */ function M() {
5373
5373
  return {
5374
5374
  async: !1,
5375
5375
  breaks: !1,
@@ -5383,11 +5383,11 @@ var _class;
5383
5383
  walkTokens: null
5384
5384
  };
5385
5385
  }
5386
- var T = L();
5387
- function Z(u) {
5386
+ var T = M();
5387
+ function H(u) {
5388
5388
  T = u;
5389
5389
  }
5390
- var C = {
5390
+ var _ = {
5391
5391
  exec: ()=>null
5392
5392
  };
5393
5393
  function k(u, e = "") {
@@ -5400,7 +5400,7 @@ function k(u, e = "") {
5400
5400
  };
5401
5401
  return n;
5402
5402
  }
5403
- var me = (()=>{
5403
+ var Re = (()=>{
5404
5404
  try {
5405
5405
  return !!new RegExp("(?<=1)(?<!1)");
5406
5406
  } catch {
@@ -5423,7 +5423,6 @@ var me = (()=>{
5423
5423
  blockquoteStart: /^ {0,3}>/,
5424
5424
  blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
5425
5425
  blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
5426
- listReplaceTabs: /^\t+/,
5427
5426
  listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
5428
5427
  listIsTask: /^\[[ xX]\] +\S/,
5429
5428
  listReplaceTask: /^\[[ xX]\] +/,
@@ -5463,92 +5462,97 @@ var me = (()=>{
5463
5462
  hrRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
5464
5463
  fencesBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`),
5465
5464
  headingBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}#`),
5466
- htmlBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i")
5467
- }, xe = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Re = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Te = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, N = /(?:[*+-]|\d{1,9}[.)])/, re = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, se = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Oe = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Q = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", j = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", j).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ie = k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), $e = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex(), U = {
5468
- blockquote: $e,
5469
- code: be,
5470
- def: ye,
5471
- fences: Re,
5472
- heading: Te,
5465
+ htmlBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i"),
5466
+ blockquoteBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}>`)
5467
+ }, Te = /^(?:[ \t]*(?:\n|$))+/, Oe = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, we = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, ye = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, N = / {0,3}(?:[*+-]|\d{1,9}[.)])/, re = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, se = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Pe = k(re).replace(/bull/g, N).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Q = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Se = /^[^\n]+/, F = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $e = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", F).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), _e = k(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, N).getRegex(), q = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", j = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Le = k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", j).replace("tag", q).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ie = k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex(), Me = k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ie).getRegex(), U = {
5468
+ blockquote: Me,
5469
+ code: Oe,
5470
+ def: $e,
5471
+ fences: we,
5472
+ heading: ye,
5473
5473
  hr: I,
5474
- html: Se,
5474
+ html: Le,
5475
5475
  lheading: se,
5476
- list: Pe,
5477
- newline: xe,
5476
+ list: _e,
5477
+ newline: Te,
5478
5478
  paragraph: ie,
5479
- table: C,
5480
- text: we
5481
- }, te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = {
5479
+ table: _,
5480
+ text: Se
5481
+ }, te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex(), ze = {
5482
5482
  ...U,
5483
- lheading: Oe,
5483
+ lheading: Pe,
5484
5484
  table: te,
5485
- paragraph: k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex()
5486
- }, Le = {
5485
+ paragraph: k(Q).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", te).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", q).getRegex()
5486
+ }, Ce = {
5487
5487
  ...U,
5488
5488
  html: k(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", j).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
5489
5489
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
5490
5490
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
5491
- fences: C,
5491
+ fences: _,
5492
5492
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5493
5493
  paragraph: k(Q).replace("hr", I).replace("heading", ` *#{1,6} *[^
5494
5494
  ]`).replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5495
- }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, oe = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, K = /[\s\p{P}\p{S}]/u, ae = /[^\s\p{P}\p{S}]/u, Ce = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex(), le = /(?!~)[\p{P}\p{S}]/u, Ie = /(?!~)[\s\p{P}\p{S}]/u, Ee = /(?:[^\s\p{P}\p{S}]|~)/u, Be = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", me ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ue = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = k(ue, "u").replace(/punct/g, D).getRegex(), ve = k(ue, "u").replace(/punct/g, le).getRegex(), pe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = k(pe, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, D).getRegex(), He = k(pe, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, Ie).replace(/punct/g, le).getRegex(), Ze = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, D).getRegex(), Ge = k(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Qe = k(j).replace("(?:-->|$)", "-->").getRegex(), Fe = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, je = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ce = k(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", F).getRegex(), he = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex(), Ue = k("reflink|nolink(?!\\()", "g").replace("reflink", ce).replace("nolink", he).getRegex(), ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, W = {
5496
- _backpedal: C,
5497
- anyPunctuation: Ge,
5498
- autolink: Ne,
5499
- blockSkip: Be,
5495
+ }, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ie = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, oe = /^( {2,}|\\)\n(?!\s*$)/, Ee = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, v = /[\p{P}\p{S}]/u, K = /[\s\p{P}\p{S}]/u, ae = /[^\s\p{P}\p{S}]/u, Be = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex(), le = /(?!~)[\p{P}\p{S}]/u, De = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ue = /(?![*_])[\p{P}\p{S}]/u, ve = /(?![*_])[\s\p{P}\p{S}]/u, Ge = /(?:[^\s\p{P}\p{S}]|[*_])/u, He = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Re ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ze = k(pe, "u").replace(/punct/g, v).getRegex(), Ne = k(pe, "u").replace(/punct/g, le).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Qe = k(ce, "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex(), Fe = k(ce, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, De).replace(/punct/g, le).getRegex(), je = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ae).replace(/punctSpace/g, K).replace(/punct/g, v).getRegex(), Ue = k(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, ue).getRegex(), Ke = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", We = k(Ke, "gu").replace(/notPunctSpace/g, Ge).replace(/punctSpace/g, ve).replace(/punct/g, ue).getRegex(), Xe = k(/\\(punct)/, "gu").replace(/punct/g, v).getRegex(), Je = k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Ve = k(j).replace("(?:-->|$)", "-->").getRegex(), Ye = k("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Ve).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), D = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, et = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", D).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he = k(/^!?\[(label)\]\[(ref)\]/).replace("label", D).replace("ref", F).getRegex(), ke = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", F).getRegex(), tt = k("reflink|nolink(?!\\()", "g").replace("reflink", he).replace("nolink", ke).getRegex(), ne = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, W = {
5496
+ _backpedal: _,
5497
+ anyPunctuation: Xe,
5498
+ autolink: Je,
5499
+ blockSkip: He,
5500
5500
  br: oe,
5501
- code: ze,
5502
- del: C,
5503
- emStrongLDelim: qe,
5504
- emStrongRDelimAst: De,
5505
- emStrongRDelimUnd: Ze,
5506
- escape: Me,
5507
- link: je,
5508
- nolink: he,
5509
- punctuation: Ce,
5510
- reflink: ce,
5511
- reflinkSearch: Ue,
5512
- tag: Fe,
5513
- text: Ae,
5514
- url: C
5515
- }, Ke = {
5501
+ code: Ie,
5502
+ del: _,
5503
+ delLDelim: _,
5504
+ delRDelim: _,
5505
+ emStrongLDelim: Ze,
5506
+ emStrongRDelimAst: Qe,
5507
+ emStrongRDelimUnd: je,
5508
+ escape: Ae,
5509
+ link: et,
5510
+ nolink: ke,
5511
+ punctuation: Be,
5512
+ reflink: he,
5513
+ reflinkSearch: tt,
5514
+ tag: Ye,
5515
+ text: Ee,
5516
+ url: _
5517
+ }, nt = {
5516
5518
  ...W,
5517
- link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
5518
- reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
5519
- }, G = {
5519
+ link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", D).getRegex(),
5520
+ reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", D).getRegex()
5521
+ }, Z = {
5520
5522
  ...W,
5521
- emStrongRDelimAst: He,
5522
- emStrongLDelim: ve,
5523
+ emStrongRDelimAst: Fe,
5524
+ emStrongLDelim: Ne,
5525
+ delLDelim: Ue,
5526
+ delRDelim: We,
5523
5527
  url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", ne).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
5524
5528
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
5525
5529
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
5526
5530
  text: k(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", ne).getRegex()
5527
- }, We = {
5528
- ...G,
5531
+ }, rt = {
5532
+ ...Z,
5529
5533
  br: k(oe).replace("{2,}", "*").getRegex(),
5530
- text: k(G.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5534
+ text: k(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5531
5535
  }, E = {
5532
5536
  normal: U,
5533
- gfm: _e,
5534
- pedantic: Le
5535
- }, M = {
5537
+ gfm: ze,
5538
+ pedantic: Ce
5539
+ }, z = {
5536
5540
  normal: W,
5537
- gfm: G,
5538
- breaks: We,
5539
- pedantic: Ke
5541
+ gfm: Z,
5542
+ breaks: rt,
5543
+ pedantic: nt
5540
5544
  };
5541
- var Xe = {
5545
+ var st = {
5542
5546
  "&": "&amp;",
5543
5547
  "<": "&lt;",
5544
5548
  ">": "&gt;",
5545
5549
  '"': "&quot;",
5546
5550
  "'": "&#39;"
5547
- }, ke = (u)=>Xe[u];
5548
- function w(u, e) {
5551
+ }, de = (u)=>st[u];
5552
+ function O(u, e) {
5549
5553
  if (e) {
5550
- if (m.escapeTest.test(u)) return u.replace(m.escapeReplace, ke);
5551
- } else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode, ke);
5554
+ if (m.escapeTest.test(u)) return u.replace(m.escapeReplace, de);
5555
+ } else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode, de);
5552
5556
  return u;
5553
5557
  }
5554
5558
  function X(u) {
@@ -5570,7 +5574,7 @@ function J(u, e) {
5570
5574
  for(; r < n.length; r++)n[r] = n[r].trim().replace(m.slashPipe, "|");
5571
5575
  return n;
5572
5576
  }
5573
- function z(u, e, t) {
5577
+ function C(u, e, t) {
5574
5578
  let n = u.length;
5575
5579
  if (n === 0) return "";
5576
5580
  let r = 0;
@@ -5582,7 +5586,7 @@ function z(u, e, t) {
5582
5586
  }
5583
5587
  return u.slice(0, n - r);
5584
5588
  }
5585
- function de(u, e) {
5589
+ function ge(u, e) {
5586
5590
  if (u.indexOf(e[1]) === -1) return -1;
5587
5591
  let t = 0;
5588
5592
  for(let n = 0; n < u.length; n++)if (u[n] === "\\") n++;
@@ -5590,7 +5594,15 @@ function de(u, e) {
5590
5594
  else if (u[n] === e[1] && (t--, t < 0)) return n;
5591
5595
  return t > 0 ? -2 : -1;
5592
5596
  }
5593
- function ge(u, e, t, n, r) {
5597
+ function fe(u, e = 0) {
5598
+ let t = e, n = "";
5599
+ for (let r of u)if (r === " ") {
5600
+ let i = 4 - t % 4;
5601
+ n += " ".repeat(i), t += i;
5602
+ } else n += r, t++;
5603
+ return n;
5604
+ }
5605
+ function me(u, e, t, n, r) {
5594
5606
  let i = e.href, s = e.title || null, a = u[1].replace(r.other.outputLinkReplace, "$1");
5595
5607
  n.state.inLink = !0;
5596
5608
  let o = {
@@ -5603,7 +5615,7 @@ function ge(u, e, t, n, r) {
5603
5615
  };
5604
5616
  return n.state.inLink = !1, o;
5605
5617
  }
5606
- function Je(u, e, t) {
5618
+ function it(u, e, t) {
5607
5619
  let n = u.match(t.other.indentCodeCompensation);
5608
5620
  if (n === null) return e;
5609
5621
  let r = n[1];
@@ -5616,7 +5628,7 @@ function Je(u, e, t) {
5616
5628
  }).join(`
5617
5629
  `);
5618
5630
  }
5619
- var y = class {
5631
+ var w = class {
5620
5632
  space(e) {
5621
5633
  let t = this.rules.block.newline.exec(e);
5622
5634
  if (t && t[0].length > 0) return {
@@ -5632,7 +5644,7 @@ var y = class {
5632
5644
  type: "code",
5633
5645
  raw: t[0],
5634
5646
  codeBlockStyle: "indented",
5635
- text: this.options.pedantic ? n : z(n, `
5647
+ text: this.options.pedantic ? n : C(n, `
5636
5648
  `)
5637
5649
  };
5638
5650
  }
@@ -5640,7 +5652,7 @@ var y = class {
5640
5652
  fences(e) {
5641
5653
  let t = this.rules.block.fences.exec(e);
5642
5654
  if (t) {
5643
- let n = t[0], r = Je(n, t[3] || "", this.rules);
5655
+ let n = t[0], r = it(n, t[3] || "", this.rules);
5644
5656
  return {
5645
5657
  type: "code",
5646
5658
  raw: n,
@@ -5654,7 +5666,7 @@ var y = class {
5654
5666
  if (t) {
5655
5667
  let n = t[2].trim();
5656
5668
  if (this.rules.other.endingHash.test(n)) {
5657
- let r = z(n, "#");
5669
+ let r = C(n, "#");
5658
5670
  (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
5659
5671
  }
5660
5672
  return {
@@ -5670,14 +5682,14 @@ var y = class {
5670
5682
  let t = this.rules.block.hr.exec(e);
5671
5683
  if (t) return {
5672
5684
  type: "hr",
5673
- raw: z(t[0], `
5685
+ raw: C(t[0], `
5674
5686
  `)
5675
5687
  };
5676
5688
  }
5677
5689
  blockquote(e) {
5678
5690
  let t = this.rules.block.blockquote.exec(e);
5679
5691
  if (t) {
5680
- let n = z(t[0], `
5692
+ let n = C(t[0], `
5681
5693
  `).split(`
5682
5694
  `), r = "", i = "", s = [];
5683
5695
  for(; n.length > 0;){
@@ -5692,21 +5704,21 @@ var y = class {
5692
5704
  r = r ? `${r}
5693
5705
  ${p}` : p, i = i ? `${i}
5694
5706
  ${c}` : c;
5695
- let g = this.lexer.state.top;
5696
- if (this.lexer.state.top = !0, this.lexer.blockTokens(c, s, !0), this.lexer.state.top = g, n.length === 0) break;
5707
+ let d = this.lexer.state.top;
5708
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(c, s, !0), this.lexer.state.top = d, n.length === 0) break;
5697
5709
  let h = s.at(-1);
5698
5710
  if (h?.type === "code") break;
5699
5711
  if (h?.type === "blockquote") {
5700
5712
  let R = h, f = R.raw + `
5701
5713
  ` + n.join(`
5702
- `), O = this.blockquote(f);
5703
- s[s.length - 1] = O, r = r.substring(0, r.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
5714
+ `), S = this.blockquote(f);
5715
+ s[s.length - 1] = S, r = r.substring(0, r.length - R.raw.length) + S.raw, i = i.substring(0, i.length - R.text.length) + S.text;
5704
5716
  break;
5705
5717
  } else if (h?.type === "list") {
5706
5718
  let R = h, f = R.raw + `
5707
5719
  ` + n.join(`
5708
- `), O = this.list(f);
5709
- s[s.length - 1] = O, r = r.substring(0, r.length - h.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f.substring(s.at(-1).raw.length).split(`
5720
+ `), S = this.list(f);
5721
+ s[s.length - 1] = S, r = r.substring(0, r.length - h.raw.length) + S.raw, i = i.substring(0, i.length - R.raw.length) + S.raw, n = f.substring(s.at(-1).raw.length).split(`
5710
5722
  `);
5711
5723
  continue;
5712
5724
  }
@@ -5736,25 +5748,25 @@ ${c}` : c;
5736
5748
  let l = !1, p = "", c = "";
5737
5749
  if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
5738
5750
  p = t[0], e = e.substring(p.length);
5739
- let g = t[2].split(`
5740
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (O)=>" ".repeat(3 * O.length)), h = e.split(`
5741
- `, 1)[0], R = !g.trim(), f = 0;
5742
- if (this.options.pedantic ? (f = 2, c = g.trimStart()) : R ? f = t[1].length + 1 : (f = t[2].search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = g.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
5751
+ let d = fe(t[2].split(`
5752
+ `, 1)[0], t[1].length), h = e.split(`
5753
+ `, 1)[0], R = !d.trim(), f = 0;
5754
+ if (this.options.pedantic ? (f = 2, c = d.trimStart()) : R ? f = t[1].length + 1 : (f = d.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = d.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
5743
5755
  `, e = e.substring(h.length + 1), l = !0), !l) {
5744
- let O = this.rules.other.nextBulletRegex(f), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), fe = this.rules.other.htmlBeginRegex(f);
5756
+ let S = this.rules.other.nextBulletRegex(f), V = this.rules.other.hrRegex(f), Y = this.rules.other.fencesBeginRegex(f), ee = this.rules.other.headingBeginRegex(f), xe = this.rules.other.htmlBeginRegex(f), be = this.rules.other.blockquoteBeginRegex(f);
5745
5757
  for(; e;){
5746
- let H = e.split(`
5758
+ let G = e.split(`
5747
5759
  `, 1)[0], A;
5748
- if (h = H, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), Y.test(h) || ee.test(h) || fe.test(h) || O.test(h) || V.test(h)) break;
5760
+ if (h = G, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), Y.test(h) || ee.test(h) || xe.test(h) || be.test(h) || S.test(h) || V.test(h)) break;
5749
5761
  if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim()) c += `
5750
5762
  ` + A.slice(f);
5751
5763
  else {
5752
- if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(g) || ee.test(g) || V.test(g)) break;
5764
+ if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(d) || ee.test(d) || V.test(d)) break;
5753
5765
  c += `
5754
5766
  ` + h;
5755
5767
  }
5756
- !R && !h.trim() && (R = !0), p += H + `
5757
- `, e = e.substring(H.length + 1), g = A.slice(f);
5768
+ R = !h.trim(), p += G + `
5769
+ `, e = e.substring(G.length + 1), d = A.slice(f);
5758
5770
  }
5759
5771
  }
5760
5772
  i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(p) && (a = !0)), i.items.push({
@@ -5800,7 +5812,7 @@ ${c}` : c;
5800
5812
  }
5801
5813
  }
5802
5814
  if (!i.loose) {
5803
- let p = l.tokens.filter((g)=>g.type === "space"), c = p.length > 0 && p.some((g)=>this.rules.other.anyLine.test(g.raw));
5815
+ let p = l.tokens.filter((d)=>d.type === "space"), c = p.length > 0 && p.some((d)=>this.rules.other.anyLine.test(d.raw));
5804
5816
  i.loose = c;
5805
5817
  }
5806
5818
  }
@@ -5919,10 +5931,10 @@ ${c}` : c;
5919
5931
  let n = t[2].trim();
5920
5932
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
5921
5933
  if (!this.rules.other.endAngleBracket.test(n)) return;
5922
- let s = z(n.slice(0, -1), "\\");
5934
+ let s = C(n.slice(0, -1), "\\");
5923
5935
  if ((n.length - s.length) % 2 === 0) return;
5924
5936
  } else {
5925
- let s = de(t[2], "()");
5937
+ let s = ge(t[2], "()");
5926
5938
  if (s === -2) return;
5927
5939
  if (s > -1) {
5928
5940
  let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
@@ -5934,7 +5946,7 @@ ${c}` : c;
5934
5946
  let s = this.rules.other.pedanticHrefTitle.exec(r);
5935
5947
  s && (r = s[1], i = s[3]);
5936
5948
  } else i = t[3] ? t[3].slice(1, -1) : "";
5937
- return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), ge(t, {
5949
+ return r = r.trim(), this.rules.other.startAngleBracket.test(r) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r = r.slice(1) : r = r.slice(1, -1)), me(t, {
5938
5950
  href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
5939
5951
  title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
5940
5952
  }, t[0], this.lexer, this.rules);
@@ -5952,7 +5964,7 @@ ${c}` : c;
5952
5964
  text: s
5953
5965
  };
5954
5966
  }
5955
- return ge(n, i, n[0], this.lexer, this.rules);
5967
+ return me(n, i, n[0], this.lexer, this.rules);
5956
5968
  }
5957
5969
  }
5958
5970
  emStrong(e, t, n = "") {
@@ -5975,9 +5987,9 @@ ${c}` : c;
5975
5987
  }
5976
5988
  if (l -= o, l > 0) continue;
5977
5989
  o = Math.min(o, o + l + p);
5978
- let g = [
5990
+ let d = [
5979
5991
  ...r[0]
5980
- ][0].length, h = e.slice(0, s + r.index + g + o);
5992
+ ][0].length, h = e.slice(0, s + r.index + d + o);
5981
5993
  if (Math.min(s, o) % 2) {
5982
5994
  let f = h.slice(1, -1);
5983
5995
  return {
@@ -6015,14 +6027,34 @@ ${c}` : c;
6015
6027
  raw: t[0]
6016
6028
  };
6017
6029
  }
6018
- del(e) {
6019
- let t = this.rules.inline.del.exec(e);
6020
- if (t) return {
6021
- type: "del",
6022
- raw: t[0],
6023
- text: t[2],
6024
- tokens: this.lexer.inlineTokens(t[2])
6025
- };
6030
+ del(e, t, n = "") {
6031
+ let r = this.rules.inline.delLDelim.exec(e);
6032
+ if (!r) return;
6033
+ if (!(r[1] || "") || !n || this.rules.inline.punctuation.exec(n)) {
6034
+ let s = [
6035
+ ...r[0]
6036
+ ].length - 1, a, o, l = s, p = this.rules.inline.delRDelim;
6037
+ for(p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t)) != null;){
6038
+ if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (o = [
6039
+ ...a
6040
+ ].length, o !== s)) continue;
6041
+ if (r[3] || r[4]) {
6042
+ l += o;
6043
+ continue;
6044
+ }
6045
+ if (l -= o, l > 0) continue;
6046
+ o = Math.min(o, o + l);
6047
+ let c = [
6048
+ ...r[0]
6049
+ ][0].length, d = e.slice(0, s + r.index + c + o), h = d.slice(s, -s);
6050
+ return {
6051
+ type: "del",
6052
+ raw: d,
6053
+ text: h,
6054
+ tokens: this.lexer.inlineTokens(h)
6055
+ };
6056
+ }
6057
+ }
6026
6058
  }
6027
6059
  autolink(e) {
6028
6060
  let t = this.rules.inline.autolink.exec(e);
@@ -6092,7 +6124,7 @@ var x = class u {
6092
6124
  static get rules() {
6093
6125
  return {
6094
6126
  block: E,
6095
- inline: M
6127
+ inline: z
6096
6128
  };
6097
6129
  }
6098
6130
  static lex(e, t) {
@@ -6267,7 +6299,7 @@ var x = class u {
6267
6299
  e = e.substring(o.raw.length), t.push(o);
6268
6300
  continue;
6269
6301
  }
6270
- if (o = this.tokenizer.del(e)) {
6302
+ if (o = this.tokenizer.del(e, n, a)) {
6271
6303
  e = e.substring(o.raw.length), t.push(o);
6272
6304
  continue;
6273
6305
  }
@@ -6281,11 +6313,11 @@ var x = class u {
6281
6313
  }
6282
6314
  let l = e;
6283
6315
  if (this.options.extensions?.startInline) {
6284
- let p = 1 / 0, c = e.slice(1), g;
6316
+ let p = 1 / 0, c = e.slice(1), d;
6285
6317
  this.options.extensions.startInline.forEach((h)=>{
6286
- g = h.call({
6318
+ d = h.call({
6287
6319
  lexer: this
6288
- }, c), typeof g == "number" && g >= 0 && (p = Math.min(p, g));
6320
+ }, c), typeof d == "number" && d >= 0 && (p = Math.min(p, d));
6289
6321
  }), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
6290
6322
  }
6291
6323
  if (o = this.tokenizer.inlineText(l)) {
@@ -6310,7 +6342,7 @@ var x = class u {
6310
6342
  _define_property(this, "state", void 0);
6311
6343
  _define_property(this, "inlineQueue", void 0);
6312
6344
  _define_property(this, "tokenizer", void 0);
6313
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
6345
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new w, this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
6314
6346
  inLink: !1,
6315
6347
  inRawBlock: !1,
6316
6348
  top: !0
@@ -6318,20 +6350,20 @@ var x = class u {
6318
6350
  let t = {
6319
6351
  other: m,
6320
6352
  block: E.normal,
6321
- inline: M.normal
6353
+ inline: z.normal
6322
6354
  };
6323
- this.options.pedantic ? (t.block = E.pedantic, t.inline = M.pedantic) : this.options.gfm && (t.block = E.gfm, this.options.breaks ? t.inline = M.breaks : t.inline = M.gfm), this.tokenizer.rules = t;
6355
+ this.options.pedantic ? (t.block = E.pedantic, t.inline = z.pedantic) : this.options.gfm && (t.block = E.gfm, this.options.breaks ? t.inline = z.breaks : t.inline = z.gfm), this.tokenizer.rules = t;
6324
6356
  }
6325
6357
  };
6326
- var P = class {
6358
+ var y = class {
6327
6359
  space(e) {
6328
6360
  return "";
6329
6361
  }
6330
6362
  code({ text: e, lang: t, escaped: n }) {
6331
6363
  let r = (t || "").match(m.notSpaceStart)?.[0], i = e.replace(m.endingNewline, "") + `
6332
6364
  `;
6333
- return r ? '<pre><code class="language-' + w(r) + '">' + (n ? i : w(i, !0)) + `</code></pre>
6334
- ` : "<pre><code>" + (n ? i : w(i, !0)) + `</code></pre>
6365
+ return r ? '<pre><code class="language-' + O(r) + '">' + (n ? i : O(i, !0)) + `</code></pre>
6366
+ ` : "<pre><code>" + (n ? i : O(i, !0)) + `</code></pre>
6335
6367
  `;
6336
6368
  }
6337
6369
  blockquote({ tokens: e }) {
@@ -6413,7 +6445,7 @@ ${e}</tr>
6413
6445
  return `<em>${this.parser.parseInline(e)}</em>`;
6414
6446
  }
6415
6447
  codespan({ text: e }) {
6416
- return `<code>${w(e, !0)}</code>`;
6448
+ return `<code>${O(e, !0)}</code>`;
6417
6449
  }
6418
6450
  br(e) {
6419
6451
  return "<br>";
@@ -6426,18 +6458,18 @@ ${e}</tr>
6426
6458
  if (i === null) return r;
6427
6459
  e = i;
6428
6460
  let s = '<a href="' + e + '"';
6429
- return t && (s += ' title="' + w(t) + '"'), s += ">" + r + "</a>", s;
6461
+ return t && (s += ' title="' + O(t) + '"'), s += ">" + r + "</a>", s;
6430
6462
  }
6431
6463
  image({ href: e, title: t, text: n, tokens: r }) {
6432
6464
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
6433
6465
  let i = X(e);
6434
- if (i === null) return w(n);
6466
+ if (i === null) return O(n);
6435
6467
  e = i;
6436
- let s = `<img src="${e}" alt="${n}"`;
6437
- return t && (s += ` title="${w(t)}"`), s += ">", s;
6468
+ let s = `<img src="${e}" alt="${O(n)}"`;
6469
+ return t && (s += ` title="${O(t)}"`), s += ">", s;
6438
6470
  }
6439
6471
  text(e) {
6440
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : w(e.text);
6472
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : O(e.text);
6441
6473
  }
6442
6474
  constructor(e){
6443
6475
  _define_property(this, "options", void 0);
@@ -6676,10 +6708,10 @@ var b = class u {
6676
6708
  _define_property(this, "options", void 0);
6677
6709
  _define_property(this, "renderer", void 0);
6678
6710
  _define_property(this, "textRenderer", void 0);
6679
- this.options = e || T, this.options.renderer = this.options.renderer || new P, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $;
6711
+ this.options = e || T, this.options.renderer = this.options.renderer || new y, this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $;
6680
6712
  }
6681
6713
  };
6682
- var S = (_class = class {
6714
+ var P = (_class = class {
6683
6715
  preprocess(e) {
6684
6716
  return e;
6685
6717
  }
@@ -6772,7 +6804,7 @@ var B = class {
6772
6804
  }
6773
6805
  "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
6774
6806
  }), r.extensions = t), n.renderer) {
6775
- let i = this.defaults.renderer || new P(this.defaults);
6807
+ let i = this.defaults.renderer || new y(this.defaults);
6776
6808
  for(let s in n.renderer){
6777
6809
  if (!(s in i)) throw new Error(`renderer '${s}' does not exist`);
6778
6810
  if ([
@@ -6788,7 +6820,7 @@ var B = class {
6788
6820
  r.renderer = i;
6789
6821
  }
6790
6822
  if (n.tokenizer) {
6791
- let i = this.defaults.tokenizer || new y(this.defaults);
6823
+ let i = this.defaults.tokenizer || new w(this.defaults);
6792
6824
  for(let s in n.tokenizer){
6793
6825
  if (!(s in i)) throw new Error(`tokenizer '${s}' does not exist`);
6794
6826
  if ([
@@ -6805,7 +6837,7 @@ var B = class {
6805
6837
  r.tokenizer = i;
6806
6838
  }
6807
6839
  if (n.hooks) {
6808
- let i = this.defaults.hooks || new S;
6840
+ let i = this.defaults.hooks || new P;
6809
6841
  for(let s in n.hooks){
6810
6842
  if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
6811
6843
  if ([
@@ -6813,17 +6845,17 @@ var B = class {
6813
6845
  "block"
6814
6846
  ].includes(s)) continue;
6815
6847
  let a = s, o = n.hooks[a], l = i[a];
6816
- S.passThroughHooks.has(s) ? i[a] = (p)=>{
6817
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s)) return (async ()=>{
6818
- let g = await o.call(i, p);
6819
- return l.call(i, g);
6848
+ P.passThroughHooks.has(s) ? i[a] = (p)=>{
6849
+ if (this.defaults.async && P.passThroughHooksRespectAsync.has(s)) return (async ()=>{
6850
+ let d = await o.call(i, p);
6851
+ return l.call(i, d);
6820
6852
  })();
6821
6853
  let c = o.call(i, p);
6822
6854
  return l.call(i, c);
6823
6855
  } : i[a] = (...p)=>{
6824
6856
  if (this.defaults.async) return (async ()=>{
6825
- let g = await o.apply(i, p);
6826
- return g === !1 && (g = await l.apply(i, p)), g;
6857
+ let d = await o.apply(i, p);
6858
+ return d === !1 && (d = await l.apply(i, p)), d;
6827
6859
  })();
6828
6860
  let c = o.apply(i, p);
6829
6861
  return c === !1 && (c = l.apply(i, p)), c;
@@ -6888,7 +6920,7 @@ var B = class {
6888
6920
  return (n)=>{
6889
6921
  if (n.message += `
6890
6922
  Please report this to https://github.com/markedjs/marked.`, e) {
6891
- let r = "<p>An error occurred:</p><pre>" + w(n.message + "", !0) + "</pre>";
6923
+ let r = "<p>An error occurred:</p><pre>" + O(n.message + "", !0) + "</pre>";
6892
6924
  return t ? Promise.resolve(r) : r;
6893
6925
  }
6894
6926
  if (t) return Promise.reject(n);
@@ -6896,45 +6928,45 @@ Please report this to https://github.com/markedjs/marked.`, e) {
6896
6928
  };
6897
6929
  }
6898
6930
  constructor(...e){
6899
- _define_property(this, "defaults", L());
6931
+ _define_property(this, "defaults", M());
6900
6932
  _define_property(this, "options", this.setOptions);
6901
6933
  _define_property(this, "parse", this.parseMarkdown(!0));
6902
6934
  _define_property(this, "parseInline", this.parseMarkdown(!1));
6903
6935
  _define_property(this, "Parser", b);
6904
- _define_property(this, "Renderer", P);
6936
+ _define_property(this, "Renderer", y);
6905
6937
  _define_property(this, "TextRenderer", $);
6906
6938
  _define_property(this, "Lexer", x);
6907
- _define_property(this, "Tokenizer", y);
6908
- _define_property(this, "Hooks", S);
6939
+ _define_property(this, "Tokenizer", w);
6940
+ _define_property(this, "Hooks", P);
6909
6941
  this.use(...e);
6910
6942
  }
6911
6943
  };
6912
- var _ = new B;
6913
- function d(u, e) {
6914
- return _.parse(u, e);
6944
+ var L = new B;
6945
+ function g(u, e) {
6946
+ return L.parse(u, e);
6915
6947
  }
6916
- d.options = d.setOptions = function(u) {
6917
- return _.setOptions(u), d.defaults = _.defaults, Z(d.defaults), d;
6948
+ g.options = g.setOptions = function(u) {
6949
+ return L.setOptions(u), g.defaults = L.defaults, H(g.defaults), g;
6918
6950
  };
6919
- d.getDefaults = L;
6920
- d.defaults = T;
6921
- d.use = function(...u) {
6922
- return _.use(...u), d.defaults = _.defaults, Z(d.defaults), d;
6951
+ g.getDefaults = M;
6952
+ g.defaults = T;
6953
+ g.use = function(...u) {
6954
+ return L.use(...u), g.defaults = L.defaults, H(g.defaults), g;
6923
6955
  };
6924
- d.walkTokens = function(u, e) {
6925
- return _.walkTokens(u, e);
6956
+ g.walkTokens = function(u, e) {
6957
+ return L.walkTokens(u, e);
6926
6958
  };
6927
- d.parseInline = _.parseInline;
6928
- d.Parser = b;
6929
- d.parser = b.parse;
6930
- d.Renderer = P;
6931
- d.TextRenderer = $;
6932
- d.Lexer = x;
6933
- d.lexer = x.lex;
6934
- d.Tokenizer = y;
6935
- d.Hooks = S;
6936
- d.parse = d;
6937
- var Dt = d.options, Ht = d.setOptions, Zt = d.use, Gt = d.walkTokens, Nt = d.parseInline, Qt = (/* unused pure expression or super */ null && (d)), Ft = b.parse, jt = x.lex;
6959
+ g.parseInline = L.parseInline;
6960
+ g.Parser = b;
6961
+ g.parser = b.parse;
6962
+ g.Renderer = y;
6963
+ g.TextRenderer = $;
6964
+ g.Lexer = x;
6965
+ g.lexer = x.lex;
6966
+ g.Tokenizer = w;
6967
+ g.Hooks = P;
6968
+ g.parse = g;
6969
+ var Ut = g.options, Kt = g.setOptions, Wt = g.use, Xt = g.walkTokens, Jt = g.parseInline, Vt = (/* unused pure expression or super */ null && (g)), Yt = b.parse, en = x.lex;
6938
6970
  //# sourceMappingURL=marked.esm.js.map
6939
6971
 
6940
6972