strikethroo 4.0.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. package/README.md +16 -2
  2. package/dist/__tests__/fixtures/blueprint-trailing-summary.d.ts +14 -0
  3. package/dist/__tests__/fixtures/blueprint-trailing-summary.d.ts.map +1 -0
  4. package/dist/__tests__/fixtures/blueprint-trailing-summary.js +54 -0
  5. package/dist/__tests__/fixtures/blueprint-trailing-summary.js.map +1 -0
  6. package/dist/cli.js +23 -1
  7. package/dist/cli.js.map +1 -1
  8. package/dist/conflict-detector.d.ts +28 -12
  9. package/dist/conflict-detector.d.ts.map +1 -1
  10. package/dist/conflict-detector.js +45 -53
  11. package/dist/conflict-detector.js.map +1 -1
  12. package/dist/export-profile.d.ts +6 -0
  13. package/dist/export-profile.d.ts.map +1 -1
  14. package/dist/export-profile.js +46 -4
  15. package/dist/export-profile.js.map +1 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +97 -86
  18. package/dist/index.js.map +1 -1
  19. package/dist/metadata.d.ts +12 -1
  20. package/dist/metadata.d.ts.map +1 -1
  21. package/dist/metadata.js +76 -11
  22. package/dist/metadata.js.map +1 -1
  23. package/dist/profiles.d.ts.map +1 -1
  24. package/dist/profiles.js +52 -7
  25. package/dist/profiles.js.map +1 -1
  26. package/dist/prompts.d.ts +6 -0
  27. package/dist/prompts.d.ts.map +1 -1
  28. package/dist/prompts.js +47 -3
  29. package/dist/prompts.js.map +1 -1
  30. package/dist/serve/config-write.d.ts +6 -3
  31. package/dist/serve/config-write.d.ts.map +1 -1
  32. package/dist/serve/config-write.js +20 -21
  33. package/dist/serve/config-write.js.map +1 -1
  34. package/dist/serve/derivation.d.ts +17 -19
  35. package/dist/serve/derivation.d.ts.map +1 -1
  36. package/dist/serve/derivation.js +43 -82
  37. package/dist/serve/derivation.js.map +1 -1
  38. package/dist/serve/events.d.ts +37 -8
  39. package/dist/serve/events.d.ts.map +1 -1
  40. package/dist/serve/events.js +114 -28
  41. package/dist/serve/events.js.map +1 -1
  42. package/dist/serve/self-review.d.ts +37 -7
  43. package/dist/serve/self-review.d.ts.map +1 -1
  44. package/dist/serve/self-review.js +93 -33
  45. package/dist/serve/self-review.js.map +1 -1
  46. package/dist/serve/server.d.ts +107 -0
  47. package/dist/serve/server.d.ts.map +1 -1
  48. package/dist/serve/server.js +502 -135
  49. package/dist/serve/server.js.map +1 -1
  50. package/dist/serve/workspace-model.d.ts +11 -17
  51. package/dist/serve/workspace-model.d.ts.map +1 -1
  52. package/dist/serve/workspace-model.js +84 -83
  53. package/dist/serve/workspace-model.js.map +1 -1
  54. package/dist/skill-scripts/shared/blueprint-parse.d.ts +16 -0
  55. package/dist/skill-scripts/shared/blueprint-parse.d.ts.map +1 -0
  56. package/dist/skill-scripts/shared/blueprint-parse.js +66 -0
  57. package/dist/skill-scripts/shared/blueprint-parse.js.map +1 -0
  58. package/dist/skill-scripts/shared/root.d.ts +6 -0
  59. package/dist/skill-scripts/shared/root.d.ts.map +1 -1
  60. package/dist/skill-scripts/shared/root.js +10 -4
  61. package/dist/skill-scripts/shared/root.js.map +1 -1
  62. package/dist/skill-scripts/shared/safe-fs.d.ts +89 -0
  63. package/dist/skill-scripts/shared/safe-fs.d.ts.map +1 -0
  64. package/dist/skill-scripts/shared/safe-fs.js +324 -0
  65. package/dist/skill-scripts/shared/safe-fs.js.map +1 -0
  66. package/dist/types.d.ts +8 -0
  67. package/dist/types.d.ts.map +1 -1
  68. package/dist/types.js +13 -1
  69. package/dist/types.js.map +1 -1
  70. package/dist/update.d.ts.map +1 -1
  71. package/dist/update.js +15 -1
  72. package/dist/update.js.map +1 -1
  73. package/dist/validation/graph-checks.d.ts +6 -14
  74. package/dist/validation/graph-checks.d.ts.map +1 -1
  75. package/dist/validation/graph-checks.js +8 -15
  76. package/dist/validation/graph-checks.js.map +1 -1
  77. package/dist/validation/metadata-gate.d.ts +2 -6
  78. package/dist/validation/metadata-gate.d.ts.map +1 -1
  79. package/dist/validation/metadata-gate.js +17 -6
  80. package/dist/validation/metadata-gate.js.map +1 -1
  81. package/dist/validation/strict-pass.d.ts.map +1 -1
  82. package/dist/validation/strict-pass.js +50 -6
  83. package/dist/validation/strict-pass.js.map +1 -1
  84. package/dist-web/assets/abnfDiagram-VCTEODGH-CY8QEBrj.js +1 -0
  85. package/dist-web/assets/apl-gfMMiTNf.js +1 -0
  86. package/dist-web/assets/arc-Pry-7G1_.js +1 -0
  87. package/dist-web/assets/architecture-7GRP2DOG-drIky86B.js +1 -0
  88. package/dist-web/assets/architectureDiagram-5GKGNRK7-YZUSf-Fx.js +36 -0
  89. package/dist-web/assets/array-BifhSqXX.js +1 -0
  90. package/dist-web/assets/asciiarmor-C_eisQCp.js +1 -0
  91. package/dist-web/assets/asn1-DCl_8MCW.js +1 -0
  92. package/dist-web/assets/asterisk-BEn0Cwpx.js +1 -0
  93. package/dist-web/assets/blockDiagram-I7D4REHJ-ByyeaYP7.js +129 -0
  94. package/dist-web/assets/brainfuck-D5EjA2JK.js +1 -0
  95. package/dist-web/assets/c4Diagram-7LVT6UL2-YSA0IA7A.js +38 -0
  96. package/dist-web/assets/channel-DEeX8XvW.js +1 -0
  97. package/dist-web/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  98. package/dist-web/assets/chunk-4HAMMTFA-8VzDhfwy.js +62 -0
  99. package/dist-web/assets/{chunk-FMBD7UC4-zW3dYoIJ.js → chunk-5VM5RSS4-ZNzvKenW.js} +2 -2
  100. package/dist-web/assets/chunk-75Z2AOVW-D3fZto5-.js +2 -0
  101. package/dist-web/assets/chunk-DU6HZSFF-vtUmBAxv.js +125 -0
  102. package/dist-web/assets/chunk-F27PBJKO-BMcZVmbf.js +1 -0
  103. package/dist-web/assets/chunk-FOHPRMQF-DzxwRta7.js +161 -0
  104. package/dist-web/assets/chunk-GMAD6QVW-C5gwfNkR.js +72 -0
  105. package/dist-web/assets/chunk-GVQU2GXP-CqFZMp6I.js +1 -0
  106. package/dist-web/assets/chunk-IMKFNOWR-CJDfPbiX.js +231 -0
  107. package/dist-web/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  108. package/dist-web/assets/chunk-L3NEJ4N5-CHeJ2XSW.js +1 -0
  109. package/dist-web/assets/chunk-OSK3NFVY-CXOClbf5.js +10 -0
  110. package/dist-web/assets/chunk-P2QGCYS3-C9Wc2Z2I.js +1 -0
  111. package/dist-web/assets/chunk-POPQ4Y6H-CfiiGKfO.js +1 -0
  112. package/dist-web/assets/chunk-PWAF6VOD-CtZ4gx65.js +1 -0
  113. package/dist-web/assets/chunk-SHT3W25Y-C50-QCrR.js +168 -0
  114. package/dist-web/assets/chunk-SVP7TREG-EIHQbPfX.js +88 -0
  115. package/dist-web/assets/chunk-TICWLB2K-DOB5NZ4R.js +206 -0
  116. package/dist-web/assets/chunk-XXDRQBXY-DqAYeljN.js +1 -0
  117. package/dist-web/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  118. package/dist-web/assets/classDiagram-ZZMXUADV-H5H_txsg.js +1 -0
  119. package/dist-web/assets/classDiagram-v2-VYDZK3BY-H5H_txsg.js +1 -0
  120. package/dist-web/assets/clike-D_6L3tnO.js +1 -0
  121. package/dist-web/assets/clojure-BflJGmDX.js +1 -0
  122. package/dist-web/assets/cmake-84nbDH0I.js +1 -0
  123. package/dist-web/assets/cobol-DHLQUbN7.js +1 -0
  124. package/dist-web/assets/coffeescript-De_zI4J0.js +1 -0
  125. package/dist-web/assets/commonlisp-DgAKBe0r.js +1 -0
  126. package/dist-web/assets/cose-bilkent-JH36ORCC-BEpcWcmK.js +1 -0
  127. package/dist-web/assets/crystal-Bsdphhtm.js +1 -0
  128. package/dist-web/assets/css-CnaYoQib.js +1 -0
  129. package/dist-web/assets/cynefin-OW5HDTMX-mR6pfDSH.js +1 -0
  130. package/dist-web/assets/cynefinDiagram-5FMLGOSQ-6-2oQdEg.js +62 -0
  131. package/dist-web/assets/cypher-p9eYesGn.js +1 -0
  132. package/dist-web/assets/cytoscape.esm-Yq6u8L66.js +321 -0
  133. package/dist-web/assets/d-DWkQyNnU.js +1 -0
  134. package/dist-web/assets/dagre-C-rnJpZF.js +1 -0
  135. package/dist-web/assets/dagre-GXQ25YYZ-Cm1zvIWj.js +4 -0
  136. package/dist-web/assets/defaultLocale-BFoDCU3G.js +1 -0
  137. package/dist-web/assets/diagram-S7CK7UJ4-D6mECnyP.js +30 -0
  138. package/dist-web/assets/diagram-UQ7AKVKN-CzmXABVS.js +41 -0
  139. package/dist-web/assets/diagram-VSXAHHWV-CpEauecU.js +3 -0
  140. package/dist-web/assets/diagram-VX7I27RA-CXPYrCgX.js +24 -0
  141. package/dist-web/assets/diagram-Z3DM3KII-RcMIMVWZ.js +24 -0
  142. package/dist-web/assets/diff-ChtP43wD.js +1 -0
  143. package/dist-web/assets/dist--eYrBgi0.js +2 -0
  144. package/dist-web/assets/dist-B-O4eZD_.js +1 -0
  145. package/dist-web/assets/dist-B27L6oW0.js +1 -0
  146. package/dist-web/assets/dist-BKXbBuAc.js +1 -0
  147. package/dist-web/assets/dist-BPcC0hnc.js +9 -0
  148. package/dist-web/assets/dist-BgwxV8e_.js +1 -0
  149. package/dist-web/assets/dist-BlG40nRw.js +1 -0
  150. package/dist-web/assets/dist-Bqc6e86z.js +1 -0
  151. package/dist-web/assets/dist-BsvASXHG.js +1 -0
  152. package/dist-web/assets/dist-C15GN054.js +1 -0
  153. package/dist-web/assets/dist-C4QRmcTO.js +1 -0
  154. package/dist-web/assets/dist-C4lZy0XG.js +6 -0
  155. package/dist-web/assets/dist-CFLbFzpB.js +23 -0
  156. package/dist-web/assets/dist-CP6AUVtv.js +1 -0
  157. package/dist-web/assets/dist-CpYnHHz6.js +1 -0
  158. package/dist-web/assets/dist-DHnGmK79.js +1 -0
  159. package/dist-web/assets/dist-DYmIHv0n.js +13 -0
  160. package/dist-web/assets/dist-DauRO0RO.js +1 -0
  161. package/dist-web/assets/dist-Day7i26p.js +1 -0
  162. package/dist-web/assets/dist-Do_t70vA.js +1 -0
  163. package/dist-web/assets/dist-G8nWWSie.js +11 -0
  164. package/dist-web/assets/dist-QfYLz_N1.js +1 -0
  165. package/dist-web/assets/dist-TZhb2tj2.js +1 -0
  166. package/dist-web/assets/dist-Wr2Wo_KE.js +1 -0
  167. package/dist-web/assets/dist-kYRo7Db1.js +1 -0
  168. package/dist-web/assets/dist-kfqV1Lu-.js +2 -0
  169. package/dist-web/assets/dist-v5Q1xZ2K.js +1 -0
  170. package/dist-web/assets/dockerfile-DJkHQgkl.js +1 -0
  171. package/dist-web/assets/dtd-DTF72YNO.js +1 -0
  172. package/dist-web/assets/dylan-BCDoL_-p.js +1 -0
  173. package/dist-web/assets/ebnf-D4c0_ac3.js +1 -0
  174. package/dist-web/assets/ebnfDiagram-PWID7BFC-MZpZ_VnU.js +1 -0
  175. package/dist-web/assets/ecl-BVIeWmwY.js +1 -0
  176. package/dist-web/assets/eiffel-BEjRio4Q.js +1 -0
  177. package/dist-web/assets/elm-Cshzl8qu.js +1 -0
  178. package/dist-web/assets/erDiagram-RLTQ6QDP-BcZ7Ctxy.js +99 -0
  179. package/dist-web/assets/erlang-BV0c4Hdn.js +1 -0
  180. package/dist-web/assets/esm-CQW0DO89.js +2 -0
  181. package/dist-web/assets/eventmodeling-NTZA5JFV-BwLlQZcI.js +1 -0
  182. package/dist-web/assets/factor-LKH5gN8L.js +1 -0
  183. package/dist-web/assets/fcl-ClOhbFR7.js +1 -0
  184. package/dist-web/assets/flowDiagram-HODETNUW-DGqUYaRC.js +1 -0
  185. package/dist-web/assets/forth-D6RzAl64.js +1 -0
  186. package/dist-web/assets/fortran-Bt6PBEDR.js +1 -0
  187. package/dist-web/assets/ganttDiagram-EL5Y4UJY-CcJ72sCU.js +292 -0
  188. package/dist-web/assets/gas-BHEdbvp9.js +1 -0
  189. package/dist-web/assets/gherkin-oBAE_ms0.js +1 -0
  190. package/dist-web/assets/gitGraph-4MIJSDKK-BheSjO6S.js +1 -0
  191. package/dist-web/assets/gitGraphDiagram-WWUBYQGX-Qv13SyYh.js +106 -0
  192. package/dist-web/assets/graphlib-DS17s2tU.js +1 -0
  193. package/dist-web/assets/groovy-CUpZ7dEl.js +1 -0
  194. package/dist-web/assets/haskell-BRsoo5mP.js +1 -0
  195. package/dist-web/assets/haxe-DjVOVvNP.js +1 -0
  196. package/dist-web/assets/http-CLVgA2GD.js +1 -0
  197. package/dist-web/assets/idl-BUZw3wgd.js +1 -0
  198. package/dist-web/assets/index-D0npIBvI.css +2 -0
  199. package/dist-web/assets/index-DsQxKERJ.js +103 -0
  200. package/dist-web/assets/info-A6RAGUB7-BemnwZ_B.js +1 -0
  201. package/dist-web/assets/infoDiagram-27XIBGKW-otpjj8PV.js +2 -0
  202. package/dist-web/assets/init-C-OQMol4.js +1 -0
  203. package/dist-web/assets/ishikawaDiagram-5VMMS53U-BuZBZkYN.js +70 -0
  204. package/dist-web/assets/javascript-Bu8mWwtz.js +1 -0
  205. package/dist-web/assets/journeyDiagram-3NMN7TZE-D-uflaQS.js +139 -0
  206. package/dist-web/assets/julia-CQfgDRfP.js +1 -0
  207. package/dist-web/assets/kanban-definition-UXKFOSKX-BI643rxH.js +89 -0
  208. package/dist-web/assets/katex-ZlcWpGUi.js +257 -0
  209. package/dist-web/assets/line-fay7lQM4.js +1 -0
  210. package/dist-web/assets/linear-SzVmGSw4.js +1 -0
  211. package/dist-web/assets/livescript-BXxG0Yva.js +1 -0
  212. package/dist-web/assets/lua-DPCEkfD_.js +1 -0
  213. package/dist-web/assets/mathematica-u8YMmbU0.js +1 -0
  214. package/dist-web/assets/mbox-BEMVcqjs.js +1 -0
  215. package/dist-web/assets/mermaid-parser.core-CI9Bt8lf.js +7 -0
  216. package/dist-web/assets/mermaid.core-CpvTzp9Q.js +44 -0
  217. package/dist-web/assets/mindmap-definition-YA3MSWOX-Dw-DFKfU.js +96 -0
  218. package/dist-web/assets/{mirc-CjQqDB4T.js → mirc-C9zpzAZU.js} +1 -1
  219. package/dist-web/assets/mllike-B45xgp2S.js +1 -0
  220. package/dist-web/assets/modelica-CqHI_q-D.js +1 -0
  221. package/dist-web/assets/mscgen-qgSLujhx.js +1 -0
  222. package/dist-web/assets/mumps-BSzj6Xyz.js +1 -0
  223. package/dist-web/assets/{nginx-DdIZxoE0.js → nginx-8H7HVH4w.js} +1 -1
  224. package/dist-web/assets/nsis-CfSuhXs5.js +1 -0
  225. package/dist-web/assets/ntriples-B9h1VB_g.js +1 -0
  226. package/dist-web/assets/octave-D2Q8cUp1.js +1 -0
  227. package/dist-web/assets/ordinal-BDEzSJ7C.js +1 -0
  228. package/dist-web/assets/oz-BwTct_5T.js +1 -0
  229. package/dist-web/assets/packet-AYTQ26CC-CsBrScsn.js +1 -0
  230. package/dist-web/assets/pascal-Dp_KdFgX.js +1 -0
  231. package/dist-web/assets/path-fybaL0A-.js +1 -0
  232. package/dist-web/assets/pegDiagram-XKGWAZYB-BVal7Apj.js +1 -0
  233. package/dist-web/assets/perl-BkSkiI9m.js +1 -0
  234. package/dist-web/assets/pie-WAS4IAKB-DZFMDceO.js +1 -0
  235. package/dist-web/assets/pieDiagram-E7YTZNPT-B3QEKixf.js +39 -0
  236. package/dist-web/assets/pig-AF4Hwhju.js +1 -0
  237. package/dist-web/assets/powershell-BcIto6Sf.js +1 -0
  238. package/dist-web/assets/properties-C357ku5U.js +1 -0
  239. package/dist-web/assets/protobuf-D1ij_kNL.js +1 -0
  240. package/dist-web/assets/pug-3K-JMW4g.js +1 -0
  241. package/dist-web/assets/puppet-BZyAS7I4.js +1 -0
  242. package/dist-web/assets/python-B_1Jd8HM.js +1 -0
  243. package/dist-web/assets/q-B9NhS7L_.js +1 -0
  244. package/dist-web/assets/quadrantDiagram-AXDQQJYC-CRgAf_p-.js +7 -0
  245. package/dist-web/assets/r-CxDmU1I4.js +1 -0
  246. package/dist-web/assets/radar-RG4KPBEZ-BkOoPAbJ.js +1 -0
  247. package/dist-web/assets/railroad-74A4TZTK-BgIna4sT.js +1 -0
  248. package/dist-web/assets/railroad-abnf-HS5TGJTU-CVlFeN1b.js +1 -0
  249. package/dist-web/assets/railroad-ebnf-LZEXJU2U-DCEa0WVT.js +1 -0
  250. package/dist-web/assets/railroad-peg-WCYAUIDC-BHX1T-4x.js +1 -0
  251. package/dist-web/assets/railroadDiagram-O6MQD6OU-BZwRaQM3.js +1 -0
  252. package/dist-web/assets/requirementDiagram-BXWQKSXE-BN3nmFpY.js +84 -0
  253. package/dist-web/assets/rolldown-runtime-hePW80VL.js +1 -0
  254. package/dist-web/assets/rough.esm-Dy-Kn_BL.js +1 -0
  255. package/dist-web/assets/rpm-gpDK5sbt.js +1 -0
  256. package/dist-web/assets/ruby-BjXV7-Qa.js +1 -0
  257. package/dist-web/assets/sankeyDiagram-P5KCCOFB-DBhFOKcq.js +40 -0
  258. package/dist-web/assets/{sas-B4kiWyti.js → sas-C2OyD2Y6.js} +1 -1
  259. package/dist-web/assets/scheme-D9qYN0V5.js +1 -0
  260. package/dist-web/assets/sequenceDiagram-WJ2MYXX4-CBc9y9xq.js +162 -0
  261. package/dist-web/assets/shell-DwuoZtxw.js +1 -0
  262. package/dist-web/assets/sieve-tLWDfEkZ.js +1 -0
  263. package/dist-web/assets/simple-mode-DXiLM1-G.js +1 -0
  264. package/dist-web/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  265. package/dist-web/assets/smalltalk-BLp5-jwC.js +1 -0
  266. package/dist-web/assets/solr-B78wSQJQ.js +1 -0
  267. package/dist-web/assets/sparql-Dz-mlCAC.js +1 -0
  268. package/dist-web/assets/spreadsheet-CTIncYxj.js +1 -0
  269. package/dist-web/assets/sql-DuQMFDvy.js +1 -0
  270. package/dist-web/assets/src-B6xuSHsQ.js +1 -0
  271. package/dist-web/assets/stateDiagram-D77RDMKH-BDdsXTTr.js +1 -0
  272. package/dist-web/assets/stateDiagram-v2-MP3YSRHH-C04o4SeT.js +1 -0
  273. package/dist-web/assets/stex-DNzd62Q_.js +1 -0
  274. package/dist-web/assets/stylus-BOVgKnng.js +1 -0
  275. package/dist-web/assets/swift-DKB6_1j6.js +1 -0
  276. package/dist-web/assets/swimlanes-42K2YHIH-1QXV5L5H.js +1 -0
  277. package/dist-web/assets/swimlanesDiagram-VR7AAH4N-CQ46EU90.js +8 -0
  278. package/dist-web/assets/tcl-BGfruO1u.js +1 -0
  279. package/dist-web/assets/textile-C4jVoHG1.js +1 -0
  280. package/dist-web/assets/tiddlywiki-VlUiK86J.js +1 -0
  281. package/dist-web/assets/tiki-AK6FwT8q.js +1 -0
  282. package/dist-web/assets/timeline-definition-24CTP7MA-D9CdAGEV.js +120 -0
  283. package/dist-web/assets/toml-BPTmHmyx.js +1 -0
  284. package/dist-web/assets/treeView-Q6P3EWNA-CxKfpZsz.js +1 -0
  285. package/dist-web/assets/treemap-WGGIJYW6-Bg5-PJ6G.js +1 -0
  286. package/dist-web/assets/troff-C2dAgh7P.js +1 -0
  287. package/dist-web/assets/ttcn-PPSTk1ow.js +1 -0
  288. package/dist-web/assets/ttcn-cfg-2b4Gb5sE.js +1 -0
  289. package/dist-web/assets/turtle-Cx3rYX2g.js +1 -0
  290. package/dist-web/assets/vb-BthdM_4N.js +1 -0
  291. package/dist-web/assets/vbscript-D9f6rSsU.js +1 -0
  292. package/dist-web/assets/velocity-CqftRsjg.js +1 -0
  293. package/dist-web/assets/vennDiagram-4TSXK5OY-DIlZEQm_.js +34 -0
  294. package/dist-web/assets/verilog-CjI9Y6RI.js +1 -0
  295. package/dist-web/assets/vhdl-kS471soi.js +1 -0
  296. package/dist-web/assets/wardley-WFR3VGLG-DCKFxH5V.js +1 -0
  297. package/dist-web/assets/wardleyDiagram-VM6X3IG4-D8O8WtAP.js +78 -0
  298. package/dist-web/assets/webidl-D5jiJvOU.js +1 -0
  299. package/dist-web/assets/xquery-BKJx4mf9.js +1 -0
  300. package/dist-web/assets/xychartDiagram-S5SC5T6Z-Dz9bYgtE.js +7 -0
  301. package/dist-web/assets/yacas-CXXgtw0p.js +1 -0
  302. package/dist-web/assets/z80-Co3PbHdE.js +1 -0
  303. package/dist-web/index.html +6 -18
  304. package/dist-web/theme-guard.js +21 -0
  305. package/package.json +34 -26
  306. package/templates/strikethroo/config/config.yaml +2 -2
  307. package/templates/strikethroo/config/templates/TASK_TEMPLATE.md +1 -1
  308. package/dist-web/assets/apl-B4CMkyY2.js +0 -1
  309. package/dist-web/assets/arc-DA6tr0lU.js +0 -1
  310. package/dist-web/assets/architectureDiagram-3BPJPVTR-BEH2YihV.js +0 -36
  311. package/dist-web/assets/asciiarmor-Df11BRmG.js +0 -1
  312. package/dist-web/assets/asn1-EdZsLKOL.js +0 -1
  313. package/dist-web/assets/asterisk-B-8jnY81.js +0 -1
  314. package/dist-web/assets/blockDiagram-GPEHLZMM-jgUyFGxx.js +0 -132
  315. package/dist-web/assets/brainfuck-C4LP7Hcl.js +0 -1
  316. package/dist-web/assets/c4Diagram-AAUBKEIU-Do-n7I5O.js +0 -10
  317. package/dist-web/assets/channel-DJ33z8Wx.js +0 -1
  318. package/dist-web/assets/chunk-2J33WTMH-CgMvCn22.js +0 -1
  319. package/dist-web/assets/chunk-4BX2VUAB-FO8RQkkL.js +0 -1
  320. package/dist-web/assets/chunk-55IACEB6-DL_6pZjw.js +0 -1
  321. package/dist-web/assets/chunk-727SXJPM-DW7J3hiD.js +0 -206
  322. package/dist-web/assets/chunk-AQP2D5EJ-TPWnvFSC.js +0 -231
  323. package/dist-web/assets/chunk-ND2GUHAM-D0Nmkz3P.js +0 -1
  324. package/dist-web/assets/chunk-QZHKN3VN-BxgxRNWB.js +0 -1
  325. package/dist-web/assets/classDiagram-4FO5ZUOK--tqQjy0s.js +0 -1
  326. package/dist-web/assets/classDiagram-v2-Q7XG4LA2--tqQjy0s.js +0 -1
  327. package/dist-web/assets/clike-B9uivgTg.js +0 -1
  328. package/dist-web/assets/clojure-BMjYHr_A.js +0 -1
  329. package/dist-web/assets/cmake-BQqOBYOt.js +0 -1
  330. package/dist-web/assets/cobol-CWcv1MsR.js +0 -1
  331. package/dist-web/assets/coffeescript-S37ZYGWr.js +0 -1
  332. package/dist-web/assets/commonlisp-DBKNyK5s.js +0 -1
  333. package/dist-web/assets/cose-bilkent-S5V4N54A-ysHXC5GT.js +0 -1
  334. package/dist-web/assets/crystal-SjHAIU92.js +0 -1
  335. package/dist-web/assets/css-BnMrqG3P.js +0 -1
  336. package/dist-web/assets/cypher-C_CwsFkJ.js +0 -1
  337. package/dist-web/assets/cytoscape.esm-BHYC38rz.js +0 -331
  338. package/dist-web/assets/d-pRatUO7H.js +0 -1
  339. package/dist-web/assets/dagre-BM42HDAG-G_XIk8Dj.js +0 -4
  340. package/dist-web/assets/defaultLocale-CrowFXzY.js +0 -1
  341. package/dist-web/assets/diagram-2AECGRRQ-7HG2PLhr.js +0 -43
  342. package/dist-web/assets/diagram-5GNKFQAL-BdS1bF_R.js +0 -10
  343. package/dist-web/assets/diagram-KO2AKTUF-AFaiXGZQ.js +0 -3
  344. package/dist-web/assets/diagram-LMA3HP47-CTWrauj7.js +0 -24
  345. package/dist-web/assets/diagram-OG6HWLK6-BmBckGLa.js +0 -24
  346. package/dist-web/assets/diff-DbItnlRl.js +0 -1
  347. package/dist-web/assets/dockerfile-BKs6k2Af.js +0 -1
  348. package/dist-web/assets/dtd-DF_7sFjM.js +0 -1
  349. package/dist-web/assets/dylan-DwRh75JA.js +0 -1
  350. package/dist-web/assets/ebnf-CDyGwa7X.js +0 -1
  351. package/dist-web/assets/ecl-Cabwm37j.js +0 -1
  352. package/dist-web/assets/eiffel-CnydiIhH.js +0 -1
  353. package/dist-web/assets/elm-vLlmbW-K.js +0 -1
  354. package/dist-web/assets/erDiagram-TEJ5UH35-C0B2cXE-.js +0 -85
  355. package/dist-web/assets/erlang-BNw1qcRV.js +0 -1
  356. package/dist-web/assets/factor-kuTfRLto.js +0 -1
  357. package/dist-web/assets/fcl-Kvtd6kyn.js +0 -1
  358. package/dist-web/assets/flowDiagram-I6XJVG4X-CZ70tn_Q.js +0 -162
  359. package/dist-web/assets/forth-Ffai-XNe.js +0 -1
  360. package/dist-web/assets/fortran-DYz_wnZ1.js +0 -1
  361. package/dist-web/assets/ganttDiagram-6RSMTGT7-h7O-Xh-D.js +0 -292
  362. package/dist-web/assets/gas-Bneqetm1.js +0 -1
  363. package/dist-web/assets/gherkin-heZmZLOM.js +0 -1
  364. package/dist-web/assets/gitGraphDiagram-PVQCEYII-BDZixURw.js +0 -106
  365. package/dist-web/assets/graph-Dqkl27Ch.js +0 -1
  366. package/dist-web/assets/groovy-D9Dt4D0W.js +0 -1
  367. package/dist-web/assets/haskell-BWDZoCOh.js +0 -1
  368. package/dist-web/assets/haxe-H-WmDvRZ.js +0 -1
  369. package/dist-web/assets/http-DBlCnlav.js +0 -1
  370. package/dist-web/assets/idl-BEugSyMb.js +0 -1
  371. package/dist-web/assets/index-B-KlYMEI.js +0 -1
  372. package/dist-web/assets/index-B0a4C4Lb.js +0 -1
  373. package/dist-web/assets/index-B90tvIxG.js +0 -3
  374. package/dist-web/assets/index-BLXIwDvb.js +0 -1
  375. package/dist-web/assets/index-BjZYUODU.js +0 -1
  376. package/dist-web/assets/index-BmsczLPZ.js +0 -1
  377. package/dist-web/assets/index-BpU7RpGz.js +0 -1
  378. package/dist-web/assets/index-BwFIiA6J.js +0 -2
  379. package/dist-web/assets/index-C53NKwQ5.js +0 -1
  380. package/dist-web/assets/index-C73riuQN.js +0 -1
  381. package/dist-web/assets/index-C9RcHSPW.js +0 -1
  382. package/dist-web/assets/index-CEBV-m_B.js +0 -1
  383. package/dist-web/assets/index-CG1O2Vjg.js +0 -1
  384. package/dist-web/assets/index-CRL66wiY.js +0 -169
  385. package/dist-web/assets/index-CddJufqj.js +0 -1
  386. package/dist-web/assets/index-CrzBaw1K.css +0 -1
  387. package/dist-web/assets/index-CuBsNWzH.js +0 -13
  388. package/dist-web/assets/index-CuCAyRTw.js +0 -7
  389. package/dist-web/assets/index-CuUh3dvS.js +0 -1
  390. package/dist-web/assets/index-CwPWc9jQ.js +0 -1
  391. package/dist-web/assets/index-DHBbud_j.js +0 -1
  392. package/dist-web/assets/index-LLaxWDbg.js +0 -1
  393. package/dist-web/assets/index-XOpAvr0E.js +0 -13
  394. package/dist-web/assets/index-aX67gnlS.js +0 -2
  395. package/dist-web/assets/index-lkaAPBmM.js +0 -6
  396. package/dist-web/assets/index-pUkuW0EP.js +0 -1
  397. package/dist-web/assets/index-sbfqG9cy.js +0 -1
  398. package/dist-web/assets/index-udFbjSlZ.js +0 -2
  399. package/dist-web/assets/index-yjEPVwyN.js +0 -1
  400. package/dist-web/assets/infoDiagram-5YYISTIA-CKXHxMh_.js +0 -2
  401. package/dist-web/assets/init-Gi6I4Gst.js +0 -1
  402. package/dist-web/assets/ishikawaDiagram-YF4QCWOH-DGancylI.js +0 -70
  403. package/dist-web/assets/javascript-qCveANmP.js +0 -1
  404. package/dist-web/assets/journeyDiagram-JHISSGLW-DifvKy-w.js +0 -139
  405. package/dist-web/assets/julia-DuME0IfC.js +0 -1
  406. package/dist-web/assets/kanban-definition-UN3LZRKU-ByC-4YyY.js +0 -89
  407. package/dist-web/assets/katex-C5jXJg4s.js +0 -257
  408. package/dist-web/assets/layout-DO9UvE1P.js +0 -1
  409. package/dist-web/assets/linear-Cm0Y2OWD.js +0 -1
  410. package/dist-web/assets/livescript-BwQOo05w.js +0 -1
  411. package/dist-web/assets/lua-VAEuO923.js +0 -1
  412. package/dist-web/assets/mathematica-DTrFuWx2.js +0 -1
  413. package/dist-web/assets/mbox-CNhZ1qSd.js +0 -1
  414. package/dist-web/assets/mermaid.core-DBlLt9sa.js +0 -307
  415. package/dist-web/assets/mindmap-definition-RKZ34NQL-tkThiQWd.js +0 -96
  416. package/dist-web/assets/mllike-CXdrOF99.js +0 -1
  417. package/dist-web/assets/modelica-Dc1JOy9r.js +0 -1
  418. package/dist-web/assets/mscgen-BA5vi2Kp.js +0 -1
  419. package/dist-web/assets/mumps-BT43cFF4.js +0 -1
  420. package/dist-web/assets/nsis-LdVXkNf5.js +0 -1
  421. package/dist-web/assets/ntriples-BfvgReVJ.js +0 -1
  422. package/dist-web/assets/octave-Ck1zUtKM.js +0 -1
  423. package/dist-web/assets/ordinal-Cboi1Yqb.js +0 -1
  424. package/dist-web/assets/oz-BzwKVEFT.js +0 -1
  425. package/dist-web/assets/pascal--L3eBynH.js +0 -1
  426. package/dist-web/assets/perl-CdXCOZ3F.js +0 -1
  427. package/dist-web/assets/pieDiagram-4H26LBE5-BXGBVjcj.js +0 -30
  428. package/dist-web/assets/pig-CevX1Tat.js +0 -1
  429. package/dist-web/assets/powershell-CFHJl5sT.js +0 -1
  430. package/dist-web/assets/properties-C78fOPTZ.js +0 -1
  431. package/dist-web/assets/protobuf-ChK-085T.js +0 -1
  432. package/dist-web/assets/pug-DukmZTjD.js +0 -1
  433. package/dist-web/assets/puppet-DMA9R1ak.js +0 -1
  434. package/dist-web/assets/python-BuPzkPfP.js +0 -1
  435. package/dist-web/assets/q-pXgVlZs6.js +0 -1
  436. package/dist-web/assets/quadrantDiagram-W4KKPZXB-DnF0iEBo.js +0 -7
  437. package/dist-web/assets/r-DUYO_cvP.js +0 -1
  438. package/dist-web/assets/requirementDiagram-4Y6WPE33-BooGjmPb.js +0 -84
  439. package/dist-web/assets/rpm-CTu-6PCP.js +0 -1
  440. package/dist-web/assets/ruby-B2Rjki9n.js +0 -1
  441. package/dist-web/assets/sankeyDiagram-5OEKKPKP-7le5uaC7.js +0 -40
  442. package/dist-web/assets/scheme-C41bIUwD.js +0 -1
  443. package/dist-web/assets/sequenceDiagram-3UESZ5HK-B9GCKMDd.js +0 -162
  444. package/dist-web/assets/shell-CjFT_Tl9.js +0 -1
  445. package/dist-web/assets/sieve-C3Gn_uJK.js +0 -1
  446. package/dist-web/assets/simple-mode-GW_nhZxv.js +0 -1
  447. package/dist-web/assets/smalltalk-CnHTOXQT.js +0 -1
  448. package/dist-web/assets/solr-DehyRSwq.js +0 -1
  449. package/dist-web/assets/sparql-DkYu6x3z.js +0 -1
  450. package/dist-web/assets/spreadsheet-BCZA_wO0.js +0 -1
  451. package/dist-web/assets/sql-D0XecflT.js +0 -1
  452. package/dist-web/assets/stateDiagram-AJRCARHV-CO2qL8R6.js +0 -1
  453. package/dist-web/assets/stateDiagram-v2-BHNVJYJU-DUkgqBTd.js +0 -1
  454. package/dist-web/assets/stex-C3f8Ysf7.js +0 -1
  455. package/dist-web/assets/stylus-B533Al4x.js +0 -1
  456. package/dist-web/assets/swift-BzpIVaGY.js +0 -1
  457. package/dist-web/assets/tcl-DVfN8rqt.js +0 -1
  458. package/dist-web/assets/textile-CnDTJFAw.js +0 -1
  459. package/dist-web/assets/tiddlywiki-DO-Gjzrf.js +0 -1
  460. package/dist-web/assets/tiki-DGYXhP31.js +0 -1
  461. package/dist-web/assets/timeline-definition-PNZ67QCA-FLzWM85F.js +0 -120
  462. package/dist-web/assets/toml-Bm5Em-hy.js +0 -1
  463. package/dist-web/assets/troff-wAsdV37c.js +0 -1
  464. package/dist-web/assets/ttcn-CfJYG6tj.js +0 -1
  465. package/dist-web/assets/ttcn-cfg-B9xdYoR4.js +0 -1
  466. package/dist-web/assets/turtle-B1tBg_DP.js +0 -1
  467. package/dist-web/assets/vb-CmGdzxic.js +0 -1
  468. package/dist-web/assets/vbscript-BuJXcnF6.js +0 -1
  469. package/dist-web/assets/velocity-D8B20fx6.js +0 -1
  470. package/dist-web/assets/vennDiagram-CIIHVFJN-Dt6p6Ib1.js +0 -34
  471. package/dist-web/assets/verilog-C6RDOZhf.js +0 -1
  472. package/dist-web/assets/vhdl-lSbBsy5d.js +0 -1
  473. package/dist-web/assets/wardley-L42UT6IY-D6k_B5It.js +0 -173
  474. package/dist-web/assets/wardleyDiagram-YWT4CUSO-jT3ItNLi.js +0 -78
  475. package/dist-web/assets/webidl-ZXfAyPTL.js +0 -1
  476. package/dist-web/assets/xquery-CQfU5ijd.js +0 -1
  477. package/dist-web/assets/xychartDiagram-2RQKCTM6-CpM6UhUO.js +0 -7
  478. package/dist-web/assets/yacas-BJ4BC0dw.js +0 -1
  479. package/dist-web/assets/z80-Hz9HOZM7.js +0 -1
