@nocobase/plugin-block-markdown 2.2.0-beta.12 → 2.2.0-beta.14

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 (370) hide show
  1. package/dist/client/vditor/dist/index.css +45 -58
  2. package/dist/client/vditor/dist/index.d.ts +6 -0
  3. package/dist/client/vditor/dist/index.js +16004 -0
  4. package/dist/client/vditor/dist/index.min.js +1 -1
  5. package/dist/client/vditor/dist/js/echarts/echarts.min.js +24 -2
  6. package/dist/client/vditor/dist/js/highlight.js/LICENSE +29 -0
  7. package/dist/client/vditor/dist/js/highlight.js/highlight.min.js +3844 -0
  8. package/dist/client/vditor/dist/js/highlight.js/styles/a11y-dark.min.css +7 -0
  9. package/dist/client/vditor/dist/js/highlight.js/styles/a11y-light.min.css +7 -0
  10. package/dist/client/vditor/dist/js/highlight.js/styles/agate.min.css +20 -0
  11. package/dist/client/vditor/dist/js/highlight.js/styles/an-old-hope.min.css +9 -0
  12. package/dist/client/vditor/dist/js/highlight.js/styles/androidstudio.min.css +1 -0
  13. package/dist/client/vditor/dist/js/highlight.js/styles/ant-design.min.css +84 -0
  14. package/dist/client/vditor/dist/js/highlight.js/styles/arduino-light.min.css +1 -0
  15. package/dist/client/vditor/dist/js/highlight.js/styles/arta.min.css +1 -0
  16. package/dist/client/vditor/dist/js/highlight.js/styles/ascetic.min.css +1 -0
  17. package/dist/client/vditor/dist/js/highlight.js/styles/atom-one-dark-reasonable.min.css +1 -0
  18. package/dist/client/vditor/dist/js/highlight.js/styles/atom-one-dark.min.css +1 -0
  19. package/dist/client/vditor/dist/js/highlight.js/styles/atom-one-light.min.css +1 -0
  20. package/dist/client/vditor/dist/js/highlight.js/styles/base16/3024.min.css +7 -0
  21. package/dist/client/vditor/dist/js/highlight.js/styles/base16/apathy.min.css +7 -0
  22. package/dist/client/vditor/dist/js/highlight.js/styles/base16/apprentice.min.css +7 -0
  23. package/dist/client/vditor/dist/js/highlight.js/styles/base16/ashes.min.css +7 -0
  24. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-cave-light.min.css +7 -0
  25. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-cave.min.css +7 -0
  26. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-dune-light.min.css +7 -0
  27. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-dune.min.css +7 -0
  28. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-estuary-light.min.css +7 -0
  29. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-estuary.min.css +7 -0
  30. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-forest-light.min.css +7 -0
  31. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-forest.min.css +7 -0
  32. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-heath-light.min.css +7 -0
  33. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-heath.min.css +7 -0
  34. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-lakeside-light.min.css +7 -0
  35. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-lakeside.min.css +7 -0
  36. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-plateau-light.min.css +7 -0
  37. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-plateau.min.css +7 -0
  38. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-savanna-light.min.css +7 -0
  39. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-savanna.min.css +7 -0
  40. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-seaside-light.min.css +7 -0
  41. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-seaside.min.css +7 -0
  42. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-sulphurpool-light.min.css +7 -0
  43. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atelier-sulphurpool.min.css +7 -0
  44. package/dist/client/vditor/dist/js/highlight.js/styles/base16/atlas.min.css +7 -0
  45. package/dist/client/vditor/dist/js/highlight.js/styles/base16/bespin.min.css +7 -0
  46. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-bathory.min.css +7 -0
  47. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-burzum.min.css +7 -0
  48. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-dark-funeral.min.css +7 -0
  49. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-gorgoroth.min.css +7 -0
  50. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-immortal.min.css +7 -0
  51. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-khold.min.css +7 -0
  52. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-marduk.min.css +7 -0
  53. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-mayhem.min.css +7 -0
  54. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-nile.min.css +7 -0
  55. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal-venom.min.css +7 -0
  56. package/dist/client/vditor/dist/js/highlight.js/styles/base16/black-metal.min.css +7 -0
  57. package/dist/client/vditor/dist/js/highlight.js/styles/base16/brewer.min.css +7 -0
  58. package/dist/client/vditor/dist/js/highlight.js/styles/base16/bright.min.css +7 -0
  59. package/dist/client/vditor/dist/js/highlight.js/styles/base16/brogrammer.min.css +7 -0
  60. package/dist/client/vditor/dist/js/highlight.js/styles/base16/brush-trees-dark.min.css +7 -0
  61. package/dist/client/vditor/dist/js/highlight.js/styles/base16/brush-trees.min.css +7 -0
  62. package/dist/client/vditor/dist/js/highlight.js/styles/base16/chalk.min.css +7 -0
  63. package/dist/client/vditor/dist/js/highlight.js/styles/base16/circus.min.css +7 -0
  64. package/dist/client/vditor/dist/js/highlight.js/styles/base16/classic-dark.min.css +7 -0
  65. package/dist/client/vditor/dist/js/highlight.js/styles/base16/classic-light.min.css +7 -0
  66. package/dist/client/vditor/dist/js/highlight.js/styles/base16/codeschool.min.css +7 -0
  67. package/dist/client/vditor/dist/js/highlight.js/styles/base16/colors.min.css +7 -0
  68. package/dist/client/vditor/dist/js/highlight.js/styles/base16/cupcake.min.css +7 -0
  69. package/dist/client/vditor/dist/js/highlight.js/styles/base16/cupertino.min.css +7 -0
  70. package/dist/client/vditor/dist/js/highlight.js/styles/base16/danqing.min.css +7 -0
  71. package/dist/client/vditor/dist/js/highlight.js/styles/base16/darcula.min.css +7 -0
  72. package/dist/client/vditor/dist/js/highlight.js/styles/base16/dark-violet.min.css +7 -0
  73. package/dist/client/vditor/dist/js/highlight.js/styles/base16/darkmoss.min.css +7 -0
  74. package/dist/client/vditor/dist/js/highlight.js/styles/base16/darktooth.min.css +7 -0
  75. package/dist/client/vditor/dist/js/highlight.js/styles/base16/decaf.min.css +7 -0
  76. package/dist/client/vditor/dist/js/highlight.js/styles/base16/default-dark.min.css +7 -0
  77. package/dist/client/vditor/dist/js/highlight.js/styles/base16/default-light.min.css +7 -0
  78. package/dist/client/vditor/dist/js/highlight.js/styles/base16/dirtysea.min.css +7 -0
  79. package/dist/client/vditor/dist/js/highlight.js/styles/base16/dracula.min.css +7 -0
  80. package/dist/client/vditor/dist/js/highlight.js/styles/base16/edge-dark.min.css +7 -0
  81. package/dist/client/vditor/dist/js/highlight.js/styles/base16/edge-light.min.css +7 -0
  82. package/dist/client/vditor/dist/js/highlight.js/styles/base16/eighties.min.css +7 -0
  83. package/dist/client/vditor/dist/js/highlight.js/styles/base16/embers.min.css +7 -0
  84. package/dist/client/vditor/dist/js/highlight.js/styles/base16/equilibrium-dark.min.css +7 -0
  85. package/dist/client/vditor/dist/js/highlight.js/styles/base16/equilibrium-gray-dark.min.css +7 -0
  86. package/dist/client/vditor/dist/js/highlight.js/styles/base16/equilibrium-gray-light.min.css +7 -0
  87. package/dist/client/vditor/dist/js/highlight.js/styles/base16/equilibrium-light.min.css +7 -0
  88. package/dist/client/vditor/dist/js/highlight.js/styles/base16/espresso.min.css +7 -0
  89. package/dist/client/vditor/dist/js/highlight.js/styles/base16/eva-dim.min.css +7 -0
  90. package/dist/client/vditor/dist/js/highlight.js/styles/base16/eva.min.css +7 -0
  91. package/dist/client/vditor/dist/js/highlight.js/styles/base16/flat.min.css +7 -0
  92. package/dist/client/vditor/dist/js/highlight.js/styles/base16/framer.min.css +7 -0
  93. package/dist/client/vditor/dist/js/highlight.js/styles/base16/fruit-soda.min.css +7 -0
  94. package/dist/client/vditor/dist/js/highlight.js/styles/base16/gigavolt.min.css +7 -0
  95. package/dist/client/vditor/dist/js/highlight.js/styles/base16/github.min.css +7 -0
  96. package/dist/client/vditor/dist/js/highlight.js/styles/base16/google-dark.min.css +7 -0
  97. package/dist/client/vditor/dist/js/highlight.js/styles/base16/google-light.min.css +7 -0
  98. package/dist/client/vditor/dist/js/highlight.js/styles/base16/grayscale-dark.min.css +7 -0
  99. package/dist/client/vditor/dist/js/highlight.js/styles/base16/grayscale-light.min.css +7 -0
  100. package/dist/client/vditor/dist/js/highlight.js/styles/base16/green-screen.min.css +7 -0
  101. package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-dark-hard.min.css +7 -0
  102. package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-dark-medium.min.css +7 -0
  103. package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-dark-pale.min.css +7 -0
  104. package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-dark-soft.min.css +7 -0
  105. package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-light-hard.min.css +7 -0
  106. package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-light-medium.min.css +7 -0
  107. package/dist/client/vditor/dist/js/highlight.js/styles/base16/gruvbox-light-soft.min.css +7 -0
  108. package/dist/client/vditor/dist/js/highlight.js/styles/base16/hardcore.min.css +7 -0
  109. package/dist/client/vditor/dist/js/highlight.js/styles/base16/harmonic16-dark.min.css +7 -0
  110. package/dist/client/vditor/dist/js/highlight.js/styles/base16/harmonic16-light.min.css +7 -0
  111. package/dist/client/vditor/dist/js/highlight.js/styles/base16/heetch-dark.min.css +7 -0
  112. package/dist/client/vditor/dist/js/highlight.js/styles/base16/heetch-light.min.css +7 -0
  113. package/dist/client/vditor/dist/js/highlight.js/styles/base16/helios.min.css +7 -0
  114. package/dist/client/vditor/dist/js/highlight.js/styles/base16/hopscotch.min.css +7 -0
  115. package/dist/client/vditor/dist/js/highlight.js/styles/base16/horizon-dark.min.css +7 -0
  116. package/dist/client/vditor/dist/js/highlight.js/styles/base16/horizon-light.min.css +7 -0
  117. package/dist/client/vditor/dist/js/highlight.js/styles/base16/humanoid-dark.min.css +7 -0
  118. package/dist/client/vditor/dist/js/highlight.js/styles/base16/humanoid-light.min.css +7 -0
  119. package/dist/client/vditor/dist/js/highlight.js/styles/base16/ia-dark.min.css +7 -0
  120. package/dist/client/vditor/dist/js/highlight.js/styles/base16/ia-light.min.css +7 -0
  121. package/dist/client/vditor/dist/js/highlight.js/styles/base16/icy-dark.min.css +7 -0
  122. package/dist/client/vditor/dist/js/highlight.js/styles/base16/ir-black.min.css +7 -0
  123. package/dist/client/vditor/dist/js/highlight.js/styles/base16/isotope.min.css +7 -0
  124. package/dist/client/vditor/dist/js/highlight.js/styles/base16/kimber.min.css +7 -0
  125. package/dist/client/vditor/dist/js/highlight.js/styles/base16/london-tube.min.css +7 -0
  126. package/dist/client/vditor/dist/js/highlight.js/styles/base16/macintosh.min.css +7 -0
  127. package/dist/client/vditor/dist/js/highlight.js/styles/base16/marrakesh.min.css +7 -0
  128. package/dist/client/vditor/dist/js/highlight.js/styles/base16/materia.min.css +7 -0
  129. package/dist/client/vditor/dist/js/highlight.js/styles/base16/material-darker.min.css +7 -0
  130. package/dist/client/vditor/dist/js/highlight.js/styles/base16/material-lighter.min.css +7 -0
  131. package/dist/client/vditor/dist/js/highlight.js/styles/base16/material-palenight.min.css +7 -0
  132. package/dist/client/vditor/dist/js/highlight.js/styles/base16/material-vivid.min.css +7 -0
  133. package/dist/client/vditor/dist/js/highlight.js/styles/base16/material.min.css +7 -0
  134. package/dist/client/vditor/dist/js/highlight.js/styles/base16/mellow-purple.min.css +7 -0
  135. package/dist/client/vditor/dist/js/highlight.js/styles/base16/mexico-light.min.css +7 -0
  136. package/dist/client/vditor/dist/js/highlight.js/styles/base16/mocha.min.css +7 -0
  137. package/dist/client/vditor/dist/js/highlight.js/styles/base16/monokai.min.css +7 -0
  138. package/dist/client/vditor/dist/js/highlight.js/styles/base16/nebula.min.css +7 -0
  139. package/dist/client/vditor/dist/js/highlight.js/styles/base16/nord.min.css +7 -0
  140. package/dist/client/vditor/dist/js/highlight.js/styles/base16/nova.min.css +7 -0
  141. package/dist/client/vditor/dist/js/highlight.js/styles/base16/ocean.min.css +7 -0
  142. package/dist/client/vditor/dist/js/highlight.js/styles/base16/oceanicnext.min.css +7 -0
  143. package/dist/client/vditor/dist/js/highlight.js/styles/base16/one-light.min.css +7 -0
  144. package/dist/client/vditor/dist/js/highlight.js/styles/base16/onedark.min.css +7 -0
  145. package/dist/client/vditor/dist/js/highlight.js/styles/base16/outrun-dark.min.css +7 -0
  146. package/dist/client/vditor/dist/js/highlight.js/styles/base16/papercolor-dark.min.css +7 -0
  147. package/dist/client/vditor/dist/js/highlight.js/styles/base16/papercolor-light.min.css +7 -0
  148. package/dist/client/vditor/dist/js/highlight.js/styles/base16/paraiso.min.css +7 -0
  149. package/dist/client/vditor/dist/js/highlight.js/styles/base16/pasque.min.css +7 -0
  150. package/dist/client/vditor/dist/js/highlight.js/styles/base16/phd.min.css +7 -0
  151. package/dist/client/vditor/dist/js/highlight.js/styles/base16/pico.min.css +7 -0
  152. package/dist/client/vditor/dist/js/highlight.js/styles/base16/pop.min.css +7 -0
  153. package/dist/client/vditor/dist/js/highlight.js/styles/base16/porple.min.css +7 -0
  154. package/dist/client/vditor/dist/js/highlight.js/styles/base16/qualia.min.css +7 -0
  155. package/dist/client/vditor/dist/js/highlight.js/styles/base16/railscasts.min.css +7 -0
  156. package/dist/client/vditor/dist/js/highlight.js/styles/base16/rebecca.min.css +7 -0
  157. package/dist/client/vditor/dist/js/highlight.js/styles/base16/ros-pine-dawn.min.css +7 -0
  158. package/dist/client/vditor/dist/js/highlight.js/styles/base16/ros-pine-moon.min.css +7 -0
  159. package/dist/client/vditor/dist/js/highlight.js/styles/base16/ros-pine.min.css +7 -0
  160. package/dist/client/vditor/dist/js/highlight.js/styles/base16/sagelight.min.css +7 -0
  161. package/dist/client/vditor/dist/js/highlight.js/styles/base16/sandcastle.min.css +7 -0
  162. package/dist/client/vditor/dist/js/highlight.js/styles/base16/seti-ui.min.css +7 -0
  163. package/dist/client/vditor/dist/js/highlight.js/styles/base16/shapeshifter.min.css +7 -0
  164. package/dist/client/vditor/dist/js/highlight.js/styles/base16/silk-dark.min.css +7 -0
  165. package/dist/client/vditor/dist/js/highlight.js/styles/base16/silk-light.min.css +7 -0
  166. package/dist/client/vditor/dist/js/highlight.js/styles/base16/snazzy.min.css +7 -0
  167. package/dist/client/vditor/dist/js/highlight.js/styles/base16/solar-flare-light.min.css +7 -0
  168. package/dist/client/vditor/dist/js/highlight.js/styles/base16/solar-flare.min.css +7 -0
  169. package/dist/client/vditor/dist/js/highlight.js/styles/base16/solarized-dark.min.css +7 -0
  170. package/dist/client/vditor/dist/js/highlight.js/styles/base16/solarized-light.min.css +7 -0
  171. package/dist/client/vditor/dist/js/highlight.js/styles/base16/spacemacs.min.css +7 -0
  172. package/dist/client/vditor/dist/js/highlight.js/styles/base16/summercamp.min.css +7 -0
  173. package/dist/client/vditor/dist/js/highlight.js/styles/base16/summerfruit-dark.min.css +7 -0
  174. package/dist/client/vditor/dist/js/highlight.js/styles/base16/summerfruit-light.min.css +7 -0
  175. package/dist/client/vditor/dist/js/highlight.js/styles/base16/synth-midnight-terminal-dark.min.css +7 -0
  176. package/dist/client/vditor/dist/js/highlight.js/styles/base16/synth-midnight-terminal-light.min.css +7 -0
  177. package/dist/client/vditor/dist/js/highlight.js/styles/base16/tango.min.css +7 -0
  178. package/dist/client/vditor/dist/js/highlight.js/styles/base16/tender.min.css +7 -0
  179. package/dist/client/vditor/dist/js/highlight.js/styles/base16/tomorrow-night.min.css +7 -0
  180. package/dist/client/vditor/dist/js/highlight.js/styles/base16/tomorrow.min.css +7 -0
  181. package/dist/client/vditor/dist/js/highlight.js/styles/base16/twilight.min.css +7 -0
  182. package/dist/client/vditor/dist/js/highlight.js/styles/base16/unikitty-dark.min.css +7 -0
  183. package/dist/client/vditor/dist/js/highlight.js/styles/base16/unikitty-light.min.css +7 -0
  184. package/dist/client/vditor/dist/js/highlight.js/styles/base16/vulcan.min.css +7 -0
  185. package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-10-light.min.css +7 -0
  186. package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-10.min.css +7 -0
  187. package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-95-light.min.css +7 -0
  188. package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-95.min.css +7 -0
  189. package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-high-contrast-light.min.css +7 -0
  190. package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-high-contrast.min.css +7 -0
  191. package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-nt-light.min.css +7 -0
  192. package/dist/client/vditor/dist/js/highlight.js/styles/base16/windows-nt.min.css +7 -0
  193. package/dist/client/vditor/dist/js/highlight.js/styles/base16/woodland.min.css +7 -0
  194. package/dist/client/vditor/dist/js/highlight.js/styles/base16/xcode-dusk.min.css +7 -0
  195. package/dist/client/vditor/dist/js/highlight.js/styles/base16/zenburn.min.css +7 -0
  196. package/dist/client/vditor/dist/js/highlight.js/styles/brown-paper.min.css +1 -0
  197. package/dist/client/vditor/dist/js/highlight.js/styles/brown-papersq.png +0 -0
  198. package/dist/client/vditor/dist/js/highlight.js/styles/codepen-embed.min.css +1 -0
  199. package/dist/client/vditor/dist/js/highlight.js/styles/color-brewer.min.css +1 -0
  200. package/dist/client/vditor/dist/js/highlight.js/styles/dark.min.css +1 -0
  201. package/dist/client/vditor/dist/js/highlight.js/styles/default.min.css +9 -0
  202. package/dist/client/vditor/dist/js/highlight.js/styles/devibeans.min.css +7 -0
  203. package/dist/client/vditor/dist/js/highlight.js/styles/docco.min.css +1 -0
  204. package/dist/client/vditor/dist/js/highlight.js/styles/far.min.css +1 -0
  205. package/dist/client/vditor/dist/js/highlight.js/styles/felipec.min.css +7 -0
  206. package/dist/client/vditor/dist/js/highlight.js/styles/foundation.min.css +1 -0
  207. package/dist/client/vditor/dist/js/highlight.js/styles/github-dark-dimmed.min.css +9 -0
  208. package/dist/client/vditor/dist/js/highlight.js/styles/github-dark.min.css +10 -0
  209. package/dist/client/vditor/dist/js/highlight.js/styles/github.min.css +10 -0
  210. package/dist/client/vditor/dist/js/highlight.js/styles/gml.min.css +1 -0
  211. package/dist/client/vditor/dist/js/highlight.js/styles/googlecode.min.css +1 -0
  212. package/dist/client/vditor/dist/js/highlight.js/styles/gradient-dark.min.css +1 -0
  213. package/dist/client/vditor/dist/js/highlight.js/styles/gradient-light.min.css +1 -0
  214. package/dist/client/vditor/dist/js/highlight.js/styles/grayscale.min.css +1 -0
  215. package/dist/client/vditor/dist/js/highlight.js/styles/hybrid.min.css +1 -0
  216. package/dist/client/vditor/dist/js/highlight.js/styles/idea.min.css +1 -0
  217. package/dist/client/vditor/dist/js/highlight.js/styles/intellij-light.min.css +1 -0
  218. package/dist/client/vditor/dist/js/highlight.js/styles/ir-black.min.css +1 -0
  219. package/dist/client/vditor/dist/js/highlight.js/styles/isbl-editor-dark.min.css +1 -0
  220. package/dist/client/vditor/dist/js/highlight.js/styles/isbl-editor-light.min.css +1 -0
  221. package/dist/client/vditor/dist/js/highlight.js/styles/kimbie-dark.min.css +1 -0
  222. package/dist/client/vditor/dist/js/highlight.js/styles/kimbie-light.min.css +1 -0
  223. package/dist/client/vditor/dist/js/highlight.js/styles/lightfair.min.css +1 -0
  224. package/dist/client/vditor/dist/js/highlight.js/styles/lioshi.min.css +1 -0
  225. package/dist/client/vditor/dist/js/highlight.js/styles/magula.min.css +1 -0
  226. package/dist/client/vditor/dist/js/highlight.js/styles/mono-blue.min.css +1 -0
  227. package/dist/client/vditor/dist/js/highlight.js/styles/monokai-sublime.min.css +1 -0
  228. package/dist/client/vditor/dist/js/highlight.js/styles/monokai.min.css +1 -0
  229. package/dist/client/vditor/dist/js/highlight.js/styles/night-owl.min.css +1 -0
  230. package/dist/client/vditor/dist/js/highlight.js/styles/nnfx-dark.min.css +10 -0
  231. package/dist/client/vditor/dist/js/highlight.js/styles/nnfx-light.min.css +10 -0
  232. package/dist/client/vditor/dist/js/highlight.js/styles/nord.min.css +1 -0
  233. package/dist/client/vditor/dist/js/highlight.js/styles/obsidian.min.css +1 -0
  234. package/dist/client/vditor/dist/js/highlight.js/styles/panda-syntax-dark.min.css +1 -0
  235. package/dist/client/vditor/dist/js/highlight.js/styles/panda-syntax-light.min.css +1 -0
  236. package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-dark.min.css +1 -0
  237. package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-light.min.css +1 -0
  238. package/dist/client/vditor/dist/js/highlight.js/styles/pojoaque.jpg +0 -0
  239. package/dist/client/vditor/dist/js/highlight.js/styles/pojoaque.min.css +1 -0
  240. package/dist/client/vditor/dist/js/highlight.js/styles/purebasic.min.css +1 -0
  241. package/dist/client/vditor/dist/js/highlight.js/styles/qtcreator-dark.min.css +1 -0
  242. package/dist/client/vditor/dist/js/highlight.js/styles/qtcreator-light.min.css +1 -0
  243. package/dist/client/vditor/dist/js/highlight.js/styles/rainbow.min.css +1 -0
  244. package/dist/client/vditor/dist/js/highlight.js/styles/routeros.min.css +1 -0
  245. package/dist/client/vditor/dist/js/highlight.js/styles/school-book.min.css +1 -0
  246. package/dist/client/vditor/dist/js/highlight.js/styles/shades-of-purple.min.css +1 -0
  247. package/dist/client/vditor/dist/js/highlight.js/styles/srcery.min.css +1 -0
  248. package/dist/client/vditor/dist/js/highlight.js/styles/stackoverflow-dark.min.css +13 -0
  249. package/dist/client/vditor/dist/js/highlight.js/styles/stackoverflow-light.min.css +13 -0
  250. package/dist/client/vditor/dist/js/highlight.js/styles/sunburst.min.css +1 -0
  251. package/dist/client/vditor/dist/js/highlight.js/styles/tokyo-night-dark.min.css +8 -0
  252. package/dist/client/vditor/dist/js/highlight.js/styles/tokyo-night-light.min.css +8 -0
  253. package/dist/client/vditor/dist/js/highlight.js/styles/tomorrow-night-blue.min.css +1 -0
  254. package/dist/client/vditor/dist/js/highlight.js/styles/tomorrow-night-bright.min.css +1 -0
  255. package/dist/client/vditor/dist/js/highlight.js/styles/vs.min.css +1 -0
  256. package/dist/client/vditor/dist/js/highlight.js/styles/vs2015.min.css +1 -0
  257. package/dist/client/vditor/dist/js/highlight.js/styles/xcode.min.css +1 -0
  258. package/dist/client/vditor/dist/js/highlight.js/styles/xt256.min.css +1 -0
  259. package/dist/client/vditor/dist/js/highlight.js/third-languages.js +144 -0
  260. package/dist/client/vditor/dist/js/i18n/de_DE.js +95 -0
  261. package/dist/client/vditor/dist/js/i18n/en_US.js +3 -2
  262. package/dist/client/vditor/dist/js/i18n/es_ES.js +95 -0
  263. package/dist/client/vditor/dist/js/i18n/fr_FR.js +1 -0
  264. package/dist/client/vditor/dist/js/i18n/ja_JP.js +1 -0
  265. package/dist/client/vditor/dist/js/i18n/ko_KR.js +1 -0
  266. package/dist/client/vditor/dist/js/i18n/pt_BR.js +1 -0
  267. package/dist/client/vditor/dist/js/i18n/ru_RU.js +7 -6
  268. package/dist/client/vditor/dist/js/i18n/sv_SE.js +1 -0
  269. package/dist/client/vditor/dist/js/i18n/vi_VN.js +95 -0
  270. package/dist/client/vditor/dist/js/i18n/zh_CN.js +1 -0
  271. package/dist/client/vditor/dist/js/i18n/zh_TW.js +1 -0
  272. package/dist/client/vditor/dist/js/icons/ant.js +1 -1
  273. package/dist/client/vditor/dist/js/icons/material.js +3 -3
  274. package/dist/client/vditor/dist/js/lute/lute.min.js +72 -71
  275. package/dist/client/vditor/dist/js/mermaid/mermaid.min.js +1592 -744
  276. package/dist/client/vditor/dist/js/smiles-drawer/smiles-drawer.min.js +80 -0
  277. package/dist/client/vditor/dist/method.d.ts +8 -7
  278. package/dist/client/vditor/dist/method.js +2682 -0
  279. package/dist/client/vditor/dist/method.min.js +1 -1
  280. package/dist/client/vditor/dist/ts/constants.d.ts +1 -1
  281. package/dist/client/vditor/dist/ts/export/index.d.ts +0 -1
  282. package/dist/client/vditor/dist/ts/ir/expandMarker.d.ts +0 -1
  283. package/dist/client/vditor/dist/ts/ir/highlightToolbarIR.d.ts +0 -1
  284. package/dist/client/vditor/dist/ts/ir/input.d.ts +0 -1
  285. package/dist/client/vditor/dist/ts/ir/process.d.ts +0 -1
  286. package/dist/client/vditor/dist/ts/ir/processKeydown.d.ts +0 -1
  287. package/dist/client/vditor/dist/ts/markdown/SMILESRender.d.ts +1 -0
  288. package/dist/client/vditor/dist/ts/markdown/adapterRender.d.ts +8 -4
  289. package/dist/client/vditor/dist/ts/markdown/codeRender.d.ts +0 -1
  290. package/dist/client/vditor/dist/ts/markdown/getHTML.d.ts +0 -1
  291. package/dist/client/vditor/dist/ts/markdown/getMarkdown.d.ts +0 -1
  292. package/dist/client/vditor/dist/ts/markdown/highlightRender.d.ts +0 -1
  293. package/dist/client/vditor/dist/ts/markdown/markmapRender.d.ts +1 -1
  294. package/dist/client/vditor/dist/ts/markdown/mathRender.d.ts +1 -2
  295. package/dist/client/vditor/dist/ts/markdown/mermaidRender.d.ts +1 -1
  296. package/dist/client/vditor/dist/ts/markdown/outlineRender.d.ts +0 -1
  297. package/dist/client/vditor/dist/ts/markdown/previewRender.d.ts +0 -1
  298. package/dist/client/vditor/dist/ts/markdown/setLute.d.ts +0 -1
  299. package/dist/client/vditor/dist/ts/markdown/speechRender.d.ts +0 -1
  300. package/dist/client/vditor/dist/ts/preview/image.d.ts +0 -1
  301. package/dist/client/vditor/dist/ts/sv/inputEvent.d.ts +0 -1
  302. package/dist/client/vditor/dist/ts/sv/process.d.ts +0 -1
  303. package/dist/client/vditor/dist/ts/sv/processKeydown.d.ts +0 -1
  304. package/dist/client/vditor/dist/ts/toolbar/index.d.ts +1 -0
  305. package/dist/client/vditor/dist/ts/toolbar/setToolbar.d.ts +0 -1
  306. package/dist/client/vditor/dist/ts/ui/initUI.d.ts +0 -6
  307. package/dist/client/vditor/dist/ts/ui/setPreviewMode.d.ts +0 -1
  308. package/dist/client/vditor/dist/ts/ui/setTheme.d.ts +0 -1
  309. package/dist/client/vditor/dist/ts/upload/getElement.d.ts +0 -1
  310. package/dist/client/vditor/dist/ts/upload/index.d.ts +0 -1
  311. package/dist/client/vditor/dist/ts/upload/setHeaders.d.ts +0 -1
  312. package/dist/client/vditor/dist/ts/util/editorCommonEvent.d.ts +0 -1
  313. package/dist/client/vditor/dist/ts/util/fixBrowserBehavior.d.ts +0 -1
  314. package/dist/client/vditor/dist/ts/util/function.d.ts +1 -0
  315. package/dist/client/vditor/dist/ts/util/highlightToolbar.d.ts +0 -1
  316. package/dist/client/vditor/dist/ts/util/processCode.d.ts +0 -1
  317. package/dist/client/vditor/dist/ts/util/selection.d.ts +0 -1
  318. package/dist/client/vditor/dist/ts/util/toc.d.ts +0 -1
  319. package/dist/client/vditor/dist/ts/wysiwyg/afterRenderEvent.d.ts +0 -1
  320. package/dist/client/vditor/dist/ts/wysiwyg/highlightToolbarWYSIWYG.d.ts +0 -1
  321. package/dist/client/vditor/dist/ts/wysiwyg/inlineTag.d.ts +0 -1
  322. package/dist/client/vditor/dist/ts/wysiwyg/input.d.ts +0 -1
  323. package/dist/client/vditor/dist/ts/wysiwyg/processKeydown.d.ts +0 -1
  324. package/dist/client/vditor/dist/ts/wysiwyg/renderDomByMd.d.ts +0 -1
  325. package/dist/client/vditor/dist/ts/wysiwyg/setHeading.d.ts +0 -1
  326. package/dist/client/vditor/dist/ts/wysiwyg/showCode.d.ts +0 -1
  327. package/dist/client/vditor/dist/ts/wysiwyg/toolbarEvent.d.ts +0 -1
  328. package/dist/client/vditor/dist/types/index.d.ts +61 -6
  329. package/dist/externalVersion.js +4 -4
  330. package/package.json +2 -2
  331. package/dist/client/vditor/dist/js/highlight.js/highlight.pack.js +0 -1626
  332. package/dist/client/vditor/dist/js/highlight.js/solidity.min.js +0 -82
  333. package/dist/client/vditor/dist/js/highlight.js/styles/abap.css +0 -155
  334. package/dist/client/vditor/dist/js/highlight.js/styles/algol.css +0 -143
  335. package/dist/client/vditor/dist/js/highlight.js/styles/algol_nu.css +0 -90
  336. package/dist/client/vditor/dist/js/highlight.js/styles/ant-design.css +0 -469
  337. package/dist/client/vditor/dist/js/highlight.js/styles/arduino.css +0 -157
  338. package/dist/client/vditor/dist/js/highlight.js/styles/autumn.css +0 -138
  339. package/dist/client/vditor/dist/js/highlight.js/styles/borland.css +0 -147
  340. package/dist/client/vditor/dist/js/highlight.js/styles/bw.css +0 -150
  341. package/dist/client/vditor/dist/js/highlight.js/styles/colorful.css +0 -158
  342. package/dist/client/vditor/dist/js/highlight.js/styles/dracula.css +0 -140
  343. package/dist/client/vditor/dist/js/highlight.js/styles/emacs.css +0 -167
  344. package/dist/client/vditor/dist/js/highlight.js/styles/friendly.css +0 -183
  345. package/dist/client/vditor/dist/js/highlight.js/styles/fruity.css +0 -123
  346. package/dist/client/vditor/dist/js/highlight.js/styles/github.css +0 -174
  347. package/dist/client/vditor/dist/js/highlight.js/styles/igor.css +0 -124
  348. package/dist/client/vditor/dist/js/highlight.js/styles/lovelace.css +0 -146
  349. package/dist/client/vditor/dist/js/highlight.js/styles/manni.css +0 -139
  350. package/dist/client/vditor/dist/js/highlight.js/styles/monokai.css +0 -132
  351. package/dist/client/vditor/dist/js/highlight.js/styles/monokailight.css +0 -180
  352. package/dist/client/vditor/dist/js/highlight.js/styles/murphy.css +0 -144
  353. package/dist/client/vditor/dist/js/highlight.js/styles/native.css +0 -164
  354. package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-dark.css +0 -137
  355. package/dist/client/vditor/dist/js/highlight.js/styles/paraiso-light.css +0 -136
  356. package/dist/client/vditor/dist/js/highlight.js/styles/pastie.css +0 -180
  357. package/dist/client/vditor/dist/js/highlight.js/styles/perldoc.css +0 -141
  358. package/dist/client/vditor/dist/js/highlight.js/styles/pygments.css +0 -159
  359. package/dist/client/vditor/dist/js/highlight.js/styles/rainbow_dash.css +0 -164
  360. package/dist/client/vditor/dist/js/highlight.js/styles/rrt.css +0 -159
  361. package/dist/client/vditor/dist/js/highlight.js/styles/solarized-dark.css +0 -146
  362. package/dist/client/vditor/dist/js/highlight.js/styles/solarized-dark256.css +0 -146
  363. package/dist/client/vditor/dist/js/highlight.js/styles/solarized-light.css +0 -163
  364. package/dist/client/vditor/dist/js/highlight.js/styles/swapoff.css +0 -144
  365. package/dist/client/vditor/dist/js/highlight.js/styles/tango.css +0 -183
  366. package/dist/client/vditor/dist/js/highlight.js/styles/trac.css +0 -167
  367. package/dist/client/vditor/dist/js/highlight.js/styles/vim.css +0 -144
  368. package/dist/client/vditor/dist/js/highlight.js/styles/vs.css +0 -113
  369. package/dist/client/vditor/dist/js/highlight.js/styles/xcode.css +0 -174
  370. package/dist/client/vditor/dist/js/highlight.js/yul.min.js +0 -39
