aitu-app 0.6.48 → 0.6.49

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 (318) hide show
  1. package/README.md +3 -3
  2. package/assets/CanvasAudioPlayer-DITqjh6L.js +2 -0
  3. package/assets/CanvasAudioPlayer-mm7y75Ol.css +1 -0
  4. package/assets/ChatMessagesArea-D9jmGx5a.js +250 -0
  5. package/assets/ChatMessagesArea-DyR_wHFQ.css +1 -0
  6. package/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  7. package/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  8. package/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  9. package/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  10. package/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  11. package/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  12. package/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  13. package/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  14. package/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  15. package/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  16. package/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  17. package/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  18. package/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  19. package/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  20. package/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  21. package/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  22. package/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  23. package/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  24. package/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  25. package/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  26. package/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  27. package/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  28. package/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  29. package/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  30. package/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  31. package/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  32. package/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  33. package/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  34. package/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  35. package/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  36. package/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  37. package/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  38. package/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  39. package/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  40. package/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  41. package/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  42. package/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  43. package/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  44. package/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  45. package/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  46. package/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  47. package/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  48. package/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  49. package/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  50. package/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  51. package/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  52. package/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  53. package/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  54. package/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  55. package/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  56. package/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  57. package/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  58. package/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  59. package/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  60. package/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  61. package/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  62. package/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  63. package/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  64. package/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  65. package/assets/KnowledgeBaseContent-C_BAVG2b.css +1 -0
  66. package/assets/KnowledgeBaseContent-za__rOJH.js +53 -0
  67. package/assets/MVCreator-CTG316DL.js +152 -0
  68. package/assets/MVCreator-D2l2Gm4W.css +1 -0
  69. package/assets/MediaLibrarySidebar-CNCXXhfY.css +1 -0
  70. package/assets/ModelBenchmarkWorkbench-CAF7qCOz.css +1 -0
  71. package/assets/ModelBenchmarkWorkbench-JCQglDx0.js +2 -0
  72. package/assets/MusicAnalyzer-DE_rzhdo.js +1 -0
  73. package/assets/MusicAnalyzer-DhtRGpAp.css +1 -0
  74. package/assets/MusicAnalyzer-QQf3iMVf.js +6 -0
  75. package/assets/ResizableDivider-CNJfwuMZ.js +1 -0
  76. package/assets/ResizableDivider-ClzYJk-6.css +1 -0
  77. package/assets/Tableau10-B-NsZVaP.js +1 -0
  78. package/assets/Tableau10-Dnlau_Wv.js +1 -0
  79. package/assets/TaskQueuePanel-CcKV6Mtu.js +1 -0
  80. package/assets/VideoAnalyzer-4jAswALN.js +2 -0
  81. package/assets/VideoAnalyzer-BNHBu5xL.css +1 -0
  82. package/assets/__vite-browser-external-UePf-KSV.js +1 -0
  83. package/assets/apl-B4CMkyY2.js +1 -0
  84. package/assets/arc-CUJYo2bm.js +1 -0
  85. package/assets/arc-Do7iheP0.js +1 -0
  86. package/assets/array-B5oSNiGi.js +1 -0
  87. package/assets/array-BKyUJesY.js +1 -0
  88. package/assets/asciiarmor-Df11BRmG.js +1 -0
  89. package/assets/asn1-EdZsLKOL.js +1 -0
  90. package/assets/asterisk-B-8jnY81.js +1 -0
  91. package/assets/batch-image-generation-BcGzhZc6.js +6 -0
  92. package/assets/batch-image-generation-BePygpHd.css +1 -0
  93. package/assets/blockDiagram-38ab4fdb-7dWD8NFK.js +118 -0
  94. package/assets/blockDiagram-38ab4fdb-CQhYv8hA.js +118 -0
  95. package/assets/brainfuck-C4LP7Hcl.js +1 -0
  96. package/assets/browser-Dlc7rtso.js +1 -0
  97. package/assets/c4Diagram-3d4e48cf-DcDSmMC1.js +10 -0
  98. package/assets/c4Diagram-3d4e48cf-YiNiIQMx.js +10 -0
  99. package/assets/channel-CbiJkWzq.js +1 -0
  100. package/assets/channel-CmPwOS9o.js +1 -0
  101. package/assets/character-Bo9jcTNu.css +1 -0
  102. package/assets/classDiagram-70f12bd4--vcKyE3X.js +2 -0
  103. package/assets/classDiagram-70f12bd4-uRbi4Ob8.js +2 -0
  104. package/assets/classDiagram-v2-f2320105-CJVRZ6AN.js +2 -0
  105. package/assets/classDiagram-v2-f2320105-vzjVMHkr.js +2 -0
  106. package/assets/clike-B9uivgTg.js +1 -0
  107. package/assets/clipper-DOGfacWv.js +1 -0
  108. package/assets/clojure-BMjYHr_A.js +1 -0
  109. package/assets/clone-D79TnM4U.js +1 -0
  110. package/assets/cmake-BQqOBYOt.js +1 -0
  111. package/assets/cobol-CWcv1MsR.js +1 -0
  112. package/assets/coffeescript-S37ZYGWr.js +1 -0
  113. package/assets/commonlisp-DBKNyK5s.js +1 -0
  114. package/assets/createText-2e5e7dd3-BwZkEiuo.js +8 -0
  115. package/assets/createText-2e5e7dd3-Caeqt6QH.js +5 -0
  116. package/assets/crystal-SjHAIU92.js +1 -0
  117. package/assets/css-BnMrqG3P.js +1 -0
  118. package/assets/cypher-C_CwsFkJ.js +1 -0
  119. package/assets/d-pRatUO7H.js +1 -0
  120. package/assets/diff-DbItnlRl.js +1 -0
  121. package/assets/dockerfile-BKs6k2Af.js +1 -0
  122. package/assets/dtd-DF_7sFjM.js +1 -0
  123. package/assets/dylan-DwRh75JA.js +1 -0
  124. package/assets/ebnf-CDyGwa7X.js +1 -0
  125. package/assets/ecl-Cabwm37j.js +1 -0
  126. package/assets/edges-e0da2a9e-C0phcDTf.js +4 -0
  127. package/assets/edges-e0da2a9e-izyAbn2P.js +4 -0
  128. package/assets/eiffel-CnydiIhH.js +1 -0
  129. package/assets/elm-vLlmbW-K.js +1 -0
  130. package/assets/erDiagram-9861fffd-2xZLFO3_.js +51 -0
  131. package/assets/erDiagram-9861fffd-CbdcBVpG.js +51 -0
  132. package/assets/erlang-BNw1qcRV.js +1 -0
  133. package/assets/external-skills-BcV6ATYi.js +1 -0
  134. package/assets/factor-kuTfRLto.js +1 -0
  135. package/assets/fcl-Kvtd6kyn.js +1 -0
  136. package/assets/flowDb-956e92f1-CKDRVial.js +10 -0
  137. package/assets/flowDb-956e92f1-X_4p-qaU.js +10 -0
  138. package/assets/flowDiagram-66a62f08-CujQt6CJ.js +4 -0
  139. package/assets/flowDiagram-66a62f08-DBi4rRPf.js +4 -0
  140. package/assets/flowDiagram-v2-96b9c2cf-BLkw2ciq.js +1 -0
  141. package/assets/flowDiagram-v2-96b9c2cf-DVKQK2hY.js +1 -0
  142. package/assets/flowchart-elk-definition-4a651766-Uf06y1Ck.js +139 -0
  143. package/assets/flowchart-elk-definition-4a651766-wpAztAJn.js +139 -0
  144. package/assets/forth-Ffai-XNe.js +1 -0
  145. package/assets/fortran-DYz_wnZ1.js +1 -0
  146. package/assets/ganttDiagram-c361ad54-B3JxRUoo.js +257 -0
  147. package/assets/ganttDiagram-c361ad54-CIb_MFVi.js +257 -0
  148. package/assets/gas-Bneqetm1.js +1 -0
  149. package/assets/gherkin-heZmZLOM.js +1 -0
  150. package/assets/gitGraphDiagram-72cf32ee-PuJBoZww.js +70 -0
  151. package/assets/gitGraphDiagram-72cf32ee-i6oLazGK.js +70 -0
  152. package/assets/graph-CbDG5PTO.js +1 -0
  153. package/assets/graph-DUQ4GGpV.js +1 -0
  154. package/assets/groovy-D9Dt4D0W.js +1 -0
  155. package/assets/haskell-Cw1EW3IL.js +1 -0
  156. package/assets/haxe-H-WmDvRZ.js +1 -0
  157. package/assets/http-DBlCnlav.js +1 -0
  158. package/assets/idl-BEugSyMb.js +1 -0
  159. package/assets/index-04BPVAKr.js +1 -0
  160. package/assets/index-3862675e-CLvnWYyN.js +1 -0
  161. package/assets/index-3862675e-CxQdmW6r.js +1 -0
  162. package/assets/index-3K3oLjal.js +1 -0
  163. package/assets/index-Ayt_kr_j.js +1 -0
  164. package/assets/index-B0aeak-l.js +1 -0
  165. package/assets/index-BAeTUD9a.js +1 -0
  166. package/assets/index-BECtRsXJ.js +6 -0
  167. package/assets/index-BScFd-2h.js +4 -0
  168. package/assets/index-BUB5I7zd.js +1 -0
  169. package/assets/index-BWokxWXg.js +1 -0
  170. package/assets/index-BYAyLEaG.js +1 -0
  171. package/assets/index-BZS4gNhO.js +7 -0
  172. package/assets/index-Bc75bQXQ.js +2 -0
  173. package/assets/index-BjxNPKa3.js +1 -0
  174. package/assets/index-BkvYpt-1.js +1 -0
  175. package/assets/index-Bnb0fjWR.js +1 -0
  176. package/assets/index-CGq-gcht.js +12 -0
  177. package/assets/index-CJ7peDFP.css +1 -0
  178. package/assets/index-CJCAjGj3.js +2 -0
  179. package/assets/index-CdYUDSvm.js +1 -0
  180. package/assets/index-CxEkGLrr.js +686 -0
  181. package/assets/index-DHQdBbnC.js +3 -0
  182. package/assets/index-DYdelMnT.js +1 -0
  183. package/assets/index-Dk5t_-56.js +99 -0
  184. package/assets/index-DlZybecc.js +1 -0
  185. package/assets/index-DmWG413C.js +1 -0
  186. package/assets/index-DzlsyVkU.js +1 -0
  187. package/assets/index-EYhL1Kgt.js +1 -0
  188. package/assets/index-c441JIOr.js +13 -0
  189. package/assets/index-fqJaUvT1.js +1 -0
  190. package/assets/index-hGrN05cs.js +1 -0
  191. package/assets/index-zV_AIntM.js +2 -0
  192. package/assets/infoDiagram-f8f76790-BYO9kBqO.js +7 -0
  193. package/assets/infoDiagram-f8f76790-D_TYtc3S.js +7 -0
  194. package/assets/init-A0kIFD9x.js +1 -0
  195. package/assets/init-Gi6I4Gst.js +1 -0
  196. package/assets/javascript-iXu5QeM3.js +1 -0
  197. package/assets/journeyDiagram-49397b02-DWfiJTLK.js +139 -0
  198. package/assets/journeyDiagram-49397b02-Dv5EEshV.js +139 -0
  199. package/assets/julia-DuME0IfC.js +1 -0
  200. package/assets/katex-Cu_Erd72.js +261 -0
  201. package/assets/layout-Bc2296BZ.js +1 -0
  202. package/assets/layout-Dm28IvOg.js +1 -0
  203. package/assets/line-C3mpslQb.js +1 -0
  204. package/assets/line-DTTPRZLU.js +1 -0
  205. package/assets/linear-YwuGF1HZ.js +1 -0
  206. package/assets/linear-g8AgbOem.js +1 -0
  207. package/assets/livescript-BwQOo05w.js +1 -0
  208. package/assets/lua-BgMRiT3U.js +1 -0
  209. package/assets/main-DlDiDA_U.css +9 -0
  210. package/assets/main-sSl0uAQQ.js +564 -0
  211. package/assets/mathematica-DTrFuWx2.js +1 -0
  212. package/assets/mbox-CNhZ1qSd.js +1 -0
  213. package/assets/mermaid.core-GIkiJOrg.js +91 -0
  214. package/assets/mindmap-definition-fc14e90a-Chuh4Ixc.js +425 -0
  215. package/assets/mindmap-definition-fc14e90a-D_ZKvIES.js +425 -0
  216. package/assets/mirc-CjQqDB4T.js +1 -0
  217. package/assets/mllike-CXdrOF99.js +1 -0
  218. package/assets/modelica-Dc1JOy9r.js +1 -0
  219. package/assets/mscgen-BA5vi2Kp.js +1 -0
  220. package/assets/mumps-BT43cFF4.js +1 -0
  221. package/assets/nginx-DdIZxoE0.js +1 -0
  222. package/assets/nsis-LdVXkNf5.js +1 -0
  223. package/assets/ntriples-BfvgReVJ.js +1 -0
  224. package/assets/octave-Ck1zUtKM.js +1 -0
  225. package/assets/ordinal-BRr1uYdk.js +1 -0
  226. package/assets/ordinal-Cboi1Yqb.js +1 -0
  227. package/assets/oz-BzwKVEFT.js +1 -0
  228. package/assets/pascal--L3eBynH.js +1 -0
  229. package/assets/path-CY0bYimO.js +1 -0
  230. package/assets/path-CbwjOpE9.js +1 -0
  231. package/assets/perl-CdXCOZ3F.js +1 -0
  232. package/assets/photo-wall-splitter-CY0T_wNE.js +1 -0
  233. package/assets/pieDiagram-8a3498a8-DRsICc_f.js +35 -0
  234. package/assets/pieDiagram-8a3498a8-Dah8ahbr.js +35 -0
  235. package/assets/pig-CevX1Tat.js +1 -0
  236. package/assets/powershell-CFHJl5sT.js +1 -0
  237. package/assets/properties-C78fOPTZ.js +1 -0
  238. package/assets/protobuf-ChK-085T.js +1 -0
  239. package/assets/pug-DeIclll2.js +1 -0
  240. package/assets/puppet-DMA9R1ak.js +1 -0
  241. package/assets/python-BuPzkPfP.js +1 -0
  242. package/assets/q-pXgVlZs6.js +1 -0
  243. package/assets/quadrantDiagram-120e2f19-Fh6InPVY.js +7 -0
  244. package/assets/quadrantDiagram-120e2f19-gL-_zV58.js +7 -0
  245. package/assets/r-B6wPVr8A.js +1 -0
  246. package/assets/requirementDiagram-deff3bca-CNSkJJCh.js +52 -0
  247. package/assets/requirementDiagram-deff3bca-CfDffyTL.js +52 -0
  248. package/assets/rpm-CTu-6PCP.js +1 -0
  249. package/assets/ruby-B2Rjki9n.js +1 -0
  250. package/assets/sankeyDiagram-04a897e0-Bk-KjkRU.js +8 -0
  251. package/assets/sankeyDiagram-04a897e0-JvhHugQc.js +8 -0
  252. package/assets/sas-B4kiWyti.js +1 -0
  253. package/assets/scheme-C41bIUwD.js +1 -0
  254. package/assets/sequenceDiagram-704730f1-DtYYZkJD.js +122 -0
  255. package/assets/sequenceDiagram-704730f1-Hcr6n9p8.js +122 -0
  256. package/assets/shell-CjFT_Tl9.js +1 -0
  257. package/assets/sieve-C3Gn_uJK.js +1 -0
  258. package/assets/simple-mode-GW_nhZxv.js +1 -0
  259. package/assets/smalltalk-CnHTOXQT.js +1 -0
  260. package/assets/solr-DehyRSwq.js +1 -0
  261. package/assets/sparql-DkYu6x3z.js +1 -0
  262. package/assets/spreadsheet-BCZA_wO0.js +1 -0
  263. package/assets/sql-D0XecflT.js +1 -0
  264. package/assets/stateDiagram-587899a1-BBe_EhAD.js +1 -0
  265. package/assets/stateDiagram-587899a1-DqdI8yJY.js +1 -0
  266. package/assets/stateDiagram-v2-d93cdb3a-BFy9jG1p.js +1 -0
  267. package/assets/stateDiagram-v2-d93cdb3a-CR8nQq3k.js +1 -0
  268. package/assets/stex-C3f8Ysf7.js +1 -0
  269. package/assets/styles-6aaf32cf-B3jetBAL.js +207 -0
  270. package/assets/styles-6aaf32cf-CtTk65AO.js +207 -0
  271. package/assets/styles-9a916d00-BzAmphe7.js +160 -0
  272. package/assets/styles-9a916d00-CC9GaYxg.js +160 -0
  273. package/assets/styles-c10674c1-CNAwL7Ic.js +116 -0
  274. package/assets/styles-c10674c1-Db2Kd6RJ.js +116 -0
  275. package/assets/stylus-B533Al4x.js +1 -0
  276. package/assets/svgDrawCommon-08f97a94-C5qlB1eZ.js +1 -0
  277. package/assets/svgDrawCommon-08f97a94-JdKl-BWQ.js +1 -0
  278. package/assets/swift-BzpIVaGY.js +1 -0
  279. package/assets/tcl-DVfN8rqt.js +1 -0
  280. package/assets/textile-CnDTJFAw.js +1 -0
  281. package/assets/tiddlywiki-DO-Gjzrf.js +1 -0
  282. package/assets/tiki-DGYXhP31.js +1 -0
  283. package/assets/timeline-definition-85554ec2-DOdYNzv7.js +61 -0
  284. package/assets/timeline-definition-85554ec2-o-R8VXA5.js +61 -0
  285. package/assets/toml-Bm5Em-hy.js +1 -0
  286. package/assets/tool-windows-Cuh0TRgJ.css +1 -0
  287. package/assets/tool-windows-DWUG3k_L.js +2846 -0
  288. package/assets/troff-wAsdV37c.js +1 -0
  289. package/assets/ttcn-CfJYG6tj.js +1 -0
  290. package/assets/ttcn-cfg-B9xdYoR4.js +1 -0
  291. package/assets/ttd-dialog-BQiy0hwR.js +99 -0
  292. package/assets/ttd-dialog-BlUvpMr5.css +1 -0
  293. package/assets/turtle-B1tBg_DP.js +1 -0
  294. package/assets/useCharacters-BJLEgDAP.css +1 -0
  295. package/assets/useCharacters-BxKzeyv4.js +6 -0
  296. package/assets/vb-CmGdzxic.js +1 -0
  297. package/assets/vbscript-BuJXcnF6.js +1 -0
  298. package/assets/velocity-D8B20fx6.js +1 -0
  299. package/assets/verilog-C6RDOZhf.js +1 -0
  300. package/assets/version-update-prompt-HA-CqLZW.js +1 -0
  301. package/assets/version-update-prompt-P9Rd5ve2.css +1 -0
  302. package/assets/vhdl-lSbBsy5d.js +1 -0
  303. package/assets/video-recovery-service-C0PZsfFC.js +1 -0
  304. package/assets/web-vitals-DcvjKPr-.js +1 -0
  305. package/assets/webidl-ZXfAyPTL.js +1 -0
  306. package/assets/winbox.bundle.min-CoRPjCs5.js +1 -0
  307. package/assets/workflow-generation-utils-DspPdLxa.js +3 -0
  308. package/assets/xlsx-CkFp8p6R.js +105 -0
  309. package/assets/xquery-DzFWVndE.js +1 -0
  310. package/assets/xychartDiagram-e933f94c-D13oeSTj.js +7 -0
  311. package/assets/xychartDiagram-e933f94c-DwikDAhJ.js +7 -0
  312. package/assets/yacas-BJ4BC0dw.js +1 -0
  313. package/assets/z80-Hz9HOZM7.js +1 -0
  314. package/idle-prefetch-manifest.json +18 -4
  315. package/package.json +1 -1
  316. package/precache-manifest.json +1015 -3
  317. package/sw.js +1 -1
  318. package/version.json +2 -2
