vue-stream-markdown 0.4.0 → 0.4.1

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 (215) hide show
  1. package/README.md +1 -0
  2. package/dist/arrow-left-CYpegDtb.js +1 -0
  3. package/dist/astro-CU9halU_.js +1 -0
  4. package/dist/bash-Sy785HG8.js +1 -0
  5. package/dist/blockquote-CPqp0E5_.js +1 -0
  6. package/dist/break-CZWWxF4f.js +1 -0
  7. package/dist/button-BP48W4Ii.js +1 -0
  8. package/dist/button-FB5v8pIn.js +1 -0
  9. package/dist/c-B5D7pupz.js +1 -0
  10. package/dist/check-l_Jw6MRl.js +1 -0
  11. package/dist/chevron-down-BUjA7aF8.js +1 -0
  12. package/dist/circle-alert-BIIE12BL.js +1 -0
  13. package/dist/code-FQ9zDdjP.js +1 -0
  14. package/dist/code-block-B9LpqO8_.js +1 -0
  15. package/dist/code-block-BHv6O48i.js +1 -0
  16. package/dist/code-xml-DH_hbsED.js +1 -0
  17. package/dist/composables-CvwBC0F_.js +22 -0
  18. package/dist/copy-vwjnLuop.js +1 -0
  19. package/dist/corner-down-left-jUy4X1eT.js +1 -0
  20. package/dist/cpp-Bi4XfCI-.js +1 -0
  21. package/dist/csharp-BBFMv8iB.js +1 -0
  22. package/dist/css-Dh9tqRBO.js +1 -0
  23. package/dist/csv-CNJykG6U.js +1 -0
  24. package/dist/database-IyIycLpb.js +1 -0
  25. package/dist/delete-BNMbnPY-.js +1 -0
  26. package/dist/dist-D1SilaNH.js +1 -0
  27. package/dist/download-CcbIVfss.js +1 -0
  28. package/dist/dropdown-BteY09RJ.js +1 -0
  29. package/dist/emphasis-Bjx36Ael.js +1 -0
  30. package/dist/en-US-Byh57Qur.js +1 -0
  31. package/dist/error-component-CBvdYW29.js +1 -0
  32. package/dist/error-component-DPIYTtTq.js +1 -0
  33. package/dist/eye-CQ-QkFha.js +1 -0
  34. package/dist/flip-horizontal-iGpneN1F.js +1 -0
  35. package/dist/footnote-definition-CXC3ohxA.js +1 -0
  36. package/dist/footnote-reference-o7r0Itgh.js +1 -0
  37. package/dist/go-DeGTGsFM.js +1 -0
  38. package/dist/graphql-BXjx1Szy.js +1 -0
  39. package/dist/heading-aPWP5N2f.js +1 -0
  40. package/dist/html-CjlbKyR2.js +1 -0
  41. package/dist/html-DUdQ21dy.js +1 -0
  42. package/dist/html-XxMD1Y4j.js +1 -0
  43. package/dist/icon-BGnRzcDQ.js +1 -0
  44. package/dist/icon-DMEPVqBl.js +1 -0
  45. package/dist/image-B78PKQa-.js +1 -0
  46. package/dist/image-C0oBBzeP.js +5 -0
  47. package/dist/image-C1Z9Wzgi.js +1 -0
  48. package/dist/image-DuGrouZG.js +1 -0
  49. package/dist/index.css +4 -4
  50. package/dist/index.d.ts +28 -15
  51. package/dist/index.js +66 -13476
  52. package/dist/inline-code-Co2QSbWR.js +1 -0
  53. package/dist/inline-math-BXuBhxXY.js +1 -0
  54. package/dist/java-CR9pDbhW.js +1 -0
  55. package/dist/javascript-B8QW4VUg.js +1 -0
  56. package/dist/json-YE6NQq3D.js +1 -0
  57. package/dist/kotlin-CmsxUNRx.js +1 -0
  58. package/dist/less-CqhE5R60.js +1 -0
  59. package/dist/link-CZ-xDGpy.js +1 -0
  60. package/dist/link-QvGq0D9H.js +1 -0
  61. package/dist/list-BMJQGSBT.js +1 -0
  62. package/dist/list-item-Dr7F01Yx.js +1 -0
  63. package/dist/lua-Dd--_Ed3.js +1 -0
  64. package/dist/luau-CnIQRrch.js +1 -0
  65. package/dist/markdown-dV2tmMcA.js +1 -0
  66. package/dist/math-BLjoB2H0.js +1 -0
  67. package/dist/maximize-C-4O7fib.js +1 -0
  68. package/dist/mermaid-Dt5YzARA.js +1 -0
  69. package/dist/mermaid-pYY1N6h7.js +1 -0
  70. package/dist/minimize-DpyFZi5Y.js +1 -0
  71. package/dist/modal-DE8lbbkB.js +1 -0
  72. package/dist/modal-uk5STWXc.js +1 -0
  73. package/dist/node-list-Bc7Jr5_G.js +1 -0
  74. package/dist/node-list-CfSULagA.js +1 -0
  75. package/dist/paragraph-CI9gFiAo.js +1 -0
  76. package/dist/php-Qt_0fjEA.js +1 -0
  77. package/dist/python-DmXK3DMf.js +1 -0
  78. package/dist/rotate-ccw-square-5L9XHaHN.js +1 -0
  79. package/dist/rust-Clk4lMbg.js +1 -0
  80. package/dist/sass-CZAH6h0X.js +1 -0
  81. package/dist/segmented-DHEyfxEy.js +1 -0
  82. package/dist/segmented-DpRV21hR.js +1 -0
  83. package/dist/shiki-FYj4y0d6.js +1 -0
  84. package/dist/shiki-token-renderer-D19JIo-M.js +1 -0
  85. package/dist/spin-BeK5bQSr.js +1 -0
  86. package/dist/spin-D-xx-29z.js +1 -0
  87. package/dist/strong-BNTh226t.js +1 -0
  88. package/dist/svelte-MQt5ntN4.js +1 -0
  89. package/dist/swift-CsbTthBm.js +1 -0
  90. package/dist/table-C-QsciCt.js +1 -0
  91. package/dist/table-Cz-PtUCd.js +1 -0
  92. package/dist/table-w-Mt8gm1.js +1 -0
  93. package/dist/text-D2XcF8ky.js +1 -0
  94. package/dist/thematic-break-CiwmYv-x.js +1 -0
  95. package/dist/toml-D7aJWQRf.js +1 -0
  96. package/dist/tooltip-BfFn18XP.js +1 -0
  97. package/dist/tooltip-D4l7B0Kg.js +1 -0
  98. package/dist/typescript-Bwp1FsHp.js +1 -0
  99. package/dist/vanilla-C4N_WjcK.js +1 -0
  100. package/dist/vanilla-C8r0jxrQ.js +2 -0
  101. package/dist/vue-3k1qlxsT.js +1 -0
  102. package/dist/xml-ruMbHxLz.js +1 -0
  103. package/dist/yaml-A7-swkmp.js +2 -0
  104. package/dist/yaml-BRkP2rXn.js +1 -0
  105. package/dist/zh-CN-B75cOOGL.js +1 -0
  106. package/dist/zoom-container-B8LI8BSl.js +1 -0
  107. package/dist/zoom-container-D7MNwEQa.js +1 -0
  108. package/dist/zoomIn-Ckz9sKS5.js +1 -0
  109. package/dist/zoomOut-DSyhtATi.js +1 -0
  110. package/package.json +3 -2
  111. package/dist/arrow-left-zhg5u2r5.js +0 -25
  112. package/dist/astro-oar0KAwc.js +0 -28
  113. package/dist/bash-DYnw_0yV.js +0 -27
  114. package/dist/blockquote-CFlAgmCg.js +0 -84
  115. package/dist/break-CURrRIdR.js +0 -81
  116. package/dist/button-BoKYG7el.js +0 -208
  117. package/dist/button-DJ1u4iFx.js +0 -6
  118. package/dist/c-C7a89AdZ.js +0 -25
  119. package/dist/check-D6OPMpPx.js +0 -25
  120. package/dist/chevron-down-DIHQBzex.js +0 -25
  121. package/dist/circle-alert-C1CLII5S.js +0 -28
  122. package/dist/code-BymwpPzl.js +0 -106
  123. package/dist/code-block-dtxRYOcz.js +0 -9
  124. package/dist/code-block-mCGYm-8R.js +0 -446
  125. package/dist/code-xml-BLybRaNH.js +0 -25
  126. package/dist/composables-BPjuqr9i.js +0 -10432
  127. package/dist/copy-P6zhJWL0.js +0 -31
  128. package/dist/corner-down-left-hvETDeXM.js +0 -24
  129. package/dist/cpp-DCrFjdnk.js +0 -31
  130. package/dist/csharp-BqZk2rNK.js +0 -22
  131. package/dist/css-bVZlyhbn.js +0 -26
  132. package/dist/csv-C8FrjOHM.js +0 -24
  133. package/dist/database-EpCaVFom.js +0 -24
  134. package/dist/delete-B52e3cI0.js +0 -84
  135. package/dist/dist-BVfXq2lF.js +0 -119
  136. package/dist/download-BGJGA3o3.js +0 -24
  137. package/dist/dropdown-B-2ipllF.js +0 -6
  138. package/dist/emphasis-FOujIS53.js +0 -84
  139. package/dist/en-US-D3fXxL25.js +0 -34
  140. package/dist/error-component-B29LG8DV.js +0 -73
  141. package/dist/error-component-QYbSBKBe.js +0 -5
  142. package/dist/eye-i-rXF8hU.js +0 -28
  143. package/dist/flip-horizontal-BqGtnJEP.js +0 -25
  144. package/dist/footnote-definition-DjbSqpDZ.js +0 -112
  145. package/dist/footnote-reference-B_68fV90.js +0 -94
  146. package/dist/go-NjWbvZtv.js +0 -24
  147. package/dist/graphql-BD5Lulm4.js +0 -24
  148. package/dist/heading-Cz3aG8XF.js +0 -89
  149. package/dist/html-6VSbZqNl.js +0 -101
  150. package/dist/html-D5KsZ42i.js +0 -78
  151. package/dist/html-IhvXS193.js +0 -28
  152. package/dist/icon-D47gsRkI.js +0 -67
  153. package/dist/icon-DwetPquz.js +0 -4
  154. package/dist/image-BhzeDCr6.js +0 -39
  155. package/dist/image-Cv91lvIS.js +0 -9
  156. package/dist/image-DhlTh8hx.js +0 -191
  157. package/dist/image-T8Zt0dEC.js +0 -258
  158. package/dist/inline-code-Dz387-53.js +0 -81
  159. package/dist/inline-math-CWlROXy7.js +0 -106
  160. package/dist/java-CId7Gz8T.js +0 -35
  161. package/dist/javascript-zhGKW9M7.js +0 -23
  162. package/dist/json-BRYu8GCj.js +0 -24
  163. package/dist/kotlin-CKCus94S.js +0 -18
  164. package/dist/less-BRiNCl3X.js +0 -24
  165. package/dist/link-BrGwoBZR.js +0 -24
  166. package/dist/link-CqsgMcNJ.js +0 -105
  167. package/dist/list-CyUKL72M.js +0 -89
  168. package/dist/list-item-BBLg0O9D.js +0 -96
  169. package/dist/lua-bUIzyQfz.js +0 -28
  170. package/dist/luau-DlZjD_jx.js +0 -28
  171. package/dist/markdown-Cb6elS5h.js +0 -24
  172. package/dist/math-DNej8BBv.js +0 -106
  173. package/dist/maximize-C81yY7k0.js +0 -25
  174. package/dist/mermaid-BmYewaQH.js +0 -24
  175. package/dist/mermaid-_0H6A6MF.js +0 -256
  176. package/dist/minimize-DNjju1Yw.js +0 -25
  177. package/dist/modal-C6YdVvIY.js +0 -3
  178. package/dist/modal-CjBdIba9.js +0 -96
  179. package/dist/node-list-DvdxT_I8.js +0 -122
  180. package/dist/node-list-ks3xapVp.js +0 -4
  181. package/dist/paragraph-BkdzVYQ6.js +0 -84
  182. package/dist/php-DqMBx2Ig.js +0 -24
  183. package/dist/python-BDlOIxx1.js +0 -35
  184. package/dist/rotate-ccw-square-DKpVumwF.js +0 -24
  185. package/dist/rust-DfEB1_u0.js +0 -23
  186. package/dist/sass-DU2Wz7t3.js +0 -24
  187. package/dist/segmented-5IEYELOm.js +0 -74
  188. package/dist/segmented-BvmKHem1.js +0 -7
  189. package/dist/shiki-Bdlpw3RO.js +0 -135
  190. package/dist/shiki-token-renderer-IK9mRziX.js +0 -43
  191. package/dist/spin-B9LOjkAV.js +0 -23
  192. package/dist/spin-DDsOFaX_.js +0 -3
  193. package/dist/strong-xFrA08IU.js +0 -84
  194. package/dist/svelte-_mytXHDL.js +0 -23
  195. package/dist/swift-DOLGX-kT.js +0 -24
  196. package/dist/table-BRku_p4g.js +0 -3
  197. package/dist/table-Bupn-WJF.js +0 -195
  198. package/dist/table-C5JcyVfS.js +0 -58
  199. package/dist/text-Cz5Fct9e.js +0 -81
  200. package/dist/thematic-break-DcXcWt6t.js +0 -81
  201. package/dist/toml-C7ZUmEqS.js +0 -24
  202. package/dist/tooltip-BD1N_Tgq.js +0 -4
  203. package/dist/tooltip-MJavNIdK.js +0 -70
  204. package/dist/typescript-uwDurka6.js +0 -23
  205. package/dist/vanilla-CCK_tdSO.js +0 -39
  206. package/dist/vanilla-DRmPSALP.js +0 -4
  207. package/dist/vue-BJdaeF1B.js +0 -23
  208. package/dist/xml-B6kGWE-m.js +0 -24
  209. package/dist/yaml-BRvANrPG.js +0 -24
  210. package/dist/yaml-DpEqMlWD.js +0 -94
  211. package/dist/zh-CN-ufzNQh7C.js +0 -34
  212. package/dist/zoom-container-Ctut7s94.js +0 -191
  213. package/dist/zoom-container-DXqRaJOg.js +0 -7
  214. package/dist/zoomIn-wFYXdxOi.js +0 -28
  215. package/dist/zoomOut-DycggXGh.js +0 -28
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # vue-stream-markdown
2
2
 
3
3
  [![npm version][npm-version-src]][npm-version-href]
4
+ [![bundle][bundle-src]][bundle-href]
4
5
  [![License][license-src]][license-href]
5
6
 
