@marimo-team/islands 0.19.7-dev2 → 0.19.7-dev21

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 (814) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CDKkNEXK.js → ConnectedDataExplorerComponent-BW-EEUju.js} +12 -12
  2. package/dist/_baseIsEqual-CBSjxu-D.js +225 -0
  3. package/dist/{_baseProperty-zelfx9VI.js → _baseProperty-BVGrW_NZ.js} +2 -2
  4. package/dist/{_baseUniq-BUGws47x.js → _baseUniq-4lqa8rDi.js} +7 -8
  5. package/dist/{any-language-editor-vYraVrwE.js → any-language-editor-jlqKouk6.js} +16 -16
  6. package/dist/apl-BuwKwesW.js +4 -0
  7. package/dist/{arc-DXxE-tFl.js → arc-CEWBr4jc.js} +2 -2
  8. package/dist/architecture-U656AL7Q-COfwZju8.js +6 -0
  9. package/dist/{architectureDiagram-VXUJARFQ-DRLesROp.js → architectureDiagram-VXUJARFQ--NkyBn9Y.js} +18 -19
  10. package/dist/asciiarmor-zAEd_wtn.js +4 -0
  11. package/dist/asn1-DWEA66J4.js +4 -0
  12. package/dist/{blockDiagram-VD42YOAC-ByzG0Vzp.js → blockDiagram-VD42YOAC-DEZZaTW0.js} +13 -14
  13. package/dist/brainfuck-mIPR6Ong.js +4 -0
  14. package/dist/{c4Diagram-YG6GDRKO-Trp4lx6i.js → c4Diagram-YG6GDRKO-Bj7hwWCO.js} +5 -5
  15. package/dist/{channel-CPUfhCMU.js → channel-B_QrFrGg.js} +1 -1
  16. package/dist/{chunk-4BX2VUAB-D-P4ZvWX.js → chunk-4BX2VUAB-DZQibjKA.js} +1 -1
  17. package/dist/{chunk-55IACEB6-DRnX6IuG.js → chunk-55IACEB6-C3BASkh4.js} +1 -1
  18. package/dist/{chunk-OGVTOU66-RMy3tlM6.js → chunk-5FQGJX7Z-D5VFKHmt.js} +5206 -4212
  19. package/dist/{chunk-76Q3JFCE-DaBPIBvG.js → chunk-76Q3JFCE-jPuajZH_.js} +1 -1
  20. package/dist/{chunk-ABZYJK2D-BZDGfEE1.js → chunk-ABZYJK2D-SZPYmRzN.js} +2 -2
  21. package/dist/{chunk-ATLVNIR6-j8AgRnSs.js → chunk-ATLVNIR6-BI_WwH1o.js} +2 -2
  22. package/dist/{chunk-B4BG7PRW-DU1moE9R.js → chunk-B4BG7PRW-BlI9Gm1l.js} +7 -7
  23. package/dist/{chunk-CVBHYZKI-CDc7Jfcj.js → chunk-CVBHYZKI-Dhc_e3rA.js} +1 -1
  24. package/dist/{chunk-DI55MBZ5-BIFn9unR.js → chunk-DI55MBZ5-BXxemMn5.js} +6 -6
  25. package/dist/{chunk-EXTU4WIE-CaHHLmza.js → chunk-EXTU4WIE-CzWtDV99.js} +2 -2
  26. package/dist/{chunk-FMBD7UC4-D8xABqXe.js → chunk-FMBD7UC4-geNUIndh.js} +1 -1
  27. package/dist/{chunk-FPAJGGOC-B7vtXnL8.js → chunk-FPAJGGOC-CduL34ft.js} +7 -7
  28. package/dist/{chunk-FWNWRKHM-CoKqaHV4.js → chunk-FWNWRKHM-C-2TI4gt.js} +1 -1
  29. package/dist/{chunk-HN2XXSSU-DilnBn0B.js → chunk-HN2XXSSU-CqPwpolw.js} +1 -1
  30. package/dist/chunk-JA3XYJ7Z-DQ-2ARfa.js +1838 -0
  31. package/dist/{chunk-JZLCHNYA-DyKV2dUA.js → chunk-JZLCHNYA-CVfjf2vv.js} +6 -6
  32. package/dist/{chunk-LBM3YZW2-CuRptnLo.js → chunk-LBM3YZW2-DWgQiioW.js} +1 -1
  33. package/dist/{chunk-LHMN2FUI-Z6kNjtl5.js → chunk-LHMN2FUI-Dj_AHSvI.js} +1 -1
  34. package/dist/{chunk-MI3HLSF2-uTxL-0zC.js → chunk-MI3HLSF2-DOJkNER1.js} +1 -1
  35. package/dist/{chunk-N4CR4FBY-C_3rxQPk.js → chunk-N4CR4FBY-BCZvQ7Jq.js} +7 -7
  36. package/dist/{chunk-O7ZBX7Z2-N-4UT8hG.js → chunk-O7ZBX7Z2-CRZ8i1rP.js} +1 -1
  37. package/dist/{chunk-QN33PNHL-BcBASegy.js → chunk-QN33PNHL-DY_2Q2zl.js} +2 -2
  38. package/dist/{chunk-QXUST7PY-DMlfsgyq.js → chunk-QXUST7PY-BMCjAVR_.js} +10 -10
  39. package/dist/{chunk-QZHKN3VN-gCo1BI4L.js → chunk-QZHKN3VN-BF_oGUlG.js} +1 -1
  40. package/dist/{chunk-S3R3BYOJ-BhcrQySJ.js → chunk-S3R3BYOJ-Ddu0H4Qa.js} +5 -5
  41. package/dist/{chunk-S6J4BHB3-CbT4tqbg.js → chunk-S6J4BHB3-DNVMr0_v.js} +1 -1
  42. package/dist/{chunk-T53DSG4Q-DjWTd72f.js → chunk-T53DSG4Q-BFWkpOX5.js} +1 -1
  43. package/dist/{chunk-TZMSLE5B-udBrmj8R.js → chunk-TZMSLE5B-C2wVlbMl.js} +3 -3
  44. package/dist/classDiagram-2ON5EDUG-D-g7zbyO.js +30 -0
  45. package/dist/classDiagram-v2-WZHVMYZB-C7v5zNRD.js +30 -0
  46. package/dist/{clike-CLJYUAWw.js → clike-B1zispTy.js} +1 -1
  47. package/dist/clojure-DkhhNHNQ.js +4 -0
  48. package/dist/{clone-BImB0Zxt.js → clone-Cc_6PW77.js} +1 -1
  49. package/dist/cmake-1obPvqtc.js +4 -0
  50. package/dist/cobol-oWNTiXPE.js +4 -0
  51. package/dist/code-block-37QAKDTI-eUgXqGNG.js +107 -0
  52. package/dist/coffeescript-LtYUvf6r.js +4 -0
  53. package/dist/commonlisp-C_06qBYF.js +4 -0
  54. package/dist/{cose-bilkent-S5V4N54A-kv0JiSTh.js → cose-bilkent-S5V4N54A-CO4ORQHF.js} +2 -2
  55. package/dist/crystal-CDJkbx14.js +4 -0
  56. package/dist/css-Bi_Nk0uN.js +4 -0
  57. package/dist/cypher-TrG0NvZ0.js +4 -0
  58. package/dist/d-CFKOrZsi.js +4 -0
  59. package/dist/{dagre-6UL2VRFP-HiV8Yeor.js → dagre-6UL2VRFP-DKIPL74O.js} +14 -15
  60. package/dist/{dagre-Baw82WQV.js → dagre-D2F8UdM6.js} +10 -11
  61. package/dist/{data-grid-overlay-editor-BuHxKF-R.js → data-grid-overlay-editor-COyFwFmE.js} +2 -2
  62. package/dist/{diagram-PSM6KHXK-jDduKZjc.js → diagram-PSM6KHXK-CVTrAZaP.js} +21 -21
  63. package/dist/{diagram-QEK2KX5R-CiQYmuQX.js → diagram-QEK2KX5R-BqHBzu3x.js} +16 -16
  64. package/dist/{diagram-S2PKOQOG-3sE_WnZi.js → diagram-S2PKOQOG-CJD6owcg.js} +16 -16
  65. package/dist/diff-CfnSF48q.js +4 -0
  66. package/dist/{dist-CMZuWSBe.js → dist--Em7gfgX.js} +2 -2
  67. package/dist/{dist-CDxsfpyX.js → dist--JwRU9u5.js} +1 -1
  68. package/dist/dist-2OSzSqy2.js +5 -0
  69. package/dist/dist-B1H2TQGB.js +8 -0
  70. package/dist/{dist-Bs1IvD_X.js → dist-B7NoEgR4.js} +1 -1
  71. package/dist/dist-BNvasp6N.js +5 -0
  72. package/dist/{dist-DRA2Iv4Q.js → dist-BcXuIt-h.js} +1 -1
  73. package/dist/{dist-D7wDmIuC.js → dist-BhBtK2sL.js} +1 -1
  74. package/dist/{dist-HA2BVGuM.js → dist-BlRm4v0e.js} +4 -4
  75. package/dist/{dist-DNVajE3L.js → dist-C6p7UKkB.js} +1 -1
  76. package/dist/{dist-BZXKWoES.js → dist-CBA36Nuy.js} +1 -1
  77. package/dist/{dist-DY8txPM6.js → dist-CFi_P6cs.js} +1 -1
  78. package/dist/dist-CG4LWTPv.js +8 -0
  79. package/dist/{dist-BtPD-BeW.js → dist-CHWVQZ6Z.js} +2 -2
  80. package/dist/{dist-C011r2tf.js → dist-CITQGRtG.js} +3 -3
  81. package/dist/{dist-CZq4mfrw.js → dist-COp5dkis.js} +2 -2
  82. package/dist/dist-C_8-swED.js +5 -0
  83. package/dist/{dist-DW3LjXSw.js → dist-C_Kw_Kc0.js} +1 -1
  84. package/dist/{dist-_FVOHtWJ.js → dist-Co5PD8Fb.js} +1 -1
  85. package/dist/{dist-J6fsaVBE.js → dist-DA1J6LvO.js} +1 -1
  86. package/dist/dist-DIhtur5b.js +5 -0
  87. package/dist/{dist-DI1Bo5Nv.js → dist-DKnxaCRl.js} +1 -1
  88. package/dist/dist-DoQ7RS4e.js +5 -0
  89. package/dist/dist-DsMd-F9h.js +5 -0
  90. package/dist/dist-DurmUshd.js +8 -0
  91. package/dist/{dist-Bv-wYGwr.js → dist-PZgrh2z6.js} +2 -2
  92. package/dist/{dist-BUwAd6_d.js → dist-b7Sc3Tj8.js} +1 -1
  93. package/dist/{dist-DWMcVk1V.js → dist-r6N_0WG-.js} +3 -3
  94. package/dist/{dist--kinAuV0.js → dist-wudNDAiO.js} +1 -1
  95. package/dist/dist-zVskjQcA.js +8 -0
  96. package/dist/{dockerfile-kP2dp4Jc.js → dockerfile-BBT_Ira6.js} +1 -1
  97. package/dist/dtd-Ctw8_JkU.js +4 -0
  98. package/dist/dylan-f7rMBKDP.js +4 -0
  99. package/dist/ecl-C2h3oBMY.js +4 -0
  100. package/dist/eiffel-Ce81wv20.js +4 -0
  101. package/dist/elm-BVV8QQcc.js +4 -0
  102. package/dist/{erDiagram-Q2GNP2WA-DaNawciA.js → erDiagram-Q2GNP2WA-CqOceSf9.js} +14 -15
  103. package/dist/erlang-DjB35ZUh.js +4 -0
  104. package/dist/{error-banner-BhqH4mGj.js → error-banner-uJ4xh94e.js} +1 -1
  105. package/dist/{esm-DOBJQbuy.js → esm-DNwkt4aO.js} +104 -104
  106. package/dist/factor-CIcp3U2B.js +4 -0
  107. package/dist/{factor-Png_OsVt.js → factor-DdqWbSyy.js} +1 -1
  108. package/dist/{flatten-CP4G1KkO.js → flatten-eGRGXrC3.js} +1 -1
  109. package/dist/{flowDiagram-NV44I4VS-Cn7CoW5b.js → flowDiagram-NV44I4VS-K7-DUifo.js} +16 -17
  110. package/dist/forth-CVgjsHhD.js +4 -0
  111. package/dist/fortran-CcTXj0d_.js +4 -0
  112. package/dist/{ganttDiagram-JELNMOA3-D2MZdMJt.js → ganttDiagram-JELNMOA3-BwUFY9Nu.js} +9 -9
  113. package/dist/gas-JWpamkLf.js +4 -0
  114. package/dist/gherkin-BveSCSJV.js +4 -0
  115. package/dist/{gitGraph-F6HP7TQM-DAY7Pizs.js → gitGraph-F6HP7TQM-CDM3aU-T.js} +3 -3
  116. package/dist/{gitGraphDiagram-NY62KEGX-CQ9ts7ZP.js → gitGraphDiagram-NY62KEGX-CjGRtLb1.js} +16 -16
  117. package/dist/{glide-data-editor-CF27qeAl.js → glide-data-editor-QbwryjAp.js} +8 -8
  118. package/dist/{graphlib-C_0PYYJy.js → graphlib-7UgfJadv.js} +5 -6
  119. package/dist/groovy-Np3AZt00.js +4 -0
  120. package/dist/haskell-CVfmFALm.js +4 -0
  121. package/dist/haxe-C10xkMLg.js +5 -0
  122. package/dist/idl-CKBSGnKC.js +4 -0
  123. package/dist/{info-NVLQJR56-CSiFVstv.js → info-NVLQJR56-CoL1x1Fy.js} +3 -3
  124. package/dist/{infoDiagram-WHAUD3N6-CVDTiMub.js → infoDiagram-WHAUD3N6-DNhmDn-6.js} +14 -14
  125. package/dist/{isEmpty-D2-li_vO.js → isEmpty-DQXRKNtW.js} +1 -1
  126. package/dist/javascript-Cur-15Bn.js +4 -0
  127. package/dist/{journeyDiagram-XKPGCS4Q-Dqs3P2CH.js → journeyDiagram-XKPGCS4Q-BOdK47P8.js} +6 -6
  128. package/dist/julia-BZZH2Gnx.js +4 -0
  129. package/dist/{kanban-definition-3W4ZIXB7-BEhej3Aa.js → kanban-definition-3W4ZIXB7-A0JC9d0g.js} +11 -12
  130. package/dist/{katex-DXbA2lyH.js → katex-DJyOeQ91.js} +1 -1
  131. package/dist/{label-B8Ngsa38.js → label-o68OaAQk.js} +2 -2
  132. package/dist/{line-C1k1rG3Z.js → line-LK_5q2B9.js} +3 -3
  133. package/dist/{linear-Dhu2Qlw4.js → linear-vWf1Qj0e.js} +4 -4
  134. package/dist/livescript-D_rTTm_U.js +4 -0
  135. package/dist/{loader-DH7xXi-E.js → loader-WBQoIunJ.js} +1 -1
  136. package/dist/lua-Mf_Of7eV.js +4 -0
  137. package/dist/main.js +18723 -18034
  138. package/dist/mathematica-DCYjugDb.js +4 -0
  139. package/dist/mbox-KBWrT8JD.js +4 -0
  140. package/dist/mermaid-4DMBBIKO-o3xNphpD.js +6 -0
  141. package/dist/{mermaid.core-BzRPXY_i.js → mermaid-CDdsQEyr.js} +186 -108
  142. package/dist/{mermaid-parser.core-BFf_lpn1.js → mermaid-parser.core-D20zFbMa.js} +8 -8
  143. package/dist/{mhchem-D3PZqzP1.js → mhchem-BqdXeZVX.js} +1 -1
  144. package/dist/{min-CzysEoAP.js → min-Bg4bqmiD.js} +1 -1
  145. package/dist/{mindmap-definition-VGOIOE7T-DH1E7psw.js → mindmap-definition-VGOIOE7T-CS6nKN_L.js} +13 -14
  146. package/dist/mirc-JwEQJ8Fb.js +4 -0
  147. package/dist/mllike-C7TxLvh6.js +6 -0
  148. package/dist/modelica-uvNgvUyw.js +4 -0
  149. package/dist/mscgen-CGnokp5x.js +6 -0
  150. package/dist/mumps-Dl9QdOZz.js +4 -0
  151. package/dist/nsis-BbDhbgPN.js +4 -0
  152. package/dist/{nsis-BrAITej_.js → nsis-CunMjZ_n.js} +1 -1
  153. package/dist/ntriples-ChL1mlp7.js +4 -0
  154. package/dist/{number-overlay-editor-DHeLnLyR.js → number-overlay-editor-Bz_bDJQb.js} +1 -1
  155. package/dist/octave-B9ZGG6zv.js +4 -0
  156. package/dist/{once-C-NkXwWJ.js → once-BqS42WgZ.js} +1 -1
  157. package/dist/{ordinal-CUS6_Aqv.js → ordinal-IlASfRja.js} +1 -1
  158. package/dist/oz-XHEu31wr.js +4 -0
  159. package/dist/{packet-BFZMPI3H-DZ3M7UG8.js → packet-BFZMPI3H-C6aZmgV-.js} +3 -3
  160. package/dist/pascal-BxtYw-iH.js +4 -0
  161. package/dist/perl-Br5BgHPb.js +4 -0
  162. package/dist/{pie-7BOR55EZ-BZ7IZsm8.js → pie-7BOR55EZ-NB6xYwcB.js} +3 -3
  163. package/dist/{pieDiagram-ADFJNKIX-Dc8_ZPVD.js → pieDiagram-ADFJNKIX-DSa60Grk.js} +21 -21
  164. package/dist/pig-BByO2hBz.js +4 -0
  165. package/dist/powershell-Cd4Zaef3.js +4 -0
  166. package/dist/{precisionRound-B0z4y-te.js → precisionRound-CGLoV26P.js} +1 -1
  167. package/dist/properties-B-BOCIOl.js +4 -0
  168. package/dist/protobuf-CaLimlho.js +4 -0
  169. package/dist/{pug-CH-17az-.js → pug-Dr-sA_9V.js} +1 -1
  170. package/dist/pug-bonARSG6.js +4 -0
  171. package/dist/puppet-BSlT-3sc.js +4 -0
  172. package/dist/python-BIJhGYYP.js +4 -0
  173. package/dist/q-D9TX8A0B.js +4 -0
  174. package/dist/{quadrantDiagram-AYHSOK5B-Bi2zuCYl.js → quadrantDiagram-AYHSOK5B-CFnMbP2J.js} +4 -4
  175. package/dist/r-BXelX7Rl.js +4 -0
  176. package/dist/{radar-NHE76QYJ-BwZi8I4_.js → radar-NHE76QYJ-RKhErikV.js} +3 -3
  177. package/dist/{range-iDYhZkRw.js → range-LoQMRQIX.js} +2 -2
  178. package/dist/{react-plotly-D-b1AEMh.js → react-plotly-jVjTu07w.js} +1 -1
  179. package/dist/{react-vega-z40f-dXy.js → react-vega-CjiPWyw0.js} +18 -18
  180. package/dist/react-vega-DgHpnZ04.js +9 -0
  181. package/dist/{reduce-1D4AnEer.js → reduce-B9mZDxPo.js} +3 -3
  182. package/dist/{requirementDiagram-UZGBJVZJ-Dx4_kui2.js → requirementDiagram-UZGBJVZJ-ytLQrFTk.js} +13 -14
  183. package/dist/rpm-BxAh9B1A.js +5 -0
  184. package/dist/ruby-BCZLQyhc.js +4 -0
  185. package/dist/{sankeyDiagram-TZEHDZUN-CKYnHkMA.js → sankeyDiagram-TZEHDZUN-KQqXDoky.js} +4 -4
  186. package/dist/sas-Bo7lsyNX.js +4 -0
  187. package/dist/scheme-Brhptkt-.js +4 -0
  188. package/dist/{sequenceDiagram-WL72ISMW-C-p-8Qdz.js → sequenceDiagram-WL72ISMW-ByLI04T5.js} +7 -7
  189. package/dist/shell-fWWb8_qx.js +4 -0
  190. package/dist/sieve-Ba8_hMLn.js +4 -0
  191. package/dist/{slides-component-BHWhzwDN.js → slides-component-BGEYjTca.js} +1 -1
  192. package/dist/smalltalk-7sHxwMDT.js +4 -0
  193. package/dist/sparql-BBFrPJ7z.js +4 -0
  194. package/dist/{spec-KNxDhBEX.js → spec-CuHgWmcK.js} +3 -3
  195. package/dist/{src-CHUphWwL.js → src-szye8OCw.js} +1 -1
  196. package/dist/{stateDiagram-FKZM4ZOC-otiu7nL4.js → stateDiagram-FKZM4ZOC-Dfz8vBbP.js} +18 -19
  197. package/dist/stateDiagram-v2-4FDKWEC3-DRYoLdT5.js +29 -0
  198. package/dist/{step-BbmiiQdf.js → step-1PmBKr2y.js} +1 -1
  199. package/dist/stex-ChDHQs3R.js +4 -0
  200. package/dist/style.css +1 -1
  201. package/dist/stylus-CIB0KT46.js +4 -0
  202. package/dist/swift-CZinekXz.js +4 -0
  203. package/dist/tcl-DCHZJVq_.js +4 -0
  204. package/dist/textile-ThTMxgkN.js +4 -0
  205. package/dist/{time-m5v-VC8K.js → time-DC4qQGmA.js} +4 -4
  206. package/dist/{timeline-definition-IT6M3QCI-DhR16s4q.js → timeline-definition-IT6M3QCI-CO48XU1B.js} +3 -3
  207. package/dist/toml-DK17wlJ7.js +4 -0
  208. package/dist/{treemap-KMMF4GRG-Bp2TNEsG.js → treemap-KMMF4GRG-B37ugcLd.js} +3 -3
  209. package/dist/troff-CuUAOgMy.js +4 -0
  210. package/dist/ttcn-DS2tj6rW.js +4 -0
  211. package/dist/ttcn-cfg-CdZGarnc.js +4 -0
  212. package/dist/turtle-Bkz-FLZ7.js +4 -0
  213. package/dist/{types-B9fL65ao.js → types-BIvEidLq.js} +4 -4
  214. package/dist/{useAsyncData-kqbhbSuf.js → useAsyncData-DFBEii2l.js} +2 -2
  215. package/dist/{useDeepCompareMemoize-B2QEm3jo.js → useDeepCompareMemoize-HKwezUBx.js} +3 -3
  216. package/dist/{useIframeCapabilities-BsIPDupA.js → useIframeCapabilities-wWXCXV88.js} +1 -1
  217. package/dist/{useTheme-CVr6Gb_R.js → useTheme-D0zT6HZe.js} +2 -2
  218. package/dist/vb-ITdOmxvR.js +4 -0
  219. package/dist/vbscript-B7oeGyfL.js +4 -0
  220. package/dist/{vega-component-DAeU1_cV.js → vega-component-2gqZksJH.js} +11 -11
  221. package/dist/{vega-loader.browser-nTy1NZD3.js → vega-loader.browser-BJ1uJidF.js} +3 -3
  222. package/dist/velocity-D__EkuSd.js +4 -0
  223. package/dist/verilog-CPH50gr9.js +4 -0
  224. package/dist/vhdl-CQAwKCk_.js +4 -0
  225. package/dist/webidl-BnEptfVX.js +4 -0
  226. package/dist/xquery-D7eTv-CR.js +4 -0
  227. package/dist/{xychartDiagram-PRI3JC2R-DxKtZBfd.js → xychartDiagram-PRI3JC2R-CUIfjNVD.js} +12 -13
  228. package/dist/yacas-0x1rX89s.js +4 -0
  229. package/dist/z80-B25SJVDf.js +4 -0
  230. package/package.json +8 -7
  231. package/src/components/ai/__tests__/ai-utils.test.ts +20 -20
  232. package/src/components/ai/ai-model-dropdown.tsx +8 -10
  233. package/src/components/ai/ai-utils.ts +11 -9
  234. package/src/components/app-config/__tests__/get-dirty-values.test.ts +47 -1
  235. package/src/components/app-config/ai-config.tsx +20 -54
  236. package/src/components/app-config/state.ts +11 -1
  237. package/src/components/app-config/user-config-form.tsx +73 -3
  238. package/src/components/chat/chat-panel.tsx +5 -1
  239. package/src/components/editor/chrome/panels/dependency-graph-panel.tsx +46 -10
  240. package/src/components/markdown/markdown-renderer.tsx +6 -1
  241. package/src/core/ai/context/providers/cell-output.ts +1 -1
  242. package/src/core/export/__tests__/hooks.test.ts +7 -1
  243. package/src/core/export/hooks.ts +1 -1
  244. package/src/plugins/impl/plotly/PlotlyPlugin.tsx +11 -66
  245. package/src/plugins/impl/plotly/__tests__/usePlotlyLayout.test.ts +113 -0
  246. package/src/plugins/impl/plotly/usePlotlyLayout.ts +163 -0
  247. package/src/utils/__tests__/download.test.tsx +88 -16
  248. package/src/utils/__tests__/iframe.test.ts +139 -0
  249. package/src/utils/download.ts +40 -9
  250. package/src/utils/html-to-image.ts +41 -0
  251. package/src/utils/iframe.ts +142 -0
  252. package/dist/_baseIsEqual-BygTGUZ4.js +0 -198
  253. package/dist/_getTag-C91a-G2j.js +0 -31
  254. package/dist/abap-CKZVRcrP.js +0 -4
  255. package/dist/actionscript-3-CfEeiw8Q.js +0 -4
  256. package/dist/ada-Espzt5xk.js +0 -4
  257. package/dist/andromeeda-Bet9yHpN.js +0 -4
  258. package/dist/angular-html-D6gc6xRJ.js +0 -20
  259. package/dist/angular-html-DE-SuIpI.js +0 -4
  260. package/dist/angular-ts-BjFZRs0x.js +0 -18
  261. package/dist/apache-C-c0stKR.js +0 -4
  262. package/dist/apex-BiJpixJ-.js +0 -4
  263. package/dist/apl-BEQpOla5.js +0 -16
  264. package/dist/apl-lHFVoxx7.js +0 -4
  265. package/dist/applescript-BccZMr3e.js +0 -4
  266. package/dist/ara-DPVHfRJZ.js +0 -4
  267. package/dist/architecture-U656AL7Q-wavOWR6z.js +0 -6
  268. package/dist/asciiarmor-DqCdZUHI.js +0 -4
  269. package/dist/asciidoc-CCrtAKGW.js +0 -4
  270. package/dist/asm-C0GNzPhS.js +0 -4
  271. package/dist/asn1-DEcwtw-q.js +0 -4
  272. package/dist/astro-CxSXfOWT.js +0 -18
  273. package/dist/aurora-x-DBIPmgQb.js +0 -4
  274. package/dist/awk-7-EU_WjX.js +0 -4
  275. package/dist/ayu-dark-BB4DzJ08.js +0 -4
  276. package/dist/ballerina-5MpSVFjo.js +0 -4
  277. package/dist/bat-COtKSp2G.js +0 -4
  278. package/dist/beancount-BTyoFFVI.js +0 -4
  279. package/dist/berry-CNMCaTK_.js +0 -4
  280. package/dist/bibtex-Cti-V2Ia.js +0 -4
  281. package/dist/bicep-f38RkTGW.js +0 -4
  282. package/dist/blade-BKkPPgXV.js +0 -20
  283. package/dist/brainfuck-Bro9Oz5x.js +0 -4
  284. package/dist/bsl-CGq8JMnm.js +0 -5
  285. package/dist/c-BltHt-Ng.js +0 -4
  286. package/dist/c-C2t3MvE0.js +0 -4
  287. package/dist/cadence-m1eiVz08.js +0 -4
  288. package/dist/cairo-scf1ovh9.js +0 -5
  289. package/dist/catppuccin-frappe-C7063pB0.js +0 -4
  290. package/dist/catppuccin-latte-DMkr2vg8.js +0 -4
  291. package/dist/catppuccin-macchiato-BqE_ZXfu.js +0 -4
  292. package/dist/catppuccin-mocha-D7YJQma9.js +0 -4
  293. package/dist/chunk-JA3XYJ7Z-CzGXky2M.js +0 -470
  294. package/dist/clarity-B1pEsGP2.js +0 -4
  295. package/dist/classDiagram-2ON5EDUG-C2nDCJAo.js +0 -31
  296. package/dist/classDiagram-v2-WZHVMYZB-DORr9374.js +0 -31
  297. package/dist/clojure-B2uhdQPa.js +0 -4
  298. package/dist/clojure-BATFX9a2.js +0 -4
  299. package/dist/cmake-B9WXyQcc.js +0 -4
  300. package/dist/cmake-BRQW8t09.js +0 -4
  301. package/dist/cmake-jVu1cyUe.js +0 -4
  302. package/dist/cobol-CPD3EJfO.js +0 -4
  303. package/dist/cobol-D19g8SyZ.js +0 -10
  304. package/dist/code-block-QI2IAROF-CJ80GtCm.js +0 -8572
  305. package/dist/codeowners-DOHu4JsD.js +0 -4
  306. package/dist/codeql-Bv-kyldE.js +0 -4
  307. package/dist/coffee-BSWTbMgj.js +0 -5
  308. package/dist/coffeescript-KD9TnEnS.js +0 -4
  309. package/dist/common-lisp-DuUbiL1M.js +0 -4
  310. package/dist/commonlisp-DNEULz_Q.js +0 -4
  311. package/dist/coq-BLENpWYo.js +0 -4
  312. package/dist/cpp-BFMcsgZ1.js +0 -18
  313. package/dist/cpp-J7hKFkZz.js +0 -4
  314. package/dist/crystal-BoGe6xAc.js +0 -18
  315. package/dist/crystal-DVPNgAPQ.js +0 -4
  316. package/dist/csharp-Bi0R0O8M.js +0 -4
  317. package/dist/csharp-CEsbqhVz.js +0 -4
  318. package/dist/css-Dkaj1ML5.js +0 -4
  319. package/dist/css-fq3a1AH1.js +0 -4
  320. package/dist/css-tx1M2UYO.js +0 -4
  321. package/dist/csv-MeEBatsw.js +0 -4
  322. package/dist/cue-DBMXnBGO.js +0 -4
  323. package/dist/cypher-DiUnNCqR.js +0 -4
  324. package/dist/cypher-Dtzq0BP7.js +0 -4
  325. package/dist/d-CY8xRV-6.js +0 -4
  326. package/dist/d-DcZudIhJ.js +0 -4
  327. package/dist/dark-plus-Bx-XGUdv.js +0 -4
  328. package/dist/dart-DZ5DpAxj.js +0 -4
  329. package/dist/dax-Heo0fec8.js +0 -4
  330. package/dist/desktop-CIXrTzSI.js +0 -4
  331. package/dist/diff-CM1HFG4F.js +0 -4
  332. package/dist/diff-D9BPDC3o.js +0 -4
  333. package/dist/diff-FiILeNDL.js +0 -4
  334. package/dist/dist-8tG5l853.js +0 -5
  335. package/dist/dist-BXvOBlRl.js +0 -5
  336. package/dist/dist-BkSNcgv8.js +0 -5
  337. package/dist/dist-Bu4pyZoX.js +0 -8
  338. package/dist/dist-C1PN9EmN.js +0 -8
  339. package/dist/dist-C5R1jOyp.js +0 -8
  340. package/dist/dist-C7SYDWEd.js +0 -5
  341. package/dist/dist-CLZuU2Bs.js +0 -5
  342. package/dist/dist-Cjy_pAHy.js +0 -8
  343. package/dist/dist-jeJh-w1R.js +0 -5
  344. package/dist/docker-BpLHnOZG.js +0 -4
  345. package/dist/dotenv-B-FeoaI3.js +0 -4
  346. package/dist/dracula-soft-vgd7ckob.js +0 -4
  347. package/dist/dracula-yEIVSENH.js +0 -4
  348. package/dist/dream-maker-j9DfKXJZ.js +0 -4
  349. package/dist/dtd-FhG-tVom.js +0 -4
  350. package/dist/dylan-HWpZOBPw.js +0 -4
  351. package/dist/ecl-B_rcje1I.js +0 -4
  352. package/dist/edge-BvTSoBD4.js +0 -12
  353. package/dist/eiffel-oqHyHs6f.js +0 -4
  354. package/dist/elixir-Dy-Nd45s.js +0 -5
  355. package/dist/elm-B62RQEds.js +0 -4
  356. package/dist/elm-BbBZ4HBJ.js +0 -5
  357. package/dist/emacs-lisp-BlKF8SK8.js +0 -4
  358. package/dist/erb-DfDHVhmE.js +0 -10
  359. package/dist/erlang-CjRjjA-B.js +0 -4
  360. package/dist/erlang-DL9YWH5B.js +0 -5
  361. package/dist/everforest-dark-DTO3RYvZ.js +0 -4
  362. package/dist/everforest-light-BLftNDeA.js +0 -4
  363. package/dist/factor-CGH_TnIV.js +0 -4
  364. package/dist/fennel-CJpQobBl.js +0 -4
  365. package/dist/fish-Dvq3omMv.js +0 -4
  366. package/dist/fluent-_glkAdRk.js +0 -4
  367. package/dist/forth-5N06oHNp.js +0 -4
  368. package/dist/fortran-fixed-form-DvmVLEcO.js +0 -5
  369. package/dist/fortran-free-form-BRZ1-G2x.js +0 -4
  370. package/dist/fortran-free-form-C3kgUwfa.js +0 -4
  371. package/dist/fortran-wZ-sNg3h.js +0 -4
  372. package/dist/fsharp-B7-jsQMl.js +0 -5
  373. package/dist/gas-3H4_FaS8.js +0 -4
  374. package/dist/gdresource-7F-q_Vav.js +0 -10
  375. package/dist/gdscript-B0eENwgc.js +0 -4
  376. package/dist/gdscript-DAHEG9Ry.js +0 -4
  377. package/dist/gdshader-DPYtQQW0.js +0 -4
  378. package/dist/gdshader-o6WS_GvU.js +0 -4
  379. package/dist/genie-Bnhk4Ege.js +0 -4
  380. package/dist/gherkin-N8YTYIme.js +0 -4
  381. package/dist/gherkin-PEA2uy50.js +0 -4
  382. package/dist/git-commit-Cv7QTAeJ.js +0 -5
  383. package/dist/git-rebase-DwX3Nm0e.js +0 -5
  384. package/dist/github-dark-B0rIFWbz.js +0 -4
  385. package/dist/github-dark-default-nWsHqmZA.js +0 -4
  386. package/dist/github-dark-dimmed-CZ-OQfZw.js +0 -4
  387. package/dist/github-dark-high-contrast-C3y_w9do.js +0 -4
  388. package/dist/github-light-CNXzdGuc.js +0 -4
  389. package/dist/github-light-default-C332Nkmd.js +0 -4
  390. package/dist/github-light-high-contrast-5fIb4Zrv.js +0 -4
  391. package/dist/gleam-CXNzRrCZ.js +0 -4
  392. package/dist/glimmer-js-gufzGuES.js +0 -14
  393. package/dist/glimmer-ts-D4X2QK5Z.js +0 -14
  394. package/dist/glsl-CImM3sHk.js +0 -5
  395. package/dist/glsl-DEg5Ez62.js +0 -4
  396. package/dist/gnuplot-CBwhenUK.js +0 -4
  397. package/dist/go-5JnSf2Sn.js +0 -4
  398. package/dist/go-DY_IL4bk.js +0 -4
  399. package/dist/graphql-BaqLgJ_M.js +0 -4
  400. package/dist/graphql-DL2bM2N0.js +0 -14
  401. package/dist/groovy-DZzbvCP1.js +0 -4
  402. package/dist/groovy-bcQsAePx.js +0 -4
  403. package/dist/gruvbox-dark-hard-9eAHcVSP.js +0 -4
  404. package/dist/gruvbox-dark-medium-BcwJobmL.js +0 -4
  405. package/dist/gruvbox-dark-soft-DFhXDq1u.js +0 -4
  406. package/dist/gruvbox-light-hard-CGFqWfyc.js +0 -4
  407. package/dist/gruvbox-light-medium-hf-MZPsQ.js +0 -4
  408. package/dist/gruvbox-light-soft-CEDN8Nz_.js +0 -4
  409. package/dist/hack-B8wSahCf.js +0 -10
  410. package/dist/haml-Bu4NUveo.js +0 -10
  411. package/dist/haml-DIZmvqcW.js +0 -4
  412. package/dist/handlebars-COjOLWnq.js +0 -14
  413. package/dist/haskell-CExLTzho.js +0 -4
  414. package/dist/haskell-DCN6ynrk.js +0 -4
  415. package/dist/haxe-Cop3U-K-.js +0 -4
  416. package/dist/haxe-Dwfa4QhR.js +0 -4
  417. package/dist/haxe-f3pVb8qU.js +0 -5
  418. package/dist/hcl-Db_02Xo4.js +0 -4
  419. package/dist/hjson-ChDlI-VU.js +0 -4
  420. package/dist/hlsl-Cqu4CHBc.js +0 -4
  421. package/dist/hlsl-DEFh66jF.js +0 -4
  422. package/dist/houston-B8kM6xwu.js +0 -4
  423. package/dist/html-derivative-D0ctPnGn.js +0 -4
  424. package/dist/html-derivative-Dtt7T8QF.js +0 -5
  425. package/dist/html-hTZprlyJ.js +0 -10
  426. package/dist/html-lq9Ir_fH.js +0 -4
  427. package/dist/http-csf0B_nN.js +0 -14
  428. package/dist/hxml-BwN3yN1f.js +0 -5
  429. package/dist/hy-BWKVYLAU.js +0 -4
  430. package/dist/idl-BbWlJ0gk.js +0 -4
  431. package/dist/imba-BdgJpELv.js +0 -4
  432. package/dist/ini--03_cr_s.js +0 -4
  433. package/dist/java-DgtnNxg2.js +0 -4
  434. package/dist/java-DxqbIJE2.js +0 -4
  435. package/dist/javascript-BdS4qSDJ.js +0 -4
  436. package/dist/javascript-eMOhp6Aq.js +0 -4
  437. package/dist/javascript-mK9HLbGj.js +0 -4
  438. package/dist/jinja-CDb6qdQt.js +0 -5
  439. package/dist/jison-DyKFip1k.js +0 -5
  440. package/dist/json-DMbsiPEv.js +0 -4
  441. package/dist/json-DeQXWHxY.js +0 -4
  442. package/dist/json5-COCd-fTe.js +0 -4
  443. package/dist/jsonc-B_GrcWIn.js +0 -4
  444. package/dist/jsonl-CI61BqMn.js +0 -4
  445. package/dist/jsonnet-BuWuUqqD.js +0 -4
  446. package/dist/jssm-D7Rh9Uc6.js +0 -4
  447. package/dist/jsx-CI1WNtr2.js +0 -4
  448. package/dist/jsx-Do4BHov2.js +0 -4
  449. package/dist/julia-C6w3Rvqb.js +0 -4
  450. package/dist/julia-D5XWzItl.js +0 -16
  451. package/dist/kanagawa-dragon-hLxsgONk.js +0 -4
  452. package/dist/kanagawa-lotus-BHRbOuiK.js +0 -4
  453. package/dist/kanagawa-wave-CjDPcOcS.js +0 -4
  454. package/dist/kotlin-Do-Dqx9m.js +0 -4
  455. package/dist/kusto-BeQOeA5N.js +0 -4
  456. package/dist/laserwave-ohbp9Jiz.js +0 -4
  457. package/dist/latex-DqJGIiu_.js +0 -5
  458. package/dist/lean-Clg9aEzr.js +0 -4
  459. package/dist/less-C3d7xP2W.js +0 -4
  460. package/dist/less-UHqrKu57.js +0 -4
  461. package/dist/light-plus-CSE8StgD.js +0 -4
  462. package/dist/liquid-Dqcanmhn.js +0 -14
  463. package/dist/livescript-ChQl9lD-.js +0 -4
  464. package/dist/llvm-DWkTGdnM.js +0 -4
  465. package/dist/log-CErlyO_4.js +0 -4
  466. package/dist/logo-Yu9llBXK.js +0 -4
  467. package/dist/lua-BFsKLCaI.js +0 -5
  468. package/dist/lua-CiDvI96j.js +0 -4
  469. package/dist/lua-GfOSGOZ-.js +0 -4
  470. package/dist/luau-JH-VfaDk.js +0 -4
  471. package/dist/make-B4hx8tTG.js +0 -4
  472. package/dist/markdown-BWuRHX75.js +0 -4
  473. package/dist/markdown-D07chUcD.js +0 -4
  474. package/dist/marked.esm-BiQFxVJV.js +0 -1373
  475. package/dist/marko-Bxd2zSuF.js +0 -14
  476. package/dist/material-theme-Caotz7xa.js +0 -4
  477. package/dist/material-theme-darker-DA3xYhnK.js +0 -4
  478. package/dist/material-theme-lighter-Dt5GVhSw.js +0 -4
  479. package/dist/material-theme-ocean-Cn25Md08.js +0 -4
  480. package/dist/material-theme-palenight-BChdM80H.js +0 -4
  481. package/dist/mathematica-ClVO4k7N.js +0 -4
  482. package/dist/matlab-DhbmgJrG.js +0 -4
  483. package/dist/mbox-BEI7DeUg.js +0 -4
  484. package/dist/mdc-6jIdEm7u.js +0 -12
  485. package/dist/mdx-DrOosndL.js +0 -4
  486. package/dist/mermaid-B4Jv70w2.js +0 -4
  487. package/dist/mermaid-D7wtYc6C.js +0 -94
  488. package/dist/mermaid-NA5CF7SZ-BUMY4R2n.js +0 -8
  489. package/dist/mermaid.core-BfgNMETw.js +0 -19
  490. package/dist/min-dark-BtkGP5of.js +0 -4
  491. package/dist/min-light-DVB0pOsq.js +0 -4
  492. package/dist/mipsasm-CbiVgyrL.js +0 -4
  493. package/dist/mirc-DwidJ3iH.js +0 -4
  494. package/dist/mllike-Dspdy0xJ.js +0 -6
  495. package/dist/modelica-CIUejP-L.js +0 -4
  496. package/dist/mojo-oCJmcfe0.js +0 -4
  497. package/dist/monokai-sXaBCV8W.js +0 -4
  498. package/dist/move-uqw57ayE.js +0 -4
  499. package/dist/mscgen-BWXU4Omp.js +0 -6
  500. package/dist/mumps-PHFFoPk5.js +0 -4
  501. package/dist/narrat-D5L3ivBF.js +0 -4
  502. package/dist/nextflow-Dzk2_1yO.js +0 -4
  503. package/dist/nginx-BsYwbveJ.js +0 -5
  504. package/dist/night-owl-bwU2KJrI.js +0 -4
  505. package/dist/nim-B9PRs1V9.js +0 -20
  506. package/dist/nix-CQXQnSxk.js +0 -4
  507. package/dist/nord-BIb_ag00.js +0 -4
  508. package/dist/nsis-B7xooKLf.js +0 -4
  509. package/dist/ntriples-DnOgtCzG.js +0 -4
  510. package/dist/nushell-9HBKTMRY.js +0 -4
  511. package/dist/objective-c-BdQwOoOq.js +0 -4
  512. package/dist/objective-cpp-Dnlxu7P8.js +0 -4
  513. package/dist/ocaml-BPPNJmg4.js +0 -4
  514. package/dist/octave-Cn5kH_QT.js +0 -4
  515. package/dist/one-dark-pro-Cf2MYqoR.js +0 -4
  516. package/dist/one-light-D4J9mH5L.js +0 -4
  517. package/dist/oz-DR-sROpu.js +0 -4
  518. package/dist/pascal-CPKK1zcS.js +0 -4
  519. package/dist/pascal-DZawRZnt.js +0 -4
  520. package/dist/perl-D7FuFdyd.js +0 -4
  521. package/dist/perl-DcaL6DAN.js +0 -16
  522. package/dist/php-C3dNQJ69.js +0 -4
  523. package/dist/php-CQBUGN8t.js +0 -18
  524. package/dist/pig-CEXnOAnI.js +0 -4
  525. package/dist/plastic-Bxetw03u.js +0 -4
  526. package/dist/plsql-Cr9PKKdd.js +0 -4
  527. package/dist/po-Buj9_8uj.js +0 -4
  528. package/dist/poimandres-f5X1KNHY.js +0 -4
  529. package/dist/polar-DaxpU9SY.js +0 -4
  530. package/dist/postcss-D0yHN3os.js +0 -4
  531. package/dist/postcss-_e11hEYq.js +0 -4
  532. package/dist/powerquery-BBrNhg4L.js +0 -4
  533. package/dist/powershell-BKvWab7q.js +0 -4
  534. package/dist/powershell-xOwLOHr7.js +0 -4
  535. package/dist/prisma-B6USmJON.js +0 -4
  536. package/dist/prolog-_-xlpTu3.js +0 -4
  537. package/dist/properties-7jnK_vYx.js +0 -4
  538. package/dist/proto-Fsc93mrf.js +0 -4
  539. package/dist/protobuf-4rslMjEN.js +0 -4
  540. package/dist/pug-BVwdEv4r.js +0 -4
  541. package/dist/pug-DQxLbQkr.js +0 -12
  542. package/dist/puppet-ClkE3Bbh.js +0 -4
  543. package/dist/puppet-iSHg_1Z2.js +0 -4
  544. package/dist/purescript-DBXsSG64.js +0 -4
  545. package/dist/python-Be-hJfoQ.js +0 -4
  546. package/dist/python-D8Qe4P9O.js +0 -4
  547. package/dist/python-tK3wUCn0.js +0 -4
  548. package/dist/q-DP_Dcoox.js +0 -4
  549. package/dist/qml-axZuKIq7.js +0 -5
  550. package/dist/qmldir-U7eiStHf.js +0 -4
  551. package/dist/qss-C6xK3i2A.js +0 -4
  552. package/dist/r-B8xYZSka.js +0 -4
  553. package/dist/r-Bj_pNGwX.js +0 -4
  554. package/dist/r-C32wHLYu.js +0 -4
  555. package/dist/racket-Bplgy3qa.js +0 -4
  556. package/dist/raku-CXfaTnnI.js +0 -4
  557. package/dist/razor-BUotMkk4.js +0 -10
  558. package/dist/react-vega-TDd7xMuh.js +0 -9
  559. package/dist/red-B23zS7fW.js +0 -4
  560. package/dist/reg-BOAFDp6X.js +0 -4
  561. package/dist/regexp-BQX_RqKY.js +0 -4
  562. package/dist/regexp-CgVCPIqt.js +0 -4
  563. package/dist/rel-C94onwJb.js +0 -4
  564. package/dist/riscv-DRS1x6ty.js +0 -4
  565. package/dist/rose-pine-Y3EcMiNE.js +0 -4
  566. package/dist/rose-pine-dawn-CdolLHqO.js +0 -4
  567. package/dist/rose-pine-moon-C_zpj202.js +0 -4
  568. package/dist/rpm-BbDBUfs9.js +0 -5
  569. package/dist/rst-CcbqEUWW.js +0 -22
  570. package/dist/ruby-CFajY3gR.js +0 -30
  571. package/dist/ruby-COfWUiIr.js +0 -4
  572. package/dist/ruby-zIsg3mjP.js +0 -4
  573. package/dist/rust-DBsDzz6s.js +0 -4
  574. package/dist/sas-4hY7456Y.js +0 -5
  575. package/dist/sas-y_Hue2-X.js +0 -4
  576. package/dist/sass-Cp8wMMoM.js +0 -4
  577. package/dist/scala-DYheJtuA.js +0 -4
  578. package/dist/scheme-7jTCqHw8.js +0 -4
  579. package/dist/scheme-CGftW0fR.js +0 -4
  580. package/dist/scss-C847tmc7.js +0 -5
  581. package/dist/scss-COYAhSrh.js +0 -4
  582. package/dist/sdbl-BVPPkqm9.js +0 -4
  583. package/dist/sdbl-LKt9ej7G.js +0 -4
  584. package/dist/shaderlab-D4RJoI87.js +0 -5
  585. package/dist/shell-DAqJWXDk.js +0 -4
  586. package/dist/shellscript-Bt_mtfyS.js +0 -4
  587. package/dist/shellscript-DTwJmk-B.js +0 -4
  588. package/dist/shellsession-BXPPO6fw.js +0 -5
  589. package/dist/sieve-EaqnbCO3.js +0 -4
  590. package/dist/slack-dark-D98uHpYH.js +0 -4
  591. package/dist/slack-ochin-D2JGK2Dx.js +0 -4
  592. package/dist/smalltalk-CJQ4atCz.js +0 -4
  593. package/dist/smalltalk-DL03YKLJ.js +0 -4
  594. package/dist/snazzy-light-BhqH4Tt0.js +0 -4
  595. package/dist/solarized-dark-Cz8Hpdk8.js +0 -4
  596. package/dist/solarized-light-DSXO0VGL.js +0 -4
  597. package/dist/solidity-nZ_5BOHX.js +0 -4
  598. package/dist/soy-C8ioljmY.js +0 -5
  599. package/dist/sparql-DTA-tQ_q.js +0 -4
  600. package/dist/sparql-ntHLy-Z_.js +0 -5
  601. package/dist/splunk-BDj1WtBS.js +0 -4
  602. package/dist/sql-B_CzXDN7.js +0 -4
  603. package/dist/sql-hBa00soP.js +0 -4
  604. package/dist/ssh-config-VL2EBnHI.js +0 -4
  605. package/dist/stata-CAE5q-ng.js +0 -5
  606. package/dist/stateDiagram-v2-4FDKWEC3-B4itMUHi.js +0 -30
  607. package/dist/stex-KfRnSHzF.js +0 -4
  608. package/dist/stylus-BI8hQQzs.js +0 -4
  609. package/dist/stylus-CfjeFry_.js +0 -4
  610. package/dist/stylus-DIZq08hz.js +0 -4
  611. package/dist/svelte-GcilG7nn.js +0 -14
  612. package/dist/swift-CVCEbRPJ.js +0 -4
  613. package/dist/swift-Dl0RRDbH.js +0 -4
  614. package/dist/synthwave-84-Brwqp6Rc.js +0 -4
  615. package/dist/system-verilog-oFNqWct0.js +0 -4
  616. package/dist/systemd-Dk99d5qb.js +0 -4
  617. package/dist/talonscript-oS-JP1qz.js +0 -4
  618. package/dist/tasl-eNb7V7lL.js +0 -4
  619. package/dist/tcl-CQPp2bcg.js +0 -4
  620. package/dist/tcl-wv9O7fLZ.js +0 -4
  621. package/dist/templ-CBxszNIk.js +0 -12
  622. package/dist/terraform-CdD8ZgoG.js +0 -4
  623. package/dist/tex-BDBUrlZ_.js +0 -4
  624. package/dist/tex-Drp1pMRL.js +0 -5
  625. package/dist/textile-DzMRCBcV.js +0 -4
  626. package/dist/tokyo-night-CmOikx9i.js +0 -4
  627. package/dist/toml-CyIWqgbe.js +0 -4
  628. package/dist/toml-oDtxM9oL.js +0 -4
  629. package/dist/troff-_huin_CY.js +0 -4
  630. package/dist/ts-tags-CXewkOF3.js +0 -38
  631. package/dist/tsv-BseyLYQT.js +0 -4
  632. package/dist/tsx-D2LUWtsu.js +0 -4
  633. package/dist/tsx-kHCj4PrF.js +0 -4
  634. package/dist/ttcn-BEiJuYYc.js +0 -4
  635. package/dist/ttcn-cfg-DB6Ksh67.js +0 -4
  636. package/dist/turtle-CzEhuAap.js +0 -4
  637. package/dist/turtle-Dv3esCo-.js +0 -4
  638. package/dist/turtle-DzhzGEum.js +0 -4
  639. package/dist/twig-qB_T-k-S.js +0 -18
  640. package/dist/typescript-BN_vTPvq.js +0 -4
  641. package/dist/typescript-CI5sQpw1.js +0 -4
  642. package/dist/typespec-DHEcpagp.js +0 -4
  643. package/dist/typst-B9HpBJka.js +0 -4
  644. package/dist/v-H2_8AIAM.js +0 -4
  645. package/dist/vala-WHi-ThcB.js +0 -4
  646. package/dist/vb-CS8PoU3R.js +0 -4
  647. package/dist/vb-CngKZQHu.js +0 -4
  648. package/dist/vbscript-BV_8nbeM.js +0 -4
  649. package/dist/velocity-IqE7qYKE.js +0 -4
  650. package/dist/verilog-BGgTS1pK.js +0 -4
  651. package/dist/verilog-xtyaWTnc.js +0 -4
  652. package/dist/vesper-2sgFZerP.js +0 -4
  653. package/dist/vhdl-7aI3JU7f.js +0 -4
  654. package/dist/vhdl-BaqXCtf3.js +0 -4
  655. package/dist/viml-C3IDTTfq.js +0 -4
  656. package/dist/vitesse-black-BvCrVr8N.js +0 -4
  657. package/dist/vitesse-dark-DNi7aZj7.js +0 -4
  658. package/dist/vitesse-light-CXSVQ3oK.js +0 -4
  659. package/dist/vue-CHooyK57.js +0 -4
  660. package/dist/vue-ChlIPquu.js +0 -22
  661. package/dist/vue-html-DPVg93T0.js +0 -10
  662. package/dist/vue-vine-HiBtkWC6.js +0 -20
  663. package/dist/vyper-D18q9xCG.js +0 -4
  664. package/dist/wasm-CRlswj2T.js +0 -6
  665. package/dist/wasm-DZ1eFFdg.js +0 -4
  666. package/dist/webidl-BDB8PTTO.js +0 -4
  667. package/dist/wenyan-D3TBOs3h.js +0 -4
  668. package/dist/wgsl-BCsR2nKB.js +0 -4
  669. package/dist/wikitext-DIh6m2jB.js +0 -4
  670. package/dist/wit-Bz-r96TS.js +0 -4
  671. package/dist/wolfram-VIrnwGuX.js +0 -4
  672. package/dist/xml-CAP1bJV9.js +0 -4
  673. package/dist/xml-HKKjDs8r.js +0 -5
  674. package/dist/xquery-BIC-qj9Z.js +0 -4
  675. package/dist/xsl-HaaO21x0.js +0 -5
  676. package/dist/yacas-ifv5tftd.js +0 -4
  677. package/dist/yaml-BTiN8kgB.js +0 -4
  678. package/dist/yaml-B_O-W3eE.js +0 -4
  679. package/dist/z80-B8zOMVNt.js +0 -4
  680. package/dist/zenscript-BrGwAsAB.js +0 -4
  681. package/dist/zig-Chio8vL6.js +0 -4
  682. /package/dist/{ImageComparisonComponent-DXQrGLfG.js → ImageComparisonComponent-Bijp8beW.js} +0 -0
  683. /package/dist/{_arrayReduce-BoSa0zEn.js → _arrayReduce-DlK7U3Q6.js} +0 -0
  684. /package/dist/{_hasUnicode-zxc9hjSW.js → _hasUnicode-Bz2x6u6r.js} +0 -0
  685. /package/dist/{apl-DRxKiEot.js → apl-D9gTcP3Q.js} +0 -0
  686. /package/dist/{array-D-nrDupM.js → array-D7wW5QoO.js} +0 -0
  687. /package/dist/{asciiarmor-C8HoXFIm.js → asciiarmor-mLyg-Z5h.js} +0 -0
  688. /package/dist/{asn1-9Bo0DYT-.js → asn1-AE7eHomk.js} +0 -0
  689. /package/dist/{asterisk-eIhOKJFP.js → asterisk-Crp-Pien.js} +0 -0
  690. /package/dist/{brainfuck-Db8njC-p.js → brainfuck-Bdd6NcL6.js} +0 -0
  691. /package/dist/{chunk-XAJISQIX-DhEh08v5.js → chunk-XAJISQIX-CZ8Bi1-x.js} +0 -0
  692. /package/dist/{click-outside-container-D90VWx_r.js → click-outside-container-BCN5BtVO.js} +0 -0
  693. /package/dist/{clike-CFhUNtI5.js → clike-D_s3fKg5.js} +0 -0
  694. /package/dist/{clojure-CX7oovsp.js → clojure-zTYBCd80.js} +0 -0
  695. /package/dist/{cmake-C29AR2kk.js → cmake-BnJV90fC.js} +0 -0
  696. /package/dist/{cobol-CNkuRW9i.js → cobol-CH0OZO8A.js} +0 -0
  697. /package/dist/{coffeescript-BJAbfGam.js → coffeescript-CLhc1U6Q.js} +0 -0
  698. /package/dist/{colors-6nB_pSln.js → colors-6DRQ0kEF.js} +0 -0
  699. /package/dist/{common-keywords-DDkFNc6Q.js → common-keywords-NhoiR-2S.js} +0 -0
  700. /package/dist/{commonlisp-BTNhj2l9.js → commonlisp-8K2-IkUD.js} +0 -0
  701. /package/dist/{constants-DuN_eoAL.js → constants-DrOu5vvd.js} +0 -0
  702. /package/dist/{crystal-CZc0nIm9.js → crystal-8to4H-ep.js} +0 -0
  703. /package/dist/{css-L2-0OTXc.js → css-BVo-JOy5.js} +0 -0
  704. /package/dist/{cypher-Dnc6MXl0.js → cypher-BTFaDDd_.js} +0 -0
  705. /package/dist/{cytoscape.esm-Cs5lDB24.js → cytoscape.esm-CgJFiP_E.js} +0 -0
  706. /package/dist/{d-C6X9iIga.js → d-c9bddW2W.js} +0 -0
  707. /package/dist/{defaultLocale-DMZFeDB8.js → defaultLocale-Bxoo2-30.js} +0 -0
  708. /package/dist/{defaultLocale-DZtxSCkJ.js → defaultLocale-qS7DaAmi.js} +0 -0
  709. /package/dist/{diff-ZzKinYqY.js → diff-PA28xMKg.js} +0 -0
  710. /package/dist/{dist-wEzfBIGs.js → dist-9J8_3DZN.js} +0 -0
  711. /package/dist/{dist-GFp3A63i.js → dist-9trj4p6n.js} +0 -0
  712. /package/dist/{dist-DJTgoown.js → dist-BKGWAN8J.js} +0 -0
  713. /package/dist/{dist-XmKjmDjd.js → dist-BSMZYwqW.js} +0 -0
  714. /package/dist/{dist-BjWd_Ei9.js → dist-BYznkC5E.js} +0 -0
  715. /package/dist/{dist-CQ1gja1c.js → dist-BbQ-5HAA.js} +0 -0
  716. /package/dist/{dist-DsOyFflT.js → dist-CPd_adhw.js} +0 -0
  717. /package/dist/{dist-BWkp5r3D.js → dist-Cpj5BHNP.js} +0 -0
  718. /package/dist/{dist-BbaKVjkP.js → dist-CsN7lsea.js} +0 -0
  719. /package/dist/{dist-DMO79xnD.js → dist-DIVeCGlI.js} +0 -0
  720. /package/dist/{dist-Bhe0YLr5.js → dist-DsqQCNKw.js} +0 -0
  721. /package/dist/{dist-BOmxya4k.js → dist-MFzhAmKV.js} +0 -0
  722. /package/dist/{dist-DYUqP2g4.js → dist-l0KayR2-.js} +0 -0
  723. /package/dist/{dtd-CytEpkAo.js → dtd-DRlC7Bx8.js} +0 -0
  724. /package/dist/{duckdb-keywords-q-LipmQC.js → duckdb-keywords-BnNtuiVz.js} +0 -0
  725. /package/dist/{dylan-CZByFBEQ.js → dylan-d5ufc25E.js} +0 -0
  726. /package/dist/{ebnf-DuGDVaIM.js → ebnf-CFKHGc8c.js} +0 -0
  727. /package/dist/{ecl-Cp7L1F5B.js → ecl-Ci3afVKc.js} +0 -0
  728. /package/dist/{eiffel-C66yjnFL.js → eiffel-G6DmeEi3.js} +0 -0
  729. /package/dist/{elm-DtHo-73e.js → elm-ByYWHu8b.js} +0 -0
  730. /package/dist/{emotion-is-prop-valid.esm-_z-EwK5u.js → emotion-is-prop-valid.esm--WpIBtj8.js} +0 -0
  731. /package/dist/{erlang-C_sj44mF.js → erlang-C7_LcVDw.js} +0 -0
  732. /package/dist/{esm-JeWm05ae.js → esm-CAd2HmbR.js} +0 -0
  733. /package/dist/{fcl-DtWOm1i5.js → fcl-DPZwieM9.js} +0 -0
  734. /package/dist/{forth-CIDHh56T.js → forth-BgUerAyz.js} +0 -0
  735. /package/dist/{fortran-BQrDVXRU.js → fortran-BCXxm4xF.js} +0 -0
  736. /package/dist/{gas-D4HQPB0Q.js → gas-CKTQRKLl.js} +0 -0
  737. /package/dist/{gherkin-UB2gJHdT.js → gherkin-ByVP9cY_.js} +0 -0
  738. /package/dist/{groovy-DVz6jkOx.js → groovy-BPbrw0GZ.js} +0 -0
  739. /package/dist/{haskell-CpUdAPCz.js → haskell-B8fq1DW4.js} +0 -0
  740. /package/dist/{haxe-DCV5_cqD.js → haxe-B7SHQmJo.js} +0 -0
  741. /package/dist/{http-Q5Xt0h8Z.js → http-AQJFxSug.js} +0 -0
  742. /package/dist/{idl-D7WCIgHw.js → idl-CeJBDjsl.js} +0 -0
  743. /package/dist/{init-Ci8VD8ZH.js → init-BfRhston.js} +0 -0
  744. /package/dist/{invariant-BW72tHBT.js → invariant-D9QLJ4SZ.js} +0 -0
  745. /package/dist/{isString-B0JuKBai.js → isString-Clqvtgmo.js} +0 -0
  746. /package/dist/{javascript-B2Rn0Lmd.js → javascript-dCv9_Kn8.js} +0 -0
  747. /package/dist/{julia-ApprtEaw.js → julia-CD5lO88_.js} +0 -0
  748. /package/dist/{katex-BTobf3T8.js → katex-Dm9nZf6A.js} +0 -0
  749. /package/dist/{livescript-BMLIlM7C.js → livescript-Cc8RvFBv.js} +0 -0
  750. /package/dist/{lua-DdDaW3tC.js → lua-4nedfnvd.js} +0 -0
  751. /package/dist/{main-DC-71ZOX.js → main-DhFbkwoC.js} +0 -0
  752. /package/dist/{math-HUZifhTs.js → math-BbMyrONz.js} +0 -0
  753. /package/dist/{mathematica-PnNN7c2Z.js → mathematica-BIufdZr2.js} +0 -0
  754. /package/dist/{mbox-B84OtHBK.js → mbox-DQkYSHKe.js} +0 -0
  755. /package/dist/{memoize-BctRJDZ2.js → memoize-Bag7B41I.js} +0 -0
  756. /package/dist/{mirc-BVWXJxIq.js → mirc-CI-RWqUR.js} +0 -0
  757. /package/dist/{mllike-BawXWupH.js → mllike-DQzbf1xo.js} +0 -0
  758. /package/dist/{modelica-C8-X4Hf_.js → modelica-BnF_cDWj.js} +0 -0
  759. /package/dist/{mscgen-BOM6dDj8.js → mscgen-MirFrDhW.js} +0 -0
  760. /package/dist/{mumps-DQOY8n05.js → mumps-eNRTuWOD.js} +0 -0
  761. /package/dist/{nginx-Ynlf_cSR.js → nginx-hpek_Tnq.js} +0 -0
  762. /package/dist/{node-sql-parser-DW04P3RY.js → node-sql-parser-ChQUJk8A.js} +0 -0
  763. /package/dist/{ntriples-DU8VrXdW.js → ntriples-BLneip4i.js} +0 -0
  764. /package/dist/{octave-BzTIBsQ8.js → octave-C0eG-pKq.js} +0 -0
  765. /package/dist/{oz-DKFcZsoi.js → oz-BPMLow2T.js} +0 -0
  766. /package/dist/{pascal-DHBZ15pT.js → pascal-5eb9v5Dl.js} +0 -0
  767. /package/dist/{path-BVI7RNUv.js → path-C_x2ySFi.js} +0 -0
  768. /package/dist/{perl-75NMI3w0.js → perl-DOu6rCkF.js} +0 -0
  769. /package/dist/{pig-B-HY1fo_.js → pig-CRW0kne3.js} +0 -0
  770. /package/dist/{powershell-DEH22U53.js → powershell-CWgJhiiJ.js} +0 -0
  771. /package/dist/{prop-types-DTzjue2h.js → prop-types-C9QZf2SY.js} +0 -0
  772. /package/dist/{properties-B1MzBoJC.js → properties-CHxpmfXW.js} +0 -0
  773. /package/dist/{protobuf-Dr14KV0p.js → protobuf-DGUXb_-T.js} +0 -0
  774. /package/dist/{puppet-C4z38l7v.js → puppet-C7uSiW6_.js} +0 -0
  775. /package/dist/{python-D2L7Nknt.js → python-DAbhVcUr.js} +0 -0
  776. /package/dist/{q-PxipHfgS.js → q-DKjWHias.js} +0 -0
  777. /package/dist/{r-CEMMu_Tf.js → r-KD2KhyeL.js} +0 -0
  778. /package/dist/{range-Bieq5MNc.js → range-BYuZFTbA.js} +0 -0
  779. /package/dist/{rpm-D3xyahkR.js → rpm-GFtnpQ6M.js} +0 -0
  780. /package/dist/{ruby-DwEkwdiu.js → ruby-CBAewzLY.js} +0 -0
  781. /package/dist/{sas-L1W0BRft.js → sas-CCi_AaZi.js} +0 -0
  782. /package/dist/{scheme-CTybTrX0.js → scheme-CGGGD6kR.js} +0 -0
  783. /package/dist/{shell-BSx3LZnu.js → shell-b7vZ8ucI.js} +0 -0
  784. /package/dist/{sieve-BjUfbv-6.js → sieve-ClXOUV85.js} +0 -0
  785. /package/dist/{simple-mode-IPZGFbI6.js → simple-mode-Uad4lEG7.js} +0 -0
  786. /package/dist/{smalltalk-BlzuYrMv.js → smalltalk-_PFt9_gp.js} +0 -0
  787. /package/dist/{solr-B0fQ5Uwe.js → solr-BSTJW269.js} +0 -0
  788. /package/dist/{sparql-BXKjQ0cK.js → sparql-BCF6qcHt.js} +0 -0
  789. /package/dist/{spreadsheet-o1pnCmTO.js → spreadsheet-CiBky1_y.js} +0 -0
  790. /package/dist/{sql-C_tD2xcJ.js → sql-BXZovj-z.js} +0 -0
  791. /package/dist/{stex-BIsgBmK4.js → stex-DrxP7bb3.js} +0 -0
  792. /package/dist/{stylus-CqrLLVnG.js → stylus-DMFZWz-G.js} +0 -0
  793. /package/dist/{swift-DIqvj3_G.js → swift-De2YpSxT.js} +0 -0
  794. /package/dist/{tcl-B8bOIGVK.js → tcl-jV8Xs_1k.js} +0 -0
  795. /package/dist/{textile-DZsjavD_.js → textile-D_zo778l.js} +0 -0
  796. /package/dist/{tiddlywiki-IyzniiDM.js → tiddlywiki-DLTDKQCh.js} +0 -0
  797. /package/dist/{tiki-Dw2XZEnT.js → tiki-tw_kBvbp.js} +0 -0
  798. /package/dist/{timer-CPsmIOdm.js → timer-pEiW44EO.js} +0 -0
  799. /package/dist/{toml-Uc7m08nl.js → toml-_M0gsKn5.js} +0 -0
  800. /package/dist/{treemap-DMn4tIJ7.js → treemap-BzS5cW_6.js} +0 -0
  801. /package/dist/{troff-GEl5wcXR.js → troff-B06gyD33.js} +0 -0
  802. /package/dist/{ttcn-pr4FDOLT.js → ttcn-DoQoQNUM.js} +0 -0
  803. /package/dist/{ttcn-cfg-dZQ_fWTH.js → ttcn-cfg-l_6PksD2.js} +0 -0
  804. /package/dist/{turtle-TPRDOknA.js → turtle-zEnD4bpn.js} +0 -0
  805. /package/dist/{vb-BJUAeTYr.js → vb-fUsnAuzb.js} +0 -0
  806. /package/dist/{vbscript-CcJ6Z3ic.js → vbscript-CVlD7uZQ.js} +0 -0
  807. /package/dist/{velocity-pq4ZMzU3.js → velocity-CHkEIdMC.js} +0 -0
  808. /package/dist/{verilog-timMNjHt.js → verilog-B3ctZTB4.js} +0 -0
  809. /package/dist/{vhdl-DYFbVKNm.js → vhdl-rXdBgR5O.js} +0 -0
  810. /package/dist/{webidl-pue9oqnb.js → webidl-Cv9aQfcc.js} +0 -0
  811. /package/dist/{xquery-DeItGynK.js → xquery-Du0w47aa.js} +0 -0
  812. /package/dist/{yacas-By2Qrjba.js → yacas-Eq4p_g3L.js} +0 -0
  813. /package/dist/{z80-C7iLsyPC.js → z80-Dz4HTTRf.js} +0 -0
  814. /package/dist/{zod-LbXVxiL9.js → zod-DITCj31F.js} +0 -0
