palettecn 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (460) hide show
  1. package/dist/index.mjs +10 -0
  2. package/dist/web/nitro.json +17 -0
  3. package/dist/web/public/assets/abap-BdvmRIgS.js +1 -0
  4. package/dist/web/public/assets/actionscript-3-et0rQaqm.js +1 -0
  5. package/dist/web/public/assets/ada-DPgrustg.js +1 -0
  6. package/dist/web/public/assets/andromeeda-DJl1yeV_.js +1 -0
  7. package/dist/web/public/assets/angular-html-Dm7s7tSx.js +1 -0
  8. package/dist/web/public/assets/angular-ts-B_ywTULt.js +1 -0
  9. package/dist/web/public/assets/apache-CFpsYX8S.js +1 -0
  10. package/dist/web/public/assets/apex-CN5n6pbI.js +1 -0
  11. package/dist/web/public/assets/apl-Dm11wHHc.js +1 -0
  12. package/dist/web/public/assets/applescript-JrY23hsL.js +1 -0
  13. package/dist/web/public/assets/ara-DR83hn3A.js +1 -0
  14. package/dist/web/public/assets/asciidoc-Dpu9XLB1.js +1 -0
  15. package/dist/web/public/assets/asm-BYI3A31V.js +1 -0
  16. package/dist/web/public/assets/astro-DP1naDCT.js +1 -0
  17. package/dist/web/public/assets/aurora-x-Nav5jnoQ.js +1 -0
  18. package/dist/web/public/assets/awk-BIoTx_w6.js +1 -0
  19. package/dist/web/public/assets/ayu-dark-H5QV5J7K.js +1 -0
  20. package/dist/web/public/assets/ayu-light-BrwTNGnU.js +1 -0
  21. package/dist/web/public/assets/ayu-mirage-Bg6FpF5w.js +1 -0
  22. package/dist/web/public/assets/ballerina-BFvDNd4T.js +1 -0
  23. package/dist/web/public/assets/bat-DtQkx7Ny.js +1 -0
  24. package/dist/web/public/assets/beancount-BIjKALa1.js +1 -0
  25. package/dist/web/public/assets/berry-BPkDN_EZ.js +1 -0
  26. package/dist/web/public/assets/bibtex-Dur2CNW6.js +1 -0
  27. package/dist/web/public/assets/bicep-BMz1bZ7m.js +1 -0
  28. package/dist/web/public/assets/bird2-91rdr9s7.js +1 -0
  29. package/dist/web/public/assets/blade-DD5O596X.js +1 -0
  30. package/dist/web/public/assets/bsl-FmB7U2qd.js +1 -0
  31. package/dist/web/public/assets/bundle-mjs-Bso3xn9x.js +1 -0
  32. package/dist/web/public/assets/c-DqqBLLyl.js +1 -0
  33. package/dist/web/public/assets/c3-CJTbEooS.js +1 -0
  34. package/dist/web/public/assets/cadence-C0GI7BZZ.js +1 -0
  35. package/dist/web/public/assets/cairo-B5JMmIC0.js +1 -0
  36. package/dist/web/public/assets/catppuccin-frappe-D76-cUjK.js +1 -0
  37. package/dist/web/public/assets/catppuccin-latte-DUHNJ_6_.js +1 -0
  38. package/dist/web/public/assets/catppuccin-macchiato-CFhPH2wd.js +1 -0
  39. package/dist/web/public/assets/catppuccin-mocha-BRD0cvUW.js +1 -0
  40. package/dist/web/public/assets/chunk-FRKYWMV7-DUkk3w4h.js +122 -0
  41. package/dist/web/public/assets/clarity-KgUVrNfC.js +1 -0
  42. package/dist/web/public/assets/clojure-BhQuoGIG.js +1 -0
  43. package/dist/web/public/assets/cmake-CA59gUFQ.js +1 -0
  44. package/dist/web/public/assets/cobol-CCFShgGZ.js +1 -0
  45. package/dist/web/public/assets/codeowners-CD36YqjJ.js +1 -0
  46. package/dist/web/public/assets/codeql-CrMosKUt.js +1 -0
  47. package/dist/web/public/assets/coffee-C-Mn3tBT.js +1 -0
  48. package/dist/web/public/assets/common-lisp-DYnOjAFz.js +1 -0
  49. package/dist/web/public/assets/components-DiZ1dSl3.js +77 -0
  50. package/dist/web/public/assets/coq-BaHtq3Qt.js +1 -0
  51. package/dist/web/public/assets/cpp-D8Y73ItU.js +1 -0
  52. package/dist/web/public/assets/crystal-CnXWqbxx.js +1 -0
  53. package/dist/web/public/assets/csharp-D6sghVPa.js +1 -0
  54. package/dist/web/public/assets/css-CUGjdPw_.js +1 -0
  55. package/dist/web/public/assets/csv-DuxyxUAI.js +1 -0
  56. package/dist/web/public/assets/cue-D9NRAX0_.js +1 -0
  57. package/dist/web/public/assets/cypher-HJRdtilF.js +1 -0
  58. package/dist/web/public/assets/d-B4Ont7_X.js +1 -0
  59. package/dist/web/public/assets/dark-plus-DZSBycyp.js +1 -0
  60. package/dist/web/public/assets/dart-Dp4asavE.js +1 -0
  61. package/dist/web/public/assets/dax-DBUubp6S.js +1 -0
  62. package/dist/web/public/assets/desktop-DQ0n6zIQ.js +1 -0
  63. package/dist/web/public/assets/diff-CFHlrffC.js +1 -0
  64. package/dist/web/public/assets/docker-BuefmsF5.js +1 -0
  65. package/dist/web/public/assets/dotenv-BKTsUQ_r.js +1 -0
  66. package/dist/web/public/assets/dracula-MOn9qacs.js +1 -0
  67. package/dist/web/public/assets/dracula-soft-C4r_sC_D.js +1 -0
  68. package/dist/web/public/assets/dream-maker-BNdv5lLS.js +1 -0
  69. package/dist/web/public/assets/edge-C-Mi8Oda.js +1 -0
  70. package/dist/web/public/assets/elixir-CTS5wQtX.js +1 -0
  71. package/dist/web/public/assets/elm-rM310x8D.js +1 -0
  72. package/dist/web/public/assets/emacs-lisp-D9FIGRtM.js +1 -0
  73. package/dist/web/public/assets/erb-oaGjGVGO.js +1 -0
  74. package/dist/web/public/assets/erlang-q4Mkyw3m.js +1 -0
  75. package/dist/web/public/assets/everforest-dark-CNa2QFRn.js +1 -0
  76. package/dist/web/public/assets/everforest-light-DRbUDqJT.js +1 -0
  77. package/dist/web/public/assets/fennel-DpqQTaVZ.js +1 -0
  78. package/dist/web/public/assets/field-1-Ujza0S5j.js +1 -0
  79. package/dist/web/public/assets/fish-hyk5x6Q4.js +1 -0
  80. package/dist/web/public/assets/fluent-DMll-MGX.js +1 -0
  81. package/dist/web/public/assets/fortran-fixed-form-BmdfKovV.js +1 -0
  82. package/dist/web/public/assets/fortran-free-form-MCAifii4.js +1 -0
  83. package/dist/web/public/assets/fsharp-DLlBn9Nl.js +1 -0
  84. package/dist/web/public/assets/gdresource-BzFzBRli.js +1 -0
  85. package/dist/web/public/assets/gdscript-D3R4J0Cv.js +1 -0
  86. package/dist/web/public/assets/gdshader-BAubtqqN.js +1 -0
  87. package/dist/web/public/assets/genie-BnIIX2pC.js +1 -0
  88. package/dist/web/public/assets/gherkin-CL3NUuB1.js +1 -0
  89. package/dist/web/public/assets/git-commit-BYPE8h85.js +1 -0
  90. package/dist/web/public/assets/git-rebase-Bmmgf6eN.js +1 -0
  91. package/dist/web/public/assets/github-dark-default-C6I2oE4c.js +1 -0
  92. package/dist/web/public/assets/github-dark-dimmed-DEqwxg6D.js +1 -0
  93. package/dist/web/public/assets/github-dark-high-contrast-DDt3j0cs.js +1 -0
  94. package/dist/web/public/assets/github-dark-oLN6SDKl.js +1 -0
  95. package/dist/web/public/assets/github-light-DaN-N2Gj.js +1 -0
  96. package/dist/web/public/assets/github-light-default-B3EwMbS7.js +1 -0
  97. package/dist/web/public/assets/github-light-high-contrast-Cl9D0f_e.js +1 -0
  98. package/dist/web/public/assets/gleam-Cvj8QRtQ.js +1 -0
  99. package/dist/web/public/assets/glimmer-js-CahbROb1.js +1 -0
  100. package/dist/web/public/assets/glimmer-ts-JMFYNbot.js +1 -0
  101. package/dist/web/public/assets/global-XWAvxWcA.css +2 -0
  102. package/dist/web/public/assets/glsl-BCuCNM3V.js +1 -0
  103. package/dist/web/public/assets/gn-DxCHSEMl.js +1 -0
  104. package/dist/web/public/assets/gnuplot-CkGXHK7B.js +1 -0
  105. package/dist/web/public/assets/go-B_NLCuTj.js +1 -0
  106. package/dist/web/public/assets/graphql-RXOfHGfI.js +1 -0
  107. package/dist/web/public/assets/groovy-DVge8oRs.js +1 -0
  108. package/dist/web/public/assets/gruvbox-dark-hard-BwZz1yni.js +1 -0
  109. package/dist/web/public/assets/gruvbox-dark-medium-Bqy6jkuO.js +1 -0
  110. package/dist/web/public/assets/gruvbox-dark-soft-DjUvyUfH.js +1 -0
  111. package/dist/web/public/assets/gruvbox-light-hard-BTLmfPdm.js +1 -0
  112. package/dist/web/public/assets/gruvbox-light-medium-DeWqsWs6.js +1 -0
  113. package/dist/web/public/assets/gruvbox-light-soft-BL8ld-1F.js +1 -0
  114. package/dist/web/public/assets/hack-BBQpwyf_.js +1 -0
  115. package/dist/web/public/assets/haml-mWELc9kh.js +1 -0
  116. package/dist/web/public/assets/handlebars-COrUo8cC.js +1 -0
  117. package/dist/web/public/assets/haskell-DRmM8XlQ.js +1 -0
  118. package/dist/web/public/assets/haxe-BEhq8ZEr.js +1 -0
  119. package/dist/web/public/assets/hcl-B5ZIaGS0.js +1 -0
  120. package/dist/web/public/assets/highlighted-body-TPN3WLV5-YJgGFx4e.js +1 -0
  121. package/dist/web/public/assets/hjson-B9uRLqIO.js +1 -0
  122. package/dist/web/public/assets/hlsl-Hv1kKjrS.js +1 -0
  123. package/dist/web/public/assets/horizon-ClXGBjWw.js +1 -0
  124. package/dist/web/public/assets/horizon-bright-CvUCr3ux.js +1 -0
  125. package/dist/web/public/assets/houston-NqkqG60q.js +1 -0
  126. package/dist/web/public/assets/html-cmigv1ou.js +1 -0
  127. package/dist/web/public/assets/html-derivative-B3me0pSu.js +1 -0
  128. package/dist/web/public/assets/http-BojM9cyU.js +1 -0
  129. package/dist/web/public/assets/hurl-BxEmMiGP.js +1 -0
  130. package/dist/web/public/assets/hxml-CoBuVbfs.js +1 -0
  131. package/dist/web/public/assets/hy-CeISYGGU.js +1 -0
  132. package/dist/web/public/assets/imba-xjcDFXUW.js +1 -0
  133. package/dist/web/public/assets/ini-D0ZCSj6e.js +1 -0
  134. package/dist/web/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  135. package/dist/web/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  136. package/dist/web/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  137. package/dist/web/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  138. package/dist/web/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  139. package/dist/web/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  140. package/dist/web/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  141. package/dist/web/public/assets/java-BvheClGI.js +1 -0
  142. package/dist/web/public/assets/javascript-DjlJORDg.js +1 -0
  143. package/dist/web/public/assets/jinja-Bi4sG72X.js +1 -0
  144. package/dist/web/public/assets/jison-BTz5Ik2Y.js +1 -0
  145. package/dist/web/public/assets/json-CiTd40Rg.js +1 -0
  146. package/dist/web/public/assets/json5-FR9EyF7a.js +1 -0
  147. package/dist/web/public/assets/jsonc-CHIeFfsD.js +1 -0
  148. package/dist/web/public/assets/jsonl-B4WQkwTf.js +1 -0
  149. package/dist/web/public/assets/jsonnet-vd-gzGkL.js +1 -0
  150. package/dist/web/public/assets/jssm-C_bj1LkZ.js +1 -0
  151. package/dist/web/public/assets/jsx-Bx-RZMFH.js +1 -0
  152. package/dist/web/public/assets/jsx-runtime-n8k0hwt8.js +1 -0
  153. package/dist/web/public/assets/julia-BKcIfSxk.js +1 -0
  154. package/dist/web/public/assets/just-IkZCagAs.js +1 -0
  155. package/dist/web/public/assets/kanagawa-dragon-B3Cz89vt.js +1 -0
  156. package/dist/web/public/assets/kanagawa-lotus-CRe_W5Ft.js +1 -0
  157. package/dist/web/public/assets/kanagawa-wave-BPqZ5XB7.js +1 -0
  158. package/dist/web/public/assets/kdl-BzL_Ak31.js +1 -0
  159. package/dist/web/public/assets/kotlin-BQQFk6ql.js +1 -0
  160. package/dist/web/public/assets/kusto-vWe6OLKV.js +1 -0
  161. package/dist/web/public/assets/laserwave-CwtvEUcj.js +1 -0
  162. package/dist/web/public/assets/latex-9N90_WFU.js +1 -0
  163. package/dist/web/public/assets/lean-CaqenOqv.js +1 -0
  164. package/dist/web/public/assets/less-CERnPzn6.js +1 -0
  165. package/dist/web/public/assets/light-plus-B9_M_OKq.js +1 -0
  166. package/dist/web/public/assets/liquid-CQLPDP7m.js +1 -0
  167. package/dist/web/public/assets/llvm-BylJXvm7.js +1 -0
  168. package/dist/web/public/assets/log-CBBcNcbO.js +1 -0
  169. package/dist/web/public/assets/logo-r-8Jc8Xk.js +1 -0
  170. package/dist/web/public/assets/lua-BBL6LXKd.js +1 -0
  171. package/dist/web/public/assets/luau-B2g7L-zP.js +1 -0
  172. package/dist/web/public/assets/main-0lKVDR64.css +2 -0
  173. package/dist/web/public/assets/main-CcNf0BOb.js +126 -0
  174. package/dist/web/public/assets/make-DK-HzJ2w.js +1 -0
  175. package/dist/web/public/assets/markdown-FgdsukgR.js +1 -0
  176. package/dist/web/public/assets/marko-CLZwt2N2.js +1 -0
  177. package/dist/web/public/assets/material-theme-DOJ9PS4O.js +1 -0
  178. package/dist/web/public/assets/material-theme-darker-DOurH5jT.js +1 -0
  179. package/dist/web/public/assets/material-theme-lighter-BfPWxCP6.js +1 -0
  180. package/dist/web/public/assets/material-theme-ocean-BcO5PKoq.js +1 -0
  181. package/dist/web/public/assets/material-theme-palenight-ClWQBDDd.js +1 -0
  182. package/dist/web/public/assets/matlab-DwyUVNXd.js +1 -0
  183. package/dist/web/public/assets/mdc-Bo8CRPg4.js +1 -0
  184. package/dist/web/public/assets/mdx-3EBShbsD.js +1 -0
  185. package/dist/web/public/assets/mermaid-ByG2-SLz.js +1 -0
  186. package/dist/web/public/assets/mermaid-O7DHMXV3-COAgR3aM.js +1 -0
  187. package/dist/web/public/assets/min-dark-ClJ2x5pc.js +1 -0
  188. package/dist/web/public/assets/min-light-BsOUz5iE.js +1 -0
  189. package/dist/web/public/assets/mipsasm-BKDtQCf3.js +1 -0
  190. package/dist/web/public/assets/mojo-DmEAK7iv.js +1 -0
  191. package/dist/web/public/assets/monokai-BKc3VADO.js +1 -0
  192. package/dist/web/public/assets/moonbit-Qm8v_cKN.js +1 -0
  193. package/dist/web/public/assets/move-CMectUPk.js +1 -0
  194. package/dist/web/public/assets/narrat-Bdm8NaK8.js +1 -0
  195. package/dist/web/public/assets/nextflow-BpSt05nC.js +1 -0
  196. package/dist/web/public/assets/nextflow-groovy-BZ-bqJ-u.js +1 -0
  197. package/dist/web/public/assets/nginx-ChZL5FWE.js +1 -0
  198. package/dist/web/public/assets/night-owl-CbFc5pXO.js +1 -0
  199. package/dist/web/public/assets/night-owl-light-zYbVCVuz.js +1 -0
  200. package/dist/web/public/assets/nim-5JnPAJWa.js +1 -0
  201. package/dist/web/public/assets/nix-P5P-2qHs.js +1 -0
  202. package/dist/web/public/assets/nord-C7hKGudV.js +1 -0
  203. package/dist/web/public/assets/nushell-DKPnC5RG.js +1 -0
  204. package/dist/web/public/assets/objective-c-BPwXtM0v.js +1 -0
  205. package/dist/web/public/assets/objective-cpp-CWYEdWNG.js +1 -0
  206. package/dist/web/public/assets/ocaml-CL7OJ02v.js +1 -0
  207. package/dist/web/public/assets/odin-Dtay25eA.js +1 -0
  208. package/dist/web/public/assets/one-dark-pro-CrdFNNwF.js +1 -0
  209. package/dist/web/public/assets/one-light-BUiz8X4B.js +1 -0
  210. package/dist/web/public/assets/openscad-WD4sXUUp.js +1 -0
  211. package/dist/web/public/assets/pascal-A6-MZnZ8.js +1 -0
  212. package/dist/web/public/assets/perl-Yq3AfnVV.js +1 -0
  213. package/dist/web/public/assets/php-CCj0foPx.js +1 -0
  214. package/dist/web/public/assets/pkl-cmPbg8fI.js +1 -0
  215. package/dist/web/public/assets/plastic-DtQ_LnDB.js +1 -0
  216. package/dist/web/public/assets/plsql-DwmuVd7q.js +1 -0
  217. package/dist/web/public/assets/po-CkVxkZaj.js +1 -0
  218. package/dist/web/public/assets/poimandres-Dt0xZuaa.js +1 -0
  219. package/dist/web/public/assets/polar-hStNz_W2.js +1 -0
  220. package/dist/web/public/assets/postcss-ZIk0AQ7M.js +1 -0
  221. package/dist/web/public/assets/powerquery-D0gqoHHD.js +1 -0
  222. package/dist/web/public/assets/powershell-DXB5HoVh.js +1 -0
  223. package/dist/web/public/assets/prisma-DmTrfxC0.js +1 -0
  224. package/dist/web/public/assets/prolog-CdoyriEj.js +1 -0
  225. package/dist/web/public/assets/proto-4MrN11dS.js +1 -0
  226. package/dist/web/public/assets/pug-svYJKDOQ.js +1 -0
  227. package/dist/web/public/assets/puppet-MEaLGpAP.js +1 -0
  228. package/dist/web/public/assets/purescript-CPxCorqB.js +1 -0
  229. package/dist/web/public/assets/python-f4fp5z0z.js +1 -0
  230. package/dist/web/public/assets/qml-BzEtWdqI.js +1 -0
  231. package/dist/web/public/assets/qmldir-DCjSceJ_.js +1 -0
  232. package/dist/web/public/assets/qss-BdM02NUc.js +1 -0
  233. package/dist/web/public/assets/r-luosIeJH.js +1 -0
  234. package/dist/web/public/assets/racket-D2tfa8Zc.js +1 -0
  235. package/dist/web/public/assets/raku-KeGPJVZg.js +1 -0
  236. package/dist/web/public/assets/razor-Bokxs4Qx.js +1 -0
  237. package/dist/web/public/assets/red-C0qZ-1lN.js +1 -0
  238. package/dist/web/public/assets/reg-DdnswvOj.js +1 -0
  239. package/dist/web/public/assets/regexp-CYC8h6V9.js +1 -0
  240. package/dist/web/public/assets/rel-RhzEfSRc.js +1 -0
  241. package/dist/web/public/assets/riscv-dS5TzX10.js +1 -0
  242. package/dist/web/public/assets/ron-CQjQSCVp.js +1 -0
  243. package/dist/web/public/assets/rose-pine-C89ViLdr.js +1 -0
  244. package/dist/web/public/assets/rose-pine-dawn-Dq2gf0yi.js +1 -0
  245. package/dist/web/public/assets/rose-pine-moon-CBDvXVs_.js +1 -0
  246. package/dist/web/public/assets/rosmsg-nvjuSIGu.js +1 -0
  247. package/dist/web/public/assets/routes-BXqJCOpL.js +542 -0
  248. package/dist/web/public/assets/rst-1xwvVGf7.js +1 -0
  249. package/dist/web/public/assets/ruby-Blad-eDx.js +1 -0
  250. package/dist/web/public/assets/rust-rV8q_xyI.js +1 -0
  251. package/dist/web/public/assets/sas-DUPWtptg.js +1 -0
  252. package/dist/web/public/assets/sass-CuxdoNN0.js +1 -0
  253. package/dist/web/public/assets/scala-Df4L7N3R.js +1 -0
  254. package/dist/web/public/assets/scheme-DalRmAPH.js +1 -0
  255. package/dist/web/public/assets/scss-CYQ8LEwP.js +1 -0
  256. package/dist/web/public/assets/sdbl-B_TmFnGf.js +1 -0
  257. package/dist/web/public/assets/shaderlab-DYEMDY3e.js +1 -0
  258. package/dist/web/public/assets/shellscript-DjKZ34ac.js +1 -0
  259. package/dist/web/public/assets/shellsession-C3kcnBnh.js +1 -0
  260. package/dist/web/public/assets/slack-dark-ak_jOeLl.js +1 -0
  261. package/dist/web/public/assets/slack-ochin-ByiYhLwu.js +1 -0
  262. package/dist/web/public/assets/smalltalk-DTTnjjZJ.js +1 -0
  263. package/dist/web/public/assets/snazzy-light-BBRYeY60.js +1 -0
  264. package/dist/web/public/assets/solarized-dark-BtoLnWkw.js +1 -0
  265. package/dist/web/public/assets/solarized-light-CtzUA7GI.js +1 -0
  266. package/dist/web/public/assets/solidity-CSIHEQ2t.js +1 -0
  267. package/dist/web/public/assets/soy-BN0uzUAI.js +1 -0
  268. package/dist/web/public/assets/sparql-B6k9tA6Q.js +1 -0
  269. package/dist/web/public/assets/splunk-DkRzN7V_.js +1 -0
  270. package/dist/web/public/assets/sql-Bx-WX28V.js +1 -0
  271. package/dist/web/public/assets/ssh-config-Bqp7ng33.js +1 -0
  272. package/dist/web/public/assets/stata-HAj7doU8.js +1 -0
  273. package/dist/web/public/assets/stylus-CdbCxDLX.js +1 -0
  274. package/dist/web/public/assets/surrealql-BkGf0I3k.js +1 -0
  275. package/dist/web/public/assets/svelte-DtWg6ssL.js +1 -0
  276. package/dist/web/public/assets/swift-yRu2dtgr.js +1 -0
  277. package/dist/web/public/assets/synthwave-84-2WIu6MHX.js +1 -0
  278. package/dist/web/public/assets/system-verilog-GUE_oP1V.js +1 -0
  279. package/dist/web/public/assets/systemd-FLIJAQZV.js +1 -0
  280. package/dist/web/public/assets/talonscript-DTR-8ILs.js +1 -0
  281. package/dist/web/public/assets/tasl-WHNWP-1F.js +1 -0
  282. package/dist/web/public/assets/tcl-BaBXNNp6.js +1 -0
  283. package/dist/web/public/assets/templ-Dc9vj00n.js +1 -0
  284. package/dist/web/public/assets/terraform-uJUFpr8t.js +1 -0
  285. package/dist/web/public/assets/tex-DA3dAz55.js +1 -0
  286. package/dist/web/public/assets/tokyo-night-BbogFqAr.js +1 -0
  287. package/dist/web/public/assets/toml-CyR4Gqq1.js +1 -0
  288. package/dist/web/public/assets/ts-tags-BD1j21LH.js +1 -0
  289. package/dist/web/public/assets/tsv-COLVYI6A.js +1 -0
  290. package/dist/web/public/assets/tsx-CFm2E6uK.js +1 -0
  291. package/dist/web/public/assets/turtle-PQwt4gkb.js +1 -0
  292. package/dist/web/public/assets/twig-DrUXy85s.js +1 -0
  293. package/dist/web/public/assets/typescript-Dy-5sXFx.js +1 -0
  294. package/dist/web/public/assets/typespec-Bb7qHV0g.js +1 -0
  295. package/dist/web/public/assets/typst-Bj_JElGz.js +1 -0
  296. package/dist/web/public/assets/v-BTkrtik4.js +1 -0
  297. package/dist/web/public/assets/vala-AXT1CI9v.js +1 -0
  298. package/dist/web/public/assets/vb-DzTKUgW8.js +1 -0
  299. package/dist/web/public/assets/verilog-aI3j5Xj8.js +1 -0
  300. package/dist/web/public/assets/vesper-BmnwIC_B.js +1 -0
  301. package/dist/web/public/assets/vhdl-4IgBB7vO.js +1 -0
  302. package/dist/web/public/assets/viml-D_XMKSR6.js +1 -0
  303. package/dist/web/public/assets/vitesse-black-DhmxIXiA.js +1 -0
  304. package/dist/web/public/assets/vitesse-dark-dvEH_9qt.js +1 -0
  305. package/dist/web/public/assets/vitesse-light-Ca0W2L1O.js +1 -0
  306. package/dist/web/public/assets/vue-DC_yTvy2.js +1 -0
  307. package/dist/web/public/assets/vue-html-Bp8x4gdt.js +1 -0
  308. package/dist/web/public/assets/vue-vine-ZcUkuUUp.js +1 -0
  309. package/dist/web/public/assets/vyper-Dz2f7-FK.js +1 -0
  310. package/dist/web/public/assets/wasm-CuXPCj65.js +1 -0
  311. package/dist/web/public/assets/wasm-DHkXUMsP.js +1 -0
  312. package/dist/web/public/assets/wenyan-BRAtM0Iv.js +1 -0
  313. package/dist/web/public/assets/wgsl-CMpn9jTa.js +1 -0
  314. package/dist/web/public/assets/wikitext-DRmBVmVA.js +1 -0
  315. package/dist/web/public/assets/wit-Drp_HLqJ.js +1 -0
  316. package/dist/web/public/assets/wolfram-C33umj7M.js +1 -0
  317. package/dist/web/public/assets/xml-BHoOtGbO.js +1 -0
  318. package/dist/web/public/assets/xsl-CN1PlFqm.js +1 -0
  319. package/dist/web/public/assets/yaml-DT0mpn8u.js +1 -0
  320. package/dist/web/public/assets/zenscript-BlYQ_Frf.js +1 -0
  321. package/dist/web/public/assets/zig-Buk7I0y-.js +1 -0
  322. package/dist/web/server/_chunks/ssr-renderer.mjs +15 -0
  323. package/dist/web/server/_libs/@ai-sdk/anthropic+[...].mjs +14021 -0
  324. package/dist/web/server/_libs/@ai-sdk/moonshotai+[...].mjs +898 -0
  325. package/dist/web/server/_libs/@ai-sdk/react+[...].mjs +8969 -0
  326. package/dist/web/server/_libs/@emotion/is-prop-valid+[...].mjs +34 -0
  327. package/dist/web/server/_libs/@floating-ui/core+[...].mjs +698 -0
  328. package/dist/web/server/_libs/@floating-ui/dom+[...].mjs +644 -0
  329. package/dist/web/server/_libs/@floating-ui/react-dom+[...].mjs +475 -0
  330. package/dist/web/server/_libs/@lobehub/icons+[...].mjs +3079 -0
  331. package/dist/web/server/_libs/@radix-ui/react-arrow+[...].mjs +184 -0
  332. package/dist/web/server/_libs/@radix-ui/react-collapsible+[...].mjs +374 -0
  333. package/dist/web/server/_libs/@radix-ui/react-dialog+[...].mjs +1503 -0
  334. package/dist/web/server/_libs/@radix-ui/react-menu+[...].mjs +1236 -0
  335. package/dist/web/server/_libs/@radix-ui/react-select+[...].mjs +1007 -0
  336. package/dist/web/server/_libs/@shikijs/core+[...].mjs +9017 -0
  337. package/dist/web/server/_libs/@shikijs/engine-javascript+[...].mjs +3159 -0
  338. package/dist/web/server/_libs/@streamdown/math+[...].mjs +37559 -0
  339. package/dist/web/server/_libs/@tanstack/react-router+[...].mjs +14074 -0
  340. package/dist/web/server/_libs/_.mjs +3 -0
  341. package/dist/web/server/_libs/_2.mjs +3 -0
  342. package/dist/web/server/_libs/_3.mjs +2 -0
  343. package/dist/web/server/_libs/_4.mjs +2 -0
  344. package/dist/web/server/_libs/ai-sdk__gateway+vercel__oidc.mjs +1255 -0
  345. package/dist/web/server/_libs/ai-sdk__google.mjs +1630 -0
  346. package/dist/web/server/_libs/ai-sdk__openai+zod.mjs +4951 -0
  347. package/dist/web/server/_libs/ai-sdk__provider-utils.mjs +411 -0
  348. package/dist/web/server/_libs/ai-sdk__provider.mjs +222 -0
  349. package/dist/web/server/_libs/bail.mjs +13 -0
  350. package/dist/web/server/_libs/character-entities.mjs +2135 -0
  351. package/dist/web/server/_libs/class-variance-authority+clsx.mjs +69 -0
  352. package/dist/web/server/_libs/color+[...].mjs +2185 -0
  353. package/dist/web/server/_libs/copy-text-to-clipboard.mjs +40 -0
  354. package/dist/web/server/_libs/d3-array.mjs +231 -0
  355. package/dist/web/server/_libs/d3-color.mjs +330 -0
  356. package/dist/web/server/_libs/d3-format.mjs +252 -0
  357. package/dist/web/server/_libs/d3-interpolate.mjs +207 -0
  358. package/dist/web/server/_libs/d3-path.mjs +77 -0
  359. package/dist/web/server/_libs/d3-scale+[...].mjs +1907 -0
  360. package/dist/web/server/_libs/d3-shape.mjs +818 -0
  361. package/dist/web/server/_libs/date-fns.mjs +3012 -0
  362. package/dist/web/server/_libs/date-fns__tz.mjs +249 -0
  363. package/dist/web/server/_libs/decimal.js-light.mjs +884 -0
  364. package/dist/web/server/_libs/decode-named-character-reference+[...].mjs +19 -0
  365. package/dist/web/server/_libs/dexie.mjs +3745 -0
  366. package/dist/web/server/_libs/escape-string-regexp.mjs +7 -0
  367. package/dist/web/server/_libs/estree-util-is-identifier-name.mjs +20 -0
  368. package/dist/web/server/_libs/eventemitter3.mjs +237 -0
  369. package/dist/web/server/_libs/extend.mjs +75 -0
  370. package/dist/web/server/_libs/fast-equals.mjs +423 -0
  371. package/dist/web/server/_libs/framer-motion+[...].mjs +9573 -0
  372. package/dist/web/server/_libs/fuzzysort.mjs +621 -0
  373. package/dist/web/server/_libs/h3+rou3+srvx.mjs +1158 -0
  374. package/dist/web/server/_libs/hast-util-raw+[...].mjs +800 -0
  375. package/dist/web/server/_libs/hast-util-sanitize.mjs +780 -0
  376. package/dist/web/server/_libs/hast-util-to-jsx-runtime+[...].mjs +853 -0
  377. package/dist/web/server/_libs/hookable.mjs +41 -0
  378. package/dist/web/server/_libs/html-url-attributes.mjs +44 -0
  379. package/dist/web/server/_libs/is-plain-obj.mjs +8 -0
  380. package/dist/web/server/_libs/lodash.mjs +4532 -0
  381. package/dist/web/server/_libs/lucide-react.mjs +605 -0
  382. package/dist/web/server/_libs/markdown-table.mjs +289 -0
  383. package/dist/web/server/_libs/marked.mjs +1511 -0
  384. package/dist/web/server/_libs/mdast-util-find-and-replace.mjs +198 -0
  385. package/dist/web/server/_libs/mdast-util-from-markdown+[...].mjs +8121 -0
  386. package/dist/web/server/_libs/mdast-util-gfm+[...].mjs +2060 -0
  387. package/dist/web/server/_libs/mdast-util-to-hast+[...].mjs +1770 -0
  388. package/dist/web/server/_libs/micromark-extension-gfm+[...].mjs +2235 -0
  389. package/dist/web/server/_libs/nanoid.mjs +26 -0
  390. package/dist/web/server/_libs/next-themes.mjs +124 -0
  391. package/dist/web/server/_libs/prop-types.mjs +69 -0
  392. package/dist/web/server/_libs/radix-ui__number.mjs +6 -0
  393. package/dist/web/server/_libs/radix-ui__primitive.mjs +9 -0
  394. package/dist/web/server/_libs/radix-ui__react-collection.mjs +80 -0
  395. package/dist/web/server/_libs/radix-ui__react-direction.mjs +11 -0
  396. package/dist/web/server/_libs/radix-ui__react-label.mjs +23 -0
  397. package/dist/web/server/_libs/radix-ui__react-menubar.mjs +400 -0
  398. package/dist/web/server/_libs/radix-ui__react-popover.mjs +251 -0
  399. package/dist/web/server/_libs/radix-ui__react-progress.mjs +81 -0
  400. package/dist/web/server/_libs/radix-ui__react-scroll-area.mjs +669 -0
  401. package/dist/web/server/_libs/radix-ui__react-separator.mjs +32 -0
  402. package/dist/web/server/_libs/radix-ui__react-slider.mjs +464 -0
  403. package/dist/web/server/_libs/radix-ui__react-switch.mjs +120 -0
  404. package/dist/web/server/_libs/radix-ui__react-tabs.mjs +145 -0
  405. package/dist/web/server/_libs/radix-ui__react-tooltip.mjs +494 -0
  406. package/dist/web/server/_libs/react-day-picker.mjs +3510 -0
  407. package/dist/web/server/_libs/react-is.mjs +48 -0
  408. package/dist/web/server/_libs/react-resizable-panels.mjs +1517 -0
  409. package/dist/web/server/_libs/react-smooth.mjs +1024 -0
  410. package/dist/web/server/_libs/recharts+[...].mjs +12998 -0
  411. package/dist/web/server/_libs/rehype-harden.mjs +210 -0
  412. package/dist/web/server/_libs/rehype-raw.mjs +37 -0
  413. package/dist/web/server/_libs/rehype-sanitize.mjs +27 -0
  414. package/dist/web/server/_libs/remark-gfm.mjs +34 -0
  415. package/dist/web/server/_libs/remark-parse.mjs +37 -0
  416. package/dist/web/server/_libs/remark-rehype.mjs +169 -0
  417. package/dist/web/server/_libs/remend.mjs +544 -0
  418. package/dist/web/server/_libs/scule.mjs +55 -0
  419. package/dist/web/server/_libs/shiki+streamdown__code.mjs +1748 -0
  420. package/dist/web/server/_libs/shiki.mjs +16 -0
  421. package/dist/web/server/_libs/shikijs__engine-oniguruma.mjs +387 -0
  422. package/dist/web/server/_libs/shikijs__langs.mjs +1357 -0
  423. package/dist/web/server/_libs/shikijs__themes.mjs +268 -0
  424. package/dist/web/server/_libs/sonner.mjs +909 -0
  425. package/dist/web/server/_libs/streamdown+[...].mjs +5842 -0
  426. package/dist/web/server/_libs/tanstack__history.mjs +342 -0
  427. package/dist/web/server/_libs/tanstack__query-core.mjs +2073 -0
  428. package/dist/web/server/_libs/tanstack__react-query.mjs +146 -0
  429. package/dist/web/server/_libs/tanstack__router-core.mjs +6 -0
  430. package/dist/web/server/_libs/tanstack__zod-adapter.mjs +16 -0
  431. package/dist/web/server/_libs/ufo.mjs +64 -0
  432. package/dist/web/server/_libs/ungap__structured-clone.mjs +197 -0
  433. package/dist/web/server/_libs/use-stick-to-bottom.mjs +410 -0
  434. package/dist/web/server/_libs/vercel__oidc.mjs +393 -0
  435. package/dist/web/server/_libs/zhipu-ai-provider.mjs +13483 -0
  436. package/dist/web/server/_libs/zustand.mjs +48 -0
  437. package/dist/web/server/_runtime.mjs +35 -0
  438. package/dist/web/server/_ssr/components-BzCiScpA.mjs +1452 -0
  439. package/dist/web/server/_ssr/dist-3Mu7PF0n.mjs +137 -0
  440. package/dist/web/server/_ssr/dist-BRaLXgxZ.mjs +17 -0
  441. package/dist/web/server/_ssr/field-1-agM60DBf.mjs +167 -0
  442. package/dist/web/server/_ssr/get-providers-BoYkp0Of.mjs +40 -0
  443. package/dist/web/server/_ssr/initialize-provider-B6W8V5Eg.mjs +19 -0
  444. package/dist/web/server/_ssr/model-list-CDFjdz2P.mjs +60 -0
  445. package/dist/web/server/_ssr/router-BmmOCtJZ.mjs +168 -0
  446. package/dist/web/server/_ssr/routes-CvlpZK4Q.mjs +2630 -0
  447. package/dist/web/server/_ssr/schemas-DsZ5O3zp.mjs +67 -0
  448. package/dist/web/server/_ssr/send-message-DUT1vRvx.mjs +135 -0
  449. package/dist/web/server/_ssr/ssr.mjs +5253 -0
  450. package/dist/web/server/_ssr/start-rewezkfD.mjs +4 -0
  451. package/dist/web/server/_ssr/submit-key-CcCv6-yy.mjs +62 -0
  452. package/dist/web/server/_ssr/suggestions-B0Uc3p7F.mjs +38 -0
  453. package/dist/web/server/_ssr/use-providers-Bwqg2U3N.mjs +1554 -0
  454. package/dist/web/server/_tanstack-start-manifest_v-BMIvh4y6.mjs +60 -0
  455. package/dist/web/server/index.mjs +2531 -0
  456. package/dist/web/server/node_modules/tslib/modules/index.js +70 -0
  457. package/dist/web/server/node_modules/tslib/modules/package.json +3 -0
  458. package/dist/web/server/node_modules/tslib/package.json +47 -0
  459. package/dist/web/server/node_modules/tslib/tslib.js +484 -0
  460. package/package.json +32 -0
