aibox-custom-component-packages 0.0.30 → 0.0.32

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 (350) hide show
  1. package/README.md +64 -64
  2. package/es/AddOrEditSupplierDialog.mjs +3 -3
  3. package/es/ApplicationTypeTag.mjs +1 -1
  4. package/es/AuthSection.mjs +1 -1
  5. package/es/AutoShowTooltip.mjs +1 -1
  6. package/es/AvailableRangePreview.mjs +1 -1
  7. package/es/AvailableRangeSetting.mjs +2 -2
  8. package/es/CodeView.mjs +1 -1
  9. package/es/CommonTagsList.mjs +1 -1
  10. package/es/CreateMcpForm.mjs +1 -1
  11. package/es/CustomSidebar.mjs +1 -1
  12. package/es/CustomTitle.mjs +1 -1
  13. package/es/CustomToggle.mjs +1 -1
  14. package/es/DocSyncSelect.mjs +1 -1
  15. package/es/FileDisplay.mjs +1 -1
  16. package/es/FilePreview.mjs +2 -2
  17. package/es/FileUploader.mjs +1 -1
  18. package/es/LoginRedirectScreen.mjs +1 -1
  19. package/es/Logo.mjs +1 -1
  20. package/es/McpFormDialog.mjs +1 -1
  21. package/es/McpParamsSet.mjs +1 -1
  22. package/es/MdEditor.mjs +1 -1
  23. package/es/PageContainer.mjs +1 -1
  24. package/es/ParameterTable.mjs +1 -1
  25. package/es/PublishRecord.mjs +1 -1
  26. package/es/RadioGroup.mjs +1 -1
  27. package/es/SourcePublish.mjs +3 -3
  28. package/es/Table.mjs +3 -3
  29. package/es/assets/AddOrEditSupplierDialog.css +1 -1
  30. package/es/assets/ApplicationTypeTag.css +1 -1
  31. package/es/assets/AuthSection.css +1 -1
  32. package/es/assets/AutoShowTooltip.css +1 -1
  33. package/es/assets/AvailableRangePreview.css +1 -1
  34. package/es/assets/BackBar.css +1 -1
  35. package/es/assets/CodeView.css +1 -1
  36. package/es/assets/CommonTagsList.css +1 -1
  37. package/es/assets/CreateMcpForm.css +1 -1
  38. package/es/assets/CustomSidebar.css +1 -1
  39. package/es/assets/CustomToggle.css +1 -1
  40. package/es/assets/DocSyncSelect.css +1 -1
  41. package/es/assets/FileDisplay.css +1 -1
  42. package/es/assets/FilePreview.css +1 -1
  43. package/es/assets/LoginRedirectScreen.css +1 -1
  44. package/es/assets/Logo.css +1 -1
  45. package/es/assets/McpFormDialog.css +1 -1
  46. package/es/assets/McpParamsSet.css +1 -1
  47. package/es/assets/MdEditor.css +1 -1
  48. package/es/assets/PageContainer.css +1 -1
  49. package/es/assets/ParameterTable.css +1 -1
  50. package/es/assets/PublishRecord.css +1 -1
  51. package/es/assets/RadioGroup.css +1 -1
  52. package/es/assets/SourcePublish.css +1 -1
  53. package/es/assets/layout.css +1 -1
  54. package/es/assets/usePreview.css +2 -2
  55. package/es/chunks/{AddOrEditSupplierDialog.CnhMfQwO.js → AddOrEditSupplierDialog.DhGagQdN.js} +254 -248
  56. package/es/chunks/{ApplicationTypeTag.ou6JCQ5z.js → ApplicationTypeTag.BP3y2wxh.js} +2 -2
  57. package/es/chunks/{AuthSection.DiiFb-bb.js → AuthSection.jrp3zawz.js} +3 -3
  58. package/es/chunks/{AutoShowTooltip.DBv10Z2v.js → AutoShowTooltip.Duo0-HYn.js} +4 -3
  59. package/es/chunks/{AvailableRangePreview.CPwdlq4X.js → AvailableRangePreview.Cc_D7qn-.js} +7 -7
  60. package/es/chunks/{AvailableRangeSetting.CQ1akyVX.js → AvailableRangeSetting.BjNvRqad.js} +6 -6
  61. package/es/chunks/{AiboxTable.BGM-BzRS.js → BackBar.DzJ2OzUe.js} +85 -85
  62. package/es/chunks/{CodeView.D-XJCy-4.js → CodeView.Du-CTWN-.js} +4 -3
  63. package/es/chunks/{CommonTagsList.CMC3Jf1_.js → CommonTagsList.B4UNIT4z.js} +9 -6
  64. package/es/chunks/{CreateMcpForm.V6OVq25o.js → CreateMcpForm.B0jFYT0_.js} +8 -8
  65. package/es/chunks/{CustomSidebar.BQkzarqj.js → CustomSidebar.ByfCcFOC.js} +19 -18
  66. package/es/chunks/{CustomToggle.mk4475NP.js → CustomToggle.DBXPEHY5.js} +8 -7
  67. package/es/chunks/{DocSyncSelect.DsxEfNS8.js → DocSyncSelect.tbtnTok_.js} +91 -88
  68. package/es/chunks/{FileDisplay.DdXZw2i8.js → FileDisplay.CqgQ3rtu.js} +25 -19
  69. package/es/chunks/{FilePreview.8h1jwcK3.js → FilePreview.CwdS-fNc.js} +4 -4
  70. package/es/chunks/{FileUploader.D6yBWJC1.js → FileUploader.0a_MfmvR.js} +21 -15
  71. package/es/chunks/{LoginRedirectScreen.DWykKkE4.js → LoginRedirectScreen.B7kkQoP_.js} +1 -1
  72. package/es/chunks/{Logo.ykAQuSMy.js → Logo.zn-NFPWL.js} +3 -3
  73. package/es/chunks/{McpFormDialog.re73mF5z.js → McpFormDialog.BxxfxU1y.js} +6 -6
  74. package/es/chunks/{McpParamsSet.CENa2vwu.js → McpParamsSet.CZkVuUuD.js} +30 -24
  75. package/es/chunks/{MdEditor.CnEAJuiz.js → MdEditor.mj5o3zYF.js} +5 -5
  76. package/es/chunks/{PageContainer.DB5ChF8A.js → PageContainer.B400LILM.js} +89 -92
  77. package/es/chunks/{ParameterTable.Bl40d5e-.js → ParameterTable.CPlrR4n_.js} +26 -21
  78. package/es/chunks/{PublishRecord.BlW5h73q.js → PublishRecord.nJhg5VCt.js} +34 -31
  79. package/es/chunks/{RadioGroup.CB4jkuR3.js → RadioGroup.BGO267-v.js} +1 -1
  80. package/es/chunks/{SourcePublish.DVvRsVtZ.js → SourcePublish.Bf25XcZi.js} +41 -36
  81. package/es/chunks/{config.BLF8hLT4.js → config.C9iiPD4U.js} +2 -2
  82. package/es/chunks/{config.Cneaz-Di.js → config.DnXRhz1z.js} +1 -1
  83. package/es/chunks/{i18n.yuai-sb4.js → i18n.CFUdEPHr.js} +1 -1
  84. package/es/chunks/{layout.CUSAJyQL.js → layout.D9PXutv4.js} +1 -1
  85. package/es/chunks/{chunk.Dqa2HsxW.js → rolldown-runtime.B0aSnxlc.js} +2 -2
  86. package/es/chunks/{usePreview.yIUda0Hv.js → usePreview.BbNxKBck.js} +9 -7
  87. package/es/index.mjs +66 -66
  88. package/lib/AddOrEditSupplierDialog.js +1 -1
  89. package/lib/ApplicationTypeTag.js +1 -1
  90. package/lib/AuthSection.js +1 -1
  91. package/lib/AutoShowTooltip.js +1 -1
  92. package/lib/AvailableRangePreview.js +1 -1
  93. package/lib/AvailableRangeSetting.js +1 -1
  94. package/lib/CodeView.js +1 -1
  95. package/lib/CommonTagsList.js +1 -1
  96. package/lib/CreateMcpForm.js +1 -1
  97. package/lib/CustomSidebar.js +1 -1
  98. package/lib/CustomTitle.js +1 -1
  99. package/lib/CustomToggle.js +1 -1
  100. package/lib/DocSyncSelect.js +1 -1
  101. package/lib/FileDisplay.js +1 -1
  102. package/lib/FilePreview.js +1 -1
  103. package/lib/FileUploader.js +1 -1
  104. package/lib/LoginRedirectScreen.js +1 -1
  105. package/lib/Logo.js +1 -1
  106. package/lib/McpFormDialog.js +1 -1
  107. package/lib/McpParamsSet.js +1 -1
  108. package/lib/MdEditor.js +1 -1
  109. package/lib/PageContainer.js +1 -1
  110. package/lib/ParameterTable.js +1 -1
  111. package/lib/PublishRecord.js +1 -1
  112. package/lib/RadioGroup.js +1 -1
  113. package/lib/SourcePublish.js +1 -1
  114. package/lib/Table.js +1 -1
  115. package/lib/assets/AddOrEditSupplierDialog.css +1 -1
  116. package/lib/assets/ApplicationTypeTag.css +1 -1
  117. package/lib/assets/AuthSection.css +1 -1
  118. package/lib/assets/AutoShowTooltip.css +1 -1
  119. package/lib/assets/AvailableRangePreview.css +1 -1
  120. package/lib/assets/BackBar.css +1 -1
  121. package/lib/assets/CodeView.css +1 -1
  122. package/lib/assets/CommonTagsList.css +1 -1
  123. package/lib/assets/CreateMcpForm.css +1 -1
  124. package/lib/assets/CustomSidebar.css +1 -1
  125. package/lib/assets/CustomToggle.css +1 -1
  126. package/lib/assets/DocSyncSelect.css +1 -1
  127. package/lib/assets/FileDisplay.css +1 -1
  128. package/lib/assets/FilePreview.css +1 -1
  129. package/lib/assets/LoginRedirectScreen.css +1 -1
  130. package/lib/assets/Logo.css +1 -1
  131. package/lib/assets/McpFormDialog.css +1 -1
  132. package/lib/assets/McpParamsSet.css +1 -1
  133. package/lib/assets/MdEditor.css +1 -1
  134. package/lib/assets/PageContainer.css +1 -1
  135. package/lib/assets/ParameterTable.css +1 -1
  136. package/lib/assets/PublishRecord.css +1 -1
  137. package/lib/assets/RadioGroup.css +1 -1
  138. package/lib/assets/SourcePublish.css +1 -1
  139. package/lib/assets/layout.css +1 -1
  140. package/lib/assets/usePreview.css +2 -2
  141. package/lib/chunks/AddOrEditSupplierDialog.CdbWF4S7.js +1 -0
  142. package/lib/chunks/{ApplicationTypeTag.ctv_-FsI.js → ApplicationTypeTag.Bbb9onnO.js} +1 -1
  143. package/lib/chunks/{AuthSection.aaNWUYhk.js → AuthSection.BqnII7Zc.js} +1 -1
  144. package/lib/chunks/AutoShowTooltip.BCg_5NZ0.js +1 -0
  145. package/lib/chunks/{AvailableRangePreview.4RCSh4vv.js → AvailableRangePreview.CgkgcULo.js} +1 -1
  146. package/lib/chunks/{AvailableRangeSetting.Clr9A9YC.js → AvailableRangeSetting.B8UyU_gN.js} +1 -1
  147. package/lib/chunks/BackBar.BO_3ReYW.js +1 -0
  148. package/lib/chunks/CodeView.DAWK7jtf.js +1 -0
  149. package/lib/chunks/CommonTagsList.BabaB3RQ.js +1 -0
  150. package/lib/chunks/{CreateMcpForm.cHV9zm1H.js → CreateMcpForm.D7lh0uKb.js} +1 -1
  151. package/lib/chunks/CustomSidebar.Dc22wPkh.js +1 -0
  152. package/lib/chunks/CustomToggle.Cd7F_zwB.js +1 -0
  153. package/lib/chunks/DocSyncSelect.--DSxOmn.js +1 -0
  154. package/lib/chunks/{FileDisplay.DlPH_SWI.js → FileDisplay.C3x1xoJt.js} +7 -7
  155. package/lib/chunks/{FilePreview.T-kQ_iiJ.js → FilePreview.D9d-eoIn.js} +1 -1
  156. package/lib/chunks/FileUploader.TkV0c3Xt.js +1 -0
  157. package/lib/chunks/{LoginRedirectScreen.DE21-wqJ.js → LoginRedirectScreen.247pzgjB.js} +1 -1
  158. package/lib/chunks/{Logo.BvlHIPja.js → Logo.DYRnRQYI.js} +1 -1
  159. package/lib/chunks/{McpFormDialog.CusYASZC.js → McpFormDialog.BMLlvDii.js} +3 -3
  160. package/lib/chunks/McpParamsSet.gd9UXa8L.js +1 -0
  161. package/lib/chunks/MdEditor.CXIDWs1-.js +1 -0
  162. package/lib/chunks/PageContainer.D_p3Rz5e.js +1 -0
  163. package/lib/chunks/ParameterTable.BevV6CXV.js +1 -0
  164. package/lib/chunks/{PublishRecord.CBVhp0v1.js → PublishRecord.BQ_eSDcv.js} +2 -2
  165. package/lib/chunks/{RadioGroup.CLHduGxc.js → RadioGroup.BYy3omgq.js} +1 -1
  166. package/lib/chunks/SourcePublish.BlG6iYjM.js +1 -0
  167. package/lib/chunks/{layout.CNYc7QUj.js → layout.CFYuqtHu.js} +1 -1
  168. package/lib/chunks/{chunk.mLOUI7ql.js → rolldown-runtime.DF3sbh8G.js} +1 -1
  169. package/lib/chunks/usePreview.Byl992Ne.js +1 -0
  170. package/lib/index.js +2 -2
  171. package/package.json +5 -5
  172. package/es/AiboxTabs.mjs +0 -71
  173. package/es/ExampleComponent.mjs +0 -35
  174. package/es/assets/AiboxTable.css +0 -1
  175. package/es/assets/AiboxTabs.css +0 -1
  176. package/es/assets/ExampleComponent.css +0 -1
  177. package/es/assets/index.css +0 -1
  178. package/es/assets/index2.css +0 -1
  179. package/es/assets/index3.css +0 -1
  180. package/es/assets/index4.css +0 -1
  181. package/es/chunks/AddOrEditSupplierDialog.ClQwEIbY.js +0 -721
  182. package/es/chunks/AddOrEditSupplierDialog.DUqqhPyY.js +0 -721
  183. package/es/chunks/AiboxTable.C-nLAgfd.js +0 -635
  184. package/es/chunks/AiboxTable.CF4T_OCu.js +0 -645
  185. package/es/chunks/ApplicationTypeTag.CdOFw2tm.js +0 -47
  186. package/es/chunks/ApplicationTypeTag.CpzWFRmD.js +0 -52
  187. package/es/chunks/ApplicationTypeTag.DqsFzOY8.js +0 -47
  188. package/es/chunks/AuthSection.CjTj3tXe.js +0 -201
  189. package/es/chunks/AutoShowTooltip.C_DI9t2Z.js +0 -82
  190. package/es/chunks/AvailableRangePreview.BeryuDo0.js +0 -194
  191. package/es/chunks/AvailableRangeSetting.CIMyFFUh.js +0 -229
  192. package/es/chunks/BackBar.Bc2NIuzk.js +0 -645
  193. package/es/chunks/CodeView.C7otlZWk.js +0 -148
  194. package/es/chunks/CommonTagsList.DKvvFNZk.js +0 -156
  195. package/es/chunks/CommonTagsList.lcIYK7Ug.js +0 -156
  196. package/es/chunks/CreateMcpForm.BuPJjhoO.js +0 -308
  197. package/es/chunks/CustomSidebar.BF2dzN8s.js +0 -585
  198. package/es/chunks/CustomToggle.BxxsaD-W.js +0 -181
  199. package/es/chunks/DialogContainer.DL7aTMDS.js +0 -129
  200. package/es/chunks/DocSyncSelect.CY25GsAh.js +0 -2310
  201. package/es/chunks/DocSyncSelect.DP8U1-ZH.js +0 -2805
  202. package/es/chunks/DocSyncSelect.Xmpd15XF.js +0 -2290
  203. package/es/chunks/DocSyncSelect.dhZh4w45.js +0 -2290
  204. package/es/chunks/FileDisplay.CJ7KCID6.js +0 -1650
  205. package/es/chunks/FilePreview.De4zHsfc.js +0 -123
  206. package/es/chunks/FileUploader.Bb7Vjst3.js +0 -216
  207. package/es/chunks/Logo.0myMjGux.js +0 -62
  208. package/es/chunks/McpFormDialog.BmGiXP7Z.js +0 -297
  209. package/es/chunks/McpParamsSet.2sRWE--W.js +0 -501
  210. package/es/chunks/MdEditor.DQPBTDZs.js +0 -163
  211. package/es/chunks/PageContainer.DXddaRs1.js +0 -462
  212. package/es/chunks/ParameterTable.BWGj5RJ0.js +0 -2010
  213. package/es/chunks/PublishRecord.1bbefkRj.js +0 -133
  214. package/es/chunks/PublishRecord.uMYPtwrr.js +0 -133
  215. package/es/chunks/RadioGroup.Czc1JtkN.js +0 -107
  216. package/es/chunks/SourcePublish.CjzqOFwj.js +0 -979
  217. package/es/chunks/SourcePublish.DBM7OeXm.js +0 -979
  218. package/es/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
  219. package/es/chunks/_plugin-vue_export-helper.Ct3qlEzt.js +0 -8
  220. package/es/chunks/chunk.EU29TkMc.js +0 -20
  221. package/es/chunks/config.8htFF04x.js +0 -325
  222. package/es/chunks/config.BU21Gda2.js +0 -49
  223. package/es/chunks/config.BVH1HTem.js +0 -270
  224. package/es/chunks/config.ByP8moyl.js +0 -35
  225. package/es/chunks/config.D5tt9_hY.js +0 -270
  226. package/es/chunks/config.DPkdwjwD.js +0 -49
  227. package/es/chunks/config.gNZ_rT87.js +0 -325
  228. package/es/chunks/enums.CfSBDD6u.js +0 -83
  229. package/es/chunks/enums.DDPWAqdV.js +0 -13
  230. package/es/chunks/enums.WrpwbF4w.js +0 -14
  231. package/es/chunks/field-types.CPnMOjle.js +0 -13
  232. package/es/chunks/field-types.zf28gvKR.js +0 -7
  233. package/es/chunks/files.DvOT1nf3.js +0 -14
  234. package/es/chunks/files.cduUqjHX.js +0 -16
  235. package/es/chunks/i18n.CgtinrDD.js +0 -426
  236. package/es/chunks/i18n.DmqkiK-h.js +0 -444
  237. package/es/chunks/i18n.k9Q_HVMs.js +0 -443
  238. package/es/chunks/index.BDd6hHiU.js +0 -172
  239. package/es/chunks/index.CF_YHLP5.js +0 -257
  240. package/es/chunks/index.DM3o2YX3.js +0 -398
  241. package/es/chunks/index.Dx-mCS4E.js +0 -1298
  242. package/es/chunks/index.bCzIhWFw.js +0 -7
  243. package/es/chunks/index.ml5i7aB5.js +0 -257
  244. package/es/chunks/layout.C9wKDpv-.js +0 -19
  245. package/es/chunks/layout.CygCXa6s.js +0 -26
  246. package/es/chunks/publish.D6friivo.js +0 -50
  247. package/es/chunks/publish.DlD0o09n.js +0 -50
  248. package/es/chunks/publish.Z0XAASut.js +0 -50
  249. package/es/chunks/request.24c3shPx.js +0 -5
  250. package/es/chunks/request.CfOHcfgX.js +0 -5
  251. package/es/chunks/usePreview.BHvXwaNi.js +0 -157
  252. package/es/chunks/usePreview.CMMjOD_o.js +0 -148
  253. package/es/chunks/withinstall.dLh4K-0g.js +0 -7
  254. package/lib/AiboxTabs.js +0 -1
  255. package/lib/ExampleComponent.js +0 -1
  256. package/lib/assets/AiboxTable.css +0 -1
  257. package/lib/assets/AiboxTabs.css +0 -1
  258. package/lib/assets/ExampleComponent.css +0 -1
  259. package/lib/assets/index.css +0 -1
  260. package/lib/assets/index2.css +0 -1
  261. package/lib/assets/index3.css +0 -1
  262. package/lib/assets/index4.css +0 -1
  263. package/lib/chunks/AddOrEditSupplierDialog.C37dgJoc.js +0 -1
  264. package/lib/chunks/AddOrEditSupplierDialog.CXDQYSfx.js +0 -1
  265. package/lib/chunks/AddOrEditSupplierDialog.LrA93M8r.js +0 -1
  266. package/lib/chunks/AiboxTable.CJOPGJtU.js +0 -1
  267. package/lib/chunks/AiboxTable.ChFhK2hA.js +0 -1
  268. package/lib/chunks/AiboxTable.cjZA3qfn.js +0 -1
  269. package/lib/chunks/ApplicationTypeTag.BZcZ1NVV.js +0 -1
  270. package/lib/chunks/ApplicationTypeTag.BmU_cqaw.js +0 -1
  271. package/lib/chunks/ApplicationTypeTag.DYX2KhU3.js +0 -1
  272. package/lib/chunks/AuthSection.JSJMZHKE.js +0 -1
  273. package/lib/chunks/AutoShowTooltip.CdpEAARd.js +0 -1
  274. package/lib/chunks/AutoShowTooltip.D3QQ36Bm.js +0 -1
  275. package/lib/chunks/AvailableRangePreview.DBZrEGgr.js +0 -1
  276. package/lib/chunks/AvailableRangeSetting.CWQ96pgh.js +0 -1
  277. package/lib/chunks/BackBar.CZsNxoX1.js +0 -1
  278. package/lib/chunks/CodeView.CXGXn7Ez.js +0 -1
  279. package/lib/chunks/CodeView.DqYLtjLj.js +0 -1
  280. package/lib/chunks/CommonTagsList.COGYYx95.js +0 -1
  281. package/lib/chunks/CommonTagsList.CYvE3OZx.js +0 -1
  282. package/lib/chunks/CommonTagsList.scaLz3Kq.js +0 -1
  283. package/lib/chunks/CreateMcpForm.ChuUGxEv.js +0 -1
  284. package/lib/chunks/CustomSidebar.Bxnggo2-.js +0 -1
  285. package/lib/chunks/CustomSidebar.DbMNfaZ2.js +0 -1
  286. package/lib/chunks/CustomToggle.Cia4mNzt.js +0 -1
  287. package/lib/chunks/CustomToggle.Dz7MRyOY.js +0 -1
  288. package/lib/chunks/DialogContainer.C0Hsohgn.js +0 -1
  289. package/lib/chunks/DocSyncSelect.CeXY2dUM.js +0 -1
  290. package/lib/chunks/DocSyncSelect.DndqvEn2.js +0 -2
  291. package/lib/chunks/DocSyncSelect.LIk9aqvi.js +0 -1
  292. package/lib/chunks/DocSyncSelect.OtcUttS0.js +0 -2
  293. package/lib/chunks/DocSyncSelect.kDNcepY-.js +0 -2
  294. package/lib/chunks/FileDisplay.BSNmvK44.js +0 -59
  295. package/lib/chunks/FilePreview.DX9e8_nx.js +0 -1
  296. package/lib/chunks/FileUploader.BRzp1bwB.js +0 -1
  297. package/lib/chunks/FileUploader.DHEvEZDe.js +0 -1
  298. package/lib/chunks/Logo.Jr7hhaH0.js +0 -1
  299. package/lib/chunks/McpFormDialog.CTRZyUh9.js +0 -6
  300. package/lib/chunks/McpParamsSet.CaZMXMOt.js +0 -1
  301. package/lib/chunks/McpParamsSet.y1sBuHQg.js +0 -1
  302. package/lib/chunks/MdEditor.Bmd2x_BT.js +0 -1
  303. package/lib/chunks/MdEditor.Dyzzi6xB.js +0 -1
  304. package/lib/chunks/PageContainer.elwvD8VL.js +0 -1
  305. package/lib/chunks/PageContainer.qaCyP4Jo.js +0 -1
  306. package/lib/chunks/ParameterTable.CKUr93c7.js +0 -1
  307. package/lib/chunks/ParameterTable.ue5vEqKT.js +0 -1
  308. package/lib/chunks/PublishRecord.BhwpTDRe.js +0 -5
  309. package/lib/chunks/PublishRecord.DnQxxgPK.js +0 -5
  310. package/lib/chunks/RadioGroup.cl57IvY3.js +0 -1
  311. package/lib/chunks/SourcePublish.CY-TQaVa.js +0 -1
  312. package/lib/chunks/SourcePublish.FGW69-Av.js +0 -1
  313. package/lib/chunks/SourcePublish.eOSEULjP.js +0 -1
  314. package/lib/chunks/_plugin-vue_export-helper.BHFhmbuH.js +0 -1
  315. package/lib/chunks/_plugin-vue_export-helper.Bgn9wawX.js +0 -1
  316. package/lib/chunks/chunk.BbA6Ugdl.js +0 -1
  317. package/lib/chunks/config.1oaIKLGn.js +0 -1
  318. package/lib/chunks/config.B0XKkp1w.js +0 -1
  319. package/lib/chunks/config.BCAuBVxV.js +0 -1
  320. package/lib/chunks/config.BCxoVxuB.js +0 -1
  321. package/lib/chunks/config.BF7MO0O5.js +0 -1
  322. package/lib/chunks/config.C0x1xjU-.js +0 -1
  323. package/lib/chunks/config.D4x1DE4S.js +0 -1
  324. package/lib/chunks/enums.DbdzzIzx.js +0 -1
  325. package/lib/chunks/enums.Dmq4PdUc.js +0 -1
  326. package/lib/chunks/enums.DpU2er5r.js +0 -1
  327. package/lib/chunks/field-types.C6f_z2S_.js +0 -1
  328. package/lib/chunks/field-types.Ch_2yDfg.js +0 -1
  329. package/lib/chunks/files.B3-8UC0v.js +0 -1
  330. package/lib/chunks/files.BEXWmB32.js +0 -1
  331. package/lib/chunks/i18n.CL5L6nx6.js +0 -1
  332. package/lib/chunks/i18n.DEV_n69W.js +0 -1
  333. package/lib/chunks/i18n.DgOp_D7R.js +0 -1
  334. package/lib/chunks/index.4hFddClT.js +0 -6
  335. package/lib/chunks/index.BNivYbtq.js +0 -1
  336. package/lib/chunks/index.B_keI1Aq.js +0 -1
  337. package/lib/chunks/index.Bk-RwmaH.js +0 -1
  338. package/lib/chunks/index.CJFk1R2u.js +0 -59
  339. package/lib/chunks/index.CkihWzK6.js +0 -1
  340. package/lib/chunks/layout.CK394aWE.js +0 -1
  341. package/lib/chunks/layout.DbBSbLgm.js +0 -1
  342. package/lib/chunks/publish.3TrK3fZf.js +0 -1
  343. package/lib/chunks/publish.Bw1acrSu.js +0 -1
  344. package/lib/chunks/publish.DsepP8ll.js +0 -1
  345. package/lib/chunks/request.BuoFTs7h.js +0 -1
  346. package/lib/chunks/request.D8T4MgGX.js +0 -1
  347. package/lib/chunks/usePreview.7CCbmgQM.js +0 -1
  348. package/lib/chunks/usePreview.BojIDW7Z.js +0 -1
  349. package/lib/chunks/usePreview.C3f_R7Np.js +0 -1
  350. package/lib/chunks/withinstall.65aRnaVc.js +0 -1
