@sme.up/ketchup2 2.0.0-SNAPSHOT-20250908152453 → 2.0.0-SNAPSHOT-20250909094906

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 (119) hide show
  1. package/dist/{_basePickBy-Bq-OHVlJ.js → _basePickBy-Do84EYM_.js} +23 -23
  2. package/dist/{_basePickBy-DNewzgl9.cjs → _basePickBy-jbGD0zVt.cjs} +1 -1
  3. package/dist/{_baseUniq-DUO9awf7.js → _baseUniq-ChWtQCAg.js} +40 -40
  4. package/dist/{_baseUniq-CQ7AOjch.cjs → _baseUniq-QOx9ZFk8.cjs} +1 -1
  5. package/dist/{arc-H_1C-9yW.cjs → arc-BIKBJW81.cjs} +1 -1
  6. package/dist/{arc-BC6Mnh_l.js → arc-ChfU56Id.js} +1 -1
  7. package/dist/{architecture-O4VJ6CD3-Bfi1Y3W3.cjs → architecture-O4VJ6CD3-3YFJqJ0Z.cjs} +1 -1
  8. package/dist/{architecture-O4VJ6CD3-B2_zBkXA.js → architecture-O4VJ6CD3-BUnL0V-N.js} +1 -1
  9. package/dist/{architectureDiagram-KFL7JDKH-Dzqraep6.js → architectureDiagram-W76B3OCA-CBK4zgfT.js} +132 -132
  10. package/dist/{architectureDiagram-KFL7JDKH-DOaG_WZV.cjs → architectureDiagram-W76B3OCA-CZqalw5r.cjs} +1 -1
  11. package/dist/{blockDiagram-ZYB65J3Q-BF5gB3wI.js → blockDiagram-QIGZ2CNN-D-oSz2sZ.js} +5 -5
  12. package/dist/{blockDiagram-ZYB65J3Q-0TfXbzbL.cjs → blockDiagram-QIGZ2CNN-GTeJnx7A.cjs} +4 -4
  13. package/dist/{c4Diagram-AAMF2YG6-CZutQWdQ.js → c4Diagram-FPNF74CW-ARWMN1wL.js} +2 -2
  14. package/dist/{c4Diagram-AAMF2YG6-BUdDUCAg.cjs → c4Diagram-FPNF74CW-CTzfs_2H.cjs} +4 -4
  15. package/dist/channel-B4Pxd4YX.cjs +1 -0
  16. package/dist/channel-DioWzi4t.js +5 -0
  17. package/dist/{chunk-ANTBXLJU-BdaEgFx7.js → chunk-4BX2VUAB-B3NOuiDi.js} +1 -1
  18. package/dist/{chunk-ANTBXLJU-DqW7nBC-.cjs → chunk-4BX2VUAB-CseI-Vvw.cjs} +1 -1
  19. package/dist/{chunk-WVR4S24B-Chw9GJ4r.cjs → chunk-55IACEB6-DWsrLxcl.cjs} +1 -1
  20. package/dist/{chunk-WVR4S24B-DkA4uS4H.js → chunk-55IACEB6-J1JahOGA.js} +1 -1
  21. package/dist/{chunk-GLLZNHP4-BA8r1pFP.cjs → chunk-FMBD7UC4-CM5L8bW6.cjs} +1 -1
  22. package/dist/{chunk-GLLZNHP4-DiiaqYXe.js → chunk-FMBD7UC4-CZgAaUUx.js} +1 -1
  23. package/dist/{chunk-JBRWN2VN-BaREAv8H.js → chunk-K7UQS3LO-BT7hVqcS.js} +176 -176
  24. package/dist/chunk-K7UQS3LO-CtzkJjTw.cjs +165 -0
  25. package/dist/{chunk-NRVI72HA-DLE8wk3-.js → chunk-QN33PNHL-DfPMtcCm.js} +1 -1
  26. package/dist/{chunk-NRVI72HA-DRmCDH9L.cjs → chunk-QN33PNHL-Djjr-gFo.cjs} +1 -1
  27. package/dist/{chunk-FHKO5MBM-DXqhRcMm.cjs → chunk-QZHKN3VN-D80R1Bnw.cjs} +1 -1
  28. package/dist/{chunk-FHKO5MBM-CzQq96F_.js → chunk-QZHKN3VN-DiLRWGZ4.js} +1 -1
  29. package/dist/{chunk-LXBSTHXV-DFifdLZK.js → chunk-TVAH2DTR-BUlQxrvQ.js} +3 -3
  30. package/dist/{chunk-LXBSTHXV-B0scQvN2.cjs → chunk-TVAH2DTR-OscPged-.cjs} +3 -3
  31. package/dist/{chunk-OMD6QJNC-BYvyUH2d.js → chunk-TZMSLE5B-BFDfGKmV.js} +1 -1
  32. package/dist/{chunk-OMD6QJNC-RjSGzdd8.cjs → chunk-TZMSLE5B-C4Bupww9.cjs} +1 -1
  33. package/dist/{classDiagram-v2-QTMF73CY-CAtFVXFw.js → classDiagram-KNZD7YFC-D2lEcWc2.js} +2 -2
  34. package/dist/{classDiagram-3BZAVTQC-BOmQDPcS.cjs → classDiagram-KNZD7YFC-DU5lVeNU.cjs} +1 -1
  35. package/dist/{classDiagram-3BZAVTQC-CAtFVXFw.js → classDiagram-v2-RKCZMP56-D2lEcWc2.js} +2 -2
  36. package/dist/{classDiagram-v2-QTMF73CY-BOmQDPcS.cjs → classDiagram-v2-RKCZMP56-DU5lVeNU.cjs} +1 -1
  37. package/dist/{clone-B-bAOLls.js → clone-BIRPLFeu.js} +1 -1
  38. package/dist/clone-Yz3NuvEr.cjs +1 -0
  39. package/dist/cose-bilkent-S5V4N54A-BWGKRiDx.js +2608 -0
  40. package/dist/cose-bilkent-S5V4N54A-DL456FIj.cjs +1 -0
  41. package/dist/{dagre-2BBEFEWP-BCS301Dq.cjs → dagre-5GWH7T2D-N31ttJV3.cjs} +1 -1
  42. package/dist/{dagre-2BBEFEWP-CLTO8d-K.js → dagre-5GWH7T2D-gZxGoa1q.js} +108 -108
  43. package/dist/{diagram-4IRLE6MV-Cz4wPwXi.js → diagram-N5W7TBWH-BdTxNJib.js} +23 -23
  44. package/dist/{diagram-4IRLE6MV-_WYVJBfL.cjs → diagram-N5W7TBWH-Drncbwhp.cjs} +2 -2
  45. package/dist/{diagram-RP2FKANI-C_dWK3j7.cjs → diagram-QEK2KX5R-RjWKQ2ED.cjs} +4 -4
  46. package/dist/{diagram-RP2FKANI-CXmRNmBu.js → diagram-QEK2KX5R-WZI40S3K.js} +15 -15
  47. package/dist/{diagram-GUPCWM2R-CH-4x3WD.js → diagram-S2PKOQOG-B9JzzA2t.js} +10 -10
  48. package/dist/{diagram-GUPCWM2R-O4fOIHyx.cjs → diagram-S2PKOQOG-BNCnAE-c.cjs} +1 -1
  49. package/dist/{erDiagram-HZWUO2LU-uRisj4mV.cjs → erDiagram-AWTI2OKA-CC7O9cWw.cjs} +4 -4
  50. package/dist/{erDiagram-HZWUO2LU-Dqt1BE2C.js → erDiagram-AWTI2OKA-CHFxr-_a.js} +4 -4
  51. package/dist/{flowDiagram-THRYKUMA-C-r5MZds.js → flowDiagram-PVAE7QVJ-BqSE3m5u.js} +5 -5
  52. package/dist/{flowDiagram-THRYKUMA-bRWo210y.cjs → flowDiagram-PVAE7QVJ-HeYvgtJE.cjs} +7 -7
  53. package/dist/{ganttDiagram-WV7ZQ7D5-BVe9Yi12.js → ganttDiagram-OWAHRB6G-BP1W4LwQ.js} +57 -57
  54. package/dist/{ganttDiagram-WV7ZQ7D5-Dh9UR52T.cjs → ganttDiagram-OWAHRB6G-Cd3cccSw.cjs} +1 -1
  55. package/dist/{gitGraph-ZV4HHKMB-Bwp8pNLp.js → gitGraph-ZV4HHKMB-C3MJKIFJ.js} +1 -1
  56. package/dist/{gitGraph-ZV4HHKMB-rHh_4sTF.cjs → gitGraph-ZV4HHKMB-jdm9JJYB.cjs} +1 -1
  57. package/dist/{gitGraphDiagram-OJR772UL-BNm74Q9n.js → gitGraphDiagram-NY62KEGX-CAuDLddf.js} +4 -4
  58. package/dist/{gitGraphDiagram-OJR772UL-Bq60AaCq.cjs → gitGraphDiagram-NY62KEGX-MeKzzURg.cjs} +4 -4
  59. package/dist/{graph-BrGj_Gfv.cjs → graph-D6Um4HxB.cjs} +1 -1
  60. package/dist/{graph-CMnK4YO3.js → graph-Vhpd_PNV.js} +4 -4
  61. package/dist/index-DizklrOW.cjs +301 -0
  62. package/dist/{index-VJw3klPt.js → index-JAUwzcHq.js} +10075 -9464
  63. package/dist/info-63CPKGFF-BADmngvb.js +5 -0
  64. package/dist/{info-63CPKGFF-0H7FGkBP.cjs → info-63CPKGFF-CVwGg7sm.cjs} +1 -1
  65. package/dist/{infoDiagram-DDUCL6P7-Cf77NdxY.js → infoDiagram-STP46IZ2-BCtb4AJp.js} +2 -2
  66. package/dist/{infoDiagram-DDUCL6P7-DjqD8eRi.cjs → infoDiagram-STP46IZ2-TvwZFY0I.cjs} +1 -1
  67. package/dist/{journeyDiagram-FFXJYRFH-DtxrMVYZ.cjs → journeyDiagram-BIP6EPQ6-BpcOCeFx.cjs} +4 -4
  68. package/dist/{journeyDiagram-FFXJYRFH-C7_bJR3c.js → journeyDiagram-BIP6EPQ6-CyCYA5CK.js} +4 -4
  69. package/dist/{kanban-definition-KOZQBZVT-Bo9dRDl_.js → kanban-definition-6OIFK2YF-4YIBsMQL.js} +24 -24
  70. package/dist/{kanban-definition-KOZQBZVT-Bel-f3_i.cjs → kanban-definition-6OIFK2YF-__0ex79Z.cjs} +5 -5
  71. package/dist/ketchup2.cjs.js +1 -1
  72. package/dist/ketchup2.es.js +9 -9
  73. package/dist/{layout-Bt4IJcSa.cjs → layout-4fomnJM7.cjs} +1 -1
  74. package/dist/{layout-kUC11kUc.js → layout-DtdTzvka.js} +32 -32
  75. package/dist/{linear-BDcEY_LY.js → linear-BFBJjwEz.js} +12 -12
  76. package/dist/{linear-50cMYwZQ.cjs → linear-DqF6L3Zm.cjs} +1 -1
  77. package/dist/{mermaid-parser.core-Bxkmx2-5.cjs → mermaid-parser.core-CySFdxC3.cjs} +2 -2
  78. package/dist/{mermaid-parser.core-BnvQOoyE.js → mermaid-parser.core-DX0wl6-K.js} +11 -11
  79. package/dist/mindmap-definition-Q6HEUPPD-DS17jgrc.cjs +68 -0
  80. package/dist/mindmap-definition-Q6HEUPPD-xX1MDaCF.js +755 -0
  81. package/dist/{packet-HUATNLJX-DaHhWwAU.js → packet-HUATNLJX-BYVUpbG6.js} +1 -1
  82. package/dist/{packet-HUATNLJX-6TXP1bqK.cjs → packet-HUATNLJX-Cg3sBc6j.cjs} +1 -1
  83. package/dist/pie-WTHONI2E-8_e9e1PJ.js +5 -0
  84. package/dist/{pie-WTHONI2E-AzeewyiY.cjs → pie-WTHONI2E-aHt6d3si.cjs} +1 -1
  85. package/dist/{pieDiagram-DBDJKBY4-DBzbWAu9.js → pieDiagram-ADFJNKIX-B8i8yWnV.js} +25 -25
  86. package/dist/{pieDiagram-DBDJKBY4-W8GACAWO.cjs → pieDiagram-ADFJNKIX-DT0Ws9pS.cjs} +3 -3
  87. package/dist/{quadrantDiagram-YPSRARAO-mnX6YljL.js → quadrantDiagram-LMRXKWRM-BhJb9RD_.js} +2 -2
  88. package/dist/{quadrantDiagram-YPSRARAO-BjYPzvUJ.cjs → quadrantDiagram-LMRXKWRM-DtGKIjme.cjs} +1 -1
  89. package/dist/{radar-NJJJXTRR-BocemfZ8.cjs → radar-NJJJXTRR-BAYIFlfJ.cjs} +1 -1
  90. package/dist/radar-NJJJXTRR-zWC19E7g.js +5 -0
  91. package/dist/{requirementDiagram-EGVEC5DT-Bimu3sL7.cjs → requirementDiagram-4UW4RH46-CVZ_dXqx.cjs} +4 -4
  92. package/dist/{requirementDiagram-EGVEC5DT-B9Bwf2ay.js → requirementDiagram-4UW4RH46-DAI3Uiz3.js} +3 -3
  93. package/dist/{sankeyDiagram-HRAUVNP4-DzXnX0Ga.js → sankeyDiagram-GR3RE2ED-BXuYlJUa.js} +1 -1
  94. package/dist/{sankeyDiagram-HRAUVNP4-DJiyVYTm.cjs → sankeyDiagram-GR3RE2ED-DKDgKlXn.cjs} +1 -1
  95. package/dist/sequenceDiagram-C3RYC4MD-CIIj5p5i.cjs +145 -0
  96. package/dist/sequenceDiagram-C3RYC4MD-DW6rFBHn.js +2511 -0
  97. package/dist/{stateDiagram-UUKSUZ4H-DNsbUQC8.cjs → stateDiagram-KXAO66HF-DHLO3kOk.cjs} +1 -1
  98. package/dist/{stateDiagram-UUKSUZ4H-BfB7OKY5.js → stateDiagram-KXAO66HF-ZTmYAzzc.js} +4 -4
  99. package/dist/{stateDiagram-v2-EYPG3UTE-k2P5SO6h.cjs → stateDiagram-v2-UMBNRL4Z-1TzBIAjq.cjs} +1 -1
  100. package/dist/{stateDiagram-v2-EYPG3UTE-CrbgZXhp.js → stateDiagram-v2-UMBNRL4Z-8NUwdmML.js} +2 -2
  101. package/dist/{timeline-definition-3HZDQTIS-CJz-ObCi.cjs → timeline-definition-XQNQX7LJ-CtFKMZOO.cjs} +1 -1
  102. package/dist/{timeline-definition-3HZDQTIS-TVmN8Z80.js → timeline-definition-XQNQX7LJ-D4fALhvp.js} +2 -2
  103. package/dist/{treemap-75Q7IDZK-MVFNLG-W.cjs → treemap-75Q7IDZK-DH4yrCnW.cjs} +1 -1
  104. package/dist/{treemap-75Q7IDZK-CbpJhl6F.js → treemap-75Q7IDZK-tSdwGttm.js} +1 -1
  105. package/dist/{xychartDiagram-FDP5SA34-QzZvVH2o.js → xychartDiagram-6GGTOJPD-CRUaY0o_.js} +2 -2
  106. package/dist/{xychartDiagram-FDP5SA34-kb-QmiwQ.cjs → xychartDiagram-6GGTOJPD-vmeOyvTD.cjs} +1 -1
  107. package/package.json +13 -13
  108. package/dist/channel-D7-lFnTD.js +0 -5
  109. package/dist/channel-DveM5GOL.cjs +0 -1
  110. package/dist/chunk-JBRWN2VN-4oDxplqY.cjs +0 -165
  111. package/dist/clone-C0dQSPFZ.cjs +0 -1
  112. package/dist/index-BA07EijG.cjs +0 -266
  113. package/dist/info-63CPKGFF-CV7HrEKO.js +0 -5
  114. package/dist/mindmap-definition-LNHGMQRG-CVh0vQd5.js +0 -3230
  115. package/dist/mindmap-definition-LNHGMQRG-qQmqPKl8.cjs +0 -95
  116. package/dist/pie-WTHONI2E-Cq9zrqsG.js +0 -5
  117. package/dist/radar-NJJJXTRR-Yz9jsEDT.js +0 -5
  118. package/dist/sequenceDiagram-4MX5Z3NR-DHUCnBgG.cjs +0 -122
  119. package/dist/sequenceDiagram-4MX5Z3NR-DuaMVfG7.js +0 -2281