@@ -1,139 +0,0 @@
1
- import{g as gt}from"./chunk-FMBD7UC4-zW3dYoIJ.js";import{d as mt,g as lt,f as xt,e as kt}from"./chunk-ND2GUHAM-D0Nmkz3P.js";import{a0 as _t,a$ as vt,a1 as bt,b0 as wt,a4 as Tt,b2 as St,b as s,a3 as R,aZ as G,E as $t,t as Mt}from"./mermaid.core-DBlLt9sa.js";import{d as it}from"./arc-DA6tr0lU.js";import"./index-CRL66wiY.js";var U=function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),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:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),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:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},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:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var X="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
2
- `+_.showPosition()+`
3
- Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,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},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=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),l.length-1&&(this.yylineno-=l.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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
5
- `+n+"^"},"showPosition"),test_match:s(function(r,n){var l,y,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))),y=r[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,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(r[0].length),this.matched+=r[0],l=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var c in d)this[c]=d[c];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,n,l,y;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),c=0;c<d.length;c++)if(l=this._input.match(this.rules[d[c]]),l&&(!n||l[0].length>n[0].length)){if(n=l,y=c,this.options.backtrack_lexer){if(r=this.test_match(l,d[c]),r!==!1)return r;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(r=this.test_match(n,d[y]),r!==!1?r:!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})},"next"),lex:s(function(){var n=this.next();return n||this.lex()},"lex"),begin:s(function(n){this.conditionStack.push(n)},"begin"),popState:s(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:s(function(n){this.begin(n)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(n,l,y,d){switch(y){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"}},"anonymous"),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 h}();g.lexer=m;function x(){this.yy={}}return s(x,"Parser"),x.prototype=g,g.Parser=x,new x}();U.parser=U;var Et=U,V="",J=[],L=[],B=[],Ct=s(function(){J.length=0,L.length=0,V="",B.length=0,Mt()},"clear"),Pt=s(function(t){V=t,J.push(t)},"addSection"),It=s(function(){return J},"getSections"),At=s(function(){let t=rt();const e=100;let a=0;for(;!t&&a<e;)t=rt(),a++;return L.push(...B),L},"getTasks"),Ft=s(function(){const t=[];return L.forEach(a=>{a.people&&t.push(...a.people)}),[...new Set(t)].sort()},"updateActors"),Vt=s(function(t,e){const a=e.substr(1).split(":");let f=0,i=[];a.length===1?(f=Number(a[0]),i=[]):(f=Number(a[0]),i=a[1].split(","));const u=i.map(o=>o.trim()),p={section:V,type:V,people:u,task:t,score:f};B.push(p)},"addTask"),Rt=s(function(t){const e={section:V,type:V,description:t,task:t,classes:[]};L.push(e)},"addTaskOrg"),rt=s(function(){const t=s(function(a){return B[a].processed},"compileTask");let e=!0;for(const[a,f]of B.entries())t(a),e=e&&f.processed;return e},"compileTasks"),Lt=s(function(){return Ft()},"getActors"),nt={getConfig:s(()=>R().journey,"getConfig"),clear:Ct,setDiagramTitle:St,getDiagramTitle:Tt,setAccTitle:wt,getAccTitle:bt,setAccDescription:vt,getAccDescription:_t,addSection:Pt,getSections:It,getTasks:At,addTask:Vt,addTaskOrg:Rt,getActors:Lt},Bt=s(t=>`.label {
7
- font-family: ${t.fontFamily};
8
- color: ${t.textColor};
9
- }
10
- .mouth {
11
- stroke: #666;
12
- }
13
-
14
- line {
15
- stroke: ${t.textColor}
16
- }
17
-
18
- .legend {
19
- fill: ${t.textColor};
20
- font-family: ${t.fontFamily};
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: ${t.fontFamily};
87
- font-size: 12px;
88
- background: ${t.tertiaryColor};
89
- border: 1px solid ${t.border2};
90
- border-radius: 2px;
91
- pointer-events: none;
92
- z-index: 100;
93
- }
94
-
95
- .task-type-0, .section-type-0 {
96
- ${t.fillType0?`fill: ${t.fillType0}`:""};
97
- }
98
- .task-type-1, .section-type-1 {
99
- ${t.fillType0?`fill: ${t.fillType1}`:""};
100
- }
101
- .task-type-2, .section-type-2 {
102
- ${t.fillType0?`fill: ${t.fillType2}`:""};
103
- }
104
- .task-type-3, .section-type-3 {
105
- ${t.fillType0?`fill: ${t.fillType3}`:""};
106
- }
107
- .task-type-4, .section-type-4 {
108
- ${t.fillType0?`fill: ${t.fillType4}`:""};
109
- }
110
- .task-type-5, .section-type-5 {
111
- ${t.fillType0?`fill: ${t.fillType5}`:""};
112
- }
113
- .task-type-6, .section-type-6 {
114
- ${t.fillType0?`fill: ${t.fillType6}`:""};
115
- }
116
- .task-type-7, .section-type-7 {
117
- ${t.fillType0?`fill: ${t.fillType7}`:""};
118
- }
119
-
120
- .actor-0 {
121
- ${t.actor0?`fill: ${t.actor0}`:""};
122
- }
123
- .actor-1 {
124
- ${t.actor1?`fill: ${t.actor1}`:""};
125
- }
126
- .actor-2 {
127
- ${t.actor2?`fill: ${t.actor2}`:""};
128
- }
129
- .actor-3 {
130
- ${t.actor3?`fill: ${t.actor3}`:""};
131
- }
132
- .actor-4 {
133
- ${t.actor4?`fill: ${t.actor4}`:""};
134
- }
135
- .actor-5 {
136
- ${t.actor5?`fill: ${t.actor5}`:""};
137
- }
138
- ${gt()}
139
- `,"getStyles"),jt=Bt,K=s(function(t,e){return kt(t,e)},"drawRect"),Nt=s(function(t,e){const f=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.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"),i.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 u(g){const m=it().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}s(u,"smile");function p(g){const m=it().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}s(p,"sad");function o(g){g.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 s(o,"ambivalent"),e.score>3?u(i):e.score<3?p(i):o(i),f},"drawFace"),ot=s(function(t,e){const a=t.append("circle");return a.attr("cx",e.cx),a.attr("cy",e.cy),a.attr("class","actor-"+e.pos),a.attr("fill",e.fill),a.attr("stroke",e.stroke),a.attr("r",e.r),a.class!==void 0&&a.attr("class",a.class),e.title!==void 0&&a.append("title").text(e.title),a},"drawCircle"),ct=s(function(t,e){return xt(t,e)},"drawText"),zt=s(function(t,e){function a(i,u,p,o,g){return i+","+u+" "+(i+p)+","+u+" "+(i+p)+","+(u+o-g)+" "+(i+p-g*1.2)+","+(u+o)+" "+i+","+(u+o)}s(a,"genPoints");const f=t.append("polygon");f.attr("points",a(e.x,e.y,50,20,7)),f.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,ct(t,e)},"drawLabel"),Wt=s(function(t,e,a){const f=t.append("g"),i=lt();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=a.width*e.taskCount+a.diagramMarginX*(e.taskCount-1),i.height=a.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,K(f,i),ht(a)(e.text,f,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},a,e.colour)},"drawSection"),Z=-1,Ot=s(function(t,e,a,f){const i=e.x+a.width/2,u=t.append("g");Z++;const p=300+5*30;u.append("line").attr("id",f+"-task"+Z).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",p).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Nt(u,{cx:i,cy:300+(5-e.score)*30,score:e.score});const o=lt();o.x=e.x,o.y=e.y,o.fill=e.fill,o.width=a.width,o.height=a.height,o.class="task task-type-"+e.num,o.rx=3,o.ry=3,K(u,o);let g=e.x+14;e.people.forEach(m=>{const x=e.actors[m].color,h={cx:g,cy:e.y,r:7,fill:x,stroke:"#000",title:m,pos:e.actors[m].position};ot(u,h),g+=10}),ht(a)(e.task,u,o.x,o.y,o.width,o.height,{class:"task"},a,e.colour)},"drawTask"),Yt=s(function(t,e){mt(t,e)},"drawBackgroundRect"),ht=function(){function t(i,u,p,o,g,m,x,h){const r=u.append("text").attr("x",p+g/2).attr("y",o+m/2+5).style("font-color",h).style("text-anchor","middle").text(i);f(r,x)}s(t,"byText");function e(i,u,p,o,g,m,x,h,r){const{taskFontSize:n,taskFontFamily:l}=h,y=i.split(/<br\s*\/?>/gi);for(let d=0;d<y.length;d++){const c=d*n-n*(y.length-1)/2,v=u.append("text").attr("x",p+g/2).attr("y",o).attr("fill",r).style("text-anchor","middle").style("font-size",n).style("font-family",l);v.append("tspan").attr("x",p+g/2).attr("dy",c).text(y[d]),v.attr("y",o+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),f(v,x)}}s(e,"byTspan");function a(i,u,p,o,g,m,x,h){const r=u.append("switch"),l=r.append("foreignObject").attr("x",p).attr("y",o).attr("width",g).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,r,p,o,g,m,x,h),f(l,x)}s(a,"byFo");function f(i,u){for(const p in u)p in u&&i.attr(p,u[p])}return s(f,"_setTextAttrs"),function(i){return i.textPlacement==="fo"?a:i.textPlacement==="old"?t:e}}(),qt=s(function(t,e){Z=-1,t.append("defs").append("marker").attr("id",e+"-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")},"initGraphics"),j={drawRect:K,drawCircle:ot,drawSection:Wt,drawText:ct,drawLabel:zt,drawTask:Ot,drawBackgroundRect:Yt,initGraphics:qt},Xt=s(function(t){Object.keys(t).forEach(function(a){$[a]=t[a]})},"setConf"),E={},W=0;function ut(t){const e=R().journey,a=e.maxLabelWidth;W=0;let f=60;Object.keys(E).forEach(i=>{const u=E[i].color,p={cx:20,cy:f,r:7,fill:u,stroke:"#000",pos:E[i].position};j.drawCircle(t,p);let o=t.append("text").attr("visibility","hidden").text(i);const g=o.node().getBoundingClientRect().width;o.remove();let m=[];if(g<=a)m=[i];else{const x=i.split(" ");let h="";o=t.append("text").attr("visibility","hidden"),x.forEach(r=>{const n=h?`${h} ${r}`:r;if(o.text(n),o.node().getBoundingClientRect().width>a){if(h&&m.push(h),h=r,o.text(r),o.node().getBoundingClientRect().width>a){let y="";for(const d of r)y+=d,o.text(y+"-"),o.node().getBoundingClientRect().width>a&&(m.push(y.slice(0,-1)+"-"),y=d);h=y}}else h=n}),h&&m.push(h),o.remove()}m.forEach((x,h)=>{const r={x:40,y:f+7+h*20,fill:"#666",text:x,textMargin:e.boxTextMargin??5},l=j.drawText(t,r).node().getBoundingClientRect().width;l>W&&l>e.leftMargin-l&&(W=l)}),f+=Math.max(20,m.length*20)})}s(ut,"drawActorLegend");var $=R().journey,P=0,Gt=s(function(t,e,a,f){const i=R(),u=i.journey.titleColor,p=i.journey.titleFontSize,o=i.journey.titleFontFamily,g=i.securityLevel;let m;g==="sandbox"&&(m=G("#i"+e));const x=g==="sandbox"?G(m.nodes()[0].contentDocument.body):G("body");S.init();const h=x.select("#"+e);j.initGraphics(h,e);const r=f.db.getTasks(),n=f.db.getDiagramTitle(),l=f.db.getActors();for(const C in E)delete E[C];let y=0;l.forEach(C=>{E[C]={color:$.actorColours[y%$.actorColours.length],position:y},y++}),ut(h),P=$.leftMargin+W,S.insert(0,0,P,Object.keys(E).length*50),Ht(h,r,0,e);const d=S.getBounds();n&&h.append("text").text(n).attr("x",P).attr("font-size",p).attr("font-weight","bold").attr("y",25).attr("fill",u).attr("font-family",o);const c=d.stopy-d.starty+2*$.diagramMarginY,v=P+d.stopx+2*$.diagramMarginX;$t(h,c,v,$.useMaxWidth),h.append("line").attr("x1",P).attr("y1",$.height*4).attr("x2",v-P-4).attr("y2",$.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+e+"-arrowhead)");const k=n?70:0;h.attr("viewBox",`${d.startx} -25 ${v} ${c+k}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",c+k+25)},"draw"),S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:s(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:s(function(t,e,a,f){t[e]===void 0?t[e]=a:t[e]=f(a,t[e])},"updateVal"),updateBounds:s(function(t,e,a,f){const i=R().journey,u=this;let p=0;function o(g){return s(function(x){p++;const h=u.sequenceItems.length-p+1;u.updateVal(x,"starty",e-h*i.boxMargin,Math.min),u.updateVal(x,"stopy",f+h*i.boxMargin,Math.max),u.updateVal(S.data,"startx",t-h*i.boxMargin,Math.min),u.updateVal(S.data,"stopx",a+h*i.boxMargin,Math.max),g!=="activation"&&(u.updateVal(x,"startx",t-h*i.boxMargin,Math.min),u.updateVal(x,"stopx",a+h*i.boxMargin,Math.max),u.updateVal(S.data,"starty",e-h*i.boxMargin,Math.min),u.updateVal(S.data,"stopy",f+h*i.boxMargin,Math.max))},"updateItemBounds")}s(o,"updateFn"),this.sequenceItems.forEach(o())},"updateBounds"),insert:s(function(t,e,a,f){const i=Math.min(t,a),u=Math.max(t,a),p=Math.min(e,f),o=Math.max(e,f);this.updateVal(S.data,"startx",i,Math.min),this.updateVal(S.data,"starty",p,Math.min),this.updateVal(S.data,"stopx",u,Math.max),this.updateVal(S.data,"stopy",o,Math.max),this.updateBounds(i,p,u,o)},"insert"),bumpVerticalPos:s(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:s(function(){return this.verticalPos},"getVerticalPos"),getBounds:s(function(){return this.data},"getBounds")},H=$.sectionFills,st=$.sectionColours,Ht=s(function(t,e,a,f){const i=R().journey;let u="";const p=i.height*2+i.diagramMarginY,o=a+p;let g=0,m="#CCC",x="black",h=0;for(const[r,n]of e.entries()){if(u!==n.section){m=H[g%H.length],h=g%H.length,x=st[g%st.length];let y=0;const d=n.section;for(let v=r;v<e.length&&e[v].section==d;v++)y=y+1;const c={x:r*i.taskMargin+r*i.width+P,y:50,text:n.section,fill:m,num:h,colour:x,taskCount:y};j.drawSection(t,c,i),u=n.section,g++}const l=n.people.reduce((y,d)=>(E[d]&&(y[d]=E[d]),y),{});n.x=r*i.taskMargin+r*i.width+P,n.y=o,n.width=i.diagramMarginX,n.height=i.diagramMarginY,n.colour=x,n.fill=m,n.num=h,n.actors=l,j.drawTask(t,n,i,f),S.insert(n.x,n.y,n.x+n.width+i.taskMargin,300+5*30)}},"drawTasks"),at={setConf:Xt,draw:Gt},Dt={parser:Et,db:nt,renderer:at,styles:jt,init:s(t=>{at.setConf(t.journey),nt.clear()},"init")};export{Dt as diagram};
@@ -1 +0,0 @@
1
- function o(e,n,i){return typeof i>"u"&&(i=""),typeof n>"u"&&(n="\\b"),new RegExp("^"+i+"(("+e.join(")|(")+"))"+n)}var v="\\\\[0-7]{1,3}",k="\\\\x[A-Fa-f0-9]{1,2}",F=`\\\\[abefnrtv0%?'"\\\\]`,g="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",a=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],b=o(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),y=/^[;,()[\]{}]/,m=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,x=o([v,k,F,g],"'"),z=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],A=["end","else","elseif","catch","finally"],p=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],h=["true","false","nothing","NaN","Inf"],E=o(z),C=o(A),_=o(p),w=o(h),D=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,T=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,P=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,B=o(a,"","@"),G=o(a,"",":");function l(e){return e.nestedArrays>0}function S(e){return e.nestedGenerators>0}function t(e,n){return typeof n>"u"&&(n=0),e.scopes.length<=n?null:e.scopes[e.scopes.length-(n+1)]}function f(e,n){if(e.match("#=",!1))return n.tokenize=I,n.tokenize(e,n);var i=n.leavingExpr;if(e.sol()&&(i=!1),n.leavingExpr=!1,i&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var r=e.peek();if(r==="#")return e.skipToEnd(),"comment";if(r==="["&&(n.scopes.push("["),n.nestedArrays++),r==="("&&(n.scopes.push("("),n.nestedGenerators++),l(n)&&r==="]"){for(;n.scopes.length&&t(n)!=="[";)n.scopes.pop();n.scopes.pop(),n.nestedArrays--,n.leavingExpr=!0}if(S(n)&&r===")"){for(;n.scopes.length&&t(n)!=="(";)n.scopes.pop();n.scopes.pop(),n.nestedGenerators--,n.leavingExpr=!0}if(l(n)){if(n.lastToken=="end"&&e.match(":"))return"operator";if(e.match("end"))return"number"}var u;if((u=e.match(E,!1))&&n.scopes.push(u[0]),e.match(C,!1)&&n.scopes.pop(),e.match(/^::(?![:\$])/))return n.tokenize=$,n.tokenize(e,n);if(!i&&(e.match(T)||e.match(G)))return"builtin";if(e.match(b))return"operator";if(e.match(/^\.?\d/,!1)){var s=RegExp(/^im\b/),c=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(c=!0),e.match(/^0x[0-9a-f_]+/i)&&(c=!0),e.match(/^0b[01_]+/i)&&(c=!0),e.match(/^0o[0-7_]+/i)&&(c=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(c=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(c=!0),c)return e.match(s),n.leavingExpr=!0,"number"}if(e.match("'"))return n.tokenize=O,n.tokenize(e,n);if(e.match(P))return n.tokenize=Z(e.current()),n.tokenize(e,n);if(e.match(D)||e.match(B))return"meta";if(e.match(y))return null;if(e.match(_))return"keyword";if(e.match(w))return"builtin";var d=n.isDefinition||n.lastToken=="function"||n.lastToken=="macro"||n.lastToken=="type"||n.lastToken=="struct"||n.lastToken=="immutable";return e.match(m)?d?e.peek()==="."?(n.isDefinition=!0,"variable"):(n.isDefinition=!1,"def"):(n.leavingExpr=!0,"variable"):(e.next(),"error")}function $(e,n){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match("{")?n.nestedParameters++:e.match("}")&&n.nestedParameters>0&&n.nestedParameters--,n.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():n.nestedParameters==0&&(n.tokenize=f),"builtin"}function I(e,n){return e.match("#=")&&n.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match("=#")&&(n.nestedComments--,n.nestedComments==0&&(n.tokenize=f)),"comment"}function O(e,n){var i=!1,r;if(e.match(x))i=!0;else if(r=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){var u=parseInt(r[1],16);(u<=55295||u>=57344)&&(i=!0,e.next())}else if(r=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var u=parseInt(r[1],16);u<=1114111&&(i=!0,e.next())}return i?(n.leavingExpr=!0,n.tokenize=f,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match("'")&&(n.tokenize=f),"error")}function Z(e){e.substr(-3)==='"""'?e='"""':e.substr(-1)==='"'&&(e='"');function n(i,r){if(i.eat("\\"))i.next();else{if(i.match(e))return r.tokenize=f,r.leavingExpr=!0,"string";i.eat(/[`"]/)}return i.eatWhile(/[^\\`"]/),"string"}return n}const j={name:"julia",startState:function(){return{tokenize:f,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,n){var i=n.tokenize(e,n),r=e.current();return r&&i&&(n.lastToken=r),i},indent:function(e,n,i){var r=0;return(n==="]"||n===")"||/^end\b/.test(n)||/^else/.test(n)||/^catch\b/.test(n)||/^elseif\b/.test(n)||/^finally/.test(n))&&(r=-1),(e.scopes.length+r)*i.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:p.concat(h)}};export{j as julia};
@@ -1,89 +0,0 @@
1
- import{b as c,aC as te,a3 as W,a_ as fe,aj as ye,am as be,aP as me,b5 as _e,S as Y,aX as G,aB as ke,J as Ee,at as Se,ay as le,L as ce}from"./mermaid.core-DBlLt9sa.js";import{g as Ne}from"./chunk-FMBD7UC4-zW3dYoIJ.js";import"./index-CRL66wiY.js";var $=function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],k=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],j=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],M=[1,35],U=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],B={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,V){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:j}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(P,[2,14],{7:M,11:U}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:j}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:M,11:U}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],V=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);m.setInput(s,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var q=m.yylloc;e.push(q);var de=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||m.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var E,R,v,Q,F={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((E===null||typeof E>"u")&&(E=ae()),v=V[R]&&V[R][E]),typeof v>"u"||!v.length||!v[0]){var Z="";K=[];for(X in V[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");m.showPosition?Z="Parse error on line "+(z+1)+`:
2
- `+m.showPosition()+`
3
- Expecting `+K.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(z+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:q,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+E);switch(v[0]){case 1:a.push(E),u.push(m.yytext),e.push(m.yylloc),a.push(v[1]),E=null,ie=m.yyleng,l=m.yytext,z=m.yylineno,q=m.yylloc;break;case 2:if(I=this.productions_[v[1]][1],F.$=u[u.length-I],F._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(F._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Q=this.performAction.apply(F,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof Q<"u")return Q;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(F.$),e.push(F._$),oe=V[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},y=function(){var _={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||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},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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 u=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===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(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,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
- `+n+"^"},"showPosition"),test_match:c(function(s,n){var a,o,u;if(this.options.backtrack_lexer&&(u={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&&(u.yylloc.range=this.yylloc.range.slice(0))),o=s[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.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,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),a)return a;if(this._backtrack){for(var e in u)this[e]=u[e];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,a,o;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),e=0;e<u.length;e++)if(a=this._input.match(this.rules[u[e]]),a&&(!n||a[0].length>n[0].length)){if(n=a,o=e,this.options.backtrack_lexer){if(s=this.test_match(a,u[e]),s!==!1)return s;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(s=this.test_match(n,u[o]),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})},"next"),lex:c(function(){var n=this.next();return n||this.lex()},"lex"),begin:c(function(n){this.conditionStack.push(n)},"begin"),popState:c(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:c(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:c(function(n){this.begin(n)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:c(function(n,a,o,u){switch(o){case 0:return this.pushState("shapeData"),a.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const e=/\n\s*/g;return a.yytext=a.yytext.replace(e,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",a.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",a.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),n.getLogger().trace("node end ...",a.yytext),"NODE_DEND";case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 41:return n.getLogger().trace("Long description:",a.yytext),21;case 42:return n.getLogger().trace("Long description:",a.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return _}();B.lexer=y;function O(){this.yy={}}return c(O,"Parser"),O.prototype=B,B.Parser=O,new O}();$.parser=$;var xe=$,D=[],ne=[],ee=0,se={},ve=c(()=>{D=[],ne=[],ee=0,se={}},"clear"),De=c(t=>{if(D.length===0)return null;const g=D[0].level;let d=null;for(let r=D.length-1;r>=0;r--)if(D[r].level===g&&!d&&(d=D[r]),D[r].level<g)throw new Error('Items without section detected, found section ("'+D[r].label+'")');return t===(d==null?void 0:d.level)?null:d},"getSection"),he=c(function(){return ne},"getSections"),Le=c(function(){const t=[],g=[],d=he(),r=W();for(const p of d){const k={id:p.id,label:G(p.label??"",r),labelType:"markdown",isGroup:!0,ticket:p.ticket,shape:"kanbanSection",level:p.level,look:r.look};g.push(k);const f=D.filter(h=>h.parentId===p.id);for(const h of f){const L={id:h.id,parentId:p.id,label:G(h.label??"",r),labelType:"markdown",isGroup:!1,ticket:h==null?void 0:h.ticket,priority:h==null?void 0:h.priority,assigned:h==null?void 0:h.assigned,icon:h==null?void 0:h.icon,shape:"kanbanItem",level:h.level,rx:5,ry:5,cssStyles:["text-align: left"]};g.push(L)}}return{nodes:g,edges:t,other:{},config:W()}},"getData"),Oe=c((t,g,d,r,p)=>{var C,w;const k=W();let f=((C=k.mindmap)==null?void 0:C.padding)??Y.mindmap.padding;switch(r){case b.ROUNDED_RECT:case b.RECT:case b.HEXAGON:f*=2}const h={id:G(g,k)||"kbn"+ee++,level:t,label:G(d,k),width:((w=k.mindmap)==null?void 0:w.maxNodeWidth)??Y.mindmap.maxNodeWidth,padding:f,isGroup:!1};if(p!==void 0){let N;p.includes(`
7
- `)?N=p+`
8
- `:N=`{
9
- `+p+`
10
- }`;const i=ke(N,{schema:Ee});if(i.shape&&(i.shape!==i.shape.toLowerCase()||i.shape.includes("_")))throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);i!=null&&i.shape&&i.shape==="kanbanItem"&&(h.shape=i==null?void 0:i.shape),i!=null&&i.label&&(h.label=i==null?void 0:i.label),i!=null&&i.icon&&(h.icon=i==null?void 0:i.icon.toString()),i!=null&&i.assigned&&(h.assigned=i==null?void 0:i.assigned.toString()),i!=null&&i.ticket&&(h.ticket=i==null?void 0:i.ticket.toString()),i!=null&&i.priority&&(h.priority=i==null?void 0:i.priority)}const L=De(t);L?h.parentId=L.id||"kbn"+ee++:ne.push(h),D.push(h)},"addNode"),b={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ie=c((t,g)=>{switch(te.debug("In get type",t,g),t){case"[":return b.RECT;case"(":return g===")"?b.ROUNDED_RECT:b.CLOUD;case"((":return b.CIRCLE;case")":return b.CLOUD;case"))":return b.BANG;case"{{":return b.HEXAGON;default:return b.DEFAULT}},"getType"),Ce=c((t,g)=>{se[t]=g},"setElementForId"),we=c(t=>{if(!t)return;const g=W(),d=D[D.length-1];t.icon&&(d.icon=G(t.icon,g)),t.class&&(d.cssClasses=G(t.class,g))},"decorateNode"),Ae=c(t=>{switch(t){case b.DEFAULT:return"no-border";case b.RECT:return"rect";case b.ROUNDED_RECT:return"rounded-rect";case b.CIRCLE:return"circle";case b.CLOUD:return"cloud";case b.BANG:return"bang";case b.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Te=c(()=>te,"getLogger"),Re=c(t=>se[t],"getElementById"),Pe={clear:ve,addNode:Oe,getSections:he,getData:Le,nodeType:b,getType:Ie,setElementForId:Ce,decorateNode:we,type2Str:Ae,getLogger:Te,getElementById:Re},Be=Pe,Ve=c(async(t,g,d,r)=>{var M,U,A,H,B;te.debug(`Rendering kanban diagram
11
- `+t);const k=r.db.getData(),f=W();f.htmlLabels=!1;const h=fe(g);for(const y of k.nodes)y.domId=`${g}-${y.id}`;const L=h.append("g");L.attr("class","sections");const C=h.append("g");C.attr("class","items");const w=k.nodes.filter(y=>y.isGroup);let N=0;const i=10,j=[];let x=25;for(const y of w){const O=((M=f==null?void 0:f.kanban)==null?void 0:M.sectionWidth)||200;N=N+1,y.x=O*N+(N-1)*i/2,y.width=O,y.y=0,y.height=O*3,y.rx=5,y.ry=5,y.cssClasses=y.cssClasses+" section-"+N;const _=await ye(L,y);x=Math.max(x,(U=_==null?void 0:_.labelBBox)==null?void 0:U.height),j.push(_)}let P=0;for(const y of w){const O=j[P];P=P+1;const _=((A=f==null?void 0:f.kanban)==null?void 0:A.sectionWidth)||200,s=-_*3/2+x;let n=s;const a=k.nodes.filter(e=>e.parentId===y.id);for(const e of a){if(e.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");e.x=y.x,e.width=_-1.5*i;const l=(await be(C,e,{config:f})).node().getBBox();e.y=n+l.height/2,await me(e),n=e.y+l.height/2+i/2}const o=O.cluster.select("rect"),u=Math.max(n-s+3*i,50)+(x-25);o.attr("height",u)}_e(void 0,h,((H=f.mindmap)==null?void 0:H.padding)??Y.kanban.padding,((B=f.mindmap)==null?void 0:B.useMaxWidth)??Y.kanban.useMaxWidth)},"draw"),Fe={draw:Ve},Ge=c(t=>{let g="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++)t["lineColor"+r]=t["lineColor"+r]||t["cScaleInv"+r],Se(t["lineColor"+r])?t["lineColor"+r]=le(t["lineColor"+r],20):t["lineColor"+r]=ce(t["lineColor"+r],20);const d=c((r,p)=>t.darkMode?ce(r,p):le(r,p),"adjuster");for(let r=0;r<t.THEME_COLOR_LIMIT;r++){const p=""+(17-3*r);g+=`
12
- .section-${r-1} rect, .section-${r-1} path, .section-${r-1} circle, .section-${r-1} polygon, .section-${r-1} path {
13
- fill: ${d(t["cScale"+r],10)};
14
- stroke: ${d(t["cScale"+r],10)};
15
-
16
- }
17
- .section-${r-1} text {
18
- fill: ${t["cScaleLabel"+r]};
19
- }
20
- .node-icon-${r-1} {
21
- font-size: 40px;
22
- color: ${t["cScaleLabel"+r]};
23
- }
24
- .section-edge-${r-1}{
25
- stroke: ${t["cScale"+r]};
26
- }
27
- .edge-depth-${r-1}{
28
- stroke-width: ${p};
29
- }
30
- .section-${r-1} line {
31
- stroke: ${t["cScaleInv"+r]} ;
32
- stroke-width: 3;
33
- }
34
-
35
- .disabled, .disabled circle, .disabled text {
36
- fill: lightgray;
37
- }
38
- .disabled text {
39
- fill: #efefef;
40
- }
41
-
42
- .node rect,
43
- .node circle,
44
- .node ellipse,
45
- .node polygon,
46
- .node path {
47
- fill: ${t.background};
48
- stroke: ${t.nodeBorder};
49
- stroke-width: 1px;
50
- }
51
-
52
- .kanban-ticket-link {
53
- fill: ${t.background};
54
- stroke: ${t.nodeBorder};
55
- text-decoration: underline;
56
- }
57
- `}return g},"genSections"),je=c(t=>`
58
- .edge {
59
- stroke-width: 3;
60
- }
61
- ${Ge(t)}
62
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
63
- fill: ${t.git0};
64
- }
65
- .section-root text {
66
- fill: ${t.gitBranchLabel0};
67
- }
68
- .icon-container {
69
- height:100%;
70
- display: flex;
71
- justify-content: center;
72
- align-items: center;
73
- }
74
- .edge {
75
- fill: none;
76
- }
77
- .cluster-label, .label {
78
- color: ${t.textColor};
79
- fill: ${t.textColor};
80
- }
81
- .kanban-label {
82
- dy: 1em;
83
- alignment-baseline: middle;
84
- text-anchor: middle;
85
- dominant-baseline: middle;
86
- text-align: center;
87
- }
88
- ${Ne()}
89
- `,"getStyles"),Me=je,ze={db:Be,renderer:Fe,parser:xe,styles:Me};export{ze as diagram};