6
7
  A markdown renderer specially optimized for streaming scenarios, inspired by [streamdown](https://streamdown.ai/). Designed to achieve smoother streaming rendering through syntax inference and highly customizable rendering elements.
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m12 19l-7-7l7-7m7 7H5`},null,-1)]])}var o=n({name:`lucide-arrow-left`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[t(`path`,{stroke:`#cad3f5`,d:`M10.561 1.61L13.5 10.5c-.995-.517-2.395-1.298-3.5-1.493L8 3.5L6 9.007c-1.11.194-2.5.974-3.5 1.493l3.163-8.891c.121-.398.182-.597.302-.745A1 1 0 0 1 6.36.57c.176-.07.384-.07.8-.07h1.902c.416 0 .625 0 .801.071a1 1 0 0 1 .396.293c.12.148.18.347.301.746`}),t(`path`,{stroke:`#c6a0f6`,d:`M10.411 11.266c-.43.365-1.292.613-2.283.613c-1.217 0-2.237-.374-2.508-.879a2.8 2.8 0 0 0-.119.831s-.063 1.038.666 1.76c0-.374.307-.679.686-.679c.648 0 .648.561.647 1.016v.04c0 .691.426 1.282 1.032 1.532a1.4 1.4 0 0 1-.141-.61c0-.658.39-.903.845-1.188c.36-.227.761-.479 1.038-.985a1.84 1.84 0 0 0 .137-1.451`})],-1)]])}var o=n({name:`catppuccin-astro`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,stroke:`#a6da95`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[t(`path`,{d:`M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z`}),t(`path`,{d:`m1.2 3.8l3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 0 1-.7 1.75l-2.68 3.51`}),t(`path`,{d:`M6 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S3.54 10 4.2 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25M4.5 6.5v1m0 5v1`})],-1)]])}var o=n({name:`catppuccin-bash`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import{t as e}from"./node-list-Bc7Jr5_G.js";import{createElementBlock as t,createVNode as n,defineComponent as r,mergeProps as i,openBlock as a}from"vue";const o={"data-stream-markdown":`blockquote`};var s=r({__name:`blockquote`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(r){let s=r;return(c,l)=>(a(),t(`blockquote`,o,[n(e,i(s,{"parent-node":r.node,nodes:r.node.children,deep:r.deep+1}),null,16,[`parent-node`,`nodes`,`deep`])]))}});export{s as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,defineComponent as t,openBlock as n}from"vue";const r={"data-stream-markdown":`break`};var i=t({__name:`break`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(t){return(t,i)=>(n(),e(`br`,r))}});export{i as default};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import"./tooltip-D4l7B0Kg.js";import{t as e}from"./button-FB5v8pIn.js";import"./icon-BGnRzcDQ.js";export{e as default};
@@ -0,0 +1 @@
1
+ import{t as e}from"./tooltip-D4l7B0Kg.js";import{t}from"./icon-BGnRzcDQ.js";import{Fragment as n,computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,createVNode as l,defineComponent as u,mergeProps as d,normalizeClass as f,normalizeStyle as p,openBlock as m,ref as h,renderList as g,renderSlot as _,resolveDynamicComponent as v,toDisplayString as y,unref as b,withCtx as x}from"vue";import{createReusableTemplate as S}from"@vueuse/core";const C={"data-stream-markdown":`dropdown-overlay`};var w=u({__name:`dropdown`,props:{title:{type:String,required:!1},options:{type:Array,required:!1,default:()=>[]}},emits:[`click`],setup(t,{emit:r}){let a=r,c=h(),l={minWidth:`120px`,display:`flex`,justifyContent:`start`,gap:`0.625rem`,fontSize:`0.875rem`,lineHeight:`1.25rem`};function u(e,t){a(`click`,e,t),c.value?.hide()}return(r,a)=>(m(),i(e,{ref_key:`tooltipRef`,ref:c,trigger:`click`,placement:`bottom-end`,"data-stream-markdown":`dropdown`},{content:x(()=>[s(`div`,C,[(m(!0),o(n,null,g(t.options,e=>(m(),i(T,{key:e.value,name:e.label,icon:e.icon,"button-style":l,variant:`text`,onClick:t=>u(t,e)},null,8,[`name`,`icon`,`onClick`]))),128))])]),default:x(()=>[_(r.$slots,`default`)]),_:3},512))}}),T=u({inheritAttrs:!1,__name:`button`,props:{variant:{type:String,required:!1,default:`icon`},name:{type:String,required:!0},buttonClass:{type:[String,Array,Object],required:!1},buttonStyle:{type:Object,required:!1,default:()=>({})},icon:{type:null,required:!1},iconWidth:{type:Number,required:!1,default:14},iconHeight:{type:Number,required:!1,default:14},iconClass:{type:[String,Array,Object],required:!1},iconStyle:{type:Object,required:!1,default:()=>({})},options:{type:Array,required:!1,default:()=>[]}},emits:[`click`],setup(u,{emit:h}){let g=u,_=h,[C,T]=S(),E=r(()=>g.options.length>0);function D(e){E.value||_(`click`,e)}function O(e,t){t&&_(`click`,e,t)}return(r,h)=>(m(),o(n,null,[l(b(C),null,{default:x(()=>[u.icon?(m(),i(t,{key:0,icon:u.icon,width:u.iconWidth,height:u.iconHeight,class:f(u.iconClass),style:p(u.iconStyle)},null,8,[`icon`,`width`,`height`,`class`,`style`])):a(`v-if`,!0)]),_:1}),u.variant===`icon`?(m(),i(v(E.value?w:e),d({key:0},r.$attrs,{content:E.value?void 0:u.name,title:u.name,options:u.options,onClick:O}),{default:x(()=>[s(`button`,d(r.$attrs,{"data-stream-markdown":`button`,type:`button`,class:u.buttonClass,style:u.buttonStyle,onClick:D}),[l(b(T))],16)]),_:1},16,[`content`,`title`,`options`])):u.variant===`text`&&!E.value?(m(),o(`button`,d({key:1},r.$attrs,{"data-stream-markdown":`button`,type:`button`,class:u.buttonClass,style:u.buttonStyle,onClick:D}),[l(b(T)),c(` `+y(u.name),1)],16)):(m(),i(w,d({key:2},r.$attrs,{title:u.name,options:u.options,onClick:O}),{default:x(()=>[s(`button`,{"data-stream-markdown":`button`,type:`button`,class:f(u.buttonClass),style:p(u.buttonStyle),onClick:D},[l(b(T)),c(` `+y(u.name),1)],6)]),_:1},16,[`title`,`options`]))],64))}});export{w as n,T as t};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`#8aadf4`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M4.056 12.952a7.05 7.05 0 0 0 9.944 0l-1.79-1.783a4.513 4.513 0 0 1-6.364 0a4.47 4.47 0 0 1 0-6.338a4.513 4.513 0 0 1 6.364 0l.895-.891l.895-.892a7.05 7.05 0 0 0-9.944 0a6.98 6.98 0 0 0 0 9.904`,"clip-rule":`evenodd`},null,-1)]])}var o=n({name:`catppuccin-c`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M20 6L9 17l-5-5`},null,-1)]])}var o=n({name:`lucide-check`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m6 9l6 6l6-6`},null,-1)]])}var o=n({name:`lucide-chevron-down`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[t(`circle`,{cx:`12`,cy:`12`,r:`10`}),t(`path`,{d:`M12 8v4m0 4h.01`})],-1)]])}var o=n({name:`lucide-circle-alert`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{r as e}from"./composables-CvwBC0F_.js";import"./tooltip-D4l7B0Kg.js";import"./button-FB5v8pIn.js";import"./icon-BGnRzcDQ.js";import"./modal-DE8lbbkB.js";import{t}from"./code-block-B9LpqO8_.js";import"./segmented-DpRV21hR.js";import{computed as n,createBlock as r,createCommentVNode as i,defineAsyncComponent as a,defineComponent as o,guardReactiveProps as s,mergeProps as c,normalizeProps as l,openBlock as u,resolveDynamicComponent as d,withCtx as f}from"vue";var p=o({__name:`index`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1},showHeader:{type:Boolean,required:!1,default:!0}},setup(i){let o=i,s=n(()=>`language-${o.node.lang}`),{installed:p}=e(),m={vanilla:a(()=>import(`./vanilla-C4N_WjcK.js`)),shiki:a(()=>import(`./shiki-FYj4y0d6.js`))},h=n(()=>p.value?m.shiki:m.vanilla);return(e,n)=>i.showHeader?(u(),r(t,l(c({key:0},o)),{default:f(()=>[(u(),r(d(h.value),c(o,{class:[s.value]}),null,16,[`class`]))]),_:1},16)):(u(),r(d(h.value),c({key:1},o,{class:[s.value]}),null,16,[`class`]))}});export{p as default};
@@ -0,0 +1 @@
1
+ import{S as e,a as t,b as n,ct as r,d as i,ot as a,st as o,x as ee}from"./composables-CvwBC0F_.js";import{CODE_PREVIEWERS as te,save as ne}from"./index.js";import{t as s}from"./button-FB5v8pIn.js";import{t as re}from"./modal-DE8lbbkB.js";import{t as c}from"./segmented-DpRV21hR.js";import{Fragment as l,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createVNode as h,defineAsyncComponent as ie,defineComponent as g,mergeProps as _,normalizeClass as v,normalizeStyle as ae,openBlock as y,ref as b,renderList as x,renderSlot as S,resolveDynamicComponent as C,toDisplayString as w,toRefs as oe,unref as T,useModel as E,vShow as D,watch as se,withCtx as O,withDirectives as k}from"vue";import{createReusableTemplate as ce,useClipboard as le}from"@vueuse/core";const A={"data-stream-markdown":`actions`};var j=g({__name:`actions`,props:{actions:{type:Array,required:!1,default:()=>[]}},setup(e){return(t,n)=>(y(),p(`div`,A,[(y(!0),p(l,null,x(e.actions,e=>(y(),d(s,_({ref_for:!0},e,{key:e.key,onClick:e.onClick}),null,16,[`onClick`]))),128))]))}});const M={"data-stream-markdown":`language-title`},N={key:1,"data-stream-markdown":`language-name`};var ue=g({__name:`language-title`,props:{icon:{type:null,required:!1},language:{type:String,required:!0},showIcon:{type:Boolean,required:!1,default:!0},showName:{type:Boolean,required:!1,default:!0}},setup(e){return(t,n)=>(y(),p(`header`,M,[e.showIcon?(y(),d(C(e.icon),{key:0})):f(`v-if`,!0),e.showName?(y(),p(`span`,N,w(e.language),1)):f(`v-if`,!0)]))}}),P=g({__name:`preview-segmented`,props:{mode:{type:String,required:!1,default:`source`},modeModifiers:{},collapsed:{type:Boolean,required:!1,default:!1},collapsedModifiers:{}},emits:[`update:mode`,`update:collapsed`],setup(e){let t=E(e,`mode`),n=E(e,`collapsed`),{t:r}=i(),a=u(()=>[{label:r(`button.preview`),value:`preview`,icon:`preview`},{label:r(`button.source`),value:`source`,icon:`code`}]);return(e,r)=>(y(),d(c,{value:t.value,"onUpdate:value":r[0]||=e=>t.value=e,options:a.value,"button-style":{fontFamily:`var(--font-mono)`},onChange:r[1]||=()=>n.value=!1},null,8,[`value`,`options`]))}});const de={key:2},fe=[`data-collapsed`],pe={"data-stream-markdown":`code-block-header`},me={key:1},he={"data-stream-markdown":`actions`},ge={"data-stream-markdown":`actions`};var F=g({inheritAttrs:!1,__name:`index`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(s){let c=s,g=ie(()=>import(`./code-FQ9zDdjP.js`)),{controls:x,previewers:w,codeOptions:E}=oe(c),[A,M]=ce(),{t:N}=i(),{isControlEnabled:F,getControlValue:_e,resolveControls:I}=n({controls:x}),{installed:L}=t(),{icons:ve,beforeDownload:R,onCopied:ye}=ee(),{copy:z,copied:be}=le({legacy:!0}),{saveMermaid:xe}=t(),B=b(!1),V=b(!1),H=b(`source`),U=u(()=>{let e=c.node.lang;return e?a[e]?a[e]:e:`plaintext`}),{showLanguageIcon:W,showLanguageName:G}=e({codeOptions:E,language:U}),K=u(()=>W.value||G.value),Se=u(()=>F(`code.collapse`)),Ce=u(()=>F(`code.copy`)),we=u(()=>F(`code.download`)),Te=u(()=>F(`code.fullscreen`)),Ee=u(()=>{let e=E.value?.language?.[U.value]?.languageIcon;return typeof e==`object`?e:r[U.value]||ve.value.code}),q=u(()=>{if(typeof w.value==`boolean`)return U.value===`mermaid`;let e=w.value?.progressive?.[U.value];return typeof e==`boolean`?e:U.value===`mermaid`}),J=u(()=>typeof w.value==`boolean`||!w.value?.placement||w.value?.placement===`auto`?K.value?`center`:`left`:w.value.placement),Y=u(()=>{if(w.value===!1||!q.value&&c.node.loading)return!1;let e=U.value===`html`&&!c.node.loading,t=U.value===`mermaid`&&L.value;if(w.value===!0)return!!(U.value===`html`&&e||U.value===`mermaid`&&t);if(typeof w.value==`object`){if(w.value.components?.[U.value]===!1)return!1;if(U.value===`html`&&e||U.value===`mermaid`&&t)return!0;let n=w.value.components?.[U.value];return typeof n==`object`&&(q.value||!c.node.loading)?!!n:!1}return!1}),X=u(()=>{let e=te[U.value];if(!w.value||typeof w.value==`boolean`)return e;let t=w.value.components?.[U.value];return t===!1?e:t&&typeof t!=`boolean`?t:e}),De=u(()=>_e(`mermaid.inlineInteractive`)??!0);function Z(e){return typeof e==`number`?`${e}px`:e}let Oe=u(()=>{if(H.value===`preview`)return;let e=E.value?.language?.[U.value]?.maxHeight;if(e)return Z(e);let t=E.value?.maxHeight;if(t)return Z(t)}),Q=u(()=>U.value!==`mermaid`||!L.value?[]:[{label:`SVG`,value:`svg`},{label:`PNG`,value:`png`},{label:`MMD`,value:`code`}]),ke=u(()=>[{name:N(`button.collapse`),key:`collapse`,icon:`collapse`,iconStyle:{transform:B.value?`rotate(180deg)`:void 0,transition:`transform var(--default-transition-duration)`},visible:()=>Se.value,onClick:()=>B.value=!B.value},{name:N(`button.copy`),key:`copy`,icon:be.value?`check`:`copy`,visible:()=>Ce.value,onClick:()=>{c.node.value&&(z(c.node.value),ye(c.node.value))}},{name:N(`button.download`),key:`download`,icon:`download`,options:Q.value.length>0?Q.value:void 0,visible:()=>we.value&&!!o[U.value],onClick:async(e,t)=>{if(!c.node.loading){if(!t||t.value===`code`){let e=o[U.value];await R({type:`code`,content:c.node.value})&&ne(`file.${e}`,c.node.value,`text/plain`);return}(t?.value===`svg`||t?.value===`png`)&&await R({type:`mermaid`,content:c.node.value})&&xe(t?.value,c.node.value)}}},{name:V.value?N(`button.minimize`):N(`button.maximize`),key:`fullscreen`,icon:V.value?`minimize`:`maximize`,visible:()=>Te.value,onClick:()=>V.value=!V.value}]),$=u(()=>I(`code`,ke.value,c)),Ae=u(()=>I(`code`,$.value,c).filter(e=>e.key!==`collapse`));return se(()=>Y.value,()=>{Y.value&&(H.value=`preview`)},{immediate:!0}),(e,t)=>(y(),p(l,null,[h(T(A),null,{default:O(({showPreview:e})=>[K.value?(y(),d(ue,{key:0,icon:Ee.value,language:U.value,"show-icon":T(W),"show-name":T(G)},null,8,[`icon`,`language`,`show-icon`,`show-name`])):Y.value&&e?(y(),d(P,{key:1,mode:H.value,"onUpdate:mode":t[0]||=e=>H.value=e,collapsed:B.value,"onUpdate:collapsed":t[1]||=e=>B.value=e},null,8,[`mode`,`collapsed`])):(y(),p(`div`,de))]),_:1}),m(`div`,{"data-stream-markdown":`code-block`,"data-collapsed":B.value,class:v({"code-loading":c.node.loading})},[m(`header`,pe,[S(e.$slots,`title`,{},()=>[h(T(M),{"show-preview":J.value===`left`},null,8,[`show-preview`])]),S(e.$slots,`header-center`,{},()=>[Y.value&&J.value===`center`?(y(),d(P,{key:0,mode:H.value,"onUpdate:mode":t[2]||=e=>H.value=e,collapsed:B.value,"onUpdate:collapsed":t[3]||=e=>B.value=e},null,8,[`mode`,`collapsed`])):(y(),p(`div`,me))]),S(e.$slots,`actions`,{},()=>[m(`div`,he,[Y.value&&J.value===`right`?(y(),d(P,{key:0,mode:H.value,"onUpdate:mode":t[4]||=e=>H.value=e,collapsed:B.value,"onUpdate:collapsed":t[5]||=e=>B.value=e},null,8,[`mode`,`collapsed`])):f(`v-if`,!0),h(j,{actions:$.value},null,8,[`actions`])])])]),k(m(`main`,{"data-stream-markdown":`code-block-content`,style:ae({maxHeight:Oe.value})},[Y.value?k((y(),d(C(X.value),_({key:0},c,{interactive:De.value}),null,16,[`interactive`])),[[D,H.value===`preview`]]):f(`v-if`,!0),k(m(`main`,null,[S(e.$slots,`default`)],512),[[D,H.value===`source`]])],4),[[D,!B.value]]),h(re,{open:V.value,"onUpdate:open":t[10]||=e=>V.value=e,"header-style":{backgroundColor:`color-mix(in oklab, var(--muted) 80%, transparent)`,color:`var(--muted-foreground)`,borderBottom:`1px solid var(--border)`}},{title:O(()=>[h(T(M),{"show-preview":J.value===`left`},null,8,[`show-preview`])]),"header-center":O(()=>[Y.value&&J.value===`center`?(y(),d(P,{key:0,mode:H.value,"onUpdate:mode":t[6]||=e=>H.value=e,collapsed:B.value,"onUpdate:collapsed":t[7]||=e=>B.value=e},null,8,[`mode`,`collapsed`])):f(`v-if`,!0)]),actions:O(()=>[m(`div`,ge,[Y.value&&J.value===`right`?(y(),d(P,{key:0,mode:H.value,"onUpdate:mode":t[8]||=e=>H.value=e,collapsed:B.value,"onUpdate:collapsed":t[9]||=e=>B.value=e},null,8,[`mode`,`collapsed`])):f(`v-if`,!0),h(j,{actions:Ae.value},null,8,[`actions`])])]),default:O(()=>[Y.value?k((y(),d(C(X.value),_({key:0},c,{"immediate-render":!0,"container-height":`100%`}),null,16)),[[D,H.value===`preview`]]):f(`v-if`,!0),k(h(T(g),_(c,{"show-header":!1}),null,16),[[D,H.value===`source`]])]),_:1},8,[`open`])],10,fe)],64))}});export{F as t};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import"./tooltip-D4l7B0Kg.js";import"./button-FB5v8pIn.js";import"./icon-BGnRzcDQ.js";import"./modal-DE8lbbkB.js";import{t as e}from"./code-block-B9LpqO8_.js";import"./segmented-DpRV21hR.js";export{e as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m18 16l4-4l-4-4M6 8l-4 4l4 4m8.5-12l-5 16`},null,-1)]])}var o=n({name:`lucide-code-xml`,render:a});export{o as default};
@@ -0,0 +1,22 @@
1
+ import{OVERLAY_CONTAINER_ID as e,SHADCN_SCHEMAS as t,checkMathSyntax as n,createIdleCallback as r,getOverlayContainer as i,hasKatexModule as a,hasMermaidModule as o,hasShikiModule as s,isClient as c,isSupportESM as l,removeTrailingSlash as u,save as d,svgToPngBlob as f,transformUrl as p}from"./index.js";import{computed as m,defineAsyncComponent as h,inject as g,nextTick as _,onMounted as v,onUnmounted as y,provide as b,ref as x,unref as S,watch as C,watchEffect as w}from"vue";import{useEventListener as ee,useIntersectionObserver as T,useMutationObserver as te,useNavigatorLanguage as ne}from"@vueuse/core";import{autoUpdate as re,computePosition as ie,flip as ae,offset as oe,shift as se}from"@floating-ui/dom";var ce=Object.create,E=Object.defineProperty,le=Object.getOwnPropertyDescriptor,ue=Object.getOwnPropertyNames,de=Object.getPrototypeOf,fe=Object.prototype.hasOwnProperty,pe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),me=(e,t)=>{let n={};for(var r in e)E(n,r,{get:e[r],enumerable:!0});return t&&E(n,Symbol.toStringTag,{value:`Module`}),n},he=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=ue(t),a=0,o=i.length,s;a<o;a++)s=i[a],!fe.call(e,s)&&s!==n&&E(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=le(t,s))||r.enumerable});return e},ge=(e,t,n)=>(n=e==null?{}:ce(de(e)),he(t||!e||!e.__esModule?E(n,`default`,{value:e,enumerable:!0}):n,e));const _e=`github-light`,ve=`github-dark`,ye={},be={"1c-query":`1cq`,"1c":`1c`,abap:`abap`,"actionscript-3":`as`,ada:`ada`,adoc:`adoc`,"angular-html":`html`,"angular-ts":`ts`,apache:`conf`,apex:`cls`,apl:`apl`,applescript:`applescript`,ara:`ara`,asciidoc:`adoc`,asm:`asm`,astro:`astro`,awk:`awk`,ballerina:`bal`,bash:`sh`,bat:`bat`,batch:`bat`,be:`be`,beancount:`beancount`,berry:`berry`,bibtex:`bib`,bicep:`bicep`,blade:`blade.php`,bsl:`bsl`,c:`c`,"c#":`cs`,"c++":`cpp`,cadence:`cdc`,cairo:`cairo`,cdc:`cdc`,clarity:`clar`,clj:`clj`,clojure:`clj`,"closure-templates":`soy`,cmake:`cmake`,cmd:`cmd`,cobol:`cob`,codeowners:`CODEOWNERS`,codeql:`ql`,coffee:`coffee`,coffeescript:`coffee`,"common-lisp":`lisp`,console:`sh`,coq:`v`,cpp:`cpp`,cql:`cql`,crystal:`cr`,cs:`cs`,csharp:`cs`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cql`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,docker:`dockerfile`,dockerfile:`dockerfile`,dotenv:`env`,"dream-maker":`dm`,edge:`edge`,elisp:`el`,elixir:`ex`,elm:`elm`,"emacs-lisp":`el`,erb:`erb`,erl:`erl`,erlang:`erl`,f:`f`,"f#":`fs`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`f90`,f95:`f95`,fennel:`fnl`,fish:`fish`,fluent:`ftl`,for:`for`,"fortran-fixed-form":`f`,"fortran-free-form":`f90`,fs:`fs`,fsharp:`fs`,fsl:`fsl`,ftl:`ftl`,gdresource:`tres`,gdscript:`gd`,gdshader:`gdshader`,genie:`gs`,gherkin:`feature`,"git-commit":`gitcommit`,"git-rebase":`gitrebase`,gjs:`js`,gleam:`gleam`,"glimmer-js":`js`,"glimmer-ts":`ts`,glsl:`glsl`,gnuplot:`plt`,go:`go`,gql:`gql`,graphql:`graphql`,groovy:`groovy`,gts:`gts`,hack:`hack`,haml:`haml`,handlebars:`hbs`,haskell:`hs`,haxe:`hx`,hbs:`hbs`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,hs:`hs`,"html-derivative":`html`,html:`html`,http:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,jade:`jade`,java:`java`,javascript:`js`,jinja:`jinja`,jison:`jison`,jl:`jl`,js:`js`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,julia:`jl`,kotlin:`kt`,kql:`kql`,kt:`kt`,kts:`kts`,kusto:`kql`,latex:`tex`,lean:`lean`,lean4:`lean`,less:`less`,liquid:`liquid`,lisp:`lisp`,lit:`lit`,llvm:`ll`,log:`log`,logo:`logo`,lua:`lua`,luau:`luau`,make:`mak`,makefile:`mak`,markdown:`md`,marko:`marko`,matlab:`m`,md:`md`,mdc:`mdc`,mdx:`mdx`,mediawiki:`wiki`,mermaid:`mmd`,mips:`s`,mipsasm:`s`,mmd:`mmd`,mojo:`mojo`,move:`move`,nar:`nar`,narrat:`narrat`,nextflow:`nf`,nf:`nf`,nginx:`conf`,nim:`nim`,nix:`nix`,nu:`nu`,nushell:`nu`,objc:`m`,"objective-c":`m`,"objective-cpp":`mm`,ocaml:`ml`,pascal:`pas`,perl:`pl`,perl6:`p6`,php:`php`,plsql:`pls`,po:`po`,polar:`polar`,postcss:`pcss`,pot:`pot`,potx:`potx`,powerquery:`pq`,powershell:`ps1`,prisma:`prisma`,prolog:`pl`,properties:`properties`,proto:`proto`,protobuf:`proto`,ps:`ps`,ps1:`ps1`,pug:`pug`,puppet:`pp`,purescript:`purs`,py:`py`,python:`py`,ql:`ql`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,racket:`rkt`,raku:`raku`,razor:`cshtml`,rb:`rb`,reg:`reg`,regex:`regex`,regexp:`regexp`,rel:`rel`,riscv:`s`,rs:`rs`,rst:`rst`,ruby:`rb`,rust:`rs`,sas:`sas`,sass:`sass`,scala:`scala`,scheme:`scm`,scss:`scss`,sdbl:`sdbl`,sh:`sh`,shader:`shader`,shaderlab:`shader`,shell:`sh`,shellscript:`sh`,shellsession:`sh`,smalltalk:`st`,solidity:`sol`,soy:`soy`,sparql:`rq`,spl:`spl`,splunk:`spl`,sql:`sql`,"ssh-config":`config`,stata:`do`,styl:`styl`,stylus:`styl`,svelte:`svelte`,swift:`swift`,"system-verilog":`sv`,systemd:`service`,talon:`talon`,talonscript:`talon`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,terraform:`tf`,tex:`tex`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,"ts-tags":`ts`,ts:`ts`,tsp:`tsp`,tsv:`tsv`,tsx:`tsx`,turtle:`ttl`,twig:`twig`,typ:`typ`,typescript:`ts`,typespec:`tsp`,typst:`typ`,v:`v`,vala:`vala`,vb:`vb`,verilog:`v`,vhdl:`vhdl`,vim:`vim`,viml:`vim`,vimscript:`vim`,"vue-html":`html`,"vue-vine":`vine`,vue:`vue`,vy:`vy`,vyper:`vy`,wasm:`wasm`,wenyan:`wy`,wgsl:`wgsl`,wiki:`wiki`,wikitext:`wiki`,wit:`wit`,wl:`wl`,wolfram:`wl`,xml:`xml`,xsl:`xsl`,yaml:`yaml`,yml:`yml`,zenscript:`zs`,zig:`zig`,zsh:`zsh`,文言:`wy`},xe={astro:h(()=>import(`./astro-CU9halU_.js`)),bash:h(()=>import(`./bash-Sy785HG8.js`)),c:h(()=>import(`./c-B5D7pupz.js`)),"c#":h(()=>import(`./csharp-BBFMv8iB.js`)),"c++":h(()=>import(`./cpp-Bi4XfCI-.js`)),cjs:h(()=>import(`./javascript-B8QW4VUg.js`)),cpp:h(()=>import(`./cpp-Bi4XfCI-.js`)),cs:h(()=>import(`./csharp-BBFMv8iB.js`)),csharp:h(()=>import(`./csharp-BBFMv8iB.js`)),css:h(()=>import(`./css-Dh9tqRBO.js`)),csv:h(()=>import(`./csv-CNJykG6U.js`)),cts:h(()=>import(`./typescript-Bwp1FsHp.js`)),go:h(()=>import(`./go-DeGTGsFM.js`)),gql:h(()=>import(`./graphql-BXjx1Szy.js`)),graphql:h(()=>import(`./graphql-BXjx1Szy.js`)),html:h(()=>import(`./html-CjlbKyR2.js`)),java:h(()=>import(`./java-CR9pDbhW.js`)),javascript:h(()=>import(`./javascript-B8QW4VUg.js`)),js:h(()=>import(`./javascript-B8QW4VUg.js`)),json:h(()=>import(`./json-YE6NQq3D.js`)),json5:h(()=>import(`./json-YE6NQq3D.js`)),jsonc:h(()=>import(`./json-YE6NQq3D.js`)),jsonl:h(()=>import(`./json-YE6NQq3D.js`)),jsx:h(()=>import(`./javascript-B8QW4VUg.js`)),kotlin:h(()=>import(`./kotlin-CmsxUNRx.js`)),kt:h(()=>import(`./kotlin-CmsxUNRx.js`)),kts:h(()=>import(`./kotlin-CmsxUNRx.js`)),less:h(()=>import(`./less-CqhE5R60.js`)),lua:h(()=>import(`./lua-Dd--_Ed3.js`)),luau:h(()=>import(`./luau-CnIQRrch.js`)),markdown:h(()=>import(`./markdown-dV2tmMcA.js`)),md:h(()=>import(`./markdown-dV2tmMcA.js`)),mdc:h(()=>import(`./markdown-dV2tmMcA.js`)),mdx:h(()=>import(`./markdown-dV2tmMcA.js`)),mermaid:h(()=>import(`./mermaid-Dt5YzARA.js`)),mjs:h(()=>import(`./javascript-B8QW4VUg.js`)),mmd:h(()=>import(`./mermaid-Dt5YzARA.js`)),mts:h(()=>import(`./typescript-Bwp1FsHp.js`)),php:h(()=>import(`./php-Qt_0fjEA.js`)),py:h(()=>import(`./python-DmXK3DMf.js`)),python:h(()=>import(`./python-DmXK3DMf.js`)),rs:h(()=>import(`./rust-Clk4lMbg.js`)),rust:h(()=>import(`./rust-Clk4lMbg.js`)),sass:h(()=>import(`./sass-CZAH6h0X.js`)),scss:h(()=>import(`./sass-CZAH6h0X.js`)),sh:h(()=>import(`./bash-Sy785HG8.js`)),shell:h(()=>import(`./bash-Sy785HG8.js`)),shellscript:h(()=>import(`./bash-Sy785HG8.js`)),sql:h(()=>import(`./database-IyIycLpb.js`)),stylus:h(()=>import(`./sass-CZAH6h0X.js`)),svelte:h(()=>import(`./svelte-MQt5ntN4.js`)),swift:h(()=>import(`./swift-CsbTthBm.js`)),toml:h(()=>import(`./toml-D7aJWQRf.js`)),ts:h(()=>import(`./typescript-Bwp1FsHp.js`)),tsv:h(()=>import(`./csv-CNJykG6U.js`)),tsx:h(()=>import(`./typescript-Bwp1FsHp.js`)),typescript:h(()=>import(`./typescript-Bwp1FsHp.js`)),vue:h(()=>import(`./vue-3k1qlxsT.js`)),xml:h(()=>import(`./xml-ruMbHxLz.js`)),yaml:h(()=>import(`./yaml-BRkP2rXn.js`)),yml:h(()=>import(`./yaml-BRkP2rXn.js`)),zsh:h(()=>import(`./bash-Sy785HG8.js`))},Se={allowedLinkPrefixes:[`*`],allowedImagePrefixes:[`*`],allowedProtocols:[`*`],allowDataImages:!0},Ce={arrowLeft:h(()=>import(`./arrow-left-CYpegDtb.js`)),check:h(()=>import(`./check-l_Jw6MRl.js`)),code:h(()=>import(`./code-xml-DH_hbsED.js`)),collapse:h(()=>import(`./chevron-down-BUjA7aF8.js`)),copy:h(()=>import(`./copy-vwjnLuop.js`)),cornerDownLeft:h(()=>import(`./corner-down-left-jUy4X1eT.js`)),download:h(()=>import(`./download-CcbIVfss.js`)),error:h(()=>import(`./circle-alert-BIIE12BL.js`)),flipHorizontal:h(()=>import(`./flip-horizontal-iGpneN1F.js`)),image:h(()=>import(`./image-B78PKQa-.js`)),link:h(()=>import(`./link-CZ-xDGpy.js`)),maximize:h(()=>import(`./maximize-C-4O7fib.js`)),mermaid:h(()=>import(`./mermaid-Dt5YzARA.js`)),minimize:h(()=>import(`./minimize-DpyFZi5Y.js`)),preview:h(()=>import(`./eye-CQ-QkFha.js`)),rotateLeft:h(()=>import(`./rotate-ccw-square-5L9XHaHN.js`)),zoomIn:h(()=>import(`./zoomIn-Ckz9sKS5.js`)),zoomOut:h(()=>import(`./zoomOut-DSyhtATi.js`))};var we={"@antfu/eslint-config":`catalog:lint`,"@antfu/utils":`catalog:inline`,"@iconify-json/catppuccin":`catalog:icons`,"@iconify-json/lucide":`catalog:icons`,"@nuxt/devtools":`catalog:dev`,"@nuxt/eslint":`catalog:lint`,"@nuxtjs/color-mode":`catalog:dev`,"@types/node":`catalog:types`,"@unocss/eslint-plugin":`catalog:lint`,"@unocss/nuxt":`catalog:style`,"@vitejs/plugin-vue":`catalog:build`,"@vitest/coverage-v8":`catalog:test`,"@vue/test-utils":`catalog:test`,"@vueuse/nuxt":`catalog:utils`,bumpp:`catalog:cli`,eslint:`catalog:lint`,"eslint-plugin-format":`catalog:lint`,katex:`^0.16.27`,"lint-staged":`catalog:lint`,"mdast-util-from-markdown":`catalog:parser`,"mdast-util-frontmatter":`catalog:parser`,"mdast-util-gfm":`catalog:parser`,"mdast-util-math":`catalog:parser`,"mdast-util-to-markdown":`catalog:parser`,mermaid:`^11.12.2`,"micromark-extension-cjk-friendly":`catalog:parser`,"micromark-extension-cjk-friendly-gfm-strikethrough":`catalog:parser`,"micromark-extension-frontmatter":`catalog:parser`,"micromark-extension-gfm":`catalog:parser`,"micromark-extension-math":`catalog:parser`,"micromark-util-types":`catalog:parser`,nuxt:`catalog:dev`,pncat:`catalog:cli`,"quick-lru":`catalog:inline`,shiki:`^3.21.0`,"simple-git-hooks":`catalog:lint`,taze:`catalog:cli`,treechop:`catalog:inline`,tsdown:`catalog:build`,tsx:`catalog:script`,typescript:`catalog:tsc`,unocss:`catalog:style`,"unplugin-icons":`catalog:build`,"unplugin-lightningcss":`catalog:build`,vite:`catalog:build`,vitepress:`catalog:docs`,vitest:`catalog:test`,"vue-tsc":`catalog:tsc`};const Te=/^\^/;function Ee(e){return e.replace(Te,``)}const D=Ee(we.katex),De=Ee(we.mermaid),Oe=Ee(we.shiki),ke=[`text`,`inlineCode`,`inlineMath`,`strong`,`emphasis`,`delete`,`footnoteReference`,`footnoteDefinition`,`link`,`linkReference`],O=N(/[A-Za-z]/),Ae=N(/[\dA-Za-z]/),je=N(/[#-'*+\--9=?A-Z^-~]/);function Me(e){return e!==null&&(e<32||e===127)}const Ne=N(/\d/),Pe=N(/[\dA-Fa-f]/),Fe=N(/[!-/:-@[-`{-~]/);function k(e){return e!==null&&e<-2}function A(e){return e!==null&&(e<0||e===32)}function j(e){return e===-2||e===-1||e===32}const Ie=N(/\p{P}|\p{S}/u),M=N(/\s/);function N(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}var Le=ge(pe(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1);const Re=Object.assign(P(Error),{eval:P(EvalError),range:P(RangeError),reference:P(ReferenceError),syntax:P(SyntaxError),type:P(TypeError),uri:P(URIError)});function P(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,Le.default)(t,...n))}}const ze={}.hasOwnProperty,Be={yaml:`-`,toml:`+`};function Ve(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=He(r[n]);return t}function He(e){let t=e;if(typeof t==`string`){if(!ze.call(Be,t))throw Re("Missing matter definition for `%s`",t);t={type:t,marker:Be[t]}}else if(typeof t!=`object`)throw Re("Expected matter to be an object, not `%j`",t);if(!ze.call(t,`type`))throw Re("Missing `type` in matter `%j`",t);if(!ze.call(t,`fence`)&&!ze.call(t,`marker`))throw Re("Missing `marker` or `fence` in matter `%j`",t);return t}function Ue(e){let t=Ve(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=Ge(e,`open`).charCodeAt(0),a=We(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function We(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=Ge(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),j(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return j(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return k(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=Ge(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||k(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||k(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),j(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return j(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||k(i)?(e.exit(r),t(i)):n(i)}}}function Ge(e,t){return e.marker?Ke(e.marker,t).repeat(3):Ke(e.fence,t)}function Ke(e,t){return typeof e==`string`?e:e[t]}function qe(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Je(e){let t=Ve(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=Ye(e),r[e.type]=Xe,r[e.type+`Value`]=Ze}return{enter:n,exit:r}}function Ye(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function Xe(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function Ze(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Qe(e){let t=[],n={},r=Ve(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=$e(e);let a=et(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:qe(a.charAt(1))})}return{unsafe:t,handlers:n}}function $e(e){let t=et(e,`open`),n=et(e,`close`);return r;function r(e){return t+(e.value?`
2
+ `+e.value:``)+`
3
+ `+n}}function et(e,t){return e.marker?tt(e.marker,t).repeat(3):tt(e.fence,t)}function tt(e,t){return typeof e==`string`?e:e[t]}function nt(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const rt=(function(e){if(e==null)return ct;if(typeof e==`function`)return st(e);if(typeof e==`object`)return Array.isArray(e)?it(e):at(e);if(typeof e==`string`)return ot(e);throw Error(`Expected function, string, or object as test`)});function it(e){let t=[],n=-1;for(;++n<e.length;)t[n]=rt(e[n]);return st(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function at(e){let t=e;return st(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function ot(e){return st(t);function t(t){return t&&t.type===e}}function st(e){return t;function t(t,n,r){return!!(lt(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function ct(){return!0}function lt(e){return typeof e==`object`&&!!e&&`type`in e}function ut(e){return e}const dt=[];function ft(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=rt(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+ut(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=dt,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=pt(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function pt(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?dt:[e]}function mt(e,t,n){let r=rt((n||{}).ignore||[]),i=ht(t),a=-1;for(;++a<i.length;)ft(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function ht(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([gt(e[0]),_t(e[1])])}return t}function gt(e){return typeof e==`string`?new RegExp(qe(e),`g`):e}function _t(e){return typeof e==`function`?e:function(){return e}}const vt=`phrasing`,yt=[`autolink`,`link`,`image`,`label`];function bt(){return{transforms:[Ot],enter:{literalAutolink:St,literalAutolinkEmail:Ct,literalAutolinkHttp:Ct,literalAutolinkWww:Ct},exit:{literalAutolink:Dt,literalAutolinkEmail:Et,literalAutolinkHttp:wt,literalAutolinkWww:Tt}}}function xt(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:vt,notInConstruct:yt},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:vt,notInConstruct:yt},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:vt,notInConstruct:yt}]}}function St(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function Ct(e){this.config.enter.autolinkProtocol.call(this,e)}function wt(e){this.config.exit.autolinkProtocol.call(this,e)}function Tt(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Et(e){this.config.exit.autolinkEmail.call(this,e)}function Dt(e){this.exit(e)}function Ot(e){mt(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,kt],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,At]],{ignore:[`link`,`linkReference`]})}function kt(e,t,n,r,i){let a=``;if(!Nt(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!jt(n)))return!1;let o=Mt(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function At(e,t,n,r){return!Nt(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function jt(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Mt(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=nt(e,`(`),a=nt(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function Nt(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||M(n)||Ie(n))&&(!t||n!==47)}function F(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}Ut.peek=Ht;function Pt(){this.buffer()}function Ft(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function It(){this.buffer()}function Lt(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function Rt(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=F(this.sliceSerialize(e)).toLowerCase(),n.label=t}function zt(e){this.exit(e)}function Bt(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=F(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Vt(e){this.exit(e)}function Ht(){return`[`}function Ut(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Wt(){return{enter:{gfmFootnoteCallString:Pt,gfmFootnoteCall:Ft,gfmFootnoteDefinitionLabelString:It,gfmFootnoteDefinition:Lt},exit:{gfmFootnoteCallString:Rt,gfmFootnoteCall:zt,gfmFootnoteDefinitionLabelString:Bt,gfmFootnoteDefinition:Vt}}}function Gt(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ut},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
4
+ `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?qt:Kt))),s(),o}}function Kt(e,t,n){return t===0?e:qt(e,t,n)}function qt(e,t,n){return(n?``:` `)+e}const Jt=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];$t.peek=en;function Yt(){return{canContainEols:[`delete`],enter:{strikethrough:Zt},exit:{strikethrough:Qt}}}function Xt(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Jt}],handlers:{delete:$t}}}function Zt(e){this.enter({type:`delete`,children:[]},e)}function Qt(e){this.exit(e)}function $t(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function en(){return`~`}function tn(e){return e.length}function nn(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||tn,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=rn(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=an(r[d]);else{let e=an(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
5
+ `)}function rn(e){return e==null?``:String(e)}function an(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function on(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),sn);return i(),o}function sn(e,t,n){return`>`+(n?``:` `)+e}function cn(e,t){return ln(e,t.inConstruct,!0)&&!ln(e,t.notInConstruct,!1)}function ln(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function un(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
6
+ `&&cn(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
7
+ `}function dn(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function fn(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function pn(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function mn(e,t,n,r){let i=pn(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(fn(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,hn);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(dn(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
8
+ `,encode:["`"],...s.current()})),t()}return u+=s.move(`
9
+ `),a&&(u+=s.move(a+`
10
+ `)),u+=s.move(c),l(),u}function hn(e,t,n){return(n?``:` `)+e}function gn(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function _n(e,t,n,r){let i=gn(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
11
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function vn(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function I(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function L(e){if(e===null||A(e)||M(e))return 1;if(Ie(e))return 2}function yn(e,t,n){let r=L(e),i=L(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}bn.peek=xn;function bn(e,t,n,r){let i=vn(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=yn(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=I(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=yn(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+I(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function xn(e,t,n){return n.options.emphasis||`*`}function Sn(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),ft(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}const Cn={};function wn(e,t){let n=t||Cn;return Tn(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function Tn(e,t,n){if(Dn(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return En(e.children,t,n)}return Array.isArray(e)?En(e,t,n):``}function En(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Tn(e[i],t,n);return r.join(``)}function Dn(e){return!!(e&&typeof e==`object`)}function On(e,t){let n=!1;return Sn(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&wn(e)&&(t.options.setext||n))}function kn(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(On(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
12
+ `,after:`
13
+ `});return r(),t(),o+`
14
+ `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
15
+ `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
16
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=I(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}An.peek=jn;function An(e){return e.value||``}function jn(){return`<`}Mn.peek=Nn;function Mn(e,t,n,r){let i=gn(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Nn(){return`!`}Pn.peek=Fn;function Pn(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Fn(){return`!`}In.peek=Ln;function In(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function Ln(){return"`"}function Rn(e,t){let n=wn(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}zn.peek=Bn;function zn(e,t,n,r){let i=gn(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(Rn(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Bn(e,t,n){return Rn(e,n)?`<`:`[`}Vn.peek=Hn;function Vn(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Hn(){return`[`}function Un(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Wn(e){let t=Un(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Gn(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Kn(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function qn(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?Gn(n):Un(n),s=e.ordered?o===`.`?`)`:`.`:Wn(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Kn(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function Jn(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Yn(e,t,n,r){let i=Jn(n),a=n.bulletCurrent||Un(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function Xn(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}const Zn=rt([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function Qn(e,t,n,r){return(e.children.some(function(e){return Zn(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function $n(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}er.peek=tr;function er(e,t,n,r){let i=$n(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=yn(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=I(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=yn(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+I(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function tr(e,t,n){return n.options.strong||`*`}function nr(e,t,n,r){return n.safe(e.value,r)}function rr(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function ir(e,t,n){let r=(Kn(n)+(n.options.ruleSpaces?` `:``)).repeat(rr(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ar={blockquote:on,break:un,code:mn,definition:_n,emphasis:bn,hardBreak:un,heading:kn,html:An,image:Mn,imageReference:Pn,inlineCode:In,link:zn,linkReference:Vn,list:qn,listItem:Yn,paragraph:Xn,root:Qn,strong:er,text:nr,thematicBreak:ir};function or(){return{enter:{table:sr,tableData:dr,tableHeader:dr,tableRow:lr},exit:{codeText:fr,table:cr,tableData:ur,tableHeader:ur,tableRow:ur}}}function sr(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function cr(e){this.exit(e),this.data.inTable=void 0}function lr(e){this.enter({type:`tableRow`,children:[]},e)}function ur(e){this.exit(e)}function dr(e){this.enter({type:`tableCell`,children:[]},e)}function fr(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,pr));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function pr(e,t){return t===`|`?t:e}function mr(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
17
+ `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
18
+ `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return nn(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=ar.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function hr(){return{exit:{taskListCheckValueChecked:_r,taskListCheckValueUnchecked:_r,paragraph:vr}}}function gr(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:yr}}}function _r(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function vr(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function yr(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=ar.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function br(){return[bt(),Wt(),Yt(),or(),hr()]}function xr(e){return{extensions:[xt(),Gt(e),Xt(),mr(e),gr()]}}function Sr(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function Cr(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:`
19
+ `,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(dn(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:`
20
+ `,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(`
21
+ `),i&&(c+=a.move(i+`
22
+ `)),c+=a.move(o),s(),c}function r(e,n,r){let i=e.value||``,a=1;for(t||a++;RegExp(`(^|[^$])`+`\\$`.repeat(a)+`([^$]|$)`).test(i);)a++;let o=`$`.repeat(a);/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^\$|\$$/.test(i))&&(i=` `+i+` `);let s=-1;for(;++s<r.unsafe.length;){let e=r.unsafe[s];if(!e.atBreak)continue;let t=r.compilePattern(e),n;for(;n=t.exec(i);){let e=n.index;i.codePointAt(e)===10&&i.codePointAt(e-1)===13&&e--,i=i.slice(0,e)+` `+i.slice(n.index+1)}}return o+i+o}function i(){return`$`}}const R={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},z={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:`CDATA[`,characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:`content`,contentTypeDocument:`document`,contentTypeFlow:`flow`,contentTypeString:`string`,contentTypeText:`text`,hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4},B={data:`data`,whitespace:`whitespace`,lineEnding:`lineEnding`,lineEndingBlank:`lineEndingBlank`,linePrefix:`linePrefix`,lineSuffix:`lineSuffix`,atxHeading:`atxHeading`,atxHeadingSequence:`atxHeadingSequence`,atxHeadingText:`atxHeadingText`,autolink:`autolink`,autolinkEmail:`autolinkEmail`,autolinkMarker:`autolinkMarker`,autolinkProtocol:`autolinkProtocol`,characterEscape:`characterEscape`,characterEscapeValue:`characterEscapeValue`,characterReference:`characterReference`,characterReferenceMarker:`characterReferenceMarker`,characterReferenceMarkerNumeric:`characterReferenceMarkerNumeric`,characterReferenceMarkerHexadecimal:`characterReferenceMarkerHexadecimal`,characterReferenceValue:`characterReferenceValue`,codeFenced:`codeFenced`,codeFencedFence:`codeFencedFence`,codeFencedFenceSequence:`codeFencedFenceSequence`,codeFencedFenceInfo:`codeFencedFenceInfo`,codeFencedFenceMeta:`codeFencedFenceMeta`,codeFlowValue:`codeFlowValue`,codeIndented:`codeIndented`,codeText:`codeText`,codeTextData:`codeTextData`,codeTextPadding:`codeTextPadding`,codeTextSequence:`codeTextSequence`,content:`content`,definition:`definition`,definitionDestination:`definitionDestination`,definitionDestinationLiteral:`definitionDestinationLiteral`,definitionDestinationLiteralMarker:`definitionDestinationLiteralMarker`,definitionDestinationRaw:`definitionDestinationRaw`,definitionDestinationString:`definitionDestinationString`,definitionLabel:`definitionLabel`,definitionLabelMarker:`definitionLabelMarker`,definitionLabelString:`definitionLabelString`,definitionMarker:`definitionMarker`,definitionTitle:`definitionTitle`,definitionTitleMarker:`definitionTitleMarker`,definitionTitleString:`definitionTitleString`,emphasis:`emphasis`,emphasisSequence:`emphasisSequence`,emphasisText:`emphasisText`,escapeMarker:`escapeMarker`,hardBreakEscape:`hardBreakEscape`,hardBreakTrailing:`hardBreakTrailing`,htmlFlow:`htmlFlow`,htmlFlowData:`htmlFlowData`,htmlText:`htmlText`,htmlTextData:`htmlTextData`,image:`image`,label:`label`,labelText:`labelText`,labelLink:`labelLink`,labelImage:`labelImage`,labelMarker:`labelMarker`,labelImageMarker:`labelImageMarker`,labelEnd:`labelEnd`,link:`link`,paragraph:`paragraph`,reference:`reference`,referenceMarker:`referenceMarker`,referenceString:`referenceString`,resource:`resource`,resourceDestination:`resourceDestination`,resourceDestinationLiteral:`resourceDestinationLiteral`,resourceDestinationLiteralMarker:`resourceDestinationLiteralMarker`,resourceDestinationRaw:`resourceDestinationRaw`,resourceDestinationString:`resourceDestinationString`,resourceMarker:`resourceMarker`,resourceTitle:`resourceTitle`,resourceTitleMarker:`resourceTitleMarker`,resourceTitleString:`resourceTitleString`,setextHeading:`setextHeading`,setextHeadingText:`setextHeadingText`,setextHeadingLine:`setextHeadingLine`,setextHeadingLineSequence:`setextHeadingLineSequence`,strong:`strong`,strongSequence:`strongSequence`,strongText:`strongText`,thematicBreak:`thematicBreak`,thematicBreakSequence:`thematicBreakSequence`,blockQuote:`blockQuote`,blockQuotePrefix:`blockQuotePrefix`,blockQuoteMarker:`blockQuoteMarker`,blockQuotePrefixWhitespace:`blockQuotePrefixWhitespace`,listOrdered:`listOrdered`,listUnordered:`listUnordered`,listItemIndent:`listItemIndent`,listItemMarker:`listItemMarker`,listItemPrefix:`listItemPrefix`,listItemPrefixWhitespace:`listItemPrefixWhitespace`,listItemValue:`listItemValue`,chunkDocument:`chunkDocument`,chunkContent:`chunkContent`,chunkFlow:`chunkFlow`,chunkText:`chunkText`,chunkString:`chunkString`};function wr(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function Tr(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Er(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function Dr(e){return wr(e)?`ambiguous`:Tr(e)?`fullwidth`:e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?`halfwidth`:e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?`narrow`:Er(e)?`wide`:`neutral`}function Or(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function kr(e){return Or(e),Dr(e)}var Ar=Object.defineProperty,jr=(e,t,n)=>t in e?Ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mr=(e,t,n)=>jr(e,typeof t==`symbol`?t:t+``,n);function Nr(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function Pr(e){if(!e||e<4352)return!1;switch(kr(e)){case`fullwidth`:case`halfwidth`:return!0;case`wide`:return!Nr(e);case`narrow`:return!1;case`ambiguous`:return 917760<=e&&e<=917999?null:!1;case`neutral`:return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function Fr(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function Ir(e){return e!==null&&e>=65024&&e<=65038}var Lr=zr(/\p{P}|\p{S}/u),Rr=zr(/\s/);function zr(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCodePoint(t))}}var V;(e=>{e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(V||={});function H(e){if(e===R.eof||A(e)||Rr(e))return z.characterGroupWhitespace;let t=0;if(e>=4352){if(Ir(e))return V.nonEmojiGeneralUseVS;switch(Pr(e)){case null:return V.ivs;case!0:t|=V.cjk;break}}return Lr(e)&&(t|=z.characterGroupPunctuation),t}function Br(e,t,n){if(!Kr(e))return e;let r=t(),i=H(r);return!r||U(i)?e:Fr(r,n)?V.cjkPunctuation:Vr(i)}function Vr(e){return e&~V.ivs}function U(e){return!!(e&z.characterGroupWhitespace)}function Hr(e){return(e&V.cjkPunctuation)===z.characterGroupPunctuation}function Ur(e){return!!(e&V.cjk)}function Wr(e){return e===V.ivs}function Gr(e){return!!(e&V.cjkOrIvs)}function Kr(e){return e===V.nonEmojiGeneralUseVS}function qr(e){return!!(e&V.spaceOrPunctuation)}function Jr(e){return!!(e&&e>=55296&&e<=56319)}function Yr(e){return!!(e&&e>=56320&&e<=57343)}function Xr(e,t,n){if(t._bufferIndex<2)return e;let r=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return r&&r>=65536?r:e}function Zr(e,t,n){let r=e>=65536?2:1;if(t._bufferIndex<1+r)return null;let i=t._bufferIndex-r-2,a=n({start:{...t,_bufferIndex:i>=0?i:0},end:{...t,_bufferIndex:t._bufferIndex-r}}),o=a.charCodeAt(a.length-1);if(Number.isNaN(o))return null;if(a.length<2||o<56320||57343<o)return o;let s=a.codePointAt(0);return s&&s>=65536?s:o}var Qr=class{constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n,Mr(this,`cachedValue`)}value(){return this.cachedValue===void 0&&(this.cachedValue=Zr(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function $r(e,t,n){let r=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return r&&r>=65536?r:e}function W(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function G(e,t){return e.length>0?(W(e,e.length,0,t),e):t}function ei(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var ti={name:`attention`,resolveAll:ni,tokenize:ri};function ni(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};ii(d,-c),ii(f,c),o={type:c>1?B.strongSequence:B.emphasisSequence,start:d,end:{...e[r][1].end}},s={type:c>1?B.strongSequence:B.emphasisSequence,start:{...e[n][1].start},end:f},a={type:c>1?B.strongText:B.emphasisText,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?B.strong:B.emphasis,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=G(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=G(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),t.parser.constructs.insideSpan.null,l=G(l,ei(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=G(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=G(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,W(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function ri(e,t){let n=this.parser.constructs.attentionMarkers.null,{now:r,sliceSerialize:i,previous:a}=this,o=Yr(a)?Xr(a,r(),i):a,s=H(o),c=new Qr(o,r(),i),l=Br(s,c.value.bind(c),o),u;return d;function d(t){return t===R.asterisk||R.underscore,u=t,e.enter(`attentionSequence`),f(t)}function f(a){if(a===u)return e.consume(a),f;let s=e.exit(`attentionSequence`),c=H(Jr(a)?$r(a,r(),i):a),d=Hr(l),p=d||U(l),m=Hr(c),h=m||U(c),g=Gr(l),_=!h||m&&(p||g)||n.includes(a),v=!p||d&&(h||Ur(c))||n.includes(o);return s._open=!!(u===R.asterisk?_:_&&(qr(l)||!v)),s._close=!!(u===R.asterisk?v:v&&(qr(c)||!_)),t(a)}}function ii(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function ai(){return{text:{[R.asterisk]:ti,[R.underscore]:ti},insideSpan:{null:[ti]}}}function oi(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{[R.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[R.tilde]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&W(o,o.length,0,ei(s,e.slice(r+1,n),t)),W(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),W(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=B.data);return e}function i(e,n,r){let{now:i,sliceSerialize:a,previous:o}=this,s=Yr(o)?Xr(o,i(),a):o,c=H(s),l=new Qr(s,i(),a),u=Br(c,l.value.bind(l),s),d=this.events,f=0;return p;function p(t){return R.tilde,s===R.tilde&&d[d.length-1][1].type!==B.characterEscape?r(t):(e.enter(`strikethroughSequenceTemporary`),m(t))}function m(o){let c=H(s);if(o===R.tilde)return f>1?r(o):(e.consume(o),f++,m);if(f<2&&!t)return r(o);let l=e.exit(`strikethroughSequenceTemporary`),d=H(Jr(o)?$r(o,i(),a):o),p=Hr(u)||U(u),h=Hr(d)||U(d),g=Ur(u)||Wr(c);return l._open=!h||d===z.attentionSideAfter&&(p||g),l._close=!p||c===z.attentionSideAfter&&(h||Ur(d)),n(o)}}}const si={}.hasOwnProperty;function ci(e){let t={},n=-1;for(;++n<e.length;)li(t,e[n]);return t}function li(e,t){let n;for(n in t){let r=(si.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){si.call(r,a)||(r[a]=[]);let e=i[a];ui(r[a],Array.isArray(e)?e:e?[e]:[])}}}function ui(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);W(e,0,0,r)}const di={tokenize:Si,partial:!0},fi={tokenize:Ci,partial:!0},pi={tokenize:wi,partial:!0},mi={tokenize:Ti,partial:!0},hi={tokenize:Ei,partial:!0},gi={name:`wwwAutolink`,tokenize:bi,previous:Di},_i={name:`protocolAutolink`,tokenize:xi,previous:Oi},K={name:`emailAutolink`,tokenize:yi,previous:ki},q={};function vi(){return{text:q}}let J=48;for(;J<123;)q[J]=K,J++,J===58?J=65:J===91&&(J=97);q[43]=K,q[45]=K,q[46]=K,q[95]=K,q[72]=[K,_i],q[104]=[K,_i],q[87]=[K,gi],q[119]=[K,gi];function yi(e,t,n){let r=this,i,a;return o;function o(t){return!Ai(t)||!ki.call(r,r.previous)||ji(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Ai(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(hi,u,l)(t):t===45||t===95||Ae(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&O(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function bi(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Di.call(r,r.previous)||ji(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(di,e.attempt(fi,e.attempt(pi,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function xi(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Oi.call(r,r.previous)&&!ji(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(O(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Me(t)||A(t)||M(t)||Ie(t)?n(t):e.attempt(fi,e.attempt(pi,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Si(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Ci(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(mi,c,s)(t):t===null||A(t)||M(t)||t!==45&&Ie(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function wi(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(mi,t,a)(o):o===null||A(o)||M(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Ti(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||A(o)||M(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||A(e)||M(e)?t(e):r(e)}function a(e){return O(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):O(t)?(e.consume(t),o):n(t)}}function Ei(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Ae(e)?n(e):t(e)}}function Di(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||A(e)}function Oi(e){return!O(e)}function ki(e){return!(e===47||Ai(e))}function Ai(e){return e===43||e===45||e===46||e===95||Ae(e)}function ji(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Y(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return j(r)?(e.enter(n),s(r)):t(r)}function s(r){return j(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}const Mi={partial:!0,tokenize:Ni};function Ni(e,t,n){return r;function r(t){return j(t)?Y(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||k(e)?t(e):n(e)}}const Pi={tokenize:Hi,partial:!0};function Fi(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:zi,continuation:{tokenize:Bi},exit:Vi}},text:{91:{name:`gfmFootnoteCall`,tokenize:Ri},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Ii,resolveTo:Li}}}}function Ii(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=F(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Li(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Ri(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||A(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(F(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return A(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function zi(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||A(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=F(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return A(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Y(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Bi(e,t,n){return e.check(Mi,t,e.attempt(Pi,t,n))}function Vi(e){e.exit(`gfmFootnoteDefinition`)}function Hi(e,t,n){let r=this;return Y(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Ui(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&W(o,o.length,0,ei(s,e.slice(r+1,n),t)),W(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),W(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=L(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=L(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Wi=class{constructor(){this.map=[]}add(e,t,n){Gi(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Gi(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Ki(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function qi(){return{flow:{null:{name:`table`,tokenize:Ji,resolveAll:Yi}}}}function Ji(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):k(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):j(t)?Y(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||A(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,j(t)?Y(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return j(t)?Y(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||k(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return j(t)?Y(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||k(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||k(n)?(e.exit(`tableRow`),t(n)):j(n)?Y(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||A(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?ee:w)}function ee(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Yi(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Wi;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Zi(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Xi(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Xi(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Xi(f,t,o,i,n,d)):(o[0]=o[1],d=Xi(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Zi(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Ki(t.events,n))}return e}function Xi(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},X(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=X(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=X(t.events,n[2]),a=X(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},X(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Zi(e,t,n,r,i){let a=[],o=X(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function X(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}const Qi={name:`tasklistCheck`,tokenize:ea};function $i(){return{text:{91:Qi}}}function ea(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return A(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return k(r)?t(r):j(r)?e.check({tokenize:ta},t,n)(r):n(r)}}function ta(e,t,n){return Y(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function na(e){return ci([vi(),Fi(),Ui(e),qi(),$i()])}const ra={tokenize:aa,concrete:!0,name:`mathFlow`},ia={tokenize:oa,partial:!0};function aa(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){return e.enter(`mathFlow`),e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),c(t)}function c(t){return t===36?(e.consume(t),o++,c):o<2?n(t):(e.exit(`mathFlowFenceSequence`),Y(e,l,`whitespace`)(t))}function l(t){return t===null||k(t)?d(t):(e.enter(`mathFlowFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===null||k(t)?(e.exit(`chunkString`),e.exit(`mathFlowFenceMeta`),d(t)):t===36?n(t):(e.consume(t),u)}function d(n){return e.exit(`mathFlowFence`),r.interrupt?t(n):e.attempt(ia,f,g)(n)}function f(t){return e.attempt({tokenize:_,partial:!0},g,p)(t)}function p(t){return(a?Y(e,m,`linePrefix`,a+1):m)(t)}function m(t){return t===null?g(t):k(t)?e.attempt(ia,f,g)(t):(e.enter(`mathFlowValue`),h(t))}function h(t){return t===null||k(t)?(e.exit(`mathFlowValue`),m(t)):(e.consume(t),h)}function g(n){return e.exit(`mathFlow`),t(n)}function _(e,t,n){let i=0;return Y(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`mathFlowFence`),e.enter(`mathFlowFenceSequence`),s(t)}function s(t){return t===36?(i++,e.consume(t),s):i<o?n(t):(e.exit(`mathFlowFenceSequence`),Y(e,c,`whitespace`)(t))}function c(r){return r===null||k(r)?(e.exit(`mathFlowFence`),t(r)):n(r)}}}function oa(e,t,n){let r=this;return i;function i(n){return n===null?t(n):(e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function sa(e){let t=(e||{}).singleDollarTextMath;return t??=!0,{tokenize:n,resolve:ca,previous:la,name:`mathText`};function n(e,n,r){let i=0,a,o;return s;function s(t){return e.enter(`mathText`),e.enter(`mathTextSequence`),c(t)}function c(n){return n===36?(e.consume(n),i++,c):i<2&&!t?r(n):(e.exit(`mathTextSequence`),l(n))}function l(t){return t===null?r(t):t===36?(o=e.enter(`mathTextSequence`),a=0,d(t)):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),l):k(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),l):(e.enter(`mathTextData`),u(t))}function u(t){return t===null||t===32||t===36||k(t)?(e.exit(`mathTextData`),l(t)):(e.consume(t),u)}function d(t){return t===36?(e.consume(t),a++,d):a===i?(e.exit(`mathTextSequence`),e.exit(`mathText`),n(t)):(o.type=`mathTextData`,u(t))}}}function ca(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`mathTextData`){e[t][1].type=`mathTextPadding`,e[n][1].type=`mathTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`mathTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function la(e){return e!==36||this.events[this.events.length-1][1].type===`characterEscape`}function ua(e){return{flow:{36:ra},text:{36:sa(e)}}}const da={gfm:()=>na(),math:e=>ua({singleDollarTextMath:e.mdastOptions?.singleDollarTextMath===!0}),frontmatter:()=>Ue(),cjkFriendlyExtension:()=>ai(),gfmStrikethroughCjkFriendly:()=>oi()},fa={gfmFromMarkdown:()=>br(),mathFromMarkdown:()=>Sr(),frontmatterFromMarkdown:()=>Je()},pa={gfmToMarkdown:()=>xr(),mathToMarkdown:()=>Cr(),frontmatterToMarkdown:()=>Qe()},ma=[`blockquote`,`delete`,`emphasis`,`footnoteDefinition`,`footnoteReference`,`heading`,`image`,`inlineCode`,`inlineMath`,`link`,`list`,`listItem`,`paragraph`,`strong`,`table`,`text`,`thematicBreak`,`yaml`];let ha=!1,ga=null,_a=null,va=null;function ya(e){return Function(`url`,`return import(url)`)(e)}function ba(e){let{cdnOptions:t}=e??{},n=t?.baseUrl?u(t.baseUrl):``,r=!!t?.getUrl,i=t?.shiki!==!1,a=t?.mermaid!==!1,o=t?.katex!==!1,s=t?.mermaid===`umd`?`umd`:`esm`,c=t?.katex===`umd`?`umd`:`esm`;function d(){if(i&&!(!n&&!r)&&l()){if(r){let e=t?.getUrl?.(`shiki`,Oe);if(e)return e}return`${n}/shiki@${Oe}/+esm`}}async function f(){if(ga)return ga;let e=d();if(!e)return;let t=await ya(e);return ga=t,t}function p(){if(!a||!n&&!r)return;if(r){let e=t?.getUrl?.(`mermaid`,De);if(e)return e}let e=`${n}/mermaid@${De}/dist/mermaid.min.js`;return s===`umd`?e:l()?`${n}/mermaid@${De}/+esm`:e}async function m(){if(_a)return _a;let e=p();if(!e)return;let t=await ya(e);return _a=(l()?t:window.mermaid)??null,t}function h(){if(!o||!n&&!r)return;if(r){let e=t?.getUrl?.(`katex`,D);if(e)return e}let e=`${n}/katex@${D}/dist/katex.min.js`;return c===`umd`?e:l()?`${n}/katex@${D}/+esm`:e}async function g(){if(va)return va;let e=h();if(!e)return;let t=await ya(e);return va=(l()?t:window.katex)??null,t}function _(){if(o&&!(!n&&!r)){if(r){let e=t?.getUrl?.(`katex-css`,D);if(e)return e}return`${n}/katex@${D}/dist/katex.min.css`}}function v(){if(ha)return;let e=_();if(!e)return;let t=document.createElement(`link`);t.rel=`stylesheet`,t.href=e,document.head.appendChild(t),ha=!0}return{getCdnShikiUrl:d,loadCdnShiki:f,getCdnMermaidUrl:p,loadCdnMermaid:m,getCdnKatexUrl:h,loadCdnKatex:g,getCdnKatexCssUrl:_,loadCdnKatexCss:v}}function xa(e){let t=m(()=>S(e.language)||``),n=m(()=>S(e.codeOptions)),r=m(()=>{let e=n.value?.language?.[t.value];return{...n.value,...e??{}}});return{languageCodeOptions:r,showLanguageIcon:m(()=>typeof r.value?.languageIcon==`boolean`?r.value.languageIcon:!0),showLanguageName:m(()=>typeof r.value?.languageName==`boolean`?r.value.languageName:!0),showLineNumbers:m(()=>typeof r.value?.lineNumbers==`boolean`?r.value.lineNumbers:!0)}}const Sa=Symbol(`stream-markdown-context`);function Ca(){let e=l(),t=m(()=>S(e.mode)??`streaming`),n=m(()=>S(e.icons)??{}),r=m(()=>S(e.uiOptions)??{}),i=m(()=>r.value.hideTooltip??!1),a=m(()=>S(e.isDark)??!1),o=m(()=>S(e.enableAnimate)),s=m(()=>S(e.parsedNodes)??[]);function c(e){b(Sa,{...l(),...e})}function l(){return g(Sa,{})||{}}return{context:e,provideContext:c,injectContext:l,mode:t,hideTooltip:i,icons:n,isDark:a,enableAnimate:o,parsedNodes:s,get getContainer(){return e.getContainer||(()=>void 0)},get beforeDownload(){return e.beforeDownload||(()=>!0)},get onCopied(){return e.onCopied||(()=>{})}}}function wa(e){let t=m(()=>S(e.controls)??!0);function n(e){try{return r(e)!==!1}catch{return!1}}function r(e){try{let n=t.value;if(typeof n==`boolean`)return n;let r=e.split(`.`),i=n;for(let e of r){if(typeof i!=`object`||!i)return;i=i[e]}return i}catch{return}}function i(e,t,n){let i=r(`${e}.customize`);return typeof i==`function`?i(t,n).filter(e=>e.visible?.()??!0):t.filter(e=>e.visible?.()??!0)}return{isControlEnabled:n,getControlValue:r,resolveControls:i}}function Ta(t,n){let r=x(),a=m(()=>typeof S(t)==`boolean`),o=x(!1),s=m(()=>a.value?S(t):o.value);function c(){o.value=document.documentElement.classList.contains(`dark`)}function l(){if(!i()){let t=document.createElement(`div`);t.id=e,t.classList.add(e),t.classList.add(s.value?`dark`:`light`),document.body.appendChild(t)}}function u(){let e=i();e&&(e.classList.toggle(`dark`,s.value),e.classList.toggle(`light`,!s.value),Object.entries(n.value).forEach(([t,n])=>{e.style.setProperty(t,n)}))}let{stop:d}=te(r,c,{attributes:!0,attributeFilter:[`class`],subtree:!1});return C(()=>[s.value,n.value],()=>u()),C(a,()=>{a.value&&(r.value=null)}),v(()=>{l(),a.value||(c(),r.value=document.documentElement)}),{isDark:s,isDarkProvided:a,stop:d}}function Ea(e){let{targetRef:t,immediate:n=!1,debounceDelay:i=300,rootMargin:a=`300px`,idleTimeout:o=500}=e,s=x(n),c=x(null),l=x(null),{request:u,cancel:d}=r(),f=()=>{c.value!==null&&(clearTimeout(c.value),c.value=null),l.value!==null&&(d(l.value),l.value=null)},p=e=>{l.value=u(t=>{t.timeRemaining()>0||t.didTimeout?(s.value=!0,e()):l.value=u(()=>{s.value=!0,e()},o/2)},o)},{stop:m}=T(t,([e])=>{s.value||n||(e?.isIntersecting?(f(),c.value=window.setTimeout(()=>{e.isIntersecting&&!s.value&&p(m)},i)):f())},{rootMargin:a});return y(()=>{f(),m()}),{shouldRender:s}}function Da(e){let t=m(()=>S(e.hideTooltip)??!1),n=m(()=>S(e.trigger)??`hover`),r=m(()=>S(e.placement)??`top`),i=m(()=>S(e.delay)??[100,100]),a=x(),o=x(),s=null,l=null,u=x(!1),d=x(null),f=x(null),p=x(`absolute`),h=null;async function g(){if(!(!a.value||!o.value||!c()))try{let e=await ie(a.value,o.value,{placement:r.value,middleware:[oe(6),ae(),se({padding:5})]});d.value=e.x,f.value=e.y,p.value=e.strategy}catch{}}w(()=>{h&&=(h(),null),!(!a.value||!o.value||!c())&&(h=re(a.value,o.value,g))}),C(r,()=>{u.value&&g()});let _=m(()=>c()&&a.value?.parentElement||null),v=m(()=>{if(!c())return e.getContainer?.()||`body`;let t=e.getContainer?.()||_.value;return t instanceof HTMLElement&&!document.body.contains(t)?`body`:t||`body`}),y=m(()=>({position:p.value,top:`${f.value??0}px`,left:`${d.value??0}px`}));function b(){pe();let{show:e}=le();s=window.setTimeout(()=>{u.value=!0,g()},e)}function T(){pe();let{hide:e}=le();l=window.setTimeout(()=>{u.value=!1},e)}function te(){u.value=!u.value,g()}function ne(){t.value||n.value===`hover`&&b()}function ce(){n.value===`hover`&&T()}function E(){n.value===`click`&&te()}function le(){return Array.isArray(i.value)?{show:i.value[0]??0,hide:i.value[1]??0}:{show:i.value??0,hide:i.value??0}}function ue(e){if(!u.value)return;let t=e.target;a.value?.contains(t)||o.value?.contains(t)||(u.value=!1)}function de(){l&&=(clearTimeout(l),null)}function fe(){let{hide:e}=le();n.value===`hover`&&(l=window.setTimeout(()=>{T()},e))}function pe(){s&&=(clearTimeout(s),null),l&&=(clearTimeout(l),null)}return ee(document,`click`,ue),{referenceEl:a,floatingEl:o,open:u,appendTo:v,floatingStyle:y,show:b,hide:T,onMouseEnter:ne,onMouseLeave:ce,onClick:E,onFloatingEnter:de,onFloatingLeave:fe}}const Oa=[`en-US`,`zh-CN`],ka={"./en-US.json":()=>import(`./en-US-Byh57Qur.js`),"./zh-CN.json":()=>import(`./zh-CN-B75cOOGL.js`)},Aa=x(),ja=x(`en-US`);async function Ma(e){let t=async e=>{let t=ka[`./${e}.json`];t&&(Aa.value=await t(),ja.value=e)};try{typeof e==`string`?await t(e):Aa.value=e}catch{await t(`en-US`)}}Ma(`en-US`);function Na(){function e(e){try{let t=Aa.value;if(!t)return e;let n=e.split(`.`).reduce((e,t)=>{if(e&&typeof e==`object`&&t in e)return e[t]},t);return typeof n==`string`?n:e}catch{return e}}return{t:e}}let Pa=!1;function Fa(e){let{mdastOptions:t,cdnOptions:r}=e??{},i=m(()=>S(e.markdown)??``),o=t?.builtin?.micromark?.math!==!1,s=t?.singleDollarTextMath===!0,l=m(()=>n(i.value,s)),{getCdnKatexUrl:u,loadCdnKatex:d,loadCdnKatexCss:f}=ba({cdnOptions:r}),p=x(!1);async function h(){return await d()??await import(`katex`)}async function g(){return u()?!0:await a()}async function _(e,t={}){let{renderToString:n}=await h();try{return{html:n(e,{output:`html`,strict:`ignore`,...t})}}catch(e){return{error:e.message}}}async function v(){}function y(){}return C(()=>l.value,e=>{e&&o&&f()},{immediate:!0}),c()&&(async()=>{if(Pa===!0){p.value=!0;return}p.value=await g(),Pa=p.value})(),{installed:p,render:_,preload:v,dispose:y,loadCdnKatexCss:f}}function Ia(e){let{language:t}=ne(),n=m(()=>typeof S(e)==`object`),r=x(),i=m(()=>{let i=S(e);if(n.value)return i;let a=Oa.find(e=>e===i);if(a)return a;let o=(r.value||t.value)?.toLowerCase()??``;return[`zh`,`zh-cn`,`zh-tw`].includes(o)?`zh-CN`:`en-US`});function a(){return c()?document.documentElement.lang:``}return v(()=>{r.value=a()}),{locale:i}}function La(e=16,t=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function Ra(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function za(...e){return Ra(...e)}function Ba(e){let{installed:t,render:n}=Fa({cdnOptions:e.cdnOptions}),r=x(!1),i=x(``),a=x(``),o=x(``),s=m(()=>S(e.node)),c=m(()=>S(e.katexOptions)?.config??{}),l=m(()=>S(e.throttle)??150),u=m(()=>s.value.value),d=m(()=>s.value.loading),f=m(()=>s.value.type!==`inlineMath`),p=m(()=>!!(!t.value||o.value&&r.value&&i.value===u.value));return C(()=>[u.value,d.value],za(l,async()=>{let{html:e,error:t}=await n(u.value,{...c,displayMode:f.value});if(r.value=!0,e){a.value=e,o.value=``;return}t?o.value=t:o.value=``}),{immediate:!0}),{html:a,error:p,errorMessage:o}}function Va(e){let t=m(()=>S(e.margin)??0),n=x(),r=x(),i=x(),a=x(!1),o=x(!1),s=x(``),l=x(``),u=m(()=>c()?{opacity:o.value?0:1}:{opacity:1});function d(){let e=n.value;if(!e)return;let t=e.cloneNode(!0),r=e.getBoundingClientRect();return t.style.position=`fixed`,t.style.top=`${r.top}px`,t.style.left=`${r.left}px`,t.style.width=`${r.width}px`,t.style.height=`${r.height}px`,t.style.margin=`0`,t.style.padding=`0`,t.style.pointerEvents=`none`,t.style.zIndex=`10000`,t.style.willChange=`transform`,t.style.transformOrigin=`top left`,e instanceof HTMLImageElement&&e.currentSrc&&(t.src=e.currentSrc),t}function f(){let e=n.value;if(!e||!r.value)return;let i=e.getBoundingClientRect(),a=window.innerWidth,o=window.innerHeight,c=e.naturalWidth||i.width,u=e.naturalHeight||i.height,d=a-t.value*2,f=o-t.value*2,p=Math.min(d/i.width,c/i.width),m=Math.min(f/i.height,u/i.height),h=Math.min(p,m,1),g=(a-i.width*h)/2,_=(o-i.height*h)/2,v=g-i.left,y=_-i.top;s.value=`translate3d(0, 0, 0) scale(1)`,l.value=`translate3d(${v}px, ${y}px, 0) scale(${h})`}async function p(){let t=n.value;if(!t)return;let i=d();if(!i)return;t.style.visibility=`hidden`,document.body.appendChild(i),r.value=i,o.value=!0,await _(),f(),r.value&&(r.value.style.transform=s.value,r.value.style.transition=`none`),r.value?.offsetHeight,await _(),a.value=!0,r.value&&(r.value.style.transition=`transform 0.3s cubic-bezier(0.2, 0, 0.2, 1)`,r.value.style.transform=l.value),e.open?.();let c=()=>{a.value=!1,r.value&&(r.value.style.opacity=`0`),o.value=!1,i.removeEventListener(`transitionend`,c)};i.addEventListener(`transitionend`,c,{once:!0})}async function h(){if(!r.value){e.close?.();return}if(await _(),o.value=!0,r.value&&(r.value.style.opacity=`1`),await _(),!r.value)return;let t=n.value,s=i.value;if(!t||!s)return;let c=t.getBoundingClientRect(),l=s.getBoundingClientRect(),u=r.value,d=window.getComputedStyle(s).transform||`none`,f=l.left+l.width/2,p=l.top+l.height/2,m=c.left+c.width/2,h=c.top+c.height/2,g=Math.min(c.width/l.width,c.height/l.height);u.style.top=`${l.top}px`,u.style.left=`${l.left}px`,u.style.width=`${l.width}px`,u.style.height=`${l.height}px`,u.style.transform=d===`none`?`translate3d(0, 0, 0) scale(1)`:d,u.style.transformOrigin=`center center`,u.style.transition=`none`,u.offsetHeight,await _(),a.value=!0;let v=m-f,y=h-p;if(u.style.transition=`transform 0.3s cubic-bezier(0.2, 0, 0.2, 1)`,d!==`none`)try{let e=new DOMMatrix(d).inverse(),t=new DOMPoint(v,y).matrixTransform(e);u.style.transform=`${d} translate3d(${t.x}px, ${t.y}px, 0) scale(${g})`}catch{u.style.transform=`${d} translate3d(${v}px, ${y}px, 0) scale(${g})`}else u.style.transform=`translate3d(${v}px, ${y}px, 0) scale(${g})`;u.addEventListener(`transitionend`,()=>{let t=r.value;t&&t.parentNode&&t.parentNode.removeChild(t),r.value=void 0,n.value&&(n.value.style.visibility=`visible`),e.close?.(),a.value=!1,o.value=!1},{once:!0})}return{isAnimating:a,elementStyle:u,elementRef:n,zoomElementRef:i,zoomIn:p,zoomOut:h}}let Z=null;function Ha(e){let t=x(!1),{getCdnMermaidUrl:n,loadCdnMermaid:r}=ba({cdnOptions:e?.cdnOptions}),i=m(()=>S(e?.mermaidOptions)?.config??{}),a=m(()=>S(e?.mermaidOptions)?.theme??[`neutral`,`dark`]),s=m(()=>S(e?.isDark)??!1),l=m(()=>a.value[0]??`neutral`),u=m(()=>a.value[1]??`dark`),p=m(()=>s.value?u.value:l.value),h=x(``);async function g(){if(Z)return Z;let{default:e}=await r()??await import(`mermaid`);return e.initialize({startOnLoad:!1,securityLevel:`loose`,...i.value}),Z=e,Z}async function _(){return n()?!0:await o()}function v(e){return e.startsWith(`%%{`)?e:`${`%%{init: {"theme": "${p.value}"}}%%\n`}${e}`}async function y(e){try{let t=await g();return h.value=v(e),await t.parse(h.value),{valid:!0}}catch(e){return{valid:!1,error:e instanceof Error?e.message:String(e)}}}async function b(e){let{valid:t,error:n}=await y(e);if(!t||!c())return{error:n,valid:!1};let r=`mermaid-${La()}`;try{return{svg:(await(await g()).render(r,v(e))).svg,valid:!0}}catch(e){let t=document.getElementById(`d${r}`);return t&&t.remove(),{valid:!1,error:e instanceof Error?e.message:String(e)}}}async function C(e,t=h.value,n){try{let{svg:r}=await b(t);if(!r){n?.(Error(`SVG not found. Please wait for the diagram to render.`));return}if(e===`svg`&&d(`diagram.svg`,r,`image/svg+xml`),e===`png`){let e=await f(r);e&&d(`diagram.png`,e,`image/png`)}}catch(e){n?.(e)}}async function w(){Z||(t.value=await _(),t.value&&await g())}function ee(){h.value=``}return c()&&(async()=>{if(Z){t.value=!0;return}t.value=await _()})(),{installed:t,getMermaid:g,parseMermaid:y,renderMermaid:b,saveMermaid:C,preload:w,dispose:ee}}function Ua(e){let t=m(()=>S(e.hardenOptions)??Se),n=m(()=>S(e.loading)??!1),r=m(()=>t.value.allowedLinkPrefixes??[`*`]),i=m(()=>t.value.allowedImagePrefixes??[`*`]),a=m(()=>t.value.allowedProtocols??[`*`]),o=m(()=>t.value.allowDataImages??!0),s=m(()=>t.value.defaultOrigin??``),c=m(()=>S(e.isImage)??!1),l=m(()=>S(e.url)??``),u=m(()=>f(l.value)),d=m(()=>u.value===null);function f(e){return!e||n.value?e:p(e,c.value?i.value:r.value,s.value,o.value,c.value,a.value)}return{hardenOptions:t,transformHardenUrl:f,transformedUrl:u,isHardenUrl:d}}let Q=null,$=null;function Wa(e){let t=x(!1),{getCdnShikiUrl:n,loadCdnShiki:r}=ba({cdnOptions:e?.cdnOptions}),i=m(()=>S(e?.lang)??`plaintext`),a=m(()=>S(e?.shikiOptions)?.theme??[_e,ve]),o=m(()=>a.value[0]??_e),l=m(()=>a.value[1]??ve),u=m(()=>S(e?.shikiOptions)?.langs??[]),d=m(()=>{let t=S(e?.shikiOptions)?.langAlias??{};return{...ye,...t}}),f=m(()=>S(e?.shikiOptions)?.codeToTokenOptions??{});async function p(){return await r()??await import(`shiki`)}async function h(){return n()?!0:await s()}async function g(){let{bundledThemesInfo:e}=await p();return[o.value,l.value].filter(t=>e.find(e=>e.id===t))}async function _(){let{bundledThemesInfo:e}=await p();return{light:e.find(e=>e.id===o.value)?.id??_e,dark:e.find(e=>e.id===l.value)?.id??ve}}async function v(){if(d.value[i.value])return d.value[i.value];let{bundledLanguagesInfo:e}=await p(),t=e.find(e=>e.id===i.value||e.aliases?.includes(i.value));return t?t.id:`plaintext`}async function y(){if($&&=(Q=await $,null),Q){let e=Q.getLoadedLanguages(),t=Q.getLoadedThemes(),n=await v(),r=await g();e.includes(n)||await Q.loadLanguage(n);for(let e of r)t.includes(e)||await Q.loadTheme(e);return Q}return $=(async()=>{let{createHighlighter:e}=await p();return e({themes:await g(),langs:u.value,langAlias:d.value})})(),Q=await $,$=null,Q}async function b(e){return(await y()).codeToTokens(e,{themes:await _(),lang:await v(),...f.value})}async function C(){Q||(t.value=await h(),t.value&&await y())}function w(){Q?.dispose(),Q=null}return c()&&(async()=>{if(Q){t.value=!0;return}t.value=await h()})(),{installed:t,getShiki:p,getHighlighter:y,codeToTokens:b,preload:C,dispose:w}}const Ga=/^(?:hsl|rgb|oklch|lab|lch)\(/;function Ka(e){let n=x({}),r=m(()=>{if(c())return(typeof e.element==`function`?e.element():null)||document.body});function i(){if(!c()||!r.value)return;let e=window.getComputedStyle(r.value),i={};for(let n of t){let t=`--${n}`,r=e.getPropertyValue(t).trim();r&&!Ga.test(r)&&(i[t]=`hsl(${r})`)}Object.keys(i).length>0?n.value=i:n.value={}}w(i);let{stop:a}=te(()=>r.value?[r.value,document.documentElement]:[],i,{attributes:!0,attributeFilter:[`style`,`class`],subtree:!1});return{element:r,cssVariables:n,generateCSS:i,stop:a}}function qa(e={}){let{minZoom:t=.5,maxZoom:n=3,zoomStep:r=.1,wheelSensitivity:i=.01,initialZoom:a=1,initialTranslateX:o=0,initialTranslateY:s=0}=e,c=x(a),l=x(o),u=x(s),d=x(!1),f=x({x:0,y:0}),p=x(!1),h=x(null),g=m(()=>({transform:`translate(${l.value}px, ${u.value}px) scale(${c.value})`}));function _(){c.value<n&&(c.value=Math.min(c.value+r,n))}function v(){c.value>t&&(c.value=Math.max(c.value-r,t))}function y(){c.value=a,l.value=o,u.value=s}function b(e){c.value=Math.min(Math.max(e,t),n)}function S(e){p.value||(d.value=!0,f.value={x:e.clientX-l.value,y:e.clientY-u.value},e.pointerType!==`mouse`&&e.target instanceof HTMLElement&&e.target.setPointerCapture(e.pointerId))}function C(e){!d.value||p.value||(l.value=e.clientX-f.value.x,u.value=e.clientY-f.value.y)}function w(){d.value=!1}function ee(e,r){if(e.ctrlKey||e.metaKey){e.preventDefault();let a=r.getBoundingClientRect(),o=e.clientX-a.left,s=e.clientY-a.top,d=a.width/2,f=a.height/2,p=o-d,m=s-f,h=(p-l.value)/c.value,g=(m-u.value)/c.value,_=-e.deltaY*i,v=Math.min(Math.max(c.value+_,t),n);v!==c.value&&(l.value=p-h*v,u.value=m-g*v,c.value=v)}}function T(e,t){let n=e.clientX-t.clientX,r=e.clientY-t.clientY;return Math.sqrt(n*n+r*r)}function te(e,t){if(e.touches.length===2){e.preventDefault(),p.value=!0;let n=e.touches[0],r=e.touches[1],i=T(n,r),a=(n.clientX+r.clientX)/2,o=(n.clientY+r.clientY)/2,s=t.getBoundingClientRect(),d=s.width/2,f=s.height/2,m=a-s.left-d,g=o-s.top-f;h.value={initialDistance:i,initialZoom:c.value,initialTranslateX:l.value,initialTranslateY:u.value,centerX:m,centerY:g}}}function ne(e,r){if(e.touches.length===2&&h.value){e.preventDefault();let i=e.touches[0],a=e.touches[1],o=T(i,a)/h.value.initialDistance,s=h.value.initialZoom*o,d=Math.min(Math.max(s,t),n);if(d!==c.value){let e=(i.clientX+a.clientX)/2,t=(i.clientY+a.clientY)/2,n=r.getBoundingClientRect(),o=n.width/2,s=n.height/2,f=e-n.left-o,p=t-n.top-s,m=(h.value.centerX-h.value.initialTranslateX)/h.value.initialZoom,g=(h.value.centerY-h.value.initialTranslateY)/h.value.initialZoom;c.value=d,l.value=f-m*d,u.value=p-g*d}}}function re(e){e.touches.length<2&&(h.value=null,p.value=!1)}function ie(){return{zoom:c.value,translateX:l.value,translateY:u.value}}function ae(e){e.zoom&&(c.value=Math.min(Math.max(e.zoom,t),n)),e.translateX&&(l.value=e.translateX),e.translateY&&(u.value=e.translateY)}return{zoom:c,translateX:l,translateY:u,isDragging:d,transformStyle:g,zoomIn:_,zoomOut:v,resetZoom:y,setZoom:b,startDrag:S,onDrag:C,stopDrag:w,handleWheel:ee,getState:ie,setState:ae,handleTouchStart:te,handleTouchMove:ne,handleTouchEnd:re}}export{D as $,ci as A,cn as B,ba as C,pa as D,da as E,On as F,Me as G,O as H,wn as I,Fe as J,Ne as K,L,G as M,W as N,Mi as O,ar as P,ke as Q,I as R,xa as S,fa as T,Ae as U,F as V,je as W,A as X,k as Y,j as Z,Da as _,Ha as a,_e as at,wa as b,za as c,xe as ct,Na as d,De as et,Oa as f,ka as g,Aa as h,Ua as i,ve as it,ei as j,Y as k,Ia as l,me as lt,Ma as m,Ka as n,Ce as nt,Va as o,ye as ot,ja as p,Pe as q,Wa as r,Se as rt,Ba as s,be as st,qa as t,Oe as tt,Fa as u,Ea as v,ma as w,Ca as x,Ta as y,fn as z};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[t(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),t(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})],-1)]])}var o=n({name:`lucide-copy`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[t(`path`,{d:`M20 4v7a4 4 0 0 1-4 4H4`}),t(`path`,{d:`m9 10l-5 5l5 5`})],-1)]])}var o=n({name:`lucide-corner-down-left`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`#8aadf4`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M2.556 12.952a7.05 7.05 0 0 0 9.944 0l-1.79-1.783a4.513 4.513 0 0 1-6.364 0a4.47 4.47 0 0 1 0-6.338a4.513 4.513 0 0 1 6.364 0l.895-.891l.895-.892a7.05 7.05 0 0 0-9.944 0a6.98 6.98 0 0 0 0 9.904`,"clip-rule":`evenodd`},null,-1),t(`path`,{fill:`none`,stroke:`#8aadf4`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M7.5 6v4M5.514 8h3.999m3.973-2v4M11.5 8h4`},null,-1)]])}var o=n({name:`catppuccin-cpp`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`#8aadf4`,d:`M6.666 1.01a1 1 0 0 1 .822 1.15L7.18 3.999h2.972l.36-2.165a1 1 0 0 1 1.971.328l-.303 1.837H14a.999.999 0 1 1 0 2h-2.153l-.666 4H13a.999.999 0 1 1 0 2h-2.153l-.36 2.166a1 1 0 0 1-1.971-.328l.306-1.834H5.847l-.36 2.165a1 1 0 0 1-1.971-.328L3.819 12H2a.999.999 0 1 1 0-2h2.153l.666-4H3a.999.999 0 1 1 0-2h2.153l.36-2.166a1 1 0 0 1 1.15-.822Zm.18 4.988l-.665 4h2.972l.666-4Z`},null,-1)]])}var o=n({name:`catppuccin-csharp`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,stroke:`#c6a0f6`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[t(`path`,{d:`M4 1.5h8A2.5 2.5 0 0 1 14.5 4v8a2.5 2.5 0 0 1-2.5 2.5H4A2.5 2.5 0 0 1 1.5 12V4A2.5 2.5 0 0 1 4 1.5`}),t(`path`,{"stroke-width":`.814`,d:`M10.24 11.53c0 .58.438 1.038.96 1.035l.453-.004c.522-.003.949-.451.949-1.033c0-.58-.427-1.065-.95-1.065h-.451c-.523 0-.95-.486-.95-1.066s.427-1.038.95-1.038h.452c.522 0 .951.458.951 1.039M6.8 11.529c0 .58.438 1.04.96 1.036l.465-.004c.523-.003.936-.451.936-1.031s-.409-1.066-.931-1.066h-.47c-.522 0-.949-.485-.949-1.066c0-.58.427-1.037.95-1.037h.451c.523 0 .964.457.964 1.037M3.407 11.53c0 .58.438 1.052.96 1.052h.452c.522 0 .95-.457.95-1.038m.01-2.131c0-.58-.437-1.038-.96-1.038h-.451c-.523 0-.96.468-.96 1.05v2.118`})],-1)]])}var o=n({name:`catppuccin-css`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`#a6da95`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M1.5 3.5c0-.54.48-1 1.08-1H6.5l1.54 1h5.38c.6 0 1.08.44 1.08.98l-.09 9.04c0 .54-.48.98-1.08.98H2.58c-.6 0-1.08-.44-1.08-.98zm2 4v4m3-4v4m3-4v4m3-4v4m-9 0h9m-9-2h9m-9-2h9`},null,-1)]])}var o=n({name:`catppuccin-csv`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`#eed49f`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M8 6.5c3.59 0 6.5-1.4 6.5-2.68S11.59 1.5 8 1.5S1.5 2.54 1.5 3.82S4.41 6.5 8 6.5M14.5 8c0 .83-1.24 1.79-3.25 2.2s-4.49.41-6.5 0S1.5 8.83 1.5 8m13 4.18c0 .83-1.24 1.6-3.25 2c-2.01.42-4.49.42-6.5 0c-2.01-.4-3.25-1.17-3.25-2m0-8.3v8.3m13-8.3v8.3`},null,-1)]])}var o=n({name:`catppuccin-database`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import{t as e}from"./node-list-Bc7Jr5_G.js";import{createElementBlock as t,createVNode as n,defineComponent as r,mergeProps as i,openBlock as a}from"vue";const o={"data-stream-markdown":`delete`};var s=r({__name:`delete`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(r){let s=r;return(c,l)=>(a(),t(`del`,o,[n(e,i(s,{"parent-node":r.node,nodes:r.node.children,deep:r.deep+1}),null,16,[`parent-node`,`nodes`,`deep`])]))}});export{s as default};
@@ -0,0 +1 @@
1
+ function e(e={}){let{childrenKey:t=`children`}=e;return{childrenKey:t,getChildrenKey(e,t){return typeof this.childrenKey==`function`?this.childrenKey(e,t):this.childrenKey},getChildren(e,t){return e[this.getChildrenKey(e,t)]||[]},hasChildren(e,t){let n=this.getChildren(e,t);return Array.isArray(n)&&n.length>0}}}function t(e,t,n){let r=[],i=(e,a=[],o=0)=>{e.forEach((e,s)=>{let c={depth:o,index:s,parents:a};r.push(t(e,c)),n.hasChildren(e,c)&&i(n.getChildren(e,c),[...a,e],o+1)})};return i(e),r}function n(e,t,n){let r=[],i=(e,a=[],o=0)=>{e.forEach((e,s)=>{let c={depth:o,index:s,parents:a};n.hasChildren(e,c)&&i(n.getChildren(e,c),[...a,e],o+1),r.push(t(e,c))})};return i(e),r}function r(e,t,n){let r=[],i=e.map((e,t)=>[e,t,[],0]);for(;i.length;){let[e,a,o,s]=i.shift(),c={depth:s,index:a,parents:o};r.push(t(e,c)),n.hasChildren(e,c)&&n.getChildren(e,c).forEach((t,n)=>{i.push([t,n,[...o,e],s+1])})}return r}function i(i,a,o={}){let{strategy:s=`pre`}=o,c=e(o),l=(e,t)=>a(e,t)?e:null;switch(s){case`post`:return n(i,l,c).filter(Boolean);case`breadth`:return r(i,l,c).filter(Boolean);case`pre`:default:return t(i,l,c).filter(Boolean)}}function a(t,n,r={}){let i=e(r),a=(e,t=[],r=0)=>{let o=[];for(let s=0;s<e.length;s++){let c=e[s],l={depth:r,index:s,parents:t};if(n(c,l)){let e={...c};if(i.hasChildren(c,l)){let n=a(i.getChildren(c,l),[...t,c],r+1),o=i.getChildrenKey(c,l);n.length>0?e[o]=n:delete e[o]}o.push(e)}}return o};return a(t)}function o(i,a,o={}){let{strategy:s=`pre`}=o,c=e(o);switch(s){case`post`:return n(i,a,c);case`breadth`:return r(i,a,c);case`pre`:default:return t(i,a,c)}}export{i as n,o as r,a as t};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[t(`path`,{d:`M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),t(`path`,{d:`m7 10l5 5l5-5`})],-1)]])}var o=n({name:`lucide-download`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import"./tooltip-D4l7B0Kg.js";import{n as e}from"./button-FB5v8pIn.js";import"./icon-BGnRzcDQ.js";export{e as default};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import{t as e}from"./node-list-Bc7Jr5_G.js";import{createElementBlock as t,createVNode as n,defineComponent as r,mergeProps as i,openBlock as a}from"vue";const o={"data-stream-markdown":`emphasis`};var s=r({__name:`emphasis`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(r){let s=r;return(c,l)=>(a(),t(`em`,o,[n(e,i(s,{"parent-node":r.node,nodes:r.node.children,deep:r.deep+1}),null,16,[`parent-node`,`nodes`,`deep`])]))}});export{s as default};
@@ -0,0 +1 @@
1
+ var e={zoomIn:`Zoom In`,zoomOut:`Zoom Out`,resetZoom:`Reset Zoom`,preview:`Preview`,source:`Source`,collapse:`Collapse`,copy:`Copy`,download:`Download`,minimize:`Minimize`,maximize:`Maximize`,flipY:`Flip Y`,flipX:`Flip X`,rotateLeft:`Rotate Left`,rotateRight:`Rotate Right`,previous:`Previous`,next:`Next`,back:`Back`},t={vanilla:`Error`,image:`Image failed to load`,mermaid:`Mermaid failed to render`,katex:`Katex failed to render`,harden:`Blocked`},n={button:e,error:t};export{e as button,n as default,t as error};
@@ -0,0 +1 @@
1
+ import{d as e,x as t}from"./composables-CvwBC0F_.js";import{t as n}from"./icon-BGnRzcDQ.js";import{computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createTextVNode as s,defineComponent as c,openBlock as l,renderSlot as u,resolveDynamicComponent as d,toDisplayString as f}from"vue";const p={"data-stream-markdown":`error-component`},m={key:0,"data-stream-markdown":`error-component-icon`};var h=c({inheritAttrs:!1,__name:`error-component`,props:{variant:{type:String,required:!1,default:`vanilla`},showIcon:{type:Boolean,required:!1,default:!0},icon:{type:null,required:!1},message:{type:String,required:!1}},setup(c){let h=c,{t:g}=e(),{icons:_}=t(),v=r(()=>({vanilla:g(`error.vanilla`),image:g(`error.image`),mermaid:g(`error.mermaid`),katex:g(`error.katex`),"harden-image":g(`error.harden`),"harden-link":g(`error.harden`)})),y=r(()=>{if(h.icon)return h.icon;if(_.value[h.variant])return h.variant;let e=h.variant.replace(`harden-`,``);return _.value[e]?e:`error`}),b=r(()=>h.message?h.message:v.value[h.variant]||v.value.vanilla),x=r(()=>h.variant?.startsWith?.(`harden-`));return(e,t)=>(l(),o(`span`,p,[c.showIcon?(l(),o(`div`,m,[typeof y.value==`string`?(l(),i(n,{key:0,icon:y.value},null,8,[`icon`])):(l(),i(d(y.value),{key:1}))])):a(`v-if`,!0),x.value?u(e.$slots,`default`,{key:1}):a(`v-if`,!0),s(` [`+f(b.value)+`] `,1)]))}});export{h as t};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import"./icon-BGnRzcDQ.js";import{t as e}from"./error-component-CBvdYW29.js";export{e as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[t(`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0`}),t(`circle`,{cx:`12`,cy:`12`,r:`3`})],-1)]])}var o=n({name:`lucide-eye`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3m8-18h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3m-4-1v2m0-8v2m0-8v2m0-8v2`},null,-1)]])}var o=n({name:`lucide-flip-horizontal`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{d as e,x as t}from"./composables-CvwBC0F_.js";import{t as n}from"./node-list-Bc7Jr5_G.js";import"./tooltip-D4l7B0Kg.js";import{t as r}from"./button-FB5v8pIn.js";import"./icon-BGnRzcDQ.js";import{computed as i,createElementBlock as a,createElementVNode as o,createVNode as s,defineComponent as c,mergeProps as l,openBlock as u,toDisplayString as d,unref as f}from"vue";const p=[`id`],m={"data-stream-markdown":`footnote-definition-label`};var h=c({__name:`footnote-definition`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(c){let h=c,{t:g}=e(),{getContainer:_}=t(),v=i(()=>h.node.identifier),y=i(()=>h.node.label??v.value),b=i(()=>`${y.value}.`);function x(){let e=(_()||document.body).querySelector(`#footnote-reference-${v.value}`);e&&e.scrollIntoView({behavior:`smooth`})}return(e,t)=>(u(),a(`a`,{id:`footnote-definition-${v.value}`,"data-stream-markdown":`footnote-definition`},[o(`span`,m,d(b.value),1),s(n,l(h,{"parent-node":c.node,nodes:c.node.children}),null,16,[`parent-node`,`nodes`]),s(r,{"data-stream-markdown":`footnote-definition-button`,name:f(g)(`button.back`),icon:`cornerDownLeft`,"icon-style":{color:`var(--primary)`},"button-style":{padding:`0.25rem`},onClick:x},null,8,[`name`])],8,p))}});export{h as default};
@@ -0,0 +1 @@
1
+ import{x as e}from"./composables-CvwBC0F_.js";import{computed as t,createElementBlock as n,createElementVNode as r,defineComponent as i,openBlock as a,toDisplayString as o}from"vue";const s=[`id`];var c=i({__name:`footnote-reference`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(i){let c=i,{getContainer:l}=e(),u=t(()=>c.node.identifier),d=t(()=>c.node.label??u.value);function f(){let e=(l()||document.body).querySelector(`#footnote-definition-${u.value}`);e&&e.scrollIntoView({behavior:`smooth`})}return(e,t)=>(a(),n(`sup`,{"data-stream-markdown":`footnote-reference`,onClick:f},[r(`a`,{id:`footnote-reference-${u.value}`},`[`+o(d.value)+`]`,9,s)]))}});export{c as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`#7dc4e4`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`m15.48 8.06l-4.85.48m4.85-.48a4.98 4.98 0 0 1-4.54 5.42a5 5 0 1 1 2.95-8.66l-1.7 1.84a2.5 2.5 0 0 0-4.18 2.06c.05.57.3 1.1.69 1.51c.25.27 1 .83 1.78.82c.8-.02 1.58-.25 2.07-.81c0 0 .8-.96.68-1.88M2.5 8.5l-2 .01m1.5 2h1.5m-2-3.99l2-.02`},null,-1)]])}var o=n({name:`catppuccin-go`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`path`,{fill:`none`,stroke:`#f5bde6`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M9 1.5a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m-5.5 3a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m0 7a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m11 0a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m-5.5 3a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m5.5-10a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m-12 1v5m11-5v5m-10 1h9m-6 2.5l-3-1.5m6 1.5l3-1.5m-9-2l4-8m5 8l-4-8m-5 1l3-1.5m3 0l3 1.5`},null,-1)]])}var o=n({name:`catppuccin-graphql`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import{t as e}from"./node-list-Bc7Jr5_G.js";import{computed as t,createBlock as n,createVNode as r,defineComponent as i,mergeProps as a,openBlock as o,resolveDynamicComponent as s,withCtx as c}from"vue";var l=i({__name:`heading`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(i){let l=i,u=t(()=>l.node.depth),d=t(()=>`h${u.value}`),f=t(()=>`heading-${u.value}`);return(t,u)=>(o(),n(s(d.value),{"data-stream-markdown":f.value},{default:c(()=>[r(e,a(l,{nodes:i.node.children,deep:i.deep+1}),null,16,[`nodes`,`deep`])]),_:1},8,[`data-stream-markdown`]))}});export{l as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[t(`path`,{stroke:`#f5a97f`,d:`M1.5 1.5h13L13 13l-5 2l-5-2z`}),t(`path`,{stroke:`#cad3f5`,d:`M11 4.5H5l.25 3h5.5l-.25 3l-2.5 1l-2.5-1l-.08-1`})],-1)]])}var o=n({name:`catppuccin-html`,render:a});export{o as default};
@@ -0,0 +1 @@
1
+ import{computed as e,createElementBlock as t,createElementVNode as n,defineComponent as r,normalizeStyle as i,openBlock as a,ref as o}from"vue";const s=[`srcdoc`];var c=r({__name:`html`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(r){let c=r,l=o(),u=o(0),d=e(()=>c.node.value.trim());function f(){let e=l.value?.contentDocument;e&&(u.value=e.body.scrollHeight+16)}return(e,r)=>(a(),t(`div`,{class:`html-previewer`,style:i({height:`${u.value}px`})},[n(`iframe`,{ref_key:`iframeRef`,ref:l,"data-stream-markdown":`html-previewer`,srcdoc:d.value,sandbox:`allow-scripts allow-same-origin`,frameborder:0,onLoad:f},null,40,s)],4))}});export{c as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e}from"vue";var t=e({__name:`html`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(e){return()=>{}}});export{t as default};
@@ -0,0 +1 @@
1
+ import{x as e}from"./composables-CvwBC0F_.js";import{computed as t,createElementBlock as n,createVNode as r,defineComponent as i,normalizeClass as a,normalizeStyle as o,openBlock as s,unref as c}from"vue";var l=i({__name:`icon`,props:{icon:{type:null,required:!0},width:{type:Number,required:!1,default:14},height:{type:Number,required:!1,default:14},class:{type:[String,Array,Object],required:!1},style:{type:Object,required:!1}},setup(i){let l=i,{icons:u}=e(),d=t(()=>typeof l.icon==`string`?u.value[l.icon]:l.icon),f=t(()=>({width:`${l.width}px`,height:`${l.height}px`}));return(e,t)=>(s(),n(`div`,{"data-stream-markdown":`icon`,style:o(f.value)},[r(c(d),{width:i.width,height:i.height,class:a(l.class),style:o(i.style)},null,8,[`width`,`height`,`class`,`style`])],4))}});export{l as t};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import{t as e}from"./icon-BGnRzcDQ.js";export{e as default};
@@ -0,0 +1 @@
1
+ import{createElementBlock as e,createElementVNode as t,markRaw as n,openBlock as r}from"vue";const i={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function a(n,a){return r(),e(`svg`,i,[...a[0]||=[t(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[t(`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`}),t(`circle`,{cx:`9`,cy:`9`,r:`2`}),t(`path`,{d:`m21 15l-3.086-3.086a2 2 0 0 0-2.828 0L6 21`})],-1)]])}var o=n({name:`lucide-image`,render:a});export{o as default};
@@ -0,0 +1,5 @@
1
+ import{b as e,d as t,o as n,x as r}from"./composables-CvwBC0F_.js";import{n as i}from"./dist-D1SilaNH.js";import{t as ee}from"./button-FB5v8pIn.js";import{t as te}from"./modal-DE8lbbkB.js";import{t as a}from"./zoom-container-D7MNwEQa.js";import{Fragment as o,computed as s,createBlock as c,createElementBlock as l,createElementVNode as u,createVNode as d,defineComponent as f,mergeProps as p,normalizeStyle as m,openBlock as h,ref as g,renderList as _,toRefs as v,unref as y,watch as b,withCtx as x}from"vue";import{useCycleList as ne}from"@vueuse/core";const S=[`src`,`alt`,`title`],C=[`src`,`alt`,`title`];var w=f({__name:`image`,props:{src:{type:String,required:!1},alt:{type:String,required:!1},title:{type:String,required:!1},preview:{type:Boolean,required:!1,default:!0},margin:{type:Number,required:!1,default:16},controls:{type:[Boolean,Object],required:!1,default:!0},transformHardenUrl:{type:Function,required:!1},nodeProps:{type:Object,required:!0},handleDownload:{type:Function,required:!1}},emits:[`load`,`error`],setup(f,{emit:w}){let T=f,E=w,{margin:D,controls:O}=v(T),{t:k}=t(),{icons:A,parsedNodes:j}=r(),{isControlEnabled:M,getControlValue:N,resolveControls:P}=e({controls:O}),F=s(()=>i(j.value,e=>e.type===`image`&&!e.loading)),I=s(()=>[...new Set(F.value.map(e=>e.url))].filter(e=>T.transformHardenUrl?T.transformHardenUrl(e):e).filter(Boolean)),{state:L,prev:R,next:z}=ne(I,{initialValue:T.src,fallbackIndex:0}),B=s(()=>M(`image.download`)&&!!T.handleDownload),V=s(()=>M(`image.carousel`)),H=s(()=>M(`image.flip`)),U=s(()=>M(`image.rotate`)),W=s(()=>{let e=N(`image.controlPosition`);return typeof e==`boolean`?`bottom-center`:e||`bottom-center`}),G=g(!1),K=g(!1),q=g(1),J=g(1),Y=g(0),{isAnimating:X,elementRef:Z,zoomElementRef:re,elementStyle:ie,zoomIn:ae,zoomOut:oe}=n({margin:D,open:()=>K.value=!0,close:()=>K.value=!1}),se=s(()=>({transform:`
2
+ scaleX(${q.value})
3
+ scaleY(${J.value})
4
+ rotate(${Y.value}deg)
5
+ `,transition:`transform 0.3s ease`,...ie.value})),Q=s(()=>[{key:`download`,icon:`download`,name:k(`button.download`),onClick:()=>T.handleDownload?.(L.value),visible:()=>!!L.value&&B.value},{key:`previous`,icon:`arrowLeft`,name:k(`button.previous`),onClick:()=>R(),visible:()=>I.value.length>1&&V.value},{key:`next`,icon:A.value.arrowRight?`arrowRight`:`arrowLeft`,name:k(`button.next`),onClick:()=>z(),buttonStyle:A.value.arrowRight?void 0:{transform:`scaleX(-1)`},visible:()=>I.value.length>1&&V.value},{key:`flipX`,icon:`flipHorizontal`,name:k(`button.flipX`),onClick:fe,visible:()=>H.value},{key:`flipY`,icon:A.value.flipVertical?`flipVertical`:`flipHorizontal`,name:k(`button.flipY`),onClick:pe,buttonStyle:A.value.flipVertical?void 0:{rotate:`90deg`},visible:()=>H.value},{key:`rotateLeft`,icon:`rotateLeft`,name:k(`button.rotateLeft`),onClick:me,visible:()=>U.value},{key:`rotateRight`,icon:A.value.rotateRight?`rotateRight`:`rotateLeft`,name:k(`button.rotateRight`),onClick:he,buttonStyle:A.value.rotateRight?void 0:{transform:`scaleX(-1)`},visible:()=>U.value}]),ce=s(()=>P(`image`,Q.value,T.nodeProps));function le(e){G.value=!0,E(`load`,e)}function ue(e){E(`error`,e)}function de(){!T.preview||!Z.value||!G.value||ae()}function $(){X.value||oe()}function fe(){q.value*=-1}function pe(){J.value*=-1}function me(){Y.value-=90}function he(){Y.value+=90}return b(K,e=>{e||(q.value=1,J.value=1,Y.value=0,T.src&&(L.value=T.src))}),(e,t)=>(h(),l(o,null,[u(`img`,{ref_key:`elementRef`,ref:Z,"data-stream-markdown":`image`,src:f.src,alt:f.alt,title:f.title,style:{transition:`transform 300ms cubic-bezier(0.2, 0, 0.2, 1)`},loading:`lazy`,decoding:`async`,onLoad:le,onError:ue,onClick:de},null,40,S),d(te,{open:K.value,"onUpdate:open":t[0]||=e=>K.value=e,transition:``,"modal-style":{backgroundColor:`rgba(0, 0, 0, 0.45)`},close:$},{default:x(()=>[d(a,{"control-size":`large`,position:W.value,"container-style":{width:`auto`,maxWidth:`calc(100% - ${T.margin*2}px)`,cursor:`grab`},onClick:$},{controls:x(e=>[(h(!0),l(o,null,_(ce.value,t=>(h(),c(ee,p({ref_for:!0},{...e,...t},{key:t.key,onClick:t.onClick}),null,16,[`onClick`]))),128))]),default:x(()=>[u(`img`,{ref_key:`_zoomElementRef`,ref:re,src:y(L),alt:f.alt,title:f.title,style:m(se.value)},null,12,C)]),_:1},8,[`position`,`container-style`])]),_:1},8,[`open`])],64))}});export{w as t};
@@ -0,0 +1 @@
1
+ import{b as e,d as t,i as n,x as r}from"./composables-CvwBC0F_.js";import{saveImage as i}from"./index.js";import"./tooltip-D4l7B0Kg.js";import{t as a}from"./button-FB5v8pIn.js";import"./icon-BGnRzcDQ.js";import"./modal-DE8lbbkB.js";import{t as o}from"./error-component-CBvdYW29.js";import"./zoom-container-D7MNwEQa.js";import{t as s}from"./image-C0oBBzeP.js";import{t as c}from"./spin-D-xx-29z.js";import{computed as l,createBlock as u,createCommentVNode as d,createElementBlock as f,createElementVNode as p,createTextVNode as m,defineComponent as h,mergeProps as g,normalizeStyle as _,openBlock as v,ref as y,resolveDynamicComponent as b,toDisplayString as x,toRefs as S,unref as C,withCtx as w}from"vue";const T={"data-stream-markdown":`image-wrapper`},E={key:0,"data-stream-markdown":`image-caption`};var D=h({__name:`image`,props:{node:{type:Object,required:!0},markdownParser:{type:Object,required:!0},nodeRenderers:{type:Object,required:!0},parsedNodes:{type:Array,required:!1},blocks:{type:Array,required:!1},blockIndex:{type:Number,required:!1},parentNode:{type:Object,required:!1},prevNode:{type:Object,required:!1},nextNode:{type:Object,required:!1},nodeKey:{type:String,required:!0},deep:{type:Number,required:!0},controls:{type:[Boolean,Object],required:!1},previewers:{type:[Boolean,Object],required:!1},shikiOptions:{type:Object,required:!1},mermaidOptions:{type:Object,required:!1},katexOptions:{type:Object,required:!1},hardenOptions:{type:Object,required:!1},codeOptions:{type:Object,required:!1},imageOptions:{type:Object,required:!1},uiOptions:{type:Object,required:!1},cdnOptions:{type:Object,required:!1},isDark:{type:Boolean,required:!1}},setup(h){let D=h,{t:O}=t(),{controls:k,hardenOptions:A}=S(D),{beforeDownload:j}=r(),{isControlEnabled:M}=e({controls:k}),N=y(),P=y(!1),F=y(!1),I=y(!1),L=l(()=>D.node.loading||!D.node.url),R=l(()=>M(`image.download`)),z=l(()=>M(`image.preview`)),B=l(()=>D.imageOptions?.fallback??``),V=l(()=>I.value&&B.value?B.value:D.node.url),{transformedUrl:H,isHardenUrl:U,transformHardenUrl:W}=n({url:V,hardenOptions:A,loading:L,isImage:!0}),G=l(()=>String(D.node.alt??D.node.title??``)),K=l(()=>String(D.node.title??D.node.alt??``)),q=l(()=>(typeof D.imageOptions?.caption==`boolean`?D.imageOptions.caption:!0)&&!L.value&&!!K.value),J=l(()=>U.value?A.value?.errorComponent??o:D.imageOptions?.errorComponent??o);function Y(){F.value=!0}function X(){if(B.value&&!I.value){I.value=!0;return}P.value=!0}async function Z(e=V.value){e&&await j({type:`image`,url:e})&&i(e,G.value)}function Q(){N.value&&(N.value.style.opacity=1)}function $(){N.value&&(N.value.style.opacity=0)}return(e,t)=>(v(),f(`figure`,{"data-stream-markdown":`image-figure`,style:_({width:L.value||!F.value?`100%`:`auto`}),onMouseenter:Q,onMouseleave:$},[p(`div`,T,[C(U)?d(`v-if`,!0):(v(),f(`div`,{key:0,ref_key:`maskRef`,ref:N,"data-stream-markdown":`image-mask`},[!L.value&&R.value?(v(),u(a,{key:0,"data-stream-markdown":`image-download-button`,icon:`download`,name:C(O)(`button.download`),"icon-class":`test`,"icon-width":16,"icon-height":16,"button-style":{backgroundColor:`color-mix(in oklab, var(--background) 90%, transparent)`},onClick:t[0]||=()=>Z(V.value)},null,8,[`name`])):d(`v-if`,!0)],512)),(L.value||!F.value)&&!C(U)?(v(),u(c,{key:1})):d(`v-if`,!0),!L.value&&!C(U)&&typeof C(H)==`string`?(v(),u(s,{key:C(H),src:C(H),alt:G.value,title:K.value,preview:!I.value&&z.value,controls:C(k),"transform-harden-url":C(W),"node-props":D,"handle-download":Z,onLoad:Y,onError:X},null,8,[`src`,`alt`,`title`,`preview`,`controls`,`transform-harden-url`])):C(U)||P.value?(v(),u(b(J.value),g({key:3,variant:C(U)?`harden-image`:`image`},D),{default:w(()=>[m(x(K.value),1)]),_:1},16,[`variant`])):d(`v-if`,!0)]),q.value&&K.value?(v(),f(`figcaption`,E,x(K.value),1)):d(`v-if`,!0)],36))}});export{D as default};
@@ -0,0 +1 @@
1
+ import"./composables-CvwBC0F_.js";import"./tooltip-D4l7B0Kg.js";import"./button-FB5v8pIn.js";import"./icon-BGnRzcDQ.js";import"./modal-DE8lbbkB.js";import"./zoom-container-D7MNwEQa.js";import{t as e}from"./image-C0oBBzeP.js";export{e as default};