@@ -0,0 +1,68 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("./chunk-55IACEB6-DWsrLxcl.cjs"),ne=require("./chunk-QN33PNHL-Djjr-gFo.cjs"),r=require("./index-DizklrOW.cjs");var j=function(){var a=r.__name(function(L,n,t,o){for(t=t||{},o=L.length;o--;t[L[o]]=n);return t},"o"),e=[1,4],i=[1,13],l=[1,12],u=[1,15],h=[1,16],f=[1,20],m=[1,19],p=[6,7,8],D=[1,26],G=[1,24],z=[1,25],E=[6,7,11],H=[1,6,13,15,16,19,22],$=[1,33],W=[1,34],C=[1,6,7,11,13,15,16,19,22],M={trace:r.__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:r.__name(function(n,t,o,c,d,s,I){var g=s.length-1;switch(d){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: ",s[g].id),c.addNode(s[g-1].length,s[g].id,s[g].descr,s[g].type);break;case 16:c.getLogger().trace("Icon: ",s[g]),c.decorateNode({icon:s[g]});break;case 17:case 21:c.decorateNode({class:s[g]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",s[g].id),c.addNode(0,s[g].id,s[g].descr,s[g].type);break;case 20:c.decorateNode({icon:s[g]});break;case 25:c.getLogger().trace("node found ..",s[g-2]),this.$={id:s[g-1],descr:s[g-1],type:c.getType(s[g-2],s[g])};break;case 26:this.$={id:s[g],descr:s[g],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",s[g-3]),this.$={id:s[g-3],descr:s[g-1],type:c.getType(s[g-2],s[g])};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:f,22:m},a(p,[2,3]),{1:[2,2]},a(p,[2,4]),a(p,[2,5]),{1:[2,6],6:i,12:21,13:l,14:14,15:u,16:h,17:17,18:18,19:f,22:m},{6:i,9:22,12:11,13:l,14:14,15:u,16:h,17:17,18:18,19:f,22:m},{6:D,7:G,10:23,11:z},a(E,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:m}),a(E,[2,18]),a(E,[2,19]),a(E,[2,20]),a(E,[2,21]),a(E,[2,23]),a(E,[2,24]),a(E,[2,26],{19:[1,30]}),{20:[1,31]},{6:D,7:G,10:32,11:z},{1:[2,7],6:i,12:21,13:l,14:14,15:u,16:h,17:17,18:18,19:f,22:m},a(H,[2,14],{7:$,11:W}),a(C,[2,8]),a(C,[2,9]),a(C,[2,10]),a(E,[2,15]),a(E,[2,16]),a(E,[2,17]),{20:[1,35]},{21:[1,36]},a(H,[2,13],{7:$,11:W}),a(C,[2,11]),a(C,[2,12]),{21:[1,37]},a(E,[2,25]),a(E,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:r.__name(function(n,t){if(t.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=t,o}},"parseError"),parse:r.__name(function(n){var t=this,o=[0],c=[],d=[null],s=[],I=this.table,g="",A=0,X=0,K=2,q=1,Z=s.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(x.yy[B]=this.yy[B]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var U=y.yylloc;s.push(U);var ee=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(b){o.length=o.length-2*b,d.length=d.length-b,s.length=s.length-b}r.__name(te,"popStack");function Y(){var b;return b=c.pop()||y.lex()||q,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=t.symbols_[b]||b),b}r.__name(Y,"lex");for(var _,T,S,F,v={},w,N,Q,P;;){if(T=o[o.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((_===null||typeof _>"u")&&(_=Y()),S=I[T]&&I[T][_]),typeof S>"u"||!S.length||!S[0]){var V="";P=[];for(w in I[T])this.terminals_[w]&&w>K&&P.push("'"+this.terminals_[w]+"'");y.showPosition?V="Parse error on line "+(A+1)+`:
2
+ `+y.showPosition()+`
3
+ Expecting `+P.join(", ")+", got '"+(this.terminals_[_]||_)+"'":V="Parse error on line "+(A+1)+": Unexpected "+(_==q?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(V,{text:y.match,token:this.terminals_[_]||_,line:y.yylineno,loc:U,expected:P})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+_);switch(S[0]){case 1:o.push(_),d.push(y.yytext),s.push(y.yylloc),o.push(S[1]),_=null,X=y.yyleng,g=y.yytext,A=y.yylineno,U=y.yylloc;break;case 2:if(N=this.productions_[S[1]][1],v.$=d[d.length-N],v._$={first_line:s[s.length-(N||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(N||1)].first_column,last_column:s[s.length-1].last_column},ee&&(v._$.range=[s[s.length-(N||1)].range[0],s[s.length-1].range[1]]),F=this.performAction.apply(v,[g,X,A,x.yy,S[1],d,s].concat(Z)),typeof F<"u")return F;N&&(o=o.slice(0,-1*N*2),d=d.slice(0,-1*N),s=s.slice(0,-1*N)),o.push(this.productions_[S[1]][0]),d.push(v.$),s.push(v._$),Q=I[o[o.length-2]][o[o.length-1]],o.push(Q);break;case 3:return!0}}return!0},"parse")},J=function(){var L={EOF:1,parseError:r.__name(function(t,o){if(this.yy.parser)this.yy.parser.parseError(t,o);else throw new Error(t)},"parseError"),setInput:r.__name(function(n,t){return this.yy=t||this.yy||{},this._input=n,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:r.__name(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var t=n.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:r.__name(function(n){var t=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;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 d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__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:r.__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:r.__name(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var n=this.pastInput(),t=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
+ `+t+"^"},"showPosition"),test_match:r.__name(function(n,t){var o,c,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),c=n[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+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],o=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var s in d)this[s]=d[s];return!1}return!1},"test_match"),next:r.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,t,o,c;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),s=0;s<d.length;s++)if(o=this._input.match(this.rules[d[s]]),o&&(!t||o[0].length>t[0].length)){if(t=o,c=s,this.options.backtrack_lexer){if(n=this.test_match(o,d[s]),n!==!1)return n;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(n=this.test_match(t,d[c]),n!==!1?n:!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:r.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:r.__name(function(t){this.conditionStack.push(t)},"begin"),popState:r.__name(function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:r.__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:r.__name(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:r.__name(function(t){this.begin(t)},"pushState"),stateStackSize:r.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:r.__name(function(t,o,c,d){switch(c){case 0:return t.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:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.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:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return t.getLogger().trace("description:",o.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),t.getLogger().trace("node end ...",o.yytext),"NODE_DEND";case 30:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 35:return t.getLogger().trace("Long description:",o.yytext),20;case 36:return t.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 L}();M.lexer=J;function R(){this.yy={}}return r.__name(R,"Parser"),R.prototype=M,M.Parser=R,new R}();j.parser=j;var se=j,k={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},O,re=(O=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=k,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={}}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){r.log.info("addNode",e,i,l,u);const h=r.getConfig2();let f=h.mindmap?.padding??r.defaultConfig_default.mindmap.padding;switch(u){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:f*=2;break}const m={id:this.count++,nodeId:r.sanitizeText(i,h),level:e,descr:r.sanitizeText(l,h),type:u,children:[],width:h.mindmap?.maxNodeWidth??r.defaultConfig_default.mindmap.maxNodeWidth,padding:f},p=this.getParent(e);if(p)p.children.push(m),this.nodes.push(m);else if(this.nodes.length===0)this.nodes.push(m);else throw new Error(`There can be only one root. No parent could be found for ("${m.descr}")`)}getType(e,i){switch(r.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=r.getConfig2(),l=this.nodes[this.nodes.length-1];e.icon&&(l.icon=r.sanitizeText(e.icon,i)),e.class&&(l.class=r.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.level===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=r.__name(m=>{switch(m){case k.CIRCLE:return"mindmapCircle";case k.RECT:return"rect";case k.ROUNDED_RECT:return"rounded";case k.CLOUD:return"cloud";case k.BANG:return"bang";case k.HEXAGON:return"hexagon";case k.DEFAULT:return"defaultMindmapNode";case k.NO_BORDER:default:return"rect"}},"getShapeFromType"),f={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(f),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 f={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(f),this.generateEdges(l,i)}}getData(){const e=this.getMindmap(),i=r.getConfig2(),u=r.getUserDefinedConfig().layout!==void 0,h=i;if(u||(h.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:h};r.log.debug("getData: mindmapRoot",e,i),this.assignSections(e);const f=[],m=[];this.flattenNodes(e,f),this.generateEdges(e,m),r.log.debug(`getData: processed ${f.length} nodes and ${m.length} edges`);const p=new Map;for(const D of f)p.set(D.id,{shape:D.shape,width:D.width,height:D.height,padding:D.padding});return{nodes:f,edges:m,config:h,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(p),type:"mindmap",diagramId:"mindmap-"+r.v4()}}getLogger(){return r.log}},r.__name(O,"MindmapDB"),O),ae=r.__name(async(a,e,i,l)=>{r.log.debug(`Rendering mindmap diagram
7
+ `+a);const u=l.db,h=u.getData(),f=ie.getDiagramElement(e,h.config.securityLevel);h.type=l.type,h.layoutAlgorithm=r.getRegisteredLayoutAlgorithm(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=e,u.getMindmap()&&(h.nodes.forEach(p=>{p.shape==="rounded"?(p.radius=15,p.taper=15,p.stroke="none",p.width=0,p.padding=15):p.shape==="circle"?p.padding=10:p.shape==="rect"&&(p.width=0,p.padding=10)}),await r.render(h,f),ne.setupViewPortForSVG(f,h.config.mindmap?.padding??r.defaultConfig_default.mindmap.padding,"mindmapDiagram",h.config.mindmap?.useMaxWidth??r.defaultConfig_default.mindmap.useMaxWidth))},"draw"),oe={draw:ae},ce=r.__name(a=>{let e="";for(let i=0;i<a.THEME_COLOR_LIMIT;i++)a["lineColor"+i]=a["lineColor"+i]||a["cScaleInv"+i],r.isDark(a["lineColor"+i])?a["lineColor"+i]=r.lighten(a["lineColor"+i],20):a["lineColor"+i]=r.darken(a["lineColor"+i],20);for(let i=0;i<a.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: ${a["cScale"+i]};
10
+ }
11
+ .section-${i-1} text {
12
+ fill: ${a["cScaleLabel"+i]};
13
+ }
14
+ .node-icon-${i-1} {
15
+ font-size: 40px;
16
+ color: ${a["cScaleLabel"+i]};
17
+ }
18
+ .section-edge-${i-1}{
19
+ stroke: ${a["cScale"+i]};
20
+ }
21
+ .edge-depth-${i-1}{
22
+ stroke-width: ${l};
23
+ }
24
+ .section-${i-1} line {
25
+ stroke: ${a["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"),le=r.__name(a=>`
36
+ .edge {
37
+ stroke-width: 3;
38
+ }
39
+ ${ce(a)}
40
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
41
+ fill: ${a.git0};
42
+ }
43
+ .section-root text {
44
+ fill: ${a.gitBranchLabel0};
45
+ }
46
+ .section-root span {
47
+ color: ${a.gitBranchLabel0};
48
+ }
49
+ .section-2 span {
50
+ color: ${a.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"),he=le,ge={get db(){return new re},renderer:oe,parser:se,styles:he};exports.diagram=ge;