@@ -1,1650 +0,0 @@
1
- import { C as e, E as t, O as n, S as r, T as i, _ as a, g as o, t as s, w as c, y as l } from "./usePreview.CMMjOD_o.js";
2
- import { t as u } from "./_plugin-vue_export-helper.Ct3qlEzt.js";
3
- import { n as d, t as f } from "./DialogContainer.DL7aTMDS.js";
4
- import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as ee, createVNode as y, normalizeClass as te, openBlock as b, ref as x, renderList as ne, resolveDirective as re, resolveDynamicComponent as ie, toDisplayString as ae, unref as S, withCtx as C, withDirectives as oe } from "vue";
5
- import { ElIcon as w, ElImage as se } from "element-plus";
6
- import { Error as ce } from "color-message-aibox-vue";
7
- import { useRouter as le } from "vue-router";
8
- import '../assets/FileDisplay.css';//#region ../../../node_modules/.pnpm/marked@17.0.1/node_modules/marked/lib/marked.esm.js
9
- function T() {
10
- return {
11
- async: !1,
12
- breaks: !1,
13
- extensions: null,
14
- gfm: !0,
15
- hooks: null,
16
- pedantic: !1,
17
- renderer: null,
18
- silent: !1,
19
- tokenizer: null,
20
- walkTokens: null
21
- };
22
- }
23
- var E = T();
24
- function D(e) {
25
- E = e;
26
- }
27
- var O = { exec: () => null };
28
- function k(e, t = "") {
29
- let n = typeof e == "string" ? e : e.source, r = {
30
- replace: (e, t) => {
31
- let i = typeof t == "string" ? t : t.source;
32
- return i = i.replace(j.caret, "$1"), n = n.replace(e, i), r;
33
- },
34
- getRegex: () => new RegExp(n, t)
35
- };
36
- return r;
37
- }
38
- var A = (() => {
39
- try {
40
- return !0;
41
- } catch {
42
- return !1;
43
- }
44
- })(), j = {
45
- codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
46
- outputLinkReplace: /\\([\[\]])/g,
47
- indentCodeCompensation: /^(\s+)(?:```)/,
48
- beginningSpace: /^\s+/,
49
- endingHash: /#$/,
50
- startingSpaceChar: /^ /,
51
- endingSpaceChar: / $/,
52
- nonSpaceChar: /[^ ]/,
53
- newLineCharGlobal: /\n/g,
54
- tabCharGlobal: /\t/g,
55
- multipleSpaceGlobal: /\s+/g,
56
- blankLine: /^[ \t]*$/,
57
- doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
58
- blockquoteStart: /^ {0,3}>/,
59
- blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
60
- blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
61
- listReplaceTabs: /^\t+/,
62
- listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
63
- listIsTask: /^\[[ xX]\] +\S/,
64
- listReplaceTask: /^\[[ xX]\] +/,
65
- listTaskCheckbox: /\[[ xX]\]/,
66
- anyLine: /\n.*\n/,
67
- hrefBrackets: /^<(.*)>$/,
68
- tableDelimiter: /[:|]/,
69
- tableAlignChars: /^\||\| *$/g,
70
- tableRowBlankLine: /\n[ \t]*$/,
71
- tableAlignRight: /^ *-+: *$/,
72
- tableAlignCenter: /^ *:-+: *$/,
73
- tableAlignLeft: /^ *:-+ *$/,
74
- startATag: /^<a /i,
75
- endATag: /^<\/a>/i,
76
- startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
77
- endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
78
- startAngleBracket: /^</,
79
- endAngleBracket: />$/,
80
- pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
81
- unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
82
- escapeTest: /[&<>"']/,
83
- escapeReplace: /[&<>"']/g,
84
- escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
85
- escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
86
- unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,
87
- caret: /(^|[^\[])\^/g,
88
- percentDecode: /%25/g,
89
- findPipe: /\|/g,
90
- splitPipe: / \|/,
91
- slashPipe: /\\\|/g,
92
- carriageReturn: /\r\n|\r/g,
93
- spaceLine: /^ +$/gm,
94
- notSpaceStart: /^\S*/,
95
- endingNewline: /\n$/,
96
- listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
97
- nextBulletRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
98
- hrRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
99
- fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
100
- headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
101
- htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
102
- }, ue = /^(?:[ \t]*(?:\n|$))+/, de = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, fe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, M = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, pe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, me = /(?:[*+-]|\d{1,9}[.)])/, he = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ge = k(he).replace(/bull/g, me).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(), _e = k(he).replace(/bull/g, me).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(), ve = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ye = /^[^\n]+/, be = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, xe = k(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", be).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Se = k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, me).getRegex(), N = "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", P = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ce = 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", P).replace("tag", N).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), we = k(ve).replace("hr", M).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", N).getRegex(), F = {
103
- blockquote: k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", we).getRegex(),
104
- code: de,
105
- def: xe,
106
- fences: fe,
107
- heading: pe,
108
- hr: M,
109
- html: Ce,
110
- lheading: ge,
111
- list: Se,
112
- newline: ue,
113
- paragraph: we,
114
- table: O,
115
- text: ye
116
- }, Te = k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", M).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", N).getRegex(), Ee = {
117
- ...F,
118
- lheading: _e,
119
- table: Te,
120
- paragraph: k(ve).replace("hr", M).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", N).getRegex()
121
- }, De = {
122
- ...F,
123
- html: k("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", P).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(),
124
- def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
125
- heading: /^(#{1,6})(.*)(?:\n+|$)/,
126
- fences: O,
127
- lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
128
- paragraph: k(ve).replace("hr", M).replace("heading", " *#{1,6} *[^\n]").replace("lheading", ge).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
129
- }, Oe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ke = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ae = /^( {2,}|\\)\n(?!\s*$)/, je = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, I = /[\p{P}\p{S}]/u, L = /[\s\p{P}\p{S}]/u, Me = /[^\s\p{P}\p{S}]/u, Ne = k(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, L).getRegex(), Pe = /(?!~)[\p{P}\p{S}]/u, Fe = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Le = k(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", A ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Re = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ze = k(Re, "u").replace(/punct/g, I).getRegex(), Be = k(Re, "u").replace(/punct/g, Pe).getRegex(), Ve = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = k(Ve, "gu").replace(/notPunctSpace/g, Me).replace(/punctSpace/g, L).replace(/punct/g, I).getRegex(), Ue = k(Ve, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Fe).replace(/punct/g, Pe).getRegex(), We = k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Me).replace(/punctSpace/g, L).replace(/punct/g, I).getRegex(), Ge = k(/\\(punct)/, "gu").replace(/punct/g, I).getRegex(), Ke = 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(P).replace("(?:-->|$)", "-->").getRegex(), Je = 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(), R = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ye = k(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", R).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Xe = k(/^!?\[(label)\]\[(ref)\]/).replace("label", R).replace("ref", be).getRegex(), Ze = k(/^!?\[(ref)\](?:\[\])?/).replace("ref", be).getRegex(), Qe = k("reflink|nolink(?!\\()", "g").replace("reflink", Xe).replace("nolink", Ze).getRegex(), $e = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, z = {
130
- _backpedal: O,
131
- anyPunctuation: Ge,
132
- autolink: Ke,
133
- blockSkip: Le,
134
- br: Ae,
135
- code: ke,
136
- del: O,
137
- emStrongLDelim: ze,
138
- emStrongRDelimAst: He,
139
- emStrongRDelimUnd: We,
140
- escape: Oe,
141
- link: Ye,
142
- nolink: Ze,
143
- punctuation: Ne,
144
- reflink: Xe,
145
- reflinkSearch: Qe,
146
- tag: Je,
147
- text: je,
148
- url: O
149
- }, et = {
150
- ...z,
151
- link: k(/^!?\[(label)\]\((.*?)\)/).replace("label", R).getRegex(),
152
- reflink: k(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", R).getRegex()
153
- }, B = {
154
- ...z,
155
- emStrongRDelimAst: Ue,
156
- emStrongLDelim: Be,
157
- url: k(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", $e).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
158
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
159
- del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
160
- 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", $e).getRegex()
161
- }, tt = {
162
- ...B,
163
- br: k(Ae).replace("{2,}", "*").getRegex(),
164
- text: k(B.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
165
- }, V = {
166
- normal: F,
167
- gfm: Ee,
168
- pedantic: De
169
- }, H = {
170
- normal: z,
171
- gfm: B,
172
- breaks: tt,
173
- pedantic: et
174
- }, nt = {
175
- "&": "&amp;",
176
- "<": "&lt;",
177
- ">": "&gt;",
178
- "\"": "&quot;",
179
- "'": "&#39;"
180
- }, rt = (e) => nt[e];
181
- function U(e, t) {
182
- if (t) {
183
- if (j.escapeTest.test(e)) return e.replace(j.escapeReplace, rt);
184
- } else if (j.escapeTestNoEncode.test(e)) return e.replace(j.escapeReplaceNoEncode, rt);
185
- return e;
186
- }
187
- function it(e) {
188
- try {
189
- e = encodeURI(e).replace(j.percentDecode, "%");
190
- } catch {
191
- return null;
192
- }
193
- return e;
194
- }
195
- function at(e, t) {
196
- let n = e.replace(j.findPipe, (e, t, n) => {
197
- let r = !1, i = t;
198
- for (; --i >= 0 && n[i] === "\\";) r = !r;
199
- return r ? "|" : " |";
200
- }).split(j.splitPipe), r = 0;
201
- if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
202
- else for (; n.length < t;) n.push("");
203
- for (; r < n.length; r++) n[r] = n[r].trim().replace(j.slashPipe, "|");
204
- return n;
205
- }
206
- function W(e, t, n) {
207
- let r = e.length;
208
- if (r === 0) return "";
209
- let i = 0;
210
- for (; i < r;) {
211
- let a = e.charAt(r - i - 1);
212
- if (a === t && !n) i++;
213
- else if (a !== t && n) i++;
214
- else break;
215
- }
216
- return e.slice(0, r - i);
217
- }
218
- function ot(e, t) {
219
- if (e.indexOf(t[1]) === -1) return -1;
220
- let n = 0;
221
- for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
222
- else if (e[r] === t[0]) n++;
223
- else if (e[r] === t[1] && (n--, n < 0)) return r;
224
- return n > 0 ? -2 : -1;
225
- }
226
- function st(e, t, n, r, i) {
227
- let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
228
- r.state.inLink = !0;
229
- let c = {
230
- type: e[0].charAt(0) === "!" ? "image" : "link",
231
- raw: n,
232
- href: a,
233
- title: o,
234
- text: s,
235
- tokens: r.inlineTokens(s)
236
- };
237
- return r.state.inLink = !1, c;
238
- }
239
- function ct(e, t, n) {
240
- let r = e.match(n.other.indentCodeCompensation);
241
- if (r === null) return t;
242
- let i = r[1];
243
- return t.split("\n").map((e) => {
244
- let t = e.match(n.other.beginningSpace);
245
- if (t === null) return e;
246
- let [r] = t;
247
- return r.length >= i.length ? e.slice(i.length) : e;
248
- }).join("\n");
249
- }
250
- var G = class {
251
- options;
252
- rules;
253
- lexer;
254
- constructor(e) {
255
- this.options = e || E;
256
- }
257
- space(e) {
258
- let t = this.rules.block.newline.exec(e);
259
- if (t && t[0].length > 0) return {
260
- type: "space",
261
- raw: t[0]
262
- };
263
- }
264
- code(e) {
265
- let t = this.rules.block.code.exec(e);
266
- if (t) {
267
- let e = t[0].replace(this.rules.other.codeRemoveIndent, "");
268
- return {
269
- type: "code",
270
- raw: t[0],
271
- codeBlockStyle: "indented",
272
- text: this.options.pedantic ? e : W(e, "\n")
273
- };
274
- }
275
- }
276
- fences(e) {
277
- let t = this.rules.block.fences.exec(e);
278
- if (t) {
279
- let e = t[0], n = ct(e, t[3] || "", this.rules);
280
- return {
281
- type: "code",
282
- raw: e,
283
- lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2],
284
- text: n
285
- };
286
- }
287
- }
288
- heading(e) {
289
- let t = this.rules.block.heading.exec(e);
290
- if (t) {
291
- let e = t[2].trim();
292
- if (this.rules.other.endingHash.test(e)) {
293
- let t = W(e, "#");
294
- (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
295
- }
296
- return {
297
- type: "heading",
298
- raw: t[0],
299
- depth: t[1].length,
300
- text: e,
301
- tokens: this.lexer.inline(e)
302
- };
303
- }
304
- }
305
- hr(e) {
306
- let t = this.rules.block.hr.exec(e);
307
- if (t) return {
308
- type: "hr",
309
- raw: W(t[0], "\n")
310
- };
311
- }
312
- blockquote(e) {
313
- let t = this.rules.block.blockquote.exec(e);
314
- if (t) {
315
- let e = W(t[0], "\n").split("\n"), n = "", r = "", i = [];
316
- for (; e.length > 0;) {
317
- let t = !1, a = [], o;
318
- for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
319
- else if (!t) a.push(e[o]);
320
- else break;
321
- e = e.slice(o);
322
- let s = a.join("\n"), c = s.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
323
- n = n ? `${n}
324
- ${s}` : s, r = r ? `${r}
325
- ${c}` : c;
326
- let l = this.lexer.state.top;
327
- if (this.lexer.state.top = !0, this.lexer.blockTokens(c, i, !0), this.lexer.state.top = l, e.length === 0) break;
328
- let u = i.at(-1);
329
- if (u?.type === "code") break;
330
- if (u?.type === "blockquote") {
331
- let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
332
- i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
333
- break;
334
- } else if (u?.type === "list") {
335
- let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
336
- i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
337
- continue;
338
- }
339
- }
340
- return {
341
- type: "blockquote",
342
- raw: n,
343
- tokens: i,
344
- text: r
345
- };
346
- }
347
- }
348
- list(e) {
349
- let t = this.rules.block.list.exec(e);
350
- if (t) {
351
- let n = t[1].trim(), r = n.length > 1, i = {
352
- type: "list",
353
- raw: "",
354
- ordered: r,
355
- start: r ? +n.slice(0, -1) : "",
356
- loose: !1,
357
- items: []
358
- };
359
- n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
360
- let a = this.rules.other.listItemRegex(n), o = !1;
361
- for (; e;) {
362
- let n = !1, r = "", s = "";
363
- if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
364
- r = t[0], e = e.substring(r.length);
365
- let c = t[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, (e) => " ".repeat(3 * e.length)), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
366
- if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = t[2].search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
367
- let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d);
368
- for (; e;) {
369
- let f = e.split("\n", 1)[0], p;
370
- if (l = f, this.options.pedantic ? (l = l.replace(this.rules.other.listReplaceNesting, " "), p = l) : p = l.replace(this.rules.other.tabCharGlobal, " "), i.test(l) || a.test(l) || o.test(l) || t.test(l) || n.test(l)) break;
371
- if (p.search(this.rules.other.nonSpaceChar) >= d || !l.trim()) s += "\n" + p.slice(d);
372
- else {
373
- if (u || c.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || i.test(c) || a.test(c) || n.test(c)) break;
374
- s += "\n" + l;
375
- }
376
- !u && !l.trim() && (u = !0), r += f + "\n", e = e.substring(f.length + 1), c = p.slice(d);
377
- }
378
- }
379
- i.loose || (o ? i.loose = !0 : this.rules.other.doubleBlankLine.test(r) && (o = !0)), i.items.push({
380
- type: "list_item",
381
- raw: r,
382
- task: !!this.options.gfm && this.rules.other.listIsTask.test(s),
383
- loose: !1,
384
- text: s,
385
- tokens: []
386
- }), i.raw += r;
387
- }
388
- let s = i.items.at(-1);
389
- if (s) s.raw = s.raw.trimEnd(), s.text = s.text.trimEnd();
390
- else return;
391
- i.raw = i.raw.trimEnd();
392
- for (let e of i.items) {
393
- if (this.lexer.state.top = !1, e.tokens = this.lexer.blockTokens(e.text, []), e.task) {
394
- if (e.text = e.text.replace(this.rules.other.listReplaceTask, ""), e.tokens[0]?.type === "text" || e.tokens[0]?.type === "paragraph") {
395
- e.tokens[0].raw = e.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), e.tokens[0].text = e.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
396
- for (let e = this.lexer.inlineQueue.length - 1; e >= 0; e--) if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)) {
397
- this.lexer.inlineQueue[e].src = this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask, "");
398
- break;
399
- }
400
- }
401
- let t = this.rules.other.listTaskCheckbox.exec(e.raw);
402
- if (t) {
403
- let n = {
404
- type: "checkbox",
405
- raw: t[0] + " ",
406
- checked: t[0] !== "[ ]"
407
- };
408
- e.checked = n.checked, i.loose ? e.tokens[0] && ["paragraph", "text"].includes(e.tokens[0].type) && "tokens" in e.tokens[0] && e.tokens[0].tokens ? (e.tokens[0].raw = n.raw + e.tokens[0].raw, e.tokens[0].text = n.raw + e.tokens[0].text, e.tokens[0].tokens.unshift(n)) : e.tokens.unshift({
409
- type: "paragraph",
410
- raw: n.raw,
411
- text: n.raw,
412
- tokens: [n]
413
- }) : e.tokens.unshift(n);
414
- }
415
- }
416
- if (!i.loose) {
417
- let t = e.tokens.filter((e) => e.type === "space");
418
- i.loose = t.length > 0 && t.some((e) => this.rules.other.anyLine.test(e.raw));
419
- }
420
- }
421
- if (i.loose) for (let e of i.items) {
422
- e.loose = !0;
423
- for (let t of e.tokens) t.type === "text" && (t.type = "paragraph");
424
- }
425
- return i;
426
- }
427
- }
428
- html(e) {
429
- let t = this.rules.block.html.exec(e);
430
- if (t) return {
431
- type: "html",
432
- block: !0,
433
- raw: t[0],
434
- pre: t[1] === "pre" || t[1] === "script" || t[1] === "style",
435
- text: t[0]
436
- };
437
- }
438
- def(e) {
439
- let t = this.rules.block.def.exec(e);
440
- if (t) {
441
- let e = t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), n = t[2] ? t[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", r = t[3] ? t[3].substring(1, t[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : t[3];
442
- return {
443
- type: "def",
444
- tag: e,
445
- raw: t[0],
446
- href: n,
447
- title: r
448
- };
449
- }
450
- }
451
- table(e) {
452
- let t = this.rules.block.table.exec(e);
453
- if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
454
- let n = at(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
455
- type: "table",
456
- raw: t[0],
457
- header: [],
458
- align: [],
459
- rows: []
460
- };
461
- if (n.length === r.length) {
462
- for (let e of r) this.rules.other.tableAlignRight.test(e) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(e) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(e) ? a.align.push("left") : a.align.push(null);
463
- for (let e = 0; e < n.length; e++) a.header.push({
464
- text: n[e],
465
- tokens: this.lexer.inline(n[e]),
466
- header: !0,
467
- align: a.align[e]
468
- });
469
- for (let e of i) a.rows.push(at(e, a.header.length).map((e, t) => ({
470
- text: e,
471
- tokens: this.lexer.inline(e),
472
- header: !1,
473
- align: a.align[t]
474
- })));
475
- return a;
476
- }
477
- }
478
- lheading(e) {
479
- let t = this.rules.block.lheading.exec(e);
480
- if (t) return {
481
- type: "heading",
482
- raw: t[0],
483
- depth: t[2].charAt(0) === "=" ? 1 : 2,
484
- text: t[1],
485
- tokens: this.lexer.inline(t[1])
486
- };
487
- }
488
- paragraph(e) {
489
- let t = this.rules.block.paragraph.exec(e);
490
- if (t) {
491
- let e = t[1].charAt(t[1].length - 1) === "\n" ? t[1].slice(0, -1) : t[1];
492
- return {
493
- type: "paragraph",
494
- raw: t[0],
495
- text: e,
496
- tokens: this.lexer.inline(e)
497
- };
498
- }
499
- }
500
- text(e) {
501
- let t = this.rules.block.text.exec(e);
502
- if (t) return {
503
- type: "text",
504
- raw: t[0],
505
- text: t[0],
506
- tokens: this.lexer.inline(t[0])
507
- };
508
- }
509
- escape(e) {
510
- let t = this.rules.inline.escape.exec(e);
511
- if (t) return {
512
- type: "escape",
513
- raw: t[0],
514
- text: t[1]
515
- };
516
- }
517
- tag(e) {
518
- let t = this.rules.inline.tag.exec(e);
519
- if (t) return !this.lexer.state.inLink && this.rules.other.startATag.test(t[0]) ? this.lexer.state.inLink = !0 : this.lexer.state.inLink && this.rules.other.endATag.test(t[0]) && (this.lexer.state.inLink = !1), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(t[0]) ? this.lexer.state.inRawBlock = !0 : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(t[0]) && (this.lexer.state.inRawBlock = !1), {
520
- type: "html",
521
- raw: t[0],
522
- inLink: this.lexer.state.inLink,
523
- inRawBlock: this.lexer.state.inRawBlock,
524
- block: !1,
525
- text: t[0]
526
- };
527
- }
528
- link(e) {
529
- let t = this.rules.inline.link.exec(e);
530
- if (t) {
531
- let e = t[2].trim();
532
- if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
533
- if (!this.rules.other.endAngleBracket.test(e)) return;
534
- let t = W(e.slice(0, -1), "\\");
535
- if ((e.length - t.length) % 2 == 0) return;
536
- } else {
537
- let e = ot(t[2], "()");
538
- if (e === -2) return;
539
- if (e > -1) {
540
- let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
541
- t[2] = t[2].substring(0, e), t[0] = t[0].substring(0, n).trim(), t[3] = "";
542
- }
543
- }
544
- let n = t[2], r = "";
545
- if (this.options.pedantic) {
546
- let e = this.rules.other.pedanticHrefTitle.exec(n);
547
- e && (n = e[1], r = e[3]);
548
- } else r = t[3] ? t[3].slice(1, -1) : "";
549
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), st(t, {
550
- href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
551
- title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
552
- }, t[0], this.lexer, this.rules);
553
- }
554
- }
555
- reflink(e, t) {
556
- let n;
557
- if ((n = this.rules.inline.reflink.exec(e)) || (n = this.rules.inline.nolink.exec(e))) {
558
- let e = t[(n[2] || n[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
559
- if (!e) {
560
- let e = n[0].charAt(0);
561
- return {
562
- type: "text",
563
- raw: e,
564
- text: e
565
- };
566
- }
567
- return st(n, e, n[0], this.lexer, this.rules);
568
- }
569
- }
570
- emStrong(e, t, n = "") {
571
- let r = this.rules.inline.emStrongLDelim.exec(e);
572
- if (!(!r || r[3] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(r[1] || r[2]) || !n || this.rules.inline.punctuation.exec(n))) {
573
- let n = [...r[0]].length - 1, i, a, o = n, s = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
574
- for (c.lastIndex = 0, t = t.slice(-1 * e.length + n); (r = c.exec(t)) != null;) {
575
- if (i = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !i) continue;
576
- if (a = [...i].length, r[3] || r[4]) {
577
- o += a;
578
- continue;
579
- } else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
580
- s += a;
581
- continue;
582
- }
583
- if (o -= a, o > 0) continue;
584
- a = Math.min(a, a + o + s);
585
- let t = [...r[0]][0].length, c = e.slice(0, n + r.index + t + a);
586
- if (Math.min(n, a) % 2) {
587
- let e = c.slice(1, -1);
588
- return {
589
- type: "em",
590
- raw: c,
591
- text: e,
592
- tokens: this.lexer.inlineTokens(e)
593
- };
594
- }
595
- let l = c.slice(2, -2);
596
- return {
597
- type: "strong",
598
- raw: c,
599
- text: l,
600
- tokens: this.lexer.inlineTokens(l)
601
- };
602
- }
603
- }
604
- }
605
- codespan(e) {
606
- let t = this.rules.inline.code.exec(e);
607
- if (t) {
608
- let e = t[2].replace(this.rules.other.newLineCharGlobal, " "), n = this.rules.other.nonSpaceChar.test(e), r = this.rules.other.startingSpaceChar.test(e) && this.rules.other.endingSpaceChar.test(e);
609
- return n && r && (e = e.substring(1, e.length - 1)), {
610
- type: "codespan",
611
- raw: t[0],
612
- text: e
613
- };
614
- }
615
- }
616
- br(e) {
617
- let t = this.rules.inline.br.exec(e);
618
- if (t) return {
619
- type: "br",
620
- raw: t[0]
621
- };
622
- }
623
- del(e) {
624
- let t = this.rules.inline.del.exec(e);
625
- if (t) return {
626
- type: "del",
627
- raw: t[0],
628
- text: t[2],
629
- tokens: this.lexer.inlineTokens(t[2])
630
- };
631
- }
632
- autolink(e) {
633
- let t = this.rules.inline.autolink.exec(e);
634
- if (t) {
635
- let e, n;
636
- return t[2] === "@" ? (e = t[1], n = "mailto:" + e) : (e = t[1], n = e), {
637
- type: "link",
638
- raw: t[0],
639
- text: e,
640
- href: n,
641
- tokens: [{
642
- type: "text",
643
- raw: e,
644
- text: e
645
- }]
646
- };
647
- }
648
- }
649
- url(e) {
650
- let t;
651
- if (t = this.rules.inline.url.exec(e)) {
652
- let e, n;
653
- if (t[2] === "@") e = t[0], n = "mailto:" + e;
654
- else {
655
- let r;
656
- do
657
- r = t[0], t[0] = this.rules.inline._backpedal.exec(t[0])?.[0] ?? "";
658
- while (r !== t[0]);
659
- e = t[0], n = t[1] === "www." ? "http://" + t[0] : t[0];
660
- }
661
- return {
662
- type: "link",
663
- raw: t[0],
664
- text: e,
665
- href: n,
666
- tokens: [{
667
- type: "text",
668
- raw: e,
669
- text: e
670
- }]
671
- };
672
- }
673
- }
674
- inlineText(e) {
675
- let t = this.rules.inline.text.exec(e);
676
- if (t) {
677
- let e = this.lexer.state.inRawBlock;
678
- return {
679
- type: "text",
680
- raw: t[0],
681
- text: t[0],
682
- escaped: e
683
- };
684
- }
685
- }
686
- }, K = class e {
687
- tokens;
688
- options;
689
- state;
690
- inlineQueue;
691
- tokenizer;
692
- constructor(e) {
693
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || E, this.options.tokenizer = this.options.tokenizer || new G(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
694
- inLink: !1,
695
- inRawBlock: !1,
696
- top: !0
697
- };
698
- let t = {
699
- other: j,
700
- block: V.normal,
701
- inline: H.normal
702
- };
703
- this.options.pedantic ? (t.block = V.pedantic, t.inline = H.pedantic) : this.options.gfm && (t.block = V.gfm, this.options.breaks ? t.inline = H.breaks : t.inline = H.gfm), this.tokenizer.rules = t;
704
- }
705
- static get rules() {
706
- return {
707
- block: V,
708
- inline: H
709
- };
710
- }
711
- static lex(t, n) {
712
- return new e(n).lex(t);
713
- }
714
- static lexInline(t, n) {
715
- return new e(n).inlineTokens(t);
716
- }
717
- lex(e) {
718
- e = e.replace(j.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
719
- for (let e = 0; e < this.inlineQueue.length; e++) {
720
- let t = this.inlineQueue[e];
721
- this.inlineTokens(t.src, t.tokens);
722
- }
723
- return this.inlineQueue = [], this.tokens;
724
- }
725
- blockTokens(e, t = [], n = !1) {
726
- for (this.options.pedantic && (e = e.replace(j.tabCharGlobal, " ").replace(j.spaceLine, "")); e;) {
727
- let r;
728
- if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
729
- if (r = this.tokenizer.space(e)) {
730
- e = e.substring(r.raw.length);
731
- let n = t.at(-1);
732
- r.raw.length === 1 && n !== void 0 ? n.raw += "\n" : t.push(r);
733
- continue;
734
- }
735
- if (r = this.tokenizer.code(e)) {
736
- e = e.substring(r.raw.length);
737
- let n = t.at(-1);
738
- n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.at(-1).src = n.text) : t.push(r);
739
- continue;
740
- }
741
- if (r = this.tokenizer.fences(e)) {
742
- e = e.substring(r.raw.length), t.push(r);
743
- continue;
744
- }
745
- if (r = this.tokenizer.heading(e)) {
746
- e = e.substring(r.raw.length), t.push(r);
747
- continue;
748
- }
749
- if (r = this.tokenizer.hr(e)) {
750
- e = e.substring(r.raw.length), t.push(r);
751
- continue;
752
- }
753
- if (r = this.tokenizer.blockquote(e)) {
754
- e = e.substring(r.raw.length), t.push(r);
755
- continue;
756
- }
757
- if (r = this.tokenizer.list(e)) {
758
- e = e.substring(r.raw.length), t.push(r);
759
- continue;
760
- }
761
- if (r = this.tokenizer.html(e)) {
762
- e = e.substring(r.raw.length), t.push(r);
763
- continue;
764
- }
765
- if (r = this.tokenizer.def(e)) {
766
- e = e.substring(r.raw.length);
767
- let n = t.at(-1);
768
- n?.type === "paragraph" || n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.raw, this.inlineQueue.at(-1).src = n.text) : this.tokens.links[r.tag] || (this.tokens.links[r.tag] = {
769
- href: r.href,
770
- title: r.title
771
- }, t.push(r));
772
- continue;
773
- }
774
- if (r = this.tokenizer.table(e)) {
775
- e = e.substring(r.raw.length), t.push(r);
776
- continue;
777
- }
778
- if (r = this.tokenizer.lheading(e)) {
779
- e = e.substring(r.raw.length), t.push(r);
780
- continue;
781
- }
782
- let i = e;
783
- if (this.options.extensions?.startBlock) {
784
- let t = Infinity, n = e.slice(1), r;
785
- this.options.extensions.startBlock.forEach((e) => {
786
- r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
787
- }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
788
- }
789
- if (this.state.top && (r = this.tokenizer.paragraph(i))) {
790
- let a = t.at(-1);
791
- n && a?.type === "paragraph" ? (a.raw += (a.raw.endsWith("\n") ? "" : "\n") + r.raw, a.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = a.text) : t.push(r), n = i.length !== e.length, e = e.substring(r.raw.length);
792
- continue;
793
- }
794
- if (r = this.tokenizer.text(e)) {
795
- e = e.substring(r.raw.length);
796
- let n = t.at(-1);
797
- n?.type === "text" ? (n.raw += (n.raw.endsWith("\n") ? "" : "\n") + r.raw, n.text += "\n" + r.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = n.text) : t.push(r);
798
- continue;
799
- }
800
- if (e) {
801
- let t = "Infinite loop on byte: " + e.charCodeAt(0);
802
- if (this.options.silent) {
803
- console.error(t);
804
- break;
805
- } else throw Error(t);
806
- }
807
- }
808
- return this.state.top = !0, t;
809
- }
810
- inline(e, t = []) {
811
- return this.inlineQueue.push({
812
- src: e,
813
- tokens: t
814
- }), t;
815
- }
816
- inlineTokens(e, t = []) {
817
- let n = e, r = null;
818
- if (this.tokens.links) {
819
- let e = Object.keys(this.tokens.links);
820
- if (e.length > 0) for (; (r = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null;) e.includes(r[0].slice(r[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r.index) + "[" + "a".repeat(r[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
821
- }
822
- for (; (r = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null;) n = n.slice(0, r.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
823
- let i;
824
- for (; (r = this.tokenizer.rules.inline.blockSkip.exec(n)) != null;) i = r[2] ? r[2].length : 0, n = n.slice(0, r.index + i) + "[" + "a".repeat(r[0].length - i - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
825
- n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
826
- let a = !1, o = "";
827
- for (; e;) {
828
- a || (o = ""), a = !1;
829
- let r;
830
- if (this.options.extensions?.inline?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
831
- if (r = this.tokenizer.escape(e)) {
832
- e = e.substring(r.raw.length), t.push(r);
833
- continue;
834
- }
835
- if (r = this.tokenizer.tag(e)) {
836
- e = e.substring(r.raw.length), t.push(r);
837
- continue;
838
- }
839
- if (r = this.tokenizer.link(e)) {
840
- e = e.substring(r.raw.length), t.push(r);
841
- continue;
842
- }
843
- if (r = this.tokenizer.reflink(e, this.tokens.links)) {
844
- e = e.substring(r.raw.length);
845
- let n = t.at(-1);
846
- r.type === "text" && n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
847
- continue;
848
- }
849
- if (r = this.tokenizer.emStrong(e, n, o)) {
850
- e = e.substring(r.raw.length), t.push(r);
851
- continue;
852
- }
853
- if (r = this.tokenizer.codespan(e)) {
854
- e = e.substring(r.raw.length), t.push(r);
855
- continue;
856
- }
857
- if (r = this.tokenizer.br(e)) {
858
- e = e.substring(r.raw.length), t.push(r);
859
- continue;
860
- }
861
- if (r = this.tokenizer.del(e)) {
862
- e = e.substring(r.raw.length), t.push(r);
863
- continue;
864
- }
865
- if (r = this.tokenizer.autolink(e)) {
866
- e = e.substring(r.raw.length), t.push(r);
867
- continue;
868
- }
869
- if (!this.state.inLink && (r = this.tokenizer.url(e))) {
870
- e = e.substring(r.raw.length), t.push(r);
871
- continue;
872
- }
873
- let i = e;
874
- if (this.options.extensions?.startInline) {
875
- let t = Infinity, n = e.slice(1), r;
876
- this.options.extensions.startInline.forEach((e) => {
877
- r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
878
- }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
879
- }
880
- if (r = this.tokenizer.inlineText(i)) {
881
- e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
882
- let n = t.at(-1);
883
- n?.type === "text" ? (n.raw += r.raw, n.text += r.text) : t.push(r);
884
- continue;
885
- }
886
- if (e) {
887
- let t = "Infinite loop on byte: " + e.charCodeAt(0);
888
- if (this.options.silent) {
889
- console.error(t);
890
- break;
891
- } else throw Error(t);
892
- }
893
- }
894
- return t;
895
- }
896
- }, q = class {
897
- options;
898
- parser;
899
- constructor(e) {
900
- this.options = e || E;
901
- }
902
- space(e) {
903
- return "";
904
- }
905
- code({ text: e, lang: t, escaped: n }) {
906
- let r = (t || "").match(j.notSpaceStart)?.[0], i = e.replace(j.endingNewline, "") + "\n";
907
- return r ? "<pre><code class=\"language-" + U(r) + "\">" + (n ? i : U(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : U(i, !0)) + "</code></pre>\n";
908
- }
909
- blockquote({ tokens: e }) {
910
- return `<blockquote>
911
- ${this.parser.parse(e)}</blockquote>
912
- `;
913
- }
914
- html({ text: e }) {
915
- return e;
916
- }
917
- def(e) {
918
- return "";
919
- }
920
- heading({ tokens: e, depth: t }) {
921
- return `<h${t}>${this.parser.parseInline(e)}</h${t}>
922
- `;
923
- }
924
- hr(e) {
925
- return "<hr>\n";
926
- }
927
- list(e) {
928
- let t = e.ordered, n = e.start, r = "";
929
- for (let t = 0; t < e.items.length; t++) {
930
- let n = e.items[t];
931
- r += this.listitem(n);
932
- }
933
- let i = t ? "ol" : "ul", a = t && n !== 1 ? " start=\"" + n + "\"" : "";
934
- return "<" + i + a + ">\n" + r + "</" + i + ">\n";
935
- }
936
- listitem(e) {
937
- return `<li>${this.parser.parse(e.tokens)}</li>
938
- `;
939
- }
940
- checkbox({ checked: e }) {
941
- return "<input " + (e ? "checked=\"\" " : "") + "disabled=\"\" type=\"checkbox\"> ";
942
- }
943
- paragraph({ tokens: e }) {
944
- return `<p>${this.parser.parseInline(e)}</p>
945
- `;
946
- }
947
- table(e) {
948
- let t = "", n = "";
949
- for (let t = 0; t < e.header.length; t++) n += this.tablecell(e.header[t]);
950
- t += this.tablerow({ text: n });
951
- let r = "";
952
- for (let t = 0; t < e.rows.length; t++) {
953
- let i = e.rows[t];
954
- n = "";
955
- for (let e = 0; e < i.length; e++) n += this.tablecell(i[e]);
956
- r += this.tablerow({ text: n });
957
- }
958
- return r &&= `<tbody>${r}</tbody>`, "<table>\n<thead>\n" + t + "</thead>\n" + r + "</table>\n";
959
- }
960
- tablerow({ text: e }) {
961
- return `<tr>
962
- ${e}</tr>
963
- `;
964
- }
965
- tablecell(e) {
966
- let t = this.parser.parseInline(e.tokens), n = e.header ? "th" : "td";
967
- return (e.align ? `<${n} align="${e.align}">` : `<${n}>`) + t + `</${n}>
968
- `;
969
- }
970
- strong({ tokens: e }) {
971
- return `<strong>${this.parser.parseInline(e)}</strong>`;
972
- }
973
- em({ tokens: e }) {
974
- return `<em>${this.parser.parseInline(e)}</em>`;
975
- }
976
- codespan({ text: e }) {
977
- return `<code>${U(e, !0)}</code>`;
978
- }
979
- br(e) {
980
- return "<br>";
981
- }
982
- del({ tokens: e }) {
983
- return `<del>${this.parser.parseInline(e)}</del>`;
984
- }
985
- link({ href: e, title: t, tokens: n }) {
986
- let r = this.parser.parseInline(n), i = it(e);
987
- if (i === null) return r;
988
- e = i;
989
- let a = "<a href=\"" + e + "\"";
990
- return t && (a += " title=\"" + U(t) + "\""), a += ">" + r + "</a>", a;
991
- }
992
- image({ href: e, title: t, text: n, tokens: r }) {
993
- r && (n = this.parser.parseInline(r, this.parser.textRenderer));
994
- let i = it(e);
995
- if (i === null) return U(n);
996
- e = i;
997
- let a = `<img src="${e}" alt="${n}"`;
998
- return t && (a += ` title="${U(t)}"`), a += ">", a;
999
- }
1000
- text(e) {
1001
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : U(e.text);
1002
- }
1003
- }, J = class {
1004
- strong({ text: e }) {
1005
- return e;
1006
- }
1007
- em({ text: e }) {
1008
- return e;
1009
- }
1010
- codespan({ text: e }) {
1011
- return e;
1012
- }
1013
- del({ text: e }) {
1014
- return e;
1015
- }
1016
- html({ text: e }) {
1017
- return e;
1018
- }
1019
- text({ text: e }) {
1020
- return e;
1021
- }
1022
- link({ text: e }) {
1023
- return "" + e;
1024
- }
1025
- image({ text: e }) {
1026
- return "" + e;
1027
- }
1028
- br() {
1029
- return "";
1030
- }
1031
- checkbox({ raw: e }) {
1032
- return e;
1033
- }
1034
- }, Y = class e {
1035
- options;
1036
- renderer;
1037
- textRenderer;
1038
- constructor(e) {
1039
- this.options = e || E, this.options.renderer = this.options.renderer || new q(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new J();
1040
- }
1041
- static parse(t, n) {
1042
- return new e(n).parse(t);
1043
- }
1044
- static parseInline(t, n) {
1045
- return new e(n).parseInline(t);
1046
- }
1047
- parse(e) {
1048
- let t = "";
1049
- for (let n = 0; n < e.length; n++) {
1050
- let r = e[n];
1051
- if (this.options.extensions?.renderers?.[r.type]) {
1052
- let e = r, n = this.options.extensions.renderers[e.type].call({ parser: this }, e);
1053
- if (n !== !1 || ![
1054
- "space",
1055
- "hr",
1056
- "heading",
1057
- "code",
1058
- "table",
1059
- "blockquote",
1060
- "list",
1061
- "html",
1062
- "def",
1063
- "paragraph",
1064
- "text"
1065
- ].includes(e.type)) {
1066
- t += n || "";
1067
- continue;
1068
- }
1069
- }
1070
- let i = r;
1071
- switch (i.type) {
1072
- case "space":
1073
- t += this.renderer.space(i);
1074
- break;
1075
- case "hr":
1076
- t += this.renderer.hr(i);
1077
- break;
1078
- case "heading":
1079
- t += this.renderer.heading(i);
1080
- break;
1081
- case "code":
1082
- t += this.renderer.code(i);
1083
- break;
1084
- case "table":
1085
- t += this.renderer.table(i);
1086
- break;
1087
- case "blockquote":
1088
- t += this.renderer.blockquote(i);
1089
- break;
1090
- case "list":
1091
- t += this.renderer.list(i);
1092
- break;
1093
- case "checkbox":
1094
- t += this.renderer.checkbox(i);
1095
- break;
1096
- case "html":
1097
- t += this.renderer.html(i);
1098
- break;
1099
- case "def":
1100
- t += this.renderer.def(i);
1101
- break;
1102
- case "paragraph":
1103
- t += this.renderer.paragraph(i);
1104
- break;
1105
- case "text":
1106
- t += this.renderer.text(i);
1107
- break;
1108
- default: {
1109
- let e = "Token with \"" + i.type + "\" type was not found.";
1110
- if (this.options.silent) return console.error(e), "";
1111
- throw Error(e);
1112
- }
1113
- }
1114
- }
1115
- return t;
1116
- }
1117
- parseInline(e, t = this.renderer) {
1118
- let n = "";
1119
- for (let r = 0; r < e.length; r++) {
1120
- let i = e[r];
1121
- if (this.options.extensions?.renderers?.[i.type]) {
1122
- let e = this.options.extensions.renderers[i.type].call({ parser: this }, i);
1123
- if (e !== !1 || ![
1124
- "escape",
1125
- "html",
1126
- "link",
1127
- "image",
1128
- "strong",
1129
- "em",
1130
- "codespan",
1131
- "br",
1132
- "del",
1133
- "text"
1134
- ].includes(i.type)) {
1135
- n += e || "";
1136
- continue;
1137
- }
1138
- }
1139
- let a = i;
1140
- switch (a.type) {
1141
- case "escape":
1142
- n += t.text(a);
1143
- break;
1144
- case "html":
1145
- n += t.html(a);
1146
- break;
1147
- case "link":
1148
- n += t.link(a);
1149
- break;
1150
- case "image":
1151
- n += t.image(a);
1152
- break;
1153
- case "checkbox":
1154
- n += t.checkbox(a);
1155
- break;
1156
- case "strong":
1157
- n += t.strong(a);
1158
- break;
1159
- case "em":
1160
- n += t.em(a);
1161
- break;
1162
- case "codespan":
1163
- n += t.codespan(a);
1164
- break;
1165
- case "br":
1166
- n += t.br(a);
1167
- break;
1168
- case "del":
1169
- n += t.del(a);
1170
- break;
1171
- case "text":
1172
- n += t.text(a);
1173
- break;
1174
- default: {
1175
- let e = "Token with \"" + a.type + "\" type was not found.";
1176
- if (this.options.silent) return console.error(e), "";
1177
- throw Error(e);
1178
- }
1179
- }
1180
- }
1181
- return n;
1182
- }
1183
- }, X = class {
1184
- options;
1185
- block;
1186
- constructor(e) {
1187
- this.options = e || E;
1188
- }
1189
- static passThroughHooks = new Set([
1190
- "preprocess",
1191
- "postprocess",
1192
- "processAllTokens",
1193
- "emStrongMask"
1194
- ]);
1195
- static passThroughHooksRespectAsync = new Set([
1196
- "preprocess",
1197
- "postprocess",
1198
- "processAllTokens"
1199
- ]);
1200
- preprocess(e) {
1201
- return e;
1202
- }
1203
- postprocess(e) {
1204
- return e;
1205
- }
1206
- processAllTokens(e) {
1207
- return e;
1208
- }
1209
- emStrongMask(e) {
1210
- return e;
1211
- }
1212
- provideLexer() {
1213
- return this.block ? K.lex : K.lexInline;
1214
- }
1215
- provideParser() {
1216
- return this.block ? Y.parse : Y.parseInline;
1217
- }
1218
- }, Z = new class {
1219
- defaults = T();
1220
- options = this.setOptions;
1221
- parse = this.parseMarkdown(!0);
1222
- parseInline = this.parseMarkdown(!1);
1223
- Parser = Y;
1224
- Renderer = q;
1225
- TextRenderer = J;
1226
- Lexer = K;
1227
- Tokenizer = G;
1228
- Hooks = X;
1229
- constructor(...e) {
1230
- this.use(...e);
1231
- }
1232
- walkTokens(e, t) {
1233
- let n = [];
1234
- for (let r of e) switch (n = n.concat(t.call(this, r)), r.type) {
1235
- case "table": {
1236
- let e = r;
1237
- for (let r of e.header) n = n.concat(this.walkTokens(r.tokens, t));
1238
- for (let r of e.rows) for (let e of r) n = n.concat(this.walkTokens(e.tokens, t));
1239
- break;
1240
- }
1241
- case "list": {
1242
- let e = r;
1243
- n = n.concat(this.walkTokens(e.items, t));
1244
- break;
1245
- }
1246
- default: {
1247
- let e = r;
1248
- this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
1249
- let i = e[r].flat(Infinity);
1250
- n = n.concat(this.walkTokens(i, t));
1251
- }) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
1252
- }
1253
- }
1254
- return n;
1255
- }
1256
- use(...e) {
1257
- let t = this.defaults.extensions || {
1258
- renderers: {},
1259
- childTokens: {}
1260
- };
1261
- return e.forEach((e) => {
1262
- let n = { ...e };
1263
- if (n.async = this.defaults.async || n.async || !1, e.extensions && (e.extensions.forEach((e) => {
1264
- if (!e.name) throw Error("extension name required");
1265
- if ("renderer" in e) {
1266
- let n = t.renderers[e.name];
1267
- n ? t.renderers[e.name] = function(...t) {
1268
- let r = e.renderer.apply(this, t);
1269
- return r === !1 && (r = n.apply(this, t)), r;
1270
- } : t.renderers[e.name] = e.renderer;
1271
- }
1272
- if ("tokenizer" in e) {
1273
- if (!e.level || e.level !== "block" && e.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
1274
- let n = t[e.level];
1275
- n ? n.unshift(e.tokenizer) : t[e.level] = [e.tokenizer], e.start && (e.level === "block" ? t.startBlock ? t.startBlock.push(e.start) : t.startBlock = [e.start] : e.level === "inline" && (t.startInline ? t.startInline.push(e.start) : t.startInline = [e.start]));
1276
- }
1277
- "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
1278
- }), n.extensions = t), e.renderer) {
1279
- let t = this.defaults.renderer || new q(this.defaults);
1280
- for (let n in e.renderer) {
1281
- if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
1282
- if (["options", "parser"].includes(n)) continue;
1283
- let r = n, i = e.renderer[r], a = t[r];
1284
- t[r] = (...e) => {
1285
- let n = i.apply(t, e);
1286
- return n === !1 && (n = a.apply(t, e)), n || "";
1287
- };
1288
- }
1289
- n.renderer = t;
1290
- }
1291
- if (e.tokenizer) {
1292
- let t = this.defaults.tokenizer || new G(this.defaults);
1293
- for (let n in e.tokenizer) {
1294
- if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1295
- if ([
1296
- "options",
1297
- "rules",
1298
- "lexer"
1299
- ].includes(n)) continue;
1300
- let r = n, i = e.tokenizer[r], a = t[r];
1301
- t[r] = (...e) => {
1302
- let n = i.apply(t, e);
1303
- return n === !1 && (n = a.apply(t, e)), n;
1304
- };
1305
- }
1306
- n.tokenizer = t;
1307
- }
1308
- if (e.hooks) {
1309
- let t = this.defaults.hooks || new X();
1310
- for (let n in e.hooks) {
1311
- if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1312
- if (["options", "block"].includes(n)) continue;
1313
- let r = n, i = e.hooks[r], a = t[r];
1314
- X.passThroughHooks.has(n) ? t[r] = (e) => {
1315
- if (this.defaults.async && X.passThroughHooksRespectAsync.has(n)) return (async () => {
1316
- let n = await i.call(t, e);
1317
- return a.call(t, n);
1318
- })();
1319
- let r = i.call(t, e);
1320
- return a.call(t, r);
1321
- } : t[r] = (...e) => {
1322
- if (this.defaults.async) return (async () => {
1323
- let n = await i.apply(t, e);
1324
- return n === !1 && (n = await a.apply(t, e)), n;
1325
- })();
1326
- let n = i.apply(t, e);
1327
- return n === !1 && (n = a.apply(t, e)), n;
1328
- };
1329
- }
1330
- n.hooks = t;
1331
- }
1332
- if (e.walkTokens) {
1333
- let t = this.defaults.walkTokens, r = e.walkTokens;
1334
- n.walkTokens = function(e) {
1335
- let n = [];
1336
- return n.push(r.call(this, e)), t && (n = n.concat(t.call(this, e))), n;
1337
- };
1338
- }
1339
- this.defaults = {
1340
- ...this.defaults,
1341
- ...n
1342
- };
1343
- }), this;
1344
- }
1345
- setOptions(e) {
1346
- return this.defaults = {
1347
- ...this.defaults,
1348
- ...e
1349
- }, this;
1350
- }
1351
- lexer(e, t) {
1352
- return K.lex(e, t ?? this.defaults);
1353
- }
1354
- parser(e, t) {
1355
- return Y.parse(e, t ?? this.defaults);
1356
- }
1357
- parseMarkdown(e) {
1358
- return (t, n) => {
1359
- let r = { ...n }, i = {
1360
- ...this.defaults,
1361
- ...r
1362
- }, a = this.onError(!!i.silent, !!i.async);
1363
- if (this.defaults.async === !0 && r.async === !1) return a(/* @__PURE__ */ Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
1364
- if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1365
- if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
1366
- if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
1367
- let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? K.lex : K.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
1368
- i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
1369
- let o = await (i.hooks ? await i.hooks.provideParser() : e ? Y.parse : Y.parseInline)(a, i);
1370
- return i.hooks ? await i.hooks.postprocess(o) : o;
1371
- })().catch(a);
1372
- try {
1373
- i.hooks && (t = i.hooks.preprocess(t));
1374
- let n = (i.hooks ? i.hooks.provideLexer() : e ? K.lex : K.lexInline)(t, i);
1375
- i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
1376
- let r = (i.hooks ? i.hooks.provideParser() : e ? Y.parse : Y.parseInline)(n, i);
1377
- return i.hooks && (r = i.hooks.postprocess(r)), r;
1378
- } catch (e) {
1379
- return a(e);
1380
- }
1381
- };
1382
- }
1383
- onError(e, t) {
1384
- return (n) => {
1385
- if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1386
- let e = "<p>An error occurred:</p><pre>" + U(n.message + "", !0) + "</pre>";
1387
- return t ? Promise.resolve(e) : e;
1388
- }
1389
- if (t) return Promise.reject(n);
1390
- throw n;
1391
- };
1392
- }
1393
- }();
1394
- function Q(e, t) {
1395
- return Z.parse(e, t);
1396
- }
1397
- Q.options = Q.setOptions = function(e) {
1398
- return Z.setOptions(e), Q.defaults = Z.defaults, D(Q.defaults), Q;
1399
- }, Q.getDefaults = T, Q.defaults = E, Q.use = function(...e) {
1400
- return Z.use(...e), Q.defaults = Z.defaults, D(Q.defaults), Q;
1401
- }, Q.walkTokens = function(e, t) {
1402
- return Z.walkTokens(e, t);
1403
- }, Q.parseInline = Z.parseInline, Q.Parser = Y, Q.parser = Y.parse, Q.Renderer = q, Q.TextRenderer = J, Q.Lexer = K, Q.lexer = K.lex, Q.Tokenizer = G, Q.Hooks = X, Q.parse = Q, Q.options, Q.setOptions, Q.use, Q.walkTokens, Q.parseInline, Y.parse, K.lex;
1404
- //#endregion
1405
- //#region utils/index.js
1406
- var lt = (e, t) => {
1407
- let n;
1408
- return function() {
1409
- let r = this, i = arguments;
1410
- n && clearTimeout(n), n = setTimeout(() => {
1411
- e.apply(r, i);
1412
- }, t);
1413
- };
1414
- }, ut = (e, t) => {
1415
- let n, r = !0;
1416
- return function() {
1417
- let i = this, a = arguments;
1418
- if (r) {
1419
- e.apply(i, a), r = !1, n = setTimeout(() => {
1420
- n = null, r = !0;
1421
- }, t);
1422
- return;
1423
- }
1424
- n ||= setTimeout(() => {
1425
- e.apply(i, a), n = null, r = !0;
1426
- }, t);
1427
- };
1428
- };
1429
- function dt(e, t) {
1430
- return window.sessionStorage.setItem(e, JSON.stringify(t));
1431
- }
1432
- function ft(e) {
1433
- return JSON.parse(window.sessionStorage.getItem(e));
1434
- }
1435
- function pt(e) {
1436
- return window.sessionStorage.removeItem(e);
1437
- }
1438
- function mt() {
1439
- return window.sessionStorage.clear();
1440
- }
1441
- function ht(e) {
1442
- let t = Number(e);
1443
- return t ? t / 1e3 + "s" : "";
1444
- }
1445
- var gt = (e) => {
1446
- if (!e) return "";
1447
- let t = 0;
1448
- for (; Math.abs(e) >= 1024 && (e /= 1024, t++, t !== 4););
1449
- return Math.round(e * 100) / 100 + " " + [
1450
- "B",
1451
- "KB",
1452
- "MB",
1453
- "GB",
1454
- "TB"
1455
- ][t];
1456
- }, $ = x({}), _t = (e) => {
1457
- if (!e) return "";
1458
- let t = Q.parse(e).replace(/>(\s+)</g, "><"), n = t.match(/<img[^>]+src="([^"]+)"[^>]*>/g);
1459
- return n && n.forEach((e) => {
1460
- let n = e.match(/src="([^"]+)"/);
1461
- if (n && n[1]) {
1462
- let r = n[1];
1463
- if (!$.value[r]) {
1464
- $.value[r] = "loading";
1465
- let e = new Image();
1466
- e.onload = () => {
1467
- $.value[r] = "loaded";
1468
- }, e.onerror = () => {
1469
- $.value[r] = "error";
1470
- }, e.src = r;
1471
- }
1472
- let i;
1473
- i = $.value[r] === "loaded" ? e : $.value[r] === "error" ? `<div class="el-image__error" data-src='${n[1]}'><div class="image-slot"><i class="el-icon"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" t="1742463877500" class="icon" viewBox="0 0 1356 1024" version="1.1" p-id="4463" width="264.84375" height="200"><path d="M564.44449572 836.7634306l128.677796-204.53166511-78.14075901-43.48311004-67.64039324 78.75274348a32.20971115 32.20971115 0 0 1-45.96325785 2.995503l-111.12350325-99.68905577a32.20971115 32.20971115 0 0 0-45.83441924 2.83445505l-103.32875321 118.85383398-28.28012581-404.36071319q-3.3498102-48.18572778 44.83591758-51.53553797l311.72558369-21.838184L597.23398201 164.38571167 254.26497816 188.38194626A96.62913347 96.62913347 0 0 0 164.62535234 291.51744152l33.17600217 474.03031841a96.62913347 96.62913347 0 0 0 103.10328527 89.63962582l263.57206593-18.42395514z m84.90479874 1.67490545l299.45368385 20.93631228a96.62913347 96.62913347 0 0 0 103.13549526-89.63962649l33.14379285-474.03031771A96.62913347 96.62913347 0 0 0 995.41043062 192.56920886L772.32597104 176.94749877 737.70053205 223.00738594l254.36008835 17.77976067q48.18572778 3.38201953 44.83591824 51.56774731l-28.24791716 403.90977733-181.179625-210.97360762a32.20971115 32.20971115 0 0 0-45.70557994-3.18876161l-78.14075902 68.76773284 115.02087861 86.96622006-169.32645166 200.63429045z m-159.1159731-480.63330951a88.15797897 88.15797897 0 1 0-59.33028802 107.35496719l59.36249802-107.35496719z" p-id="4464"/></svg></i></div></div>` : "<div class=\"el-space__item\"><div class=\"el-skeleton is-animated\"><div class=\"el-skeleton__item el-skeleton__image\" style=\"width: 120px; height: 120px;\"><svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" t=\"1742463703310\" class=\"icon\" viewBox=\"0 0 1282 1024\" version=\"1.1\" p-id=\"4321\" width=\"250.390625\" height=\"200\"><path d=\"M164.38571167 759.1138438V264.8861562a100.50044453 100.50044453 0 0 1 100.50044453-100.50044453h670.00296545a100.50044453 100.50044453 0 0 1 100.50044454 100.50044453v494.22768759a100.50044453 100.50044453 0 0 1-100.50044454 100.50044454H264.8861562a100.50044453 100.50044453 0 0 1-100.50044453-100.50044454z m820.75363192-73.0973238V264.8861562q0-50.25022262-50.25022194-50.25022191H264.8861562Q214.63593429 214.63593429 214.63593429 264.8861562v421.59936608l115.84351257-115.84351258a33.50014841 33.50014841 0 0 1 47.73771135 0.3685017l108.03797766 111.52199347a33.50014841 33.50014841 0 0 0 47.90521187 0.23450113l200.06288588-202.50839652a33.50014841 33.50014841 0 0 1 47.63721077 0l203.2788992 205.75791052zM407.46278744 466.69104932a91.68990581 91.68990581 0 1 0-1e-8-183.34631097 91.68990581 91.68990581 0 0 0 0 183.34631097z\" p-id=\"4322\"/></svg></div></div></div>", t = t.replace(e, i);
1474
- }
1475
- }), t;
1476
- }, vt = (e) => {
1477
- if (typeof e != "string") return !1;
1478
- let t = e.trim().toLowerCase();
1479
- if (/^<!doctype\s+html[\s>]/.test(t) || /^<html[\s>]/.test(t)) return !0;
1480
- let n = t.indexOf("<head"), r = t.indexOf("<body");
1481
- return !!(n !== -1 && r !== -1 && n < r || t.includes("<html") && t.includes("<head") && t.includes("<body"));
1482
- }, yt = (e) => {
1483
- e && (e.onload = () => {
1484
- try {
1485
- let t = e.contentDocument || e.contentWindow.document;
1486
- e.style.height = t.body.scrollHeight + 100 + "px";
1487
- } catch {
1488
- e.style.height = "800px";
1489
- }
1490
- });
1491
- }, bt = ["src"], xt = ["src"], St = /* @__PURE__ */ u({
1492
- __name: "MediaPreviewDialog",
1493
- setup(e, { expose: t }) {
1494
- let { dialogRef: n, showDialog: r, hideDialog: a } = d(), s = x({
1495
- url: "",
1496
- name: "",
1497
- suffix: ""
1498
- }), c = (e = "") => String(e || "").trim(), l = m(() => o(s.value.suffix)), u = m(() => i(s.value.suffix)), p = (e = {}) => {
1499
- s.value = {
1500
- url: c(e.effectiveUrl || e.url || ""),
1501
- name: e.name || "",
1502
- suffix: e.suffix || ""
1503
- }, r();
1504
- }, v = () => {
1505
- a();
1506
- }, ee = () => {
1507
- s.value = {
1508
- url: "",
1509
- name: "",
1510
- suffix: ""
1511
- };
1512
- };
1513
- return t({
1514
- open: p,
1515
- close: v
1516
- }), (e, t) => (b(), h(S(f), {
1517
- ref_key: "dialogRef",
1518
- ref: n,
1519
- title: s.value.name || "媒体预览",
1520
- width: "720px",
1521
- "append-to": "body",
1522
- "destroy-onclose": "",
1523
- onClosed: ee
1524
- }, {
1525
- default: C(() => [l.value ? (b(), _("audio", {
1526
- key: 0,
1527
- src: s.value.url,
1528
- controls: "",
1529
- autoplay: "",
1530
- class: "media-preview-dialog__player"
1531
- }, null, 8, bt)) : u.value ? (b(), _("video", {
1532
- key: 1,
1533
- src: s.value.url,
1534
- controls: "",
1535
- autoplay: "",
1536
- class: "media-preview-dialog__player media-preview-dialog__player--video"
1537
- }, null, 8, xt)) : g("", !0)]),
1538
- _: 1
1539
- }, 8, ["title"]));
1540
- }
1541
- }, [["__scopeId", "data-v-7bc0f607"]]), Ct = {
1542
- key: 0,
1543
- class: "file-display"
1544
- }, wt = ["onClick"], Tt = {
1545
- key: 0,
1546
- class: "file-img__failed w-full h-full flex items-center justify-center"
1547
- }, Et = { class: "file-display__item--name text-ellipsis" }, Dt = { class: "file-display__item--size" }, Ot = /* @__PURE__ */ u({
1548
- __name: "index",
1549
- props: {
1550
- fileList: {
1551
- type: Array,
1552
- default: () => []
1553
- },
1554
- showRemove: {
1555
- type: Boolean,
1556
- default: !0
1557
- },
1558
- showLoading: {
1559
- type: Boolean,
1560
- default: !1
1561
- }
1562
- },
1563
- emits: ["remove-file"],
1564
- setup(u, { emit: d }) {
1565
- let { previewImage: f } = s(), m = x(null), T = null;
1566
- try {
1567
- T = le();
1568
- } catch {
1569
- T = null;
1570
- }
1571
- let E = d, D = (e, t) => {
1572
- E("remove-file", e, t);
1573
- }, O = (e = {}) => e.effectiveUrl || e.url || "", k = (n = "") => r(n) || t(n) || a(n) || c(n) || e(n), A = (e = {}) => !!O(e), j = (e = {}) => {
1574
- if (!A(e)) return;
1575
- let t = O(e);
1576
- if (l(e.suffix, t)) {
1577
- f(t);
1578
- return;
1579
- }
1580
- if (o(e.suffix) || i(e.suffix)) {
1581
- m.value?.open({
1582
- url: t,
1583
- name: e.name || "",
1584
- suffix: e.suffix || ""
1585
- });
1586
- return;
1587
- }
1588
- if (k(e.suffix) && T) {
1589
- let n = T.resolve({
1590
- name: "FilePreview",
1591
- params: { id: e.bnid || "direct" },
1592
- query: {
1593
- type: String(e.suffix || "").toLowerCase(),
1594
- name: e.name || "",
1595
- src: t
1596
- }
1597
- });
1598
- window.open(n.href, "_blank");
1599
- return;
1600
- }
1601
- window.open(t, "_blank");
1602
- };
1603
- return (e, t) => {
1604
- let r = re("loading"), i = re("ellipsis-tooltip");
1605
- return b(), _(p, null, [u.fileList.length ? (b(), _("div", Ct, [(b(!0), _(p, null, ne(u.fileList, (e, t) => (b(), _("div", {
1606
- key: t,
1607
- class: "file-display__item"
1608
- }, [
1609
- oe((b(), _("div", {
1610
- class: te(["file-img overflow-hidden", { "file-img--disabled": !A(e) }]),
1611
- onClick: (t) => j(e)
1612
- }, [e.failed && u.showLoading ? (b(), _("div", Tt, [y(S(w), {
1613
- size: "22px",
1614
- color: "#f56c6c"
1615
- }, {
1616
- default: C(() => [y(S(ce))]),
1617
- _: 1
1618
- })])) : (b(), _(p, { key: 1 }, [S(l)(e.suffix, O(e)) ? (b(), h(S(se), {
1619
- key: 0,
1620
- src: O(e),
1621
- "zoom-rate": 1.2,
1622
- "max-scale": 7,
1623
- "min-scale": .2,
1624
- fit: "cover"
1625
- }, null, 8, ["src"])) : (b(), h(S(w), {
1626
- key: 1,
1627
- size: "38px"
1628
- }, {
1629
- default: C(() => [(b(), h(ie(S(n)(e))))]),
1630
- _: 2
1631
- }, 1024))], 64))], 10, wt)), [[r, !e.bnid && !e.failed && u.showLoading]]),
1632
- v("div", null, [oe((b(), _("p", Et, [ee(ae(e.name), 1)])), [[i, e.name]]), v("p", Dt, [v("span", null, ae(S(gt)(e.size)), 1)])]),
1633
- u.showRemove ? (b(), h(S(w), {
1634
- key: 0,
1635
- class: "icon-remove",
1636
- size: "18",
1637
- onClick: (n) => D(t, e.bnid)
1638
- }, {
1639
- default: C(() => [y(S(ce))]),
1640
- _: 1
1641
- }, 8, ["onClick"])) : g("", !0)
1642
- ]))), 128))])) : g("", !0), y(St, {
1643
- ref_key: "mediaPreviewDialogRef",
1644
- ref: m
1645
- }, null, 512)], 64);
1646
- };
1647
- }
1648
- }, [["__scopeId", "data-v-3f6451a0"]]);
1649
- //#endregion
1650
- export { vt as a, pt as c, ut as d, ht as f, ft as i, yt as l, lt as n, _t as o, gt as r, mt as s, Ot as t, dt as u };