@@ -7,4 +7,4 @@
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
9
 
10
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Vditor=t():e.Vditor=t()}(this,(()=>(()=>{"use strict";var e={54:(e,t,n)=>{n.d(t,{g:()=>r});var r=function(){function e(){}return e.ZWSP="​",e.DROP_EDITOR="application/editor",e.MOBILE_WIDTH=520,e.CLASS_MENU_DISABLED="vditor-menu--disabled",e.EDIT_TOOLBARS=["emoji","headings","bold","italic","strike","link","list","ordered-list","outdent","indent","check","line","quote","code","inline-code","insert-after","insert-before","upload","record","table"],e.CODE_THEME=["abap","algol","algol_nu","arduino","autumn","borland","bw","colorful","dracula","emacs","friendly","fruity","github","igor","lovelace","manni","monokai","monokailight","murphy","native","paraiso-dark","paraiso-light","pastie","perldoc","pygments","rainbow_dash","rrt","solarized-dark","solarized-dark256","solarized-light","swapoff","tango","trac","vim","vs","xcode","ant-design"],e.CODE_LANGUAGES=["mermaid","echarts","mindmap","plantuml","abc","graphviz","flowchart","apache","js","ts","html","markmap","properties","apache","bash","c","csharp","cpp","css","coffeescript","diff","go","xml","http","json","java","javascript","kotlin","less","lua","makefile","markdown","nginx","objectivec","php","php-template","perl","plaintext","python","python-repl","r","ruby","rust","scss","sql","shell","swift","ini","typescript","vbnet","yaml","ada","clojure","dart","erb","fortran","gradle","haskell","julia","julia-repl","lisp","matlab","pgsql","powershell","sql_more","stata","cmake","mathematica","solidity","yul"],e.CDN="https://unpkg.com/vditor@3.10.4",e.MARKDOWN_OPTIONS={autoSpace:!1,gfmAutoLink:!0,codeBlockPreview:!0,fixTermTypo:!1,footnotes:!0,linkBase:"",linkPrefix:"",listStyle:!1,mark:!1,mathBlockPreview:!0,paragraphBeginningSpace:!1,sanitize:!0,toc:!1},e.HLJS_OPTIONS={enable:!0,lineNumber:!1,defaultLang:"",style:"github"},e.MATH_OPTIONS={engine:"KaTeX",inlineDigit:!1,macros:{}},e.THEME_OPTIONS={current:"light",list:{"ant-design":"Ant Design",dark:"Dark",light:"Light",wechat:"WeChat"},path:e.CDN+"/dist/css/content-theme"},e}()},478:(e,t,n)=>{n.d(t,{Q:()=>o});var r=n(54),i=n(526),a=n(156),o=function(e,t){void 0===e&&(e=document),void 0===t&&(t=r.g.CDN);var n=a.abcRenderAdapter.getElements(e);n.length>0&&(0,i.G)(t+"/dist/js/abcjs/abcjs_basic.min.js","vditorAbcjsScript").then((function(){n.forEach((function(e){e.parentElement.classList.contains("vditor-wysiwyg__pre")||e.parentElement.classList.contains("vditor-ir__marker--pre")||"true"!==e.getAttribute("data-processed")&&(ABCJS.renderAbc(e,a.abcRenderAdapter.getCode(e).trim()),e.style.overflowX="auto",e.setAttribute("data-processed","true"))}))}))}},156:(e,t,n)=>{n.r(t),n.d(t,{abcRenderAdapter:()=>c,chartRenderAdapter:()=>s,flowchartRenderAdapter:()=>d,graphvizRenderAdapter:()=>l,markmapRenderAdapter:()=>a,mathRenderAdapter:()=>r,mermaidRenderAdapter:()=>i,mindmapRenderAdapter:()=>o,plantumlRenderAdapter:()=>u});var r={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-math")}},i={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-mermaid")}},a={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-markmap")}},o={getCode:function(e){return e.getAttribute("data-code")},getElements:function(e){return e.querySelectorAll(".language-mindmap")}},s={getCode:function(e){return e.innerText},getElements:function(e){return e.querySelectorAll(".language-echarts")}},c={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-abc")}},l={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-graphviz")}},d={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-flowchart")}},u={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-plantuml")}}},314:(e,t,n)=>{n.d(t,{p:()=>o});var r=n(54),i=n(526),a=n(156),o=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=r.g.CDN);var o=a.chartRenderAdapter.getElements(e);o.length>0&&(0,i.G)(t+"/dist/js/echarts/echarts.min.js","vditorEchartsScript").then((function(){o.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=a.chartRenderAdapter.getCode(e).trim();if(t)try{if("true"===e.getAttribute("data-processed"))return;var r=JSON.parse(t);echarts.init(e,"dark"===n?"dark":void 0).setOption(r),e.setAttribute("data-processed","true")}catch(t){e.className="vditor-reset--error",e.innerHTML="echarts render error: <br>"+t}}}))}))}},730:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(51),i=n(54),a=function(e,t){Array.from(e.querySelectorAll("pre > code")).filter((function(t,n){return!t.parentElement.classList.contains("vditor-wysiwyg__pre")&&!t.parentElement.classList.contains("vditor-ir__marker--pre")&&(!(t.classList.contains("language-mermaid")||t.classList.contains("language-flowchart")||t.classList.contains("language-echarts")||t.classList.contains("language-mindmap")||t.classList.contains("language-plantuml")||t.classList.contains("language-markmap")||t.classList.contains("language-abc")||t.classList.contains("language-graphviz")||t.classList.contains("language-math"))&&(!(t.style.maxHeight.indexOf("px")>-1)&&!(e.classList.contains("vditor-preview")&&n>5)))})).forEach((function(e){var n,a,o,s=e.innerText;if(e.classList.contains("highlight-chroma")){var c=e.cloneNode(!0);c.querySelectorAll(".highlight-ln").forEach((function(e){e.remove()})),s=c.innerText}else s.endsWith("\n")&&(s=s.substr(0,s.length-1));var l='<svg><use xlink:href="#vditor-icon-copy"></use></svg>';document.getElementById("vditorIconScript")||(l='<svg viewBox="0 0 32 32"><path d="M22.545-0h-17.455c-1.6 0-2.909 1.309-2.909 2.909v20.364h2.909v-20.364h17.455v-2.909zM26.909 5.818h-16c-1.6 0-2.909 1.309-2.909 2.909v20.364c0 1.6 1.309 2.909 2.909 2.909h16c1.6 0 2.909-1.309 2.909-2.909v-20.364c0-1.6-1.309-2.909-2.909-2.909zM26.909 29.091h-16v-20.364h16v20.364z"></path></svg>');var d=document.createElement("div");d.className="vditor-copy",d.innerHTML='<span aria-label="'+((null===(n=window.VditorI18n)||void 0===n?void 0:n.copy)||"复制")+"\"\nonmouseover=\"this.setAttribute('aria-label', '"+((null===(a=window.VditorI18n)||void 0===a?void 0:a.copy)||"复制")+"')\"\nclass=\"vditor-tooltipped vditor-tooltipped__w\"\nonclick=\"this.previousElementSibling.select();document.execCommand('copy');this.setAttribute('aria-label', '"+((null===(o=window.VditorI18n)||void 0===o?void 0:o.copied)||"已复制")+"');this.previousElementSibling.blur()\">"+l+"</span>";var u=document.createElement("textarea");u.value=(0,r.X)(s),d.insertAdjacentElement("afterbegin",u),t&&t.renderMenu&&t.renderMenu(e,d),e.before(d),e.style.maxHeight=window.outerHeight-40+"px",e.insertAdjacentHTML("afterend",'<span style="position: absolute">'+i.g.ZWSP+"</span>")}))}},66:(e,t,n)=>{n.d(t,{P:()=>o});var r=n(54),i=n(526),a=n(156),o=function(e,t){void 0===t&&(t=r.g.CDN);var n=a.flowchartRenderAdapter.getElements(e);0!==n.length&&(0,i.G)(t+"/dist/js/flowchart.js/flowchart.min.js","vditorFlowchartScript").then((function(){n.forEach((function(e){if("true"!==e.getAttribute("data-processed")){var t=flowchart.parse(a.flowchartRenderAdapter.getCode(e));e.innerHTML="",t.drawSVG(e),e.setAttribute("data-processed","true")}}))}))}},218:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(54),i=n(526),a=n(156),o=function(e,t){void 0===t&&(t=r.g.CDN);var n=a.graphvizRenderAdapter.getElements(e);0!==n.length&&(0,i.G)(t+"/dist/js/graphviz/viz.js","vditorGraphVizScript").then((function(){n.forEach((function(e){var t=a.graphvizRenderAdapter.getCode(e);if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")&&"true"!==e.getAttribute("data-processed")&&""!==t.trim()){try{var n=new Blob(["importScripts('"+document.getElementById("vditorGraphVizScript").src.replace("viz.js","full.render.js")+"');"],{type:"application/javascript"}),r=(window.URL||window.webkitURL).createObjectURL(n),i=new Worker(r);new Viz({worker:i}).renderSVGElement(t).then((function(t){e.innerHTML=t.outerHTML})).catch((function(t){e.innerHTML="graphviz render error: <br>"+t,e.className="vditor-reset--error"}))}catch(e){console.error("graphviz error",e)}e.setAttribute("data-processed","true")}}))}))}},702:(e,t,n)=>{n.d(t,{s:()=>o});var r=n(54),i=n(526),a=n(578),o=function(e,t,n){void 0===t&&(t=document),void 0===n&&(n=r.g.CDN);var o=e.style;r.g.CODE_THEME.includes(o)||(o="github");var s=document.getElementById("vditorHljsStyle"),c=n+"/dist/js/highlight.js/styles/"+o+".css";(s&&s.getAttribute("href")!==c&&s.remove(),(0,a.c)(n+"/dist/js/highlight.js/styles/"+o+".css","vditorHljsStyle"),!1!==e.enable)&&(0!==t.querySelectorAll("pre > code").length&&(0,i.G)(n+"/dist/js/highlight.js/highlight.pack.js","vditorHljsScript").then((function(){(0,i.G)(n+"/dist/js/highlight.js/solidity.min.js","vditorHljsSolidityScript").then((function(){(0,i.G)(n+"/dist/js/highlight.js/yul.min.js","vditorHljsYulScript").then((function(){t.querySelectorAll("pre > code").forEach((function(t){if(!t.parentElement.classList.contains("vditor-ir__marker--pre")&&!t.parentElement.classList.contains("vditor-wysiwyg__pre")&&!(t.classList.contains("language-mermaid")||t.classList.contains("language-flowchart")||t.classList.contains("language-echarts")||t.classList.contains("language-mindmap")||t.classList.contains("language-plantuml")||t.classList.contains("language-abc")||t.classList.contains("language-graphviz")||t.classList.contains("language-math"))&&(""!==e.defaultLang&&-1===t.className.indexOf("language-")&&t.classList.add("language-"+e.defaultLang),hljs.highlightElement(t),e.lineNumber)){t.classList.add("vditor-linenumber");var n=t.querySelector(".vditor-linenumber__temp");n||((n=document.createElement("div")).className="vditor-linenumber__temp",t.insertAdjacentElement("beforeend",n));var r=getComputedStyle(t).whiteSpace,i=!1;"pre-wrap"!==r&&"pre-line"!==r||(i=!0);var a="",o=t.textContent.split(/\r\n|\r|\n/g);o.pop(),o.map((function(e){var t="";i&&(n.textContent=e||"\n",t=' style="height:'+n.getBoundingClientRect().height+'px"'),a+="<span"+t+"></span>"})),n.style.display="none",a='<span class="vditor-linenumber__rows">'+a+"</span>",t.insertAdjacentHTML("beforeend",a)}}))}))}))})))}},563:(e,t,n)=>{n.d(t,{K:()=>c});var r=n(54),i=n(526),a=n(156),o={},s=function(e,t){var n=window.markmap,r=n.Transformer,i=n.Markmap,a=n.deriveOptions,s=(n.globalCSS,new r);e.innerHTML='<svg style="width:100%"></svg>';var c=e.firstChild,l=i.create(c,null),d=function(e,t){var n=e.transform(t),r=Object.keys(n.features).filter((function(e){return!o[e]}));r.forEach((function(e){o[e]=!0}));var i=e.getAssets(r),a=i.styles,s=i.scripts,c=window.markmap;return a&&c.loadCSS(a),s&&c.loadJS(s),n}(s,t),u=d.root,m=d.frontmatter,p=a(null==m?void 0:m.markmap);l.setData(u,p),l.fit()},c=function(e,t,n){void 0===t&&(t=r.g.CDN);var o=a.markmapRenderAdapter.getElements(e);0!==o.length&&(0,i.G)(t+"/dist/js/markmap/markmap.min.js","vditorMermaidScript").then((function(){o.forEach((function(e){var t=a.markmapRenderAdapter.getCode(e);if("true"!==e.getAttribute("data-processed")&&""!==t.trim()){var n=document.createElement("div");n.className="language-markmap",e.parentNode.appendChild(n),s(n,t),"CODE"==e.parentNode.childNodes[0].nodeName&&e.parentNode.removeChild(e.parentNode.childNodes[0])}}))}))}},466:(e,t,n)=>{n.d(t,{H:()=>c});var r=n(54),i=n(526),a=n(578),o=n(51),s=n(156),c=function(e,t){var n=s.mathRenderAdapter.getElements(e);if(0!==n.length){var c={cdn:r.g.CDN,math:{engine:"KaTeX",inlineDigit:!1,macros:{}}};if(t&&t.math&&(t.math=Object.assign({},c.math,t.math)),"KaTeX"===(t=Object.assign({},c,t)).math.engine)(0,a.c)(t.cdn+"/dist/js/katex/katex.min.css?v=0.16.9","vditorKatexStyle"),(0,i.G)(t.cdn+"/dist/js/katex/katex.min.js?v=0.16.9","vditorKatexScript").then((function(){(0,i.G)(t.cdn+"/dist/js/katex/mhchem.min.js?v=0.16.9","vditorKatexChemScript").then((function(){n.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")&&!e.getAttribute("data-math")){var n=(0,o.X)(s.mathRenderAdapter.getCode(e));e.setAttribute("data-math",n);try{e.innerHTML=katex.renderToString(n,{displayMode:"DIV"===e.tagName,output:"html",macros:t.math.macros})}catch(t){e.innerHTML=t.message,e.className="language-math vditor-reset--error"}e.addEventListener("copy",(function(e){e.stopPropagation(),e.preventDefault();var t=e.currentTarget.closest(".language-math");e.clipboardData.setData("text/html",t.innerHTML),e.clipboardData.setData("text/plain",t.getAttribute("data-math"))}))}}))}))}));else if("MathJax"===t.math.engine){window.MathJax||(window.MathJax={loader:{paths:{mathjax:t.cdn+"/dist/js/mathjax"}},startup:{typeset:!1},tex:{macros:t.math.macros}},Object.assign(window.MathJax,t.math.mathJaxOptions)),(0,i.J)(t.cdn+"/dist/js/mathjax/tex-svg-full.js","protyleMathJaxScript");var l=function(e,t){var n=(0,o.X)(e.textContent).trim(),r=window.MathJax.getMetricsFor(e);r.display="DIV"===e.tagName,window.MathJax.tex2svgPromise(n,r).then((function(r){e.innerHTML="",e.setAttribute("data-math",n),e.append(r),window.MathJax.startup.document.clear(),window.MathJax.startup.document.updateDocument();var i=r.querySelector('[data-mml-node="merror"]');i&&""!==i.textContent.trim()&&(e.innerHTML=i.textContent.trim(),e.className="vditor-reset--error"),t&&t()}))};window.MathJax.startup.promise.then((function(){for(var e=[],t=function(t){var r=n[t];r.parentElement.classList.contains("vditor-wysiwyg__pre")||r.parentElement.classList.contains("vditor-ir__marker--pre")||r.getAttribute("data-math")||!(0,o.X)(r.textContent).trim()||e.push((function(e){t===n.length-1?l(r):l(r,e)}))},r=0;r<n.length;r++)t(r);!function(e){if(0!==e.length){var t=0,n=e[e.length-1],r=function(){var i=e[t++];i===n?i():i(r)};r()}}(e)}))}}}},554:(e,t,n)=>{n.d(t,{Y:()=>i});var r=n(835),i=function(e){e&&e.querySelectorAll("a").forEach((function(e){var t=e.getAttribute("href");t&&(t.match(/^.+.(mp4|m4v|ogg|ogv|webm)$/)?function(e,t){e.insertAdjacentHTML("afterend",'<video controls="controls" src="'+t+'"></video>'),e.remove()}(e,t):t.match(/^.+.(mp3|wav|flac)$/)?function(e,t){e.insertAdjacentHTML("afterend",'<audio controls="controls" src="'+t+'"></audio>'),e.remove()}(e,t):function(e,t){var n=t.match(/\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?/),i=t.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/),a=t.match(/\/\/v\.qq\.com\/x\/cover\/.*\/([^\/]+)\.html\??.*/),o=t.match(/(?:www\.|\/\/)coub\.com\/view\/(\w+)/),s=t.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/),c=t.match(/.+dailymotion.com\/(video|hub)\/(\w+)\?/),l=t.match(/(?:www\.|\/\/)bilibili\.com\/video\/(\w+)/),d=t.match(/(?:www\.|\/\/)ted\.com\/talks\/(\w+)/);if(n&&11===n[1].length)e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//www.youtube.com/embed/'+n[1]+(n[2]?"?start="+n[2]:"")+'"></iframe>'),e.remove();else if(i&&i[1])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//player.youku.com/embed/'+i[1]+'"></iframe>'),e.remove();else if(a&&a[1])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="https://v.qq.com/txp/iframe/player.html?vid='+a[1]+'"></iframe>'),e.remove();else if(o&&o[1])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video"\n src="//coub.com/embed/'+o[1]+'?muted=false&autostart=false&originalSize=true&startWithHD=true"></iframe>'),e.remove();else if(s&&s[0])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video"\n src="https://www.facebook.com/plugins/video.php?href='+encodeURIComponent(s[0])+'"></iframe>'),e.remove();else if(c&&c[2])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video"\n src="https://www.dailymotion.com/embed/video/'+c[2]+'"></iframe>'),e.remove();else if(t.indexOf("bilibili.com")>-1&&(t.indexOf("bvid=")>-1||l&&l[1])){var u={bvid:(0,r.o)("bvid",t)||l&&l[1],page:"1",high_quality:"1",as_wide:"1",allowfullscreen:"true",autoplay:"0"};new URL(t.startsWith("http")?t:"https:"+t).search.split("&").forEach((function(e,t){if(e){0===t&&(e=e.substr(1));var n=e.split("=");u[n[0]]=n[1]}}));var m="https://player.bilibili.com/player.html?",p=Object.keys(u);p.forEach((function(e,t){m+=e+"="+u[e],t<p.length-1&&(m+="&")})),e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="'+m+'"></iframe>'),e.remove()}else d&&d[1]&&(e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//embed.ted.com/talks/'+d[1]+'"></iframe>'),e.remove())}(e,t))}))}},40:(e,t,n)=>{n.d(t,{i:()=>l});var r=n(54),i=n(526),a=n(156),o=n(835),s=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},l=function(e,t,n){void 0===t&&(t=r.g.CDN);var l=a.mermaidRenderAdapter.getElements(e);0!==l.length&&(0,i.G)(t+"/dist/js/mermaid/mermaid.min.js","vditorMermaidScript").then((function(){var e={securityLevel:"loose",altFontFamily:"sans-serif",fontFamily:"sans-serif",startOnLoad:!1,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequence:{useMaxWidth:!0,diagramMarginX:8,diagramMarginY:8,boxMargin:8,showSequenceNumbers:!0},gantt:{leftPadding:75,rightPadding:20}};"dark"===n&&(e.theme="dark"),mermaid.initialize(e),l.forEach((function(e){return s(void 0,void 0,void 0,(function(){var t,n,r,i,s;return c(this,(function(c){switch(c.label){case 0:if(t=a.mermaidRenderAdapter.getCode(e),"true"===e.getAttribute("data-processed")||""===t.trim())return[2];n="mermaid"+(0,o.W)(),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,mermaid.render(n,e.textContent)];case 2:return r=c.sent(),e.innerHTML=r.svg,[3,4];case 3:return i=c.sent(),s=document.querySelector("#"+n),e.innerHTML=s.outerHTML+'<br>\n<div style="text-align: left"><small>'+i.message.replace(/\n/,"<br>")+"</small></div>",s.parentElement.remove(),[3,4];case 4:return e.setAttribute("data-processed","true"),[2]}}))}))}))}))}},749:(e,t,n)=>{n.d(t,{P:()=>o});var r=n(54),i=n(526),a=n(156),o=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=r.g.CDN);var o=a.mindmapRenderAdapter.getElements(e);o.length>0&&(0,i.G)(t+"/dist/js/echarts/echarts.min.js","vditorEchartsScript").then((function(){o.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=a.mindmapRenderAdapter.getCode(e);if(t)try{if("true"===e.getAttribute("data-processed"))return;echarts.init(e,"dark"===n?"dark":void 0).setOption({series:[{data:[JSON.parse(decodeURIComponent(t))],initialTreeDepth:-1,itemStyle:{borderWidth:0,color:"#4285f4"},label:{backgroundColor:"#f6f8fa",borderColor:"#d1d5da",borderRadius:5,borderWidth:.5,color:"#586069",lineHeight:20,offset:[-5,0],padding:[0,5],position:"insideRight"},lineStyle:{color:"#d1d5da",width:1},roam:!0,symbol:function(e,t){var n;return(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.children)?"circle":"path://"},type:"tree"}],tooltip:{trigger:"item",triggerOn:"mousemove"}}),e.setAttribute("data-processed","true")}catch(t){e.className="vditor-reset--error",e.innerHTML="mindmap render error: <br>"+t}}}))}))}},818:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(64),i=n(466),a=function(e,t,n){var a="",o=[];if(Array.from(e.children).forEach((function(e,t){if((0,r.W)(e)){if(n){var i=e.id.lastIndexOf("_");e.id=e.id.substring(0,-1===i?void 0:i)+"_"+t}o.push(e.id),a+=e.outerHTML.replace("<wbr>","")}})),""===a)return t.innerHTML="","";var s=document.createElement("div");if(n)n.lute.SetToC(!0),"wysiwyg"!==n.currentMode||n.preview.element.contains(e)?"ir"!==n.currentMode||n.preview.element.contains(e)?s.innerHTML=n.lute.HTML2VditorDOM("<p>[ToC]</p>"+a):s.innerHTML=n.lute.SpinVditorIRDOM("<p>[ToC]</p>"+a):s.innerHTML=n.lute.SpinVditorDOM("<p>[ToC]</p>"+a),n.lute.SetToC(n.options.preview.markdown.toc);else{t.classList.add("vditor-outline");var c=Lute.New();c.SetToC(!0),s.innerHTML=c.HTML2VditorDOM("<p>[ToC]</p>"+a)}var l=s.firstElementChild.querySelectorAll("li > span[data-target-id]");return l.forEach((function(e,t){if(e.nextElementSibling&&"UL"===e.nextElementSibling.tagName){var n="<svg class='vditor-outline__action'><use xlink:href='#vditor-icon-down'></use></svg>";document.getElementById("vditorIconScript")||(n='<svg class="vditor-outline__action" viewBox="0 0 32 32"><path d="M3.76 6.12l12.24 12.213 12.24-12.213 3.76 3.76-16 16-16-16 3.76-3.76z"></path></svg>'),e.innerHTML=n+"<span>"+e.innerHTML+"</span>"}else e.innerHTML="<svg></svg><span>"+e.innerHTML+"</span>";e.setAttribute("data-target-id",o[t])})),a=s.firstElementChild.innerHTML,0===l.length?(t.innerHTML="",a):(t.innerHTML=a,n&&(0,i.H)(t,{cdn:n.options.cdn,math:n.options.preview.math}),t.firstElementChild.addEventListener("click",(function(r){for(var i=r.target;i&&!i.isEqualNode(t);){if(i.classList.contains("vditor-outline__action")){i.classList.contains("vditor-outline__action--close")?(i.classList.remove("vditor-outline__action--close"),i.parentElement.nextElementSibling.setAttribute("style","display:block")):(i.classList.add("vditor-outline__action--close"),i.parentElement.nextElementSibling.setAttribute("style","display:none")),r.preventDefault(),r.stopPropagation();break}if(i.getAttribute("data-target-id")){r.preventDefault(),r.stopPropagation();var a=document.getElementById(i.getAttribute("data-target-id"));if(!a)return;if(n)if("auto"===n.options.height){var o=a.offsetTop+n.element.offsetTop;n.options.toolbarConfig.pin||(o+=n.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,o)}else n.element.offsetTop<window.scrollY&&window.scrollTo(window.scrollX,n.element.offsetTop),n.preview.element.contains(e)?e.parentElement.scrollTop=a.offsetTop:e.scrollTop=a.offsetTop;else window.scrollTo(window.scrollX,a.offsetTop);break}i=i.parentElement}})),a)}},408:(e,t,n)=>{n.d(t,{B:()=>o});var r=n(54),i=n(526),a=n(156),o=function(e,t){void 0===e&&(e=document),void 0===t&&(t=r.g.CDN);var n=a.plantumlRenderAdapter.getElements(e);0!==n.length&&(0,i.G)(t+"/dist/js/plantuml/plantuml-encoder.min.js","vditorPlantumlScript").then((function(){n.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=a.plantumlRenderAdapter.getCode(e).trim();if(t)try{e.innerHTML='<object type="image/svg+xml" data="https://www.plantuml.com/plantuml/svg/~1'+plantumlEncoder.encode(t)+'"/>'}catch(t){e.className="vditor-reset--error",e.innerHTML="plantuml render error: <br>"+t}}}))}))}},895:(e,t,n)=>{n.d(t,{X:()=>r});var r=function(e){var t=Lute.New();return t.PutEmojis(e.emojis),t.SetEmojiSite(e.emojiSite),t.SetHeadingAnchor(e.headingAnchor),t.SetInlineMathAllowDigitAfterOpenMarker(e.inlineMathDigit),t.SetAutoSpace(e.autoSpace),t.SetToC(e.toc),t.SetFootnotes(e.footnotes),t.SetFixTermTypo(e.fixTermTypo),t.SetVditorCodeBlockPreview(e.codeBlockPreview),t.SetVditorMathBlockPreview(e.mathBlockPreview),t.SetSanitize(e.sanitize),t.SetChineseParagraphBeginningSpace(e.paragraphBeginningSpace),t.SetRenderListStyle(e.listStyle),t.SetLinkBase(e.linkBase),t.SetLinkPrefix(e.linkPrefix),t.SetMark(e.mark),t.SetGFMAutoLink(e.gfmAutoLink),e.lazyLoadImage&&t.SetImageLazyLoading(e.lazyLoadImage),t}},863:(e,t,n)=>{n.d(t,{E:()=>r});var r=function(e,t,n){void 0===t&&(t="zh_CN"),void 0===n&&(n="classic");var r=e.getBoundingClientRect();document.body.insertAdjacentHTML("beforeend",'<div class="vditor vditor-img'+("dark"===n?" vditor--dark":"")+'">\n <div class="vditor-img__bar">\n <span class="vditor-img__btn" data-deg="0">\n <svg><use xlink:href="#vditor-icon-redo"></use></svg>\n '+window.VditorI18n.spin+"\n </span>\n <span class=\"vditor-img__btn\" onclick=\"this.parentElement.parentElement.outerHTML = '';document.body.style.overflow = ''\">\n X &nbsp;"+window.VditorI18n.close+'\n </span>\n </div>\n <div class="vditor-img__img" onclick="this.parentElement.outerHTML = \'\';document.body.style.overflow = \'\'">\n <img style="width: '+e.width+"px;height:"+e.height+"px;transform: translate3d("+r.left+"px, "+(r.top-36)+'px, 0)" src="'+e.getAttribute("src")+'">\n </div>\n</div>'),document.body.style.overflow="hidden";var i=document.querySelector(".vditor-img img"),a="translate3d("+Math.max(0,window.innerWidth-e.naturalWidth)/2+"px, "+Math.max(0,window.innerHeight-36-e.naturalHeight)/2+"px, 0)";setTimeout((function(){i.setAttribute("style","transition: transform .3s ease-in-out;transform: "+a),setTimeout((function(){i.parentElement.scrollTo((i.parentElement.scrollWidth-i.parentElement.clientWidth)/2,(i.parentElement.scrollHeight-i.parentElement.clientHeight)/2)}),400)}));var o=document.querySelector(".vditor-img__btn");o.addEventListener("click",(function(){var t=parseInt(o.getAttribute("data-deg"),10)+90;t/90%2==1&&e.naturalWidth>i.parentElement.clientHeight?i.style.transform="translate3d("+Math.max(0,window.innerWidth-e.naturalWidth)/2+"px, "+(e.naturalWidth/2-e.naturalHeight/2)+"px, 0) rotateZ("+t+"deg)":i.style.transform=a+" rotateZ("+t+"deg)",o.setAttribute("data-deg",t.toString()),setTimeout((function(){i.parentElement.scrollTo((i.parentElement.scrollWidth-i.parentElement.clientWidth)/2,(i.parentElement.scrollHeight-i.parentElement.clientHeight)/2)}),400)}))}},312:(e,t,n)=>{n.d(t,{Y:()=>a});var r=n(54),i=n(578),a=function(e,t){void 0===t&&(t=r.g.CDN),r.g.CODE_THEME.includes(e)||(e="github");var n=document.getElementById("vditorHljsStyle"),a=t+"/dist/js/highlight.js/styles/"+e+".css";n?n.getAttribute("href")!==a&&(n.remove(),(0,i.c)(a,"vditorHljsStyle")):(0,i.c)(a,"vditorHljsStyle")}},227:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(578),i=function(e,t){if(e&&t){var n=document.getElementById("vditorContentTheme"),i=t+"/"+e+".css";n?n.getAttribute("href")!==i&&(n.remove(),(0,r.c)(i,"vditorContentTheme")):(0,r.c)(i,"vditorContentTheme")}}},526:(e,t,n)=>{n.d(t,{G:()=>i,J:()=>r});var r=function(e,t){if(document.getElementById(t))return!1;var n=new XMLHttpRequest;n.open("GET",e,!1),n.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),n.send("");var r=document.createElement("script");r.type="text/javascript",r.text=n.responseText,r.id=t,document.head.appendChild(r)},i=function(e,t){return new Promise((function(n,r){if(document.getElementById(t))return n(),!1;var i=document.createElement("script");i.src=e,i.async=!0,document.head.appendChild(i),i.onerror=function(e){r(e)},i.onload=function(){if(document.getElementById(t))return i.remove(),n(),!1;i.id=t,n()}}))}},578:(e,t,n)=>{n.d(t,{c:()=>r});var r=function(e,t){if(!document.getElementById(t)){var n=document.createElement("link");n.id=t,n.rel="stylesheet",n.type="text/css",n.href=e,document.getElementsByTagName("head")[0].appendChild(n)}}},51:(e,t,n)=>{n.d(t,{X:()=>r});var r=function(e){return e.replace(/\u00a0/g," ")}},835:(e,t,n)=>{n.d(t,{W:()=>r,o:()=>i});var r=function(){return([1e7].toString()+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(parseInt(e,10)^window.crypto.getRandomValues(new Uint32Array(1))[0]&15>>parseInt(e,10)/4).toString(16)}))},i=function(e,t){void 0===t&&(t=window.location.search);var n=t.substring(t.indexOf("?")),r=n.indexOf("#");return new URLSearchParams(n.substring(0,r>=0?r:void 0)).get(e)}},827:(e,t,n)=>{n.d(t,{fb:()=>i,lG:()=>r});var r=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,r=!1;n&&!r&&!n.classList.contains("vditor-reset");)n.nodeName===t?r=!0:n=n.parentElement;return r&&n},i=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,r=!1;n&&!r&&!n.classList.contains("vditor-reset");)n.classList.contains(t)?r=!0:n=n.parentElement;return r&&n}},64:(e,t,n)=>{n.d(t,{W:()=>r});var r=function(e){var t=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,r=!1;n&&!r&&!n.classList.contains("vditor-reset");)0===n.nodeName.indexOf(t)?r=!0:n=n.parentElement;return r&&n}(e,"H");return!(!t||2!==t.tagName.length||"HR"===t.tagName)&&t}},640:(e,t,n)=>{n.d(t,{T:()=>r});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},i=function(e){for(var t in e)e.hasOwnProperty(t)&&("[object Object]"===Object.prototype.toString.call(e[t])?n[t]=r(n[t],e[t]):n[t]=e[t])},a=0;a<e.length;a++)i(e[a]);return n}},393:(e,t,n)=>{n.d(t,{Hc:()=>r});n(54);var r=function(e){var t=window.getSelection();t.removeAllRanges(),t.addRange(e)}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.d(r,{default:()=>C});var e=n(478),t=n(156),i=n(314),a=n(730),o=n(66),s=n(218),c=n(702),l=function(e){void 0===e&&(e=document);var t=function(e){var t=document.createElement("img");t.src=e.getAttribute("data-src"),t.addEventListener("load",(function(){e.getAttribute("style")||e.getAttribute("class")||e.getAttribute("width")||e.getAttribute("height")||t.naturalHeight>t.naturalWidth&&t.naturalWidth/t.naturalHeight<document.querySelector(".vditor-reset").clientWidth/(window.innerHeight-40)&&t.naturalHeight>window.innerHeight-40&&(e.style.height=window.innerHeight-40+"px"),e.src=t.src})),e.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return e.querySelectorAll("img").forEach((function(e){e.getAttribute("data-src")&&t(e)})),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),e.querySelectorAll("img").forEach((function(e){window.vditorImageIntersectionObserver.observe(e)}))):(window.vditorImageIntersectionObserver=new IntersectionObserver((function(e){e.forEach((function(e){(void 0===e.isIntersecting?0!==e.intersectionRatio:e.isIntersecting)&&e.target.getAttribute("data-src")&&t(e.target)}))})),e.querySelectorAll("img").forEach((function(e){window.vditorImageIntersectionObserver.observe(e)})))},d=n(466),u=n(554),m=n(40),p=n(563),h=n(749),v=n(818),g=n(408),f=n(54),w=n(227),y=n(526),b=n(827),S=n(640),E=n(895),L=n(393),T=function(e,t){if(void 0===t&&(t="zh_CN"),"undefined"!=typeof speechSynthesis&&"undefined"!=typeof SpeechSynthesisUtterance){var n=function(){var e,n;return speechSynthesis.getVoices().forEach((function(r){r.lang===t.replace("_","-")&&(e=r),r.default&&(n=r)})),e||(e=n),e},r='<svg><use xlink:href="#vditor-icon-play"></use></svg>',i='<svg><use xlink:href="#vditor-icon-pause"></use></svg>';document.getElementById("vditorIconScript")||(r='<svg viewBox="0 0 32 32"><path d="M3.436 0l25.128 16-25.128 16v-32z"></path></svg>',i='<svg viewBox="0 0 32 32"><path d="M20.617 0h9.128v32h-9.128v-32zM2.255 32v-32h9.128v32h-9.128z"></path></svg>');var a=document.querySelector(".vditor-speech");a||((a=document.createElement("button")).className="vditor-speech",e.insertAdjacentElement("beforeend",a),void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=n));var o=n(),s=new SpeechSynthesisUtterance;s.voice=o,s.onend=s.onerror=function(){a.style.display="none",speechSynthesis.cancel(),a.classList.remove("vditor-speech--current"),a.innerHTML=r},e.addEventListener(void 0!==window.ontouchstart?"touchend":"click",(function(t){var n=t.target;if(n.classList.contains("vditor-speech")||n.parentElement.classList.contains("vditor-speech"))return a.classList.contains("vditor-speech--current")?speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),a.innerHTML=i):(speechSynthesis.pause(),a.innerHTML=r)):(s.text=a.getAttribute("data-text"),speechSynthesis.speak(s),a.classList.add("vditor-speech--current"),a.innerHTML=i),(0,L.Hc)(window.vditorSpeechRange),void e.focus();if(a.style.display="none",speechSynthesis.cancel(),a.classList.remove("vditor-speech--current"),a.innerHTML=r,0!==getSelection().rangeCount){var o=getSelection().getRangeAt(0),c=o.toString().trim();if(c){window.vditorSpeechRange=o.cloneRange();var l=o.getBoundingClientRect();a.innerHTML=r,a.style.display="block",a.style.top=l.top+l.height+document.querySelector("html").scrollTop-20+"px",void 0!==window.ontouchstart?a.style.left=t.changedTouches[t.changedTouches.length-1].pageX+2+"px":a.style.left=t.clientX+2+"px",a.setAttribute("data-text",c)}}}))}},k=function(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},A=function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},x=function(e){var t,n={anchor:0,cdn:f.g.CDN,customEmoji:{},emojiPath:f.g.CDN+"/dist/images/emoji",hljs:f.g.HLJS_OPTIONS,icon:"ant",lang:"zh_CN",markdown:f.g.MARKDOWN_OPTIONS,math:f.g.MATH_OPTIONS,mode:"light",speech:{enable:!1},render:{media:{enable:!0}},theme:f.g.THEME_OPTIONS};return e.cdn&&((null===(t=e.theme)||void 0===t?void 0:t.path)||(n.theme.path=e.cdn+"/dist/css/content-theme"),e.emojiPath||(n.emojiPath=e.cdn+"/dist/images/emoji")),(0,S.T)(n,e)},j=function(e,t){var n=x(t);return(0,y.G)(n.cdn+"/dist/js/lute/lute.min.js","vditorLuteScript").then((function(){var r=(0,E.X)({autoSpace:n.markdown.autoSpace,gfmAutoLink:n.markdown.gfmAutoLink,codeBlockPreview:n.markdown.codeBlockPreview,emojiSite:n.emojiPath,emojis:n.customEmoji,fixTermTypo:n.markdown.fixTermTypo,footnotes:n.markdown.footnotes,headingAnchor:0!==n.anchor,inlineMathDigit:n.math.inlineDigit,lazyLoadImage:n.lazyLoadImage,linkBase:n.markdown.linkBase,linkPrefix:n.markdown.linkPrefix,listStyle:n.markdown.listStyle,mark:n.markdown.mark,mathBlockPreview:n.markdown.mathBlockPreview,paragraphBeginningSpace:n.markdown.paragraphBeginningSpace,sanitize:n.markdown.sanitize,toc:n.markdown.toc});return(null==t?void 0:t.renderers)&&r.SetJSRenderers({renderers:{Md2HTML:t.renderers}}),r.SetHeadingID(!0),r.Md2HTML(e)}))},_=function(t,n,r){return k(void 0,void 0,void 0,(function(){var v,f,S;return A(this,(function(E){switch(E.label){case 0:return v=x(r),[4,j(n,v)];case 1:if(f=E.sent(),v.transform&&(f=v.transform(f)),t.innerHTML=f,t.classList.add("vditor-reset"),v.i18n)return[3,5];if(["en_US","fr_FR","pt_BR","ja_JP","ko_KR","ru_RU","sv_SE","zh_CN","zh_TW"].includes(v.lang))return[3,2];throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");case 2:return S="vditorI18nScript"+v.lang,document.querySelectorAll('head script[id^="vditorI18nScript"]').forEach((function(e){e.id!==S&&document.head.removeChild(e)})),[4,(0,y.G)(v.cdn+"/dist/js/i18n/"+v.lang+".js",S)];case 3:E.sent(),E.label=4;case 4:return[3,6];case 5:window.VditorI18n=v.i18n,E.label=6;case 6:return v.icon?[4,(0,y.G)(v.cdn+"/dist/js/icons/"+v.icon+".js","vditorIconScript")]:[3,8];case 7:E.sent(),E.label=8;case 8:return(0,w.Z)(v.theme.current,v.theme.path),1===v.anchor&&t.classList.add("vditor-reset--anchor"),(0,a.O)(t,v.hljs),(0,c.s)(v.hljs,t,v.cdn),(0,d.H)(t,{cdn:v.cdn,math:v.math}),(0,m.i)(t,v.cdn,v.mode),(0,p.K)(t,v.cdn,v.mode),(0,o.P)(t,v.cdn),(0,s.v)(t,v.cdn),(0,i.p)(t,v.cdn,v.mode),(0,h.P)(t,v.cdn,v.mode),(0,g.B)(t,v.cdn),(0,e.Q)(t,v.cdn),v.render.media.enable&&(0,u.Y)(t),v.speech.enable&&T(t),0!==v.anchor&&(L=v.anchor,document.querySelectorAll(".vditor-anchor").forEach((function(e){1===L&&e.classList.add("vditor-anchor--left"),e.onclick=function(){var t=e.getAttribute("href").substr(1),n=document.getElementById("vditorAnchor-"+t).offsetTop;document.querySelector("html").scrollTop=n}})),window.onhashchange=function(){var e=document.getElementById("vditorAnchor-"+decodeURIComponent(window.location.hash.substr(1)));e&&(document.querySelector("html").scrollTop=e.offsetTop)}),v.after&&v.after(),v.lazyLoadImage&&l(t),t.addEventListener("click",(function(e){var n=(0,b.lG)(e.target,"SPAN");if(n&&(0,b.fb)(n,"vditor-toc")){var r=t.querySelector("#"+n.getAttribute("data-target-id"));r&&window.scrollTo(window.scrollX,r.offsetTop)}else;})),[2]}var L}))}))},M=n(863),H=n(312);const C=function(){function n(){}return n.adapterRender=t,n.previewImage=M.E,n.codeRender=a.O,n.graphvizRender=s.v,n.highlightRender=c.s,n.mathRender=d.H,n.mermaidRender=m.i,n.markmapRender=p.K,n.flowchartRender=o.P,n.chartRender=i.p,n.abcRender=e.Q,n.mindmapRender=h.P,n.plantumlRender=g.B,n.outlineRender=v.k,n.mediaRender=u.Y,n.speechRender=T,n.lazyLoadImageRender=l,n.md2html=j,n.preview=_,n.setCodeTheme=H.Y,n.setContentTheme=w.Z,n}()})(),r=r.default})()));
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Vditor=t():e.Vditor=t()}(this,(function(){return(()=>{"use strict";var e={145:(e,t,n)=>{n.d(t,{g:()=>a});var a=function(){function e(){}return e.ZWSP="​",e.DROP_EDITOR="application/editor",e.MOBILE_WIDTH=520,e.CLASS_MENU_DISABLED="vditor-menu--disabled",e.EDIT_TOOLBARS=["emoji","headings","bold","italic","strike","link","list","ordered-list","outdent","indent","check","line","quote","code","inline-code","insert-after","insert-before","upload","record","table"],e.CODE_THEME=["a11y-dark","agate","an-old-hope","androidstudio","arta","atom-one-dark","atom-one-dark-reasonable","base16/3024","base16/apathy","base16/apprentice","base16/ashes","base16/atelier-cave","base16/atelier-dune","base16/atelier-estuary","base16/atelier-forest","base16/atelier-heath","base16/atelier-lakeside","base16/atelier-plateau","base16/atelier-savanna","base16/atelier-seaside","base16/atelier-sulphurpool","base16/atlas","base16/bespin","base16/black-metal","base16/black-metal-bathory","base16/black-metal-burzum","base16/black-metal-dark-funeral","base16/black-metal-gorgoroth","base16/black-metal-immortal","base16/black-metal-khold","base16/black-metal-marduk","base16/black-metal-mayhem","base16/black-metal-nile","base16/black-metal-venom","base16/brewer","base16/bright","base16/brogrammer","base16/brush-trees-dark","base16/chalk","base16/circus","base16/classic-dark","base16/codeschool","base16/colors","base16/danqing","base16/darcula","base16/dark-violet","base16/darkmoss","base16/darktooth","base16/decaf","base16/default-dark","base16/dracula","base16/edge-dark","base16/eighties","base16/embers","base16/equilibrium-dark","base16/equilibrium-gray-dark","base16/espresso","base16/eva","base16/eva-dim","base16/flat","base16/framer","base16/gigavolt","base16/google-dark","base16/grayscale-dark","base16/green-screen","base16/gruvbox-dark-hard","base16/gruvbox-dark-medium","base16/gruvbox-dark-pale","base16/gruvbox-dark-soft","base16/hardcore","base16/harmonic16-dark","base16/heetch-dark","base16/helios","base16/hopscotch","base16/horizon-dark","base16/humanoid-dark","base16/ia-dark","base16/icy-dark","base16/ir-black","base16/isotope","base16/kimber","base16/london-tube","base16/macintosh","base16/marrakesh","base16/materia","base16/material","base16/material-darker","base16/material-palenight","base16/material-vivid","base16/mellow-purple","base16/mocha","base16/monokai","base16/nebula","base16/nord","base16/nova","base16/ocean","base16/oceanicnext","base16/onedark","base16/outrun-dark","base16/papercolor-dark","base16/paraiso","base16/pasque","base16/phd","base16/pico","base16/pop","base16/porple","base16/qualia","base16/railscasts","base16/rebecca","base16/ros-pine","base16/ros-pine-moon","base16/sandcastle","base16/seti-ui","base16/silk-dark","base16/snazzy","base16/solar-flare","base16/solarized-dark","base16/spacemacs","base16/summercamp","base16/summerfruit-dark","base16/synth-midnight-terminal-dark","base16/tango","base16/tender","base16/tomorrow-night","base16/twilight","base16/unikitty-dark","base16/vulcan","base16/windows-10","base16/windows-95","base16/windows-high-contrast","base16/windows-nt","base16/woodland","base16/xcode-dusk","base16/zenburn","codepen-embed","dark","devibeans","far","felipec","github-dark","github-dark-dimmed","gml","gradient-dark","hybrid","ir-black","isbl-editor-dark","kimbie-dark","lioshi","monokai","monokai-sublime","night-owl","nnfx-dark","nord","obsidian","panda-syntax-dark","paraiso-dark","pojoaque","qtcreator-dark","rainbow","shades-of-purple","srcery","stackoverflow-dark","sunburst","tomorrow-night-blue","tomorrow-night-bright","tokyo-night-dark","vs2015","xt256","ant-design","a11y-light","arduino-light","ascetic","atom-one-light","base16/atelier-cave-light","base16/atelier-dune-light","base16/atelier-estuary-light","base16/atelier-forest-light","base16/atelier-heath-light","base16/atelier-lakeside-light","base16/atelier-plateau-light","base16/atelier-savanna-light","base16/atelier-seaside-light","base16/atelier-sulphurpool-light","base16/brush-trees","base16/classic-light","base16/cupcake","base16/cupertino","base16/default-light","base16/dirtysea","base16/edge-light","base16/equilibrium-gray-light","base16/equilibrium-light","base16/fruit-soda","base16/github","base16/google-light","base16/grayscale-light","base16/gruvbox-light-hard","base16/gruvbox-light-medium","base16/gruvbox-light-soft","base16/harmonic16-light","base16/heetch-light","base16/humanoid-light","base16/horizon-light","base16/ia-light","base16/material-lighter","base16/mexico-light","base16/one-light","base16/papercolor-light","base16/ros-pine-dawn","base16/sagelight","base16/shapeshifter","base16/silk-light","base16/solar-flare-light","base16/solarized-light","base16/summerfruit-light","base16/synth-midnight-terminal-light","base16/tomorrow","base16/unikitty-light","base16/windows-10-light","base16/windows-95-light","base16/windows-high-contrast-light","brown-paper","base16/windows-nt-light","color-brewer","docco","foundation","github","googlecode","gradient-light","grayscale","idea","intellij-light","isbl-editor-light","kimbie-light","lightfair","magula","mono-blue","nnfx-light","panda-syntax-light","paraiso-light","purebasic","qtcreator-light","routeros","school-book","stackoverflow-light","tokyo-night-light","vs","xcode","default"],e.ALIAS_CODE_LANGUAGES=["abc","plantuml","mermaid","flowchart","echarts","mindmap","graphviz","math","markmap","smiles","js","ts","html","toml","c#","bat"],e.CDN="https://unpkg.com/vditor@".concat("3.11.2"),e.MARKDOWN_OPTIONS={autoSpace:!1,gfmAutoLink:!0,codeBlockPreview:!0,fixTermTypo:!1,footnotes:!0,linkBase:"",linkPrefix:"",listStyle:!1,mark:!1,mathBlockPreview:!0,paragraphBeginningSpace:!1,sanitize:!0,toc:!1},e.HLJS_OPTIONS={enable:!0,lineNumber:!1,defaultLang:"",style:"github"},e.MATH_OPTIONS={engine:"KaTeX",inlineDigit:!1,macros:{}},e.THEME_OPTIONS={current:"light",list:{"ant-design":"Ant Design",dark:"Dark",light:"Light",wechat:"WeChat"},path:"".concat(e.CDN,"/dist/css/content-theme")},e}()},825:(e,t,n)=>{n.d(t,{J:()=>s});var a=n(145),r=n(413),i=n(840),o=n(494),s=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=a.g.CDN);var s=i.SMILESRenderAdapter.getElements(e);s.length>0&&(0,r.G)("".concat(t,"/dist/js/smiles-drawer/smiles-drawer.min.js?v=2.1.7"),"vditorAbcjsScript").then((function(){var e=new SmiDrawer({},{});s.forEach((function(t){var a=i.SMILESRenderAdapter.getCode(t).trim();if("true"!==t.getAttribute("data-processed")&&""!==a.trim()){var r="smiles"+(0,o.Wb)();t.innerHTML='<svg id="'.concat(r,'"></svg>'),e.draw(a,"#"+r,"dark"===n?"dark":void 0),t.setAttribute("data-processed","true")}}))}))}},135:(e,t,n)=>{n.d(t,{Q:()=>o});var a=n(145),r=n(413),i=n(840),o=function(e,t){void 0===e&&(e=document),void 0===t&&(t=a.g.CDN);var n=i.abcRenderAdapter.getElements(e);n.length>0&&(0,r.G)("".concat(t,"/dist/js/abcjs/abcjs_basic.min.js"),"vditorAbcjsScript").then((function(){n.forEach((function(e){e.parentElement.classList.contains("vditor-wysiwyg__pre")||e.parentElement.classList.contains("vditor-ir__marker--pre")||"true"!==e.getAttribute("data-processed")&&(ABCJS.renderAbc(e,i.abcRenderAdapter.getCode(e).trim()),e.style.overflowX="auto",e.setAttribute("data-processed","true"))}))}))}},840:(e,t,n)=>{n.r(t),n.d(t,{mathRenderAdapter:()=>a,SMILESRenderAdapter:()=>r,mermaidRenderAdapter:()=>i,markmapRenderAdapter:()=>o,mindmapRenderAdapter:()=>s,chartRenderAdapter:()=>c,abcRenderAdapter:()=>l,graphvizRenderAdapter:()=>d,flowchartRenderAdapter:()=>u,plantumlRenderAdapter:()=>m});var a={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-math")}},r={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-smiles")}},i={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-mermaid")}},o={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-markmap")}},s={getCode:function(e){return e.getAttribute("data-code")},getElements:function(e){return e.querySelectorAll(".language-mindmap")}},c={getCode:function(e){return e.innerText},getElements:function(e){return e.querySelectorAll(".language-echarts")}},l={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-abc")}},d={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-graphviz")}},u={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-flowchart")}},m={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-plantuml")}}},775:(e,t,n)=>{n.d(t,{p:()=>l});var a=n(145),r=n(413),i=n(840),o=n(494),s=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function s(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((a=a.apply(e,t||[])).next())}))},c=function(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&s[0]?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],a=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},l=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=a.g.CDN);var l=i.chartRenderAdapter.getElements(e);l.length>0&&(0,r.G)("".concat(t,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then((function(){l.forEach((function(e){return s(void 0,void 0,void 0,(function(){var t,a,r;return c(this,(function(s){switch(s.label){case 0:if(e.parentElement.classList.contains("vditor-wysiwyg__pre")||e.parentElement.classList.contains("vditor-ir__marker--pre"))return[2];if(!(t=i.chartRenderAdapter.getCode(e).trim()))return[2];s.label=1;case 1:return s.trys.push([1,3,,4]),"true"===e.getAttribute("data-processed")?[2]:[4,(0,o.Qf)(t)];case 2:return a=s.sent(),echarts.init(e,"dark"===n?"dark":void 0).setOption(a),e.setAttribute("data-processed","true"),[3,4];case 3:return r=s.sent(),e.className="vditor-reset--error",e.innerHTML="echarts render error: <br>".concat(r),[3,4];case 4:return[2]}}))}))}))}))}},428:(e,t,n)=>{n.d(t,{O:()=>i});var a=n(105),r=n(145),i=function(e,t){Array.from(e.querySelectorAll("pre > code")).filter((function(t,n){return!t.parentElement.classList.contains("vditor-wysiwyg__pre")&&!t.parentElement.classList.contains("vditor-ir__marker--pre")&&(!(t.classList.contains("language-mermaid")||t.classList.contains("language-flowchart")||t.classList.contains("language-echarts")||t.classList.contains("language-mindmap")||t.classList.contains("language-plantuml")||t.classList.contains("language-markmap")||t.classList.contains("language-abc")||t.classList.contains("language-graphviz")||t.classList.contains("language-math")||t.classList.contains("language-smiles"))&&(!(t.style.maxHeight.indexOf("px")>-1)&&!(e.classList.contains("vditor-preview")&&n>5)))})).forEach((function(e){var n,i,o,s=e.innerText;if(e.classList.contains("highlight-chroma")){var c=e.cloneNode(!0);c.querySelectorAll(".highlight-ln").forEach((function(e){e.remove()})),s=c.innerText}else s.endsWith("\n")&&(s=s.substr(0,s.length-1));var l='<svg><use xlink:href="#vditor-icon-copy"></use></svg>';document.getElementById("vditorIconScript")||(l='<svg viewBox="0 0 32 32"><path d="M22.545-0h-17.455c-1.6 0-2.909 1.309-2.909 2.909v20.364h2.909v-20.364h17.455v-2.909zM26.909 5.818h-16c-1.6 0-2.909 1.309-2.909 2.909v20.364c0 1.6 1.309 2.909 2.909 2.909h16c1.6 0 2.909-1.309 2.909-2.909v-20.364c0-1.6-1.309-2.909-2.909-2.909zM26.909 29.091h-16v-20.364h16v20.364z"></path></svg>');var d=document.createElement("div");d.className="vditor-copy",d.innerHTML='<span aria-label="'.concat((null===(n=window.VditorI18n)||void 0===n?void 0:n.copy)||"复制","\"\nonmouseover=\"this.setAttribute('aria-label', '").concat((null===(i=window.VditorI18n)||void 0===i?void 0:i.copy)||"复制","')\"\nclass=\"vditor-tooltipped vditor-tooltipped__w\"\nonclick=\"event.stopPropagation();this.previousElementSibling.select();document.execCommand('copy');this.setAttribute('aria-label', '").concat((null===(o=window.VditorI18n)||void 0===o?void 0:o.copied)||"已复制","');this.previousElementSibling.blur()\">").concat(l,"</span>");var u=document.createElement("textarea");u.value=(0,a.X)(s),d.insertAdjacentElement("afterbegin",u),t&&t.renderMenu&&t.renderMenu(e,d),e.before(d),e.style.maxHeight=window.outerHeight-40+"px",e.insertAdjacentHTML("afterend",'<span style="position: absolute">'.concat(r.g.ZWSP,"</span>"))}))}},325:(e,t,n)=>{n.d(t,{P:()=>o});var a=n(145),r=n(413),i=n(840),o=function(e,t){void 0===t&&(t=a.g.CDN);var n=i.flowchartRenderAdapter.getElements(e);0!==n.length&&(0,r.G)("".concat(t,"/dist/js/flowchart.js/flowchart.min.js"),"vditorFlowchartScript").then((function(){n.forEach((function(e){if("true"!==e.getAttribute("data-processed")){var t=flowchart.parse(i.flowchartRenderAdapter.getCode(e));e.innerHTML="",t.drawSVG(e),e.setAttribute("data-processed","true")}}))}))}},483:(e,t,n)=>{n.d(t,{v:()=>o});var a=n(145),r=n(413),i=n(840),o=function(e,t){void 0===t&&(t=a.g.CDN);var n=i.graphvizRenderAdapter.getElements(e);0!==n.length&&(0,r.G)("".concat(t,"/dist/js/graphviz/viz.js"),"vditorGraphVizScript").then((function(){n.forEach((function(e){var t=i.graphvizRenderAdapter.getCode(e);if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")&&"true"!==e.getAttribute("data-processed")&&""!==t.trim()){try{var n=new Blob(["importScripts('".concat(document.getElementById("vditorGraphVizScript").src.replace("viz.js","full.render.js"),"');")],{type:"application/javascript"}),a=(window.URL||window.webkitURL).createObjectURL(n),r=new Worker(a);new Viz({worker:r}).renderSVGElement(t).then((function(t){e.innerHTML=t.outerHTML})).catch((function(t){e.innerHTML="graphviz render error: <br>".concat(t),e.className="vditor-reset--error"}))}catch(e){console.error("graphviz error",e)}e.setAttribute("data-processed","true")}}))}))}},999:(e,t,n)=>{n.d(t,{s:()=>o});var a=n(145),r=n(413),i=n(290),o=function(e,t,n){void 0===t&&(t=document),void 0===n&&(n=a.g.CDN);var o=e.style;a.g.CODE_THEME.includes(o)||(o="github");var s=document.getElementById("vditorHljsStyle"),c="".concat(n,"/dist/js/highlight.js/styles/").concat(o,".min.css");(s&&s.getAttribute("href")!==c&&s.remove(),(0,i.c)("".concat(n,"/dist/js/highlight.js/styles/").concat(o,".min.css"),"vditorHljsStyle"),!1!==e.enable)&&(0!==t.querySelectorAll("pre > code").length&&(0,r.G)("".concat(n,"/dist/js/highlight.js/highlight.min.js?v=11.7.0"),"vditorHljsScript").then((function(){(0,r.G)("".concat(n,"/dist/js/highlight.js/third-languages.js?v=1.0.1"),"vditorHljsThirdScript").then((function(){t.querySelectorAll("pre > code").forEach((function(t){if(!t.parentElement.classList.contains("vditor-ir__marker--pre")&&!t.parentElement.classList.contains("vditor-wysiwyg__pre")&&!(t.classList.contains("language-mermaid")||t.classList.contains("language-flowchart")||t.classList.contains("language-echarts")||t.classList.contains("language-mindmap")||t.classList.contains("language-plantuml")||t.classList.contains("language-smiles")||t.classList.contains("language-abc")||t.classList.contains("language-graphviz")||t.classList.contains("language-math"))){""!==e.defaultLang&&-1===t.className.indexOf("language-")&&t.classList.add("language-"+e.defaultLang);var n=t.className.replace("language-","");if(window.hljs.getLanguage(n)||(n="plaintext"),t.innerHTML=window.hljs.highlight(t.textContent,{language:n,ignoreIllegals:!0}).value,t.classList.add("hljs"),e.lineNumber){t.classList.add("vditor-linenumber");var a=t.querySelector(".vditor-linenumber__temp");a||((a=document.createElement("div")).className="vditor-linenumber__temp",t.insertAdjacentElement("beforeend",a));var r=getComputedStyle(t).whiteSpace,i=!1;"pre-wrap"!==r&&"pre-line"!==r||(i=!0);var o="",s=t.textContent.split(/\r\n|\r|\n/g);s.pop(),s.map((function(e){var t="";i&&(a.textContent=e||"\n",t=' style="height:'.concat(a.getBoundingClientRect().height,'px"')),o+="<span".concat(t,"></span>")})),a.style.display="none",o='<span class="vditor-linenumber__rows">'.concat(o,"</span>"),t.insertAdjacentHTML("beforeend",o)}}}))}))})))}},11:(e,t,n)=>{n.d(t,{K:()=>c});var a=n(145),r=n(413),i=n(840),o={},s=function(e,t){var n=window.markmap,a=n.Transformer,r=n.Markmap,i=n.deriveOptions,s=(n.globalCSS,new a);e.innerHTML='<svg style="width:100%"></svg>';var c=e.firstChild,l=r.create(c,null),d=function(e,t){var n=e.transform(t),a=Object.keys(n.features).filter((function(e){return!o[e]}));a.forEach((function(e){o[e]=!0}));var r=e.getAssets(a),i=r.styles,s=r.scripts,c=window.markmap;return i&&c.loadCSS(i),s&&c.loadJS(s),n}(s,t),u=d.root,m=d.frontmatter,h=i(null==m?void 0:m.markmap);l.setData(u,h),l.fit()},c=function(e,t){void 0===e&&(e=document),void 0===t&&(t=a.g.CDN);var n=i.markmapRenderAdapter.getElements(e);0!==n.length&&(0,r.G)("".concat(t,"/dist/js/markmap/markmap.min.js"),"vditorMarkerScript").then((function(){n.forEach((function(e){var t=i.markmapRenderAdapter.getCode(e);if("true"!==e.getAttribute("data-processed")&&""!==t.trim()){var n=document.createElement("div");n.className="language-markmap",e.parentNode.appendChild(n),s(n,t),"CODE"==e.parentNode.childNodes[0].nodeName&&e.parentNode.removeChild(e.parentNode.childNodes[0])}}))}))}},472:(e,t,n)=>{n.d(t,{H:()=>c});var a=n(145),r=n(413),i=n(290),o=n(105),s=n(840),c=function(e,t){void 0===e&&(e=document);var n=s.mathRenderAdapter.getElements(e);if(0!==n.length){var c={cdn:a.g.CDN,math:{engine:"KaTeX",inlineDigit:!1,macros:{}}};if(t&&t.math&&(t.math=Object.assign({},c.math,t.math)),"KaTeX"===(t=Object.assign({},c,t)).math.engine)(0,i.c)("".concat(t.cdn,"/dist/js/katex/katex.min.css?v=0.16.9"),"vditorKatexStyle"),(0,r.G)("".concat(t.cdn,"/dist/js/katex/katex.min.js?v=0.16.9"),"vditorKatexScript").then((function(){(0,r.G)("".concat(t.cdn,"/dist/js/katex/mhchem.min.js?v=0.16.9"),"vditorKatexChemScript").then((function(){n.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")&&!e.getAttribute("data-math")){var n=(0,o.X)(s.mathRenderAdapter.getCode(e));e.setAttribute("data-math",n);try{e.innerHTML=katex.renderToString(n,{displayMode:"DIV"===e.tagName,output:"html",macros:t.math.macros})}catch(t){e.innerHTML=t.message,e.className="language-math vditor-reset--error"}e.addEventListener("copy",(function(e){e.stopPropagation(),e.preventDefault();var t=e.currentTarget.closest(".language-math");e.clipboardData.setData("text/html",t.innerHTML),e.clipboardData.setData("text/plain",t.getAttribute("data-math"))}))}}))}))}));else if("MathJax"===t.math.engine){window.MathJax||(window.MathJax={loader:{paths:{mathjax:"".concat(t.cdn,"/dist/js/mathjax")}},startup:{typeset:!1},tex:{macros:t.math.macros}},Object.assign(window.MathJax,t.math.mathJaxOptions)),(0,r.J)("".concat(t.cdn,"/dist/js/mathjax/tex-svg-full.js"),"protyleMathJaxScript");var l=function(e,t){var n=(0,o.X)(e.textContent).trim(),a=window.MathJax.getMetricsFor(e);a.display="DIV"===e.tagName,window.MathJax.tex2svgPromise(n,a).then((function(a){e.innerHTML="",e.setAttribute("data-math",n),e.append(a),window.MathJax.startup.document.clear(),window.MathJax.startup.document.updateDocument();var r=a.querySelector('[data-mml-node="merror"]');r&&""!==r.textContent.trim()&&(e.innerHTML=r.textContent.trim(),e.className="vditor-reset--error"),t&&t()}))};window.MathJax.startup.promise.then((function(){for(var e=[],t=function(t){var a=n[t];a.parentElement.classList.contains("vditor-wysiwyg__pre")||a.parentElement.classList.contains("vditor-ir__marker--pre")||a.getAttribute("data-math")||!(0,o.X)(a.textContent).trim()||e.push((function(e){t===n.length-1?l(a):l(a,e)}))},a=0;a<n.length;a++)t(a);!function(e){if(0!==e.length){var t=0,n=e[e.length-1],a=function(){var r=e[t++];r===n?r():r(a)};a()}}(e)}))}}}},280:(e,t,n)=>{n.d(t,{Y:()=>r});var a=n(494),r=function(e){e&&e.querySelectorAll("a").forEach((function(e){var t=e.getAttribute("href");t&&(t.match(/^.+.(mp4|m4v|ogg|ogv|webm)$/)?function(e,t){e.insertAdjacentHTML("afterend",'<video controls="controls" src="'.concat(t,'"></video>')),e.remove()}(e,t):t.match(/^.+.(mp3|wav|flac)$/)?function(e,t){e.insertAdjacentHTML("afterend",'<audio controls="controls" src="'.concat(t,'"></audio>')),e.remove()}(e,t):function(e,t){var n=t.match(/\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?/),r=t.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/),i=t.match(/\/\/v\.qq\.com\/x\/cover\/.*\/([^\/]+)\.html\??.*/),o=t.match(/(?:www\.|\/\/)coub\.com\/view\/(\w+)/),s=t.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/),c=t.match(/.+dailymotion.com\/(video|hub)\/(\w+)\?/),l=t.match(/(?:www\.|\/\/)bilibili\.com\/video\/(\w+)/),d=t.match(/(?:www\.|\/\/)ted\.com\/talks\/(\w+)/);if(n&&11===n[1].length)e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//www.youtube.com/embed/'.concat(n[1]+(n[2]?"?start="+n[2]:""),'"></iframe>')),e.remove();else if(r&&r[1])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//player.youku.com/embed/'.concat(r[1],'"></iframe>')),e.remove();else if(i&&i[1])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="https://v.qq.com/txp/iframe/player.html?vid='.concat(i[1],'"></iframe>')),e.remove();else if(o&&o[1])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video"\n src="//coub.com/embed/'.concat(o[1],'?muted=false&autostart=false&originalSize=true&startWithHD=true"></iframe>')),e.remove();else if(s&&s[0])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video"\n src="https://www.facebook.com/plugins/video.php?href='.concat(encodeURIComponent(s[0]),'"></iframe>')),e.remove();else if(c&&c[2])e.insertAdjacentHTML("afterend",'<iframe class="iframe__video"\n src="https://www.dailymotion.com/embed/video/'.concat(c[2],'"></iframe>')),e.remove();else if(t.indexOf("bilibili.com")>-1&&(t.indexOf("bvid=")>-1||l&&l[1])){var u={bvid:(0,a.on)("bvid",t)||l&&l[1],page:"1",high_quality:"1",as_wide:"1",allowfullscreen:"true",autoplay:"0"};new URL(t.startsWith("http")?t:"https:"+t).search.split("&").forEach((function(e,t){if(e){0===t&&(e=e.substr(1));var n=e.split("=");u[n[0]]=n[1]}}));var m="https://player.bilibili.com/player.html?",h=Object.keys(u);h.forEach((function(e,t){m+="".concat(e,"=").concat(u[e]),t<h.length-1&&(m+="&")})),e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="'.concat(m,'"></iframe>')),e.remove()}else d&&d[1]&&(e.insertAdjacentHTML("afterend",'<iframe class="iframe__video" src="//embed.ted.com/talks/'.concat(d[1],'"></iframe>')),e.remove())}(e,t))}))}},637:(e,t,n)=>{n.d(t,{i:()=>l});var a=n(145),r=n(413),i=n(840),o=n(494),s=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function s(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((a=a.apply(e,t||[])).next())}))},c=function(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&s[0]?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],a=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},l=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=a.g.CDN);var l=i.mermaidRenderAdapter.getElements(e);0!==l.length&&(0,r.G)("".concat(t,"/dist/js/mermaid/mermaid.min.js?v=11.6.0"),"vditorMermaidScript").then((function(){var e={securityLevel:"loose",altFontFamily:"sans-serif",fontFamily:"sans-serif",startOnLoad:!1,flowchart:{htmlLabels:!0,useMaxWidth:!0},sequence:{useMaxWidth:!0,diagramMarginX:8,diagramMarginY:8,boxMargin:8,showSequenceNumbers:!0},gantt:{leftPadding:75,rightPadding:20}};"dark"===n&&(e.theme="dark"),mermaid.initialize(e),l.forEach((function(e){return s(void 0,void 0,void 0,(function(){var t,n,a,r,s;return c(this,(function(c){switch(c.label){case 0:if(t=i.mermaidRenderAdapter.getCode(e),"true"===e.getAttribute("data-processed")||""===t.trim())return[2];n="mermaid"+(0,o.Wb)(),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,mermaid.render(n,e.textContent)];case 2:return a=c.sent(),e.innerHTML=a.svg,[3,4];case 3:return r=c.sent(),s=document.querySelector("#"+n),e.innerHTML="".concat(s.outerHTML,'<br>\n<div style="text-align: left"><small>').concat(r.message.replace(/\n/,"<br>"),"</small></div>"),s.parentElement.remove(),[3,4];case 4:return e.setAttribute("data-processed","true"),[2]}}))}))}))}))}},194:(e,t,n)=>{n.d(t,{P:()=>o});var a=n(145),r=n(413),i=n(840),o=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=a.g.CDN);var o=i.mindmapRenderAdapter.getElements(e);o.length>0&&(0,r.G)("".concat(t,"/dist/js/echarts/echarts.min.js?v=5.5.1"),"vditorEchartsScript").then((function(){o.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=i.mindmapRenderAdapter.getCode(e);if(t)try{if("true"===e.getAttribute("data-processed"))return;echarts.init(e,"dark"===n?"dark":void 0).setOption({series:[{data:[JSON.parse(decodeURIComponent(t))],initialTreeDepth:-1,itemStyle:{borderWidth:0,color:"#4285f4"},label:{backgroundColor:"#f6f8fa",borderColor:"#d1d5da",borderRadius:5,borderWidth:.5,color:"#586069",lineHeight:20,offset:[-5,0],padding:[0,5],position:"insideRight"},lineStyle:{color:"#d1d5da",width:1},roam:!0,symbol:function(e,t){var n;return(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.children)?"circle":"path://"},type:"tree"}],tooltip:{trigger:"item",triggerOn:"mousemove"}}),e.setAttribute("data-processed","true")}catch(t){e.className="vditor-reset--error",e.innerHTML="mindmap render error: <br>".concat(t)}}}))}))}},436:(e,t,n)=>{n.d(t,{k:()=>i});var a=n(771),r=n(472),i=function(e,t,n){var i="",o=[];if(Array.from(e.children).forEach((function(e,t){if((0,a.W)(e)){if(n){var r=e.id.lastIndexOf("_");e.id=e.id.substring(0,-1===r?void 0:r)+"_"+t}o.push(e.id),i+=e.outerHTML.replace("<wbr>","")}})),""===i)return t.innerHTML="","";var s=document.createElement("div");if(n)n.lute.SetToC(!0),"wysiwyg"!==n.currentMode||n.preview.element.contains(e)?"ir"!==n.currentMode||n.preview.element.contains(e)?s.innerHTML=n.lute.HTML2VditorDOM("<p>[ToC]</p>"+i):s.innerHTML=n.lute.SpinVditorIRDOM("<p>[ToC]</p>"+i):s.innerHTML=n.lute.SpinVditorDOM("<p>[ToC]</p>"+i),n.lute.SetToC(n.options.preview.markdown.toc);else{t.classList.add("vditor-outline");var c=Lute.New();c.SetToC(!0),s.innerHTML=c.HTML2VditorDOM("<p>[ToC]</p>"+i)}var l=s.firstElementChild.querySelectorAll("li > span[data-target-id]");return l.forEach((function(e,t){if(e.nextElementSibling&&"UL"===e.nextElementSibling.tagName){var n="<svg class='vditor-outline__action'><use xlink:href='#vditor-icon-down'></use></svg>";document.getElementById("vditorIconScript")||(n='<svg class="vditor-outline__action" viewBox="0 0 32 32"><path d="M3.76 6.12l12.24 12.213 12.24-12.213 3.76 3.76-16 16-16-16 3.76-3.76z"></path></svg>'),e.innerHTML="".concat(n,"<span>").concat(e.innerHTML,"</span>")}else e.innerHTML="<svg></svg><span>".concat(e.innerHTML,"</span>");e.setAttribute("data-target-id",o[t])})),i=s.firstElementChild.innerHTML,0===l.length?(t.innerHTML="",i):(t.innerHTML=i,n&&(0,r.H)(t,{cdn:n.options.cdn,math:n.options.preview.math}),t.firstElementChild.addEventListener("click",(function(a){for(var r=a.target;r&&!r.isEqualNode(t);){if(r.classList.contains("vditor-outline__action")){r.classList.contains("vditor-outline__action--close")?(r.classList.remove("vditor-outline__action--close"),r.parentElement.nextElementSibling.setAttribute("style","display:block")):(r.classList.add("vditor-outline__action--close"),r.parentElement.nextElementSibling.setAttribute("style","display:none")),a.preventDefault(),a.stopPropagation();break}if(r.getAttribute("data-target-id")){a.preventDefault(),a.stopPropagation();var i=document.getElementById(r.getAttribute("data-target-id"));if(!i)return;if(n)if("auto"===n.options.height){var o=i.offsetTop+n.element.offsetTop;n.options.toolbarConfig.pin||(o+=n.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,o)}else n.element.offsetTop<window.scrollY&&window.scrollTo(window.scrollX,n.element.offsetTop),n.preview.element.contains(e)?e.parentElement.scrollTop=i.offsetTop:e.scrollTop=i.offsetTop;else window.scrollTo(window.scrollX,i.offsetTop);break}r=r.parentElement}})),i)}},229:(e,t,n)=>{n.d(t,{B:()=>o});var a=n(145),r=n(413),i=n(840),o=function(e,t){void 0===e&&(e=document),void 0===t&&(t=a.g.CDN);var n=i.plantumlRenderAdapter.getElements(e);0!==n.length&&(0,r.G)("".concat(t,"/dist/js/plantuml/plantuml-encoder.min.js"),"vditorPlantumlScript").then((function(){n.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=i.plantumlRenderAdapter.getCode(e).trim();if(t)try{e.innerHTML='<object type="image/svg+xml" data="https://www.plantuml.com/plantuml/svg/~1'.concat(plantumlEncoder.encode(t),'"/>')}catch(t){e.className="vditor-reset--error",e.innerHTML="plantuml render error: <br>".concat(t)}}}))}))}},214:(e,t,n)=>{n.d(t,{X:()=>a});var a=function(e){var t=Lute.New();return t.PutEmojis(e.emojis),t.SetEmojiSite(e.emojiSite),t.SetHeadingAnchor(e.headingAnchor),t.SetInlineMathAllowDigitAfterOpenMarker(e.inlineMathDigit),t.SetAutoSpace(e.autoSpace),t.SetToC(e.toc),t.SetFootnotes(e.footnotes),t.SetFixTermTypo(e.fixTermTypo),t.SetVditorCodeBlockPreview(e.codeBlockPreview),t.SetVditorMathBlockPreview(e.mathBlockPreview),t.SetSanitize(e.sanitize),t.SetChineseParagraphBeginningSpace(e.paragraphBeginningSpace),t.SetRenderListStyle(e.listStyle),t.SetLinkBase(e.linkBase),t.SetLinkPrefix(e.linkPrefix),t.SetMark(e.mark),t.SetGFMAutoLink(e.gfmAutoLink),e.lazyLoadImage&&t.SetImageLazyLoading(e.lazyLoadImage),t}},190:(e,t,n)=>{n.d(t,{E:()=>a});var a=function(e,t,n){void 0===t&&(t="zh_CN"),void 0===n&&(n="classic");var a=e.getBoundingClientRect();document.body.insertAdjacentHTML("beforeend",'<div class="vditor vditor-img'.concat("dark"===n?" vditor--dark":"",'">\n <div class="vditor-img__bar">\n <span class="vditor-img__btn" data-deg="0">\n <svg><use xlink:href="#vditor-icon-redo"></use></svg>\n ').concat(window.VditorI18n.spin,"\n </span>\n <span class=\"vditor-img__btn\" onclick=\"this.parentElement.parentElement.outerHTML = '';document.body.style.overflow = ''\">\n X &nbsp;").concat(window.VditorI18n.close,'\n </span>\n </div>\n <div class="vditor-img__img" onclick="this.parentElement.outerHTML = \'\';document.body.style.overflow = \'\'">\n <img style="width: ').concat(e.width,"px;height:").concat(e.height,"px;transform: translate3d(").concat(a.left,"px, ").concat(a.top-36,'px, 0)" src="').concat(e.getAttribute("src"),'">\n </div>\n</div>')),document.body.style.overflow="hidden";var r=document.querySelector(".vditor-img img"),i="translate3d(".concat(Math.max(0,window.innerWidth-e.naturalWidth)/2,"px, ").concat(Math.max(0,window.innerHeight-36-e.naturalHeight)/2,"px, 0)");setTimeout((function(){r.setAttribute("style","transition: transform .3s ease-in-out;transform: ".concat(i)),setTimeout((function(){r.parentElement.scrollTo((r.parentElement.scrollWidth-r.parentElement.clientWidth)/2,(r.parentElement.scrollHeight-r.parentElement.clientHeight)/2)}),400)}));var o=document.querySelector(".vditor-img__btn");o.addEventListener("click",(function(){var t=parseInt(o.getAttribute("data-deg"),10)+90;t/90%2==1&&e.naturalWidth>r.parentElement.clientHeight?r.style.transform="translate3d(".concat(Math.max(0,window.innerWidth-e.naturalWidth)/2,"px, ").concat(e.naturalWidth/2-e.naturalHeight/2,"px, 0) rotateZ(").concat(t,"deg)"):r.style.transform="".concat(i," rotateZ(").concat(t,"deg)"),o.setAttribute("data-deg",t.toString()),setTimeout((function(){r.parentElement.scrollTo((r.parentElement.scrollWidth-r.parentElement.clientWidth)/2,(r.parentElement.scrollHeight-r.parentElement.clientHeight)/2)}),400)}))}},580:(e,t,n)=>{n.d(t,{Y:()=>i});var a=n(145),r=n(290),i=function(e,t){void 0===t&&(t=a.g.CDN),a.g.CODE_THEME.includes(e)||(e="github");var n=document.getElementById("vditorHljsStyle"),i="".concat(t,"/dist/js/highlight.js/styles/").concat(e,".min.css");n?n.getAttribute("href")!==i&&(n.remove(),(0,r.c)(i,"vditorHljsStyle")):(0,r.c)(i,"vditorHljsStyle")}},538:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(290),r=function(e,t){if(e&&t){var n=document.getElementById("vditorContentTheme"),r="".concat(t,"/").concat(e,".css");n?n.getAttribute("href")!==r&&(n.remove(),(0,a.c)(r,"vditorContentTheme")):(0,a.c)(r,"vditorContentTheme")}}},413:(e,t,n)=>{n.d(t,{J:()=>a,G:()=>r});var a=function(e,t){if(document.getElementById(t))return!1;var n=new XMLHttpRequest;n.open("GET",e,!1),n.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),n.send("");var a=document.createElement("script");a.type="text/javascript",a.text=n.responseText,a.id=t,document.head.appendChild(a)},r=function(e,t){return new Promise((function(n,a){if(document.getElementById(t))return n(!0),!1;var r=document.createElement("script");r.src=e,r.async=!0,document.head.appendChild(r),r.onerror=function(e){a(e)},r.onload=function(){if(document.getElementById(t))return r.remove(),n(!0),!1;r.id=t,n(!0)}}))}},290:(e,t,n)=>{n.d(t,{c:()=>a});var a=function(e,t){if(!document.getElementById(t)){var n=document.createElement("link");n.id=t,n.rel="stylesheet",n.type="text/css",n.href=e,document.getElementsByTagName("head")[0].appendChild(n)}}},105:(e,t,n)=>{n.d(t,{X:()=>a});var a=function(e){return e.replace(/\u00a0/g," ")}},494:(e,t,n)=>{n.d(t,{Wb:()=>a,on:()=>r,Qf:()=>i});var a=function(){return([1e7].toString()+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(parseInt(e,10)^window.crypto.getRandomValues(new Uint32Array(1))[0]&15>>parseInt(e,10)/4).toString(16)}))},r=function(e,t){void 0===t&&(t=window.location.search);var n=t.substring(t.indexOf("?")),a=n.indexOf("#");return new URLSearchParams(n.substring(0,a>=0?a:void 0)).get(e)},i=function(e){return Function('"use strict";return ('.concat(e,")"))()}},106:(e,t,n)=>{n.d(t,{lG:()=>a,fb:()=>r});var a=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,a=!1;n&&!a&&!n.classList.contains("vditor-reset");)n.nodeName===t?a=!0:n=n.parentElement;return a&&n},r=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,a=!1;n&&!a&&!n.classList.contains("vditor-reset");)n.classList.contains(t)?a=!0:n=n.parentElement;return a&&n}},771:(e,t,n)=>{n.d(t,{W:()=>a});var a=function(e){var t=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,a=!1;n&&!a&&!n.classList.contains("vditor-reset");)0===n.nodeName.indexOf(t)?a=!0:n=n.parentElement;return a&&n}(e,"H");return!(!t||2!==t.tagName.length||"HR"===t.tagName)&&t}},673:(e,t,n)=>{n.d(t,{T:()=>a});var a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=function(e){for(var t in e)e.hasOwnProperty(t)&&("[object Object]"===Object.prototype.toString.call(e[t])?n[t]=a(n[t],e[t]):n[t]=e[t])},i=0;i<e.length;i++)r(e[i]);return n}},810:(e,t,n)=>{n.d(t,{Hc:()=>a});n(145);var a=function(e){var t=window.getSelection();t.removeAllRanges(),t.addRange(e)}}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.d(a,{default:()=>R});var e=n(135),t=n(840),r=n(775),i=n(428),o=n(325),s=n(483),c=n(999),l=function(e){void 0===e&&(e=document);var t=function(e){var t=document.createElement("img");t.src=e.getAttribute("data-src"),t.addEventListener("load",(function(){e.getAttribute("style")||e.getAttribute("class")||e.getAttribute("width")||e.getAttribute("height")||t.naturalHeight>t.naturalWidth&&t.naturalWidth/t.naturalHeight<document.querySelector(".vditor-reset").clientWidth/(window.innerHeight-40)&&t.naturalHeight>window.innerHeight-40&&(e.style.height=window.innerHeight-40+"px"),e.src=t.src})),e.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return e.querySelectorAll("img").forEach((function(e){e.getAttribute("data-src")&&t(e)})),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),e.querySelectorAll("img").forEach((function(e){window.vditorImageIntersectionObserver.observe(e)}))):(window.vditorImageIntersectionObserver=new IntersectionObserver((function(e){e.forEach((function(e){(void 0===e.isIntersecting?0!==e.intersectionRatio:e.isIntersecting)&&e.target.getAttribute("data-src")&&t(e.target)}))})),e.querySelectorAll("img").forEach((function(e){window.vditorImageIntersectionObserver.observe(e)})))},d=n(472),u=n(280),m=n(637),h=n(825),g=n(11),p=n(194),v=n(436),f=n(229),b=n(145),w=n(538),y=n(413),k=n(106),S=n(673),E=n(214),L=n(810),x=function(e,t){if(void 0===t&&(t="zh_CN"),"undefined"!=typeof speechSynthesis&&"undefined"!=typeof SpeechSynthesisUtterance){var n=function(){var e,n;return speechSynthesis.getVoices().forEach((function(a){a.lang===t.replace("_","-")&&(e=a),a.default&&(n=a)})),e||(e=n),e},a='<svg><use xlink:href="#vditor-icon-play"></use></svg>',r='<svg><use xlink:href="#vditor-icon-pause"></use></svg>';document.getElementById("vditorIconScript")||(a='<svg viewBox="0 0 32 32"><path d="M3.436 0l25.128 16-25.128 16v-32z"></path></svg>',r='<svg viewBox="0 0 32 32"><path d="M20.617 0h9.128v32h-9.128v-32zM2.255 32v-32h9.128v32h-9.128z"></path></svg>');var i=document.querySelector(".vditor-speech");i||((i=document.createElement("button")).className="vditor-speech",e.insertAdjacentElement("beforeend",i),void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=n));var o=n(),s=new SpeechSynthesisUtterance;s.voice=o,s.onend=s.onerror=function(){i.style.display="none",speechSynthesis.cancel(),i.classList.remove("vditor-speech--current"),i.innerHTML=a},e.addEventListener(void 0!==window.ontouchstart?"touchend":"click",(function(t){var n=t.target;if(n.classList.contains("vditor-speech")||n.parentElement.classList.contains("vditor-speech"))return i.classList.contains("vditor-speech--current")?speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),i.innerHTML=r):(speechSynthesis.pause(),i.innerHTML=a)):(s.text=i.getAttribute("data-text"),speechSynthesis.speak(s),i.classList.add("vditor-speech--current"),i.innerHTML=r),(0,L.Hc)(window.vditorSpeechRange),void e.focus();if(i.style.display="none",speechSynthesis.cancel(),i.classList.remove("vditor-speech--current"),i.innerHTML=a,0!==getSelection().rangeCount){var o=getSelection().getRangeAt(0),c=o.toString().trim();if(c){window.vditorSpeechRange=o.cloneRange();var l=o.getBoundingClientRect();i.innerHTML=a,i.style.display="block",i.style.top=l.top+l.height+document.querySelector("html").scrollTop-20+"px",void 0!==window.ontouchstart?i.style.left=t.changedTouches[t.changedTouches.length-1].pageX+2+"px":i.style.left=t.clientX+2+"px",i.setAttribute("data-text",c)}}}))}},A=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function s(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((a=a.apply(e,t||[])).next())}))},T=function(e,t){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&s[0]?a.return:s[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;switch(a=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,a=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],a=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},_=function(e){var t,n={anchor:0,cdn:b.g.CDN,customEmoji:{},emojiPath:"".concat(b.g.CDN,"/dist/images/emoji"),hljs:b.g.HLJS_OPTIONS,icon:"ant",lang:"zh_CN",markdown:b.g.MARKDOWN_OPTIONS,math:b.g.MATH_OPTIONS,mode:"light",speech:{enable:!1},render:{media:{enable:!0}},theme:b.g.THEME_OPTIONS};return e.cdn&&((null===(t=e.theme)||void 0===t?void 0:t.path)||(n.theme.path="".concat(e.cdn,"/dist/css/content-theme")),e.emojiPath||(n.emojiPath="".concat(e.cdn,"/dist/images/emoji"))),(0,S.T)(n,e)},M=function(e,t){var n=_(t);return(0,y.G)("".concat(n.cdn,"/dist/js/lute/lute.min.js"),"vditorLuteScript").then((function(){var a=(0,E.X)({autoSpace:n.markdown.autoSpace,gfmAutoLink:n.markdown.gfmAutoLink,codeBlockPreview:n.markdown.codeBlockPreview,emojiSite:n.emojiPath,emojis:n.customEmoji,fixTermTypo:n.markdown.fixTermTypo,footnotes:n.markdown.footnotes,headingAnchor:0!==n.anchor,inlineMathDigit:n.math.inlineDigit,lazyLoadImage:n.lazyLoadImage,linkBase:n.markdown.linkBase,linkPrefix:n.markdown.linkPrefix,listStyle:n.markdown.listStyle,mark:n.markdown.mark,mathBlockPreview:n.markdown.mathBlockPreview,paragraphBeginningSpace:n.markdown.paragraphBeginningSpace,sanitize:n.markdown.sanitize,toc:n.markdown.toc});return(null==t?void 0:t.renderers)&&a.SetJSRenderers({renderers:{Md2HTML:t.renderers}}),a.SetHeadingID(!0),a.Md2HTML(e)}))},j=function(t,n,a){return A(void 0,void 0,void 0,(function(){var v,b,S,E;return T(this,(function(L){switch(L.label){case 0:return v=_(a),[4,M(n,v)];case 1:if(b=L.sent(),v.transform&&(b=v.transform(b)),t.innerHTML=b,t.classList.add("vditor-reset"),v.i18n)return[3,5];if(["de_DE","en_US","es_ES","fr_FR","ja_JP","ko_KR","pt_BR","ru_RU","sv_SE","vi_VN","zh_CN","zh_TW"].includes(v.lang))return[3,2];throw new Error("options.lang error, see https://ld246.com/article/1549638745630#options");case 2:return E=(S="vditorI18nScript")+v.lang,document.querySelectorAll('head script[id^="'.concat(S,'"]')).forEach((function(e){e.id!==E&&document.head.removeChild(e)})),[4,(0,y.G)("".concat(v.cdn,"/dist/js/i18n/").concat(v.lang,".js"),E)];case 3:L.sent(),L.label=4;case 4:return[3,6];case 5:window.VditorI18n=v.i18n,L.label=6;case 6:return v.icon?[4,(0,y.G)("".concat(v.cdn,"/dist/js/icons/").concat(v.icon,".js"),"vditorIconScript")]:[3,8];case 7:L.sent(),L.label=8;case 8:return(0,w.Z)(v.theme.current,v.theme.path),1===v.anchor&&t.classList.add("vditor-reset--anchor"),(0,i.O)(t,v.hljs),(0,c.s)(v.hljs,t,v.cdn),(0,d.H)(t,{cdn:v.cdn,math:v.math}),(0,m.i)(t,v.cdn,v.mode),(0,h.J)(t,v.cdn,v.mode),(0,g.K)(t,v.cdn),(0,o.P)(t,v.cdn),(0,s.v)(t,v.cdn),(0,r.p)(t,v.cdn,v.mode),(0,p.P)(t,v.cdn,v.mode),(0,f.B)(t,v.cdn),(0,e.Q)(t,v.cdn),v.render.media.enable&&(0,u.Y)(t),v.speech.enable&&x(t),0!==v.anchor&&(A=v.anchor,document.querySelectorAll(".vditor-anchor").forEach((function(e){1===A&&e.classList.add("vditor-anchor--left"),e.onclick=function(){var t=e.getAttribute("href").substr(1),n=document.getElementById("vditorAnchor-"+t).offsetTop;document.querySelector("html").scrollTop=n}})),window.onhashchange=function(){var e=document.getElementById("vditorAnchor-"+decodeURIComponent(window.location.hash.substr(1)));e&&(document.querySelector("html").scrollTop=e.offsetTop)}),v.after&&v.after(),v.lazyLoadImage&&l(t),t.addEventListener("click",(function(e){var n=(0,k.lG)(e.target,"SPAN");if(n&&(0,k.fb)(n,"vditor-toc")){var a=t.querySelector("#"+n.getAttribute("data-target-id"));a&&window.scrollTo(window.scrollX,a.offsetTop)}else;})),[2]}var A}))}))},H=n(190),C=n(580);const R=function(){function n(){}return n.adapterRender=t,n.previewImage=H.E,n.codeRender=i.O,n.graphvizRender=s.v,n.highlightRender=c.s,n.mathRender=d.H,n.mermaidRender=m.i,n.SMILESRender=h.J,n.markmapRender=g.K,n.flowchartRender=o.P,n.chartRender=r.p,n.abcRender=e.Q,n.mindmapRender=p.P,n.plantumlRender=f.B,n.outlineRender=v.k,n.mediaRender=u.Y,n.speechRender=x,n.lazyLoadImageRender=l,n.md2html=M,n.preview=j,n.setCodeTheme=C.Y,n.setContentTheme=w.Z,n}()})(),a=a.default})()}));
@@ -8,7 +8,7 @@ export declare abstract class Constants {
8
8
  static readonly CLASS_MENU_DISABLED: string;
9
9
  static readonly EDIT_TOOLBARS: string[];
10
10
  static readonly CODE_THEME: string[];
11
- static readonly CODE_LANGUAGES: string[];
11
+ static readonly ALIAS_CODE_LANGUAGES: string[];
12
12
  static readonly CDN: string;
13
13
  static readonly MARKDOWN_OPTIONS: {
14
14
  autoSpace: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const download: (vditor: IVditor, content: string, filename: string) => void;
3
2
  export declare const exportMarkdown: (vditor: IVditor) => void;
4
3
  export declare const exportPDF: (vditor: IVditor) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const expandMarker: (range: Range, vditor: IVditor) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const highlightToolbarIR: (vditor: IVditor) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const input: (vditor: IVditor, range: Range, ignoreSpace?: boolean, event?: InputEvent) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const processHint: (vditor: IVditor) => void;
3
2
  export declare const processAfterRender: (vditor: IVditor, options?: {
4
3
  enableAddUndoStack: boolean;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const processKeydown: (vditor: IVditor, event: KeyboardEvent) => boolean;
@@ -0,0 +1 @@
1
+ export declare const SMILESRender: (element: (HTMLElement | Document), cdn: string, theme: string) => void;
@@ -1,15 +1,19 @@
1
1
  export declare const mathRenderAdapter: {
2
- getCode: (mathElement: Element) => string;
3
- getElements: (element: HTMLElement) => NodeListOf<Element>;
2
+ getCode: (el: Element) => string;
3
+ getElements: (element: HTMLElement | Document) => NodeListOf<Element>;
4
+ };
5
+ export declare const SMILESRenderAdapter: {
6
+ getCode: (el: Element) => string;
7
+ getElements: (element: HTMLElement | Document) => NodeListOf<Element>;
4
8
  };
5
9
  export declare const mermaidRenderAdapter: {
6
10
  /** 不仅要返回code,并且需要将 code 设置为 el 的 innerHTML */
7
11
  getCode: (el: Element) => string;
8
- getElements: (element: HTMLElement) => NodeListOf<Element>;
12
+ getElements: (element: HTMLElement | Document) => NodeListOf<Element>;
9
13
  };
10
14
  export declare const markmapRenderAdapter: {
11
15
  getCode: (el: Element) => string;
12
- getElements: (element: HTMLElement) => NodeListOf<Element>;
16
+ getElements: (element: HTMLElement | Document) => NodeListOf<Element>;
13
17
  };
14
18
  export declare const mindmapRenderAdapter: {
15
19
  getCode: (el: Element) => string;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const codeRender: (element: HTMLElement, option?: IHljs) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const getHTML: (vditor: IVditor) => string;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const getMarkdown: (vditor: IVditor) => string;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const highlightRender: (hljsOption?: IHljs, element?: HTMLElement | Document, cdn?: string) => void;
@@ -1 +1 @@
1
- export declare const markmapRender: (element: HTMLElement, cdn: string, theme: string) => void;
1
+ export declare const markmapRender: (element?: (HTMLElement | Document), cdn?: string) => void;
@@ -1,10 +1,9 @@
1
- /// <reference types="./types" />
2
1
  declare global {
3
2
  interface Window {
4
3
  MathJax: any;
5
4
  }
6
5
  }
7
- export declare const mathRender: (element: HTMLElement, options?: {
6
+ export declare const mathRender: (element?: (HTMLElement | Document), options?: {
8
7
  cdn?: string;
9
8
  math?: IMath;
10
9
  }) => void;
@@ -1 +1 @@
1
- export declare const mermaidRender: (element: HTMLElement, cdn: string, theme: string) => void;
1
+ export declare const mermaidRender: (element: (HTMLElement | Document), cdn: string, theme: string) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const outlineRender: (contentElement: HTMLElement, targetElement: Element, vditor?: IVditor) => string;
@@ -1,3 +1,2 @@
1
- /// <reference types="./types" />
2
1
  export declare const md2html: (mdText: string, options?: IPreviewOptions) => Promise<string>;
3
2
  export declare const previewRender: (previewElement: HTMLDivElement, markdown: string, options?: IPreviewOptions) => Promise<void>;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const setLute: (options: ILuteOptions) => Lute;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  declare global {
3
2
  interface Window {
4
3
  vditorSpeechRange: Range;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const previewImage: (oldImgElement: HTMLImageElement, lang?: keyof II18n, theme?: string) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const inputEvent: (vditor: IVditor, event?: InputEvent) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const processPaste: (vditor: IVditor, text: string) => void;
3
2
  export declare const getSideByType: (spanNode: Node, type: string, isPrevious?: boolean) => false | Element;
4
3
  export declare const processSpinVditorSVDOM: (html: string, vditor: IVditor) => string;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const processKeydown: (vditor: IVditor, event: KeyboardEvent) => boolean;
@@ -5,5 +5,6 @@ export declare class Toolbar {
5
5
  };
6
6
  element: HTMLElement;
7
7
  constructor(vditor: IVditor);
8
+ updateConfig(vditor: IVditor, options: IToolbarConfig): void;
8
9
  private genItem;
9
10
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const removeCurrentToolbar: (toolbar: {
3
2
  [key: string]: HTMLElement;
4
3
  }, names: string[]) => void;
@@ -1,9 +1,3 @@
1
- /// <reference types="./types" />
2
- declare global {
3
- interface Window {
4
- visualViewport: HTMLElement;
5
- }
6
- }
7
1
  export declare const initUI: (vditor: IVditor) => void;
8
2
  export declare const setPadding: (vditor: IVditor) => void;
9
3
  export declare const setTypewriterPosition: (vditor: IVditor) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const setPreviewMode: (mode: "both" | "editor", vditor: IVditor) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const setTheme: (vditor: IVditor) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const getElement: (vditor: IVditor) => HTMLPreElement;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  declare class Upload {
3
2
  element: HTMLElement;
4
3
  isUploading: boolean;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const setHeaders: (vditor: IVditor, xhr: XMLHttpRequest) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const focusEvent: (vditor: IVditor, editorElement: HTMLElement) => void;
3
2
  export declare const dblclickEvent: (vditor: IVditor, editorElement: HTMLElement) => void;
4
3
  export declare const blurEvent: (vditor: IVditor, editorElement: HTMLElement) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const fixGSKeyBackspace: (event: KeyboardEvent, vditor: IVditor, startContainer: Node) => boolean;
3
2
  export declare const fixCJKPosition: (range: Range, vditor: IVditor, event: KeyboardEvent) => void;
4
3
  export declare const fixCursorDownInlineMath: (range: Range, key: string) => void;
@@ -1,2 +1,3 @@
1
1
  export declare const genUUID: () => string;
2
2
  export declare const getSearch: (key: string, link?: string) => string;
3
+ export declare const looseJsonParse: (text: string) => any;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const highlightToolbar: (vditor: IVditor) => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="./types" />
2
1
  export declare const processPasteCode: (html: string, text: string, type?: string) => string | false;
3
2
  export declare const processCodeRender: (previewPanel: HTMLElement, vditor: IVditor) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const getEditorRange: (vditor: IVditor) => Range;
3
2
  export declare const getCursorPosition: (editor: HTMLElement) => {
4
3
  left: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const renderToc: (vditor: IVditor) => void;
3
2
  export declare const clickToc: (event: MouseEvent & {
4
3
  target: HTMLElement;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const afterRenderEvent: (vditor: IVditor, options?: {
3
2
  enableAddUndoStack: boolean;
4
3
  enableHint: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const highlightToolbarWYSIWYG: (vditor: IVditor) => void;
3
2
  export declare const genLinkRefPopover: (vditor: IVditor, linkRefElement: HTMLElement, range?: Range) => void;
4
3
  export declare const genAPopover: (vditor: IVditor, aElement: HTMLElement, range: Range) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const previoueIsEmptyA: (node: Node) => false | HTMLElement;
3
2
  export declare const nextIsCode: (range: Range) => boolean;
4
3
  export declare const getNextHTML: (node: Node) => string;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const input: (vditor: IVditor, range: Range, event?: InputEvent) => void;
@@ -1,3 +1,2 @@
1
- /// <reference types="./types" />
2
1
  export declare const processKeydown: (vditor: IVditor, event: KeyboardEvent) => boolean;
3
2
  export declare const removeBlockElement: (vditor: IVditor, event: KeyboardEvent) => boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="./types" />
2
1
  export declare const renderDomByMd: (vditor: IVditor, md: string, options?: {
3
2
  enableAddUndoStack: boolean;
4
3
  enableHint: boolean;
@@ -1,3 +1,2 @@
1
- /// <reference types="./types" />
2
1
  export declare const setHeading: (vditor: IVditor, tagName: string) => void;
3
2
  export declare const removeHeading: (vditor: IVditor) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const showCode: (previewElement: HTMLElement, vditor: IVditor, first?: boolean) => void;
@@ -1,2 +1 @@
1
- /// <reference types="./types" />
2
1
  export declare const toolbarEvent: (vditor: IVditor, actionBtn: Element, event: Event) => void;