@@ -0,0 +1,2 @@
1
+ var Yt=Object.defineProperty;var Gt=(e,n,t)=>n in e?Yt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var Re=(e,n,t)=>Gt(e,typeof n!="symbol"?n+"":n,t);import{d as $e,c as Xt}from"./browser-Dlc7rtso.js";import{ab as Zt}from"./tool-windows-DWUG3k_L.js";class Jt extends Error{constructor(t,r,a,i,s){super(t);Re(this,"name","Assertion");Re(this,"code","ERR_ASSERTION");Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.actual=r,this.expected=a,this.generated=s,this.operator=i}}function m(e,n){Kt(!!e,!1,!0,"ok","Expected value to be truthy",n)}function Kt(e,n,t,r,a,i){if(!e)throw i instanceof Error?i:new Jt(i||a,n,t,r,!i)}const $t={};function en(e,n){const t=$t,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,a=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Et(e,r,a)}function Et(e,n,t){if(tn(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return st(e.children,n,t)}return Array.isArray(e)?st(e,n,t):""}function st(e,n,t){const r=[];let a=-1;for(;++a<e.length;)r[a]=Et(e[a],n,t);return r.join("")}function tn(e){return!!(e&&typeof e=="object")}const o={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,ht:9,lf:10,vt:11,cr:13,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,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,uppercaseH:72,uppercaseW:87,uppercaseX:88,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseH:104,lowercaseW:119,lowercaseX:120,leftCurlyBrace:123,verticalBar:124,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533},T={attentionSideAfter:2,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",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},u={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",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"},fe={ht:" ",lf:`
2
+ `,cr:"\r",space:" ",replacementCharacter:"�"};function se(e,n,t,r){const a=e.length;let i=0,s;if(n<0?n=-n>a?0:a+n:n=n>a?a:n,t=t>0?t:0,r.length<T.v8MaxSafeChunkSize)s=Array.from(r),s.unshift(n,t),e.splice(...s);else for(t&&e.splice(n,t);i<r.length;)s=r.slice(i,i+T.v8MaxSafeChunkSize),s.unshift(n,0),e.splice(...s),i+=T.v8MaxSafeChunkSize,n+=T.v8MaxSafeChunkSize}function re(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const lt={}.hasOwnProperty;function nn(e){const n={};let t=-1;for(;++t<e.length;)rn(n,e[t]);return n}function rn(e,n){let t;for(t in n){const a=(lt.call(e,t)?e[t]:void 0)||(e[t]={}),i=n[t];let s;if(i)for(s in i){lt.call(a,s)||(a[s]=[]);const l=i[s];an(a[s],Array.isArray(l)?l:l?[l]:[])}}}function an(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);se(e,0,0,r)}function Ct(e,n){const t=Number.parseInt(e,n);return t<o.ht||t===o.vt||t>o.cr&&t<o.space||t>o.tilde&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?fe.replacementCharacter:String.fromCodePoint(t)}function we(e){return e.replace(/[\t\n\r ]+/g,fe.space).replace(/^ | $/g,"").toLowerCase().toUpperCase()}const oe=me(/[A-Za-z]/),ie=me(/[\dA-Za-z]/),un=me(/[#-'*+\--9=?A-Z^-~]/);function Ye(e){return e!==null&&(e<o.space||e===o.del)}const Ge=me(/\d/),on=me(/[\dA-Fa-f]/),sn=me(/[!-/:-@[-`{-~]/);function E(e){return e!==null&&e<o.horizontalTab}function Z(e){return e!==null&&(e<o.nul||e===o.space)}function _(e){return e===o.horizontalTab||e===o.virtualSpace||e===o.space}const ln=me(new RegExp("\\p{P}|\\p{S}","u")),cn=me(/\s/);function me(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function H(e,n,t,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(g){return _(g)?(e.enter(t),l(g)):n(g)}function l(g){return _(g)&&i++<a?(e.consume(g),l):(e.exit(t),n(g))}}const hn={tokenize:pn};function pn(e){const n=e.attempt(this.parser.constructs.contentInitial,r,a);let t;return n;function r(l){if(m(l===o.eof||E(l),"expected eol or eof"),l===o.eof){e.consume(l);return}return e.enter(u.lineEnding),e.consume(l),e.exit(u.lineEnding),H(e,n,u.linePrefix)}function a(l){return m(l!==o.eof&&!E(l),"expected anything other than a line ending or EOF"),e.enter(u.paragraph),i(l)}function i(l){const g=e.enter(u.chunkText,{contentType:T.contentTypeText,previous:t});return t&&(t.next=g),t=g,s(l)}function s(l){if(l===o.eof){e.exit(u.chunkText),e.exit(u.paragraph),e.consume(l);return}return E(l)?(e.consume(l),e.exit(u.chunkText),i):(e.consume(l),s)}}const fn={tokenize:dn},ct={tokenize:mn};function dn(e){const n=this,t=[];let r=0,a,i,s;return l;function l(C){if(r<t.length){const V=t[r];return n.containerState=V[1],m(V[0].continuation,"expected `continuation` to be defined on container construct"),e.attempt(V[0].continuation,g,h)(C)}return h(C)}function g(C){if(m(n.containerState,"expected `containerState` to be defined after continuation"),r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,a&&D();const V=n.events.length;let Q=V,S;for(;Q--;)if(n.events[Q][0]==="exit"&&n.events[Q][1].type===u.chunkFlow){S=n.events[Q][1].end;break}m(S,"could not find previous flow chunk"),w(r);let N=V;for(;N<n.events.length;)n.events[N][1].end={...S},N++;return se(n.events,Q+1,0,n.events.slice(V)),n.events.length=N,h(C)}return l(C)}function h(C){if(r===t.length){if(!a)return x(C);if(a.currentConstruct&&a.currentConstruct.concrete)return B(C);n.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ct,c,k)(C)}function c(C){return a&&D(),w(r),x(C)}function k(C){return n.parser.lazy[n.now().line]=r!==t.length,s=n.now().offset,B(C)}function x(C){return n.containerState={},e.attempt(ct,p,B)(C)}function p(C){return m(n.currentConstruct,"expected `currentConstruct` to be defined on tokenizer"),m(n.containerState,"expected `containerState` to be defined on tokenizer"),r++,t.push([n.currentConstruct,n.containerState]),x(C)}function B(C){if(C===o.eof){a&&D(),w(0),e.consume(C);return}return a=a||n.parser.flow(n.now()),e.enter(u.chunkFlow,{_tokenizer:a,contentType:T.contentTypeFlow,previous:i}),F(C)}function F(C){if(C===o.eof){L(e.exit(u.chunkFlow),!0),w(0),e.consume(C);return}return E(C)?(e.consume(C),L(e.exit(u.chunkFlow)),r=0,n.interrupt=void 0,l):(e.consume(C),F)}function L(C,V){m(a,"expected `childFlow` to be defined when continuing");const Q=n.sliceStream(C);if(V&&Q.push(null),C.previous=i,i&&(i.next=C),i=C,a.defineSkip(C.start),a.write(Q),n.parser.lazy[C.start.line]){let S=a.events.length;for(;S--;)if(a.events[S][1].start.offset<s&&(!a.events[S][1].end||a.events[S][1].end.offset>s))return;const N=n.events.length;let v=N,q,j;for(;v--;)if(n.events[v][0]==="exit"&&n.events[v][1].type===u.chunkFlow){if(q){j=n.events[v][1].end;break}q=!0}for(m(j,"could not find previous flow chunk"),w(r),S=N;S<n.events.length;)n.events[S][1].end={...j},S++;se(n.events,v+1,0,n.events.slice(N)),n.events.length=S}}function w(C){let V=t.length;for(;V-- >C;){const Q=t[V];n.containerState=Q[1],m(Q[0].exit,"expected `exit` to be defined on container construct"),Q[0].exit.call(n,e)}t.length=C}function D(){m(n.containerState,"expected `containerState` to be defined when closing flow"),m(a,"expected `childFlow` to be defined when closing it"),a.write([o.eof]),i=void 0,a=void 0,n.containerState._closeFlow=void 0}}function mn(e,n,t){return m(this.parser.constructs.disable.null,"expected `disable.null` to be populated"),H(e,e.attempt(this.parser.constructs.document,n,t),u.linePrefix,this.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)}function ht(e){if(e===o.eof||Z(e)||cn(e))return T.characterGroupWhitespace;if(ln(e))return T.characterGroupPunctuation}function et(e,n,t){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(n=i(n,t),r.push(i))}return n}const Xe={name:"attention",resolveAll:gn,tokenize:xn};function gn(e,n){let t=-1,r,a,i,s,l,g,h,c;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;g=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const k={...e[r][1].end},x={...e[t][1].start};pt(k,-g),pt(x,g),s={type:g>1?u.strongSequence:u.emphasisSequence,start:k,end:{...e[r][1].end}},l={type:g>1?u.strongSequence:u.emphasisSequence,start:{...e[t][1].start},end:x},i={type:g>1?u.strongText:u.emphasisText,start:{...e[r][1].end},end:{...e[t][1].start}},a={type:g>1?u.strong:u.emphasis,start:{...s.start},end:{...l.end}},e[r][1].end={...s.start},e[t][1].start={...l.end},h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=re(h,[["enter",e[r][1],n],["exit",e[r][1],n]])),h=re(h,[["enter",a,n],["enter",s,n],["exit",s,n],["enter",i,n]]),m(n.parser.constructs.insideSpan.null,"expected `insideSpan` to be populated"),h=re(h,et(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),h=re(h,[["exit",i,n],["enter",l,n],["exit",l,n],["exit",a,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,h=re(h,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,se(e,r-1,t-r+3,h),t=r+h.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function xn(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ht(r);let i;return s;function s(g){return m(g===o.asterisk||g===o.underscore,"expected asterisk or underscore"),i=g,e.enter("attentionSequence"),l(g)}function l(g){if(g===i)return e.consume(g),l;const h=e.exit("attentionSequence"),c=ht(g);m(t,"expected `attentionMarkers` to be populated");const k=!c||c===T.characterGroupPunctuation&&a||t.includes(g),x=!a||a===T.characterGroupPunctuation&&c||t.includes(r);return h._open=!!(i===o.asterisk?k:k&&(a||!x)),h._close=!!(i===o.asterisk?x:x&&(c||!k)),n(g)}}function pt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const kn={name:"autolink",tokenize:bn};function bn(e,n,t){let r=0;return a;function a(p){return m(p===o.lessThan,"expected `<`"),e.enter(u.autolink),e.enter(u.autolinkMarker),e.consume(p),e.exit(u.autolinkMarker),e.enter(u.autolinkProtocol),i}function i(p){return oe(p)?(e.consume(p),s):p===o.atSign?t(p):h(p)}function s(p){return p===o.plusSign||p===o.dash||p===o.dot||ie(p)?(r=1,l(p)):h(p)}function l(p){return p===o.colon?(e.consume(p),r=0,g):(p===o.plusSign||p===o.dash||p===o.dot||ie(p))&&r++<T.autolinkSchemeSizeMax?(e.consume(p),l):(r=0,h(p))}function g(p){return p===o.greaterThan?(e.exit(u.autolinkProtocol),e.enter(u.autolinkMarker),e.consume(p),e.exit(u.autolinkMarker),e.exit(u.autolink),n):p===o.eof||p===o.space||p===o.lessThan||Ye(p)?t(p):(e.consume(p),g)}function h(p){return p===o.atSign?(e.consume(p),c):un(p)?(e.consume(p),h):t(p)}function c(p){return ie(p)?k(p):t(p)}function k(p){return p===o.dot?(e.consume(p),r=0,c):p===o.greaterThan?(e.exit(u.autolinkProtocol).type=u.autolinkEmail,e.enter(u.autolinkMarker),e.consume(p),e.exit(u.autolinkMarker),e.exit(u.autolink),n):x(p)}function x(p){if((p===o.dash||ie(p))&&r++<T.autolinkDomainSizeMax){const B=p===o.dash?x:k;return e.consume(p),B}return t(p)}}const _e={partial:!0,tokenize:yn};function yn(e,n,t){return r;function r(i){return _(i)?H(e,a,u.linePrefix)(i):a(i)}function a(i){return i===o.eof||E(i)?n(i):t(i)}}const Ft={continuation:{tokenize:wn},exit:Tn,name:"blockQuote",tokenize:Sn};function Sn(e,n,t){const r=this;return a;function a(s){if(s===o.greaterThan){const l=r.containerState;return m(l,"expected `containerState` to be defined in container"),l.open||(e.enter(u.blockQuote,{_container:!0}),l.open=!0),e.enter(u.blockQuotePrefix),e.enter(u.blockQuoteMarker),e.consume(s),e.exit(u.blockQuoteMarker),i}return t(s)}function i(s){return _(s)?(e.enter(u.blockQuotePrefixWhitespace),e.consume(s),e.exit(u.blockQuotePrefixWhitespace),e.exit(u.blockQuotePrefix),n):(e.exit(u.blockQuotePrefix),n(s))}}function wn(e,n,t){const r=this;return a;function a(s){return _(s)?(m(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),H(e,i,u.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(s)):i(s)}function i(s){return e.attempt(Ft,n,t)(s)}}function Tn(e){e.exit(u.blockQuote)}const At={name:"characterEscape",tokenize:In};function In(e,n,t){return r;function r(i){return m(i===o.backslash,"expected `\\`"),e.enter(u.characterEscape),e.enter(u.escapeMarker),e.consume(i),e.exit(u.escapeMarker),a}function a(i){return sn(i)?(e.enter(u.characterEscapeValue),e.consume(i),e.exit(u.characterEscapeValue),e.exit(u.characterEscape),n):t(i)}}const Mt={name:"characterReference",tokenize:zn};function zn(e,n,t){const r=this;let a=0,i,s;return l;function l(k){return m(k===o.ampersand,"expected `&`"),e.enter(u.characterReference),e.enter(u.characterReferenceMarker),e.consume(k),e.exit(u.characterReferenceMarker),g}function g(k){return k===o.numberSign?(e.enter(u.characterReferenceMarkerNumeric),e.consume(k),e.exit(u.characterReferenceMarkerNumeric),h):(e.enter(u.characterReferenceValue),i=T.characterReferenceNamedSizeMax,s=ie,c(k))}function h(k){return k===o.uppercaseX||k===o.lowercaseX?(e.enter(u.characterReferenceMarkerHexadecimal),e.consume(k),e.exit(u.characterReferenceMarkerHexadecimal),e.enter(u.characterReferenceValue),i=T.characterReferenceHexadecimalSizeMax,s=on,c):(e.enter(u.characterReferenceValue),i=T.characterReferenceDecimalSizeMax,s=Ge,c(k))}function c(k){if(k===o.semicolon&&a){const x=e.exit(u.characterReferenceValue);return s===ie&&!$e(r.sliceSerialize(x))?t(k):(e.enter(u.characterReferenceMarker),e.consume(k),e.exit(u.characterReferenceMarker),e.exit(u.characterReference),n)}return s(k)&&a++<i?(e.consume(k),c):t(k)}}const ft={partial:!0,tokenize:Cn},dt={concrete:!0,name:"codeFenced",tokenize:En};function En(e,n,t){const r=this,a={partial:!0,tokenize:Q};let i=0,s=0,l;return g;function g(S){return h(S)}function h(S){m(S===o.graveAccent||S===o.tilde,"expected `` ` `` or `~`");const N=r.events[r.events.length-1];return i=N&&N[1].type===u.linePrefix?N[2].sliceSerialize(N[1],!0).length:0,l=S,e.enter(u.codeFenced),e.enter(u.codeFencedFence),e.enter(u.codeFencedFenceSequence),c(S)}function c(S){return S===l?(s++,e.consume(S),c):s<T.codeFencedSequenceSizeMin?t(S):(e.exit(u.codeFencedFenceSequence),_(S)?H(e,k,u.whitespace)(S):k(S))}function k(S){return S===o.eof||E(S)?(e.exit(u.codeFencedFence),r.interrupt?n(S):e.check(ft,F,V)(S)):(e.enter(u.codeFencedFenceInfo),e.enter(u.chunkString,{contentType:T.contentTypeString}),x(S))}function x(S){return S===o.eof||E(S)?(e.exit(u.chunkString),e.exit(u.codeFencedFenceInfo),k(S)):_(S)?(e.exit(u.chunkString),e.exit(u.codeFencedFenceInfo),H(e,p,u.whitespace)(S)):S===o.graveAccent&&S===l?t(S):(e.consume(S),x)}function p(S){return S===o.eof||E(S)?k(S):(e.enter(u.codeFencedFenceMeta),e.enter(u.chunkString,{contentType:T.contentTypeString}),B(S))}function B(S){return S===o.eof||E(S)?(e.exit(u.chunkString),e.exit(u.codeFencedFenceMeta),k(S)):S===o.graveAccent&&S===l?t(S):(e.consume(S),B)}function F(S){return m(E(S),"expected eol"),e.attempt(a,V,L)(S)}function L(S){return m(E(S),"expected eol"),e.enter(u.lineEnding),e.consume(S),e.exit(u.lineEnding),w}function w(S){return i>0&&_(S)?H(e,D,u.linePrefix,i+1)(S):D(S)}function D(S){return S===o.eof||E(S)?e.check(ft,F,V)(S):(e.enter(u.codeFlowValue),C(S))}function C(S){return S===o.eof||E(S)?(e.exit(u.codeFlowValue),D(S)):(e.consume(S),C)}function V(S){return e.exit(u.codeFenced),n(S)}function Q(S,N,v){let q=0;return j;function j(M){return m(E(M),"expected eol"),S.enter(u.lineEnding),S.consume(M),S.exit(u.lineEnding),ee}function ee(M){return m(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),S.enter(u.codeFencedFence),_(M)?H(S,O,u.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(M):O(M)}function O(M){return M===l?(S.enter(u.codeFencedFenceSequence),I(M)):v(M)}function I(M){return M===l?(q++,S.consume(M),I):q>=s?(S.exit(u.codeFencedFenceSequence),_(M)?H(S,A,u.whitespace)(M):A(M)):v(M)}function A(M){return M===o.eof||E(M)?(S.exit(u.codeFencedFence),N(M)):v(M)}}}function Cn(e,n,t){const r=this;return a;function a(s){return s===o.eof?t(s):(m(E(s),"expected eol"),e.enter(u.lineEnding),e.consume(s),e.exit(u.lineEnding),i)}function i(s){return r.parser.lazy[r.now().line]?t(s):n(s)}}const De={name:"codeIndented",tokenize:An},Fn={partial:!0,tokenize:Mn};function An(e,n,t){const r=this;return a;function a(h){return m(_(h)),e.enter(u.codeIndented),H(e,i,u.linePrefix,T.tabSize+1)(h)}function i(h){const c=r.events[r.events.length-1];return c&&c[1].type===u.linePrefix&&c[2].sliceSerialize(c[1],!0).length>=T.tabSize?s(h):t(h)}function s(h){return h===o.eof?g(h):E(h)?e.attempt(Fn,s,g)(h):(e.enter(u.codeFlowValue),l(h))}function l(h){return h===o.eof||E(h)?(e.exit(u.codeFlowValue),s(h)):(e.consume(h),l)}function g(h){return e.exit(u.codeIndented),n(h)}}function Mn(e,n,t){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?t(s):E(s)?(e.enter(u.lineEnding),e.consume(s),e.exit(u.lineEnding),a):H(e,i,u.linePrefix,T.tabSize+1)(s)}function i(s){const l=r.events[r.events.length-1];return l&&l[1].type===u.linePrefix&&l[2].sliceSerialize(l[1],!0).length>=T.tabSize?n(s):E(s)?a(s):t(s)}}const Bn={name:"codeText",previous:Bt,resolve:Pn,tokenize:_n};function Pn(e){let n=e.length-4,t=3,r,a;if((e[t][1].type===u.lineEnding||e[t][1].type==="space")&&(e[n][1].type===u.lineEnding||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type===u.codeTextData){e[t][1].type=u.codeTextPadding,e[n][1].type=u.codeTextPadding,t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)a===void 0?r!==n&&e[r][1].type!==u.lineEnding&&(a=r):(r===n||e[r][1].type===u.lineEnding)&&(e[a][1].type=u.codeTextData,r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),n-=r-a-2,r=a+2),a=void 0);return e}function Bt(e){return e!==o.graveAccent||this.events[this.events.length-1][1].type===u.characterEscape}function _n(e,n,t){const r=this;let a=0,i,s;return l;function l(x){return m(x===o.graveAccent,"expected `` ` ``"),m(Bt.call(r,r.previous),"expected correct previous"),e.enter(u.codeText),e.enter(u.codeTextSequence),g(x)}function g(x){return x===o.graveAccent?(e.consume(x),a++,g):(e.exit(u.codeTextSequence),h(x))}function h(x){return x===o.eof?t(x):x===o.space?(e.enter("space"),e.consume(x),e.exit("space"),h):x===o.graveAccent?(s=e.enter(u.codeTextSequence),i=0,k(x)):E(x)?(e.enter(u.lineEnding),e.consume(x),e.exit(u.lineEnding),h):(e.enter(u.codeTextData),c(x))}function c(x){return x===o.eof||x===o.space||x===o.graveAccent||E(x)?(e.exit(u.codeTextData),h(x)):(e.consume(x),c)}function k(x){return x===o.graveAccent?(e.consume(x),i++,k):i===a?(e.exit(u.codeTextSequence),e.exit(u.codeText),n(x)):(s.type=u.codeTextData,c(x))}}class Ln{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const a=t||0;this.setCursor(Math.trunc(n));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Ee(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ee(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ee(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);Ee(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ee(this.left,t.reverse())}}}function Ee(e,n){let t=0;if(n.length<T.v8MaxSafeChunkSize)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+T.v8MaxSafeChunkSize)),t+=T.v8MaxSafeChunkSize}function Pt(e){const n={};let t=-1,r,a,i,s,l,g,h;const c=new Ln(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type===u.chunkFlow&&c.get(t-1)[1].type===u.listItemPrefix&&(m(r[1]._tokenizer,"expected `_tokenizer` on subtokens"),g=r[1]._tokenizer.events,i=0,i<g.length&&g[i][1].type===u.lineEndingBlank&&(i+=2),i<g.length&&g[i][1].type===u.content))for(;++i<g.length&&g[i][1].type!==u.content;)g[i][1].type===u.chunkText&&(g[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,qn(c,t)),t=n[t],h=!0);else if(r[1]._container){for(i=t,a=void 0;i--;)if(s=c.get(i),s[1].type===u.lineEnding||s[1].type===u.lineEndingBlank)s[0]==="enter"&&(a&&(c.get(a)[1].type=u.lineEndingBlank),s[1].type=u.lineEnding,a=i);else if(!(s[1].type===u.linePrefix||s[1].type===u.listItemIndent))break;a&&(r[1].end={...c.get(a)[1].start},l=c.slice(a,t),l.unshift(r),c.splice(a,t-a+1,l))}}return se(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!h}function qn(e,n){const t=e.get(n)[1],r=e.get(n)[2];let a=n-1;const i=[];m(t.contentType,"expected `contentType` on subtokens");let s=t._tokenizer;s||(s=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,g=[],h={};let c,k,x=-1,p=t,B=0,F=0;const L=[F];for(;p;){for(;e.get(++a)[1]!==p;);m(!k||p.previous===k,"expected previous to match"),m(!k||k.next===p,"expected next to match"),i.push(a),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(o.eof),k&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),k=p,p=p.next}for(p=t;++x<l.length;)l[x][0]==="exit"&&l[x-1][0]==="enter"&&l[x][1].type===l[x-1][1].type&&l[x][1].start.line!==l[x][1].end.line&&(m(p,"expected a current token"),F=x+1,L.push(F),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0,m(!p.next,"expected no next token")):L.pop(),x=L.length;x--;){const w=l.slice(L[x],L[x+1]),D=i.pop();m(D!==void 0,"expected a start position when splicing"),g.push([D,D+w.length-1]),e.splice(D,2,w)}for(g.reverse(),x=-1;++x<g.length;)h[B+g[x][0]]=B+g[x][1],B+=g[x][1]-g[x][0]-1;return h}const Rn={resolve:On,tokenize:Nn},Dn={partial:!0,tokenize:Hn};function On(e){return Pt(e),e}function Nn(e,n){let t;return r;function r(l){return m(l!==o.eof&&!E(l),"expected no eof or eol"),e.enter(u.content),t=e.enter(u.chunkContent,{contentType:T.contentTypeContent}),a(l)}function a(l){return l===o.eof?i(l):E(l)?e.check(Dn,s,i)(l):(e.consume(l),a)}function i(l){return e.exit(u.chunkContent),e.exit(u.content),n(l)}function s(l){return m(E(l),"expected eol"),e.consume(l),e.exit(u.chunkContent),m(t,"expected previous token"),t.next=e.enter(u.chunkContent,{contentType:T.contentTypeContent,previous:t}),t=t.next,a}}function Hn(e,n,t){const r=this;return a;function a(s){return m(E(s),"expected a line ending"),e.exit(u.chunkContent),e.enter(u.lineEnding),e.consume(s),e.exit(u.lineEnding),H(e,i,u.linePrefix)}function i(s){if(s===o.eof||E(s))return t(s);m(r.parser.constructs.disable.null,"expected `disable.null` to be populated");const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type===u.linePrefix&&l[2].sliceSerialize(l[1],!0).length>=T.tabSize?n(s):e.interrupt(r.parser.constructs.flow,t,n)(s)}}function _t(e,n,t,r,a,i,s,l,g){const h=g||Number.POSITIVE_INFINITY;let c=0;return k;function k(w){return w===o.lessThan?(e.enter(r),e.enter(a),e.enter(i),e.consume(w),e.exit(i),x):w===o.eof||w===o.space||w===o.rightParenthesis||Ye(w)?t(w):(e.enter(r),e.enter(s),e.enter(l),e.enter(u.chunkString,{contentType:T.contentTypeString}),F(w))}function x(w){return w===o.greaterThan?(e.enter(i),e.consume(w),e.exit(i),e.exit(a),e.exit(r),n):(e.enter(l),e.enter(u.chunkString,{contentType:T.contentTypeString}),p(w))}function p(w){return w===o.greaterThan?(e.exit(u.chunkString),e.exit(l),x(w)):w===o.eof||w===o.lessThan||E(w)?t(w):(e.consume(w),w===o.backslash?B:p)}function B(w){return w===o.lessThan||w===o.greaterThan||w===o.backslash?(e.consume(w),p):p(w)}function F(w){return!c&&(w===o.eof||w===o.rightParenthesis||Z(w))?(e.exit(u.chunkString),e.exit(l),e.exit(s),e.exit(r),n(w)):c<h&&w===o.leftParenthesis?(e.consume(w),c++,F):w===o.rightParenthesis?(e.consume(w),c--,F):w===o.eof||w===o.space||w===o.leftParenthesis||Ye(w)?t(w):(e.consume(w),w===o.backslash?L:F)}function L(w){return w===o.leftParenthesis||w===o.rightParenthesis||w===o.backslash?(e.consume(w),F):F(w)}}function Lt(e,n,t,r,a,i){const s=this;let l=0,g;return h;function h(p){return m(p===o.leftSquareBracket,"expected `[`"),e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return l>T.linkReferenceSizeMax||p===o.eof||p===o.leftSquareBracket||p===o.rightSquareBracket&&!g||p===o.caret&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?t(p):p===o.rightSquareBracket?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),n):E(p)?(e.enter(u.lineEnding),e.consume(p),e.exit(u.lineEnding),c):(e.enter(u.chunkString,{contentType:T.contentTypeString}),k(p))}function k(p){return p===o.eof||p===o.leftSquareBracket||p===o.rightSquareBracket||E(p)||l++>T.linkReferenceSizeMax?(e.exit(u.chunkString),c(p)):(e.consume(p),g||(g=!_(p)),p===o.backslash?x:k)}function x(p){return p===o.leftSquareBracket||p===o.backslash||p===o.rightSquareBracket?(e.consume(p),l++,k):k(p)}}function qt(e,n,t,r,a,i){let s;return l;function l(x){return x===o.quotationMark||x===o.apostrophe||x===o.leftParenthesis?(e.enter(r),e.enter(a),e.consume(x),e.exit(a),s=x===o.leftParenthesis?o.rightParenthesis:x,g):t(x)}function g(x){return x===s?(e.enter(a),e.consume(x),e.exit(a),e.exit(r),n):(e.enter(i),h(x))}function h(x){return x===s?(e.exit(i),g(s)):x===o.eof?t(x):E(x)?(e.enter(u.lineEnding),e.consume(x),e.exit(u.lineEnding),H(e,h,u.linePrefix)):(e.enter(u.chunkString,{contentType:T.contentTypeString}),c(x))}function c(x){return x===s||x===o.eof||E(x)?(e.exit(u.chunkString),h(x)):(e.consume(x),x===o.backslash?k:c)}function k(x){return x===s||x===o.backslash?(e.consume(x),c):c(x)}}function Ce(e,n){let t;return r;function r(a){return E(a)?(e.enter(u.lineEnding),e.consume(a),e.exit(u.lineEnding),t=!0,r):_(a)?H(e,r,t?u.linePrefix:u.lineSuffix)(a):n(a)}}const Vn={name:"definition",tokenize:Qn},jn={partial:!0,tokenize:Un};function Qn(e,n,t){const r=this;let a;return i;function i(p){return e.enter(u.definition),s(p)}function s(p){return m(p===o.leftSquareBracket,"expected `[`"),Lt.call(r,e,l,t,u.definitionLabel,u.definitionLabelMarker,u.definitionLabelString)(p)}function l(p){return a=we(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===o.colon?(e.enter(u.definitionMarker),e.consume(p),e.exit(u.definitionMarker),g):t(p)}function g(p){return Z(p)?Ce(e,h)(p):h(p)}function h(p){return _t(e,c,t,u.definitionDestination,u.definitionDestinationLiteral,u.definitionDestinationLiteralMarker,u.definitionDestinationRaw,u.definitionDestinationString)(p)}function c(p){return e.attempt(jn,k,k)(p)}function k(p){return _(p)?H(e,x,u.whitespace)(p):x(p)}function x(p){return p===o.eof||E(p)?(e.exit(u.definition),r.parser.defined.push(a),n(p)):t(p)}}function Un(e,n,t){return r;function r(l){return Z(l)?Ce(e,a)(l):t(l)}function a(l){return qt(e,i,t,u.definitionTitle,u.definitionTitleMarker,u.definitionTitleString)(l)}function i(l){return _(l)?H(e,s,u.whitespace)(l):s(l)}function s(l){return l===o.eof||E(l)?n(l):t(l)}}const vn={name:"hardBreakEscape",tokenize:Wn};function Wn(e,n,t){return r;function r(i){return m(i===o.backslash,"expected `\\`"),e.enter(u.hardBreakEscape),e.consume(i),a}function a(i){return E(i)?(e.exit(u.hardBreakEscape),n(i)):t(i)}}const Yn={name:"headingAtx",resolve:Gn,tokenize:Xn};function Gn(e,n){let t=e.length-2,r=3,a,i;return e[r][1].type===u.whitespace&&(r+=2),t-2>r&&e[t][1].type===u.whitespace&&(t-=2),e[t][1].type===u.atxHeadingSequence&&(r===t-1||t-4>r&&e[t-2][1].type===u.whitespace)&&(t-=r+1===t?2:4),t>r&&(a={type:u.atxHeadingText,start:e[r][1].start,end:e[t][1].end},i={type:u.chunkText,start:e[r][1].start,end:e[t][1].end,contentType:T.contentTypeText},se(e,r,t-r+1,[["enter",a,n],["enter",i,n],["exit",i,n],["exit",a,n]])),e}function Xn(e,n,t){let r=0;return a;function a(c){return e.enter(u.atxHeading),i(c)}function i(c){return m(c===o.numberSign,"expected `#`"),e.enter(u.atxHeadingSequence),s(c)}function s(c){return c===o.numberSign&&r++<T.atxHeadingOpeningFenceSizeMax?(e.consume(c),s):c===o.eof||Z(c)?(e.exit(u.atxHeadingSequence),l(c)):t(c)}function l(c){return c===o.numberSign?(e.enter(u.atxHeadingSequence),g(c)):c===o.eof||E(c)?(e.exit(u.atxHeading),n(c)):_(c)?H(e,l,u.whitespace)(c):(e.enter(u.atxHeadingText),h(c))}function g(c){return c===o.numberSign?(e.consume(c),g):(e.exit(u.atxHeadingSequence),l(c))}function h(c){return c===o.eof||c===o.numberSign||Z(c)?(e.exit(u.atxHeadingText),l(c)):(e.consume(c),h)}}const Zn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],mt=["pre","script","style","textarea"],Jn={concrete:!0,name:"htmlFlow",resolveTo:er,tokenize:tr},Kn={partial:!0,tokenize:rr},$n={partial:!0,tokenize:nr};function er(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type===u.htmlFlow););return n>1&&e[n-2][1].type===u.linePrefix&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function tr(e,n,t){const r=this;let a,i,s,l,g;return h;function h(d){return c(d)}function c(d){return m(d===o.lessThan,"expected `<`"),e.enter(u.htmlFlow),e.enter(u.htmlFlowData),e.consume(d),k}function k(d){return d===o.exclamationMark?(e.consume(d),x):d===o.slash?(e.consume(d),i=!0,F):d===o.questionMark?(e.consume(d),a=T.htmlInstruction,r.interrupt?n:f):oe(d)?(m(d!==null),e.consume(d),s=String.fromCharCode(d),L):t(d)}function x(d){return d===o.dash?(e.consume(d),a=T.htmlComment,p):d===o.leftSquareBracket?(e.consume(d),a=T.htmlCdata,l=0,B):oe(d)?(e.consume(d),a=T.htmlDeclaration,r.interrupt?n:f):t(d)}function p(d){return d===o.dash?(e.consume(d),r.interrupt?n:f):t(d)}function B(d){const K=T.cdataOpeningString;return d===K.charCodeAt(l++)?(e.consume(d),l===K.length?r.interrupt?n:O:B):t(d)}function F(d){return oe(d)?(m(d!==null),e.consume(d),s=String.fromCharCode(d),L):t(d)}function L(d){if(d===o.eof||d===o.slash||d===o.greaterThan||Z(d)){const K=d===o.slash,ge=s.toLowerCase();return!K&&!i&&mt.includes(ge)?(a=T.htmlRaw,r.interrupt?n(d):O(d)):Zn.includes(s.toLowerCase())?(a=T.htmlBasic,K?(e.consume(d),w):r.interrupt?n(d):O(d)):(a=T.htmlComplete,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):i?D(d):C(d))}return d===o.dash||ie(d)?(e.consume(d),s+=String.fromCharCode(d),L):t(d)}function w(d){return d===o.greaterThan?(e.consume(d),r.interrupt?n:O):t(d)}function D(d){return _(d)?(e.consume(d),D):j(d)}function C(d){return d===o.slash?(e.consume(d),j):d===o.colon||d===o.underscore||oe(d)?(e.consume(d),V):_(d)?(e.consume(d),C):j(d)}function V(d){return d===o.dash||d===o.dot||d===o.colon||d===o.underscore||ie(d)?(e.consume(d),V):Q(d)}function Q(d){return d===o.equalsTo?(e.consume(d),S):_(d)?(e.consume(d),Q):C(d)}function S(d){return d===o.eof||d===o.lessThan||d===o.equalsTo||d===o.greaterThan||d===o.graveAccent?t(d):d===o.quotationMark||d===o.apostrophe?(e.consume(d),g=d,N):_(d)?(e.consume(d),S):v(d)}function N(d){return d===g?(e.consume(d),g=null,q):d===o.eof||E(d)?t(d):(e.consume(d),N)}function v(d){return d===o.eof||d===o.quotationMark||d===o.apostrophe||d===o.slash||d===o.lessThan||d===o.equalsTo||d===o.greaterThan||d===o.graveAccent||Z(d)?Q(d):(e.consume(d),v)}function q(d){return d===o.slash||d===o.greaterThan||_(d)?C(d):t(d)}function j(d){return d===o.greaterThan?(e.consume(d),ee):t(d)}function ee(d){return d===o.eof||E(d)?O(d):_(d)?(e.consume(d),ee):t(d)}function O(d){return d===o.dash&&a===T.htmlComment?(e.consume(d),U):d===o.lessThan&&a===T.htmlRaw?(e.consume(d),W):d===o.greaterThan&&a===T.htmlDeclaration?(e.consume(d),ne):d===o.questionMark&&a===T.htmlInstruction?(e.consume(d),f):d===o.rightSquareBracket&&a===T.htmlCdata?(e.consume(d),ae):E(d)&&(a===T.htmlBasic||a===T.htmlComplete)?(e.exit(u.htmlFlowData),e.check(Kn,le,I)(d)):d===o.eof||E(d)?(e.exit(u.htmlFlowData),I(d)):(e.consume(d),O)}function I(d){return e.check($n,A,le)(d)}function A(d){return m(E(d)),e.enter(u.lineEnding),e.consume(d),e.exit(u.lineEnding),M}function M(d){return d===o.eof||E(d)?I(d):(e.enter(u.htmlFlowData),O(d))}function U(d){return d===o.dash?(e.consume(d),f):O(d)}function W(d){return d===o.slash?(e.consume(d),s="",te):O(d)}function te(d){if(d===o.greaterThan){const K=s.toLowerCase();return mt.includes(K)?(e.consume(d),ne):O(d)}return oe(d)&&s.length<T.htmlRawSizeMax?(m(d!==null),e.consume(d),s+=String.fromCharCode(d),te):O(d)}function ae(d){return d===o.rightSquareBracket?(e.consume(d),f):O(d)}function f(d){return d===o.greaterThan?(e.consume(d),ne):d===o.dash&&a===T.htmlComment?(e.consume(d),f):O(d)}function ne(d){return d===o.eof||E(d)?(e.exit(u.htmlFlowData),le(d)):(e.consume(d),ne)}function le(d){return e.exit(u.htmlFlow),n(d)}}function nr(e,n,t){const r=this;return a;function a(s){return E(s)?(e.enter(u.lineEnding),e.consume(s),e.exit(u.lineEnding),i):t(s)}function i(s){return r.parser.lazy[r.now().line]?t(s):n(s)}}function rr(e,n,t){return r;function r(a){return m(E(a),"expected a line ending"),e.enter(u.lineEnding),e.consume(a),e.exit(u.lineEnding),e.attempt(_e,n,t)}}const ir={name:"htmlText",tokenize:ar};function ar(e,n,t){const r=this;let a,i,s;return l;function l(f){return m(f===o.lessThan,"expected `<`"),e.enter(u.htmlText),e.enter(u.htmlTextData),e.consume(f),g}function g(f){return f===o.exclamationMark?(e.consume(f),h):f===o.slash?(e.consume(f),Q):f===o.questionMark?(e.consume(f),C):oe(f)?(e.consume(f),v):t(f)}function h(f){return f===o.dash?(e.consume(f),c):f===o.leftSquareBracket?(e.consume(f),i=0,B):oe(f)?(e.consume(f),D):t(f)}function c(f){return f===o.dash?(e.consume(f),p):t(f)}function k(f){return f===o.eof?t(f):f===o.dash?(e.consume(f),x):E(f)?(s=k,W(f)):(e.consume(f),k)}function x(f){return f===o.dash?(e.consume(f),p):k(f)}function p(f){return f===o.greaterThan?U(f):f===o.dash?x(f):k(f)}function B(f){const ne=T.cdataOpeningString;return f===ne.charCodeAt(i++)?(e.consume(f),i===ne.length?F:B):t(f)}function F(f){return f===o.eof?t(f):f===o.rightSquareBracket?(e.consume(f),L):E(f)?(s=F,W(f)):(e.consume(f),F)}function L(f){return f===o.rightSquareBracket?(e.consume(f),w):F(f)}function w(f){return f===o.greaterThan?U(f):f===o.rightSquareBracket?(e.consume(f),w):F(f)}function D(f){return f===o.eof||f===o.greaterThan?U(f):E(f)?(s=D,W(f)):(e.consume(f),D)}function C(f){return f===o.eof?t(f):f===o.questionMark?(e.consume(f),V):E(f)?(s=C,W(f)):(e.consume(f),C)}function V(f){return f===o.greaterThan?U(f):C(f)}function Q(f){return oe(f)?(e.consume(f),S):t(f)}function S(f){return f===o.dash||ie(f)?(e.consume(f),S):N(f)}function N(f){return E(f)?(s=N,W(f)):_(f)?(e.consume(f),N):U(f)}function v(f){return f===o.dash||ie(f)?(e.consume(f),v):f===o.slash||f===o.greaterThan||Z(f)?q(f):t(f)}function q(f){return f===o.slash?(e.consume(f),U):f===o.colon||f===o.underscore||oe(f)?(e.consume(f),j):E(f)?(s=q,W(f)):_(f)?(e.consume(f),q):U(f)}function j(f){return f===o.dash||f===o.dot||f===o.colon||f===o.underscore||ie(f)?(e.consume(f),j):ee(f)}function ee(f){return f===o.equalsTo?(e.consume(f),O):E(f)?(s=ee,W(f)):_(f)?(e.consume(f),ee):q(f)}function O(f){return f===o.eof||f===o.lessThan||f===o.equalsTo||f===o.greaterThan||f===o.graveAccent?t(f):f===o.quotationMark||f===o.apostrophe?(e.consume(f),a=f,I):E(f)?(s=O,W(f)):_(f)?(e.consume(f),O):(e.consume(f),A)}function I(f){return f===a?(e.consume(f),a=void 0,M):f===o.eof?t(f):E(f)?(s=I,W(f)):(e.consume(f),I)}function A(f){return f===o.eof||f===o.quotationMark||f===o.apostrophe||f===o.lessThan||f===o.equalsTo||f===o.graveAccent?t(f):f===o.slash||f===o.greaterThan||Z(f)?q(f):(e.consume(f),A)}function M(f){return f===o.slash||f===o.greaterThan||Z(f)?q(f):t(f)}function U(f){return f===o.greaterThan?(e.consume(f),e.exit(u.htmlTextData),e.exit(u.htmlText),n):t(f)}function W(f){return m(s,"expected return state"),m(E(f),"expected eol"),e.exit(u.htmlTextData),e.enter(u.lineEnding),e.consume(f),e.exit(u.lineEnding),te}function te(f){return m(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),_(f)?H(e,ae,u.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(f):ae(f)}function ae(f){return e.enter(u.htmlTextData),s(f)}}const tt={name:"labelEnd",resolveAll:lr,resolveTo:cr,tokenize:hr},ur={tokenize:pr},or={tokenize:fr},sr={tokenize:dr};function lr(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type===u.labelImage||r.type===u.labelLink||r.type===u.labelEnd){const a=r.type===u.labelImage?4:2;r.type=u.data,n+=a}}return e.length!==t.length&&se(e,0,e.length,t),e}function cr(e,n){let t=e.length,r=0,a,i,s,l;for(;t--;)if(a=e[t][1],i){if(a.type===u.link||a.type===u.labelLink&&a._inactive)break;e[t][0]==="enter"&&a.type===u.labelLink&&(a._inactive=!0)}else if(s){if(e[t][0]==="enter"&&(a.type===u.labelImage||a.type===u.labelLink)&&!a._balanced&&(i=t,a.type!==u.labelLink)){r=2;break}}else a.type===u.labelEnd&&(s=t);m(i!==void 0,"`open` is supposed to be found"),m(s!==void 0,"`close` is supposed to be found");const g={type:e[i][1].type===u.labelLink?u.link:u.image,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},h={type:u.label,start:{...e[i][1].start},end:{...e[s][1].end}},c={type:u.labelText,start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",g,n],["enter",h,n]],l=re(l,e.slice(i+1,i+r+3)),l=re(l,[["enter",c,n]]),m(n.parser.constructs.insideSpan.null,"expected `insideSpan.null` to be populated"),l=re(l,et(n.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),n)),l=re(l,[["exit",c,n],e[s-2],e[s-1],["exit",h,n]]),l=re(l,e.slice(s+1)),l=re(l,[["exit",g,n]]),se(e,i,e.length,l),e}function hr(e,n,t){const r=this;let a=r.events.length,i,s;for(;a--;)if((r.events[a][1].type===u.labelImage||r.events[a][1].type===u.labelLink)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return l;function l(x){return m(x===o.rightSquareBracket,"expected `]`"),i?i._inactive?k(x):(s=r.parser.defined.includes(we(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter(u.labelEnd),e.enter(u.labelMarker),e.consume(x),e.exit(u.labelMarker),e.exit(u.labelEnd),g):t(x)}function g(x){return x===o.leftParenthesis?e.attempt(ur,c,s?c:k)(x):x===o.leftSquareBracket?e.attempt(or,c,s?h:k)(x):s?c(x):k(x)}function h(x){return e.attempt(sr,c,k)(x)}function c(x){return n(x)}function k(x){return i._balanced=!0,t(x)}}function pr(e,n,t){return r;function r(k){return m(k===o.leftParenthesis,"expected left paren"),e.enter(u.resource),e.enter(u.resourceMarker),e.consume(k),e.exit(u.resourceMarker),a}function a(k){return Z(k)?Ce(e,i)(k):i(k)}function i(k){return k===o.rightParenthesis?c(k):_t(e,s,l,u.resourceDestination,u.resourceDestinationLiteral,u.resourceDestinationLiteralMarker,u.resourceDestinationRaw,u.resourceDestinationString,T.linkResourceDestinationBalanceMax)(k)}function s(k){return Z(k)?Ce(e,g)(k):c(k)}function l(k){return t(k)}function g(k){return k===o.quotationMark||k===o.apostrophe||k===o.leftParenthesis?qt(e,h,t,u.resourceTitle,u.resourceTitleMarker,u.resourceTitleString)(k):c(k)}function h(k){return Z(k)?Ce(e,c)(k):c(k)}function c(k){return k===o.rightParenthesis?(e.enter(u.resourceMarker),e.consume(k),e.exit(u.resourceMarker),e.exit(u.resource),n):t(k)}}function fr(e,n,t){const r=this;return a;function a(l){return m(l===o.leftSquareBracket,"expected left bracket"),Lt.call(r,e,i,s,u.reference,u.referenceMarker,u.referenceString)(l)}function i(l){return r.parser.defined.includes(we(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(l):t(l)}function s(l){return t(l)}}function dr(e,n,t){return r;function r(i){return m(i===o.leftSquareBracket,"expected left bracket"),e.enter(u.reference),e.enter(u.referenceMarker),e.consume(i),e.exit(u.referenceMarker),a}function a(i){return i===o.rightSquareBracket?(e.enter(u.referenceMarker),e.consume(i),e.exit(u.referenceMarker),e.exit(u.reference),n):t(i)}}const mr={name:"labelStartImage",resolveAll:tt.resolveAll,tokenize:gr};function gr(e,n,t){const r=this;return a;function a(l){return m(l===o.exclamationMark,"expected `!`"),e.enter(u.labelImage),e.enter(u.labelImageMarker),e.consume(l),e.exit(u.labelImageMarker),i}function i(l){return l===o.leftSquareBracket?(e.enter(u.labelMarker),e.consume(l),e.exit(u.labelMarker),e.exit(u.labelImage),s):t(l)}function s(l){return l===o.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const xr={name:"labelStartLink",resolveAll:tt.resolveAll,tokenize:kr};function kr(e,n,t){const r=this;return a;function a(s){return m(s===o.leftSquareBracket,"expected `[`"),e.enter(u.labelLink),e.enter(u.labelMarker),e.consume(s),e.exit(u.labelMarker),e.exit(u.labelLink),i}function i(s){return s===o.caret&&"_hiddenFootnoteSupport"in r.parser.constructs?t(s):n(s)}}const Oe={name:"lineEnding",tokenize:br};function br(e,n){return t;function t(r){return m(E(r),"expected eol"),e.enter(u.lineEnding),e.consume(r),e.exit(u.lineEnding),H(e,n,u.linePrefix)}}const Pe={name:"thematicBreak",tokenize:yr};function yr(e,n,t){let r=0,a;return i;function i(h){return e.enter(u.thematicBreak),s(h)}function s(h){return m(h===o.asterisk||h===o.dash||h===o.underscore,"expected `*`, `-`, or `_`"),a=h,l(h)}function l(h){return h===a?(e.enter(u.thematicBreakSequence),g(h)):r>=T.thematicBreakMarkerCountMin&&(h===o.eof||E(h))?(e.exit(u.thematicBreak),n(h)):t(h)}function g(h){return h===a?(e.consume(h),r++,g):(e.exit(u.thematicBreakSequence),_(h)?H(e,l,u.whitespace)(h):l(h))}}const X={continuation:{tokenize:Ir},exit:Er,name:"list",tokenize:Tr},Sr={partial:!0,tokenize:Cr},wr={partial:!0,tokenize:zr};function Tr(e,n,t){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type===u.linePrefix?a[2].sliceSerialize(a[1],!0).length:0,s=0;return l;function l(p){m(r.containerState,"expected state");const B=r.containerState.type||(p===o.asterisk||p===o.plusSign||p===o.dash?u.listUnordered:u.listOrdered);if(B===u.listUnordered?!r.containerState.marker||p===r.containerState.marker:Ge(p)){if(r.containerState.type||(r.containerState.type=B,e.enter(B,{_container:!0})),B===u.listUnordered)return e.enter(u.listItemPrefix),p===o.asterisk||p===o.dash?e.check(Pe,t,h)(p):h(p);if(!r.interrupt||p===o.digit1)return e.enter(u.listItemPrefix),e.enter(u.listItemValue),g(p)}return t(p)}function g(p){return m(r.containerState,"expected state"),Ge(p)&&++s<T.listItemValueSizeMax?(e.consume(p),g):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===o.rightParenthesis||p===o.dot)?(e.exit(u.listItemValue),h(p)):t(p)}function h(p){return m(r.containerState,"expected state"),m(p!==o.eof,"eof (`null`) is not a marker"),e.enter(u.listItemMarker),e.consume(p),e.exit(u.listItemMarker),r.containerState.marker=r.containerState.marker||p,e.check(_e,r.interrupt?t:c,e.attempt(Sr,x,k))}function c(p){return m(r.containerState,"expected state"),r.containerState.initialBlankLine=!0,i++,x(p)}function k(p){return _(p)?(e.enter(u.listItemPrefixWhitespace),e.consume(p),e.exit(u.listItemPrefixWhitespace),x):t(p)}function x(p){return m(r.containerState,"expected state"),r.containerState.size=i+r.sliceSerialize(e.exit(u.listItemPrefix),!0).length,n(p)}}function Ir(e,n,t){const r=this;return m(r.containerState,"expected state"),r.containerState._closeFlow=void 0,e.check(_e,a,i);function a(l){return m(r.containerState,"expected state"),m(typeof r.containerState.size=="number","expected size"),r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,H(e,n,u.listItemIndent,r.containerState.size+1)(l)}function i(l){return m(r.containerState,"expected state"),r.containerState.furtherBlankLines||!_(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(wr,n,s)(l))}function s(l){return m(r.containerState,"expected state"),r.containerState._closeFlow=!0,r.interrupt=void 0,m(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),H(e,e.attempt(X,n,t),u.linePrefix,r.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize)(l)}}function zr(e,n,t){const r=this;return m(r.containerState,"expected state"),m(typeof r.containerState.size=="number","expected size"),H(e,a,u.listItemIndent,r.containerState.size+1);function a(i){m(r.containerState,"expected state");const s=r.events[r.events.length-1];return s&&s[1].type===u.listItemIndent&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?n(i):t(i)}}function Er(e){m(this.containerState,"expected state"),m(typeof this.containerState.type=="string","expected type"),e.exit(this.containerState.type)}function Cr(e,n,t){const r=this;return m(r.parser.constructs.disable.null,"expected `disable.null` to be populated"),H(e,a,u.listItemPrefixWhitespace,r.parser.constructs.disable.null.includes("codeIndented")?void 0:T.tabSize+1);function a(i){const s=r.events[r.events.length-1];return!_(i)&&s&&s[1].type===u.listItemPrefixWhitespace?n(i):t(i)}}const gt={name:"setextUnderline",resolveTo:Fr,tokenize:Ar};function Fr(e,n){let t=e.length,r,a,i;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type===u.content){r=t;break}e[t][1].type===u.paragraph&&(a=t)}else e[t][1].type===u.content&&e.splice(t,1),!i&&e[t][1].type===u.definition&&(i=t);m(a!==void 0,"expected a `text` index to be found"),m(r!==void 0,"expected a `text` index to be found"),m(e[r][2]===n,"enter context should be same"),m(e[e.length-1][2]===n,"enter context should be same");const s={type:u.setextHeading,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=u.setextHeadingText,i?(e.splice(a,0,["enter",s,n]),e.splice(i+1,0,["exit",e[r][1],n]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,n]),e}function Ar(e,n,t){const r=this;let a;return i;function i(h){let c=r.events.length,k;for(m(h===o.dash||h===o.equalsTo,"expected `=` or `-`");c--;)if(r.events[c][1].type!==u.lineEnding&&r.events[c][1].type!==u.linePrefix&&r.events[c][1].type!==u.content){k=r.events[c][1].type===u.paragraph;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||k)?(e.enter(u.setextHeadingLine),a=h,s(h)):t(h)}function s(h){return e.enter(u.setextHeadingLineSequence),l(h)}function l(h){return h===a?(e.consume(h),l):(e.exit(u.setextHeadingLineSequence),_(h)?H(e,g,u.lineSuffix)(h):g(h))}function g(h){return h===o.eof||E(h)?(e.exit(u.setextHeadingLine),n(h)):t(h)}}const Mr={tokenize:Br};function Br(e){const n=this,t=e.attempt(_e,r,e.attempt(this.parser.constructs.flowInitial,a,H(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Rn,a)),u.linePrefix)));return t;function r(i){if(m(i===o.eof||E(i),"expected eol or eof"),i===o.eof){e.consume(i);return}return e.enter(u.lineEndingBlank),e.consume(i),e.exit(u.lineEndingBlank),n.currentConstruct=void 0,t}function a(i){if(m(i===o.eof||E(i),"expected eol or eof"),i===o.eof){e.consume(i);return}return e.enter(u.lineEnding),e.consume(i),e.exit(u.lineEnding),n.currentConstruct=void 0,t}}const Pr={resolveAll:Dt()},_r=Rt("string"),Lr=Rt("text");function Rt(e){return{resolveAll:Dt(e==="text"?qr:void 0),tokenize:n};function n(t){const r=this,a=this.parser.constructs[e],i=t.attempt(a,s,l);return s;function s(c){return h(c)?i(c):l(c)}function l(c){if(c===o.eof){t.consume(c);return}return t.enter(u.data),t.consume(c),g}function g(c){return h(c)?(t.exit(u.data),i(c)):(t.consume(c),g)}function h(c){if(c===o.eof)return!0;const k=a[c];let x=-1;if(k)for(m(Array.isArray(k),"expected `disable.null` to be populated");++x<k.length;){const p=k[x];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Dt(e){return n;function n(t,r){let a=-1,i;for(;++a<=t.length;)i===void 0?t[a]&&t[a][1].type===u.data&&(i=a,a++):(!t[a]||t[a][1].type!==u.data)&&(a!==i+2&&(t[i][1].end=t[a-1][1].end,t.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(t,r):t}}function qr(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type===u.lineEnding)&&e[t-1][1].type===u.data){const r=e[t-1][1],a=n.sliceStream(r);let i=a.length,s=-1,l=0,g;for(;i--;){const h=a[i];if(typeof h=="string"){for(s=h.length;h.charCodeAt(s-1)===o.space;)l++,s--;if(s)break;s=-1}else if(h===o.horizontalTab)g=!0,l++;else if(h!==o.virtualSpace){i++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(l=0),l){const h={type:t===e.length||g||l<T.hardBreakPrefixSizeMin?u.lineSuffix:u.hardBreakTrailing,start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...h.start},r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(t,0,["enter",h,n],["exit",h,n]),t+=2)}t++}return e}const Rr={[o.asterisk]:X,[o.plusSign]:X,[o.dash]:X,[o.digit0]:X,[o.digit1]:X,[o.digit2]:X,[o.digit3]:X,[o.digit4]:X,[o.digit5]:X,[o.digit6]:X,[o.digit7]:X,[o.digit8]:X,[o.digit9]:X,[o.greaterThan]:Ft},Dr={[o.leftSquareBracket]:Vn},Or={[o.horizontalTab]:De,[o.virtualSpace]:De,[o.space]:De},Nr={[o.numberSign]:Yn,[o.asterisk]:Pe,[o.dash]:[gt,Pe],[o.lessThan]:Jn,[o.equalsTo]:gt,[o.underscore]:Pe,[o.graveAccent]:dt,[o.tilde]:dt},Hr={[o.ampersand]:Mt,[o.backslash]:At},Vr={[o.carriageReturn]:Oe,[o.lineFeed]:Oe,[o.carriageReturnLineFeed]:Oe,[o.exclamationMark]:mr,[o.ampersand]:Mt,[o.asterisk]:Xe,[o.lessThan]:[kn,ir],[o.leftSquareBracket]:xr,[o.backslash]:[vn,At],[o.rightSquareBracket]:tt,[o.underscore]:Xe,[o.graveAccent]:Bn},jr={null:[Xe,Pr]},Qr={null:[o.asterisk,o.underscore]},Ur={null:[]},vr=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Qr,contentInitial:Dr,disable:Ur,document:Rr,flow:Nr,flowInitial:Or,insideSpan:jr,string:Hr,text:Vr},Symbol.toStringTag,{value:"Module"})),be=Xt("micromark");function Wr(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const a={},i=[];let s=[],l=[],g=!0;const h={attempt:q(N),check:q(v),consume:V,enter:Q,exit:S,interrupt:q(v,{interrupt:!0})},c={code:o.eof,containerState:{},defineSkip:w,events:[],now:L,parser:e,previous:o.eof,sliceSerialize:B,sliceStream:F,write:p};let k=n.tokenize.call(c,h),x;return n.resolveAll&&i.push(n),c;function p(I){return s=re(s,I),D(),s[s.length-1]!==o.eof?[]:(j(n,0),c.events=et(i,c.events,c),c.events)}function B(I,A){return Gr(F(I),A)}function F(I){return Yr(s,I)}function L(){const{_bufferIndex:I,_index:A,line:M,column:U,offset:W}=r;return{_bufferIndex:I,_index:A,line:M,column:U,offset:W}}function w(I){a[I.line]=I.column,O(),be("position: define skip: `%j`",r)}function D(){let I;for(;r._index<s.length;){const A=s[r._index];if(typeof A=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<A.length;)C(A.charCodeAt(r._bufferIndex));else C(A)}}function C(I){m(g===!0,"expected character to be consumed"),g=void 0,be("main: passing `%s` to %s",I,k&&k.name),x=I,m(typeof k=="function","expected state"),k=k(I)}function V(I){m(I===x,"expected given code to equal expected code"),be("consume: `%s`",I),m(g===void 0,"expected code to not have been consumed: this might be because `return x(code)` instead of `return x` was used"),m(I===null?c.events.length===0||c.events[c.events.length-1][0]==="exit":c.events[c.events.length-1][0]==="enter","expected last token to be open"),E(I)?(r.line++,r.column=1,r.offset+=I===o.carriageReturnLineFeed?2:1,O(),be("position: after eol: `%j`",r)):I!==o.virtualSpace&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I,g=!0}function Q(I,A){const M=A||{};return M.type=I,M.start=L(),m(typeof I=="string","expected string type"),m(I.length>0,"expected non-empty string"),be("enter: `%s`",I),c.events.push(["enter",M,c]),l.push(M),M}function S(I){m(typeof I=="string","expected string type"),m(I.length>0,"expected non-empty string");const A=l.pop();return m(A,"cannot close w/o open tokens"),A.end=L(),m(I===A.type,"expected exit token to match current token"),m(!(A.start._index===A.end._index&&A.start._bufferIndex===A.end._bufferIndex),"expected non-empty token (`"+I+"`)"),be("exit: `%s`",A.type),c.events.push(["exit",A,c]),A}function N(I,A){j(I,A.from)}function v(I,A){A.restore()}function q(I,A){return M;function M(U,W,te){let ae,f,ne,le;return Array.isArray(U)?K(U):"tokenize"in U?K([U]):d(U);function d(Y){return Te;function Te(ce){const xe=ce!==null&&Y[ce],ye=ce!==null&&Y.null,qe=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(ye)?ye:ye?[ye]:[]];return K(qe)(ce)}}function K(Y){return ae=Y,f=0,Y.length===0?(m(te,"expected `bogusState` to be given"),te):ge(Y[f])}function ge(Y){return Te;function Te(ce){return le=ee(),ne=Y,Y.partial||(c.currentConstruct=Y),m(c.parser.constructs.disable.null,"expected `disable.null` to be populated"),Y.name&&c.parser.constructs.disable.null.includes(Y.name)?Me(ce):Y.tokenize.call(A?Object.assign(Object.create(c),A):c,h,Le,Me)(ce)}}function Le(Y){return m(Y===x,"expected code"),g=!0,I(ne,le),W}function Me(Y){return m(Y===x,"expected code"),g=!0,le.restore(),++f<ae.length?ge(ae[f]):te}}}function j(I,A){I.resolveAll&&!i.includes(I)&&i.push(I),I.resolve&&se(c.events,A,c.events.length-A,I.resolve(c.events.slice(A),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c)),m(I.partial||c.events.length===0||c.events[c.events.length-1][0]==="exit","expected last token to end")}function ee(){const I=L(),A=c.previous,M=c.currentConstruct,U=c.events.length,W=Array.from(l);return{from:U,restore:te};function te(){r=I,c.previous=A,c.currentConstruct=M,c.events.length=U,l=W,O(),be("position: restore: `%j`",r)}}function O(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Yr(e,n){const t=n.start._index,r=n.start._bufferIndex,a=n.end._index,i=n.end._bufferIndex;let s;if(t===a)m(i>-1,"expected non-negative end buffer index"),m(r>-1,"expected non-negative start buffer index"),s=[e[t].slice(r,i)];else{if(s=e.slice(t,a),r>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(r):(m(r===0,"expected `startBufferIndex` to be `0`"),s.shift())}i>0&&s.push(e[a].slice(0,i))}return s}function Gr(e,n){let t=-1;const r=[];let a;for(;++t<e.length;){const i=e[t];let s;if(typeof i=="string")s=i;else switch(i){case o.carriageReturn:{s=fe.cr;break}case o.lineFeed:{s=fe.lf;break}case o.carriageReturnLineFeed:{s=fe.cr+fe.lf;break}case o.horizontalTab:{s=n?fe.space:fe.ht;break}case o.virtualSpace:{if(!n&&a)continue;s=fe.space;break}default:m(typeof i=="number","expected number"),s=String.fromCharCode(i)}a=i===o.horizontalTab,r.push(s)}return r.join("")}function Xr(e){const r={constructs:nn([vr,...(e||{}).extensions||[]]),content:a(hn),defined:[],document:a(fn),flow:a(Mr),lazy:{},string:a(_r),text:a(Lr)};return r;function a(i){return s;function s(l){return Wr(r,i,l)}}}function Zr(e){for(;!Pt(e););return e}const xt=/[\0\t\n\r]/g;function Jr(){let e=1,n="",t=!0,r;return a;function a(i,s,l){const g=[];let h,c,k,x,p;for(i=n+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),k=0,n="",t&&(i.charCodeAt(0)===o.byteOrderMarker&&k++,t=void 0);k<i.length;){if(xt.lastIndex=k,h=xt.exec(i),x=h&&h.index!==void 0?h.index:i.length,p=i.charCodeAt(x),!h){n=i.slice(k);break}if(p===o.lf&&k===x&&r)g.push(o.carriageReturnLineFeed),r=void 0;else switch(r&&(g.push(o.carriageReturn),r=void 0),k<x&&(g.push(i.slice(k,x)),e+=x-k),p){case o.nul:{g.push(o.replacementCharacter),e++;break}case o.ht:{for(c=Math.ceil(e/T.tabSize)*T.tabSize,g.push(o.horizontalTab);e++<c;)g.push(o.virtualSpace);break}case o.lf:{g.push(o.lineFeed),e=1;break}default:r=!0,e=1}k=x+1}return l&&(r&&g.push(o.carriageReturn),n&&g.push(n),g.push(o.eof)),g}}const Kr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $r(e){return e.replace(Kr,ei)}function ei(e,n,t){if(n)return n;if(t.charCodeAt(0)===o.numberSign){const a=t.charCodeAt(1),i=a===o.lowercaseX||a===o.uppercaseX;return Ct(t.slice(i?2:1),i?T.numericBaseHexadecimal:T.numericBaseDecimal)}return $e(t)||e}function Fe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?kt(e.position):"start"in e||"end"in e?kt(e):"line"in e||"column"in e?Ze(e):""}function Ze(e){return bt(e&&e.line)+":"+bt(e&&e.column)}function kt(e){return Ze(e&&e.start)+"-"+Ze(e&&e.end)}function bt(e){return e&&typeof e=="number"?e:1}const Ot={}.hasOwnProperty;function ti(e,n,t){return typeof n!="string"&&(t=n,n=void 0),ni(t)(Zr(Xr(t).document().write(Jr()(e,n,!0))))}function ni(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ut),autolinkProtocol:q,autolinkEmail:q,atxHeading:i(rt),blockQuote:i(ce),characterEscape:q,characterReference:q,codeFenced:i(xe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(xe,s),codeText:i(ye,s),codeTextData:q,data:q,codeFlowValue:q,definition:i(qe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Ht),hardBreakEscape:i(it),hardBreakTrailing:i(it),htmlFlow:i(at,s),htmlFlowData:q,htmlText:i(at,s),htmlTextData:q,image:i(Vt),label:s,link:i(ut),listItem:i(jt),listItemValue:x,listOrdered:i(ot,k),listUnordered:i(ot),paragraph:i(Qt),reference:d,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(rt),strong:i(Ut),thematicBreak:i(Wt)},exit:{atxHeading:g(),atxHeadingSequence:Q,autolink:g(),autolinkEmail:Te,autolinkProtocol:Y,blockQuote:g(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:Le,characterReference:Me,codeFenced:g(L),codeFencedFence:F,codeFencedFenceInfo:p,codeFencedFenceMeta:B,codeFlowValue:j,codeIndented:g(w),codeText:g(M),codeTextData:j,data:j,definition:g(),definitionDestinationString:V,definitionLabelString:D,definitionTitleString:C,emphasis:g(),hardBreakEscape:g(O),hardBreakTrailing:g(O),htmlFlow:g(I),htmlFlowData:j,htmlText:g(A),htmlTextData:j,image:g(W),label:ae,labelText:te,lineEnding:ee,link:g(U),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:K,resourceDestinationString:f,resourceTitleString:ne,resource:le,setextHeading:g(v),setextHeadingLineSequence:N,setextHeadingText:S,strong:g(),thematicBreak:g()}};Nt(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let y={type:"root",children:[]};const z={stack:[y],tokenStack:[],config:n,enter:l,exit:h,buffer:s,resume:c,data:t},P=[];let R=-1;for(;++R<b.length;)if(b[R][1].type===u.listOrdered||b[R][1].type===u.listUnordered)if(b[R][0]==="enter")P.push(R);else{const G=P.pop();m(typeof G=="number","expected list ot be open"),R=a(b,G,R)}for(R=-1;++R<b.length;){const G=n[b[R][0]];Ot.call(G,b[R][1].type)&&G[b[R][1].type].call(Object.assign({sliceSerialize:b[R][2].sliceSerialize},z),b[R][1])}if(z.tokenStack.length>0){const G=z.tokenStack[z.tokenStack.length-1];(G[1]||yt).call(z,void 0,G[0])}for(y.position={start:de(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:de(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},R=-1;++R<n.transforms.length;)y=n.transforms[R](y)||y;return y}function a(b,y,z){let P=y-1,R=-1,G=!1,ke,he,Ie,ze;for(;++P<=z;){const $=b[P];switch($[1].type){case u.listUnordered:case u.listOrdered:case u.blockQuote:{$[0]==="enter"?R++:R--,ze=void 0;break}case u.lineEndingBlank:{$[0]==="enter"&&(ke&&!ze&&!R&&!Ie&&(Ie=P),ze=void 0);break}case u.linePrefix:case u.listItemValue:case u.listItemMarker:case u.listItemPrefix:case u.listItemPrefixWhitespace:break;default:ze=void 0}if(!R&&$[0]==="enter"&&$[1].type===u.listItemPrefix||R===-1&&$[0]==="exit"&&($[1].type===u.listUnordered||$[1].type===u.listOrdered)){if(ke){let Se=P;for(he=void 0;Se--;){const pe=b[Se];if(pe[1].type===u.lineEnding||pe[1].type===u.lineEndingBlank){if(pe[0]==="exit")continue;he&&(b[he][1].type=u.lineEndingBlank,G=!0),pe[1].type=u.lineEnding,he=Se}else if(!(pe[1].type===u.linePrefix||pe[1].type===u.blockQuotePrefix||pe[1].type===u.blockQuotePrefixWhitespace||pe[1].type===u.blockQuoteMarker||pe[1].type===u.listItemIndent))break}Ie&&(!he||Ie<he)&&(ke._spread=!0),ke.end=Object.assign({},he?b[he][1].start:$[1].end),b.splice(he||P,0,["exit",ke,$[2]]),P++,z++}if($[1].type===u.listItemPrefix){const Se={type:"listItem",_spread:!1,start:Object.assign({},$[1].start),end:void 0};ke=Se,b.splice(P,0,["enter",Se,$[2]]),P++,z++,Ie=void 0,ze=!0}}}return b[y][1]._spread=G,z}function i(b,y){return z;function z(P){l.call(this,b(P),P),y&&y.call(this,P)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(b,y,z){const P=this.stack[this.stack.length-1];m(P,"expected `parent`"),m("children"in P,"expected `parent`"),P.children.push(b),this.stack.push(b),this.tokenStack.push([y,z||void 0]),b.position={start:de(y.start),end:void 0}}function g(b){return y;function y(z){b&&b.call(this,z),h.call(this,z)}}function h(b,y){const z=this.stack.pop();m(z,"expected `node`");const P=this.tokenStack.pop();if(P)P[0].type!==b.type&&(y?y.call(this,b,P[0]):(P[1]||yt).call(this,b,P[0]));else throw new Error("Cannot close `"+b.type+"` ("+Fe({start:b.start,end:b.end})+"): it’s not open");m(z.type!=="fragment","unexpected fragment `exit`ed"),m(z.position,"expected `position` to be defined"),z.position.end=de(b.end)}function c(){return en(this.stack.pop())}function k(){this.data.expectingFirstListItemValue=!0}function x(b){if(this.data.expectingFirstListItemValue){const y=this.stack[this.stack.length-2];m(y,"expected nodes on stack"),m(y.type==="list","expected list on stack"),y.start=Number.parseInt(this.sliceSerialize(b),T.numericBaseDecimal),this.data.expectingFirstListItemValue=void 0}}function p(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="code","expected code on stack"),y.lang=b}function B(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="code","expected code on stack"),y.meta=b}function F(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="code","expected code on stack"),y.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="code","expected code on stack"),y.value=b.replace(/(\r?\n|\r)$/g,"")}function D(b){const y=this.resume(),z=this.stack[this.stack.length-1];m(z,"expected node on stack"),m(z.type==="definition","expected definition on stack"),z.label=y,z.identifier=we(this.sliceSerialize(b)).toLowerCase()}function C(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="definition","expected definition on stack"),y.title=b}function V(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="definition","expected definition on stack"),y.url=b}function Q(b){const y=this.stack[this.stack.length-1];if(m(y,"expected node on stack"),m(y.type==="heading","expected heading on stack"),!y.depth){const z=this.sliceSerialize(b).length;m(z===1||z===2||z===3||z===4||z===5||z===6,"expected `depth` between `1` and `6`"),y.depth=z}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function N(b){const y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="heading","expected heading on stack"),y.depth=this.sliceSerialize(b).codePointAt(0)===o.equalsTo?1:2}function v(){this.data.setextHeadingSlurpLineEnding=void 0}function q(b){const y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m("children"in y,"expected parent on stack");const z=y.children;let P=z[z.length-1];(!P||P.type!=="text")&&(P=vt(),P.position={start:de(b.start),end:void 0},z.push(P)),this.stack.push(P)}function j(b){const y=this.stack.pop();m(y,"expected a `node` to be on the stack"),m("value"in y,"expected a `literal` to be on the stack"),m(y.position,"expected `node` to have an open position"),y.value+=this.sliceSerialize(b),y.position.end=de(b.end)}function ee(b){const y=this.stack[this.stack.length-1];if(m(y,"expected `node`"),this.data.atHardBreak){m("children"in y,"expected `parent`");const z=y.children[y.children.length-1];m(z.position,"expected tail to have a starting position"),z.position.end=de(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(y.type)&&(q.call(this,b),j.call(this,b))}function O(){this.data.atHardBreak=!0}function I(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="html","expected html on stack"),y.value=b}function A(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="html","expected html on stack"),y.value=b}function M(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="inlineCode","expected inline code on stack"),y.value=b}function U(){const b=this.stack[this.stack.length-1];if(m(b,"expected node on stack"),m(b.type==="link","expected link on stack"),this.data.inReference){const y=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=y,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function W(){const b=this.stack[this.stack.length-1];if(m(b,"expected node on stack"),m(b.type==="image","expected image on stack"),this.data.inReference){const y=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=y,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function te(b){const y=this.sliceSerialize(b),z=this.stack[this.stack.length-2];m(z,"expected ancestor on stack"),m(z.type==="image"||z.type==="link","expected image or link on stack"),z.label=$r(y),z.identifier=we(y).toLowerCase()}function ae(){const b=this.stack[this.stack.length-1];m(b,"expected node on stack"),m(b.type==="fragment","expected fragment on stack");const y=this.resume(),z=this.stack[this.stack.length-1];if(m(z,"expected node on stack"),m(z.type==="image"||z.type==="link","expected image or link on stack"),this.data.inReference=!0,z.type==="link"){const P=b.children;z.children=P}else z.alt=y}function f(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="image"||y.type==="link","expected image or link on stack"),y.url=b}function ne(){const b=this.resume(),y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="image"||y.type==="link","expected image or link on stack"),y.title=b}function le(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function K(b){const y=this.resume(),z=this.stack[this.stack.length-1];m(z,"expected node on stack"),m(z.type==="image"||z.type==="link","expected image reference or link reference on stack"),z.label=y,z.identifier=we(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function ge(b){m(b.type==="characterReferenceMarkerNumeric"||b.type==="characterReferenceMarkerHexadecimal"),this.data.characterReferenceType=b.type}function Le(b){const y=this.sliceSerialize(b),z=this.data.characterReferenceType;let P;if(z)P=Ct(y,z===u.characterReferenceMarkerNumeric?T.numericBaseDecimal:T.numericBaseHexadecimal),this.data.characterReferenceType=void 0;else{const G=$e(y);m(G!==!1,"expected reference to decode"),P=G}const R=this.stack[this.stack.length-1];m(R,"expected `node`"),m("value"in R,"expected `node.value`"),R.value+=P}function Me(b){const y=this.stack.pop();m(y,"expected `node`"),m(y.position,"expected `node.position`"),y.position.end=de(b.end)}function Y(b){j.call(this,b);const y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="link","expected link on stack"),y.url=this.sliceSerialize(b)}function Te(b){j.call(this,b);const y=this.stack[this.stack.length-1];m(y,"expected node on stack"),m(y.type==="link","expected link on stack"),y.url="mailto:"+this.sliceSerialize(b)}function ce(){return{type:"blockquote",children:[]}}function xe(){return{type:"code",lang:null,meta:null,value:""}}function ye(){return{type:"inlineCode",value:""}}function qe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ht(){return{type:"emphasis",children:[]}}function rt(){return{type:"heading",depth:0,children:[]}}function it(){return{type:"break"}}function at(){return{type:"html",value:""}}function Vt(){return{type:"image",title:null,url:"",alt:null}}function ut(){return{type:"link",title:null,url:"",children:[]}}function ot(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function jt(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Qt(){return{type:"paragraph",children:[]}}function Ut(){return{type:"strong",children:[]}}function vt(){return{type:"text",value:""}}function Wt(){return{type:"thematicBreak"}}}function de(e){return{line:e.line,column:e.column,offset:e.offset}}function Nt(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Nt(e,r):ri(e,r)}}function ri(e,n){let t;for(t in n)if(Ot.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function yt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Fe({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Fe({start:n.start,end:n.end})+") is still open")}function Fi(e){const n=this;n.parser=t;function t(r){return ti(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function St(e){if(e)throw e}var Ne,wt;function ii(){if(wt)return Ne;wt=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},i=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var c=e.call(h,"constructor"),k=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!c&&!k)return!1;var x;for(x in h);return typeof x>"u"||e.call(h,x)},s=function(h,c){t&&c.name==="__proto__"?t(h,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):h[c.name]=c.newValue},l=function(h,c){if(c==="__proto__")if(e.call(h,c)){if(r)return r(h,c).value}else return;return h[c]};return Ne=function g(){var h,c,k,x,p,B,F=arguments[0],L=1,w=arguments.length,D=!1;for(typeof F=="boolean"&&(D=F,F=arguments[1]||{},L=2),(F==null||typeof F!="object"&&typeof F!="function")&&(F={});L<w;++L)if(h=arguments[L],h!=null)for(c in h)k=l(F,c),x=l(h,c),F!==x&&(D&&x&&(i(x)||(p=a(x)))?(p?(p=!1,B=k&&a(k)?k:[]):B=k&&i(k)?k:{},s(F,{name:c,newValue:g(D,B,x)})):typeof x<"u"&&s(F,{name:c,newValue:x}));return F},Ne}var ai=ii();const He=Zt(ai);function Je(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ui(){const e=[],n={run:t,use:r};return n;function t(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...a);function l(g,...h){const c=e[++i];let k=-1;if(g){s(g);return}for(;++k<a.length;)(h[k]===null||h[k]===void 0)&&(h[k]=a[k]);a=h,c?oi(c,l)(...h):s(null,...h)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),n}}function oi(e,n){let t;return r;function r(...s){const l=e.length>s.length;let g;l&&s.push(a);try{g=e.apply(this,s)}catch(h){const c=h;if(l&&t)throw c;return a(c)}l||(g&&g.then&&typeof g.then=="function"?g.then(i,a):g instanceof Error?a(g):i(g))}function a(s,...l){t||(t=!0,n(s,...l))}function i(s){a(null,s)}}class J extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let a="",i={},s=!1;if(t&&("line"in t&&"column"in t?i={place:t}:"start"in t&&"end"in t?i={place:t}:"type"in t?i={ancestors:[t],place:t.position}:i={...t}),typeof n=="string"?a=n:!i.cause&&n&&(s=!0,a=n.message,i.cause=n),!i.ruleId&&!i.source&&typeof r=="string"){const g=r.indexOf(":");g===-1?i.ruleId=r:(i.source=r.slice(0,g),i.ruleId=r.slice(g+1))}if(!i.place&&i.ancestors&&i.ancestors){const g=i.ancestors[i.ancestors.length-1];g&&(i.place=g.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=l?l.line:void 0,this.name=Fe(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}J.prototype.file="";J.prototype.name="";J.prototype.reason="";J.prototype.message="";J.prototype.stack="";J.prototype.column=void 0;J.prototype.line=void 0;J.prototype.ancestors=void 0;J.prototype.cause=void 0;J.prototype.fatal=void 0;J.prototype.place=void 0;J.prototype.ruleId=void 0;J.prototype.source=void 0;const ue={basename:si,dirname:li,extname:ci,join:hi,sep:"/"};function si(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ae(e);let t=0,r=-1,a=e.length,i;if(n===void 0||n.length===0||n.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){t=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let s=-1,l=n.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){t=a+1;break}}else s<0&&(i=!0,s=a+1),l>-1&&(e.codePointAt(a)===n.codePointAt(l--)?l<0&&(r=a):(l=-1,r=s));return t===r?r=s:r<0&&(r=e.length),e.slice(t,r)}function li(e){if(Ae(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function ci(e){Ae(e);let n=e.length,t=-1,r=0,a=-1,i=0,s;for(;n--;){const l=e.codePointAt(n);if(l===47){if(s){r=n+1;break}continue}t<0&&(s=!0,t=n+1),l===46?a<0?a=n:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||t<0||i===0||i===1&&a===t-1&&a===r+1?"":e.slice(a,t)}function hi(...e){let n=-1,t;for(;++n<e.length;)Ae(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":pi(t)}function pi(e){Ae(e);const n=e.codePointAt(0)===47;let t=fi(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function fi(e,n){let t="",r=0,a=-1,i=0,s=-1,l,g;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(g=t.lastIndexOf("/"),g!==t.length-1){g<0?(t="",r=0):(t=t.slice(0,g),r=t.length-1-t.lastIndexOf("/")),a=s,i=0;continue}}else if(t.length>0){t="",r=0,a=s,i=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(a+1,s):t=e.slice(a+1,s),r=s-a-1;a=s,i=0}else l===46&&i>-1?i++:i=-1}return t}function Ae(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const di={cwd:mi};function mi(){return"/"}function Ke(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gi(e){if(typeof e=="string")e=new URL(e);else if(!Ke(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return xi(e)}function xi(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(n)}const Ve=["history","path","basename","stem","extname","dirname"];class ki{constructor(n){let t;n?Ke(n)?t={path:n}:typeof n=="string"||bi(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":di.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ve.length;){const i=Ve[r];i in t&&t[i]!==void 0&&t[i]!==null&&(this[i]=i==="history"?[...t[i]]:t[i])}let a;for(a in t)Ve.includes(a)||(this[a]=t[a])}get basename(){return typeof this.path=="string"?ue.basename(this.path):void 0}set basename(n){Qe(n,"basename"),je(n,"basename"),this.path=ue.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ue.dirname(this.path):void 0}set dirname(n){Tt(this.basename,"dirname"),this.path=ue.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ue.extname(this.path):void 0}set extname(n){if(je(n,"extname"),Tt(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ue.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Ke(n)&&(n=gi(n)),Qe(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ue.basename(this.path,this.extname):void 0}set stem(n){Qe(n,"stem"),je(n,"stem"),this.path=ue.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const a=this.message(n,t,r);throw a.fatal=!0,a}info(n,t,r){const a=this.message(n,t,r);return a.fatal=void 0,a}message(n,t,r){const a=new J(n,t,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function je(e,n){if(e&&e.includes(ue.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ue.sep+"`")}function Qe(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Tt(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function bi(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const yi=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),Si={}.hasOwnProperty;class nt extends yi{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ui()}copy(){const n=new nt;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(He(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(We("data",this.frozen),this.namespace[n]=t,this):Si.call(this.namespace,n)&&this.namespace[n]||void 0:n?(We("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=t.call(n,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Be(n),r=this.parser||this.Parser;return Ue("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Ue("process",this.parser||this.Parser),ve("process",this.compiler||this.Compiler),t?a(void 0,t):new Promise(a);function a(i,s){const l=Be(n),g=r.parse(l);r.run(g,l,function(c,k,x){if(c||!k||!x)return h(c);const p=k,B=r.stringify(p,x);Ti(B)?x.value=B:x.result=B,h(c,x)});function h(c,k){c||!k?s(c):i?i(k):(m(t,"`done` is defined if `resolve` is not"),t(void 0,k))}}}processSync(n){let t=!1,r;return this.freeze(),Ue("processSync",this.parser||this.Parser),ve("processSync",this.compiler||this.Compiler),this.process(n,a),zt("processSync","process",t),m(r,"we either bailed on an error or have a tree"),r;function a(i,s){t=!0,St(i),r=s}}run(n,t,r){It(n),this.freeze();const a=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?i(void 0,r):new Promise(i);function i(s,l){m(typeof t!="function","`file` can’t be a `done` anymore, we checked");const g=Be(t);a.run(n,g,h);function h(c,k,x){const p=k||n;c?l(c):s?s(p):(m(r,"`done` is defined if `resolve` is not"),r(void 0,p,x))}}}runSync(n,t){let r=!1,a;return this.run(n,t,i),zt("runSync","run",r),m(a,"we either bailed on an error or have a tree"),a;function i(s,l){St(s),a=l,r=!0}}stringify(n,t){this.freeze();const r=Be(t),a=this.compiler||this.Compiler;return ve("stringify",a),It(n),a(n,r)}use(n,...t){const r=this.attachers,a=this.namespace;if(We("use",this.frozen),n!=null)if(typeof n=="function")g(n,t);else if(typeof n=="object")Array.isArray(n)?l(n):s(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function i(h){if(typeof h=="function")g(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[c,...k]=h;g(c,k)}else s(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function s(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(h.plugins),h.settings&&(a.settings=He(!0,a.settings,h.settings))}function l(h){let c=-1;if(h!=null)if(Array.isArray(h))for(;++c<h.length;){const k=h[c];i(k)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function g(h,c){let k=-1,x=-1;for(;++k<r.length;)if(r[k][0]===h){x=k;break}if(x===-1)r.push([h,...c]);else if(c.length>0){let[p,...B]=c;const F=r[x][1];Je(F)&&Je(p)&&(p=He(!0,F,p)),r[x]=[h,p,...B]}}}}const Ai=new nt().freeze();function Ue(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ve(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function We(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function It(e){if(!Je(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Be(e){return wi(e)?e:new ki(e)}function wi(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ti(e){return typeof e=="string"||Ii(e)}function Ii(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}export{nn as A,en as a,St as b,ht as c,$r as d,He as e,cn as f,ln as g,o as h,Je as i,ie as j,oe as k,Ye as l,Z as m,we as n,m as o,u as p,_e as q,Fi as r,H as s,ui as t,Ai as u,T as v,se as w,et as x,E as y,_ as z};
@@ -0,0 +1,7 @@
1
+ import{l as Y,$ as D,e as M}from"./index-Dk5t_-56.js";import"./tool-windows-DWUG3k_L.js";var $=(function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
2
+ `+o.showPosition()+`
3
+ Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=(function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
5
+ `+e+"^"},test_match:function(t,e){var n,s,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length;i++)if(n=this._input.match(this.rules[r[i]]),n&&(!e||n[0].length>e[0].length)){if(e=n,s=i,this.options.backtrack_lexer){if(t=this.test_match(n,r[i]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,r[s]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return u})();m.lexer=k;function x(){this.yy={}}return x.prototype=m,m.Parser=x,new x})();$.parser=$;const B=$,j={info:!1};let O=j.info;const V=a=>{O=a},X=()=>O,q=()=>{O=j.info},C={clear:q,setInfo:V,getInfo:X},G=(a,f,m)=>{Y.debug(`rendering info diagram
7
+ `+a);const k=D(f);M(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${m}`)},H={draw:G},Q={parser:B,db:C,renderer:H};export{Q as diagram};
@@ -0,0 +1,7 @@
1
+ import{l as Y,aH as D,e as M}from"./mermaid.core-GIkiJOrg.js";import"./tool-windows-DWUG3k_L.js";var O=(function(){var a=function(u,t,e,n){for(e=e||{},n=u.length;n--;e[u[n]]=t);return e},f=[6,9,10],m={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,d){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},a(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},a(f,[2,3]),a(f,[2,4]),a(f,[2,5]),a(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],d=this.table,P="",v=0,L=0,N=2,T=1,R=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var E in this.yy)Object.prototype.hasOwnProperty.call(this.yy,E)&&(p.yy[E]=this.yy[E]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var z=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var y;return y=s.pop()||o.lex()||T,typeof y!="number"&&(y instanceof Array&&(s=y,y=s.pop()),y=e.symbols_[y]||y),y}for(var l,g,h,w,_={},b,c,F,S;;){if(g=n[n.length-1],this.defaultActions[g]?h=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),h=d[g]&&d[g][l]),typeof h>"u"||!h.length||!h[0]){var A="";S=[];for(b in d[g])this.terminals_[b]&&b>N&&S.push("'"+this.terminals_[b]+"'");o.showPosition?A="Parse error on line "+(v+1)+`:
2
+ `+o.showPosition()+`
3
+ Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":A="Parse error on line "+(v+1)+": Unexpected "+(l==T?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError(A,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(h[0]instanceof Array&&h.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(h[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(h[1]),l=null,L=o.yyleng,P=o.yytext,v=o.yylineno,I=o.yylloc;break;case 2:if(c=this.productions_[h[1]][1],_.$=r[r.length-c],_._$={first_line:i[i.length-(c||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(c||1)].first_column,last_column:i[i.length-1].last_column},z&&(_._$.range=[i[i.length-(c||1)].range[0],i[i.length-1].range[1]]),w=this.performAction.apply(_,[P,L,v,p.yy,h[1],r,i].concat(R)),typeof w<"u")return w;c&&(n=n.slice(0,-1*c*2),r=r.slice(0,-1*c),i=i.slice(0,-1*c)),n.push(this.productions_[h[1]][0]),r.push(_.$),i.push(_._$),F=d[n[n.length-2]][n[n.length-1]],n.push(F);break;case 3:return!0}}return!0}},k=(function(){var u={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
5
+ `+e+"^"},test_match:function(t,e){var n,s,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length;i++)if(n=this._input.match(this.rules[r[i]]),n&&(!e||n[0].length>e[0].length)){if(e=n,s=i,this.options.backtrack_lexer){if(t=this.test_match(n,r[i]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,r[s]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return u})();m.lexer=k;function x(){this.yy={}}return x.prototype=m,m.Parser=x,new x})();O.parser=O;const B=O,j={info:!1};let $=j.info;const H=a=>{$=a},V=()=>$,X=()=>{$=j.info},q={clear:X,setInfo:H,getInfo:V},C=(a,f,m)=>{Y.debug(`rendering info diagram
7
+ `+a);const k=D(f);M(k,100,400,!0),k.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${m}`)},G={draw:C},Q={parser:B,db:q,renderer:G};export{Q as diagram};
@@ -0,0 +1 @@
1
+ function t(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{t as i};
@@ -0,0 +1 @@
1
+ function t(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{t as i};
@@ -0,0 +1 @@
1
+ function fr(x){var pr=x.statementIndent,ur=x.jsonld,br=x.json||ur,k=x.typescript,U=x.wordCharacters||/[\w$\xa1-\uffff]/,wr=(function(){function r(y){return{type:y,style:"keyword"}}var e=r("keyword a"),t=r("keyword b"),f=r("keyword c"),u=r("keyword d"),c=r("operator"),m={type:"atom",style:"atom"};return{if:r("if"),while:e,with:e,else:t,do:t,try:t,finally:t,return:u,break:u,continue:u,new:r("new"),delete:f,void:f,throw:f,debugger:r("debugger"),var:r("var"),const:r("var"),let:r("var"),function:r("function"),catch:r("catch"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:c,typeof:c,instanceof:c,true:m,false:m,null:m,undefined:m,NaN:m,Infinity:m,this:r("this"),class:r("class"),super:r("atom"),yield:f,export:r("export"),import:r("import"),extends:f,await:f}})(),hr=/[+\-*&%=<>!?|~^@]/,Or=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function qr(r){for(var e=!1,t,f=!1;(t=r.next())!=null;){if(!e){if(t=="/"&&!f)return;t=="["?f=!0:f&&t=="]"&&(f=!1)}e=!e&&t=="\\"}}var D,G;function b(r,e,t){return D=r,G=t,e}function S(r,e){var t=r.next();if(t=='"'||t=="'")return e.tokenize=Nr(t),e.tokenize(r,e);if(t=="."&&r.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return b("number","number");if(t=="."&&r.match(".."))return b("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(t))return b(t);if(t=="="&&r.eat(">"))return b("=>","operator");if(t=="0"&&r.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return b("number","number");if(/\d/.test(t))return r.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),b("number","number");if(t=="/")return r.eat("*")?(e.tokenize=H,H(r,e)):r.eat("/")?(r.skipToEnd(),b("comment","comment")):ce(r,e,1)?(qr(r),r.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),b("regexp","string.special")):(r.eat("="),b("operator","operator",r.current()));if(t=="`")return e.tokenize=L,L(r,e);if(t=="#"&&r.peek()=="!")return r.skipToEnd(),b("meta","meta");if(t=="#"&&r.eatWhile(U))return b("variable","property");if(t=="<"&&r.match("!--")||t=="-"&&r.match("->")&&!/\S/.test(r.string.slice(0,r.start)))return r.skipToEnd(),b("comment","comment");if(hr.test(t))return(t!=">"||!e.lexical||e.lexical.type!=">")&&(r.eat("=")?(t=="!"||t=="=")&&r.eat("="):/[<>*+\-|&?]/.test(t)&&(r.eat(t),t==">"&&r.eat(t))),t=="?"&&r.eat(".")?b("."):b("operator","operator",r.current());if(U.test(t)){r.eatWhile(U);var f=r.current();if(e.lastType!="."){if(wr.propertyIsEnumerable(f)){var u=wr[f];return b(u.type,u.style,f)}if(f=="async"&&r.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return b("async","keyword",f)}return b("variable","variable",f)}}function Nr(r){return function(e,t){var f=!1,u;if(ur&&e.peek()=="@"&&e.match(Or))return t.tokenize=S,b("jsonld-keyword","meta");for(;(u=e.next())!=null&&!(u==r&&!f);)f=!f&&u=="\\";return f||(t.tokenize=S),b("string","string")}}function H(r,e){for(var t=!1,f;f=r.next();){if(f=="/"&&t){e.tokenize=S;break}t=f=="*"}return b("comment","comment")}function L(r,e){for(var t=!1,f;(f=r.next())!=null;){if(!t&&(f=="`"||f=="$"&&r.eat("{"))){e.tokenize=S;break}t=!t&&f=="\\"}return b("quasi","string.special",r.current())}var Br="([{}])";function ar(r,e){e.fatArrowAt&&(e.fatArrowAt=null);var t=r.string.indexOf("=>",r.start);if(!(t<0)){if(k){var f=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(r.string.slice(r.start,t));f&&(t=f.index)}for(var u=0,c=!1,m=t-1;m>=0;--m){var y=r.string.charAt(m),v=Br.indexOf(y);if(v>=0&&v<3){if(!u){++m;break}if(--u==0){y=="("&&(c=!0);break}}else if(v>=3&&v<6)++u;else if(U.test(y))c=!0;else if(/["'\/`]/.test(y))for(;;--m){if(m==0)return;var K=r.string.charAt(m-1);if(K==y&&r.string.charAt(m-2)!="\\"){m--;break}}else if(c&&!u){++m;break}}c&&!u&&(e.fatArrowAt=m)}}var Fr={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function xr(r,e,t,f,u,c){this.indented=r,this.column=e,this.type=t,this.prev=u,this.info=c,f!=null&&(this.align=f)}function Jr(r,e){for(var t=r.localVars;t;t=t.next)if(t.name==e)return!0;for(var f=r.context;f;f=f.prev)for(var t=f.vars;t;t=t.next)if(t.name==e)return!0}function Mr(r,e,t,f,u){var c=r.cc;for(i.state=r,i.stream=u,i.marked=null,i.cc=c,i.style=e,r.lexical.hasOwnProperty("align")||(r.lexical.align=!0);;){var m=c.length?c.pop():br?p:w;if(m(t,f)){for(;c.length&&c[c.length-1].lex;)c.pop()();return i.marked?i.marked:t=="variable"&&Jr(r,f)?"variableName.local":e}}}var i={state:null,marked:null,cc:null};function o(){for(var r=arguments.length-1;r>=0;r--)i.cc.push(arguments[r])}function n(){return o.apply(null,arguments),!0}function or(r,e){for(var t=e;t;t=t.next)if(t.name==r)return!0;return!1}function q(r){var e=i.state;if(i.marked="def",e.context){if(e.lexical.info=="var"&&e.context&&e.context.block){var t=gr(r,e.context);if(t!=null){e.context=t;return}}else if(!or(r,e.localVars)){e.localVars=new Q(r,e.localVars);return}}x.globalVars&&!or(r,e.globalVars)&&(e.globalVars=new Q(r,e.globalVars))}function gr(r,e){if(e)if(e.block){var t=gr(r,e.prev);return t?t==e.prev?e:new P(t,e.vars,!0):null}else return or(r,e.vars)?e:new P(e.prev,new Q(r,e.vars),!1);else return null}function X(r){return r=="public"||r=="private"||r=="protected"||r=="abstract"||r=="readonly"}function P(r,e,t){this.prev=r,this.vars=e,this.block=t}function Q(r,e){this.name=r,this.next=e}var Dr=new Q("this",new Q("arguments",null));function E(){i.state.context=new P(i.state.context,i.state.localVars,!1),i.state.localVars=Dr}function Y(){i.state.context=new P(i.state.context,i.state.localVars,!0),i.state.localVars=null}E.lex=Y.lex=!0;function T(){i.state.localVars=i.state.context.vars,i.state.context=i.state.context.prev}T.lex=!0;function s(r,e){var t=function(){var f=i.state,u=f.indented;if(f.lexical.type=="stat")u=f.lexical.indented;else for(var c=f.lexical;c&&c.type==")"&&c.align;c=c.prev)u=c.indented;f.lexical=new xr(u,i.stream.column(),r,null,f.lexical,e)};return t.lex=!0,t}function a(){var r=i.state;r.lexical.prev&&(r.lexical.type==")"&&(r.indented=r.lexical.indented),r.lexical=r.lexical.prev)}a.lex=!0;function l(r){function e(t){return t==r?n():r==";"||t=="}"||t==")"||t=="]"?o():n(e)}return e}function w(r,e){return r=="var"?n(s("vardef",e),mr,l(";"),a):r=="keyword a"?n(s("form"),sr,w,a):r=="keyword b"?n(s("form"),w,a):r=="keyword d"?i.stream.match(/^\s*$/,!1)?n():n(s("stat"),N,l(";"),a):r=="debugger"?n(l(";")):r=="{"?n(s("}"),Y,rr,a,T):r==";"?n():r=="if"?(i.state.lexical.info=="else"&&i.state.cc[i.state.cc.length-1]==a&&i.state.cc.pop()(),n(s("form"),sr,w,a,jr)):r=="function"?n(_):r=="for"?n(s("form"),Y,zr,w,T,a):r=="class"||k&&e=="interface"?(i.marked="keyword",n(s("form",r=="class"?r:e),Sr,a)):r=="variable"?k&&e=="declare"?(i.marked="keyword",n(w)):k&&(e=="module"||e=="enum"||e=="type")&&i.stream.match(/^\s*\w/,!1)?(i.marked="keyword",e=="enum"?n($r):e=="type"?n(_r,l("operator"),d,l(";")):n(s("form"),V,l("{"),s("}"),rr,a,a)):k&&e=="namespace"?(i.marked="keyword",n(s("form"),p,w,a)):k&&e=="abstract"?(i.marked="keyword",n(w)):n(s("stat"),Kr):r=="switch"?n(s("form"),sr,l("{"),s("}","switch"),Y,rr,a,a,T):r=="case"?n(p,l(":")):r=="default"?n(l(":")):r=="catch"?n(s("form"),E,Lr,w,a,T):r=="export"?n(s("stat"),fe,a):r=="import"?n(s("stat"),ue,a):r=="async"?n(w):e=="@"?n(p,w):o(s("stat"),p,l(";"),a)}function Lr(r){if(r=="(")return n(O,l(")"))}function p(r,e){return yr(r,e,!1)}function g(r,e){return yr(r,e,!0)}function sr(r){return r!="("?o():n(s(")"),N,l(")"),a)}function yr(r,e,t){if(i.state.fatArrowAt==i.stream.start){var f=t?Tr:vr;if(r=="(")return n(E,s(")"),h(O,")"),a,l("=>"),f,T);if(r=="variable")return o(E,V,l("=>"),f,T)}var u=t?B:I;return Fr.hasOwnProperty(r)?n(u):r=="function"?n(_,u):r=="class"||k&&e=="interface"?(i.marked="keyword",n(s("form"),ie,a)):r=="keyword c"||r=="async"?n(t?g:p):r=="("?n(s(")"),N,l(")"),a,u):r=="operator"||r=="spread"?n(t?g:p):r=="["?n(s("]"),oe,a,u):r=="{"?R(C,"}",null,u):r=="quasi"?o(Z,u):r=="new"?n(Qr(t)):n()}function N(r){return r.match(/[;\}\)\],]/)?o():o(p)}function I(r,e){return r==","?n(N):B(r,e,!1)}function B(r,e,t){var f=t==!1?I:B,u=t==!1?p:g;if(r=="=>")return n(E,t?Tr:vr,T);if(r=="operator")return/\+\+|--/.test(e)||k&&e=="!"?n(f):k&&e=="<"&&i.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?n(s(">"),h(d,">"),a,f):e=="?"?n(p,l(":"),u):n(u);if(r=="quasi")return o(Z,f);if(r!=";"){if(r=="(")return R(g,")","call",f);if(r==".")return n(Ur,f);if(r=="[")return n(s("]"),N,l("]"),a,f);if(k&&e=="as")return i.marked="keyword",n(d,f);if(r=="regexp")return i.state.lastType=i.marked="operator",i.stream.backUp(i.stream.pos-i.stream.start-1),n(u)}}function Z(r,e){return r!="quasi"?o():e.slice(e.length-2)!="${"?n(Z):n(N,Pr)}function Pr(r){if(r=="}")return i.marked="string.special",i.state.tokenize=L,n(Z)}function vr(r){return ar(i.stream,i.state),o(r=="{"?w:p)}function Tr(r){return ar(i.stream,i.state),o(r=="{"?w:g)}function Qr(r){return function(e){return e=="."?n(r?Wr:Rr):e=="variable"&&k?n(Cr,r?B:I):o(r?g:p)}}function Rr(r,e){if(e=="target")return i.marked="keyword",n(I)}function Wr(r,e){if(e=="target")return i.marked="keyword",n(B)}function Kr(r){return r==":"?n(a,w):o(I,l(";"),a)}function Ur(r){if(r=="variable")return i.marked="property",n()}function C(r,e){if(r=="async")return i.marked="property",n(C);if(r=="variable"||i.style=="keyword"){if(i.marked="property",e=="get"||e=="set")return n(Gr);var t;return k&&i.state.fatArrowAt==i.stream.start&&(t=i.stream.match(/^\s*:\s*/,!1))&&(i.state.fatArrowAt=i.stream.pos+t[0].length),n($)}else{if(r=="number"||r=="string")return i.marked=ur?"property":i.style+" property",n($);if(r=="jsonld-keyword")return n($);if(k&&X(e))return i.marked="keyword",n(C);if(r=="[")return n(p,F,l("]"),$);if(r=="spread")return n(g,$);if(e=="*")return i.marked="keyword",n(C);if(r==":")return o($)}}function Gr(r){return r!="variable"?o($):(i.marked="property",n(_))}function $(r){if(r==":")return n(g);if(r=="(")return o(_)}function h(r,e,t){function f(u,c){if(t?t.indexOf(u)>-1:u==","){var m=i.state.lexical;return m.info=="call"&&(m.pos=(m.pos||0)+1),n(function(y,v){return y==e||v==e?o():o(r)},f)}return u==e||c==e?n():t&&t.indexOf(";")>-1?o(r):n(l(e))}return function(u,c){return u==e||c==e?n():o(r,f)}}function R(r,e,t){for(var f=3;f<arguments.length;f++)i.cc.push(arguments[f]);return n(s(e,t),h(r,e),a)}function rr(r){return r=="}"?n():o(w,rr)}function F(r,e){if(k){if(r==":")return n(d);if(e=="?")return n(F)}}function Hr(r,e){if(k&&(r==":"||e=="in"))return n(d)}function Vr(r){if(k&&r==":")return i.stream.match(/^\s*\w+\s+is\b/,!1)?n(p,Xr,d):n(d)}function Xr(r,e){if(e=="is")return i.marked="keyword",n()}function d(r,e){if(e=="keyof"||e=="typeof"||e=="infer"||e=="readonly")return i.marked="keyword",n(e=="typeof"?g:d);if(r=="variable"||e=="void")return i.marked="type",n(A);if(e=="|"||e=="&")return n(d);if(r=="string"||r=="number"||r=="atom")return n(A);if(r=="[")return n(s("]"),h(d,"]",","),a,A);if(r=="{")return n(s("}"),lr,a,A);if(r=="(")return n(h(dr,")"),Yr,A);if(r=="<")return n(h(d,">"),d);if(r=="quasi")return o(cr,A)}function Yr(r){if(r=="=>")return n(d)}function lr(r){return r.match(/[\}\)\]]/)?n():r==","||r==";"?n(lr):o(W,lr)}function W(r,e){if(r=="variable"||i.style=="keyword")return i.marked="property",n(W);if(e=="?"||r=="number"||r=="string")return n(W);if(r==":")return n(d);if(r=="[")return n(l("variable"),Hr,l("]"),W);if(r=="(")return o(M,W);if(!r.match(/[;\}\)\],]/))return n()}function cr(r,e){return r!="quasi"?o():e.slice(e.length-2)!="${"?n(cr):n(d,Zr)}function Zr(r){if(r=="}")return i.marked="string.special",i.state.tokenize=L,n(cr)}function dr(r,e){return r=="variable"&&i.stream.match(/^\s*[?:]/,!1)||e=="?"?n(dr):r==":"?n(d):r=="spread"?n(dr):o(d)}function A(r,e){if(e=="<")return n(s(">"),h(d,">"),a,A);if(e=="|"||r=="."||e=="&")return n(d);if(r=="[")return n(d,l("]"),A);if(e=="extends"||e=="implements")return i.marked="keyword",n(d);if(e=="?")return n(d,l(":"),d)}function Cr(r,e){if(e=="<")return n(s(">"),h(d,">"),a,A)}function er(){return o(d,re)}function re(r,e){if(e=="=")return n(d)}function mr(r,e){return e=="enum"?(i.marked="keyword",n($r)):o(V,F,z,ne)}function V(r,e){if(k&&X(e))return i.marked="keyword",n(V);if(r=="variable")return q(e),n();if(r=="spread")return n(V);if(r=="[")return R(ee,"]");if(r=="{")return R(Ar,"}")}function Ar(r,e){return r=="variable"&&!i.stream.match(/^\s*:/,!1)?(q(e),n(z)):(r=="variable"&&(i.marked="property"),r=="spread"?n(V):r=="}"?o():r=="["?n(p,l("]"),l(":"),Ar):n(l(":"),V,z))}function ee(){return o(V,z)}function z(r,e){if(e=="=")return n(g)}function ne(r){if(r==",")return n(mr)}function jr(r,e){if(r=="keyword b"&&e=="else")return n(s("form","else"),w,a)}function zr(r,e){if(e=="await")return n(zr);if(r=="(")return n(s(")"),te,a)}function te(r){return r=="var"?n(mr,J):r=="variable"?n(J):o(J)}function J(r,e){return r==")"?n():r==";"?n(J):e=="in"||e=="of"?(i.marked="keyword",n(p,J)):o(p,J)}function _(r,e){if(e=="*")return i.marked="keyword",n(_);if(r=="variable")return q(e),n(_);if(r=="(")return n(E,s(")"),h(O,")"),a,Vr,w,T);if(k&&e=="<")return n(s(">"),h(er,">"),a,_)}function M(r,e){if(e=="*")return i.marked="keyword",n(M);if(r=="variable")return q(e),n(M);if(r=="(")return n(E,s(")"),h(O,")"),a,Vr,T);if(k&&e=="<")return n(s(">"),h(er,">"),a,M)}function _r(r,e){if(r=="keyword"||r=="variable")return i.marked="type",n(_r);if(e=="<")return n(s(">"),h(er,">"),a)}function O(r,e){return e=="@"&&n(p,O),r=="spread"?n(O):k&&X(e)?(i.marked="keyword",n(O)):k&&r=="this"?n(F,z):o(V,F,z)}function ie(r,e){return r=="variable"?Sr(r,e):nr(r,e)}function Sr(r,e){if(r=="variable")return q(e),n(nr)}function nr(r,e){if(e=="<")return n(s(">"),h(er,">"),a,nr);if(e=="extends"||e=="implements"||k&&r==",")return e=="implements"&&(i.marked="keyword"),n(k?d:p,nr);if(r=="{")return n(s("}"),j,a)}function j(r,e){if(r=="async"||r=="variable"&&(e=="static"||e=="get"||e=="set"||k&&X(e))&&i.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return i.marked="keyword",n(j);if(r=="variable"||i.style=="keyword")return i.marked="property",n(tr,j);if(r=="number"||r=="string")return n(tr,j);if(r=="[")return n(p,F,l("]"),tr,j);if(e=="*")return i.marked="keyword",n(j);if(k&&r=="(")return o(M,j);if(r==";"||r==",")return n(j);if(r=="}")return n();if(e=="@")return n(p,j)}function tr(r,e){if(e=="!"||e=="?")return n(tr);if(r==":")return n(d,z);if(e=="=")return n(g);var t=i.state.lexical.prev,f=t&&t.info=="interface";return o(f?M:_)}function fe(r,e){return e=="*"?(i.marked="keyword",n(kr,l(";"))):e=="default"?(i.marked="keyword",n(p,l(";"))):r=="{"?n(h(Er,"}"),kr,l(";")):o(w)}function Er(r,e){if(e=="as")return i.marked="keyword",n(l("variable"));if(r=="variable")return o(g,Er)}function ue(r){return r=="string"?n():r=="("?o(p):r=="."?o(I):o(ir,Ir,kr)}function ir(r,e){return r=="{"?R(ir,"}"):(r=="variable"&&q(e),e=="*"&&(i.marked="keyword"),n(ae))}function Ir(r){if(r==",")return n(ir,Ir)}function ae(r,e){if(e=="as")return i.marked="keyword",n(ir)}function kr(r,e){if(e=="from")return i.marked="keyword",n(p)}function oe(r){return r=="]"?n():o(h(g,"]"))}function $r(){return o(s("form"),V,l("{"),s("}"),h(se,"}"),a,a)}function se(){return o(V,z)}function le(r,e){return r.lastType=="operator"||r.lastType==","||hr.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}function ce(r,e,t){return e.tokenize==S&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||e.lastType=="quasi"&&/\{\s*$/.test(r.string.slice(0,r.pos-t))}return{name:x.name,startState:function(r){var e={tokenize:S,lastType:"sof",cc:[],lexical:new xr(-r,0,"block",!1),localVars:x.localVars,context:x.localVars&&new P(null,null,!1),indented:0};return x.globalVars&&typeof x.globalVars=="object"&&(e.globalVars=x.globalVars),e},token:function(r,e){if(r.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=r.indentation(),ar(r,e)),e.tokenize!=H&&r.eatSpace())return null;var t=e.tokenize(r,e);return D=="comment"?t:(e.lastType=D=="operator"&&(G=="++"||G=="--")?"incdec":D,Mr(e,t,D,G,r))},indent:function(r,e,t){if(r.tokenize==H||r.tokenize==L)return null;if(r.tokenize!=S)return 0;var f=e&&e.charAt(0),u=r.lexical,c;if(!/^\s*else\b/.test(e))for(var m=r.cc.length-1;m>=0;--m){var y=r.cc[m];if(y==a)u=u.prev;else if(y!=jr&&y!=T)break}for(;(u.type=="stat"||u.type=="form")&&(f=="}"||(c=r.cc[r.cc.length-1])&&(c==I||c==B)&&!/^[,\.=+\-*:?[\(]/.test(e));)u=u.prev;pr&&u.type==")"&&u.prev.type=="stat"&&(u=u.prev);var v=u.type,K=f==v;return v=="vardef"?u.indented+(r.lastType=="operator"||r.lastType==","?u.info.length+1:0):v=="form"&&f=="{"?u.indented:v=="form"?u.indented+t.unit:v=="stat"?u.indented+(le(r,e)?pr||t.unit:0):u.info=="switch"&&!K&&x.doubleIndentSwitch!=!1?u.indented+(/^(?:case|default)\b/.test(e)?t.unit:2*t.unit):u.align?u.column+(K?0:1):u.indented+(K?0:t.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:br?void 0:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}const de=fr({name:"javascript"}),me=fr({name:"json",json:!0}),ke=fr({name:"json",jsonld:!0}),pe=fr({name:"typescript",typescript:!0});export{de as javascript,me as json,ke as jsonld,pe as typescript};
@@ -0,0 +1,139 @@
1
+ import{a as yt,s as ft,b as dt,c as pt,v as gt,x as mt,g as I,d as H,e as xt,z as kt}from"./index-Dk5t_-56.js";import{a as _t,g as it,f as bt,d as vt}from"./svgDrawCommon-08f97a94-JdKl-BWQ.js";import{a as Q}from"./arc-Do7iheP0.js";import"./tool-windows-DWUG3k_L.js";import"./path-CbwjOpE9.js";var X=(function(){var t=function(p,s,r,a){for(r=r||{},a=p.length;a--;r[p[a]]=s);return r},e=[6,8,10,11,12,14,16,17,18],i=[1,9],l=[1,10],n=[1,11],h=[1,12],c=[1,13],f=[1,14],y={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:function(s,r,a,u,d,o,w){var k=o.length-1;switch(d){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.addTask(o[k-1],o[k]),this.$="task";break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:i,12:l,14:n,16:h,17:c,18:f},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:function(s,r){if(r.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=r,a}},parse:function(s){var r=this,a=[0],u=[],d=[null],o=[],w=this.table,k="",R=0,Z=0,lt=2,J=1,ct=o.slice.call(arguments,1),x=Object.create(this.lexer),S={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(S.yy[z]=this.yy[z]);x.setInput(s,S.yy),S.yy.lexer=x,S.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var Y=x.yylloc;o.push(Y);var ht=x.options&&x.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ut(){var T;return T=u.pop()||x.lex()||J,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=r.symbols_[T]||T),T}for(var _,E,b,O,A={},N,$,K,B;;){if(E=a[a.length-1],this.defaultActions[E]?b=this.defaultActions[E]:((_===null||typeof _>"u")&&(_=ut()),b=w[E]&&w[E][_]),typeof b>"u"||!b.length||!b[0]){var q="";B=[];for(N in w[E])this.terminals_[N]&&N>lt&&B.push("'"+this.terminals_[N]+"'");x.showPosition?q="Parse error on line "+(R+1)+`:
2
+ `+x.showPosition()+`
3
+ Expecting `+B.join(", ")+", got '"+(this.terminals_[_]||_)+"'":q="Parse error on line "+(R+1)+": Unexpected "+(_==J?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(q,{text:x.match,token:this.terminals_[_]||_,line:x.yylineno,loc:Y,expected:B})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+E+", token: "+_);switch(b[0]){case 1:a.push(_),d.push(x.yytext),o.push(x.yylloc),a.push(b[1]),_=null,Z=x.yyleng,k=x.yytext,R=x.yylineno,Y=x.yylloc;break;case 2:if($=this.productions_[b[1]][1],A.$=d[d.length-$],A._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},ht&&(A._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),O=this.performAction.apply(A,[k,Z,R,S.yy,b[1],d,o].concat(ct)),typeof O<"u")return O;$&&(a=a.slice(0,-1*$*2),d=d.slice(0,-1*$),o=o.slice(0,-1*$)),a.push(this.productions_[b[1]][0]),d.push(A.$),o.push(A._$),K=w[a[a.length-2]][a[a.length-1]],a.push(K);break;case 3:return!0}}return!0}},m=(function(){var p={EOF:1,parseError:function(r,a){if(this.yy.parser)this.yy.parser.parseError(r,a);else throw new Error(r)},setInput:function(s,r){return this.yy=r||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var r=s.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var r=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===u.length?this.yylloc.first_column:0)+u[u.length-a.length].length-a[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),r=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
+ `+r+"^"},test_match:function(s,r){var a,u,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),u=s[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],a=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var o in d)this[o]=d[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,r,a,u;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),o=0;o<d.length;o++)if(a=this._input.match(this.rules[d[o]]),a&&(!r||a[0].length>r[0].length)){if(r=a,u=o,this.options.backtrack_lexer){if(s=this.test_match(a,d[o]),s!==!1)return s;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(s=this.test_match(r,d[u]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,a,u,d){switch(u){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return p})();y.lexer=m;function g(){this.yy={}}return g.prototype=y,y.Parser=g,new g})();X.parser=X;const wt=X;let C="";const G=[],V=[],F=[],$t=function(){G.length=0,V.length=0,C="",F.length=0,kt()},Tt=function(t){C=t,G.push(t)},Mt=function(){return G},St=function(){let t=D();const e=100;let i=0;for(;!t&&i<e;)t=D(),i++;return V.push(...F),V},Et=function(){const t=[];return V.forEach(i=>{i.people&&t.push(...i.people)}),[...new Set(t)].sort()},Pt=function(t,e){const i=e.substr(1).split(":");let l=0,n=[];i.length===1?(l=Number(i[0]),n=[]):(l=Number(i[0]),n=i[1].split(","));const h=n.map(f=>f.trim()),c={section:C,type:C,people:h,task:t,score:l};F.push(c)},It=function(t){const e={section:C,type:C,description:t,task:t,classes:[]};V.push(e)},D=function(){const t=function(i){return F[i].processed};let e=!0;for(const[i,l]of F.entries())t(i),e=e&&l.processed;return e},At=function(){return Et()},tt={getConfig:()=>I().journey,clear:$t,setDiagramTitle:mt,getDiagramTitle:gt,setAccTitle:pt,getAccTitle:dt,setAccDescription:ft,getAccDescription:yt,addSection:Tt,getSections:Mt,getTasks:St,addTask:Pt,addTaskOrg:It,getActors:At},Ct=t=>`.label {
7
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
8
+ font-family: var(--mermaid-font-family);
9
+ color: ${t.textColor};
10
+ }
11
+ .mouth {
12
+ stroke: #666;
13
+ }
14
+
15
+ line {
16
+ stroke: ${t.textColor}
17
+ }
18
+
19
+ .legend {
20
+ fill: ${t.textColor};
21
+ }
22
+
23
+ .label text {
24
+ fill: #333;
25
+ }
26
+ .label {
27
+ color: ${t.textColor}
28
+ }
29
+
30
+ .face {
31
+ ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
32
+ stroke: #999;
33
+ }
34
+
35
+ .node rect,
36
+ .node circle,
37
+ .node ellipse,
38
+ .node polygon,
39
+ .node path {
40
+ fill: ${t.mainBkg};
41
+ stroke: ${t.nodeBorder};
42
+ stroke-width: 1px;
43
+ }
44
+
45
+ .node .label {
46
+ text-align: center;
47
+ }
48
+ .node.clickable {
49
+ cursor: pointer;
50
+ }
51
+
52
+ .arrowheadPath {
53
+ fill: ${t.arrowheadColor};
54
+ }
55
+
56
+ .edgePath .path {
57
+ stroke: ${t.lineColor};
58
+ stroke-width: 1.5px;
59
+ }
60
+
61
+ .flowchart-link {
62
+ stroke: ${t.lineColor};
63
+ fill: none;
64
+ }
65
+
66
+ .edgeLabel {
67
+ background-color: ${t.edgeLabelBackground};
68
+ rect {
69
+ opacity: 0.5;
70
+ }
71
+ text-align: center;
72
+ }
73
+
74
+ .cluster rect {
75
+ }
76
+
77
+ .cluster text {
78
+ fill: ${t.titleColor};
79
+ }
80
+
81
+ div.mermaidTooltip {
82
+ position: absolute;
83
+ text-align: center;
84
+ max-width: 200px;
85
+ padding: 2px;
86
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
87
+ font-family: var(--mermaid-font-family);
88
+ font-size: 12px;
89
+ background: ${t.tertiaryColor};
90
+ border: 1px solid ${t.border2};
91
+ border-radius: 2px;
92
+ pointer-events: none;
93
+ z-index: 100;
94
+ }
95
+
96
+ .task-type-0, .section-type-0 {
97
+ ${t.fillType0?`fill: ${t.fillType0}`:""};
98
+ }
99
+ .task-type-1, .section-type-1 {
100
+ ${t.fillType0?`fill: ${t.fillType1}`:""};
101
+ }
102
+ .task-type-2, .section-type-2 {
103
+ ${t.fillType0?`fill: ${t.fillType2}`:""};
104
+ }
105
+ .task-type-3, .section-type-3 {
106
+ ${t.fillType0?`fill: ${t.fillType3}`:""};
107
+ }
108
+ .task-type-4, .section-type-4 {
109
+ ${t.fillType0?`fill: ${t.fillType4}`:""};
110
+ }
111
+ .task-type-5, .section-type-5 {
112
+ ${t.fillType0?`fill: ${t.fillType5}`:""};
113
+ }
114
+ .task-type-6, .section-type-6 {
115
+ ${t.fillType0?`fill: ${t.fillType6}`:""};
116
+ }
117
+ .task-type-7, .section-type-7 {
118
+ ${t.fillType0?`fill: ${t.fillType7}`:""};
119
+ }
120
+
121
+ .actor-0 {
122
+ ${t.actor0?`fill: ${t.actor0}`:""};
123
+ }
124
+ .actor-1 {
125
+ ${t.actor1?`fill: ${t.actor1}`:""};
126
+ }
127
+ .actor-2 {
128
+ ${t.actor2?`fill: ${t.actor2}`:""};
129
+ }
130
+ .actor-3 {
131
+ ${t.actor3?`fill: ${t.actor3}`:""};
132
+ }
133
+ .actor-4 {
134
+ ${t.actor4?`fill: ${t.actor4}`:""};
135
+ }
136
+ .actor-5 {
137
+ ${t.actor5?`fill: ${t.actor5}`:""};
138
+ }
139
+ `,Vt=Ct,U=function(t,e){return vt(t,e)},Ft=function(t,e){const l=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),n=t.append("g");n.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),n.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const m=Q().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(y){const m=Q().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function f(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?h(n):e.score<3?c(n):f(n),l},rt=function(t,e){const i=t.append("circle");return i.attr("cx",e.cx),i.attr("cy",e.cy),i.attr("class","actor-"+e.pos),i.attr("fill",e.fill),i.attr("stroke",e.stroke),i.attr("r",e.r),i.class!==void 0&&i.attr("class",i.class),e.title!==void 0&&i.append("title").text(e.title),i},at=function(t,e){return bt(t,e)},Lt=function(t,e){function i(n,h,c,f,y){return n+","+h+" "+(n+c)+","+h+" "+(n+c)+","+(h+f-y)+" "+(n+c-y*1.2)+","+(h+f)+" "+n+","+(h+f)}const l=t.append("polygon");l.attr("points",i(e.x,e.y,50,20,7)),l.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,at(t,e)},Rt=function(t,e,i){const l=t.append("g"),n=it();n.x=e.x,n.y=e.y,n.fill=e.fill,n.width=i.width*e.taskCount+i.diagramMarginX*(e.taskCount-1),n.height=i.height,n.class="journey-section section-type-"+e.num,n.rx=3,n.ry=3,U(l,n),ot(i)(e.text,l,n.x,n.y,n.width,n.height,{class:"journey-section section-type-"+e.num},i,e.colour)};let et=-1;const Nt=function(t,e,i){const l=e.x+i.width/2,n=t.append("g");et++,n.append("line").attr("id","task"+et).attr("x1",l).attr("y1",e.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Ft(n,{cx:l,cy:300+(5-e.score)*30,score:e.score});const c=it();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=i.width,c.height=i.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,U(n,c);let f=e.x+14;e.people.forEach(y=>{const m=e.actors[y].color,g={cx:f,cy:e.y,r:7,fill:m,stroke:"#000",title:y,pos:e.actors[y].position};rt(n,g),f+=10}),ot(i)(e.task,n,c.x,c.y,c.width,c.height,{class:"task"},i,e.colour)},Bt=function(t,e){_t(t,e)},ot=(function(){function t(n,h,c,f,y,m,g,p){const s=h.append("text").attr("x",c+y/2).attr("y",f+m/2+5).style("font-color",p).style("text-anchor","middle").text(n);l(s,g)}function e(n,h,c,f,y,m,g,p,s){const{taskFontSize:r,taskFontFamily:a}=p,u=n.split(/<br\s*\/?>/gi);for(let d=0;d<u.length;d++){const o=d*r-r*(u.length-1)/2,w=h.append("text").attr("x",c+y/2).attr("y",f).attr("fill",s).style("text-anchor","middle").style("font-size",r).style("font-family",a);w.append("tspan").attr("x",c+y/2).attr("dy",o).text(u[d]),w.attr("y",f+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(w,g)}}function i(n,h,c,f,y,m,g,p){const s=h.append("switch"),a=s.append("foreignObject").attr("x",c).attr("y",f).attr("width",y).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");a.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(n),e(n,s,c,f,y,m,g,p),l(a,g)}function l(n,h){for(const c in h)c in h&&n.attr(c,h[c])}return function(n){return n.textPlacement==="fo"?i:n.textPlacement==="old"?t:e}})(),jt=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},L={drawRect:U,drawCircle:rt,drawSection:Rt,drawText:at,drawLabel:Lt,drawTask:Nt,drawBackgroundRect:Bt,initGraphics:jt},zt=function(t){Object.keys(t).forEach(function(i){j[i]=t[i]})},M={};function Yt(t){const e=I().journey;let i=60;Object.keys(M).forEach(l=>{const n=M[l].color,h={cx:20,cy:i,r:7,fill:n,stroke:"#000",pos:M[l].position};L.drawCircle(t,h);const c={x:40,y:i+7,fill:"#666",text:l,textMargin:e.boxTextMargin|5};L.drawText(t,c),i+=20})}const j=I().journey,P=j.leftMargin,Ot=function(t,e,i,l){const n=I().journey,h=I().securityLevel;let c;h==="sandbox"&&(c=H("#i"+e));const f=h==="sandbox"?H(c.nodes()[0].contentDocument.body):H("body");v.init();const y=f.select("#"+e);L.initGraphics(y);const m=l.db.getTasks(),g=l.db.getDiagramTitle(),p=l.db.getActors();for(const o in M)delete M[o];let s=0;p.forEach(o=>{M[o]={color:n.actorColours[s%n.actorColours.length],position:s},s++}),Yt(y),v.insert(0,0,P,Object.keys(M).length*50),qt(y,m,0);const r=v.getBounds();g&&y.append("text").text(g).attr("x",P).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const a=r.stopy-r.starty+2*n.diagramMarginY,u=P+r.stopx+2*n.diagramMarginX;xt(y,a,u,n.useMaxWidth),y.append("line").attr("x1",P).attr("y1",n.height*4).attr("x2",u-P-4).attr("y2",n.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const d=g?70:0;y.attr("viewBox",`${r.startx} -25 ${u} ${a+d}`),y.attr("preserveAspectRatio","xMinYMin meet"),y.attr("height",a+d+25)},v={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,i,l){t[e]===void 0?t[e]=i:t[e]=l(i,t[e])},updateBounds:function(t,e,i,l){const n=I().journey,h=this;let c=0;function f(y){return function(g){c++;const p=h.sequenceItems.length-c+1;h.updateVal(g,"starty",e-p*n.boxMargin,Math.min),h.updateVal(g,"stopy",l+p*n.boxMargin,Math.max),h.updateVal(v.data,"startx",t-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopx",i+p*n.boxMargin,Math.max),h.updateVal(g,"startx",t-p*n.boxMargin,Math.min),h.updateVal(g,"stopx",i+p*n.boxMargin,Math.max),h.updateVal(v.data,"starty",e-p*n.boxMargin,Math.min),h.updateVal(v.data,"stopy",l+p*n.boxMargin,Math.max)}}this.sequenceItems.forEach(f())},insert:function(t,e,i,l){const n=Math.min(t,i),h=Math.max(t,i),c=Math.min(e,l),f=Math.max(e,l);this.updateVal(v.data,"startx",n,Math.min),this.updateVal(v.data,"starty",c,Math.min),this.updateVal(v.data,"stopx",h,Math.max),this.updateVal(v.data,"stopy",f,Math.max),this.updateBounds(n,c,h,f)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},W=j.sectionFills,st=j.sectionColours,qt=function(t,e,i){const l=I().journey;let n="";const h=l.height*2+l.diagramMarginY,c=i+h;let f=0,y="#CCC",m="black",g=0;for(const[p,s]of e.entries()){if(n!==s.section){y=W[f%W.length],g=f%W.length,m=st[f%st.length];let a=0;const u=s.section;for(let o=p;o<e.length&&e[o].section==u;o++)a=a+1;const d={x:p*l.taskMargin+p*l.width+P,y:50,text:s.section,fill:y,num:g,colour:m,taskCount:a};L.drawSection(t,d,l),n=s.section,f++}const r=s.people.reduce((a,u)=>(M[u]&&(a[u]=M[u]),a),{});s.x=p*l.taskMargin+p*l.width+P,s.y=c,s.width=l.diagramMarginX,s.height=l.diagramMarginY,s.colour=m,s.fill=y,s.num=g,s.actors=r,L.drawTask(t,s,l),v.insert(s.x,s.y,s.x+s.width+l.taskMargin,450)}},nt={setConf:zt,draw:Ot},Zt={parser:wt,db:tt,renderer:nt,styles:Vt,init:t=>{nt.setConf(t.journey),tt.clear()}};export{Zt as diagram};