jodit-pro 4.9.22 → 4.9.25

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 +43 -43
  4. package/es2015/jodit.js +55 -27
  5. package/es2015/jodit.min.js +6 -6
  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 +28 -28
  67. package/es2018/jodit.min.js +6 -6
  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 +29 -29
  93. package/es2021/jodit.js +55 -27
  94. package/es2021/jodit.min.js +8 -8
  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 +55 -27
  158. package/es2021.en/jodit.min.js +8 -8
  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 +64 -27
  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.25
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -5253,7 +5253,7 @@ UIGlobalSettings = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__de
5253
5253
 
5254
5254
  "use strict";
5255
5255
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5256
- /* harmony export */ marked: function() { return /* binding */ d; }
5256
+ /* harmony export */ marked: function() { return /* binding */ g; }
5257
5257
  /* harmony export */ });
5258
5258
  /* unused harmony exports Hooks, Lexer, Marked, Parser, Renderer, TextRenderer, Tokenizer, defaults, getDefaults, lexer, options, parse, parseInline, parser, setOptions, use, walkTokens */
5259
5259
  function _define_property(obj, key, value) {
@@ -5271,14 +5271,14 @@ function _define_property(obj, key, value) {
5271
5271
  }
5272
5272
  var _class;
5273
5273
  /**
5274
- * marked v17.0.1 - a markdown parser
5275
- * Copyright (c) 2018-2025, MarkedJS. (MIT License)
5274
+ * marked v17.0.3 - a markdown parser
5275
+ * Copyright (c) 2018-2026, MarkedJS. (MIT License)
5276
5276
  * Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
5277
5277
  * https://github.com/markedjs/marked
5278
5278
  */ /**
5279
5279
  * DO NOT EDIT THIS FILE
5280
5280
  * The code in this file is generated from files in ./src/
5281
- */ function L() {
5281
+ */ function M() {
5282
5282
  return {
5283
5283
  async: !1,
5284
5284
  breaks: !1,
@@ -5292,11 +5292,11 @@ var _class;
5292
5292
  walkTokens: null
5293
5293
  };
5294
5294
  }
5295
- var T = L();
5296
- function Z(u) {
5295
+ var T = M();
5296
+ function H(u) {
5297
5297
  T = u;
5298
5298
  }
5299
- var C = {
5299
+ var _ = {
5300
5300
  exec: ()=>null
5301
5301
  };
5302
5302
  function k(u, e = "") {
@@ -5309,7 +5309,7 @@ function k(u, e = "") {
5309
5309
  };
5310
5310
  return n;
5311
5311
  }
5312
- var me = (()=>{
5312
+ var Re = (()=>{
5313
5313
  try {
5314
5314
  return !!new RegExp("(?<=1)(?<!1)");
5315
5315
  } catch {
@@ -5332,7 +5332,6 @@ var me = (()=>{
5332
5332
  blockquoteStart: /^ {0,3}>/,
5333
5333
  blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
5334
5334
  blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
5335
- listReplaceTabs: /^\t+/,
5336
5335
  listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
5337
5336
  listIsTask: /^\[[ xX]\] +\S/,
5338
5337
  listReplaceTask: /^\[[ xX]\] +/,
@@ -5372,92 +5371,97 @@ var me = (()=>{
5372
5371
  hrRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
5373
5372
  fencesBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`),
5374
5373
  headingBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}#`),
5375
- htmlBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i")
5376
- }, 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 = {
5377
- blockquote: $e,
5378
- code: be,
5379
- def: ye,
5380
- fences: Re,
5381
- heading: Te,
5374
+ htmlBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i"),
5375
+ blockquoteBeginRegex: (u)=>new RegExp(`^ {0,${Math.min(3, u - 1)}}>`)
5376
+ }, 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 = {
5377
+ blockquote: Me,
5378
+ code: Oe,
5379
+ def: $e,
5380
+ fences: we,
5381
+ heading: ye,
5382
5382
  hr: I,
5383
- html: Se,
5383
+ html: Le,
5384
5384
  lheading: se,
5385
- list: Pe,
5386
- newline: xe,
5385
+ list: _e,
5386
+ newline: Te,
5387
5387
  paragraph: ie,
5388
- table: C,
5389
- text: we
5390
- }, 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 = {
5388
+ table: _,
5389
+ text: Se
5390
+ }, 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 = {
5391
5391
  ...U,
5392
- lheading: Oe,
5392
+ lheading: Pe,
5393
5393
  table: te,
5394
- 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()
5395
- }, Le = {
5394
+ 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()
5395
+ }, Ce = {
5396
5396
  ...U,
5397
5397
  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(),
5398
5398
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
5399
5399
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
5400
- fences: C,
5400
+ fences: _,
5401
5401
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
5402
5402
  paragraph: k(Q).replace("hr", I).replace("heading", ` *#{1,6} *[^
5403
5403
  ]`).replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
5404
- }, 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 = {
5405
- _backpedal: C,
5406
- anyPunctuation: Ge,
5407
- autolink: Ne,
5408
- blockSkip: Be,
5404
+ }, 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 = {
5405
+ _backpedal: _,
5406
+ anyPunctuation: Xe,
5407
+ autolink: Je,
5408
+ blockSkip: He,
5409
5409
  br: oe,
5410
- code: ze,
5411
- del: C,
5412
- emStrongLDelim: qe,
5413
- emStrongRDelimAst: De,
5414
- emStrongRDelimUnd: Ze,
5415
- escape: Me,
5416
- link: je,
5417
- nolink: he,
5418
- punctuation: Ce,
5419
- reflink: ce,
5420
- reflinkSearch: Ue,
5421
- tag: Fe,
5422
- text: Ae,
5423
- url: C
5424
- }, Ke = {
5410
+ code: Ie,
5411
+ del: _,
5412
+ delLDelim: _,
5413
+ delRDelim: _,
5414
+ emStrongLDelim: Ze,
5415
+ emStrongRDelimAst: Qe,
5416
+ emStrongRDelimUnd: je,
5417
+ escape: Ae,
5418
+ link: et,
5419
+ nolink: ke,
5420
+ punctuation: Be,
5421
+ reflink: he,
5422
+ reflinkSearch: tt,
5423
+ tag: Ye,
5424
+ text: Ee,
5425
+ url: _
5426
+ }, nt = {
5425
5427
  ...W,
5426
- link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
5427
- reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
5428
- }, G = {
5428
+ link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", D).getRegex(),
5429
+ reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", D).getRegex()
5430
+ }, Z = {
5429
5431
  ...W,
5430
- emStrongRDelimAst: He,
5431
- emStrongLDelim: ve,
5432
+ emStrongRDelimAst: Fe,
5433
+ emStrongLDelim: Ne,
5434
+ delLDelim: Ue,
5435
+ delRDelim: We,
5432
5436
  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(),
5433
5437
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
5434
5438
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
5435
5439
  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()
5436
- }, We = {
5437
- ...G,
5440
+ }, rt = {
5441
+ ...Z,
5438
5442
  br: k(oe).replace("{2,}", "*").getRegex(),
5439
- text: k(G.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5443
+ text: k(Z.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
5440
5444
  }, E = {
5441
5445
  normal: U,
5442
- gfm: _e,
5443
- pedantic: Le
5444
- }, M = {
5446
+ gfm: ze,
5447
+ pedantic: Ce
5448
+ }, z = {
5445
5449
  normal: W,
5446
- gfm: G,
5447
- breaks: We,
5448
- pedantic: Ke
5450
+ gfm: Z,
5451
+ breaks: rt,
5452
+ pedantic: nt
5449
5453
  };
5450
- var Xe = {
5454
+ var st = {
5451
5455
  "&": "&amp;",
5452
5456
  "<": "&lt;",
5453
5457
  ">": "&gt;",
5454
5458
  '"': "&quot;",
5455
5459
  "'": "&#39;"
5456
- }, ke = (u)=>Xe[u];
5457
- function w(u, e) {
5460
+ }, de = (u)=>st[u];
5461
+ function O(u, e) {
5458
5462
  if (e) {
5459
- if (m.escapeTest.test(u)) return u.replace(m.escapeReplace, ke);
5460
- } else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode, ke);
5463
+ if (m.escapeTest.test(u)) return u.replace(m.escapeReplace, de);
5464
+ } else if (m.escapeTestNoEncode.test(u)) return u.replace(m.escapeReplaceNoEncode, de);
5461
5465
  return u;
5462
5466
  }
5463
5467
  function X(u) {
@@ -5479,7 +5483,7 @@ function J(u, e) {
5479
5483
  for(; r < n.length; r++)n[r] = n[r].trim().replace(m.slashPipe, "|");
5480
5484
  return n;
5481
5485
  }
5482
- function z(u, e, t) {
5486
+ function C(u, e, t) {
5483
5487
  let n = u.length;
5484
5488
  if (n === 0) return "";
5485
5489
  let r = 0;
@@ -5491,7 +5495,7 @@ function z(u, e, t) {
5491
5495
  }
5492
5496
  return u.slice(0, n - r);
5493
5497
  }
5494
- function de(u, e) {
5498
+ function ge(u, e) {
5495
5499
  if (u.indexOf(e[1]) === -1) return -1;
5496
5500
  let t = 0;
5497
5501
  for(let n = 0; n < u.length; n++)if (u[n] === "\\") n++;
@@ -5499,7 +5503,15 @@ function de(u, e) {
5499
5503
  else if (u[n] === e[1] && (t--, t < 0)) return n;
5500
5504
  return t > 0 ? -2 : -1;
5501
5505
  }
5502
- function ge(u, e, t, n, r) {
5506
+ function fe(u, e = 0) {
5507
+ let t = e, n = "";
5508
+ for (let r of u)if (r === " ") {
5509
+ let i = 4 - t % 4;
5510
+ n += " ".repeat(i), t += i;
5511
+ } else n += r, t++;
5512
+ return n;
5513
+ }
5514
+ function me(u, e, t, n, r) {
5503
5515
  let i = e.href, s = e.title || null, a = u[1].replace(r.other.outputLinkReplace, "$1");
5504
5516
  n.state.inLink = !0;
5505
5517
  let o = {
@@ -5512,7 +5524,7 @@ function ge(u, e, t, n, r) {
5512
5524
  };
5513
5525
  return n.state.inLink = !1, o;
5514
5526
  }
5515
- function Je(u, e, t) {
5527
+ function it(u, e, t) {
5516
5528
  let n = u.match(t.other.indentCodeCompensation);
5517
5529
  if (n === null) return e;
5518
5530
  let r = n[1];
@@ -5525,7 +5537,7 @@ function Je(u, e, t) {
5525
5537
  }).join(`
5526
5538
  `);
5527
5539
  }
5528
- var y = class {
5540
+ var w = class {
5529
5541
  space(e) {
5530
5542
  let t = this.rules.block.newline.exec(e);
5531
5543
  if (t && t[0].length > 0) return {
@@ -5541,7 +5553,7 @@ var y = class {
5541
5553
  type: "code",
5542
5554
  raw: t[0],
5543
5555
  codeBlockStyle: "indented",
5544
- text: this.options.pedantic ? n : z(n, `
5556
+ text: this.options.pedantic ? n : C(n, `
5545
5557
  `)
5546
5558
  };
5547
5559
  }
@@ -5549,7 +5561,7 @@ var y = class {
5549
5561
  fences(e) {
5550
5562
  let t = this.rules.block.fences.exec(e);
5551
5563
  if (t) {
5552
- let n = t[0], r = Je(n, t[3] || "", this.rules);
5564
+ let n = t[0], r = it(n, t[3] || "", this.rules);
5553
5565
  return {
5554
5566
  type: "code",
5555
5567
  raw: n,
@@ -5563,7 +5575,7 @@ var y = class {
5563
5575
  if (t) {
5564
5576
  let n = t[2].trim();
5565
5577
  if (this.rules.other.endingHash.test(n)) {
5566
- let r = z(n, "#");
5578
+ let r = C(n, "#");
5567
5579
  (this.options.pedantic || !r || this.rules.other.endingSpaceChar.test(r)) && (n = r.trim());
5568
5580
  }
5569
5581
  return {
@@ -5579,14 +5591,14 @@ var y = class {
5579
5591
  let t = this.rules.block.hr.exec(e);
5580
5592
  if (t) return {
5581
5593
  type: "hr",
5582
- raw: z(t[0], `
5594
+ raw: C(t[0], `
5583
5595
  `)
5584
5596
  };
5585
5597
  }
5586
5598
  blockquote(e) {
5587
5599
  let t = this.rules.block.blockquote.exec(e);
5588
5600
  if (t) {
5589
- let n = z(t[0], `
5601
+ let n = C(t[0], `
5590
5602
  `).split(`
5591
5603
  `), r = "", i = "", s = [];
5592
5604
  for(; n.length > 0;){
@@ -5601,21 +5613,21 @@ var y = class {
5601
5613
  r = r ? `${r}
5602
5614
  ${p}` : p, i = i ? `${i}
5603
5615
  ${c}` : c;
5604
- let g = this.lexer.state.top;
5605
- if (this.lexer.state.top = !0, this.lexer.blockTokens(c, s, !0), this.lexer.state.top = g, n.length === 0) break;
5616
+ let d = this.lexer.state.top;
5617
+ if (this.lexer.state.top = !0, this.lexer.blockTokens(c, s, !0), this.lexer.state.top = d, n.length === 0) break;
5606
5618
  let h = s.at(-1);
5607
5619
  if (h?.type === "code") break;
5608
5620
  if (h?.type === "blockquote") {
5609
5621
  let R = h, f = R.raw + `
5610
5622
  ` + n.join(`
5611
- `), O = this.blockquote(f);
5612
- 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;
5623
+ `), S = this.blockquote(f);
5624
+ 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;
5613
5625
  break;
5614
5626
  } else if (h?.type === "list") {
5615
5627
  let R = h, f = R.raw + `
5616
5628
  ` + n.join(`
5617
- `), O = this.list(f);
5618
- 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(`
5629
+ `), S = this.list(f);
5630
+ 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(`
5619
5631
  `);
5620
5632
  continue;
5621
5633
  }
@@ -5645,25 +5657,25 @@ ${c}` : c;
5645
5657
  let l = !1, p = "", c = "";
5646
5658
  if (!(t = s.exec(e)) || this.rules.block.hr.test(e)) break;
5647
5659
  p = t[0], e = e.substring(p.length);
5648
- let g = t[2].split(`
5649
- `, 1)[0].replace(this.rules.other.listReplaceTabs, (O)=>" ".repeat(3 * O.length)), h = e.split(`
5650
- `, 1)[0], R = !g.trim(), f = 0;
5651
- 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 + `
5660
+ let d = fe(t[2].split(`
5661
+ `, 1)[0], t[1].length), h = e.split(`
5662
+ `, 1)[0], R = !d.trim(), f = 0;
5663
+ 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 + `
5652
5664
  `, e = e.substring(h.length + 1), l = !0), !l) {
5653
- 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);
5665
+ 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);
5654
5666
  for(; e;){
5655
- let H = e.split(`
5667
+ let G = e.split(`
5656
5668
  `, 1)[0], A;
5657
- 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;
5669
+ 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;
5658
5670
  if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim()) c += `
5659
5671
  ` + A.slice(f);
5660
5672
  else {
5661
- if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(g) || ee.test(g) || V.test(g)) break;
5673
+ if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || Y.test(d) || ee.test(d) || V.test(d)) break;
5662
5674
  c += `
5663
5675
  ` + h;
5664
5676
  }
5665
- !R && !h.trim() && (R = !0), p += H + `
5666
- `, e = e.substring(H.length + 1), g = A.slice(f);
5677
+ R = !h.trim(), p += G + `
5678
+ `, e = e.substring(G.length + 1), d = A.slice(f);
5667
5679
  }
5668
5680
  }
5669
5681
  i.loose || (a ? i.loose = !0 : this.rules.other.doubleBlankLine.test(p) && (a = !0)), i.items.push({
@@ -5709,7 +5721,7 @@ ${c}` : c;
5709
5721
  }
5710
5722
  }
5711
5723
  if (!i.loose) {
5712
- let p = l.tokens.filter((g)=>g.type === "space"), c = p.length > 0 && p.some((g)=>this.rules.other.anyLine.test(g.raw));
5724
+ let p = l.tokens.filter((d)=>d.type === "space"), c = p.length > 0 && p.some((d)=>this.rules.other.anyLine.test(d.raw));
5713
5725
  i.loose = c;
5714
5726
  }
5715
5727
  }
@@ -5828,10 +5840,10 @@ ${c}` : c;
5828
5840
  let n = t[2].trim();
5829
5841
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(n)) {
5830
5842
  if (!this.rules.other.endAngleBracket.test(n)) return;
5831
- let s = z(n.slice(0, -1), "\\");
5843
+ let s = C(n.slice(0, -1), "\\");
5832
5844
  if ((n.length - s.length) % 2 === 0) return;
5833
5845
  } else {
5834
- let s = de(t[2], "()");
5846
+ let s = ge(t[2], "()");
5835
5847
  if (s === -2) return;
5836
5848
  if (s > -1) {
5837
5849
  let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s;
@@ -5843,7 +5855,7 @@ ${c}` : c;
5843
5855
  let s = this.rules.other.pedanticHrefTitle.exec(r);
5844
5856
  s && (r = s[1], i = s[3]);
5845
5857
  } else i = t[3] ? t[3].slice(1, -1) : "";
5846
- 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, {
5858
+ 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, {
5847
5859
  href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
5848
5860
  title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
5849
5861
  }, t[0], this.lexer, this.rules);
@@ -5861,7 +5873,7 @@ ${c}` : c;
5861
5873
  text: s
5862
5874
  };
5863
5875
  }
5864
- return ge(n, i, n[0], this.lexer, this.rules);
5876
+ return me(n, i, n[0], this.lexer, this.rules);
5865
5877
  }
5866
5878
  }
5867
5879
  emStrong(e, t, n = "") {
@@ -5884,9 +5896,9 @@ ${c}` : c;
5884
5896
  }
5885
5897
  if (l -= o, l > 0) continue;
5886
5898
  o = Math.min(o, o + l + p);
5887
- let g = [
5899
+ let d = [
5888
5900
  ...r[0]
5889
- ][0].length, h = e.slice(0, s + r.index + g + o);
5901
+ ][0].length, h = e.slice(0, s + r.index + d + o);
5890
5902
  if (Math.min(s, o) % 2) {
5891
5903
  let f = h.slice(1, -1);
5892
5904
  return {
@@ -5924,14 +5936,34 @@ ${c}` : c;
5924
5936
  raw: t[0]
5925
5937
  };
5926
5938
  }
5927
- del(e) {
5928
- let t = this.rules.inline.del.exec(e);
5929
- if (t) return {
5930
- type: "del",
5931
- raw: t[0],
5932
- text: t[2],
5933
- tokens: this.lexer.inlineTokens(t[2])
5934
- };
5939
+ del(e, t, n = "") {
5940
+ let r = this.rules.inline.delLDelim.exec(e);
5941
+ if (!r) return;
5942
+ if (!(r[1] || "") || !n || this.rules.inline.punctuation.exec(n)) {
5943
+ let s = [
5944
+ ...r[0]
5945
+ ].length - 1, a, o, l = s, p = this.rules.inline.delRDelim;
5946
+ for(p.lastIndex = 0, t = t.slice(-1 * e.length + s); (r = p.exec(t)) != null;){
5947
+ if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a || (o = [
5948
+ ...a
5949
+ ].length, o !== s)) continue;
5950
+ if (r[3] || r[4]) {
5951
+ l += o;
5952
+ continue;
5953
+ }
5954
+ if (l -= o, l > 0) continue;
5955
+ o = Math.min(o, o + l);
5956
+ let c = [
5957
+ ...r[0]
5958
+ ][0].length, d = e.slice(0, s + r.index + c + o), h = d.slice(s, -s);
5959
+ return {
5960
+ type: "del",
5961
+ raw: d,
5962
+ text: h,
5963
+ tokens: this.lexer.inlineTokens(h)
5964
+ };
5965
+ }
5966
+ }
5935
5967
  }
5936
5968
  autolink(e) {
5937
5969
  let t = this.rules.inline.autolink.exec(e);
@@ -6001,7 +6033,7 @@ var x = class u {
6001
6033
  static get rules() {
6002
6034
  return {
6003
6035
  block: E,
6004
- inline: M
6036
+ inline: z
6005
6037
  };
6006
6038
  }
6007
6039
  static lex(e, t) {
@@ -6176,7 +6208,7 @@ var x = class u {
6176
6208
  e = e.substring(o.raw.length), t.push(o);
6177
6209
  continue;
6178
6210
  }
6179
- if (o = this.tokenizer.del(e)) {
6211
+ if (o = this.tokenizer.del(e, n, a)) {
6180
6212
  e = e.substring(o.raw.length), t.push(o);
6181
6213
  continue;
6182
6214
  }
@@ -6190,11 +6222,11 @@ var x = class u {
6190
6222
  }
6191
6223
  let l = e;
6192
6224
  if (this.options.extensions?.startInline) {
6193
- let p = 1 / 0, c = e.slice(1), g;
6225
+ let p = 1 / 0, c = e.slice(1), d;
6194
6226
  this.options.extensions.startInline.forEach((h)=>{
6195
- g = h.call({
6227
+ d = h.call({
6196
6228
  lexer: this
6197
- }, c), typeof g == "number" && g >= 0 && (p = Math.min(p, g));
6229
+ }, c), typeof d == "number" && d >= 0 && (p = Math.min(p, d));
6198
6230
  }), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
6199
6231
  }
6200
6232
  if (o = this.tokenizer.inlineText(l)) {
@@ -6219,7 +6251,7 @@ var x = class u {
6219
6251
  _define_property(this, "state", void 0);
6220
6252
  _define_property(this, "inlineQueue", void 0);
6221
6253
  _define_property(this, "tokenizer", void 0);
6222
- 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 = {
6254
+ 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 = {
6223
6255
  inLink: !1,
6224
6256
  inRawBlock: !1,
6225
6257
  top: !0
@@ -6227,20 +6259,20 @@ var x = class u {
6227
6259
  let t = {
6228
6260
  other: m,
6229
6261
  block: E.normal,
6230
- inline: M.normal
6262
+ inline: z.normal
6231
6263
  };
6232
- 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;
6264
+ 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;
6233
6265
  }
6234
6266
  };
6235
- var P = class {
6267
+ var y = class {
6236
6268
  space(e) {
6237
6269
  return "";
6238
6270
  }
6239
6271
  code({ text: e, lang: t, escaped: n }) {
6240
6272
  let r = (t || "").match(m.notSpaceStart)?.[0], i = e.replace(m.endingNewline, "") + `
6241
6273
  `;
6242
- return r ? '<pre><code class="language-' + w(r) + '">' + (n ? i : w(i, !0)) + `</code></pre>
6243
- ` : "<pre><code>" + (n ? i : w(i, !0)) + `</code></pre>
6274
+ return r ? '<pre><code class="language-' + O(r) + '">' + (n ? i : O(i, !0)) + `</code></pre>
6275
+ ` : "<pre><code>" + (n ? i : O(i, !0)) + `</code></pre>
6244
6276
  `;
6245
6277
  }
6246
6278
  blockquote({ tokens: e }) {
@@ -6322,7 +6354,7 @@ ${e}</tr>
6322
6354
  return `<em>${this.parser.parseInline(e)}</em>`;
6323
6355
  }
6324
6356
  codespan({ text: e }) {
6325
- return `<code>${w(e, !0)}</code>`;
6357
+ return `<code>${O(e, !0)}</code>`;
6326
6358
  }
6327
6359
  br(e) {
6328
6360
  return "<br>";
@@ -6335,18 +6367,18 @@ ${e}</tr>
6335
6367
  if (i === null) return r;
6336
6368
  e = i;
6337
6369
  let s = '<a href="' + e + '"';
6338
- return t && (s += ' title="' + w(t) + '"'), s += ">" + r + "</a>", s;
6370
+ return t && (s += ' title="' + O(t) + '"'), s += ">" + r + "</a>", s;
6339
6371
  }
6340
6372
  image({ href: e, title: t, text: n, tokens: r }) {
6341
6373
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
6342
6374
  let i = X(e);
6343
- if (i === null) return w(n);
6375
+ if (i === null) return O(n);
6344
6376
  e = i;
6345
- let s = `<img src="${e}" alt="${n}"`;
6346
- return t && (s += ` title="${w(t)}"`), s += ">", s;
6377
+ let s = `<img src="${e}" alt="${O(n)}"`;
6378
+ return t && (s += ` title="${O(t)}"`), s += ">", s;
6347
6379
  }
6348
6380
  text(e) {
6349
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : w(e.text);
6381
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : O(e.text);
6350
6382
  }
6351
6383
  constructor(e){
6352
6384
  _define_property(this, "options", void 0);
@@ -6585,10 +6617,10 @@ var b = class u {
6585
6617
  _define_property(this, "options", void 0);
6586
6618
  _define_property(this, "renderer", void 0);
6587
6619
  _define_property(this, "textRenderer", void 0);
6588
- 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 $;
6620
+ 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 $;
6589
6621
  }
6590
6622
  };
6591
- var S = (_class = class {
6623
+ var P = (_class = class {
6592
6624
  preprocess(e) {
6593
6625
  return e;
6594
6626
  }
@@ -6681,7 +6713,7 @@ var B = class {
6681
6713
  }
6682
6714
  "childTokens" in i && i.childTokens && (t.childTokens[i.name] = i.childTokens);
6683
6715
  }), r.extensions = t), n.renderer) {
6684
- let i = this.defaults.renderer || new P(this.defaults);
6716
+ let i = this.defaults.renderer || new y(this.defaults);
6685
6717
  for(let s in n.renderer){
6686
6718
  if (!(s in i)) throw new Error(`renderer '${s}' does not exist`);
6687
6719
  if ([
@@ -6697,7 +6729,7 @@ var B = class {
6697
6729
  r.renderer = i;
6698
6730
  }
6699
6731
  if (n.tokenizer) {
6700
- let i = this.defaults.tokenizer || new y(this.defaults);
6732
+ let i = this.defaults.tokenizer || new w(this.defaults);
6701
6733
  for(let s in n.tokenizer){
6702
6734
  if (!(s in i)) throw new Error(`tokenizer '${s}' does not exist`);
6703
6735
  if ([
@@ -6714,7 +6746,7 @@ var B = class {
6714
6746
  r.tokenizer = i;
6715
6747
  }
6716
6748
  if (n.hooks) {
6717
- let i = this.defaults.hooks || new S;
6749
+ let i = this.defaults.hooks || new P;
6718
6750
  for(let s in n.hooks){
6719
6751
  if (!(s in i)) throw new Error(`hook '${s}' does not exist`);
6720
6752
  if ([
@@ -6722,17 +6754,17 @@ var B = class {
6722
6754
  "block"
6723
6755
  ].includes(s)) continue;
6724
6756
  let a = s, o = n.hooks[a], l = i[a];
6725
- S.passThroughHooks.has(s) ? i[a] = (p)=>{
6726
- if (this.defaults.async && S.passThroughHooksRespectAsync.has(s)) return (async ()=>{
6727
- let g = await o.call(i, p);
6728
- return l.call(i, g);
6757
+ P.passThroughHooks.has(s) ? i[a] = (p)=>{
6758
+ if (this.defaults.async && P.passThroughHooksRespectAsync.has(s)) return (async ()=>{
6759
+ let d = await o.call(i, p);
6760
+ return l.call(i, d);
6729
6761
  })();
6730
6762
  let c = o.call(i, p);
6731
6763
  return l.call(i, c);
6732
6764
  } : i[a] = (...p)=>{
6733
6765
  if (this.defaults.async) return (async ()=>{
6734
- let g = await o.apply(i, p);
6735
- return g === !1 && (g = await l.apply(i, p)), g;
6766
+ let d = await o.apply(i, p);
6767
+ return d === !1 && (d = await l.apply(i, p)), d;
6736
6768
  })();
6737
6769
  let c = o.apply(i, p);
6738
6770
  return c === !1 && (c = l.apply(i, p)), c;
@@ -6797,7 +6829,7 @@ var B = class {
6797
6829
  return (n)=>{
6798
6830
  if (n.message += `
6799
6831
  Please report this to https://github.com/markedjs/marked.`, e) {
6800
- let r = "<p>An error occurred:</p><pre>" + w(n.message + "", !0) + "</pre>";
6832
+ let r = "<p>An error occurred:</p><pre>" + O(n.message + "", !0) + "</pre>";
6801
6833
  return t ? Promise.resolve(r) : r;
6802
6834
  }
6803
6835
  if (t) return Promise.reject(n);
@@ -6805,45 +6837,45 @@ Please report this to https://github.com/markedjs/marked.`, e) {
6805
6837
  };
6806
6838
  }
6807
6839
  constructor(...e){
6808
- _define_property(this, "defaults", L());
6840
+ _define_property(this, "defaults", M());
6809
6841
  _define_property(this, "options", this.setOptions);
6810
6842
  _define_property(this, "parse", this.parseMarkdown(!0));
6811
6843
  _define_property(this, "parseInline", this.parseMarkdown(!1));
6812
6844
  _define_property(this, "Parser", b);
6813
- _define_property(this, "Renderer", P);
6845
+ _define_property(this, "Renderer", y);
6814
6846
  _define_property(this, "TextRenderer", $);
6815
6847
  _define_property(this, "Lexer", x);
6816
- _define_property(this, "Tokenizer", y);
6817
- _define_property(this, "Hooks", S);
6848
+ _define_property(this, "Tokenizer", w);
6849
+ _define_property(this, "Hooks", P);
6818
6850
  this.use(...e);
6819
6851
  }
6820
6852
  };
6821
- var _ = new B;
6822
- function d(u, e) {
6823
- return _.parse(u, e);
6853
+ var L = new B;
6854
+ function g(u, e) {
6855
+ return L.parse(u, e);
6824
6856
  }
6825
- d.options = d.setOptions = function(u) {
6826
- return _.setOptions(u), d.defaults = _.defaults, Z(d.defaults), d;
6857
+ g.options = g.setOptions = function(u) {
6858
+ return L.setOptions(u), g.defaults = L.defaults, H(g.defaults), g;
6827
6859
  };
6828
- d.getDefaults = L;
6829
- d.defaults = T;
6830
- d.use = function(...u) {
6831
- return _.use(...u), d.defaults = _.defaults, Z(d.defaults), d;
6860
+ g.getDefaults = M;
6861
+ g.defaults = T;
6862
+ g.use = function(...u) {
6863
+ return L.use(...u), g.defaults = L.defaults, H(g.defaults), g;
6832
6864
  };
6833
- d.walkTokens = function(u, e) {
6834
- return _.walkTokens(u, e);
6865
+ g.walkTokens = function(u, e) {
6866
+ return L.walkTokens(u, e);
6835
6867
  };
6836
- d.parseInline = _.parseInline;
6837
- d.Parser = b;
6838
- d.parser = b.parse;
6839
- d.Renderer = P;
6840
- d.TextRenderer = $;
6841
- d.Lexer = x;
6842
- d.lexer = x.lex;
6843
- d.Tokenizer = y;
6844
- d.Hooks = S;
6845
- d.parse = d;
6846
- 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;
6868
+ g.parseInline = L.parseInline;
6869
+ g.Parser = b;
6870
+ g.parser = b.parse;
6871
+ g.Renderer = y;
6872
+ g.TextRenderer = $;
6873
+ g.Lexer = x;
6874
+ g.lexer = x.lex;
6875
+ g.Tokenizer = w;
6876
+ g.Hooks = P;
6877
+ g.parse = g;
6878
+ 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;
6847
6879
  //# sourceMappingURL=marked.esm.js.map
6848
6880
 
6849
6881