@@ -0,0 +1,2060 @@
1
+ import { u as ccount } from "./@shikijs/core+[...].mjs";
2
+ import { E as visit, h as unicodeWhitespace, k as convert, m as unicodePunctuation, r as longestStreak } from "./@streamdown/math+[...].mjs";
3
+ import { t as findAndReplace } from "./mdast-util-find-and-replace.mjs";
4
+ import { a as classifyCharacter, i as toString, o as normalizeIdentifier } from "./mdast-util-from-markdown+[...].mjs";
5
+ import { t as markdownTable } from "./markdown-table.mjs";
6
+ //#region ../../node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js
7
+ /**
8
+ * @import {RegExpMatchObject, ReplaceFunction} from 'mdast-util-find-and-replace'
9
+ * @import {CompileContext, Extension as FromMarkdownExtension, Handle as FromMarkdownHandle, Transform as FromMarkdownTransform} from 'mdast-util-from-markdown'
10
+ * @import {ConstructName, Options as ToMarkdownExtension} from 'mdast-util-to-markdown'
11
+ * @import {Link, PhrasingContent} from 'mdast'
12
+ */
13
+ /** @type {ConstructName} */
14
+ var inConstruct = "phrasing";
15
+ /** @type {Array<ConstructName>} */
16
+ var notInConstruct = [
17
+ "autolink",
18
+ "link",
19
+ "image",
20
+ "label"
21
+ ];
22
+ /**
23
+ * Create an extension for `mdast-util-from-markdown` to enable GFM autolink
24
+ * literals in markdown.
25
+ *
26
+ * @returns {FromMarkdownExtension}
27
+ * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.
28
+ */
29
+ function gfmAutolinkLiteralFromMarkdown() {
30
+ return {
31
+ transforms: [transformGfmAutolinkLiterals],
32
+ enter: {
33
+ literalAutolink: enterLiteralAutolink,
34
+ literalAutolinkEmail: enterLiteralAutolinkValue,
35
+ literalAutolinkHttp: enterLiteralAutolinkValue,
36
+ literalAutolinkWww: enterLiteralAutolinkValue
37
+ },
38
+ exit: {
39
+ literalAutolink: exitLiteralAutolink,
40
+ literalAutolinkEmail: exitLiteralAutolinkEmail,
41
+ literalAutolinkHttp: exitLiteralAutolinkHttp,
42
+ literalAutolinkWww: exitLiteralAutolinkWww
43
+ }
44
+ };
45
+ }
46
+ /**
47
+ * Create an extension for `mdast-util-to-markdown` to enable GFM autolink
48
+ * literals in markdown.
49
+ *
50
+ * @returns {ToMarkdownExtension}
51
+ * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.
52
+ */
53
+ function gfmAutolinkLiteralToMarkdown() {
54
+ return { unsafe: [
55
+ {
56
+ character: "@",
57
+ before: "[+\\-.\\w]",
58
+ after: "[\\-.\\w]",
59
+ inConstruct,
60
+ notInConstruct
61
+ },
62
+ {
63
+ character: ".",
64
+ before: "[Ww]",
65
+ after: "[\\-.\\w]",
66
+ inConstruct,
67
+ notInConstruct
68
+ },
69
+ {
70
+ character: ":",
71
+ before: "[ps]",
72
+ after: "\\/",
73
+ inConstruct,
74
+ notInConstruct
75
+ }
76
+ ] };
77
+ }
78
+ /**
79
+ * @this {CompileContext}
80
+ * @type {FromMarkdownHandle}
81
+ */
82
+ function enterLiteralAutolink(token) {
83
+ this.enter({
84
+ type: "link",
85
+ title: null,
86
+ url: "",
87
+ children: []
88
+ }, token);
89
+ }
90
+ /**
91
+ * @this {CompileContext}
92
+ * @type {FromMarkdownHandle}
93
+ */
94
+ function enterLiteralAutolinkValue(token) {
95
+ this.config.enter.autolinkProtocol.call(this, token);
96
+ }
97
+ /**
98
+ * @this {CompileContext}
99
+ * @type {FromMarkdownHandle}
100
+ */
101
+ function exitLiteralAutolinkHttp(token) {
102
+ this.config.exit.autolinkProtocol.call(this, token);
103
+ }
104
+ /**
105
+ * @this {CompileContext}
106
+ * @type {FromMarkdownHandle}
107
+ */
108
+ function exitLiteralAutolinkWww(token) {
109
+ this.config.exit.data.call(this, token);
110
+ const node = this.stack[this.stack.length - 1];
111
+ node.type;
112
+ node.url = "http://" + this.sliceSerialize(token);
113
+ }
114
+ /**
115
+ * @this {CompileContext}
116
+ * @type {FromMarkdownHandle}
117
+ */
118
+ function exitLiteralAutolinkEmail(token) {
119
+ this.config.exit.autolinkEmail.call(this, token);
120
+ }
121
+ /**
122
+ * @this {CompileContext}
123
+ * @type {FromMarkdownHandle}
124
+ */
125
+ function exitLiteralAutolink(token) {
126
+ this.exit(token);
127
+ }
128
+ /** @type {FromMarkdownTransform} */
129
+ function transformGfmAutolinkLiterals(tree) {
130
+ findAndReplace(tree, [[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, findUrl], [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, findEmail]], { ignore: ["link", "linkReference"] });
131
+ }
132
+ /**
133
+ * @type {ReplaceFunction}
134
+ * @param {string} _
135
+ * @param {string} protocol
136
+ * @param {string} domain
137
+ * @param {string} path
138
+ * @param {RegExpMatchObject} match
139
+ * @returns {Array<PhrasingContent> | Link | false}
140
+ */
141
+ function findUrl(_, protocol, domain, path, match) {
142
+ let prefix = "";
143
+ if (!previous(match)) return false;
144
+ if (/^w/i.test(protocol)) {
145
+ domain = protocol + domain;
146
+ protocol = "";
147
+ prefix = "http://";
148
+ }
149
+ if (!isCorrectDomain(domain)) return false;
150
+ const parts = splitUrl(domain + path);
151
+ if (!parts[0]) return false;
152
+ /** @type {Link} */
153
+ const result = {
154
+ type: "link",
155
+ title: null,
156
+ url: prefix + protocol + parts[0],
157
+ children: [{
158
+ type: "text",
159
+ value: protocol + parts[0]
160
+ }]
161
+ };
162
+ if (parts[1]) return [result, {
163
+ type: "text",
164
+ value: parts[1]
165
+ }];
166
+ return result;
167
+ }
168
+ /**
169
+ * @type {ReplaceFunction}
170
+ * @param {string} _
171
+ * @param {string} atext
172
+ * @param {string} label
173
+ * @param {RegExpMatchObject} match
174
+ * @returns {Link | false}
175
+ */
176
+ function findEmail(_, atext, label, match) {
177
+ if (!previous(match, true) || /[-\d_]$/.test(label)) return false;
178
+ return {
179
+ type: "link",
180
+ title: null,
181
+ url: "mailto:" + atext + "@" + label,
182
+ children: [{
183
+ type: "text",
184
+ value: atext + "@" + label
185
+ }]
186
+ };
187
+ }
188
+ /**
189
+ * @param {string} domain
190
+ * @returns {boolean}
191
+ */
192
+ function isCorrectDomain(domain) {
193
+ const parts = domain.split(".");
194
+ if (parts.length < 2 || parts[parts.length - 1] && (/_/.test(parts[parts.length - 1]) || !/[a-zA-Z\d]/.test(parts[parts.length - 1])) || parts[parts.length - 2] && (/_/.test(parts[parts.length - 2]) || !/[a-zA-Z\d]/.test(parts[parts.length - 2]))) return false;
195
+ return true;
196
+ }
197
+ /**
198
+ * @param {string} url
199
+ * @returns {[string, string | undefined]}
200
+ */
201
+ function splitUrl(url) {
202
+ const trailExec = /[!"&'),.:;<>?\]}]+$/.exec(url);
203
+ if (!trailExec) return [url, void 0];
204
+ url = url.slice(0, trailExec.index);
205
+ let trail = trailExec[0];
206
+ let closingParenIndex = trail.indexOf(")");
207
+ const openingParens = ccount(url, "(");
208
+ let closingParens = ccount(url, ")");
209
+ while (closingParenIndex !== -1 && openingParens > closingParens) {
210
+ url += trail.slice(0, closingParenIndex + 1);
211
+ trail = trail.slice(closingParenIndex + 1);
212
+ closingParenIndex = trail.indexOf(")");
213
+ closingParens++;
214
+ }
215
+ return [url, trail];
216
+ }
217
+ /**
218
+ * @param {RegExpMatchObject} match
219
+ * @param {boolean | null | undefined} [email=false]
220
+ * @returns {boolean}
221
+ */
222
+ function previous(match, email) {
223
+ const code = match.input.charCodeAt(match.index - 1);
224
+ return (match.index === 0 || unicodeWhitespace(code) || unicodePunctuation(code)) && (!email || code !== 47);
225
+ }
226
+ //#endregion
227
+ //#region ../../node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js
228
+ /**
229
+ * @import {
230
+ * CompileContext,
231
+ * Extension as FromMarkdownExtension,
232
+ * Handle as FromMarkdownHandle
233
+ * } from 'mdast-util-from-markdown'
234
+ * @import {ToMarkdownOptions} from 'mdast-util-gfm-footnote'
235
+ * @import {
236
+ * Handle as ToMarkdownHandle,
237
+ * Map,
238
+ * Options as ToMarkdownExtension
239
+ * } from 'mdast-util-to-markdown'
240
+ * @import {FootnoteDefinition, FootnoteReference} from 'mdast'
241
+ */
242
+ footnoteReference.peek = footnoteReferencePeek;
243
+ /**
244
+ * @this {CompileContext}
245
+ * @type {FromMarkdownHandle}
246
+ */
247
+ function enterFootnoteCallString() {
248
+ this.buffer();
249
+ }
250
+ /**
251
+ * @this {CompileContext}
252
+ * @type {FromMarkdownHandle}
253
+ */
254
+ function enterFootnoteCall(token) {
255
+ this.enter({
256
+ type: "footnoteReference",
257
+ identifier: "",
258
+ label: ""
259
+ }, token);
260
+ }
261
+ /**
262
+ * @this {CompileContext}
263
+ * @type {FromMarkdownHandle}
264
+ */
265
+ function enterFootnoteDefinitionLabelString() {
266
+ this.buffer();
267
+ }
268
+ /**
269
+ * @this {CompileContext}
270
+ * @type {FromMarkdownHandle}
271
+ */
272
+ function enterFootnoteDefinition(token) {
273
+ this.enter({
274
+ type: "footnoteDefinition",
275
+ identifier: "",
276
+ label: "",
277
+ children: []
278
+ }, token);
279
+ }
280
+ /**
281
+ * @this {CompileContext}
282
+ * @type {FromMarkdownHandle}
283
+ */
284
+ function exitFootnoteCallString(token) {
285
+ const label = this.resume();
286
+ const node = this.stack[this.stack.length - 1];
287
+ node.type;
288
+ node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
289
+ node.label = label;
290
+ }
291
+ /**
292
+ * @this {CompileContext}
293
+ * @type {FromMarkdownHandle}
294
+ */
295
+ function exitFootnoteCall(token) {
296
+ this.exit(token);
297
+ }
298
+ /**
299
+ * @this {CompileContext}
300
+ * @type {FromMarkdownHandle}
301
+ */
302
+ function exitFootnoteDefinitionLabelString(token) {
303
+ const label = this.resume();
304
+ const node = this.stack[this.stack.length - 1];
305
+ node.type;
306
+ node.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
307
+ node.label = label;
308
+ }
309
+ /**
310
+ * @this {CompileContext}
311
+ * @type {FromMarkdownHandle}
312
+ */
313
+ function exitFootnoteDefinition(token) {
314
+ this.exit(token);
315
+ }
316
+ /** @type {ToMarkdownHandle} */
317
+ function footnoteReferencePeek() {
318
+ return "[";
319
+ }
320
+ /**
321
+ * @type {ToMarkdownHandle}
322
+ * @param {FootnoteReference} node
323
+ */
324
+ function footnoteReference(node, _, state, info) {
325
+ const tracker = state.createTracker(info);
326
+ let value = tracker.move("[^");
327
+ const exit = state.enter("footnoteReference");
328
+ const subexit = state.enter("reference");
329
+ value += tracker.move(state.safe(state.associationId(node), {
330
+ after: "]",
331
+ before: value
332
+ }));
333
+ subexit();
334
+ exit();
335
+ value += tracker.move("]");
336
+ return value;
337
+ }
338
+ /**
339
+ * Create an extension for `mdast-util-from-markdown` to enable GFM footnotes
340
+ * in markdown.
341
+ *
342
+ * @returns {FromMarkdownExtension}
343
+ * Extension for `mdast-util-from-markdown`.
344
+ */
345
+ function gfmFootnoteFromMarkdown() {
346
+ return {
347
+ enter: {
348
+ gfmFootnoteCallString: enterFootnoteCallString,
349
+ gfmFootnoteCall: enterFootnoteCall,
350
+ gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,
351
+ gfmFootnoteDefinition: enterFootnoteDefinition
352
+ },
353
+ exit: {
354
+ gfmFootnoteCallString: exitFootnoteCallString,
355
+ gfmFootnoteCall: exitFootnoteCall,
356
+ gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,
357
+ gfmFootnoteDefinition: exitFootnoteDefinition
358
+ }
359
+ };
360
+ }
361
+ /**
362
+ * Create an extension for `mdast-util-to-markdown` to enable GFM footnotes
363
+ * in markdown.
364
+ *
365
+ * @param {ToMarkdownOptions | null | undefined} [options]
366
+ * Configuration (optional).
367
+ * @returns {ToMarkdownExtension}
368
+ * Extension for `mdast-util-to-markdown`.
369
+ */
370
+ function gfmFootnoteToMarkdown(options) {
371
+ let firstLineBlank = false;
372
+ if (options && options.firstLineBlank) firstLineBlank = true;
373
+ return {
374
+ handlers: {
375
+ footnoteDefinition,
376
+ footnoteReference
377
+ },
378
+ unsafe: [{
379
+ character: "[",
380
+ inConstruct: [
381
+ "label",
382
+ "phrasing",
383
+ "reference"
384
+ ]
385
+ }]
386
+ };
387
+ /**
388
+ * @type {ToMarkdownHandle}
389
+ * @param {FootnoteDefinition} node
390
+ */
391
+ function footnoteDefinition(node, _, state, info) {
392
+ const tracker = state.createTracker(info);
393
+ let value = tracker.move("[^");
394
+ const exit = state.enter("footnoteDefinition");
395
+ const subexit = state.enter("label");
396
+ value += tracker.move(state.safe(state.associationId(node), {
397
+ before: value,
398
+ after: "]"
399
+ }));
400
+ subexit();
401
+ value += tracker.move("]:");
402
+ if (node.children && node.children.length > 0) {
403
+ tracker.shift(4);
404
+ value += tracker.move((firstLineBlank ? "\n" : " ") + state.indentLines(state.containerFlow(node, tracker.current()), firstLineBlank ? mapAll : mapExceptFirst));
405
+ }
406
+ exit();
407
+ return value;
408
+ }
409
+ }
410
+ /** @type {Map} */
411
+ function mapExceptFirst(line, index, blank) {
412
+ return index === 0 ? line : mapAll(line, index, blank);
413
+ }
414
+ /** @type {Map} */
415
+ function mapAll(line, index, blank) {
416
+ return (blank ? "" : " ") + line;
417
+ }
418
+ //#endregion
419
+ //#region ../../node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.js
420
+ /**
421
+ * @typedef {import('mdast').Delete} Delete
422
+ *
423
+ * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
424
+ * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
425
+ * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
426
+ *
427
+ * @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName
428
+ * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
429
+ * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
430
+ */
431
+ /**
432
+ * List of constructs that occur in phrasing (paragraphs, headings), but cannot
433
+ * contain strikethrough.
434
+ * So they sort of cancel each other out.
435
+ * Note: could use a better name.
436
+ *
437
+ * Note: keep in sync with: <https://github.com/syntax-tree/mdast-util-to-markdown/blob/8ce8dbf/lib/unsafe.js#L14>
438
+ *
439
+ * @type {Array<ConstructName>}
440
+ */
441
+ var constructsWithoutStrikethrough = [
442
+ "autolink",
443
+ "destinationLiteral",
444
+ "destinationRaw",
445
+ "reference",
446
+ "titleQuote",
447
+ "titleApostrophe"
448
+ ];
449
+ handleDelete.peek = peekDelete;
450
+ /**
451
+ * Create an extension for `mdast-util-from-markdown` to enable GFM
452
+ * strikethrough in markdown.
453
+ *
454
+ * @returns {FromMarkdownExtension}
455
+ * Extension for `mdast-util-from-markdown` to enable GFM strikethrough.
456
+ */
457
+ function gfmStrikethroughFromMarkdown() {
458
+ return {
459
+ canContainEols: ["delete"],
460
+ enter: { strikethrough: enterStrikethrough },
461
+ exit: { strikethrough: exitStrikethrough }
462
+ };
463
+ }
464
+ /**
465
+ * Create an extension for `mdast-util-to-markdown` to enable GFM
466
+ * strikethrough in markdown.
467
+ *
468
+ * @returns {ToMarkdownExtension}
469
+ * Extension for `mdast-util-to-markdown` to enable GFM strikethrough.
470
+ */
471
+ function gfmStrikethroughToMarkdown() {
472
+ return {
473
+ unsafe: [{
474
+ character: "~",
475
+ inConstruct: "phrasing",
476
+ notInConstruct: constructsWithoutStrikethrough
477
+ }],
478
+ handlers: { delete: handleDelete }
479
+ };
480
+ }
481
+ /**
482
+ * @this {CompileContext}
483
+ * @type {FromMarkdownHandle}
484
+ */
485
+ function enterStrikethrough(token) {
486
+ this.enter({
487
+ type: "delete",
488
+ children: []
489
+ }, token);
490
+ }
491
+ /**
492
+ * @this {CompileContext}
493
+ * @type {FromMarkdownHandle}
494
+ */
495
+ function exitStrikethrough(token) {
496
+ this.exit(token);
497
+ }
498
+ /**
499
+ * @type {ToMarkdownHandle}
500
+ * @param {Delete} node
501
+ */
502
+ function handleDelete(node, _, state, info) {
503
+ const tracker = state.createTracker(info);
504
+ const exit = state.enter("strikethrough");
505
+ let value = tracker.move("~~");
506
+ value += state.containerPhrasing(node, {
507
+ ...tracker.current(),
508
+ before: value,
509
+ after: "~"
510
+ });
511
+ value += tracker.move("~~");
512
+ exit();
513
+ return value;
514
+ }
515
+ /** @type {ToMarkdownHandle} */
516
+ function peekDelete() {
517
+ return "~";
518
+ }
519
+ //#endregion
520
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
521
+ /**
522
+ * @import {Blockquote, Parents} from 'mdast'
523
+ * @import {Info, Map, State} from 'mdast-util-to-markdown'
524
+ */
525
+ /**
526
+ * @param {Blockquote} node
527
+ * @param {Parents | undefined} _
528
+ * @param {State} state
529
+ * @param {Info} info
530
+ * @returns {string}
531
+ */
532
+ function blockquote(node, _, state, info) {
533
+ const exit = state.enter("blockquote");
534
+ const tracker = state.createTracker(info);
535
+ tracker.move("> ");
536
+ tracker.shift(2);
537
+ const value = state.indentLines(state.containerFlow(node, tracker.current()), map$1);
538
+ exit();
539
+ return value;
540
+ }
541
+ /** @type {Map} */
542
+ function map$1(line, _, blank) {
543
+ return ">" + (blank ? "" : " ") + line;
544
+ }
545
+ //#endregion
546
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
547
+ /**
548
+ * @import {ConstructName, Unsafe} from 'mdast-util-to-markdown'
549
+ */
550
+ /**
551
+ * @param {Array<ConstructName>} stack
552
+ * @param {Unsafe} pattern
553
+ * @returns {boolean}
554
+ */
555
+ function patternInScope(stack, pattern) {
556
+ return listInScope(stack, pattern.inConstruct, true) && !listInScope(stack, pattern.notInConstruct, false);
557
+ }
558
+ /**
559
+ * @param {Array<ConstructName>} stack
560
+ * @param {Unsafe['inConstruct']} list
561
+ * @param {boolean} none
562
+ * @returns {boolean}
563
+ */
564
+ function listInScope(stack, list, none) {
565
+ if (typeof list === "string") list = [list];
566
+ if (!list || list.length === 0) return none;
567
+ let index = -1;
568
+ while (++index < list.length) if (stack.includes(list[index])) return true;
569
+ return false;
570
+ }
571
+ //#endregion
572
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.js
573
+ /**
574
+ * @import {Break, Parents} from 'mdast'
575
+ * @import {Info, State} from 'mdast-util-to-markdown'
576
+ */
577
+ /**
578
+ * @param {Break} _
579
+ * @param {Parents | undefined} _1
580
+ * @param {State} state
581
+ * @param {Info} info
582
+ * @returns {string}
583
+ */
584
+ function hardBreak(_, _1, state, info) {
585
+ let index = -1;
586
+ while (++index < state.unsafe.length) if (state.unsafe[index].character === "\n" && patternInScope(state.stack, state.unsafe[index])) return /[ \t]/.test(info.before) ? "" : " ";
587
+ return "\\\n";
588
+ }
589
+ //#endregion
590
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js
591
+ /**
592
+ * @import {State} from 'mdast-util-to-markdown'
593
+ * @import {Code} from 'mdast'
594
+ */
595
+ /**
596
+ * @param {Code} node
597
+ * @param {State} state
598
+ * @returns {boolean}
599
+ */
600
+ function formatCodeAsIndented(node, state) {
601
+ return Boolean(state.options.fences === false && node.value && !node.lang && /[^ \r\n]/.test(node.value) && !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(node.value));
602
+ }
603
+ //#endregion
604
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.js
605
+ /**
606
+ * @import {Options, State} from 'mdast-util-to-markdown'
607
+ */
608
+ /**
609
+ * @param {State} state
610
+ * @returns {Exclude<Options['fence'], null | undefined>}
611
+ */
612
+ function checkFence(state) {
613
+ const marker = state.options.fence || "`";
614
+ if (marker !== "`" && marker !== "~") throw new Error("Cannot serialize code with `" + marker + "` for `options.fence`, expected `` ` `` or `~`");
615
+ return marker;
616
+ }
617
+ //#endregion
618
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.js
619
+ /**
620
+ * @import {Info, Map, State} from 'mdast-util-to-markdown'
621
+ * @import {Code, Parents} from 'mdast'
622
+ */
623
+ /**
624
+ * @param {Code} node
625
+ * @param {Parents | undefined} _
626
+ * @param {State} state
627
+ * @param {Info} info
628
+ * @returns {string}
629
+ */
630
+ function code(node, _, state, info) {
631
+ const marker = checkFence(state);
632
+ const raw = node.value || "";
633
+ const suffix = marker === "`" ? "GraveAccent" : "Tilde";
634
+ if (formatCodeAsIndented(node, state)) {
635
+ const exit = state.enter("codeIndented");
636
+ const value = state.indentLines(raw, map);
637
+ exit();
638
+ return value;
639
+ }
640
+ const tracker = state.createTracker(info);
641
+ const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3));
642
+ const exit = state.enter("codeFenced");
643
+ let value = tracker.move(sequence);
644
+ if (node.lang) {
645
+ const subexit = state.enter(`codeFencedLang${suffix}`);
646
+ value += tracker.move(state.safe(node.lang, {
647
+ before: value,
648
+ after: " ",
649
+ encode: ["`"],
650
+ ...tracker.current()
651
+ }));
652
+ subexit();
653
+ }
654
+ if (node.lang && node.meta) {
655
+ const subexit = state.enter(`codeFencedMeta${suffix}`);
656
+ value += tracker.move(" ");
657
+ value += tracker.move(state.safe(node.meta, {
658
+ before: value,
659
+ after: "\n",
660
+ encode: ["`"],
661
+ ...tracker.current()
662
+ }));
663
+ subexit();
664
+ }
665
+ value += tracker.move("\n");
666
+ if (raw) value += tracker.move(raw + "\n");
667
+ value += tracker.move(sequence);
668
+ exit();
669
+ return value;
670
+ }
671
+ /** @type {Map} */
672
+ function map(line, _, blank) {
673
+ return (blank ? "" : " ") + line;
674
+ }
675
+ //#endregion
676
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.js
677
+ /**
678
+ * @import {Options, State} from 'mdast-util-to-markdown'
679
+ */
680
+ /**
681
+ * @param {State} state
682
+ * @returns {Exclude<Options['quote'], null | undefined>}
683
+ */
684
+ function checkQuote(state) {
685
+ const marker = state.options.quote || "\"";
686
+ if (marker !== "\"" && marker !== "'") throw new Error("Cannot serialize title with `" + marker + "` for `options.quote`, expected `\"`, or `'`");
687
+ return marker;
688
+ }
689
+ //#endregion
690
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.js
691
+ /**
692
+ * @import {Info, State} from 'mdast-util-to-markdown'
693
+ * @import {Definition, Parents} from 'mdast'
694
+ */
695
+ /**
696
+ * @param {Definition} node
697
+ * @param {Parents | undefined} _
698
+ * @param {State} state
699
+ * @param {Info} info
700
+ * @returns {string}
701
+ */
702
+ function definition(node, _, state, info) {
703
+ const quote = checkQuote(state);
704
+ const suffix = quote === "\"" ? "Quote" : "Apostrophe";
705
+ const exit = state.enter("definition");
706
+ let subexit = state.enter("label");
707
+ const tracker = state.createTracker(info);
708
+ let value = tracker.move("[");
709
+ value += tracker.move(state.safe(state.associationId(node), {
710
+ before: value,
711
+ after: "]",
712
+ ...tracker.current()
713
+ }));
714
+ value += tracker.move("]: ");
715
+ subexit();
716
+ if (!node.url || /[\0- \u007F]/.test(node.url)) {
717
+ subexit = state.enter("destinationLiteral");
718
+ value += tracker.move("<");
719
+ value += tracker.move(state.safe(node.url, {
720
+ before: value,
721
+ after: ">",
722
+ ...tracker.current()
723
+ }));
724
+ value += tracker.move(">");
725
+ } else {
726
+ subexit = state.enter("destinationRaw");
727
+ value += tracker.move(state.safe(node.url, {
728
+ before: value,
729
+ after: node.title ? " " : "\n",
730
+ ...tracker.current()
731
+ }));
732
+ }
733
+ subexit();
734
+ if (node.title) {
735
+ subexit = state.enter(`title${suffix}`);
736
+ value += tracker.move(" " + quote);
737
+ value += tracker.move(state.safe(node.title, {
738
+ before: value,
739
+ after: quote,
740
+ ...tracker.current()
741
+ }));
742
+ value += tracker.move(quote);
743
+ subexit();
744
+ }
745
+ exit();
746
+ return value;
747
+ }
748
+ //#endregion
749
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js
750
+ /**
751
+ * @import {Options, State} from 'mdast-util-to-markdown'
752
+ */
753
+ /**
754
+ * @param {State} state
755
+ * @returns {Exclude<Options['emphasis'], null | undefined>}
756
+ */
757
+ function checkEmphasis(state) {
758
+ const marker = state.options.emphasis || "*";
759
+ if (marker !== "*" && marker !== "_") throw new Error("Cannot serialize emphasis with `" + marker + "` for `options.emphasis`, expected `*`, or `_`");
760
+ return marker;
761
+ }
762
+ //#endregion
763
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
764
+ /**
765
+ * Encode a code point as a character reference.
766
+ *
767
+ * @param {number} code
768
+ * Code point to encode.
769
+ * @returns {string}
770
+ * Encoded character reference.
771
+ */
772
+ function encodeCharacterReference(code) {
773
+ return "&#x" + code.toString(16).toUpperCase() + ";";
774
+ }
775
+ //#endregion
776
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.js
777
+ /**
778
+ * @import {EncodeSides} from '../types.js'
779
+ */
780
+ /**
781
+ * Check whether to encode (as a character reference) the characters
782
+ * surrounding an attention run.
783
+ *
784
+ * Which characters are around an attention run influence whether it works or
785
+ * not.
786
+ *
787
+ * See <https://github.com/orgs/syntax-tree/discussions/60> for more info.
788
+ * See this markdown in a particular renderer to see what works:
789
+ *
790
+ * ```markdown
791
+ * | | A (letter inside) | B (punctuation inside) | C (whitespace inside) | D (nothing inside) |
792
+ * | ----------------------- | ----------------- | ---------------------- | --------------------- | ------------------ |
793
+ * | 1 (letter outside) | x*y*z | x*.*z | x* *z | x**z |
794
+ * | 2 (punctuation outside) | .*y*. | .*.*. | .* *. | .**. |
795
+ * | 3 (whitespace outside) | x *y* z | x *.* z | x * * z | x ** z |
796
+ * | 4 (nothing outside) | *x* | *.* | * * | ** |
797
+ * ```
798
+ *
799
+ * @param {number} outside
800
+ * Code point on the outer side of the run.
801
+ * @param {number} inside
802
+ * Code point on the inner side of the run.
803
+ * @param {'*' | '_'} marker
804
+ * Marker of the run.
805
+ * Underscores are handled more strictly (they form less often) than
806
+ * asterisks.
807
+ * @returns {EncodeSides}
808
+ * Whether to encode characters.
809
+ */
810
+ function encodeInfo(outside, inside, marker) {
811
+ const outsideKind = classifyCharacter(outside);
812
+ const insideKind = classifyCharacter(inside);
813
+ if (outsideKind === void 0) return insideKind === void 0 ? marker === "_" ? {
814
+ inside: true,
815
+ outside: true
816
+ } : {
817
+ inside: false,
818
+ outside: false
819
+ } : insideKind === 1 ? {
820
+ inside: true,
821
+ outside: true
822
+ } : {
823
+ inside: false,
824
+ outside: true
825
+ };
826
+ if (outsideKind === 1) return insideKind === void 0 ? {
827
+ inside: false,
828
+ outside: false
829
+ } : insideKind === 1 ? {
830
+ inside: true,
831
+ outside: true
832
+ } : {
833
+ inside: false,
834
+ outside: false
835
+ };
836
+ return insideKind === void 0 ? {
837
+ inside: false,
838
+ outside: false
839
+ } : insideKind === 1 ? {
840
+ inside: true,
841
+ outside: false
842
+ } : {
843
+ inside: false,
844
+ outside: false
845
+ };
846
+ }
847
+ //#endregion
848
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
849
+ /**
850
+ * @import {Info, State} from 'mdast-util-to-markdown'
851
+ * @import {Emphasis, Parents} from 'mdast'
852
+ */
853
+ emphasis.peek = emphasisPeek;
854
+ /**
855
+ * @param {Emphasis} node
856
+ * @param {Parents | undefined} _
857
+ * @param {State} state
858
+ * @param {Info} info
859
+ * @returns {string}
860
+ */
861
+ function emphasis(node, _, state, info) {
862
+ const marker = checkEmphasis(state);
863
+ const exit = state.enter("emphasis");
864
+ const tracker = state.createTracker(info);
865
+ const before = tracker.move(marker);
866
+ let between = tracker.move(state.containerPhrasing(node, {
867
+ after: marker,
868
+ before,
869
+ ...tracker.current()
870
+ }));
871
+ const betweenHead = between.charCodeAt(0);
872
+ const open = encodeInfo(info.before.charCodeAt(info.before.length - 1), betweenHead, marker);
873
+ if (open.inside) between = encodeCharacterReference(betweenHead) + between.slice(1);
874
+ const betweenTail = between.charCodeAt(between.length - 1);
875
+ const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
876
+ if (close.inside) between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
877
+ const after = tracker.move(marker);
878
+ exit();
879
+ state.attentionEncodeSurroundingInfo = {
880
+ after: close.outside,
881
+ before: open.outside
882
+ };
883
+ return before + between + after;
884
+ }
885
+ /**
886
+ * @param {Emphasis} _
887
+ * @param {Parents | undefined} _1
888
+ * @param {State} state
889
+ * @returns {string}
890
+ */
891
+ function emphasisPeek(_, _1, state) {
892
+ return state.options.emphasis || "*";
893
+ }
894
+ //#endregion
895
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
896
+ /**
897
+ * @import {State} from 'mdast-util-to-markdown'
898
+ * @import {Heading} from 'mdast'
899
+ */
900
+ /**
901
+ * @param {Heading} node
902
+ * @param {State} state
903
+ * @returns {boolean}
904
+ */
905
+ function formatHeadingAsSetext(node, state) {
906
+ let literalWithBreak = false;
907
+ visit(node, function(node) {
908
+ if ("value" in node && /\r?\n|\r/.test(node.value) || node.type === "break") {
909
+ literalWithBreak = true;
910
+ return false;
911
+ }
912
+ });
913
+ return Boolean((!node.depth || node.depth < 3) && toString(node) && (state.options.setext || literalWithBreak));
914
+ }
915
+ //#endregion
916
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.js
917
+ /**
918
+ * @import {Info, State} from 'mdast-util-to-markdown'
919
+ * @import {Heading, Parents} from 'mdast'
920
+ */
921
+ /**
922
+ * @param {Heading} node
923
+ * @param {Parents | undefined} _
924
+ * @param {State} state
925
+ * @param {Info} info
926
+ * @returns {string}
927
+ */
928
+ function heading(node, _, state, info) {
929
+ const rank = Math.max(Math.min(6, node.depth || 1), 1);
930
+ const tracker = state.createTracker(info);
931
+ if (formatHeadingAsSetext(node, state)) {
932
+ const exit = state.enter("headingSetext");
933
+ const subexit = state.enter("phrasing");
934
+ const value = state.containerPhrasing(node, {
935
+ ...tracker.current(),
936
+ before: "\n",
937
+ after: "\n"
938
+ });
939
+ subexit();
940
+ exit();
941
+ return value + "\n" + (rank === 1 ? "=" : "-").repeat(value.length - (Math.max(value.lastIndexOf("\r"), value.lastIndexOf("\n")) + 1));
942
+ }
943
+ const sequence = "#".repeat(rank);
944
+ const exit = state.enter("headingAtx");
945
+ const subexit = state.enter("phrasing");
946
+ tracker.move(sequence + " ");
947
+ let value = state.containerPhrasing(node, {
948
+ before: "# ",
949
+ after: "\n",
950
+ ...tracker.current()
951
+ });
952
+ if (/^[\t ]/.test(value)) value = encodeCharacterReference(value.charCodeAt(0)) + value.slice(1);
953
+ value = value ? sequence + " " + value : sequence;
954
+ if (state.options.closeAtx) value += " " + sequence;
955
+ subexit();
956
+ exit();
957
+ return value;
958
+ }
959
+ //#endregion
960
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.js
961
+ /**
962
+ * @import {Html} from 'mdast'
963
+ */
964
+ html.peek = htmlPeek;
965
+ /**
966
+ * @param {Html} node
967
+ * @returns {string}
968
+ */
969
+ function html(node) {
970
+ return node.value || "";
971
+ }
972
+ /**
973
+ * @returns {string}
974
+ */
975
+ function htmlPeek() {
976
+ return "<";
977
+ }
978
+ //#endregion
979
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.js
980
+ /**
981
+ * @import {Info, State} from 'mdast-util-to-markdown'
982
+ * @import {Image, Parents} from 'mdast'
983
+ */
984
+ image.peek = imagePeek;
985
+ /**
986
+ * @param {Image} node
987
+ * @param {Parents | undefined} _
988
+ * @param {State} state
989
+ * @param {Info} info
990
+ * @returns {string}
991
+ */
992
+ function image(node, _, state, info) {
993
+ const quote = checkQuote(state);
994
+ const suffix = quote === "\"" ? "Quote" : "Apostrophe";
995
+ const exit = state.enter("image");
996
+ let subexit = state.enter("label");
997
+ const tracker = state.createTracker(info);
998
+ let value = tracker.move("![");
999
+ value += tracker.move(state.safe(node.alt, {
1000
+ before: value,
1001
+ after: "]",
1002
+ ...tracker.current()
1003
+ }));
1004
+ value += tracker.move("](");
1005
+ subexit();
1006
+ if (!node.url && node.title || /[\0- \u007F]/.test(node.url)) {
1007
+ subexit = state.enter("destinationLiteral");
1008
+ value += tracker.move("<");
1009
+ value += tracker.move(state.safe(node.url, {
1010
+ before: value,
1011
+ after: ">",
1012
+ ...tracker.current()
1013
+ }));
1014
+ value += tracker.move(">");
1015
+ } else {
1016
+ subexit = state.enter("destinationRaw");
1017
+ value += tracker.move(state.safe(node.url, {
1018
+ before: value,
1019
+ after: node.title ? " " : ")",
1020
+ ...tracker.current()
1021
+ }));
1022
+ }
1023
+ subexit();
1024
+ if (node.title) {
1025
+ subexit = state.enter(`title${suffix}`);
1026
+ value += tracker.move(" " + quote);
1027
+ value += tracker.move(state.safe(node.title, {
1028
+ before: value,
1029
+ after: quote,
1030
+ ...tracker.current()
1031
+ }));
1032
+ value += tracker.move(quote);
1033
+ subexit();
1034
+ }
1035
+ value += tracker.move(")");
1036
+ exit();
1037
+ return value;
1038
+ }
1039
+ /**
1040
+ * @returns {string}
1041
+ */
1042
+ function imagePeek() {
1043
+ return "!";
1044
+ }
1045
+ //#endregion
1046
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
1047
+ /**
1048
+ * @import {Info, State} from 'mdast-util-to-markdown'
1049
+ * @import {ImageReference, Parents} from 'mdast'
1050
+ */
1051
+ imageReference.peek = imageReferencePeek;
1052
+ /**
1053
+ * @param {ImageReference} node
1054
+ * @param {Parents | undefined} _
1055
+ * @param {State} state
1056
+ * @param {Info} info
1057
+ * @returns {string}
1058
+ */
1059
+ function imageReference(node, _, state, info) {
1060
+ const type = node.referenceType;
1061
+ const exit = state.enter("imageReference");
1062
+ let subexit = state.enter("label");
1063
+ const tracker = state.createTracker(info);
1064
+ let value = tracker.move("![");
1065
+ const alt = state.safe(node.alt, {
1066
+ before: value,
1067
+ after: "]",
1068
+ ...tracker.current()
1069
+ });
1070
+ value += tracker.move(alt + "][");
1071
+ subexit();
1072
+ const stack = state.stack;
1073
+ state.stack = [];
1074
+ subexit = state.enter("reference");
1075
+ const reference = state.safe(state.associationId(node), {
1076
+ before: value,
1077
+ after: "]",
1078
+ ...tracker.current()
1079
+ });
1080
+ subexit();
1081
+ state.stack = stack;
1082
+ exit();
1083
+ if (type === "full" || !alt || alt !== reference) value += tracker.move(reference + "]");
1084
+ else if (type === "shortcut") value = value.slice(0, -1);
1085
+ else value += tracker.move("]");
1086
+ return value;
1087
+ }
1088
+ /**
1089
+ * @returns {string}
1090
+ */
1091
+ function imageReferencePeek() {
1092
+ return "!";
1093
+ }
1094
+ //#endregion
1095
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
1096
+ /**
1097
+ * @import {State} from 'mdast-util-to-markdown'
1098
+ * @import {InlineCode, Parents} from 'mdast'
1099
+ */
1100
+ inlineCode.peek = inlineCodePeek;
1101
+ /**
1102
+ * @param {InlineCode} node
1103
+ * @param {Parents | undefined} _
1104
+ * @param {State} state
1105
+ * @returns {string}
1106
+ */
1107
+ function inlineCode(node, _, state) {
1108
+ let value = node.value || "";
1109
+ let sequence = "`";
1110
+ let index = -1;
1111
+ while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) sequence += "`";
1112
+ if (/[^ \r\n]/.test(value) && (/^[ \r\n]/.test(value) && /[ \r\n]$/.test(value) || /^`|`$/.test(value))) value = " " + value + " ";
1113
+ while (++index < state.unsafe.length) {
1114
+ const pattern = state.unsafe[index];
1115
+ const expression = state.compilePattern(pattern);
1116
+ /** @type {RegExpExecArray | null} */
1117
+ let match;
1118
+ if (!pattern.atBreak) continue;
1119
+ while (match = expression.exec(value)) {
1120
+ let position = match.index;
1121
+ if (value.charCodeAt(position) === 10 && value.charCodeAt(position - 1) === 13) position--;
1122
+ value = value.slice(0, position) + " " + value.slice(match.index + 1);
1123
+ }
1124
+ }
1125
+ return sequence + value + sequence;
1126
+ }
1127
+ /**
1128
+ * @returns {string}
1129
+ */
1130
+ function inlineCodePeek() {
1131
+ return "`";
1132
+ }
1133
+ //#endregion
1134
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
1135
+ /**
1136
+ * @import {State} from 'mdast-util-to-markdown'
1137
+ * @import {Link} from 'mdast'
1138
+ */
1139
+ /**
1140
+ * @param {Link} node
1141
+ * @param {State} state
1142
+ * @returns {boolean}
1143
+ */
1144
+ function formatLinkAsAutolink(node, state) {
1145
+ const raw = toString(node);
1146
+ return Boolean(!state.options.resourceLink && node.url && !node.title && node.children && node.children.length === 1 && node.children[0].type === "text" && (raw === node.url || "mailto:" + raw === node.url) && /^[a-z][a-z+.-]+:/i.test(node.url) && !/[\0- <>\u007F]/.test(node.url));
1147
+ }
1148
+ //#endregion
1149
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js
1150
+ /**
1151
+ * @import {Info, State} from 'mdast-util-to-markdown'
1152
+ * @import {Link, Parents} from 'mdast'
1153
+ * @import {Exit} from '../types.js'
1154
+ */
1155
+ link.peek = linkPeek;
1156
+ /**
1157
+ * @param {Link} node
1158
+ * @param {Parents | undefined} _
1159
+ * @param {State} state
1160
+ * @param {Info} info
1161
+ * @returns {string}
1162
+ */
1163
+ function link(node, _, state, info) {
1164
+ const quote = checkQuote(state);
1165
+ const suffix = quote === "\"" ? "Quote" : "Apostrophe";
1166
+ const tracker = state.createTracker(info);
1167
+ /** @type {Exit} */
1168
+ let exit;
1169
+ /** @type {Exit} */
1170
+ let subexit;
1171
+ if (formatLinkAsAutolink(node, state)) {
1172
+ const stack = state.stack;
1173
+ state.stack = [];
1174
+ exit = state.enter("autolink");
1175
+ let value = tracker.move("<");
1176
+ value += tracker.move(state.containerPhrasing(node, {
1177
+ before: value,
1178
+ after: ">",
1179
+ ...tracker.current()
1180
+ }));
1181
+ value += tracker.move(">");
1182
+ exit();
1183
+ state.stack = stack;
1184
+ return value;
1185
+ }
1186
+ exit = state.enter("link");
1187
+ subexit = state.enter("label");
1188
+ let value = tracker.move("[");
1189
+ value += tracker.move(state.containerPhrasing(node, {
1190
+ before: value,
1191
+ after: "](",
1192
+ ...tracker.current()
1193
+ }));
1194
+ value += tracker.move("](");
1195
+ subexit();
1196
+ if (!node.url && node.title || /[\0- \u007F]/.test(node.url)) {
1197
+ subexit = state.enter("destinationLiteral");
1198
+ value += tracker.move("<");
1199
+ value += tracker.move(state.safe(node.url, {
1200
+ before: value,
1201
+ after: ">",
1202
+ ...tracker.current()
1203
+ }));
1204
+ value += tracker.move(">");
1205
+ } else {
1206
+ subexit = state.enter("destinationRaw");
1207
+ value += tracker.move(state.safe(node.url, {
1208
+ before: value,
1209
+ after: node.title ? " " : ")",
1210
+ ...tracker.current()
1211
+ }));
1212
+ }
1213
+ subexit();
1214
+ if (node.title) {
1215
+ subexit = state.enter(`title${suffix}`);
1216
+ value += tracker.move(" " + quote);
1217
+ value += tracker.move(state.safe(node.title, {
1218
+ before: value,
1219
+ after: quote,
1220
+ ...tracker.current()
1221
+ }));
1222
+ value += tracker.move(quote);
1223
+ subexit();
1224
+ }
1225
+ value += tracker.move(")");
1226
+ exit();
1227
+ return value;
1228
+ }
1229
+ /**
1230
+ * @param {Link} node
1231
+ * @param {Parents | undefined} _
1232
+ * @param {State} state
1233
+ * @returns {string}
1234
+ */
1235
+ function linkPeek(node, _, state) {
1236
+ return formatLinkAsAutolink(node, state) ? "<" : "[";
1237
+ }
1238
+ //#endregion
1239
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
1240
+ /**
1241
+ * @import {Info, State} from 'mdast-util-to-markdown'
1242
+ * @import {LinkReference, Parents} from 'mdast'
1243
+ */
1244
+ linkReference.peek = linkReferencePeek;
1245
+ /**
1246
+ * @param {LinkReference} node
1247
+ * @param {Parents | undefined} _
1248
+ * @param {State} state
1249
+ * @param {Info} info
1250
+ * @returns {string}
1251
+ */
1252
+ function linkReference(node, _, state, info) {
1253
+ const type = node.referenceType;
1254
+ const exit = state.enter("linkReference");
1255
+ let subexit = state.enter("label");
1256
+ const tracker = state.createTracker(info);
1257
+ let value = tracker.move("[");
1258
+ const text = state.containerPhrasing(node, {
1259
+ before: value,
1260
+ after: "]",
1261
+ ...tracker.current()
1262
+ });
1263
+ value += tracker.move(text + "][");
1264
+ subexit();
1265
+ const stack = state.stack;
1266
+ state.stack = [];
1267
+ subexit = state.enter("reference");
1268
+ const reference = state.safe(state.associationId(node), {
1269
+ before: value,
1270
+ after: "]",
1271
+ ...tracker.current()
1272
+ });
1273
+ subexit();
1274
+ state.stack = stack;
1275
+ exit();
1276
+ if (type === "full" || !text || text !== reference) value += tracker.move(reference + "]");
1277
+ else if (type === "shortcut") value = value.slice(0, -1);
1278
+ else value += tracker.move("]");
1279
+ return value;
1280
+ }
1281
+ /**
1282
+ * @returns {string}
1283
+ */
1284
+ function linkReferencePeek() {
1285
+ return "[";
1286
+ }
1287
+ //#endregion
1288
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
1289
+ /**
1290
+ * @import {Options, State} from 'mdast-util-to-markdown'
1291
+ */
1292
+ /**
1293
+ * @param {State} state
1294
+ * @returns {Exclude<Options['bullet'], null | undefined>}
1295
+ */
1296
+ function checkBullet(state) {
1297
+ const marker = state.options.bullet || "*";
1298
+ if (marker !== "*" && marker !== "+" && marker !== "-") throw new Error("Cannot serialize items with `" + marker + "` for `options.bullet`, expected `*`, `+`, or `-`");
1299
+ return marker;
1300
+ }
1301
+ //#endregion
1302
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
1303
+ /**
1304
+ * @import {Options, State} from 'mdast-util-to-markdown'
1305
+ */
1306
+ /**
1307
+ * @param {State} state
1308
+ * @returns {Exclude<Options['bullet'], null | undefined>}
1309
+ */
1310
+ function checkBulletOther(state) {
1311
+ const bullet = checkBullet(state);
1312
+ const bulletOther = state.options.bulletOther;
1313
+ if (!bulletOther) return bullet === "*" ? "-" : "*";
1314
+ if (bulletOther !== "*" && bulletOther !== "+" && bulletOther !== "-") throw new Error("Cannot serialize items with `" + bulletOther + "` for `options.bulletOther`, expected `*`, `+`, or `-`");
1315
+ if (bulletOther === bullet) throw new Error("Expected `bullet` (`" + bullet + "`) and `bulletOther` (`" + bulletOther + "`) to be different");
1316
+ return bulletOther;
1317
+ }
1318
+ //#endregion
1319
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js
1320
+ /**
1321
+ * @import {Options, State} from 'mdast-util-to-markdown'
1322
+ */
1323
+ /**
1324
+ * @param {State} state
1325
+ * @returns {Exclude<Options['bulletOrdered'], null | undefined>}
1326
+ */
1327
+ function checkBulletOrdered(state) {
1328
+ const marker = state.options.bulletOrdered || ".";
1329
+ if (marker !== "." && marker !== ")") throw new Error("Cannot serialize items with `" + marker + "` for `options.bulletOrdered`, expected `.` or `)`");
1330
+ return marker;
1331
+ }
1332
+ //#endregion
1333
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.js
1334
+ /**
1335
+ * @import {Options, State} from 'mdast-util-to-markdown'
1336
+ */
1337
+ /**
1338
+ * @param {State} state
1339
+ * @returns {Exclude<Options['rule'], null | undefined>}
1340
+ */
1341
+ function checkRule(state) {
1342
+ const marker = state.options.rule || "*";
1343
+ if (marker !== "*" && marker !== "-" && marker !== "_") throw new Error("Cannot serialize rules with `" + marker + "` for `options.rule`, expected `*`, `-`, or `_`");
1344
+ return marker;
1345
+ }
1346
+ //#endregion
1347
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js
1348
+ /**
1349
+ * @import {Info, State} from 'mdast-util-to-markdown'
1350
+ * @import {List, Parents} from 'mdast'
1351
+ */
1352
+ /**
1353
+ * @param {List} node
1354
+ * @param {Parents | undefined} parent
1355
+ * @param {State} state
1356
+ * @param {Info} info
1357
+ * @returns {string}
1358
+ */
1359
+ function list(node, parent, state, info) {
1360
+ const exit = state.enter("list");
1361
+ const bulletCurrent = state.bulletCurrent;
1362
+ /** @type {string} */
1363
+ let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
1364
+ /** @type {string} */
1365
+ const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
1366
+ let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
1367
+ if (!node.ordered) {
1368
+ const firstListItem = node.children ? node.children[0] : void 0;
1369
+ if ((bullet === "*" || bullet === "-") && firstListItem && (!firstListItem.children || !firstListItem.children[0]) && state.stack[state.stack.length - 1] === "list" && state.stack[state.stack.length - 2] === "listItem" && state.stack[state.stack.length - 3] === "list" && state.stack[state.stack.length - 4] === "listItem" && state.indexStack[state.indexStack.length - 1] === 0 && state.indexStack[state.indexStack.length - 2] === 0 && state.indexStack[state.indexStack.length - 3] === 0) useDifferentMarker = true;
1370
+ if (checkRule(state) === bullet && firstListItem) {
1371
+ let index = -1;
1372
+ while (++index < node.children.length) {
1373
+ const item = node.children[index];
1374
+ if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
1375
+ useDifferentMarker = true;
1376
+ break;
1377
+ }
1378
+ }
1379
+ }
1380
+ }
1381
+ if (useDifferentMarker) bullet = bulletOther;
1382
+ state.bulletCurrent = bullet;
1383
+ const value = state.containerFlow(node, info);
1384
+ state.bulletLastUsed = bullet;
1385
+ state.bulletCurrent = bulletCurrent;
1386
+ exit();
1387
+ return value;
1388
+ }
1389
+ //#endregion
1390
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
1391
+ /**
1392
+ * @import {Options, State} from 'mdast-util-to-markdown'
1393
+ */
1394
+ /**
1395
+ * @param {State} state
1396
+ * @returns {Exclude<Options['listItemIndent'], null | undefined>}
1397
+ */
1398
+ function checkListItemIndent(state) {
1399
+ const style = state.options.listItemIndent || "one";
1400
+ if (style !== "tab" && style !== "one" && style !== "mixed") throw new Error("Cannot serialize items with `" + style + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");
1401
+ return style;
1402
+ }
1403
+ //#endregion
1404
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js
1405
+ /**
1406
+ * @import {Info, Map, State} from 'mdast-util-to-markdown'
1407
+ * @import {ListItem, Parents} from 'mdast'
1408
+ */
1409
+ /**
1410
+ * @param {ListItem} node
1411
+ * @param {Parents | undefined} parent
1412
+ * @param {State} state
1413
+ * @param {Info} info
1414
+ * @returns {string}
1415
+ */
1416
+ function listItem(node, parent, state, info) {
1417
+ const listItemIndent = checkListItemIndent(state);
1418
+ let bullet = state.bulletCurrent || checkBullet(state);
1419
+ if (parent && parent.type === "list" && parent.ordered) bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
1420
+ let size = bullet.length + 1;
1421
+ if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) size = Math.ceil(size / 4) * 4;
1422
+ const tracker = state.createTracker(info);
1423
+ tracker.move(bullet + " ".repeat(size - bullet.length));
1424
+ tracker.shift(size);
1425
+ const exit = state.enter("listItem");
1426
+ const value = state.indentLines(state.containerFlow(node, tracker.current()), map);
1427
+ exit();
1428
+ return value;
1429
+ /** @type {Map} */
1430
+ function map(line, index, blank) {
1431
+ if (index) return (blank ? "" : " ".repeat(size)) + line;
1432
+ return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
1433
+ }
1434
+ }
1435
+ //#endregion
1436
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
1437
+ /**
1438
+ * @import {Info, State} from 'mdast-util-to-markdown'
1439
+ * @import {Paragraph, Parents} from 'mdast'
1440
+ */
1441
+ /**
1442
+ * @param {Paragraph} node
1443
+ * @param {Parents | undefined} _
1444
+ * @param {State} state
1445
+ * @param {Info} info
1446
+ * @returns {string}
1447
+ */
1448
+ function paragraph(node, _, state, info) {
1449
+ const exit = state.enter("paragraph");
1450
+ const subexit = state.enter("phrasing");
1451
+ const value = state.containerPhrasing(node, info);
1452
+ subexit();
1453
+ exit();
1454
+ return value;
1455
+ }
1456
+ //#endregion
1457
+ //#region ../../node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js
1458
+ /**
1459
+ * @typedef {import('mdast').Html} Html
1460
+ * @typedef {import('mdast').PhrasingContent} PhrasingContent
1461
+ */
1462
+ /**
1463
+ * Check if the given value is *phrasing content*.
1464
+ *
1465
+ * > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.
1466
+ *
1467
+ * @param node
1468
+ * Thing to check, typically `Node`.
1469
+ * @returns
1470
+ * Whether `value` is phrasing content.
1471
+ */
1472
+ var phrasing = convert([
1473
+ "break",
1474
+ "delete",
1475
+ "emphasis",
1476
+ "footnote",
1477
+ "footnoteReference",
1478
+ "image",
1479
+ "imageReference",
1480
+ "inlineCode",
1481
+ "inlineMath",
1482
+ "link",
1483
+ "linkReference",
1484
+ "mdxJsxTextElement",
1485
+ "mdxTextExpression",
1486
+ "strong",
1487
+ "text",
1488
+ "textDirective"
1489
+ ]);
1490
+ //#endregion
1491
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js
1492
+ /**
1493
+ * @import {Info, State} from 'mdast-util-to-markdown'
1494
+ * @import {Parents, Root} from 'mdast'
1495
+ */
1496
+ /**
1497
+ * @param {Root} node
1498
+ * @param {Parents | undefined} _
1499
+ * @param {State} state
1500
+ * @param {Info} info
1501
+ * @returns {string}
1502
+ */
1503
+ function root(node, _, state, info) {
1504
+ return (node.children.some(function(d) {
1505
+ return phrasing(d);
1506
+ }) ? state.containerPhrasing : state.containerFlow).call(state, node, info);
1507
+ }
1508
+ //#endregion
1509
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.js
1510
+ /**
1511
+ * @import {Options, State} from 'mdast-util-to-markdown'
1512
+ */
1513
+ /**
1514
+ * @param {State} state
1515
+ * @returns {Exclude<Options['strong'], null | undefined>}
1516
+ */
1517
+ function checkStrong(state) {
1518
+ const marker = state.options.strong || "*";
1519
+ if (marker !== "*" && marker !== "_") throw new Error("Cannot serialize strong with `" + marker + "` for `options.strong`, expected `*`, or `_`");
1520
+ return marker;
1521
+ }
1522
+ //#endregion
1523
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js
1524
+ /**
1525
+ * @import {Info, State} from 'mdast-util-to-markdown'
1526
+ * @import {Parents, Strong} from 'mdast'
1527
+ */
1528
+ strong.peek = strongPeek;
1529
+ /**
1530
+ * @param {Strong} node
1531
+ * @param {Parents | undefined} _
1532
+ * @param {State} state
1533
+ * @param {Info} info
1534
+ * @returns {string}
1535
+ */
1536
+ function strong(node, _, state, info) {
1537
+ const marker = checkStrong(state);
1538
+ const exit = state.enter("strong");
1539
+ const tracker = state.createTracker(info);
1540
+ const before = tracker.move(marker + marker);
1541
+ let between = tracker.move(state.containerPhrasing(node, {
1542
+ after: marker,
1543
+ before,
1544
+ ...tracker.current()
1545
+ }));
1546
+ const betweenHead = between.charCodeAt(0);
1547
+ const open = encodeInfo(info.before.charCodeAt(info.before.length - 1), betweenHead, marker);
1548
+ if (open.inside) between = encodeCharacterReference(betweenHead) + between.slice(1);
1549
+ const betweenTail = between.charCodeAt(between.length - 1);
1550
+ const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
1551
+ if (close.inside) between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
1552
+ const after = tracker.move(marker + marker);
1553
+ exit();
1554
+ state.attentionEncodeSurroundingInfo = {
1555
+ after: close.outside,
1556
+ before: open.outside
1557
+ };
1558
+ return before + between + after;
1559
+ }
1560
+ /**
1561
+ * @param {Strong} _
1562
+ * @param {Parents | undefined} _1
1563
+ * @param {State} state
1564
+ * @returns {string}
1565
+ */
1566
+ function strongPeek(_, _1, state) {
1567
+ return state.options.strong || "*";
1568
+ }
1569
+ //#endregion
1570
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.js
1571
+ /**
1572
+ * @import {Info, State} from 'mdast-util-to-markdown'
1573
+ * @import {Parents, Text} from 'mdast'
1574
+ */
1575
+ /**
1576
+ * @param {Text} node
1577
+ * @param {Parents | undefined} _
1578
+ * @param {State} state
1579
+ * @param {Info} info
1580
+ * @returns {string}
1581
+ */
1582
+ function text(node, _, state, info) {
1583
+ return state.safe(node.value, info);
1584
+ }
1585
+ //#endregion
1586
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js
1587
+ /**
1588
+ * @import {Options, State} from 'mdast-util-to-markdown'
1589
+ */
1590
+ /**
1591
+ * @param {State} state
1592
+ * @returns {Exclude<Options['ruleRepetition'], null | undefined>}
1593
+ */
1594
+ function checkRuleRepetition(state) {
1595
+ const repetition = state.options.ruleRepetition || 3;
1596
+ if (repetition < 3) throw new Error("Cannot serialize rules with repetition `" + repetition + "` for `options.ruleRepetition`, expected `3` or more");
1597
+ return repetition;
1598
+ }
1599
+ //#endregion
1600
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
1601
+ /**
1602
+ * @import {State} from 'mdast-util-to-markdown'
1603
+ * @import {Parents, ThematicBreak} from 'mdast'
1604
+ */
1605
+ /**
1606
+ * @param {ThematicBreak} _
1607
+ * @param {Parents | undefined} _1
1608
+ * @param {State} state
1609
+ * @returns {string}
1610
+ */
1611
+ function thematicBreak(_, _1, state) {
1612
+ const value = (checkRule(state) + (state.options.ruleSpaces ? " " : "")).repeat(checkRuleRepetition(state));
1613
+ return state.options.ruleSpaces ? value.slice(0, -1) : value;
1614
+ }
1615
+ //#endregion
1616
+ //#region ../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.js
1617
+ /**
1618
+ * Default (CommonMark) handlers.
1619
+ */
1620
+ var handle = {
1621
+ blockquote,
1622
+ break: hardBreak,
1623
+ code,
1624
+ definition,
1625
+ emphasis,
1626
+ hardBreak,
1627
+ heading,
1628
+ html,
1629
+ image,
1630
+ imageReference,
1631
+ inlineCode,
1632
+ link,
1633
+ linkReference,
1634
+ list,
1635
+ listItem,
1636
+ paragraph,
1637
+ root,
1638
+ strong,
1639
+ text,
1640
+ thematicBreak
1641
+ };
1642
+ //#endregion
1643
+ //#region ../../node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js
1644
+ /**
1645
+ * @typedef {import('mdast').InlineCode} InlineCode
1646
+ * @typedef {import('mdast').Table} Table
1647
+ * @typedef {import('mdast').TableCell} TableCell
1648
+ * @typedef {import('mdast').TableRow} TableRow
1649
+ *
1650
+ * @typedef {import('markdown-table').Options} MarkdownTableOptions
1651
+ *
1652
+ * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
1653
+ * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
1654
+ * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
1655
+ *
1656
+ * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
1657
+ * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
1658
+ * @typedef {import('mdast-util-to-markdown').State} State
1659
+ * @typedef {import('mdast-util-to-markdown').Info} Info
1660
+ */
1661
+ /**
1662
+ * @typedef Options
1663
+ * Configuration.
1664
+ * @property {boolean | null | undefined} [tableCellPadding=true]
1665
+ * Whether to add a space of padding between delimiters and cells (default:
1666
+ * `true`).
1667
+ * @property {boolean | null | undefined} [tablePipeAlign=true]
1668
+ * Whether to align the delimiters (default: `true`).
1669
+ * @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]
1670
+ * Function to detect the length of table cell content, used when aligning
1671
+ * the delimiters between cells (optional).
1672
+ */
1673
+ /**
1674
+ * Create an extension for `mdast-util-from-markdown` to enable GFM tables in
1675
+ * markdown.
1676
+ *
1677
+ * @returns {FromMarkdownExtension}
1678
+ * Extension for `mdast-util-from-markdown` to enable GFM tables.
1679
+ */
1680
+ function gfmTableFromMarkdown() {
1681
+ return {
1682
+ enter: {
1683
+ table: enterTable,
1684
+ tableData: enterCell,
1685
+ tableHeader: enterCell,
1686
+ tableRow: enterRow
1687
+ },
1688
+ exit: {
1689
+ codeText: exitCodeText,
1690
+ table: exitTable,
1691
+ tableData: exit,
1692
+ tableHeader: exit,
1693
+ tableRow: exit
1694
+ }
1695
+ };
1696
+ }
1697
+ /**
1698
+ * @this {CompileContext}
1699
+ * @type {FromMarkdownHandle}
1700
+ */
1701
+ function enterTable(token) {
1702
+ const align = token._align;
1703
+ this.enter({
1704
+ type: "table",
1705
+ align: align.map(function(d) {
1706
+ return d === "none" ? null : d;
1707
+ }),
1708
+ children: []
1709
+ }, token);
1710
+ this.data.inTable = true;
1711
+ }
1712
+ /**
1713
+ * @this {CompileContext}
1714
+ * @type {FromMarkdownHandle}
1715
+ */
1716
+ function exitTable(token) {
1717
+ this.exit(token);
1718
+ this.data.inTable = void 0;
1719
+ }
1720
+ /**
1721
+ * @this {CompileContext}
1722
+ * @type {FromMarkdownHandle}
1723
+ */
1724
+ function enterRow(token) {
1725
+ this.enter({
1726
+ type: "tableRow",
1727
+ children: []
1728
+ }, token);
1729
+ }
1730
+ /**
1731
+ * @this {CompileContext}
1732
+ * @type {FromMarkdownHandle}
1733
+ */
1734
+ function exit(token) {
1735
+ this.exit(token);
1736
+ }
1737
+ /**
1738
+ * @this {CompileContext}
1739
+ * @type {FromMarkdownHandle}
1740
+ */
1741
+ function enterCell(token) {
1742
+ this.enter({
1743
+ type: "tableCell",
1744
+ children: []
1745
+ }, token);
1746
+ }
1747
+ /**
1748
+ * @this {CompileContext}
1749
+ * @type {FromMarkdownHandle}
1750
+ */
1751
+ function exitCodeText(token) {
1752
+ let value = this.resume();
1753
+ if (this.data.inTable) value = value.replace(/\\([\\|])/g, replace);
1754
+ const node = this.stack[this.stack.length - 1];
1755
+ node.type;
1756
+ node.value = value;
1757
+ this.exit(token);
1758
+ }
1759
+ /**
1760
+ * @param {string} $0
1761
+ * @param {string} $1
1762
+ * @returns {string}
1763
+ */
1764
+ function replace($0, $1) {
1765
+ return $1 === "|" ? $1 : $0;
1766
+ }
1767
+ /**
1768
+ * Create an extension for `mdast-util-to-markdown` to enable GFM tables in
1769
+ * markdown.
1770
+ *
1771
+ * @param {Options | null | undefined} [options]
1772
+ * Configuration.
1773
+ * @returns {ToMarkdownExtension}
1774
+ * Extension for `mdast-util-to-markdown` to enable GFM tables.
1775
+ */
1776
+ function gfmTableToMarkdown(options) {
1777
+ const settings = options || {};
1778
+ const padding = settings.tableCellPadding;
1779
+ const alignDelimiters = settings.tablePipeAlign;
1780
+ const stringLength = settings.stringLength;
1781
+ const around = padding ? " " : "|";
1782
+ return {
1783
+ unsafe: [
1784
+ {
1785
+ character: "\r",
1786
+ inConstruct: "tableCell"
1787
+ },
1788
+ {
1789
+ character: "\n",
1790
+ inConstruct: "tableCell"
1791
+ },
1792
+ {
1793
+ atBreak: true,
1794
+ character: "|",
1795
+ after: "[ :-]"
1796
+ },
1797
+ {
1798
+ character: "|",
1799
+ inConstruct: "tableCell"
1800
+ },
1801
+ {
1802
+ atBreak: true,
1803
+ character: ":",
1804
+ after: "-"
1805
+ },
1806
+ {
1807
+ atBreak: true,
1808
+ character: "-",
1809
+ after: "[:|-]"
1810
+ }
1811
+ ],
1812
+ handlers: {
1813
+ inlineCode: inlineCodeWithTable,
1814
+ table: handleTable,
1815
+ tableCell: handleTableCell,
1816
+ tableRow: handleTableRow
1817
+ }
1818
+ };
1819
+ /**
1820
+ * @type {ToMarkdownHandle}
1821
+ * @param {Table} node
1822
+ */
1823
+ function handleTable(node, _, state, info) {
1824
+ return serializeData(handleTableAsData(node, state, info), node.align);
1825
+ }
1826
+ /**
1827
+ * This function isn’t really used normally, because we handle rows at the
1828
+ * table level.
1829
+ * But, if someone passes in a table row, this ensures we make somewhat sense.
1830
+ *
1831
+ * @type {ToMarkdownHandle}
1832
+ * @param {TableRow} node
1833
+ */
1834
+ function handleTableRow(node, _, state, info) {
1835
+ const value = serializeData([handleTableRowAsData(node, state, info)]);
1836
+ return value.slice(0, value.indexOf("\n"));
1837
+ }
1838
+ /**
1839
+ * @type {ToMarkdownHandle}
1840
+ * @param {TableCell} node
1841
+ */
1842
+ function handleTableCell(node, _, state, info) {
1843
+ const exit = state.enter("tableCell");
1844
+ const subexit = state.enter("phrasing");
1845
+ const value = state.containerPhrasing(node, {
1846
+ ...info,
1847
+ before: around,
1848
+ after: around
1849
+ });
1850
+ subexit();
1851
+ exit();
1852
+ return value;
1853
+ }
1854
+ /**
1855
+ * @param {Array<Array<string>>} matrix
1856
+ * @param {Array<string | null | undefined> | null | undefined} [align]
1857
+ */
1858
+ function serializeData(matrix, align) {
1859
+ return markdownTable(matrix, {
1860
+ align,
1861
+ alignDelimiters,
1862
+ padding,
1863
+ stringLength
1864
+ });
1865
+ }
1866
+ /**
1867
+ * @param {Table} node
1868
+ * @param {State} state
1869
+ * @param {Info} info
1870
+ */
1871
+ function handleTableAsData(node, state, info) {
1872
+ const children = node.children;
1873
+ let index = -1;
1874
+ /** @type {Array<Array<string>>} */
1875
+ const result = [];
1876
+ const subexit = state.enter("table");
1877
+ while (++index < children.length) result[index] = handleTableRowAsData(children[index], state, info);
1878
+ subexit();
1879
+ return result;
1880
+ }
1881
+ /**
1882
+ * @param {TableRow} node
1883
+ * @param {State} state
1884
+ * @param {Info} info
1885
+ */
1886
+ function handleTableRowAsData(node, state, info) {
1887
+ const children = node.children;
1888
+ let index = -1;
1889
+ /** @type {Array<string>} */
1890
+ const result = [];
1891
+ const subexit = state.enter("tableRow");
1892
+ while (++index < children.length) result[index] = handleTableCell(children[index], node, state, info);
1893
+ subexit();
1894
+ return result;
1895
+ }
1896
+ /**
1897
+ * @type {ToMarkdownHandle}
1898
+ * @param {InlineCode} node
1899
+ */
1900
+ function inlineCodeWithTable(node, parent, state) {
1901
+ let value = handle.inlineCode(node, parent, state);
1902
+ if (state.stack.includes("tableCell")) value = value.replace(/\|/g, "\\$&");
1903
+ return value;
1904
+ }
1905
+ }
1906
+ //#endregion
1907
+ //#region ../../node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.js
1908
+ /**
1909
+ * @typedef {import('mdast').ListItem} ListItem
1910
+ * @typedef {import('mdast').Paragraph} Paragraph
1911
+ * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
1912
+ * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
1913
+ * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
1914
+ * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
1915
+ * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
1916
+ */
1917
+ /**
1918
+ * Create an extension for `mdast-util-from-markdown` to enable GFM task
1919
+ * list items in markdown.
1920
+ *
1921
+ * @returns {FromMarkdownExtension}
1922
+ * Extension for `mdast-util-from-markdown` to enable GFM task list items.
1923
+ */
1924
+ function gfmTaskListItemFromMarkdown() {
1925
+ return { exit: {
1926
+ taskListCheckValueChecked: exitCheck,
1927
+ taskListCheckValueUnchecked: exitCheck,
1928
+ paragraph: exitParagraphWithTaskListItem
1929
+ } };
1930
+ }
1931
+ /**
1932
+ * Create an extension for `mdast-util-to-markdown` to enable GFM task list
1933
+ * items in markdown.
1934
+ *
1935
+ * @returns {ToMarkdownExtension}
1936
+ * Extension for `mdast-util-to-markdown` to enable GFM task list items.
1937
+ */
1938
+ function gfmTaskListItemToMarkdown() {
1939
+ return {
1940
+ unsafe: [{
1941
+ atBreak: true,
1942
+ character: "-",
1943
+ after: "[:|-]"
1944
+ }],
1945
+ handlers: { listItem: listItemWithTaskListItem }
1946
+ };
1947
+ }
1948
+ /**
1949
+ * @this {CompileContext}
1950
+ * @type {FromMarkdownHandle}
1951
+ */
1952
+ function exitCheck(token) {
1953
+ const node = this.stack[this.stack.length - 2];
1954
+ node.type;
1955
+ node.checked = token.type === "taskListCheckValueChecked";
1956
+ }
1957
+ /**
1958
+ * @this {CompileContext}
1959
+ * @type {FromMarkdownHandle}
1960
+ */
1961
+ function exitParagraphWithTaskListItem(token) {
1962
+ const parent = this.stack[this.stack.length - 2];
1963
+ if (parent && parent.type === "listItem" && typeof parent.checked === "boolean") {
1964
+ const node = this.stack[this.stack.length - 1];
1965
+ node.type;
1966
+ const head = node.children[0];
1967
+ if (head && head.type === "text") {
1968
+ const siblings = parent.children;
1969
+ let index = -1;
1970
+ /** @type {Paragraph | undefined} */
1971
+ let firstParaghraph;
1972
+ while (++index < siblings.length) {
1973
+ const sibling = siblings[index];
1974
+ if (sibling.type === "paragraph") {
1975
+ firstParaghraph = sibling;
1976
+ break;
1977
+ }
1978
+ }
1979
+ if (firstParaghraph === node) {
1980
+ head.value = head.value.slice(1);
1981
+ if (head.value.length === 0) node.children.shift();
1982
+ else if (node.position && head.position && typeof head.position.start.offset === "number") {
1983
+ head.position.start.column++;
1984
+ head.position.start.offset++;
1985
+ node.position.start = Object.assign({}, head.position.start);
1986
+ }
1987
+ }
1988
+ }
1989
+ }
1990
+ this.exit(token);
1991
+ }
1992
+ /**
1993
+ * @type {ToMarkdownHandle}
1994
+ * @param {ListItem} node
1995
+ */
1996
+ function listItemWithTaskListItem(node, parent, state, info) {
1997
+ const head = node.children[0];
1998
+ const checkable = typeof node.checked === "boolean" && head && head.type === "paragraph";
1999
+ const checkbox = "[" + (node.checked ? "x" : " ") + "] ";
2000
+ const tracker = state.createTracker(info);
2001
+ if (checkable) tracker.move(checkbox);
2002
+ let value = handle.listItem(node, parent, state, {
2003
+ ...info,
2004
+ ...tracker.current()
2005
+ });
2006
+ if (checkable) value = value.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/, check);
2007
+ return value;
2008
+ /**
2009
+ * @param {string} $0
2010
+ * @returns {string}
2011
+ */
2012
+ function check($0) {
2013
+ return $0 + checkbox;
2014
+ }
2015
+ }
2016
+ //#endregion
2017
+ //#region ../../node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js
2018
+ /**
2019
+ * @import {Extension as FromMarkdownExtension} from 'mdast-util-from-markdown'
2020
+ * @import {Options} from 'mdast-util-gfm'
2021
+ * @import {Options as ToMarkdownExtension} from 'mdast-util-to-markdown'
2022
+ */
2023
+ /**
2024
+ * Create an extension for `mdast-util-from-markdown` to enable GFM (autolink
2025
+ * literals, footnotes, strikethrough, tables, tasklists).
2026
+ *
2027
+ * @returns {Array<FromMarkdownExtension>}
2028
+ * Extension for `mdast-util-from-markdown` to enable GFM (autolink literals,
2029
+ * footnotes, strikethrough, tables, tasklists).
2030
+ */
2031
+ function gfmFromMarkdown() {
2032
+ return [
2033
+ gfmAutolinkLiteralFromMarkdown(),
2034
+ gfmFootnoteFromMarkdown(),
2035
+ gfmStrikethroughFromMarkdown(),
2036
+ gfmTableFromMarkdown(),
2037
+ gfmTaskListItemFromMarkdown()
2038
+ ];
2039
+ }
2040
+ /**
2041
+ * Create an extension for `mdast-util-to-markdown` to enable GFM (autolink
2042
+ * literals, footnotes, strikethrough, tables, tasklists).
2043
+ *
2044
+ * @param {Options | null | undefined} [options]
2045
+ * Configuration (optional).
2046
+ * @returns {ToMarkdownExtension}
2047
+ * Extension for `mdast-util-to-markdown` to enable GFM (autolink literals,
2048
+ * footnotes, strikethrough, tables, tasklists).
2049
+ */
2050
+ function gfmToMarkdown(options) {
2051
+ return { extensions: [
2052
+ gfmAutolinkLiteralToMarkdown(),
2053
+ gfmFootnoteToMarkdown(options),
2054
+ gfmStrikethroughToMarkdown(),
2055
+ gfmTableToMarkdown(options),
2056
+ gfmTaskListItemToMarkdown()
2057
+ ] };
2058
+ }
2059
+ //#endregion
2060
+ export { gfmToMarkdown as n, gfmFromMarkdown as t };