@leanspec/ui-components 0.2.21 → 0.2.22

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 (167) hide show
  1. package/dist/{_baseUniq-KSDS6tgF.js → _baseUniq-D7Jo4wA-.js} +2 -2
  2. package/dist/{_baseUniq-ifpVq4u5.cjs → _baseUniq-DuU2z5Ko.cjs} +1 -1
  3. package/dist/{arc-CutFaiCL.cjs → arc-DVobalXV.cjs} +1 -1
  4. package/dist/{arc-C-X5Xt_b.js → arc-bSbgZKu2.js} +1 -1
  5. package/dist/{architecture-U656AL7Q-DOVRDeZr.cjs → architecture-U656AL7Q-BnnsKr-v.cjs} +1 -1
  6. package/dist/{architecture-U656AL7Q-BB1A66AM.js → architecture-U656AL7Q-pOUzdaWZ.js} +1 -1
  7. package/dist/{architectureDiagram-VXUJARFQ-Bal8NTn4.js → architectureDiagram-VXUJARFQ-B9csKaKv.js} +1272 -1279
  8. package/dist/architectureDiagram-VXUJARFQ-Dwe8uzg_.cjs +36 -0
  9. package/dist/blockDiagram-VD42YOAC-B4iBhDdw.cjs +122 -0
  10. package/dist/{blockDiagram-VD42YOAC-B2gTo5wW.js → blockDiagram-VD42YOAC-DrRsdznF.js} +911 -920
  11. package/dist/c4Diagram-YG6GDRKO-BRDnNTAH.cjs +10 -0
  12. package/dist/{c4Diagram-YG6GDRKO-dIf_vNCY.js → c4Diagram-YG6GDRKO-Di2rkJ8i.js} +162 -163
  13. package/dist/{channel-klR7o7JB.js → channel-CTeTHv-y.js} +1 -1
  14. package/dist/channel-Dzz86sIh.cjs +1 -0
  15. package/dist/chunk-4BX2VUAB-Ckv-xIp1.cjs +1 -0
  16. package/dist/chunk-4BX2VUAB-Dkr-Egsj.js +8 -0
  17. package/dist/{chunk-55IACEB6-C88Xx0rU.cjs → chunk-55IACEB6-CVnZTCiR.cjs} +1 -1
  18. package/dist/{chunk-55IACEB6-Dd3NjClm.js → chunk-55IACEB6-D_uwi6CC.js} +1 -1
  19. package/dist/{chunk-B4BG7PRW-DLUrgkJI.js → chunk-B4BG7PRW-BipBIVhj.js} +247 -248
  20. package/dist/{chunk-B4BG7PRW-BTU_nPVE.cjs → chunk-B4BG7PRW-Bne1UwNu.cjs} +6 -6
  21. package/dist/{chunk-DI55MBZ5-BwHLqSW9.js → chunk-DI55MBZ5-8tWOlvAD.js} +440 -452
  22. package/dist/chunk-DI55MBZ5-UAAzyEQX.cjs +220 -0
  23. package/dist/{chunk-FMBD7UC4-6dsbMKM7.js → chunk-FMBD7UC4-CLc8_72-.js} +1 -1
  24. package/dist/{chunk-FMBD7UC4-CedTj9g2.cjs → chunk-FMBD7UC4-DsaPsLgZ.cjs} +1 -1
  25. package/dist/chunk-QN33PNHL-BBlw4H4R.cjs +1 -0
  26. package/dist/chunk-QN33PNHL-QKH9jByz.js +19 -0
  27. package/dist/{chunk-QZHKN3VN-CVAEdzef.js → chunk-QZHKN3VN-BPpgPA2g.js} +1 -1
  28. package/dist/{chunk-QZHKN3VN-CU1cLvn7.cjs → chunk-QZHKN3VN-CB9ZTvXU.cjs} +1 -1
  29. package/dist/{chunk-TZMSLE5B-Cc8_PJIq.js → chunk-TZMSLE5B-Coq49FaX.js} +1 -1
  30. package/dist/{chunk-TZMSLE5B-Dy6zxWyY.cjs → chunk-TZMSLE5B-Dl7DiX7D.cjs} +1 -1
  31. package/dist/{classDiagram-v2-WZHVMYZB-D7bjndmT.js → classDiagram-2ON5EDUG-DYaKkEXb.js} +2 -2
  32. package/dist/{classDiagram-2ON5EDUG-CJQWUYqu.cjs → classDiagram-2ON5EDUG-Fsj2z4ej.cjs} +1 -1
  33. package/dist/{classDiagram-2ON5EDUG-D7bjndmT.js → classDiagram-v2-WZHVMYZB-DYaKkEXb.js} +2 -2
  34. package/dist/{classDiagram-v2-WZHVMYZB-CJQWUYqu.cjs → classDiagram-v2-WZHVMYZB-Fsj2z4ej.cjs} +1 -1
  35. package/dist/{clone-7srXemyd.js → clone-Ctm6tjrV.js} +1 -1
  36. package/dist/clone-JAtNXNmq.cjs +1 -0
  37. package/dist/{code-block-37QAKDTI-MRm4xHKr.js → code-block-37QAKDTI-3zaK1Sok.js} +1 -1
  38. package/dist/{code-block-37QAKDTI-BAYBliUK.cjs → code-block-37QAKDTI-UmxtJ5VR.cjs} +1 -1
  39. package/dist/components/graph/dependency-graph.d.ts.map +1 -1
  40. package/dist/components/hierarchy/hierarchy-tree.d.ts +17 -0
  41. package/dist/components/hierarchy/hierarchy-tree.d.ts.map +1 -0
  42. package/dist/components/hierarchy/index.d.ts +2 -0
  43. package/dist/components/hierarchy/index.d.ts.map +1 -0
  44. package/dist/components/index.d.ts +1 -0
  45. package/dist/components/index.d.ts.map +1 -1
  46. package/dist/components/spec/spec-card.d.ts +1 -1
  47. package/dist/components/spec/spec-card.d.ts.map +1 -1
  48. package/dist/components/ui/index.d.ts +3 -3
  49. package/dist/components/ui/index.d.ts.map +1 -1
  50. package/dist/cose-bilkent-S5V4N54A-BMt11jHq.cjs +1 -0
  51. package/dist/{cose-bilkent-S5V4N54A-0O3dLIoy.js → cose-bilkent-S5V4N54A-iUMgKFJZ.js} +281 -281
  52. package/dist/cytoscape.esm-CNUX3VTg.cjs +321 -0
  53. package/dist/{cytoscape.esm-CjI2IsL8.js → cytoscape.esm-Cvf3sx9F.js} +18 -49
  54. package/dist/dagre-6UL2VRFP-CKc2IEbO.js +443 -0
  55. package/dist/dagre-6UL2VRFP-sN44kpPp.cjs +4 -0
  56. package/dist/{diagram-PSM6KHXK-s2xYLlND.js → diagram-PSM6KHXK-DERIvROx.js} +17 -19
  57. package/dist/diagram-PSM6KHXK-Ltn89usT.cjs +24 -0
  58. package/dist/{diagram-QEK2KX5R-D700jvoY.js → diagram-QEK2KX5R-B6CdcylU.js} +10 -14
  59. package/dist/diagram-QEK2KX5R-CDZWBlgA.cjs +43 -0
  60. package/dist/{diagram-S2PKOQOG-BkgBSa1Q.js → diagram-S2PKOQOG-5f_4uCtF.js} +22 -23
  61. package/dist/diagram-S2PKOQOG-D4WcZEo0.cjs +24 -0
  62. package/dist/{erDiagram-Q2GNP2WA-CXv6THpi.js → erDiagram-Q2GNP2WA-CnN7DF_N.js} +73 -74
  63. package/dist/{erDiagram-Q2GNP2WA-DKKIPwgH.cjs → erDiagram-Q2GNP2WA-mIz8VRgG.cjs} +3 -3
  64. package/dist/flowDiagram-NV44I4VS-BwUl8_y0.cjs +162 -0
  65. package/dist/{flowDiagram-NV44I4VS-Dsrv00Gy.js → flowDiagram-NV44I4VS-Dl3ZZj2W.js} +438 -445
  66. package/dist/{ganttDiagram-JELNMOA3-BuwyOUxF.cjs → ganttDiagram-JELNMOA3-Dl_PUPHn.cjs} +1 -1
  67. package/dist/{ganttDiagram-JELNMOA3-CqVYbgbk.js → ganttDiagram-JELNMOA3-q87tSGGF.js} +2 -2
  68. package/dist/{gitGraph-F6HP7TQM-q5owfB75.js → gitGraph-F6HP7TQM-C4DmI2Gg.js} +1 -1
  69. package/dist/{gitGraph-F6HP7TQM-BtoBLEOj.cjs → gitGraph-F6HP7TQM-Cq9d8Pu6.cjs} +1 -1
  70. package/dist/gitGraphDiagram-NY62KEGX-DMhKqh_S.cjs +65 -0
  71. package/dist/gitGraphDiagram-NY62KEGX-NeHUXng4.js +699 -0
  72. package/dist/{graph-CxpBbnBw.cjs → graph-AuIe-DO_.cjs} +1 -1
  73. package/dist/{graph-rt_wscbL.js → graph-Da1z0n_J.js} +2 -2
  74. package/dist/hooks/index.d.ts +1 -0
  75. package/dist/hooks/index.d.ts.map +1 -1
  76. package/dist/hooks/use-spec-sync.d.ts +13 -0
  77. package/dist/hooks/use-spec-sync.d.ts.map +1 -0
  78. package/dist/{index-BsdeQX2F.js → index-B5zgF_S5.js} +30337 -30055
  79. package/dist/index-KEDsBA0n.cjs +2103 -0
  80. package/dist/index.cjs +1 -1
  81. package/dist/index.js +512 -500
  82. package/dist/info-NVLQJR56-A56PvZ_B.js +5 -0
  83. package/dist/{info-NVLQJR56-Ctx23Jwq.cjs → info-NVLQJR56-FWiEuR29.cjs} +1 -1
  84. package/dist/{infoDiagram-WHAUD3N6-Fq8ToFQ6.js → infoDiagram-WHAUD3N6-Cj-s-gtw.js} +2 -2
  85. package/dist/{infoDiagram-WHAUD3N6-ICmXrgfx.cjs → infoDiagram-WHAUD3N6-Dvc-cZjb.cjs} +1 -1
  86. package/dist/{journeyDiagram-XKPGCS4Q-BkYLuV5M.cjs → journeyDiagram-XKPGCS4Q-B54o9W3g.cjs} +1 -1
  87. package/dist/{journeyDiagram-XKPGCS4Q-BzZgPZwu.js → journeyDiagram-XKPGCS4Q-BbXXFBC-.js} +4 -4
  88. package/dist/kanban-definition-3W4ZIXB7-BQfiIWMB.cjs +89 -0
  89. package/dist/kanban-definition-3W4ZIXB7-ClCUbNCO.js +719 -0
  90. package/dist/{layout-CeChnsru.cjs → layout-9b_FTQ6g.cjs} +1 -1
  91. package/dist/{layout-CX9neEHw.js → layout-BoJlbrAK.js} +4 -4
  92. package/dist/lib/hierarchy.d.ts +12 -0
  93. package/dist/lib/hierarchy.d.ts.map +1 -0
  94. package/dist/lib/index.d.ts +1 -0
  95. package/dist/lib/index.d.ts.map +1 -1
  96. package/dist/{linear-CkUVga7d.js → linear-4rmylyIU.js} +1 -1
  97. package/dist/{linear-DLfe3Is-.cjs → linear-FU7lEwDb.cjs} +1 -1
  98. package/dist/{mermaid-4DMBBIKO-DK6bOe0l.cjs → mermaid-4DMBBIKO-CGMd2ylH.cjs} +1 -1
  99. package/dist/mermaid-4DMBBIKO-CNvUKRvV.js +4 -0
  100. package/dist/{mermaid-parser.core-B7VTdQ1C.js → mermaid-parser.core-BbeEQ08m.js} +2740 -2756
  101. package/dist/mermaid-parser.core-CQwGaxt2.cjs +128 -0
  102. package/dist/{min-Ar5ebLd-.js → min-C8aXS73f.js} +2 -2
  103. package/dist/{min-C_bmS8M7.cjs → min-Ddv5U3O-.cjs} +1 -1
  104. package/dist/{mindmap-definition-VGOIOE7T-DeGZNL21.js → mindmap-definition-VGOIOE7T-BRNm-2aJ.js} +166 -169
  105. package/dist/mindmap-definition-VGOIOE7T-Gp-Ji6eO.cjs +68 -0
  106. package/dist/{ordinal-DfAQgscy.js → ordinal-B6-f3MAq.js} +1 -1
  107. package/dist/{packet-BFZMPI3H-DFZzoAsC.js → packet-BFZMPI3H-CJ8lOlJN.js} +1 -1
  108. package/dist/{packet-BFZMPI3H-BVRarKKV.cjs → packet-BFZMPI3H-CpWVF6Ne.cjs} +1 -1
  109. package/dist/pie-7BOR55EZ-BCyVC33Q.js +5 -0
  110. package/dist/{pie-7BOR55EZ-0edBRKAY.cjs → pie-7BOR55EZ-Ceke0LDu.cjs} +1 -1
  111. package/dist/{pieDiagram-ADFJNKIX-C_V2NX6O.js → pieDiagram-ADFJNKIX-BVRqurYx.js} +21 -21
  112. package/dist/{pieDiagram-ADFJNKIX-Ceq-kf3C.cjs → pieDiagram-ADFJNKIX-CwhRxtMH.cjs} +2 -2
  113. package/dist/{quadrantDiagram-AYHSOK5B-B8fSnYQi.js → quadrantDiagram-AYHSOK5B-CcsZBY3e.js} +227 -229
  114. package/dist/quadrantDiagram-AYHSOK5B-DBTVya8p.cjs +7 -0
  115. package/dist/radar-NHE76QYJ-C6zEuLeW.js +5 -0
  116. package/dist/{radar-NHE76QYJ-gAJ22qc7.cjs → radar-NHE76QYJ-CX8DsGdu.cjs} +1 -1
  117. package/dist/{requirementDiagram-UZGBJVZJ-D6BE-Q1l.cjs → requirementDiagram-UZGBJVZJ-5bxQUo0r.cjs} +7 -7
  118. package/dist/{requirementDiagram-UZGBJVZJ-MnXD59Yw.js → requirementDiagram-UZGBJVZJ-CV5SUGj-.js} +186 -188
  119. package/dist/{sankeyDiagram-TZEHDZUN-Dfyu7oJ6.js → sankeyDiagram-TZEHDZUN-BFPvVGcz.js} +186 -186
  120. package/dist/{sankeyDiagram-TZEHDZUN-Dx8_KSIc.cjs → sankeyDiagram-TZEHDZUN-D33DzO8E.cjs} +5 -5
  121. package/dist/{sequenceDiagram-WL72ISMW-D2pgAoWi.js → sequenceDiagram-WL72ISMW-CQ5u3b_o.js} +213 -220
  122. package/dist/{sequenceDiagram-WL72ISMW-CUYHrDfm.cjs → sequenceDiagram-WL72ISMW-DFEVNSSA.cjs} +16 -16
  123. package/dist/{stateDiagram-FKZM4ZOC-CtYt1Ixa.cjs → stateDiagram-FKZM4ZOC-sKqH3kHZ.cjs} +1 -1
  124. package/dist/{stateDiagram-FKZM4ZOC-DYV-na53.js → stateDiagram-FKZM4ZOC-zOb-V3pD.js} +4 -4
  125. package/dist/{stateDiagram-v2-4FDKWEC3-CeSnHO3T.cjs → stateDiagram-v2-4FDKWEC3-DwWb55sM.cjs} +1 -1
  126. package/dist/{stateDiagram-v2-4FDKWEC3-Kp4sxr9o.js → stateDiagram-v2-4FDKWEC3-_Mzc1jVl.js} +2 -2
  127. package/dist/{timeline-definition-IT6M3QCI-621ePKJ0.js → timeline-definition-IT6M3QCI-B2T2QrC5.js} +211 -215
  128. package/dist/timeline-definition-IT6M3QCI-D19MQs5w.cjs +61 -0
  129. package/dist/{treemap-KMMF4GRG-DSNryTu7.cjs → treemap-KMMF4GRG-C7E3CtG7.cjs} +1 -1
  130. package/dist/{treemap-KMMF4GRG-l6HrdCLC.js → treemap-KMMF4GRG-wB3pBnFc.js} +1 -1
  131. package/dist/types/specs.d.ts +2 -0
  132. package/dist/types/specs.d.ts.map +1 -1
  133. package/dist/ui-components.css +1 -1
  134. package/dist/{xychartDiagram-PRI3JC2R-CkfCv2o_.js → xychartDiagram-PRI3JC2R-BSPghzKh.js} +3 -3
  135. package/dist/{xychartDiagram-PRI3JC2R-C2_xziD5.cjs → xychartDiagram-PRI3JC2R-hKFxVf6x.cjs} +1 -1
  136. package/package.json +5 -2
  137. package/dist/architectureDiagram-VXUJARFQ-WCtQIdet.cjs +0 -36
  138. package/dist/blockDiagram-VD42YOAC-CGdaLv7H.cjs +0 -122
  139. package/dist/c4Diagram-YG6GDRKO-DfRXyZHM.cjs +0 -10
  140. package/dist/channel-CMrUjUoZ.cjs +0 -1
  141. package/dist/chunk-4BX2VUAB-BQgzc1Sm.js +0 -9
  142. package/dist/chunk-4BX2VUAB-CO5acanJ.cjs +0 -1
  143. package/dist/chunk-DI55MBZ5-lVvJu2kr.cjs +0 -220
  144. package/dist/chunk-QN33PNHL-DHNejhbC.js +0 -20
  145. package/dist/chunk-QN33PNHL-Dr9ghdFD.cjs +0 -1
  146. package/dist/clone-Chgndk5P.cjs +0 -1
  147. package/dist/cose-bilkent-S5V4N54A-CPai-c_a.cjs +0 -1
  148. package/dist/cytoscape.esm-o9WRfNPd.cjs +0 -331
  149. package/dist/dagre-6UL2VRFP-BqaZre9N.js +0 -446
  150. package/dist/dagre-6UL2VRFP-CeIiJJG5.cjs +0 -4
  151. package/dist/diagram-PSM6KHXK-oD045yZG.cjs +0 -24
  152. package/dist/diagram-QEK2KX5R-VH7_rcp0.cjs +0 -43
  153. package/dist/diagram-S2PKOQOG-CjDpLVdl.cjs +0 -24
  154. package/dist/flowDiagram-NV44I4VS-U52jVnrS.cjs +0 -162
  155. package/dist/gitGraphDiagram-NY62KEGX-DH1I05Ix.cjs +0 -65
  156. package/dist/gitGraphDiagram-NY62KEGX-DOanbk62.js +0 -712
  157. package/dist/index-Cg8ByiK0.cjs +0 -2153
  158. package/dist/info-NVLQJR56-hH82KARZ.js +0 -5
  159. package/dist/kanban-definition-3W4ZIXB7-BV7UYL3n.cjs +0 -89
  160. package/dist/kanban-definition-3W4ZIXB7-CrmrjRAg.js +0 -721
  161. package/dist/mermaid-4DMBBIKO-wnX9ATcq.js +0 -4
  162. package/dist/mermaid-parser.core-DvlzR6J2.cjs +0 -128
  163. package/dist/mindmap-definition-VGOIOE7T-BBqv9TKM.cjs +0 -68
  164. package/dist/pie-7BOR55EZ-zLMdfI8h.js +0 -5
  165. package/dist/quadrantDiagram-AYHSOK5B-BButfYaS.cjs +0 -7
  166. package/dist/radar-NHE76QYJ-DeqJwy76.js +0 -5
  167. package/dist/timeline-definition-IT6M3QCI-4fRZfQpb.cjs +0 -61