@@ -1,1373 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- var _a;
5
- function L() {
6
- return {
7
- async: false,
8
- breaks: false,
9
- extensions: null,
10
- gfm: true,
11
- hooks: null,
12
- pedantic: false,
13
- renderer: null,
14
- silent: false,
15
- tokenizer: null,
16
- walkTokens: null
17
- };
18
- }
19
- var O = L();
20
- function H(e3) {
21
- O = e3;
22
- }
23
- var E = { exec: () => null };
24
- function h(e3, l = "") {
25
- let u = typeof e3 == "string" ? e3 : e3.source, f = {
26
- replace: (e4, l2) => {
27
- let p = typeof l2 == "string" ? l2 : l2.source;
28
- return p = p.replace(m.caret, "$1"), u = u.replace(e4, p), f;
29
- },
30
- getRegex: () => new RegExp(u, l)
31
- };
32
- return f;
33
- }
34
- var m = {
35
- codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
36
- outputLinkReplace: /\\([\[\]])/g,
37
- indentCodeCompensation: /^(\s+)(?:```)/,
38
- beginningSpace: /^\s+/,
39
- endingHash: /#$/,
40
- startingSpaceChar: /^ /,
41
- endingSpaceChar: / $/,
42
- nonSpaceChar: /[^ ]/,
43
- newLineCharGlobal: /\n/g,
44
- tabCharGlobal: /\t/g,
45
- multipleSpaceGlobal: /\s+/g,
46
- blankLine: /^[ \t]*$/,
47
- doubleBlankLine: /\n[ \t]*\n[ \t]*$/,
48
- blockquoteStart: /^ {0,3}>/,
49
- blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g,
50
- blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm,
51
- listReplaceTabs: /^\t+/,
52
- listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,
53
- listIsTask: /^\[[ xX]\] /,
54
- listReplaceTask: /^\[[ xX]\] +/,
55
- anyLine: /\n.*\n/,
56
- hrefBrackets: /^<(.*)>$/,
57
- tableDelimiter: /[:|]/,
58
- tableAlignChars: /^\||\| *$/g,
59
- tableRowBlankLine: /\n[ \t]*$/,
60
- tableAlignRight: /^ *-+: *$/,
61
- tableAlignCenter: /^ *:-+: *$/,
62
- tableAlignLeft: /^ *:-+ *$/,
63
- startATag: /^<a /i,
64
- endATag: /^<\/a>/i,
65
- startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i,
66
- endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i,
67
- startAngleBracket: /^</,
68
- endAngleBracket: />$/,
69
- pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/,
70
- unicodeAlphaNumeric: /[\p{L}\p{N}]/u,
71
- escapeTest: /[&<>"']/,
72
- escapeReplace: /[&<>"']/g,
73
- escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,
74
- escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,
75
- unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,
76
- caret: /(^|[^\[])\^/g,
77
- percentDecode: /%25/g,
78
- findPipe: /\|/g,
79
- splitPipe: / \|/,
80
- slashPipe: /\\\|/g,
81
- carriageReturn: /\r\n|\r/g,
82
- spaceLine: /^ +$/gm,
83
- notSpaceStart: /^\S*/,
84
- endingNewline: /\n$/,
85
- listItemRegex: (e3) => /* @__PURE__ */ RegExp(`^( {0,3}${e3})((?:[ ][^\\n]*)?(?:\\n|$))`),
86
- nextBulletRegex: (e3) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
87
- hrRegex: (e3) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
88
- fencesBeginRegex: (e3) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e3 - 1)}}(?:\`\`\`|~~~)`),
89
- headingBeginRegex: (e3) => /* @__PURE__ */ RegExp(`^ {0,${Math.min(3, e3 - 1)}}#`),
90
- htmlBeginRegex: (e3) => RegExp(`^ {0,${Math.min(3, e3 - 1)}}<(?:[a-z].*>|!--)`, "i")
91
- }, 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|$)|$)/, C = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, j = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ie = h(se).replace(/bull/g, j).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(), Te = h(se).replace(/bull/g, j).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(), F = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, we = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ye = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pe = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, j).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", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Se = h("^ {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", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), oe = h(F).replace("hr", C).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(), K = {
92
- blockquote: h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", oe).getRegex(),
93
- code: be,
94
- def: ye,
95
- fences: Re,
96
- heading: Oe,
97
- hr: C,
98
- html: Se,
99
- lheading: ie,
100
- list: Pe,
101
- newline: xe,
102
- paragraph: oe,
103
- table: E,
104
- text: we
105
- }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", C).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 = {
106
- ...K,
107
- lheading: Te,
108
- table: re,
109
- paragraph: h(F).replace("hr", C).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).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()
110
- }, Le = {
111
- ...K,
112
- html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).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(),
113
- def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
114
- heading: /^(#{1,6})(.*)(?:\n+|$)/,
115
- fences: E,
116
- lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
117
- paragraph: h(F).replace("hr", C).replace("heading", " *#{1,6} *[^\n]").replace("lheading", ie).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
118
- }, Me = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ze = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ae = /^( {2,}|\\)\n(?!\s*$)/, Ae = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, le = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), ue = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Ie = /(?:[^\s\p{P}\p{S}]|~)/u, Be = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, pe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, qe = h(pe, "u").replace(/punct/g, D).getRegex(), ve = h(pe, "u").replace(/punct/g, ue).getRegex(), ce = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(ce, "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h(ce, "gu").replace(/notPunctSpace/g, Ie).replace(/punctSpace/g, Ce).replace(/punct/g, ue).getRegex(), Ge = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, le).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), He = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Ne = h(/^<(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(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Fe = h("^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", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Qe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), he = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), de = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), X = {
119
- _backpedal: E,
120
- anyPunctuation: He,
121
- autolink: Ne,
122
- blockSkip: Be,
123
- br: ae,
124
- code: ze,
125
- del: E,
126
- emStrongLDelim: qe,
127
- emStrongRDelimAst: De,
128
- emStrongRDelimUnd: Ge,
129
- escape: Me,
130
- link: Qe,
131
- nolink: de,
132
- punctuation: Ee,
133
- reflink: he,
134
- reflinkSearch: h("reflink|nolink(?!\\()", "g").replace("reflink", he).replace("nolink", de).getRegex(),
135
- tag: Fe,
136
- text: Ae,
137
- url: E
138
- }, Ke = {
139
- ...X,
140
- link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(),
141
- reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex()
142
- }, N = {
143
- ...X,
144
- emStrongRDelimAst: Ze,
145
- emStrongLDelim: ve,
146
- url: h(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
147
- _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
148
- del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
149
- text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
150
- }, We = {
151
- ...N,
152
- br: h(ae).replace("{2,}", "*").getRegex(),
153
- text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
154
- }, I = {
155
- normal: K,
156
- gfm: _e,
157
- pedantic: Le
158
- }, M = {
159
- normal: X,
160
- gfm: N,
161
- breaks: We,
162
- pedantic: Ke
163
- }, Xe = {
164
- "&": "&amp;",
165
- "<": "&lt;",
166
- ">": "&gt;",
167
- '"': "&quot;",
168
- "'": "&#39;"
169
- }, ke = (e3) => Xe[e3];
170
- function w(e3, l) {
171
- if (l) {
172
- if (m.escapeTest.test(e3)) return e3.replace(m.escapeReplace, ke);
173
- } else if (m.escapeTestNoEncode.test(e3)) return e3.replace(m.escapeReplaceNoEncode, ke);
174
- return e3;
175
- }
176
- function J(e3) {
177
- try {
178
- e3 = encodeURI(e3).replace(m.percentDecode, "%");
179
- } catch {
180
- return null;
181
- }
182
- return e3;
183
- }
184
- function V(e3, l) {
185
- var _a2;
186
- let u = e3.replace(m.findPipe, (e4, l2, u2) => {
187
- let f2 = false, p = l2;
188
- for (; --p >= 0 && u2[p] === "\\"; ) f2 = !f2;
189
- return f2 ? "|" : " |";
190
- }).split(m.splitPipe), f = 0;
191
- if (u[0].trim() || u.shift(), u.length > 0 && !((_a2 = u.at(-1)) == null ? void 0 : _a2.trim()) && u.pop(), l) if (u.length > l) u.splice(l);
192
- else for (; u.length < l; ) u.push("");
193
- for (; f < u.length; f++) u[f] = u[f].trim().replace(m.slashPipe, "|");
194
- return u;
195
- }
196
- function z(e3, l, u) {
197
- let f = e3.length;
198
- if (f === 0) return "";
199
- let p = 0;
200
- for (; p < f; ) {
201
- let g = e3.charAt(f - p - 1);
202
- if (g === l && !u) p++;
203
- else if (g !== l && u) p++;
204
- else break;
205
- }
206
- return e3.slice(0, f - p);
207
- }
208
- function ge(e3, l) {
209
- if (e3.indexOf(l[1]) === -1) return -1;
210
- let u = 0;
211
- for (let f = 0; f < e3.length; f++) if (e3[f] === "\\") f++;
212
- else if (e3[f] === l[0]) u++;
213
- else if (e3[f] === l[1] && (u--, u < 0)) return f;
214
- return u > 0 ? -2 : -1;
215
- }
216
- function fe(e3, l, u, f, p) {
217
- let g = l.href, x = l.title || null, T = e3[1].replace(p.other.outputLinkReplace, "$1");
218
- f.state.inLink = true;
219
- let k = {
220
- type: e3[0].charAt(0) === "!" ? "image" : "link",
221
- raw: u,
222
- href: g,
223
- title: x,
224
- text: T,
225
- tokens: f.inlineTokens(T)
226
- };
227
- return f.state.inLink = false, k;
228
- }
229
- function Je(e3, l, u) {
230
- let f = e3.match(u.other.indentCodeCompensation);
231
- if (f === null) return l;
232
- let p = f[1];
233
- return l.split("\n").map((e4) => {
234
- let l2 = e4.match(u.other.beginningSpace);
235
- if (l2 === null) return e4;
236
- let [f2] = l2;
237
- return f2.length >= p.length ? e4.slice(p.length) : e4;
238
- }).join("\n");
239
- }
240
- var y = class {
241
- constructor(e3) {
242
- __publicField(this, "options");
243
- __publicField(this, "rules");
244
- __publicField(this, "lexer");
245
- this.options = e3 || O;
246
- }
247
- space(e3) {
248
- let l = this.rules.block.newline.exec(e3);
249
- if (l && l[0].length > 0) return {
250
- type: "space",
251
- raw: l[0]
252
- };
253
- }
254
- code(e3) {
255
- let l = this.rules.block.code.exec(e3);
256
- if (l) {
257
- let e4 = l[0].replace(this.rules.other.codeRemoveIndent, "");
258
- return {
259
- type: "code",
260
- raw: l[0],
261
- codeBlockStyle: "indented",
262
- text: this.options.pedantic ? e4 : z(e4, "\n")
263
- };
264
- }
265
- }
266
- fences(e3) {
267
- let l = this.rules.block.fences.exec(e3);
268
- if (l) {
269
- let e4 = l[0], u = Je(e4, l[3] || "", this.rules);
270
- return {
271
- type: "code",
272
- raw: e4,
273
- lang: l[2] ? l[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : l[2],
274
- text: u
275
- };
276
- }
277
- }
278
- heading(e3) {
279
- let l = this.rules.block.heading.exec(e3);
280
- if (l) {
281
- let e4 = l[2].trim();
282
- if (this.rules.other.endingHash.test(e4)) {
283
- let l2 = z(e4, "#");
284
- (this.options.pedantic || !l2 || this.rules.other.endingSpaceChar.test(l2)) && (e4 = l2.trim());
285
- }
286
- return {
287
- type: "heading",
288
- raw: l[0],
289
- depth: l[1].length,
290
- text: e4,
291
- tokens: this.lexer.inline(e4)
292
- };
293
- }
294
- }
295
- hr(e3) {
296
- let l = this.rules.block.hr.exec(e3);
297
- if (l) return {
298
- type: "hr",
299
- raw: z(l[0], "\n")
300
- };
301
- }
302
- blockquote(e3) {
303
- let l = this.rules.block.blockquote.exec(e3);
304
- if (l) {
305
- let e4 = z(l[0], "\n").split("\n"), u = "", f = "", p = [];
306
- for (; e4.length > 0; ) {
307
- let l2 = false, g = [], x;
308
- for (x = 0; x < e4.length; x++) if (this.rules.other.blockquoteStart.test(e4[x])) g.push(e4[x]), l2 = true;
309
- else if (!l2) g.push(e4[x]);
310
- else break;
311
- e4 = e4.slice(x);
312
- let T = g.join("\n"), k = T.replace(this.rules.other.blockquoteSetextReplace, "\n $1").replace(this.rules.other.blockquoteSetextReplace2, "");
313
- u = u ? `${u}
314
- ${T}` : T, f = f ? `${f}
315
- ${k}` : k;
316
- let A = this.lexer.state.top;
317
- if (this.lexer.state.top = true, this.lexer.blockTokens(k, p, true), this.lexer.state.top = A, e4.length === 0) break;
318
- let B = p.at(-1);
319
- if ((B == null ? void 0 : B.type) === "code") break;
320
- if ((B == null ? void 0 : B.type) === "blockquote") {
321
- let l3 = B, g2 = l3.raw + "\n" + e4.join("\n"), x2 = this.blockquote(g2);
322
- p[p.length - 1] = x2, u = u.substring(0, u.length - l3.raw.length) + x2.raw, f = f.substring(0, f.length - l3.text.length) + x2.text;
323
- break;
324
- } else if ((B == null ? void 0 : B.type) === "list") {
325
- let l3 = B, g2 = l3.raw + "\n" + e4.join("\n"), x2 = this.list(g2);
326
- p[p.length - 1] = x2, u = u.substring(0, u.length - B.raw.length) + x2.raw, f = f.substring(0, f.length - l3.raw.length) + x2.raw, e4 = g2.substring(p.at(-1).raw.length).split("\n");
327
- continue;
328
- }
329
- }
330
- return {
331
- type: "blockquote",
332
- raw: u,
333
- tokens: p,
334
- text: f
335
- };
336
- }
337
- }
338
- list(e3) {
339
- let l = this.rules.block.list.exec(e3);
340
- if (l) {
341
- let u = l[1].trim(), f = u.length > 1, p = {
342
- type: "list",
343
- raw: "",
344
- ordered: f,
345
- start: f ? +u.slice(0, -1) : "",
346
- loose: false,
347
- items: []
348
- };
349
- u = f ? `\\d{1,9}\\${u.slice(-1)}` : `\\${u}`, this.options.pedantic && (u = f ? u : "[*+-]");
350
- let g = this.rules.other.listItemRegex(u), x = false;
351
- for (; e3; ) {
352
- let u2 = false, f2 = "", T2 = "";
353
- if (!(l = g.exec(e3)) || this.rules.block.hr.test(e3)) break;
354
- f2 = l[0], e3 = e3.substring(f2.length);
355
- let k = l[2].split("\n", 1)[0].replace(this.rules.other.listReplaceTabs, (e4) => " ".repeat(3 * e4.length)), A = e3.split("\n", 1)[0], B = !k.trim(), G = 0;
356
- if (this.options.pedantic ? (G = 2, T2 = k.trimStart()) : B ? G = l[1].length + 1 : (G = l[2].search(this.rules.other.nonSpaceChar), G = G > 4 ? 1 : G, T2 = k.slice(G), G += l[1].length), B && this.rules.other.blankLine.test(A) && (f2 += A + "\n", e3 = e3.substring(A.length + 1), u2 = true), !u2) {
357
- let l2 = this.rules.other.nextBulletRegex(G), u3 = this.rules.other.hrRegex(G), p2 = this.rules.other.fencesBeginRegex(G), g2 = this.rules.other.headingBeginRegex(G), x2 = this.rules.other.htmlBeginRegex(G);
358
- for (; e3; ) {
359
- let Y2 = e3.split("\n", 1)[0], Z2;
360
- if (A = Y2, this.options.pedantic ? (A = A.replace(this.rules.other.listReplaceNesting, " "), Z2 = A) : Z2 = A.replace(this.rules.other.tabCharGlobal, " "), p2.test(A) || g2.test(A) || x2.test(A) || l2.test(A) || u3.test(A)) break;
361
- if (Z2.search(this.rules.other.nonSpaceChar) >= G || !A.trim()) T2 += "\n" + Z2.slice(G);
362
- else {
363
- if (B || k.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || p2.test(k) || g2.test(k) || u3.test(k)) break;
364
- T2 += "\n" + A;
365
- }
366
- !B && !A.trim() && (B = true), f2 += Y2 + "\n", e3 = e3.substring(Y2.length + 1), k = Z2.slice(G);
367
- }
368
- }
369
- p.loose || (x ? p.loose = true : this.rules.other.doubleBlankLine.test(f2) && (x = true));
370
- let Y = null, Z;
371
- this.options.gfm && (Y = this.rules.other.listIsTask.exec(T2), Y && (Z = Y[0] !== "[ ] ", T2 = T2.replace(this.rules.other.listReplaceTask, ""))), p.items.push({
372
- type: "list_item",
373
- raw: f2,
374
- task: !!Y,
375
- checked: Z,
376
- loose: false,
377
- text: T2,
378
- tokens: []
379
- }), p.raw += f2;
380
- }
381
- let T = p.items.at(-1);
382
- if (T) T.raw = T.raw.trimEnd(), T.text = T.text.trimEnd();
383
- else return;
384
- p.raw = p.raw.trimEnd();
385
- for (let e4 = 0; e4 < p.items.length; e4++) if (this.lexer.state.top = false, p.items[e4].tokens = this.lexer.blockTokens(p.items[e4].text, []), !p.loose) {
386
- let l2 = p.items[e4].tokens.filter((e5) => e5.type === "space");
387
- p.loose = l2.length > 0 && l2.some((e5) => this.rules.other.anyLine.test(e5.raw));
388
- }
389
- if (p.loose) for (let e4 = 0; e4 < p.items.length; e4++) p.items[e4].loose = true;
390
- return p;
391
- }
392
- }
393
- html(e3) {
394
- let l = this.rules.block.html.exec(e3);
395
- if (l) return {
396
- type: "html",
397
- block: true,
398
- raw: l[0],
399
- pre: l[1] === "pre" || l[1] === "script" || l[1] === "style",
400
- text: l[0]
401
- };
402
- }
403
- def(e3) {
404
- let l = this.rules.block.def.exec(e3);
405
- if (l) {
406
- let e4 = l[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, " "), u = l[2] ? l[2].replace(this.rules.other.hrefBrackets, "$1").replace(this.rules.inline.anyPunctuation, "$1") : "", f = l[3] ? l[3].substring(1, l[3].length - 1).replace(this.rules.inline.anyPunctuation, "$1") : l[3];
407
- return {
408
- type: "def",
409
- tag: e4,
410
- raw: l[0],
411
- href: u,
412
- title: f
413
- };
414
- }
415
- }
416
- table(e3) {
417
- var _a2;
418
- let l = this.rules.block.table.exec(e3);
419
- if (!l || !this.rules.other.tableDelimiter.test(l[2])) return;
420
- let u = V(l[1]), f = l[2].replace(this.rules.other.tableAlignChars, "").split("|"), p = ((_a2 = l[3]) == null ? void 0 : _a2.trim()) ? l[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], g = {
421
- type: "table",
422
- raw: l[0],
423
- header: [],
424
- align: [],
425
- rows: []
426
- };
427
- if (u.length === f.length) {
428
- for (let e4 of f) this.rules.other.tableAlignRight.test(e4) ? g.align.push("right") : this.rules.other.tableAlignCenter.test(e4) ? g.align.push("center") : this.rules.other.tableAlignLeft.test(e4) ? g.align.push("left") : g.align.push(null);
429
- for (let e4 = 0; e4 < u.length; e4++) g.header.push({
430
- text: u[e4],
431
- tokens: this.lexer.inline(u[e4]),
432
- header: true,
433
- align: g.align[e4]
434
- });
435
- for (let e4 of p) g.rows.push(V(e4, g.header.length).map((e5, l2) => ({
436
- text: e5,
437
- tokens: this.lexer.inline(e5),
438
- header: false,
439
- align: g.align[l2]
440
- })));
441
- return g;
442
- }
443
- }
444
- lheading(e3) {
445
- let l = this.rules.block.lheading.exec(e3);
446
- if (l) return {
447
- type: "heading",
448
- raw: l[0],
449
- depth: l[2].charAt(0) === "=" ? 1 : 2,
450
- text: l[1],
451
- tokens: this.lexer.inline(l[1])
452
- };
453
- }
454
- paragraph(e3) {
455
- let l = this.rules.block.paragraph.exec(e3);
456
- if (l) {
457
- let e4 = l[1].charAt(l[1].length - 1) === "\n" ? l[1].slice(0, -1) : l[1];
458
- return {
459
- type: "paragraph",
460
- raw: l[0],
461
- text: e4,
462
- tokens: this.lexer.inline(e4)
463
- };
464
- }
465
- }
466
- text(e3) {
467
- let l = this.rules.block.text.exec(e3);
468
- if (l) return {
469
- type: "text",
470
- raw: l[0],
471
- text: l[0],
472
- tokens: this.lexer.inline(l[0])
473
- };
474
- }
475
- escape(e3) {
476
- let l = this.rules.inline.escape.exec(e3);
477
- if (l) return {
478
- type: "escape",
479
- raw: l[0],
480
- text: l[1]
481
- };
482
- }
483
- tag(e3) {
484
- let l = this.rules.inline.tag.exec(e3);
485
- if (l) return !this.lexer.state.inLink && this.rules.other.startATag.test(l[0]) ? this.lexer.state.inLink = true : this.lexer.state.inLink && this.rules.other.endATag.test(l[0]) && (this.lexer.state.inLink = false), !this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(l[0]) ? this.lexer.state.inRawBlock = true : this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(l[0]) && (this.lexer.state.inRawBlock = false), {
486
- type: "html",
487
- raw: l[0],
488
- inLink: this.lexer.state.inLink,
489
- inRawBlock: this.lexer.state.inRawBlock,
490
- block: false,
491
- text: l[0]
492
- };
493
- }
494
- link(e3) {
495
- let l = this.rules.inline.link.exec(e3);
496
- if (l) {
497
- let e4 = l[2].trim();
498
- if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e4)) {
499
- if (!this.rules.other.endAngleBracket.test(e4)) return;
500
- let l2 = z(e4.slice(0, -1), "\\");
501
- if ((e4.length - l2.length) % 2 == 0) return;
502
- } else {
503
- let e5 = ge(l[2], "()");
504
- if (e5 === -2) return;
505
- if (e5 > -1) {
506
- let u2 = (l[0].indexOf("!") === 0 ? 5 : 4) + l[1].length + e5;
507
- l[2] = l[2].substring(0, e5), l[0] = l[0].substring(0, u2).trim(), l[3] = "";
508
- }
509
- }
510
- let u = l[2], f = "";
511
- if (this.options.pedantic) {
512
- let e5 = this.rules.other.pedanticHrefTitle.exec(u);
513
- e5 && (u = e5[1], f = e5[3]);
514
- } else f = l[3] ? l[3].slice(1, -1) : "";
515
- return u = u.trim(), this.rules.other.startAngleBracket.test(u) && (u = this.options.pedantic && !this.rules.other.endAngleBracket.test(e4) ? u.slice(1) : u.slice(1, -1)), fe(l, {
516
- href: u && u.replace(this.rules.inline.anyPunctuation, "$1"),
517
- title: f && f.replace(this.rules.inline.anyPunctuation, "$1")
518
- }, l[0], this.lexer, this.rules);
519
- }
520
- }
521
- reflink(e3, l) {
522
- let u;
523
- if ((u = this.rules.inline.reflink.exec(e3)) || (u = this.rules.inline.nolink.exec(e3))) {
524
- let e4 = l[(u[2] || u[1]).replace(this.rules.other.multipleSpaceGlobal, " ").toLowerCase()];
525
- if (!e4) {
526
- let e5 = u[0].charAt(0);
527
- return {
528
- type: "text",
529
- raw: e5,
530
- text: e5
531
- };
532
- }
533
- return fe(u, e4, u[0], this.lexer, this.rules);
534
- }
535
- }
536
- emStrong(e3, l, u = "") {
537
- let f = this.rules.inline.emStrongLDelim.exec(e3);
538
- if (!(!f || f[3] && u.match(this.rules.other.unicodeAlphaNumeric)) && (!(f[1] || f[2]) || !u || this.rules.inline.punctuation.exec(u))) {
539
- let u2 = [...f[0]].length - 1, p, g, x = u2, T = 0, k = f[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
540
- for (k.lastIndex = 0, l = l.slice(-1 * e3.length + u2); (f = k.exec(l)) != null; ) {
541
- if (p = f[1] || f[2] || f[3] || f[4] || f[5] || f[6], !p) continue;
542
- if (g = [...p].length, f[3] || f[4]) {
543
- x += g;
544
- continue;
545
- } else if ((f[5] || f[6]) && u2 % 3 && !((u2 + g) % 3)) {
546
- T += g;
547
- continue;
548
- }
549
- if (x -= g, x > 0) continue;
550
- g = Math.min(g, g + x + T);
551
- let l2 = [...f[0]][0].length, k2 = e3.slice(0, u2 + f.index + l2 + g);
552
- if (Math.min(u2, g) % 2) {
553
- let e4 = k2.slice(1, -1);
554
- return {
555
- type: "em",
556
- raw: k2,
557
- text: e4,
558
- tokens: this.lexer.inlineTokens(e4)
559
- };
560
- }
561
- let A = k2.slice(2, -2);
562
- return {
563
- type: "strong",
564
- raw: k2,
565
- text: A,
566
- tokens: this.lexer.inlineTokens(A)
567
- };
568
- }
569
- }
570
- }
571
- codespan(e3) {
572
- let l = this.rules.inline.code.exec(e3);
573
- if (l) {
574
- let e4 = l[2].replace(this.rules.other.newLineCharGlobal, " "), u = this.rules.other.nonSpaceChar.test(e4), f = this.rules.other.startingSpaceChar.test(e4) && this.rules.other.endingSpaceChar.test(e4);
575
- return u && f && (e4 = e4.substring(1, e4.length - 1)), {
576
- type: "codespan",
577
- raw: l[0],
578
- text: e4
579
- };
580
- }
581
- }
582
- br(e3) {
583
- let l = this.rules.inline.br.exec(e3);
584
- if (l) return {
585
- type: "br",
586
- raw: l[0]
587
- };
588
- }
589
- del(e3) {
590
- let l = this.rules.inline.del.exec(e3);
591
- if (l) return {
592
- type: "del",
593
- raw: l[0],
594
- text: l[2],
595
- tokens: this.lexer.inlineTokens(l[2])
596
- };
597
- }
598
- autolink(e3) {
599
- let l = this.rules.inline.autolink.exec(e3);
600
- if (l) {
601
- let e4, u;
602
- return l[2] === "@" ? (e4 = l[1], u = "mailto:" + e4) : (e4 = l[1], u = e4), {
603
- type: "link",
604
- raw: l[0],
605
- text: e4,
606
- href: u,
607
- tokens: [{
608
- type: "text",
609
- raw: e4,
610
- text: e4
611
- }]
612
- };
613
- }
614
- }
615
- url(e3) {
616
- var _a2;
617
- let l;
618
- if (l = this.rules.inline.url.exec(e3)) {
619
- let e4, u;
620
- if (l[2] === "@") e4 = l[0], u = "mailto:" + e4;
621
- else {
622
- let f;
623
- do
624
- f = l[0], l[0] = ((_a2 = this.rules.inline._backpedal.exec(l[0])) == null ? void 0 : _a2[0]) ?? "";
625
- while (f !== l[0]);
626
- e4 = l[0], u = l[1] === "www." ? "http://" + l[0] : l[0];
627
- }
628
- return {
629
- type: "link",
630
- raw: l[0],
631
- text: e4,
632
- href: u,
633
- tokens: [{
634
- type: "text",
635
- raw: e4,
636
- text: e4
637
- }]
638
- };
639
- }
640
- }
641
- inlineText(e3) {
642
- let l = this.rules.inline.text.exec(e3);
643
- if (l) {
644
- let e4 = this.lexer.state.inRawBlock;
645
- return {
646
- type: "text",
647
- raw: l[0],
648
- text: l[0],
649
- escaped: e4
650
- };
651
- }
652
- }
653
- }, b = class e {
654
- constructor(e3) {
655
- __publicField(this, "tokens");
656
- __publicField(this, "options");
657
- __publicField(this, "state");
658
- __publicField(this, "tokenizer");
659
- __publicField(this, "inlineQueue");
660
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e3 || O, 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 = {
661
- inLink: false,
662
- inRawBlock: false,
663
- top: true
664
- };
665
- let u = {
666
- other: m,
667
- block: I.normal,
668
- inline: M.normal
669
- };
670
- this.options.pedantic ? (u.block = I.pedantic, u.inline = M.pedantic) : this.options.gfm && (u.block = I.gfm, this.options.breaks ? u.inline = M.breaks : u.inline = M.gfm), this.tokenizer.rules = u;
671
- }
672
- static get rules() {
673
- return {
674
- block: I,
675
- inline: M
676
- };
677
- }
678
- static lex(l, u) {
679
- return new e(u).lex(l);
680
- }
681
- static lexInline(l, u) {
682
- return new e(u).inlineTokens(l);
683
- }
684
- lex(e3) {
685
- e3 = e3.replace(m.carriageReturn, "\n"), this.blockTokens(e3, this.tokens);
686
- for (let e4 = 0; e4 < this.inlineQueue.length; e4++) {
687
- let l = this.inlineQueue[e4];
688
- this.inlineTokens(l.src, l.tokens);
689
- }
690
- return this.inlineQueue = [], this.tokens;
691
- }
692
- blockTokens(e3, l = [], u = false) {
693
- var _a2, _b, _c;
694
- for (this.options.pedantic && (e3 = e3.replace(m.tabCharGlobal, " ").replace(m.spaceLine, "")); e3; ) {
695
- let f;
696
- if ((_b = (_a2 = this.options.extensions) == null ? void 0 : _a2.block) == null ? void 0 : _b.some((u2) => (f = u2.call({ lexer: this }, e3, l)) ? (e3 = e3.substring(f.raw.length), l.push(f), true) : false)) continue;
697
- if (f = this.tokenizer.space(e3)) {
698
- e3 = e3.substring(f.raw.length);
699
- let u2 = l.at(-1);
700
- f.raw.length === 1 && u2 !== void 0 ? u2.raw += "\n" : l.push(f);
701
- continue;
702
- }
703
- if (f = this.tokenizer.code(e3)) {
704
- e3 = e3.substring(f.raw.length);
705
- let u2 = l.at(-1);
706
- (u2 == null ? void 0 : u2.type) === "paragraph" || (u2 == null ? void 0 : u2.type) === "text" ? (u2.raw += (u2.raw.endsWith("\n") ? "" : "\n") + f.raw, u2.text += "\n" + f.text, this.inlineQueue.at(-1).src = u2.text) : l.push(f);
707
- continue;
708
- }
709
- if (f = this.tokenizer.fences(e3)) {
710
- e3 = e3.substring(f.raw.length), l.push(f);
711
- continue;
712
- }
713
- if (f = this.tokenizer.heading(e3)) {
714
- e3 = e3.substring(f.raw.length), l.push(f);
715
- continue;
716
- }
717
- if (f = this.tokenizer.hr(e3)) {
718
- e3 = e3.substring(f.raw.length), l.push(f);
719
- continue;
720
- }
721
- if (f = this.tokenizer.blockquote(e3)) {
722
- e3 = e3.substring(f.raw.length), l.push(f);
723
- continue;
724
- }
725
- if (f = this.tokenizer.list(e3)) {
726
- e3 = e3.substring(f.raw.length), l.push(f);
727
- continue;
728
- }
729
- if (f = this.tokenizer.html(e3)) {
730
- e3 = e3.substring(f.raw.length), l.push(f);
731
- continue;
732
- }
733
- if (f = this.tokenizer.def(e3)) {
734
- e3 = e3.substring(f.raw.length);
735
- let u2 = l.at(-1);
736
- (u2 == null ? void 0 : u2.type) === "paragraph" || (u2 == null ? void 0 : u2.type) === "text" ? (u2.raw += (u2.raw.endsWith("\n") ? "" : "\n") + f.raw, u2.text += "\n" + f.raw, this.inlineQueue.at(-1).src = u2.text) : this.tokens.links[f.tag] || (this.tokens.links[f.tag] = {
737
- href: f.href,
738
- title: f.title
739
- }, l.push(f));
740
- continue;
741
- }
742
- if (f = this.tokenizer.table(e3)) {
743
- e3 = e3.substring(f.raw.length), l.push(f);
744
- continue;
745
- }
746
- if (f = this.tokenizer.lheading(e3)) {
747
- e3 = e3.substring(f.raw.length), l.push(f);
748
- continue;
749
- }
750
- let p = e3;
751
- if ((_c = this.options.extensions) == null ? void 0 : _c.startBlock) {
752
- let l2 = Infinity, u2 = e3.slice(1), f2;
753
- this.options.extensions.startBlock.forEach((e4) => {
754
- f2 = e4.call({ lexer: this }, u2), typeof f2 == "number" && f2 >= 0 && (l2 = Math.min(l2, f2));
755
- }), l2 < Infinity && l2 >= 0 && (p = e3.substring(0, l2 + 1));
756
- }
757
- if (this.state.top && (f = this.tokenizer.paragraph(p))) {
758
- let g = l.at(-1);
759
- u && (g == null ? void 0 : g.type) === "paragraph" ? (g.raw += (g.raw.endsWith("\n") ? "" : "\n") + f.raw, g.text += "\n" + f.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = g.text) : l.push(f), u = p.length !== e3.length, e3 = e3.substring(f.raw.length);
760
- continue;
761
- }
762
- if (f = this.tokenizer.text(e3)) {
763
- e3 = e3.substring(f.raw.length);
764
- let u2 = l.at(-1);
765
- (u2 == null ? void 0 : u2.type) === "text" ? (u2.raw += (u2.raw.endsWith("\n") ? "" : "\n") + f.raw, u2.text += "\n" + f.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = u2.text) : l.push(f);
766
- continue;
767
- }
768
- if (e3) {
769
- let l2 = "Infinite loop on byte: " + e3.charCodeAt(0);
770
- if (this.options.silent) {
771
- console.error(l2);
772
- break;
773
- } else throw Error(l2);
774
- }
775
- }
776
- return this.state.top = true, l;
777
- }
778
- inline(e3, l = []) {
779
- return this.inlineQueue.push({
780
- src: e3,
781
- tokens: l
782
- }), l;
783
- }
784
- inlineTokens(e3, l = []) {
785
- var _a2, _b, _c;
786
- let u = e3, f = null;
787
- if (this.tokens.links) {
788
- let e4 = Object.keys(this.tokens.links);
789
- if (e4.length > 0) for (; (f = this.tokenizer.rules.inline.reflinkSearch.exec(u)) != null; ) e4.includes(f[0].slice(f[0].lastIndexOf("[") + 1, -1)) && (u = u.slice(0, f.index) + "[" + "a".repeat(f[0].length - 2) + "]" + u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
790
- }
791
- for (; (f = this.tokenizer.rules.inline.anyPunctuation.exec(u)) != null; ) u = u.slice(0, f.index) + "++" + u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
792
- for (; (f = this.tokenizer.rules.inline.blockSkip.exec(u)) != null; ) u = u.slice(0, f.index) + "[" + "a".repeat(f[0].length - 2) + "]" + u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
793
- let p = false, g = "";
794
- for (; e3; ) {
795
- p || (g = ""), p = false;
796
- let f2;
797
- if ((_b = (_a2 = this.options.extensions) == null ? void 0 : _a2.inline) == null ? void 0 : _b.some((u2) => (f2 = u2.call({ lexer: this }, e3, l)) ? (e3 = e3.substring(f2.raw.length), l.push(f2), true) : false)) continue;
798
- if (f2 = this.tokenizer.escape(e3)) {
799
- e3 = e3.substring(f2.raw.length), l.push(f2);
800
- continue;
801
- }
802
- if (f2 = this.tokenizer.tag(e3)) {
803
- e3 = e3.substring(f2.raw.length), l.push(f2);
804
- continue;
805
- }
806
- if (f2 = this.tokenizer.link(e3)) {
807
- e3 = e3.substring(f2.raw.length), l.push(f2);
808
- continue;
809
- }
810
- if (f2 = this.tokenizer.reflink(e3, this.tokens.links)) {
811
- e3 = e3.substring(f2.raw.length);
812
- let u2 = l.at(-1);
813
- f2.type === "text" && (u2 == null ? void 0 : u2.type) === "text" ? (u2.raw += f2.raw, u2.text += f2.text) : l.push(f2);
814
- continue;
815
- }
816
- if (f2 = this.tokenizer.emStrong(e3, u, g)) {
817
- e3 = e3.substring(f2.raw.length), l.push(f2);
818
- continue;
819
- }
820
- if (f2 = this.tokenizer.codespan(e3)) {
821
- e3 = e3.substring(f2.raw.length), l.push(f2);
822
- continue;
823
- }
824
- if (f2 = this.tokenizer.br(e3)) {
825
- e3 = e3.substring(f2.raw.length), l.push(f2);
826
- continue;
827
- }
828
- if (f2 = this.tokenizer.del(e3)) {
829
- e3 = e3.substring(f2.raw.length), l.push(f2);
830
- continue;
831
- }
832
- if (f2 = this.tokenizer.autolink(e3)) {
833
- e3 = e3.substring(f2.raw.length), l.push(f2);
834
- continue;
835
- }
836
- if (!this.state.inLink && (f2 = this.tokenizer.url(e3))) {
837
- e3 = e3.substring(f2.raw.length), l.push(f2);
838
- continue;
839
- }
840
- let x = e3;
841
- if ((_c = this.options.extensions) == null ? void 0 : _c.startInline) {
842
- let l2 = Infinity, u2 = e3.slice(1), f3;
843
- this.options.extensions.startInline.forEach((e4) => {
844
- f3 = e4.call({ lexer: this }, u2), typeof f3 == "number" && f3 >= 0 && (l2 = Math.min(l2, f3));
845
- }), l2 < Infinity && l2 >= 0 && (x = e3.substring(0, l2 + 1));
846
- }
847
- if (f2 = this.tokenizer.inlineText(x)) {
848
- e3 = e3.substring(f2.raw.length), f2.raw.slice(-1) !== "_" && (g = f2.raw.slice(-1)), p = true;
849
- let u2 = l.at(-1);
850
- (u2 == null ? void 0 : u2.type) === "text" ? (u2.raw += f2.raw, u2.text += f2.text) : l.push(f2);
851
- continue;
852
- }
853
- if (e3) {
854
- let l2 = "Infinite loop on byte: " + e3.charCodeAt(0);
855
- if (this.options.silent) {
856
- console.error(l2);
857
- break;
858
- } else throw Error(l2);
859
- }
860
- }
861
- return l;
862
- }
863
- }, P = class {
864
- constructor(e3) {
865
- __publicField(this, "options");
866
- __publicField(this, "parser");
867
- this.options = e3 || O;
868
- }
869
- space(e3) {
870
- return "";
871
- }
872
- code({ text: e3, lang: l, escaped: u }) {
873
- var _a2;
874
- let f = (_a2 = (l || "").match(m.notSpaceStart)) == null ? void 0 : _a2[0], p = e3.replace(m.endingNewline, "") + "\n";
875
- return f ? '<pre><code class="language-' + w(f) + '">' + (u ? p : w(p, true)) + "</code></pre>\n" : "<pre><code>" + (u ? p : w(p, true)) + "</code></pre>\n";
876
- }
877
- blockquote({ tokens: e3 }) {
878
- return `<blockquote>
879
- ${this.parser.parse(e3)}</blockquote>
880
- `;
881
- }
882
- html({ text: e3 }) {
883
- return e3;
884
- }
885
- def(e3) {
886
- return "";
887
- }
888
- heading({ tokens: e3, depth: l }) {
889
- return `<h${l}>${this.parser.parseInline(e3)}</h${l}>
890
- `;
891
- }
892
- hr(e3) {
893
- return "<hr>\n";
894
- }
895
- list(e3) {
896
- let l = e3.ordered, u = e3.start, f = "";
897
- for (let l2 = 0; l2 < e3.items.length; l2++) {
898
- let u2 = e3.items[l2];
899
- f += this.listitem(u2);
900
- }
901
- let p = l ? "ol" : "ul", g = l && u !== 1 ? ' start="' + u + '"' : "";
902
- return "<" + p + g + ">\n" + f + "</" + p + ">\n";
903
- }
904
- listitem(e3) {
905
- var _a2;
906
- let l = "";
907
- if (e3.task) {
908
- let u = this.checkbox({ checked: !!e3.checked });
909
- e3.loose ? ((_a2 = e3.tokens[0]) == null ? void 0 : _a2.type) === "paragraph" ? (e3.tokens[0].text = u + " " + e3.tokens[0].text, e3.tokens[0].tokens && e3.tokens[0].tokens.length > 0 && e3.tokens[0].tokens[0].type === "text" && (e3.tokens[0].tokens[0].text = u + " " + w(e3.tokens[0].tokens[0].text), e3.tokens[0].tokens[0].escaped = true)) : e3.tokens.unshift({
910
- type: "text",
911
- raw: u + " ",
912
- text: u + " ",
913
- escaped: true
914
- }) : l += u + " ";
915
- }
916
- return l += this.parser.parse(e3.tokens, !!e3.loose), `<li>${l}</li>
917
- `;
918
- }
919
- checkbox({ checked: e3 }) {
920
- return "<input " + (e3 ? 'checked="" ' : "") + 'disabled="" type="checkbox">';
921
- }
922
- paragraph({ tokens: e3 }) {
923
- return `<p>${this.parser.parseInline(e3)}</p>
924
- `;
925
- }
926
- table(e3) {
927
- let l = "", u = "";
928
- for (let l2 = 0; l2 < e3.header.length; l2++) u += this.tablecell(e3.header[l2]);
929
- l += this.tablerow({ text: u });
930
- let f = "";
931
- for (let l2 = 0; l2 < e3.rows.length; l2++) {
932
- let p = e3.rows[l2];
933
- u = "";
934
- for (let e4 = 0; e4 < p.length; e4++) u += this.tablecell(p[e4]);
935
- f += this.tablerow({ text: u });
936
- }
937
- return f && (f = `<tbody>${f}</tbody>`), "<table>\n<thead>\n" + l + "</thead>\n" + f + "</table>\n";
938
- }
939
- tablerow({ text: e3 }) {
940
- return `<tr>
941
- ${e3}</tr>
942
- `;
943
- }
944
- tablecell(e3) {
945
- let l = this.parser.parseInline(e3.tokens), u = e3.header ? "th" : "td";
946
- return (e3.align ? `<${u} align="${e3.align}">` : `<${u}>`) + l + `</${u}>
947
- `;
948
- }
949
- strong({ tokens: e3 }) {
950
- return `<strong>${this.parser.parseInline(e3)}</strong>`;
951
- }
952
- em({ tokens: e3 }) {
953
- return `<em>${this.parser.parseInline(e3)}</em>`;
954
- }
955
- codespan({ text: e3 }) {
956
- return `<code>${w(e3, true)}</code>`;
957
- }
958
- br(e3) {
959
- return "<br>";
960
- }
961
- del({ tokens: e3 }) {
962
- return `<del>${this.parser.parseInline(e3)}</del>`;
963
- }
964
- link({ href: e3, title: l, tokens: u }) {
965
- let f = this.parser.parseInline(u), p = J(e3);
966
- if (p === null) return f;
967
- e3 = p;
968
- let g = '<a href="' + e3 + '"';
969
- return l && (g += ' title="' + w(l) + '"'), g += ">" + f + "</a>", g;
970
- }
971
- image({ href: e3, title: l, text: u, tokens: f }) {
972
- f && (u = this.parser.parseInline(f, this.parser.textRenderer));
973
- let p = J(e3);
974
- if (p === null) return w(u);
975
- e3 = p;
976
- let g = `<img src="${e3}" alt="${u}"`;
977
- return l && (g += ` title="${w(l)}"`), g += ">", g;
978
- }
979
- text(e3) {
980
- return "tokens" in e3 && e3.tokens ? this.parser.parseInline(e3.tokens) : "escaped" in e3 && e3.escaped ? e3.text : w(e3.text);
981
- }
982
- }, S = class {
983
- strong({ text: e3 }) {
984
- return e3;
985
- }
986
- em({ text: e3 }) {
987
- return e3;
988
- }
989
- codespan({ text: e3 }) {
990
- return e3;
991
- }
992
- del({ text: e3 }) {
993
- return e3;
994
- }
995
- html({ text: e3 }) {
996
- return e3;
997
- }
998
- text({ text: e3 }) {
999
- return e3;
1000
- }
1001
- link({ text: e3 }) {
1002
- return "" + e3;
1003
- }
1004
- image({ text: e3 }) {
1005
- return "" + e3;
1006
- }
1007
- br() {
1008
- return "";
1009
- }
1010
- }, R = class e2 {
1011
- constructor(e3) {
1012
- __publicField(this, "options");
1013
- __publicField(this, "renderer");
1014
- __publicField(this, "textRenderer");
1015
- this.options = e3 || O, 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 S();
1016
- }
1017
- static parse(l, u) {
1018
- return new e2(u).parse(l);
1019
- }
1020
- static parseInline(l, u) {
1021
- return new e2(u).parseInline(l);
1022
- }
1023
- parse(e3, l = true) {
1024
- var _a2, _b;
1025
- let u = "";
1026
- for (let f = 0; f < e3.length; f++) {
1027
- let p = e3[f];
1028
- if ((_b = (_a2 = this.options.extensions) == null ? void 0 : _a2.renderers) == null ? void 0 : _b[p.type]) {
1029
- let e4 = p, l2 = this.options.extensions.renderers[e4.type].call({ parser: this }, e4);
1030
- if (l2 !== false || ![
1031
- "space",
1032
- "hr",
1033
- "heading",
1034
- "code",
1035
- "table",
1036
- "blockquote",
1037
- "list",
1038
- "html",
1039
- "def",
1040
- "paragraph",
1041
- "text"
1042
- ].includes(e4.type)) {
1043
- u += l2 || "";
1044
- continue;
1045
- }
1046
- }
1047
- let g = p;
1048
- switch (g.type) {
1049
- case "space":
1050
- u += this.renderer.space(g);
1051
- continue;
1052
- case "hr":
1053
- u += this.renderer.hr(g);
1054
- continue;
1055
- case "heading":
1056
- u += this.renderer.heading(g);
1057
- continue;
1058
- case "code":
1059
- u += this.renderer.code(g);
1060
- continue;
1061
- case "table":
1062
- u += this.renderer.table(g);
1063
- continue;
1064
- case "blockquote":
1065
- u += this.renderer.blockquote(g);
1066
- continue;
1067
- case "list":
1068
- u += this.renderer.list(g);
1069
- continue;
1070
- case "html":
1071
- u += this.renderer.html(g);
1072
- continue;
1073
- case "def":
1074
- u += this.renderer.def(g);
1075
- continue;
1076
- case "paragraph":
1077
- u += this.renderer.paragraph(g);
1078
- continue;
1079
- case "text": {
1080
- let p2 = g, x = this.renderer.text(p2);
1081
- for (; f + 1 < e3.length && e3[f + 1].type === "text"; ) p2 = e3[++f], x += "\n" + this.renderer.text(p2);
1082
- l ? u += this.renderer.paragraph({
1083
- type: "paragraph",
1084
- raw: x,
1085
- text: x,
1086
- tokens: [{
1087
- type: "text",
1088
- raw: x,
1089
- text: x,
1090
- escaped: true
1091
- }]
1092
- }) : u += x;
1093
- continue;
1094
- }
1095
- default: {
1096
- let e4 = 'Token with "' + g.type + '" type was not found.';
1097
- if (this.options.silent) return console.error(e4), "";
1098
- throw Error(e4);
1099
- }
1100
- }
1101
- }
1102
- return u;
1103
- }
1104
- parseInline(e3, l = this.renderer) {
1105
- var _a2, _b;
1106
- let u = "";
1107
- for (let f = 0; f < e3.length; f++) {
1108
- let p = e3[f];
1109
- if ((_b = (_a2 = this.options.extensions) == null ? void 0 : _a2.renderers) == null ? void 0 : _b[p.type]) {
1110
- let e4 = this.options.extensions.renderers[p.type].call({ parser: this }, p);
1111
- if (e4 !== false || ![
1112
- "escape",
1113
- "html",
1114
- "link",
1115
- "image",
1116
- "strong",
1117
- "em",
1118
- "codespan",
1119
- "br",
1120
- "del",
1121
- "text"
1122
- ].includes(p.type)) {
1123
- u += e4 || "";
1124
- continue;
1125
- }
1126
- }
1127
- let g = p;
1128
- switch (g.type) {
1129
- case "escape":
1130
- u += l.text(g);
1131
- break;
1132
- case "html":
1133
- u += l.html(g);
1134
- break;
1135
- case "link":
1136
- u += l.link(g);
1137
- break;
1138
- case "image":
1139
- u += l.image(g);
1140
- break;
1141
- case "strong":
1142
- u += l.strong(g);
1143
- break;
1144
- case "em":
1145
- u += l.em(g);
1146
- break;
1147
- case "codespan":
1148
- u += l.codespan(g);
1149
- break;
1150
- case "br":
1151
- u += l.br(g);
1152
- break;
1153
- case "del":
1154
- u += l.del(g);
1155
- break;
1156
- case "text":
1157
- u += l.text(g);
1158
- break;
1159
- default: {
1160
- let e4 = 'Token with "' + g.type + '" type was not found.';
1161
- if (this.options.silent) return console.error(e4), "";
1162
- throw Error(e4);
1163
- }
1164
- }
1165
- }
1166
- return u;
1167
- }
1168
- }, $ = (_a = class {
1169
- constructor(e3) {
1170
- __publicField(this, "options");
1171
- __publicField(this, "block");
1172
- this.options = e3 || O;
1173
- }
1174
- preprocess(e3) {
1175
- return e3;
1176
- }
1177
- postprocess(e3) {
1178
- return e3;
1179
- }
1180
- processAllTokens(e3) {
1181
- return e3;
1182
- }
1183
- provideLexer() {
1184
- return this.block ? b.lex : b.lexInline;
1185
- }
1186
- provideParser() {
1187
- return this.block ? R.parse : R.parseInline;
1188
- }
1189
- }, __publicField(_a, "passThroughHooks", /* @__PURE__ */ new Set([
1190
- "preprocess",
1191
- "postprocess",
1192
- "processAllTokens"
1193
- ])), _a), _ = new class {
1194
- constructor(...e3) {
1195
- __publicField(this, "defaults", L());
1196
- __publicField(this, "options", this.setOptions);
1197
- __publicField(this, "parse", this.parseMarkdown(true));
1198
- __publicField(this, "parseInline", this.parseMarkdown(false));
1199
- __publicField(this, "Parser", R);
1200
- __publicField(this, "Renderer", P);
1201
- __publicField(this, "TextRenderer", S);
1202
- __publicField(this, "Lexer", b);
1203
- __publicField(this, "Tokenizer", y);
1204
- __publicField(this, "Hooks", $);
1205
- this.use(...e3);
1206
- }
1207
- walkTokens(e3, l) {
1208
- var _a2, _b;
1209
- let u = [];
1210
- for (let f of e3) switch (u = u.concat(l.call(this, f)), f.type) {
1211
- case "table": {
1212
- let e4 = f;
1213
- for (let f2 of e4.header) u = u.concat(this.walkTokens(f2.tokens, l));
1214
- for (let f2 of e4.rows) for (let e5 of f2) u = u.concat(this.walkTokens(e5.tokens, l));
1215
- break;
1216
- }
1217
- case "list": {
1218
- let e4 = f;
1219
- u = u.concat(this.walkTokens(e4.items, l));
1220
- break;
1221
- }
1222
- default: {
1223
- let e4 = f;
1224
- ((_b = (_a2 = this.defaults.extensions) == null ? void 0 : _a2.childTokens) == null ? void 0 : _b[e4.type]) ? this.defaults.extensions.childTokens[e4.type].forEach((f2) => {
1225
- let p = e4[f2].flat(Infinity);
1226
- u = u.concat(this.walkTokens(p, l));
1227
- }) : e4.tokens && (u = u.concat(this.walkTokens(e4.tokens, l)));
1228
- }
1229
- }
1230
- return u;
1231
- }
1232
- use(...e3) {
1233
- let l = this.defaults.extensions || {
1234
- renderers: {},
1235
- childTokens: {}
1236
- };
1237
- return e3.forEach((e4) => {
1238
- let u = { ...e4 };
1239
- if (u.async = this.defaults.async || u.async || false, e4.extensions && (e4.extensions.forEach((e5) => {
1240
- if (!e5.name) throw Error("extension name required");
1241
- if ("renderer" in e5) {
1242
- let u2 = l.renderers[e5.name];
1243
- u2 ? l.renderers[e5.name] = function(...l2) {
1244
- let f = e5.renderer.apply(this, l2);
1245
- return f === false && (f = u2.apply(this, l2)), f;
1246
- } : l.renderers[e5.name] = e5.renderer;
1247
- }
1248
- if ("tokenizer" in e5) {
1249
- if (!e5.level || e5.level !== "block" && e5.level !== "inline") throw Error("extension level must be 'block' or 'inline'");
1250
- let u2 = l[e5.level];
1251
- u2 ? u2.unshift(e5.tokenizer) : l[e5.level] = [e5.tokenizer], e5.start && (e5.level === "block" ? l.startBlock ? l.startBlock.push(e5.start) : l.startBlock = [e5.start] : e5.level === "inline" && (l.startInline ? l.startInline.push(e5.start) : l.startInline = [e5.start]));
1252
- }
1253
- "childTokens" in e5 && e5.childTokens && (l.childTokens[e5.name] = e5.childTokens);
1254
- }), u.extensions = l), e4.renderer) {
1255
- let l2 = this.defaults.renderer || new P(this.defaults);
1256
- for (let u2 in e4.renderer) {
1257
- if (!(u2 in l2)) throw Error(`renderer '${u2}' does not exist`);
1258
- if (["options", "parser"].includes(u2)) continue;
1259
- let f = u2, p = e4.renderer[f], g = l2[f];
1260
- l2[f] = (...e5) => {
1261
- let u3 = p.apply(l2, e5);
1262
- return u3 === false && (u3 = g.apply(l2, e5)), u3 || "";
1263
- };
1264
- }
1265
- u.renderer = l2;
1266
- }
1267
- if (e4.tokenizer) {
1268
- let l2 = this.defaults.tokenizer || new y(this.defaults);
1269
- for (let u2 in e4.tokenizer) {
1270
- if (!(u2 in l2)) throw Error(`tokenizer '${u2}' does not exist`);
1271
- if ([
1272
- "options",
1273
- "rules",
1274
- "lexer"
1275
- ].includes(u2)) continue;
1276
- let f = u2, p = e4.tokenizer[f], g = l2[f];
1277
- l2[f] = (...e5) => {
1278
- let u3 = p.apply(l2, e5);
1279
- return u3 === false && (u3 = g.apply(l2, e5)), u3;
1280
- };
1281
- }
1282
- u.tokenizer = l2;
1283
- }
1284
- if (e4.hooks) {
1285
- let l2 = this.defaults.hooks || new $();
1286
- for (let u2 in e4.hooks) {
1287
- if (!(u2 in l2)) throw Error(`hook '${u2}' does not exist`);
1288
- if (["options", "block"].includes(u2)) continue;
1289
- let f = u2, p = e4.hooks[f], g = l2[f];
1290
- $.passThroughHooks.has(u2) ? l2[f] = (e5) => {
1291
- if (this.defaults.async) return Promise.resolve(p.call(l2, e5)).then((e6) => g.call(l2, e6));
1292
- let u3 = p.call(l2, e5);
1293
- return g.call(l2, u3);
1294
- } : l2[f] = (...e5) => {
1295
- let u3 = p.apply(l2, e5);
1296
- return u3 === false && (u3 = g.apply(l2, e5)), u3;
1297
- };
1298
- }
1299
- u.hooks = l2;
1300
- }
1301
- if (e4.walkTokens) {
1302
- let l2 = this.defaults.walkTokens, f = e4.walkTokens;
1303
- u.walkTokens = function(e5) {
1304
- let u2 = [];
1305
- return u2.push(f.call(this, e5)), l2 && (u2 = u2.concat(l2.call(this, e5))), u2;
1306
- };
1307
- }
1308
- this.defaults = {
1309
- ...this.defaults,
1310
- ...u
1311
- };
1312
- }), this;
1313
- }
1314
- setOptions(e3) {
1315
- return this.defaults = {
1316
- ...this.defaults,
1317
- ...e3
1318
- }, this;
1319
- }
1320
- lexer(e3, l) {
1321
- return b.lex(e3, l ?? this.defaults);
1322
- }
1323
- parser(e3, l) {
1324
- return R.parse(e3, l ?? this.defaults);
1325
- }
1326
- parseMarkdown(e3) {
1327
- return (l, u) => {
1328
- let f = { ...u }, p = {
1329
- ...this.defaults,
1330
- ...f
1331
- }, g = this.onError(!!p.silent, !!p.async);
1332
- if (this.defaults.async === true && f.async === false) return g(/* @__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."));
1333
- if (typeof l > "u" || l === null) return g(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1334
- if (typeof l != "string") return g(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(l) + ", string expected"));
1335
- p.hooks && (p.hooks.options = p, p.hooks.block = e3);
1336
- let x = p.hooks ? p.hooks.provideLexer() : e3 ? b.lex : b.lexInline, T = p.hooks ? p.hooks.provideParser() : e3 ? R.parse : R.parseInline;
1337
- if (p.async) return Promise.resolve(p.hooks ? p.hooks.preprocess(l) : l).then((e4) => x(e4, p)).then((e4) => p.hooks ? p.hooks.processAllTokens(e4) : e4).then((e4) => p.walkTokens ? Promise.all(this.walkTokens(e4, p.walkTokens)).then(() => e4) : e4).then((e4) => T(e4, p)).then((e4) => p.hooks ? p.hooks.postprocess(e4) : e4).catch(g);
1338
- try {
1339
- p.hooks && (l = p.hooks.preprocess(l));
1340
- let e4 = x(l, p);
1341
- p.hooks && (e4 = p.hooks.processAllTokens(e4)), p.walkTokens && this.walkTokens(e4, p.walkTokens);
1342
- let u2 = T(e4, p);
1343
- return p.hooks && (u2 = p.hooks.postprocess(u2)), u2;
1344
- } catch (e4) {
1345
- return g(e4);
1346
- }
1347
- };
1348
- }
1349
- onError(e3, l) {
1350
- return (u) => {
1351
- if (u.message += "\nPlease report this to https://github.com/markedjs/marked.", e3) {
1352
- let e4 = "<p>An error occurred:</p><pre>" + w(u.message + "", true) + "</pre>";
1353
- return l ? Promise.resolve(e4) : e4;
1354
- }
1355
- if (l) return Promise.reject(u);
1356
- throw u;
1357
- };
1358
- }
1359
- }();
1360
- function d(e3, l) {
1361
- return _.parse(e3, l);
1362
- }
1363
- d.options = d.setOptions = function(e3) {
1364
- return _.setOptions(e3), d.defaults = _.defaults, H(d.defaults), d;
1365
- }, d.getDefaults = L, d.defaults = O, d.use = function(...e3) {
1366
- return _.use(...e3), d.defaults = _.defaults, H(d.defaults), d;
1367
- }, d.walkTokens = function(e3, l) {
1368
- return _.walkTokens(e3, l);
1369
- }, d.parseInline = _.parseInline, d.Parser = R, d.parser = R.parse, d.Renderer = P, d.TextRenderer = S, d.Lexer = b, d.lexer = b.lex, d.Tokenizer = y, d.Hooks = $, d.parse = d, d.options, d.setOptions, d.use, d.walkTokens, d.parseInline, R.parse, b.lex;
1370
- export {
1371
- d as n,
1372
- b as t
1373
- };