@@ -1,68 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("./chunk-55IACEB6-C88Xx0rU.cjs"),ae=require("./chunk-QN33PNHL-Dr9ghdFD.cjs"),a=require("./index-Cg8ByiK0.cjs"),_=[];for(let t=0;t<256;++t)_.push((t+256).toString(16).slice(1));function oe(t,e=0){return(_[t[e+0]]+_[t[e+1]]+_[t[e+2]]+_[t[e+3]]+"-"+_[t[e+4]]+_[t[e+5]]+"-"+_[t[e+6]]+_[t[e+7]]+"-"+_[t[e+8]]+_[t[e+9]]+"-"+_[t[e+10]]+_[t[e+11]]+_[t[e+12]]+_[t[e+13]]+_[t[e+14]]+_[t[e+15]]).toLowerCase()}let H;const ce=new Uint8Array(16);function le(){if(!H){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");H=crypto.getRandomValues.bind(crypto)}return H(ce)}const he=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Z={randomUUID:he};function de(t,e,i){var u;if(Z.randomUUID&&!t)return Z.randomUUID();t=t||{};const l=t.random??((u=t.rng)==null?void 0:u.call(t))??le();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,oe(l)}var $=(function(){var t=a.__name(function(v,s,n,o){for(n=n||{},o=v.length;o--;n[v[o]]=s);return n},"o"),e=[1,4],i=[1,13],l=[1,12],u=[1,15],h=[1,16],p=[1,20],m=[1,19],E=[6,7,8],b=[1,26],y=[1,24],R=[1,25],N=[6,7,11],W=[1,6,13,15,16,19,22],X=[1,33],q=[1,34],w=[1,6,7,11,13,15,16,19,22],B={trace:a.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},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,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:a.__name(function(s,n,o,c,g,r,A){var d=r.length-1;switch(g){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[d].id),c.addNode(r[d-1].length,r[d].id,r[d].descr,r[d].type);break;case 16:c.getLogger().trace("Icon: ",r[d]),c.decorateNode({icon:r[d]});break;case 17:case 21:c.decorateNode({class:r[d]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[d].id),c.addNode(0,r[d].id,r[d].descr,r[d].type);break;case 20:c.decorateNode({icon:r[d]});break;case 25:c.getLogger().trace("node found ..",r[d-2]),this.$={id:r[d-1],descr:r[d-1],type:c.getType(r[d-2],r[d])};break;case 26:this.$={id:r[d],descr:r[d],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[d-3]),this.$={id:r[d-3],descr:r[d-1],type:c.getType(r[d-2],r[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:l,14:14,15:u,16:h,17:17,18:18,19:p,22:m},t(E,[2,3]),{1:[2,2]},t(E,[2,4]),t(E,[2,5]),{1:[2,6],6:i,12:21,13:l,14:14,15:u,16:h,17:17,18:18,19:p,22:m},{6:i,9:22,12:11,13:l,14:14,15:u,16:h,17:17,18:18,19:p,22:m},{6:b,7:y,10:23,11:R},t(N,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:p,22:m}),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,23]),t(N,[2,24]),t(N,[2,26],{19:[1,30]}),{20:[1,31]},{6:b,7:y,10:32,11:R},{1:[2,7],6:i,12:21,13:l,14:14,15:u,16:h,17:17,18:18,19:p,22:m},t(W,[2,14],{7:X,11:q}),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),{20:[1,35]},{21:[1,36]},t(W,[2,13],{7:X,11:q}),t(w,[2,11]),t(w,[2,12]),{21:[1,37]},t(N,[2,25]),t(N,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:a.__name(function(s,n){if(n.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=n,o}},"parseError"),parse:a.__name(function(s){var n=this,o=[0],c=[],g=[null],r=[],A=this.table,d="",P=0,Y=0,te=2,Q=1,ne=r.slice.call(arguments,1),f=Object.create(this.lexer),T={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(T.yy[F]=this.yy[F]);f.setInput(s,T.yy),T.yy.lexer=f,T.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var j=f.yylloc;r.push(j);var ie=f.options&&f.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(D){o.length=o.length-2*D,g.length=g.length-D,r.length=r.length-D}a.__name(se,"popStack");function J(){var D;return D=c.pop()||f.lex()||Q,typeof D!="number"&&(D instanceof Array&&(c=D,D=c.pop()),D=n.symbols_[D]||D),D}a.__name(J,"lex");for(var S,C,k,G,O={},M,L,K,V;;){if(C=o[o.length-1],this.defaultActions[C]?k=this.defaultActions[C]:((S===null||typeof S>"u")&&(S=J()),k=A[C]&&A[C][S]),typeof k>"u"||!k.length||!k[0]){var z="";V=[];for(M in A[C])this.terminals_[M]&&M>te&&V.push("'"+this.terminals_[M]+"'");f.showPosition?z="Parse error on line "+(P+1)+`:
2
- `+f.showPosition()+`
3
- Expecting `+V.join(", ")+", got '"+(this.terminals_[S]||S)+"'":z="Parse error on line "+(P+1)+": Unexpected "+(S==Q?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(z,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:j,expected:V})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+S);switch(k[0]){case 1:o.push(S),g.push(f.yytext),r.push(f.yylloc),o.push(k[1]),S=null,Y=f.yyleng,d=f.yytext,P=f.yylineno,j=f.yylloc;break;case 2:if(L=this.productions_[k[1]][1],O.$=g[g.length-L],O._$={first_line:r[r.length-(L||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(L||1)].first_column,last_column:r[r.length-1].last_column},ie&&(O._$.range=[r[r.length-(L||1)].range[0],r[r.length-1].range[1]]),G=this.performAction.apply(O,[d,Y,P,T.yy,k[1],g,r].concat(ne)),typeof G<"u")return G;L&&(o=o.slice(0,-1*L*2),g=g.slice(0,-1*L),r=r.slice(0,-1*L)),o.push(this.productions_[k[1]][0]),g.push(O.$),r.push(O._$),K=A[o[o.length-2]][o[o.length-1]],o.push(K);break;case 3:return!0}}return!0},"parse")},ee=(function(){var v={EOF:1,parseError:a.__name(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:a.__name(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:a.__name(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:a.__name(function(s){var n=s.length,o=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 c=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),o.length-1&&(this.yylineno-=o.length-1);var g=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:a.__name(function(){return this._more=!0,this},"more"),reject:a.__name(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:a.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:a.__name(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:a.__name(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:a.__name(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
- `+n+"^"},"showPosition"),test_match:a.__name(function(s,n){var o,c,g;if(this.options.backtrack_lexer&&(g={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&&(g.yylloc.range=this.yylloc.range.slice(0))),c=s[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.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],o=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var r in g)this[r]=g[r];return!1}return!1},"test_match"),next:a.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,o,c;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),r=0;r<g.length;r++)if(o=this._input.match(this.rules[g[r]]),o&&(!n||o[0].length>n[0].length)){if(n=o,c=r,this.options.backtrack_lexer){if(s=this.test_match(o,g[r]),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,g[c]),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:a.__name(function(){var n=this.next();return n||this.lex()},"lex"),begin:a.__name(function(n){this.conditionStack.push(n)},"begin"),popState:a.__name(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a.__name(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:a.__name(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:a.__name(function(n){this.begin(n)},"pushState"),stateStackSize:a.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a.__name(function(n,o,c,g){switch(c){case 0:return n.getLogger().trace("Found comment",o.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return n.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:n.getLogger().trace("end icon"),this.popState();break;case 10:return n.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return n.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:return this.begin("NODE"),19;case 15:return this.begin("NODE"),19;case 16:return this.begin("NODE"),19;case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return n.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),n.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";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 n.getLogger().trace("Long description:",o.yytext),20;case 36:return n.getLogger().trace("Long description:",o.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\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:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return v})();B.lexer=ee;function U(){this.yy={}}return a.__name(U,"Parser"),U.prototype=B,B.Parser=U,new U})();$.parser=$;var ge=$,x={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},I,ue=(I=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=x,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let i=this.nodes.length-1;i>=0;i--)if(this.nodes[i].level<e)return this.nodes[i];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,i,l,u){var y,R;a.log.info("addNode",e,i,l,u);let h=!1;this.nodes.length===0?(this.baseLevel=e,e=0,h=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,h=!1);const p=a.getConfig2();let m=((y=p.mindmap)==null?void 0:y.padding)??a.defaultConfig_default.mindmap.padding;switch(u){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:m*=2;break}const E={id:this.count++,nodeId:a.sanitizeText(i,p),level:e,descr:a.sanitizeText(l,p),type:u,children:[],width:((R=p.mindmap)==null?void 0:R.maxNodeWidth)??a.defaultConfig_default.mindmap.maxNodeWidth,padding:m,isRoot:h},b=this.getParent(e);if(b)b.children.push(E),this.nodes.push(E);else if(h)this.nodes.push(E);else throw new Error(`There can be only one root. No parent could be found for ("${E.descr}")`)}getType(e,i){switch(a.log.debug("In get type",e,i),e){case"[":return this.nodeType.RECT;case"(":return i===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,i){this.elements[e]=i}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const i=a.getConfig2(),l=this.nodes[this.nodes.length-1];e.icon&&(l.icon=a.sanitizeText(e.icon,i)),e.class&&(l.class=a.sanitizeText(e.class,i))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,i){if(e.level===0?e.section=void 0:e.section=i,e.children)for(const[l,u]of e.children.entries()){const h=e.level===0?l:i;this.assignSections(u,h)}}flattenNodes(e,i){const l=["mindmap-node"];e.isRoot===!0?l.push("section-root","section--1"):e.section!==void 0&&l.push(`section-${e.section}`),e.class&&l.push(e.class);const u=l.join(" "),h=a.__name(m=>{switch(m){case x.CIRCLE:return"mindmapCircle";case x.RECT:return"rect";case x.ROUNDED_RECT:return"rounded";case x.CLOUD:return"cloud";case x.BANG:return"bang";case x.HEXAGON:return"hexagon";case x.DEFAULT:return"defaultMindmapNode";case x.NO_BORDER:default:return"rect"}},"getShapeFromType"),p={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,isGroup:!1,shape:h(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:u,cssStyles:[],look:"default",icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(i.push(p),e.children)for(const m of e.children)this.flattenNodes(m,i)}generateEdges(e,i){if(e.children)for(const l of e.children){let u="edge";l.section!==void 0&&(u+=` section-edge-${l.section}`);const h=e.level+1;u+=` edge-depth-${h}`;const p={id:`edge_${e.id}_${l.id}`,start:e.id.toString(),end:l.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:u,depth:e.level,section:l.section};i.push(p),this.generateEdges(l,i)}}getData(){const e=this.getMindmap(),i=a.getConfig2(),u=a.getUserDefinedConfig().layout!==void 0,h=i;if(u||(h.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:h};a.log.debug("getData: mindmapRoot",e,i),this.assignSections(e);const p=[],m=[];this.flattenNodes(e,p),this.generateEdges(e,m),a.log.debug(`getData: processed ${p.length} nodes and ${m.length} edges`);const E=new Map;for(const b of p)E.set(b.id,{shape:b.shape,width:b.width,height:b.height,padding:b.padding});return{nodes:p,edges:m,config:h,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(E),type:"mindmap",diagramId:"mindmap-"+de()}}getLogger(){return a.log}},a.__name(I,"MindmapDB"),I),pe=a.__name(async(t,e,i,l)=>{var E,b;a.log.debug(`Rendering mindmap diagram
7
- `+t);const u=l.db,h=u.getData(),p=re.getDiagramElement(e,h.config.securityLevel);h.type=l.type,h.layoutAlgorithm=a.getRegisteredLayoutAlgorithm(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=e,u.getMindmap()&&(h.nodes.forEach(y=>{y.shape==="rounded"?(y.radius=15,y.taper=15,y.stroke="none",y.width=0,y.padding=15):y.shape==="circle"?y.padding=10:y.shape==="rect"&&(y.width=0,y.padding=10)}),await a.render(h,p),ae.setupViewPortForSVG(p,((E=h.config.mindmap)==null?void 0:E.padding)??a.defaultConfig_default.mindmap.padding,"mindmapDiagram",((b=h.config.mindmap)==null?void 0:b.useMaxWidth)??a.defaultConfig_default.mindmap.useMaxWidth))},"draw"),fe={draw:pe},me=a.__name(t=>{let e="";for(let i=0;i<t.THEME_COLOR_LIMIT;i++)t["lineColor"+i]=t["lineColor"+i]||t["cScaleInv"+i],a.isDark(t["lineColor"+i])?t["lineColor"+i]=a.lighten(t["lineColor"+i],20):t["lineColor"+i]=a.darken(t["lineColor"+i],20);for(let i=0;i<t.THEME_COLOR_LIMIT;i++){const l=""+(17-3*i);e+=`
8
- .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
9
- fill: ${t["cScale"+i]};
10
- }
11
- .section-${i-1} text {
12
- fill: ${t["cScaleLabel"+i]};
13
- }
14
- .node-icon-${i-1} {
15
- font-size: 40px;
16
- color: ${t["cScaleLabel"+i]};
17
- }
18
- .section-edge-${i-1}{
19
- stroke: ${t["cScale"+i]};
20
- }
21
- .edge-depth-${i-1}{
22
- stroke-width: ${l};
23
- }
24
- .section-${i-1} line {
25
- stroke: ${t["cScaleInv"+i]} ;
26
- stroke-width: 3;
27
- }
28
-
29
- .disabled, .disabled circle, .disabled text {
30
- fill: lightgray;
31
- }
32
- .disabled text {
33
- fill: #efefef;
34
- }
35
- `}return e},"genSections"),ye=a.__name(t=>`
36
- .edge {
37
- stroke-width: 3;
38
- }
39
- ${me(t)}
40
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
41
- fill: ${t.git0};
42
- }
43
- .section-root text {
44
- fill: ${t.gitBranchLabel0};
45
- }
46
- .section-root span {
47
- color: ${t.gitBranchLabel0};
48
- }
49
- .section-2 span {
50
- color: ${t.gitBranchLabel0};
51
- }
52
- .icon-container {
53
- height:100%;
54
- display: flex;
55
- justify-content: center;
56
- align-items: center;
57
- }
58
- .edge {
59
- fill: none;
60
- }
61
- .mindmap-node-label {
62
- dy: 1em;
63
- alignment-baseline: middle;
64
- text-anchor: middle;
65
- dominant-baseline: middle;
66
- text-align: center;
67
- }
68
- `,"getStyles"),_e=ye,Ee={get db(){return new ue},renderer:fe,parser:ge,styles:_e};exports.diagram=Ee;
@@ -1,5 +0,0 @@
1
- import { b as a, d as i } from "./mermaid-parser.core-B7VTdQ1C.js";
2
- export {
3
- a as PieModule,
4
- i as createPieServices
5
- };
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Cg8ByiK0.cjs"),Zt=require("./linear-DLfe3Is-.cjs");var Et=(function(){var t=e.__name(function(Y,l,o,g){for(o=o||{},g=Y.length;g--;o[Y[g]]=l);return o},"o"),s=[1,3],u=[1,4],h=[1,5],c=[1,6],p=[1,7],_=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],b=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],n=[55,56,57],A=[2,36],d=[1,37],y=[1,36],m=[1,38],T=[1,35],q=[1,43],f=[1,41],Q=[1,14],M=[1,23],j=[1,18],pt=[1,19],_t=[1,20],ht=[1,21],At=[1,22],dt=[1,24],ut=[1,25],ft=[1,26],xt=[1,27],i=[1,28],zt=[1,29],N=[1,32],W=[1,33],k=[1,34],F=[1,39],P=[1,40],C=[1,42],v=[1,44],O=[1,62],H=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Vt=[1,65],It=[1,66],wt=[1,67],Bt=[1,68],Rt=[1,69],Nt=[1,70],Wt=[1,71],Ut=[1,72],Qt=[1,73],Ot=[1,74],Ht=[1,75],Xt=[1,76],V=[4,5,6,7,8,9,10,11,12,13,14,15,18],Z=[1,90],J=[1,91],$=[1,92],tt=[1,99],et=[1,93],at=[1,96],it=[1,94],nt=[1,95],st=[1,97],rt=[1,98],kt=[1,102],Mt=[10,55,56,57],B=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],Ft={trace:e.__name(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:e.__name(function(l,o,g,x,S,a,gt){var r=a.length-1;switch(S){case 23:this.$=a[r];break;case 24:this.$=a[r-1]+""+a[r];break;case 26:this.$=a[r-1]+a[r];break;case 27:this.$=[a[r].trim()];break;case 28:a[r-2].push(a[r].trim()),this.$=a[r-2];break;case 29:this.$=a[r-4],x.addClass(a[r-2],a[r]);break;case 37:this.$=[];break;case 42:this.$=a[r].trim(),x.setDiagramTitle(this.$);break;case 43:this.$=a[r].trim(),x.setAccTitle(this.$);break;case 44:case 45:this.$=a[r].trim(),x.setAccDescription(this.$);break;case 46:x.addSection(a[r].substr(8)),this.$=a[r].substr(8);break;case 47:x.addPoint(a[r-3],"",a[r-1],a[r],[]);break;case 48:x.addPoint(a[r-4],a[r-3],a[r-1],a[r],[]);break;case 49:x.addPoint(a[r-4],"",a[r-2],a[r-1],a[r]);break;case 50:x.addPoint(a[r-5],a[r-4],a[r-2],a[r-1],a[r]);break;case 51:x.setXAxisLeftText(a[r-2]),x.setXAxisRightText(a[r]);break;case 52:a[r-1].text+=" ⟶ ",x.setXAxisLeftText(a[r-1]);break;case 53:x.setXAxisLeftText(a[r]);break;case 54:x.setYAxisBottomText(a[r-2]),x.setYAxisTopText(a[r]);break;case 55:a[r-1].text+=" ⟶ ",x.setYAxisBottomText(a[r-1]);break;case 56:x.setYAxisBottomText(a[r]);break;case 57:x.setQuadrant1Text(a[r]);break;case 58:x.setQuadrant2Text(a[r]);break;case 59:x.setQuadrant3Text(a[r]);break;case 60:x.setQuadrant4Text(a[r]);break;case 64:this.$={text:a[r],type:"text"};break;case 65:this.$={text:a[r-1].text+""+a[r],type:a[r-1].type};break;case 66:this.$={text:a[r],type:"text"};break;case 67:this.$={text:a[r],type:"markdown"};break;case 68:this.$=a[r];break;case 69:this.$=a[r-1]+""+a[r];break}},"anonymous"),table:[{18:s,26:1,27:2,28:u,55:h,56:c,57:p},{1:[3]},{18:s,26:8,27:2,28:u,55:h,56:c,57:p},{18:s,26:9,27:2,28:u,55:h,56:c,57:p},t(_,[2,33],{29:10}),t(b,[2,61]),t(b,[2,62]),t(b,[2,63]),{1:[2,30]},{1:[2,31]},t(n,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:d,5:y,10:m,12:T,13:q,14:f,18:Q,25:M,35:j,37:pt,39:_t,41:ht,42:At,48:dt,50:ut,51:ft,52:xt,53:i,54:zt,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),t(_,[2,34]),{27:45,55:h,56:c,57:p},t(n,[2,37]),t(n,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:d,5:y,10:m,12:T,13:q,14:f,18:Q,25:M,35:j,37:pt,39:_t,41:ht,42:At,48:dt,50:ut,51:ft,52:xt,53:i,54:zt,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),t(n,[2,39]),t(n,[2,40]),t(n,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(n,[2,45]),t(n,[2,46]),{18:[1,50]},{4:d,5:y,10:m,12:T,13:q,14:f,43:51,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:52,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:53,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:54,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:55,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,10:m,12:T,13:q,14:f,43:56,58:31,60:N,61:W,63:k,64:F,65:P,66:C,67:v},{4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:C,67:v},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(_,[2,35]),t(n,[2,38]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),{3:64,4:Vt,5:It,6:wt,7:Bt,8:Rt,9:Nt,10:Wt,11:Ut,12:Qt,13:Ot,14:Ht,15:Xt,21:63},t(n,[2,53],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,49:[1,77],63:k,64:F,65:P,66:C,67:v}),t(n,[2,56],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,49:[1,78],63:k,64:F,65:P,66:C,67:v}),t(n,[2,57],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,58],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,59],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,60],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Vt,5:It,6:wt,7:Bt,8:Rt,9:Nt,10:Wt,11:Ut,12:Qt,13:Ot,14:Ht,15:Xt,18:[1,81]},t(V,[2,23]),t(V,[2,1]),t(V,[2,2]),t(V,[2,3]),t(V,[2,4]),t(V,[2,5]),t(V,[2,6]),t(V,[2,7]),t(V,[2,8]),t(V,[2,9]),t(V,[2,10]),t(V,[2,11]),t(V,[2,12]),t(n,[2,52],{58:31,43:83,4:d,5:y,10:m,12:T,13:q,14:f,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),t(n,[2,55],{58:31,43:84,4:d,5:y,10:m,12:T,13:q,14:f,60:N,61:W,63:k,64:F,65:P,66:C,67:v}),{46:[1,85]},{45:[1,86]},{4:Z,5:J,6:$,8:tt,11:et,13:at,16:89,17:it,18:nt,19:st,20:rt,22:88,23:87},t(V,[2,24]),t(n,[2,51],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,54],{59:59,58:60,4:d,5:y,8:O,10:m,12:T,13:q,14:f,18:H,63:k,64:F,65:P,66:C,67:v}),t(n,[2,47],{22:88,16:89,23:100,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:st,20:rt}),{46:[1,101]},t(n,[2,29],{10:kt}),t(Mt,[2,27],{16:103,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:st,20:rt}),t(B,[2,25]),t(B,[2,13]),t(B,[2,14]),t(B,[2,15]),t(B,[2,16]),t(B,[2,17]),t(B,[2,18]),t(B,[2,19]),t(B,[2,20]),t(B,[2,21]),t(B,[2,22]),t(n,[2,49],{10:kt}),t(n,[2,48],{22:88,16:89,23:104,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:st,20:rt}),{4:Z,5:J,6:$,8:tt,11:et,13:at,16:89,17:it,18:nt,19:st,20:rt,22:105},t(B,[2,26]),t(n,[2,50],{10:kt}),t(Mt,[2,28],{16:103,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:e.__name(function(l,o){if(o.recoverable)this.trace(l);else{var g=new Error(l);throw g.hash=o,g}},"parseError"),parse:e.__name(function(l){var o=this,g=[0],x=[],S=[null],a=[],gt=this.table,r="",mt=0,Yt=0,xe=2,jt=1,ge=a.slice.call(arguments,1),E=Object.create(this.lexer),G={yy:{}};for(var Pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pt)&&(G.yy[Pt]=this.yy[Pt]);E.setInput(l,G.yy),G.yy.lexer=E,G.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Ct=E.yylloc;a.push(Ct);var pe=E.options&&E.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(w){g.length=g.length-2*w,S.length=S.length-w,a.length=a.length-w}e.__name(_e,"popStack");function Gt(){var w;return w=x.pop()||E.lex()||jt,typeof w!="number"&&(w instanceof Array&&(x=w,w=x.pop()),w=o.symbols_[w]||w),w}e.__name(Gt,"lex");for(var I,K,R,vt,lt={},Tt,X,Kt,qt;;){if(K=g[g.length-1],this.defaultActions[K]?R=this.defaultActions[K]:((I===null||typeof I>"u")&&(I=Gt()),R=gt[K]&&gt[K][I]),typeof R>"u"||!R.length||!R[0]){var Lt="";qt=[];for(Tt in gt[K])this.terminals_[Tt]&&Tt>xe&&qt.push("'"+this.terminals_[Tt]+"'");E.showPosition?Lt="Parse error on line "+(mt+1)+`:
2
- `+E.showPosition()+`
3
- Expecting `+qt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Lt="Parse error on line "+(mt+1)+": Unexpected "+(I==jt?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Lt,{text:E.match,token:this.terminals_[I]||I,line:E.yylineno,loc:Ct,expected:qt})}if(R[0]instanceof Array&&R.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+I);switch(R[0]){case 1:g.push(I),S.push(E.yytext),a.push(E.yylloc),g.push(R[1]),I=null,Yt=E.yyleng,r=E.yytext,mt=E.yylineno,Ct=E.yylloc;break;case 2:if(X=this.productions_[R[1]][1],lt.$=S[S.length-X],lt._$={first_line:a[a.length-(X||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(X||1)].first_column,last_column:a[a.length-1].last_column},pe&&(lt._$.range=[a[a.length-(X||1)].range[0],a[a.length-1].range[1]]),vt=this.performAction.apply(lt,[r,Yt,mt,G.yy,R[1],S,a].concat(ge)),typeof vt<"u")return vt;X&&(g=g.slice(0,-1*X*2),S=S.slice(0,-1*X),a=a.slice(0,-1*X)),g.push(this.productions_[R[1]][0]),S.push(lt.$),a.push(lt._$),Kt=gt[g[g.length-2]][g[g.length-1]],g.push(Kt);break;case 3:return!0}}return!0},"parse")},fe=(function(){var Y={EOF:1,parseError:e.__name(function(o,g){if(this.yy.parser)this.yy.parser.parseError(o,g);else throw new Error(o)},"parseError"),setInput:e.__name(function(l,o){return this.yy=o||this.yy||{},this._input=l,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:e.__name(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var o=l.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:e.__name(function(l){var o=l.length,g=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var x=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),g.length-1&&(this.yylineno-=g.length-1);var S=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:g?(g.length===x.length?this.yylloc.first_column:0)+x[x.length-g.length].length-g[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},"unput"),more:e.__name(function(){return this._more=!0,this},"more"),reject:e.__name(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:e.__name(function(l){this.unput(this.match.slice(l))},"less"),pastInput:e.__name(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e.__name(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e.__name(function(){var l=this.pastInput(),o=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
5
- `+o+"^"},"showPosition"),test_match:e.__name(function(l,o){var g,x,S;if(this.options.backtrack_lexer&&(S={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&&(S.yylloc.range=this.yylloc.range.slice(0))),x=l[0].match(/(?:\r\n?|\n).*/g),x&&(this.yylineno+=x.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:x?x[x.length-1].length-x[x.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,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(l[0].length),this.matched+=l[0],g=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var a in S)this[a]=S[a];return!1}return!1},"test_match"),next:e.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,o,g,x;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),a=0;a<S.length;a++)if(g=this._input.match(this.rules[S[a]]),g&&(!o||g[0].length>o[0].length)){if(o=g,x=a,this.options.backtrack_lexer){if(l=this.test_match(g,S[a]),l!==!1)return l;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(l=this.test_match(o,S[x]),l!==!1?l:!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:e.__name(function(){var o=this.next();return o||this.lex()},"lex"),begin:e.__name(function(o){this.conditionStack.push(o)},"begin"),popState:e.__name(function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:e.__name(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:e.__name(function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},"topState"),pushState:e.__name(function(o){this.begin(o)},"pushState"),stateStackSize:e.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:e.__name(function(o,g,x,S){switch(x){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return Y})();Ft.lexer=fe;function yt(){this.yy={}}return e.__name(yt,"Parser"),yt.prototype=Ft,Ft.Parser=yt,new yt})();Et.parser=Et;var ye=Et,z=e.getThemeVariables3(),ot,me=(ot=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var s,u,h,c,p,_,b,n,A,d,y,m,T,q,f,Q,M,j;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((s=e.defaultConfig_default.quadrantChart)==null?void 0:s.chartWidth)||500,chartWidth:((u=e.defaultConfig_default.quadrantChart)==null?void 0:u.chartHeight)||500,titlePadding:((h=e.defaultConfig_default.quadrantChart)==null?void 0:h.titlePadding)||10,titleFontSize:((c=e.defaultConfig_default.quadrantChart)==null?void 0:c.titleFontSize)||20,quadrantPadding:((p=e.defaultConfig_default.quadrantChart)==null?void 0:p.quadrantPadding)||5,xAxisLabelPadding:((_=e.defaultConfig_default.quadrantChart)==null?void 0:_.xAxisLabelPadding)||5,yAxisLabelPadding:((b=e.defaultConfig_default.quadrantChart)==null?void 0:b.yAxisLabelPadding)||5,xAxisLabelFontSize:((n=e.defaultConfig_default.quadrantChart)==null?void 0:n.xAxisLabelFontSize)||16,yAxisLabelFontSize:((A=e.defaultConfig_default.quadrantChart)==null?void 0:A.yAxisLabelFontSize)||16,quadrantLabelFontSize:((d=e.defaultConfig_default.quadrantChart)==null?void 0:d.quadrantLabelFontSize)||16,quadrantTextTopPadding:((y=e.defaultConfig_default.quadrantChart)==null?void 0:y.quadrantTextTopPadding)||5,pointTextPadding:((m=e.defaultConfig_default.quadrantChart)==null?void 0:m.pointTextPadding)||5,pointLabelFontSize:((T=e.defaultConfig_default.quadrantChart)==null?void 0:T.pointLabelFontSize)||12,pointRadius:((q=e.defaultConfig_default.quadrantChart)==null?void 0:q.pointRadius)||5,xAxisPosition:((f=e.defaultConfig_default.quadrantChart)==null?void 0:f.xAxisPosition)||"top",yAxisPosition:((Q=e.defaultConfig_default.quadrantChart)==null?void 0:Q.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((M=e.defaultConfig_default.quadrantChart)==null?void 0:M.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((j=e.defaultConfig_default.quadrantChart)==null?void 0:j.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:z.quadrant1Fill,quadrant2Fill:z.quadrant2Fill,quadrant3Fill:z.quadrant3Fill,quadrant4Fill:z.quadrant4Fill,quadrant1TextFill:z.quadrant1TextFill,quadrant2TextFill:z.quadrant2TextFill,quadrant3TextFill:z.quadrant3TextFill,quadrant4TextFill:z.quadrant4TextFill,quadrantPointFill:z.quadrantPointFill,quadrantPointTextFill:z.quadrantPointTextFill,quadrantXAxisTextFill:z.quadrantXAxisTextFill,quadrantYAxisTextFill:z.quadrantYAxisTextFill,quadrantTitleFill:z.quadrantTitleFill,quadrantInternalBorderStrokeFill:z.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:z.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,e.log.info("clear called")}setData(s){this.data={...this.data,...s}}addPoints(s){this.data.points=[...s,...this.data.points]}addClass(s,u){this.classes.set(s,u)}setConfig(s){e.log.trace("setConfig called with: ",s),this.config={...this.config,...s}}setThemeConfig(s){e.log.trace("setThemeConfig called with: ",s),this.themeConfig={...this.themeConfig,...s}}calculateSpace(s,u,h,c){const p=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,_={top:s==="top"&&u?p:0,bottom:s==="bottom"&&u?p:0},b=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,n={left:this.config.yAxisPosition==="left"&&h?b:0,right:this.config.yAxisPosition==="right"&&h?b:0},A=this.config.titleFontSize+this.config.titlePadding*2,d={top:c?A:0},y=this.config.quadrantPadding+n.left,m=this.config.quadrantPadding+_.top+d.top,T=this.config.chartWidth-this.config.quadrantPadding*2-n.left-n.right,q=this.config.chartHeight-this.config.quadrantPadding*2-_.top-_.bottom-d.top,f=T/2,Q=q/2;return{xAxisSpace:_,yAxisSpace:n,titleSpace:d,quadrantSpace:{quadrantLeft:y,quadrantTop:m,quadrantWidth:T,quadrantHalfWidth:f,quadrantHeight:q,quadrantHalfHeight:Q}}}getAxisLabels(s,u,h,c){const{quadrantSpace:p,titleSpace:_}=c,{quadrantHalfHeight:b,quadrantHeight:n,quadrantLeft:A,quadrantHalfWidth:d,quadrantTop:y,quadrantWidth:m}=p,T=!!this.data.xAxisRightText,q=!!this.data.yAxisTopText,f=[];return this.data.xAxisLeftText&&u&&f.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:A+(T?d/2:0),y:s==="top"?this.config.xAxisLabelPadding+_.top:this.config.xAxisLabelPadding+y+n+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&u&&f.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:A+d+(T?d/2:0),y:s==="top"?this.config.xAxisLabelPadding+_.top:this.config.xAxisLabelPadding+y+n+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&h&&f.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+A+m+this.config.quadrantPadding,y:y+n-(q?b/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&h&&f.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+A+m+this.config.quadrantPadding,y:y+b-(q?b/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:q?"center":"left",horizontalPos:"top",rotation:-90}),f}getQuadrants(s){const{quadrantSpace:u}=s,{quadrantHalfHeight:h,quadrantLeft:c,quadrantHalfWidth:p,quadrantTop:_}=u,b=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:c+p,y:_,width:p,height:h,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:c,y:_,width:p,height:h,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:c,y:_+h,width:p,height:h,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:c+p,y:_+h,width:p,height:h,fill:this.themeConfig.quadrant4Fill}];for(const n of b)n.text.x=n.x+n.width/2,this.data.points.length===0?(n.text.y=n.y+n.height/2,n.text.horizontalPos="middle"):(n.text.y=n.y+this.config.quadrantTextTopPadding,n.text.horizontalPos="top");return b}getQuadrantPoints(s){const{quadrantSpace:u}=s,{quadrantHeight:h,quadrantLeft:c,quadrantTop:p,quadrantWidth:_}=u,b=Zt.linear().domain([0,1]).range([c,_+c]),n=Zt.linear().domain([0,1]).range([h+p,p]);return this.data.points.map(d=>{const y=this.classes.get(d.className);return y&&(d={...y,...d}),{x:b(d.x),y:n(d.y),fill:d.color??this.themeConfig.quadrantPointFill,radius:d.radius??this.config.pointRadius,text:{text:d.text,fill:this.themeConfig.quadrantPointTextFill,x:b(d.x),y:n(d.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:d.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:d.strokeWidth??"0px"}})}getBorders(s){const u=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:h}=s,{quadrantHalfHeight:c,quadrantHeight:p,quadrantLeft:_,quadrantHalfWidth:b,quadrantTop:n,quadrantWidth:A}=h;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:_-u,y1:n,x2:_+A+u,y2:n},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:_+A,y1:n+u,x2:_+A,y2:n+p-u},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:_-u,y1:n+p,x2:_+A+u,y2:n+p},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:_,y1:n+u,x2:_,y2:n+p-u},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:_+b,y1:n+u,x2:_+b,y2:n+p-u},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:_+u,y1:n+c,x2:_+A-u,y2:n+c}]}getTitle(s){if(s)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const s=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),u=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),h=this.config.showTitle&&!!this.data.titleText,c=this.data.points.length>0?"bottom":this.config.xAxisPosition,p=this.calculateSpace(c,s,u,h);return{points:this.getQuadrantPoints(p),quadrants:this.getQuadrants(p),axisLabels:this.getAxisLabels(c,s,u,p),borderLines:this.getBorders(p),title:this.getTitle(h)}}},e.__name(ot,"QuadrantBuilder"),ot),ct,bt=(ct=class extends Error{constructor(s,u,h){super(`value for ${s} ${u} is invalid, please use a valid ${h}`),this.name="InvalidStyleError"}},e.__name(ct,"InvalidStyleError"),ct);function Dt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}e.__name(Dt,"validateHexCode");function Jt(t){return!/^\d+$/.test(t)}e.__name(Jt,"validateNumber");function $t(t){return!/^\d+px$/.test(t)}e.__name($t,"validateSizeInPixels");var Te=e.getConfig2();function U(t){return e.sanitizeText(t.trim(),Te)}e.__name(U,"textSanitizer");var D=new me;function te(t){D.setData({quadrant1Text:U(t.text)})}e.__name(te,"setQuadrant1Text");function ee(t){D.setData({quadrant2Text:U(t.text)})}e.__name(ee,"setQuadrant2Text");function ae(t){D.setData({quadrant3Text:U(t.text)})}e.__name(ae,"setQuadrant3Text");function ie(t){D.setData({quadrant4Text:U(t.text)})}e.__name(ie,"setQuadrant4Text");function ne(t){D.setData({xAxisLeftText:U(t.text)})}e.__name(ne,"setXAxisLeftText");function se(t){D.setData({xAxisRightText:U(t.text)})}e.__name(se,"setXAxisRightText");function re(t){D.setData({yAxisTopText:U(t.text)})}e.__name(re,"setYAxisTopText");function le(t){D.setData({yAxisBottomText:U(t.text)})}e.__name(le,"setYAxisBottomText");function St(t){const s={};for(const u of t){const[h,c]=u.trim().split(/\s*:\s*/);if(h==="radius"){if(Jt(c))throw new bt(h,c,"number");s.radius=parseInt(c)}else if(h==="color"){if(Dt(c))throw new bt(h,c,"hex code");s.color=c}else if(h==="stroke-color"){if(Dt(c))throw new bt(h,c,"hex code");s.strokeColor=c}else if(h==="stroke-width"){if($t(c))throw new bt(h,c,"number of pixels (eg. 10px)");s.strokeWidth=c}else throw new Error(`style named ${h} is not supported.`)}return s}e.__name(St,"parseStyles");function oe(t,s,u,h,c){const p=St(c);D.addPoints([{x:u,y:h,text:U(t.text),className:s,...p}])}e.__name(oe,"addPoint");function ce(t,s){D.addClass(t,St(s))}e.__name(ce,"addClass");function he(t){D.setConfig({chartWidth:t})}e.__name(he,"setWidth");function de(t){D.setConfig({chartHeight:t})}e.__name(de,"setHeight");function ue(){const t=e.getConfig2(),{themeVariables:s,quadrantChart:u}=t;return u&&D.setConfig(u),D.setThemeConfig({quadrant1Fill:s.quadrant1Fill,quadrant2Fill:s.quadrant2Fill,quadrant3Fill:s.quadrant3Fill,quadrant4Fill:s.quadrant4Fill,quadrant1TextFill:s.quadrant1TextFill,quadrant2TextFill:s.quadrant2TextFill,quadrant3TextFill:s.quadrant3TextFill,quadrant4TextFill:s.quadrant4TextFill,quadrantPointFill:s.quadrantPointFill,quadrantPointTextFill:s.quadrantPointTextFill,quadrantXAxisTextFill:s.quadrantXAxisTextFill,quadrantYAxisTextFill:s.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:s.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:s.quadrantInternalBorderStrokeFill,quadrantTitleFill:s.quadrantTitleFill}),D.setData({titleText:e.getDiagramTitle()}),D.build()}e.__name(ue,"getQuadrantData");var qe=e.__name(function(){D.clear(),e.clear()},"clear"),be={setWidth:he,setHeight:de,setQuadrant1Text:te,setQuadrant2Text:ee,setQuadrant3Text:ae,setQuadrant4Text:ie,setXAxisLeftText:ne,setXAxisRightText:se,setYAxisTopText:re,setYAxisBottomText:le,parseStyles:St,addPoint:oe,addClass:ce,getQuadrantData:ue,clear:qe,setAccTitle:e.setAccTitle,getAccTitle:e.getAccTitle,setDiagramTitle:e.setDiagramTitle,getDiagramTitle:e.getDiagramTitle,getAccDescription:e.getAccDescription,setAccDescription:e.setAccDescription},Se=e.__name((t,s,u,h)=>{var ut,ft,xt;function c(i){return i==="top"?"hanging":"middle"}e.__name(c,"getDominantBaseLine");function p(i){return i==="left"?"start":"middle"}e.__name(p,"getTextAnchor");function _(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}e.__name(_,"getTransformation");const b=e.getConfig2();e.log.debug(`Rendering quadrant chart
7
- `+t);const n=b.securityLevel;let A;n==="sandbox"&&(A=e.select("#i"+s));const y=(n==="sandbox"?e.select(A.nodes()[0].contentDocument.body):e.select("body")).select(`[id="${s}"]`),m=y.append("g").attr("class","main"),T=((ut=b.quadrantChart)==null?void 0:ut.chartWidth)??500,q=((ft=b.quadrantChart)==null?void 0:ft.chartHeight)??500;e.configureSvgSize(y,q,T,((xt=b.quadrantChart)==null?void 0:xt.useMaxWidth)??!0),y.attr("viewBox","0 0 "+T+" "+q),h.db.setHeight(q),h.db.setWidth(T);const f=h.db.getQuadrantData(),Q=m.append("g").attr("class","quadrants"),M=m.append("g").attr("class","border"),j=m.append("g").attr("class","data-points"),pt=m.append("g").attr("class","labels"),_t=m.append("g").attr("class","title");f.title&&_t.append("text").attr("x",0).attr("y",0).attr("fill",f.title.fill).attr("font-size",f.title.fontSize).attr("dominant-baseline",c(f.title.horizontalPos)).attr("text-anchor",p(f.title.verticalPos)).attr("transform",_(f.title)).text(f.title.text),f.borderLines&&M.selectAll("line").data(f.borderLines).enter().append("line").attr("x1",i=>i.x1).attr("y1",i=>i.y1).attr("x2",i=>i.x2).attr("y2",i=>i.y2).style("stroke",i=>i.strokeFill).style("stroke-width",i=>i.strokeWidth);const ht=Q.selectAll("g.quadrant").data(f.quadrants).enter().append("g").attr("class","quadrant");ht.append("rect").attr("x",i=>i.x).attr("y",i=>i.y).attr("width",i=>i.width).attr("height",i=>i.height).attr("fill",i=>i.fill),ht.append("text").attr("x",0).attr("y",0).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>c(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>_(i.text)).text(i=>i.text.text),pt.selectAll("g.label").data(f.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(i=>i.text).attr("fill",i=>i.fill).attr("font-size",i=>i.fontSize).attr("dominant-baseline",i=>c(i.horizontalPos)).attr("text-anchor",i=>p(i.verticalPos)).attr("transform",i=>_(i));const dt=j.selectAll("g.data-point").data(f.points).enter().append("g").attr("class","data-point");dt.append("circle").attr("cx",i=>i.x).attr("cy",i=>i.y).attr("r",i=>i.radius).attr("fill",i=>i.fill).attr("stroke",i=>i.strokeColor).attr("stroke-width",i=>i.strokeWidth),dt.append("text").attr("x",0).attr("y",0).text(i=>i.text.text).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>c(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>_(i.text))},"draw"),Ae={draw:Se},ke={parser:ye,db:be,renderer:Ae,styles:e.__name(()=>"","styles")};exports.diagram=ke;
@@ -1,5 +0,0 @@
1
- import { R as r, g as d } from "./mermaid-parser.core-B7VTdQ1C.js";
2
- export {
3
- r as RadarModule,
4
- d as createRadarServices
5
- };
@@ -1,61 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-Cg8ByiK0.cjs"),tt=require("./arc-CutFaiCL.cjs");var K=(function(){var i=n.__name(function(_,s,a,h){for(a=a||{},h=_.length;h--;a[_[h]]=s);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],r=[1,11],d=[1,12],c=[1,13],y=[1,16],f=[1,17],p={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],performAction:n.__name(function(s,a,h,u,g,o,S){var x=o.length-1;switch(g){case 1:return o[x-1];case 2:this.$=[];break;case 3:o[x-1].push(o[x]),this.$=o[x-1];break;case 4:case 5:this.$=o[x];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[x].substr(6)),this.$=o[x].substr(6);break;case 9:this.$=o[x].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[x].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[x].substr(8)),this.$=o[x].substr(8);break;case 15:u.addTask(o[x],0,""),this.$=o[x];break;case 16:u.addEvent(o[x].substr(2)),this.$=o[x];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},i(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:r,16:d,17:c,18:14,19:15,20:y,21:f},i(t,[2,7],{1:[2,1]}),i(t,[2,3]),{9:18,11:e,12:l,14:r,16:d,17:c,18:14,19:15,20:y,21:f},i(t,[2,5]),i(t,[2,6]),i(t,[2,8]),{13:[1,19]},{15:[1,20]},i(t,[2,11]),i(t,[2,12]),i(t,[2,13]),i(t,[2,14]),i(t,[2,15]),i(t,[2,16]),i(t,[2,4]),i(t,[2,9]),i(t,[2,10])],defaultActions:{},parseError:n.__name(function(s,a){if(a.recoverable)this.trace(s);else{var h=new Error(s);throw h.hash=a,h}},"parseError"),parse:n.__name(function(s){var a=this,h=[0],u=[],g=[null],o=[],S=this.table,x="",$=0,A=0,W=2,U=1,B=o.slice.call(arguments,1),k=Object.create(this.lexer),I={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(I.yy[N]=this.yy[N]);k.setInput(s,I.yy),I.yy.lexer=k,I.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var b=k.yylloc;o.push(b);var L=k.options&&k.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function C(E){h.length=h.length-2*E,g.length=g.length-E,o.length=o.length-E}n.__name(C,"popStack");function P(){var E;return E=u.pop()||k.lex()||U,typeof E!="number"&&(E instanceof Array&&(u=E,E=u.pop()),E=a.symbols_[E]||E),E}n.__name(P,"lex");for(var w,M,T,Z,F={},O,H,D,j;;){if(M=h[h.length-1],this.defaultActions[M]?T=this.defaultActions[M]:((w===null||typeof w>"u")&&(w=P()),T=S[M]&&S[M][w]),typeof T>"u"||!T.length||!T[0]){var J="";j=[];for(O in S[M])this.terminals_[O]&&O>W&&j.push("'"+this.terminals_[O]+"'");k.showPosition?J="Parse error on line "+($+1)+`:
2
- `+k.showPosition()+`
3
- Expecting `+j.join(", ")+", got '"+(this.terminals_[w]||w)+"'":J="Parse error on line "+($+1)+": Unexpected "+(w==U?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(J,{text:k.match,token:this.terminals_[w]||w,line:k.yylineno,loc:b,expected:j})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+w);switch(T[0]){case 1:h.push(w),g.push(k.yytext),o.push(k.yylloc),h.push(T[1]),w=null,A=k.yyleng,x=k.yytext,$=k.yylineno,b=k.yylloc;break;case 2:if(H=this.productions_[T[1]][1],F.$=g[g.length-H],F._$={first_line:o[o.length-(H||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(H||1)].first_column,last_column:o[o.length-1].last_column},L&&(F._$.range=[o[o.length-(H||1)].range[0],o[o.length-1].range[1]]),Z=this.performAction.apply(F,[x,A,$,I.yy,T[1],g,o].concat(B)),typeof Z<"u")return Z;H&&(h=h.slice(0,-1*H*2),g=g.slice(0,-1*H),o=o.slice(0,-1*H)),h.push(this.productions_[T[1]][0]),g.push(F.$),o.push(F._$),D=S[h[h.length-2]][h[h.length-1]],h.push(D);break;case 3:return!0}}return!0},"parse")},m=(function(){var _={EOF:1,parseError:n.__name(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},"parseError"),setInput:n.__name(function(s,a){return this.yy=a||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:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(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:n.__name(function(s){var a=s.length,h=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;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),h.length-1&&(this.yylineno-=h.length-1);var g=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:h?(h.length===u.length?this.yylloc.first_column:0)+u[u.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(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:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(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:n.__name(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:n.__name(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
- `+a+"^"},"showPosition"),test_match:n.__name(function(s,a){var h,u,g;if(this.options.backtrack_lexer&&(g={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&&(g.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],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var o in g)this[o]=g[o];return!1}return!1},"test_match"),next:n.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,h,u;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),o=0;o<g.length;o++)if(h=this._input.match(this.rules[g[o]]),h&&(!a||h[0].length>a[0].length)){if(a=h,u=o,this.options.backtrack_lexer){if(s=this.test_match(h,g[o]),s!==!1)return s;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(s=this.test_match(a,g[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})},"next"),lex:n.__name(function(){var a=this.next();return a||this.lex()},"lex"),begin:n.__name(function(a){this.conditionStack.push(a)},"begin"),popState:n.__name(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n.__name(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:n.__name(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:n.__name(function(a){this.begin(a)},"pushState"),stateStackSize:n.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n.__name(function(a,h,u,g){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 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\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,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/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],inclusive:!0}}};return _})();p.lexer=m;function v(){this.yy={}}return n.__name(v,"Parser"),v.prototype=p,p.Parser=v,new v})();K.parser=K;var _t=K,rt={};n.__export(rt,{addEvent:()=>ut,addSection:()=>ot,addTask:()=>dt,addTaskOrg:()=>pt,clear:()=>lt,default:()=>ft,getCommonDb:()=>at,getSections:()=>ct,getTasks:()=>ht});var z="",st=0,Q=[],G=[],V=[],at=n.__name(()=>n.commonDb_exports,"getCommonDb"),lt=n.__name(function(){Q.length=0,G.length=0,z="",V.length=0,n.clear()},"clear"),ot=n.__name(function(i){z=i,Q.push(i)},"addSection"),ct=n.__name(function(){return Q},"getSections"),ht=n.__name(function(){let i=et();const t=100;let e=0;for(;!i&&e<t;)i=et(),e++;return G.push(...V),G},"getTasks"),dt=n.__name(function(i,t,e){const l={id:st++,section:z,type:z,task:i,score:t||0,events:e?[e]:[]};V.push(l)},"addTask"),ut=n.__name(function(i){V.find(e=>e.id===st-1).events.push(i)},"addEvent"),pt=n.__name(function(i){const t={section:z,type:z,description:i,task:i,classes:[]};G.push(t)},"addTaskOrg"),et=n.__name(function(){const i=n.__name(function(e){return V[e].processed},"compileTask");let t=!0;for(const[e,l]of V.entries())i(e),t=t&&l.processed;return t},"compileTasks"),ft={clear:lt,getCommonDb:at,addSection:ot,getSections:ct,getTasks:ht,addTask:dt,addTaskOrg:pt,addEvent:ut},mt=12,q=n.__name(function(i,t){const e=i.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},"drawRect"),xt=n.__name(function(i,t){const l=i.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=i.append("g");r.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function d(f){const p=tt.d3arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}n.__name(d,"smile");function c(f){const p=tt.d3arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);f.append("path").attr("class","mouth").attr("d",p).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}n.__name(c,"sad");function y(f){f.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n.__name(y,"ambivalent"),t.score>3?d(r):t.score<3?c(r):y(r),l},"drawFace"),kt=n.__name(function(i,t){const e=i.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},"drawCircle"),gt=n.__name(function(i,t){const e=t.text.replace(/<br\s*\/?>/gi," "),l=i.append("text");l.attr("x",t.x),l.attr("y",t.y),l.attr("class","legend"),l.style("text-anchor",t.anchor),t.class!==void 0&&l.attr("class",t.class);const r=l.append("tspan");return r.attr("x",t.x+t.textMargin*2),r.text(e),l},"drawText"),vt=n.__name(function(i,t){function e(r,d,c,y,f){return r+","+d+" "+(r+c)+","+d+" "+(r+c)+","+(d+y-f)+" "+(r+c-f*1.2)+","+(d+y)+" "+r+","+(d+y)}n.__name(e,"genPoints");const l=i.append("polygon");l.attr("points",e(t.x,t.y,50,20,7)),l.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,gt(i,t)},"drawLabel"),bt=n.__name(function(i,t,e){const l=i.append("g"),r=X();r.x=t.x,r.y=t.y,r.fill=t.fill,r.width=e.width,r.height=e.height,r.class="journey-section section-type-"+t.num,r.rx=3,r.ry=3,q(l,r),yt(e)(t.text,l,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+t.num},e,t.colour)},"drawSection"),nt=-1,wt=n.__name(function(i,t,e){const l=t.x+e.width/2,r=i.append("g");nt++,r.append("line").attr("id","task"+nt).attr("x1",l).attr("y1",t.y).attr("x2",l).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),xt(r,{cx:l,cy:300+(5-t.score)*30,score:t.score});const c=X();c.x=t.x,c.y=t.y,c.fill=t.fill,c.width=e.width,c.height=e.height,c.class="task task-type-"+t.num,c.rx=3,c.ry=3,q(r,c),yt(e)(t.task,r,c.x,c.y,c.width,c.height,{class:"task"},e,t.colour)},"drawTask"),St=n.__name(function(i,t){q(i,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},"drawBackgroundRect"),Et=n.__name(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),X=n.__name(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),yt=(function(){function i(r,d,c,y,f,p,m,v){const _=d.append("text").attr("x",c+f/2).attr("y",y+p/2+5).style("font-color",v).style("text-anchor","middle").text(r);l(_,m)}n.__name(i,"byText");function t(r,d,c,y,f,p,m,v,_){const{taskFontSize:s,taskFontFamily:a}=v,h=r.split(/<br\s*\/?>/gi);for(let u=0;u<h.length;u++){const g=u*s-s*(h.length-1)/2,o=d.append("text").attr("x",c+f/2).attr("y",y).attr("fill",_).style("text-anchor","middle").style("font-size",s).style("font-family",a);o.append("tspan").attr("x",c+f/2).attr("dy",g).text(h[u]),o.attr("y",y+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),l(o,m)}}n.__name(t,"byTspan");function e(r,d,c,y,f,p,m,v){const _=d.append("switch"),a=_.append("foreignObject").attr("x",c).attr("y",y).attr("width",f).attr("height",p).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(r),t(r,_,c,y,f,p,m,v),l(a,m)}n.__name(e,"byFo");function l(r,d){for(const c in d)c in d&&r.attr(c,d[c])}return n.__name(l,"_setTextAttrs"),function(r){return r.textPlacement==="fo"?e:r.textPlacement==="old"?i:t}})(),Tt=n.__name(function(i){i.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")},"initGraphics");function Y(i,t){i.each(function(){var e=n.select(this),l=e.text().split(/(\s+|<br>)/).reverse(),r,d=[],c=1.1,y=e.attr("y"),f=parseFloat(e.attr("dy")),p=e.text(null).append("tspan").attr("x",0).attr("y",y).attr("dy",f+"em");for(let m=0;m<l.length;m++)r=l[l.length-1-m],d.push(r),p.text(d.join(" ").trim()),(p.node().getComputedTextLength()>t||r==="<br>")&&(d.pop(),p.text(d.join(" ").trim()),r==="<br>"?d=[""]:d=[r],p=e.append("tspan").attr("x",0).attr("y",y).attr("dy",c+"em").text(r))})}n.__name(Y,"wrap");var It=n.__name(function(i,t,e,l){var v;const r=e%mt-1,d=i.append("g");t.section=r,d.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+r));const c=d.append("g"),y=d.append("g"),p=y.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Y,t.width).node().getBBox(),m=(v=l.fontSize)!=null&&v.replace?l.fontSize.replace("px",""):l.fontSize;return t.height=p.height+m*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,y.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),$t(c,t,r,l),t},"drawNode"),Nt=n.__name(function(i,t,e){var y;const l=i.append("g"),d=l.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Y,t.width).node().getBBox(),c=(y=e.fontSize)!=null&&y.replace?e.fontSize.replace("px",""):e.fontSize;return l.remove(),d.height+c*1.1*.5+t.padding},"getVirtualNodeHeight"),$t=n.__name(function(i,t,e){i.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),i.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},"defaultBkg"),R={drawRect:q,drawCircle:kt,drawSection:bt,drawText:gt,drawLabel:vt,drawTask:wt,drawBackgroundRect:St,getTextObj:Et,getNoteRect:X,initGraphics:Tt,drawNode:It,getVirtualNodeHeight:Nt},Lt=n.__name(function(i,t,e,l){var B,k,I;const r=n.getConfig2(),d=((B=r.timeline)==null?void 0:B.leftMargin)??50;n.log.debug("timeline",l.db);const c=r.securityLevel;let y;c==="sandbox"&&(y=n.select("#i"+t));const p=(c==="sandbox"?n.select(y.nodes()[0].contentDocument.body):n.select("body")).select("#"+t);p.append("g");const m=l.db.getTasks(),v=l.db.getCommonDb().getDiagramTitle();n.log.debug("task",m),R.initGraphics(p);const _=l.db.getSections();n.log.debug("sections",_);let s=0,a=0,h=0,u=0,g=50+d,o=50;u=50;let S=0,x=!0;_.forEach(function(N){const b={number:S,descr:N,section:S,width:150,padding:20,maxHeight:s},L=R.getVirtualNodeHeight(p,b,r);n.log.debug("sectionHeight before draw",L),s=Math.max(s,L+20)});let $=0,A=0;n.log.debug("tasks.length",m.length);for(const[N,b]of m.entries()){const L={number:N,descr:b,section:b.section,width:150,padding:20,maxHeight:a},C=R.getVirtualNodeHeight(p,L,r);n.log.debug("taskHeight before draw",C),a=Math.max(a,C+20),$=Math.max($,b.events.length);let P=0;for(const w of b.events){const M={descr:w,section:b.section,number:b.section,width:150,padding:20,maxHeight:50};P+=R.getVirtualNodeHeight(p,M,r)}b.events.length>0&&(P+=(b.events.length-1)*10),A=Math.max(A,P)}n.log.debug("maxSectionHeight before draw",s),n.log.debug("maxTaskHeight before draw",a),_&&_.length>0?_.forEach(N=>{const b=m.filter(w=>w.section===N),L={number:S,descr:N,section:S,width:200*Math.max(b.length,1)-50,padding:20,maxHeight:s};n.log.debug("sectionNode",L);const C=p.append("g"),P=R.drawNode(C,L,S,r);n.log.debug("sectionNode output",P),C.attr("transform",`translate(${g}, ${u})`),o+=s+50,b.length>0&&it(p,b,S,g,o,a,r,$,A,s,!1),g+=200*Math.max(b.length,1),o=u,S++}):(x=!1,it(p,m,S,g,o,a,r,$,A,s,!0));const W=p.node().getBBox();n.log.debug("bounds",W),v&&p.append("text").text(v).attr("x",W.width/2-d).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),h=x?s+a+150:a+100,p.append("g").attr("class","lineWrapper").append("line").attr("x1",d).attr("y1",h).attr("x2",W.width+3*d).attr("y2",h).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),n.setupGraphViewbox(void 0,p,((k=r.timeline)==null?void 0:k.padding)??50,((I=r.timeline)==null?void 0:I.useMaxWidth)??!1)},"draw"),it=n.__name(function(i,t,e,l,r,d,c,y,f,p,m){var v;for(const _ of t){const s={descr:_.task,section:e,number:e,width:150,padding:20,maxHeight:d};n.log.debug("taskNode",s);const a=i.append("g").attr("class","taskWrapper"),u=R.drawNode(a,s,e,c).height;if(n.log.debug("taskHeight after draw",u),a.attr("transform",`translate(${l}, ${r})`),d=Math.max(d,u),_.events){const g=i.append("g").attr("class","lineWrapper");let o=d;r+=100,o=o+Mt(i,_.events,e,l,r,c),r-=100,g.append("line").attr("x1",l+190/2).attr("y1",r+d).attr("x2",l+190/2).attr("y2",r+d+100+f+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}l=l+200,m&&!((v=c.timeline)!=null&&v.disableMulticolor)&&e++}r=r-10},"drawTasks"),Mt=n.__name(function(i,t,e,l,r,d){let c=0;const y=r;r=r+100;for(const f of t){const p={descr:f,section:e,number:e,width:150,padding:20,maxHeight:50};n.log.debug("eventNode",p);const m=i.append("g").attr("class","eventWrapper"),_=R.drawNode(m,p,e,d).height;c=c+_,m.attr("transform",`translate(${l}, ${r})`),r=r+10+_}return r=y,c},"drawEvents"),Ht={setConf:n.__name(()=>{},"setConf"),draw:Lt},Pt=n.__name(i=>{let t="";for(let e=0;e<i.THEME_COLOR_LIMIT;e++)i["lineColor"+e]=i["lineColor"+e]||i["cScaleInv"+e],n.isDark(i["lineColor"+e])?i["lineColor"+e]=n.lighten(i["lineColor"+e],20):i["lineColor"+e]=n.darken(i["lineColor"+e],20);for(let e=0;e<i.THEME_COLOR_LIMIT;e++){const l=""+(17-3*e);t+=`
7
- .section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
8
- fill: ${i["cScale"+e]};
9
- }
10
- .section-${e-1} text {
11
- fill: ${i["cScaleLabel"+e]};
12
- }
13
- .node-icon-${e-1} {
14
- font-size: 40px;
15
- color: ${i["cScaleLabel"+e]};
16
- }
17
- .section-edge-${e-1}{
18
- stroke: ${i["cScale"+e]};
19
- }
20
- .edge-depth-${e-1}{
21
- stroke-width: ${l};
22
- }
23
- .section-${e-1} line {
24
- stroke: ${i["cScaleInv"+e]} ;
25
- stroke-width: 3;
26
- }
27
-
28
- .lineWrapper line{
29
- stroke: ${i["cScaleLabel"+e]} ;
30
- }
31
-
32
- .disabled, .disabled circle, .disabled text {
33
- fill: lightgray;
34
- }
35
- .disabled text {
36
- fill: #efefef;
37
- }
38
- `}return t},"genSections"),At=n.__name(i=>`
39
- .edge {
40
- stroke-width: 3;
41
- }
42
- ${Pt(i)}
43
- .section-root rect, .section-root path, .section-root circle {
44
- fill: ${i.git0};
45
- }
46
- .section-root text {
47
- fill: ${i.gitBranchLabel0};
48
- }
49
- .icon-container {
50
- height:100%;
51
- display: flex;
52
- justify-content: center;
53
- align-items: center;
54
- }
55
- .edge {
56
- fill: none;
57
- }
58
- .eventWrapper {
59
- filter: brightness(120%);
60
- }
61
- `,"getStyles"),Ct=At,Rt={db:rt,renderer:Ht,parser:_t,styles:Ct};exports.diagram=Rt;