orbitchat 2.2.9 → 2.3.0

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 (65) hide show
  1. package/dist/assets/_basePickBy-lBvRrdD9-B-9MpFjW.js +1 -0
  2. package/dist/assets/_baseUniq-BtBvqxlY-Dv5C3esR.js +1 -0
  3. package/dist/assets/{api-B68Q13El.js → api-CV6_7nU6.js} +1 -1
  4. package/dist/assets/arc-CCBnZEkJ-DybyxfWt.js +1 -0
  5. package/dist/assets/{architectureDiagram-VXUJARFQ-BuSDV2Do-DkCzZT5N.js → architectureDiagram-VXUJARFQ-D6fnSZjh-dA25eufs.js} +3 -3
  6. package/dist/assets/{blockDiagram-VD42YOAC-jQHtez-j-CJTsIVbJ.js → blockDiagram-VD42YOAC-CVjY2HvJ-Bvs-2xFL.js} +5 -5
  7. package/dist/assets/{c4Diagram-YG6GDRKO-_5giM-EA-CdW8htOl.js → c4Diagram-YG6GDRKO-C-f-jRtb-CBj7d1Qp.js} +4 -4
  8. package/dist/assets/channel-BvgtnSqX-CiCpm-FK.js +1 -0
  9. package/dist/assets/{chunk-4BX2VUAB-BeuiUsbc-CyOuPrI8.js → chunk-4BX2VUAB-ecO_Iw3K-Dsg9QQ9e.js} +1 -1
  10. package/dist/assets/chunk-55IACEB6-BFlfi8hV-BGJXNzLC.js +1 -0
  11. package/dist/assets/{chunk-B4BG7PRW-CnUkcto7-m-YHBNjU.js → chunk-B4BG7PRW-0M4wlQGy-BFIioH1f.js} +6 -6
  12. package/dist/assets/{chunk-DI55MBZ5-CSd59tsh-QcxSJz1R.js → chunk-DI55MBZ5-DcwSH2gI-uNFBVBGw.js} +4 -4
  13. package/dist/assets/{chunk-FMBD7UC4-C6VImbBX-CdWDLckg.js → chunk-FMBD7UC4-CyW6Y4c1-Cvb-I-1S.js} +1 -1
  14. package/dist/assets/{chunk-QN33PNHL-DrWWTLTH-UzcLWgZY.js → chunk-QN33PNHL-DF3LkPOs-IyOxcAL-.js} +1 -1
  15. package/dist/assets/{chunk-QZHKN3VN-C6_I39By-Cz33_PSG.js → chunk-QZHKN3VN-BnmCvaos-BhXhqQoN.js} +1 -1
  16. package/dist/assets/chunk-TZMSLE5B-C4Hy1m-m-DFftuvKT.js +1 -0
  17. package/dist/assets/classDiagram-2ON5EDUG-C2K4H7s6-BqCqtggy.js +1 -0
  18. package/dist/assets/classDiagram-v2-WZHVMYZB-C2K4H7s6-BqCqtggy.js +1 -0
  19. package/dist/assets/clone-DlVqQknZ-BDJyp8y8.js +1 -0
  20. package/dist/assets/{cose-bilkent-S5V4N54A-DcyCVH6S-_Xa90S_g.js → cose-bilkent-S5V4N54A-mo6qcR8E-D_z6t4Tf.js} +1 -1
  21. package/dist/assets/dagre-6UL2VRFP-DH4t_gQU-UMN3n2-7.js +4 -0
  22. package/dist/assets/{diagram-PSM6KHXK-Dxp2wzKk-CZTFiE4C.js → diagram-PSM6KHXK-xncR2khS-DE1fEkBR.js} +1 -1
  23. package/dist/assets/diagram-QEK2KX5R-CSzZUVkA-tJcvFwfU.js +43 -0
  24. package/dist/assets/{diagram-S2PKOQOG-tSpHqt0k-xf_ngAOM.js → diagram-S2PKOQOG-CTsV2Ry--BQlcrrcr.js} +2 -2
  25. package/dist/assets/{erDiagram-Q2GNP2WA-DF6ylQ7o-DdRu0NKP.js → erDiagram-Q2GNP2WA-C-DLmzQQ-B-jtk4eF.js} +5 -5
  26. package/dist/assets/{flowDiagram-NV44I4VS-BQUYJeB--BeDbFZsR.js → flowDiagram-NV44I4VS-9jalL_2N-DKuPtUeP.js} +7 -7
  27. package/dist/assets/ganttDiagram-JELNMOA3-B5Q1jKOu-Ho5f5uzH.js +267 -0
  28. package/dist/assets/gitGraphDiagram-NY62KEGX-ug9A7XoP-D9w06-2F.js +65 -0
  29. package/dist/assets/{graph-aRt77rZZ-slHn5KEJ.js → graph-C-LzaQKB-Cch5aJ-h.js} +1 -1
  30. package/dist/assets/{index-rW5EEHFR-D-o-LRPp.js → index-B04ueuvU-Cvw4_ymU.js} +1 -1
  31. package/dist/assets/{index-CFYhtZ1e.js → index-DiPXXjl1.js} +203 -172
  32. package/dist/assets/index-V1hWOL-o.css +1 -0
  33. package/dist/assets/infoDiagram-WHAUD3N6-D3nyF9iF-BjcBjZOT.js +2 -0
  34. package/dist/assets/{journeyDiagram-XKPGCS4Q-C6JuEafR-DM7w5ttd.js → journeyDiagram-XKPGCS4Q-DrGofxJ_-Zv8ktrVj.js} +4 -4
  35. package/dist/assets/{kanban-definition-3W4ZIXB7-Ci4U3NR--CR-hFfA0.js → kanban-definition-3W4ZIXB7-DPOqAG2O-DfLp3ebY.js} +7 -7
  36. package/dist/assets/{layout-BKjRgLFe-DIgRT4aW.js → layout-Cx9iE-zh-K_S5vGG7.js} +1 -1
  37. package/dist/assets/{mindmap-definition-VGOIOE7T-DveejCtl-j12l4UiP.js → mindmap-definition-VGOIOE7T-CDbIuwaY-D4Ih9cyZ.js} +3 -3
  38. package/dist/assets/{pieDiagram-ADFJNKIX-DAbSGtae-NYsX6s7s.js → pieDiagram-ADFJNKIX-DFk5HpTR-BSzTH4-Z.js} +3 -3
  39. package/dist/assets/{quadrantDiagram-AYHSOK5B-DnnzUQMW-CKhUYTv2.js → quadrantDiagram-AYHSOK5B-B92wNx9A-Bpuj71wR.js} +5 -5
  40. package/dist/assets/{requirementDiagram-UZGBJVZJ-BB9jagBx-4dU9Di2G.js → requirementDiagram-UZGBJVZJ-DbcE1GOH-BSV5OUP4.js} +4 -4
  41. package/dist/assets/{sankeyDiagram-TZEHDZUN-BttZx2-h-DeC-xZE-.js → sankeyDiagram-TZEHDZUN-B0rVCfiD-kdmAtl5Z.js} +3 -3
  42. package/dist/assets/{sequenceDiagram-WL72ISMW-DA6yVs26-Bo7FK6Z3.js → sequenceDiagram-WL72ISMW-Ch4qd1_w-DeggnvKy.js} +8 -8
  43. package/dist/assets/{stateDiagram-FKZM4ZOC-BD8xEcbc-DLe6xtjO.js → stateDiagram-FKZM4ZOC-BXSNYh_4-BBInmGsn.js} +1 -1
  44. package/dist/assets/stateDiagram-v2-4FDKWEC3--JZPzZ-Q-C0r6gD51.js +1 -0
  45. package/dist/assets/{timeline-definition-IT6M3QCI-XN-D5T3b-Ckk8yZ6A.js → timeline-definition-IT6M3QCI-BaU6yGwl-BdHCQ244.js} +3 -3
  46. package/dist/assets/{treemap-KMMF4GRG-C4GHjB3F-B6RJ9b4F.js → treemap-KMMF4GRG-B8dtJA6c-C7398h3b.js} +38 -38
  47. package/dist/assets/{xychartDiagram-PRI3JC2R-BL53__6J-B8e2l_RZ.js → xychartDiagram-PRI3JC2R-CdE6529H-Bf_betHN.js} +5 -5
  48. package/dist/index.html +2 -2
  49. package/package.json +2 -2
  50. package/dist/assets/_basePickBy-1MakYQmz-BAhRsHXC.js +0 -1
  51. package/dist/assets/_baseUniq-Cd4llU-Q-CsIxZURF.js +0 -1
  52. package/dist/assets/arc-b8oyw-lz-BqCfYgpU.js +0 -1
  53. package/dist/assets/channel-BLPbvVT2-CP0zgk7D.js +0 -1
  54. package/dist/assets/chunk-55IACEB6-C4OH5_NF-HSErBipB.js +0 -1
  55. package/dist/assets/chunk-TZMSLE5B-DGddLgNl-CfNEVvWN.js +0 -1
  56. package/dist/assets/classDiagram-2ON5EDUG-BngjTxOv-CQhamgNl.js +0 -1
  57. package/dist/assets/classDiagram-v2-WZHVMYZB-BngjTxOv-CQhamgNl.js +0 -1
  58. package/dist/assets/clone-DH1Kq5Y6-Ba-lUtme.js +0 -1
  59. package/dist/assets/dagre-6UL2VRFP-B799wmhr-BmVW0iuC.js +0 -4
  60. package/dist/assets/diagram-QEK2KX5R-Km_liL9n-DFCl3NKk.js +0 -43
  61. package/dist/assets/ganttDiagram-LVOFAZNH-BidPm1xz-DBIsx_AE.js +0 -267
  62. package/dist/assets/gitGraphDiagram-NY62KEGX-zbMOFVrv-Cll7Xa35.js +0 -65
  63. package/dist/assets/index-42QQgFVq.css +0 -1
  64. package/dist/assets/infoDiagram-ER5ION4S-ozjqEnsq-oKxWmhEd.js +0 -2
  65. package/dist/assets/stateDiagram-v2-4FDKWEC3-DINzAoyF-D8wKEAkL.js +0 -1
@@ -1,9 +1,9 @@
1
- import{d as ce}from"./chunk-55IACEB6-C4OH5_NF-HSErBipB.js";import{d as he}from"./chunk-QN33PNHL-DrWWTLTH-UzcLWgZY.js";import{R as a,O as I,Z as le,X as de,L as M,g as X,A as P,b9 as ge,aU as ue,aV as pe,aW as ye}from"./index-CFYhtZ1e.js";const m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function fe(e,s=0){return(m[e[s+0]]+m[e[s+1]]+m[e[s+2]]+m[e[s+3]]+"-"+m[e[s+4]]+m[e[s+5]]+"-"+m[e[s+6]]+m[e[s+7]]+"-"+m[e[s+8]]+m[e[s+9]]+"-"+m[e[s+10]]+m[e[s+11]]+m[e[s+12]]+m[e[s+13]]+m[e[s+14]]+m[e[s+15]]).toLowerCase()}let W;const me=new Uint8Array(16);function Ee(){if(!W){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");W=crypto.getRandomValues.bind(crypto)}return W(me)}const _e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ne={randomUUID:_e};function be(e,s,i){var c;if(ne.randomUUID&&!e)return ne.randomUUID();e=e||{};const h=e.random??((c=e.rng)==null?void 0:c.call(e))??Ee();if(h.length<16)throw new Error("Random bytes length must be >= 16");return h[6]=h[6]&15|64,h[8]=h[8]&63|128,fe(h)}var q=function(){var e=a(function(S,t,r,o){for(r=r||{},o=S.length;o--;r[S[o]]=t);return r},"o"),s=[1,4],i=[1,13],c=[1,12],h=[1,15],y=[1,16],u=[1,20],g=[1,19],L=[6,7,8],p=[1,26],C=[1,24],z=[1,25],b=[6,7,11],Y=[1,6,13,15,16,19,22],J=[1,33],K=[1,34],R=[1,6,7,11,13,15,16,19,22],B={trace:a(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(function(S,t,r,o,l,n,E){var d=n.length-1;switch(l){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",n[d].id),o.addNode(n[d-1].length,n[d].id,n[d].descr,n[d].type);break;case 16:o.getLogger().trace("Icon: ",n[d]),o.decorateNode({icon:n[d]});break;case 17:case 21:o.decorateNode({class:n[d]});break;case 18:o.getLogger().trace("SPACELIST");break;case 19:o.getLogger().trace("Node: ",n[d].id),o.addNode(0,n[d].id,n[d].descr,n[d].type);break;case 20:o.decorateNode({icon:n[d]});break;case 25:o.getLogger().trace("node found ..",n[d-2]),this.$={id:n[d-1],descr:n[d-1],type:o.getType(n[d-2],n[d])};break;case 26:this.$={id:n[d],descr:n[d],type:o.nodeType.DEFAULT};break;case 27:o.getLogger().trace("node found ..",n[d-3]),this.$={id:n[d-3],descr:n[d-1],type:o.getType(n[d-2],n[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:s},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:s},{6:i,7:[1,10],9:9,12:11,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:i,12:21,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},{6:i,9:22,12:11,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},{6:p,7:C,10:23,11:z},e(b,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:g}),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,23]),e(b,[2,24]),e(b,[2,26],{19:[1,30]}),{20:[1,31]},{6:p,7:C,10:32,11:z},{1:[2,7],6:i,12:21,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},e(Y,[2,14],{7:J,11:K}),e(R,[2,8]),e(R,[2,9]),e(R,[2,10]),e(b,[2,15]),e(b,[2,16]),e(b,[2,17]),{20:[1,35]},{21:[1,36]},e(Y,[2,13],{7:J,11:K}),e(R,[2,11]),e(R,[2,12]),{21:[1,37]},e(b,[2,25]),e(b,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(S,t){if(t.recoverable)this.trace(S);else{var r=new Error(S);throw r.hash=t,r}},"parseError"),parse:a(function(S){var t=this,r=[0],o=[],l=[null],n=[],E=this.table,d="",A=0,Q=0,se=2,V=1,re=n.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(x.yy[j]=this.yy[j]);f.setInput(S,x.yy),x.yy.lexer=f,x.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var F=f.yylloc;n.push(F);var oe=f.options&&f.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ae(N){r.length=r.length-2*N,l.length=l.length-N,n.length=n.length-N}a(ae,"popStack");function ee(){var N;return N=o.pop()||f.lex()||V,typeof N!="number"&&(N instanceof Array&&(o=N,N=o.pop()),N=t.symbols_[N]||N),N}a(ee,"lex");for(var _,T,D,G,O={},$,k,te,U;;){if(T=r[r.length-1],this.defaultActions[T]?D=this.defaultActions[T]:((_===null||typeof _>"u")&&(_=ee()),D=E[T]&&E[T][_]),typeof D>"u"||!D.length||!D[0]){var H="";U=[];for($ in E[T])this.terminals_[$]&&$>se&&U.push("'"+this.terminals_[$]+"'");f.showPosition?H="Parse error on line "+(A+1)+`:
1
+ import{d as ce}from"./chunk-55IACEB6-BFlfi8hV-BGJXNzLC.js";import{d as he}from"./chunk-QN33PNHL-DF3LkPOs-IyOxcAL-.js";import{I as a,O as I,w as le,y as de,M,g as W,S as P,b9 as ge,aU as ue,aV as pe,aW as ye}from"./index-DiPXXjl1.js";const m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function fe(e,s=0){return(m[e[s+0]]+m[e[s+1]]+m[e[s+2]]+m[e[s+3]]+"-"+m[e[s+4]]+m[e[s+5]]+"-"+m[e[s+6]]+m[e[s+7]]+"-"+m[e[s+8]]+m[e[s+9]]+"-"+m[e[s+10]]+m[e[s+11]]+m[e[s+12]]+m[e[s+13]]+m[e[s+14]]+m[e[s+15]]).toLowerCase()}let X;const me=new Uint8Array(16);function Ee(){if(!X){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");X=crypto.getRandomValues.bind(crypto)}return X(me)}const _e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ne={randomUUID:_e};function be(e,s,i){var c;if(ne.randomUUID&&!e)return ne.randomUUID();e=e||{};const h=e.random??((c=e.rng)==null?void 0:c.call(e))??Ee();if(h.length<16)throw new Error("Random bytes length must be >= 16");return h[6]=h[6]&15|64,h[8]=h[8]&63|128,fe(h)}var z=function(){var e=a(function(S,t,r,o){for(r=r||{},o=S.length;o--;r[S[o]]=t);return r},"o"),s=[1,4],i=[1,13],c=[1,12],h=[1,15],y=[1,16],u=[1,20],g=[1,19],L=[6,7,8],p=[1,26],C=[1,24],Y=[1,25],b=[6,7,11],J=[1,6,13,15,16,19,22],K=[1,33],Q=[1,34],R=[1,6,7,11,13,15,16,19,22],B={trace:a(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(function(S,t,r,o,l,n,E){var d=n.length-1;switch(l){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",n[d].id),o.addNode(n[d-1].length,n[d].id,n[d].descr,n[d].type);break;case 16:o.getLogger().trace("Icon: ",n[d]),o.decorateNode({icon:n[d]});break;case 17:case 21:o.decorateNode({class:n[d]});break;case 18:o.getLogger().trace("SPACELIST");break;case 19:o.getLogger().trace("Node: ",n[d].id),o.addNode(0,n[d].id,n[d].descr,n[d].type);break;case 20:o.decorateNode({icon:n[d]});break;case 25:o.getLogger().trace("node found ..",n[d-2]),this.$={id:n[d-1],descr:n[d-1],type:o.getType(n[d-2],n[d])};break;case 26:this.$={id:n[d],descr:n[d],type:o.nodeType.DEFAULT};break;case 27:o.getLogger().trace("node found ..",n[d-3]),this.$={id:n[d-3],descr:n[d-1],type:o.getType(n[d-2],n[d])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:s},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:s},{6:i,7:[1,10],9:9,12:11,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:i,12:21,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},{6:i,9:22,12:11,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},{6:p,7:C,10:23,11:Y},e(b,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:u,22:g}),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,23]),e(b,[2,24]),e(b,[2,26],{19:[1,30]}),{20:[1,31]},{6:p,7:C,10:32,11:Y},{1:[2,7],6:i,12:21,13:c,14:14,15:h,16:y,17:17,18:18,19:u,22:g},e(J,[2,14],{7:K,11:Q}),e(R,[2,8]),e(R,[2,9]),e(R,[2,10]),e(b,[2,15]),e(b,[2,16]),e(b,[2,17]),{20:[1,35]},{21:[1,36]},e(J,[2,13],{7:K,11:Q}),e(R,[2,11]),e(R,[2,12]),{21:[1,37]},e(b,[2,25]),e(b,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(S,t){if(t.recoverable)this.trace(S);else{var r=new Error(S);throw r.hash=t,r}},"parseError"),parse:a(function(S){var t=this,r=[0],o=[],l=[null],n=[],E=this.table,d="",A=0,V=0,se=2,Z=1,re=n.slice.call(arguments,1),f=Object.create(this.lexer),x={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(x.yy[j]=this.yy[j]);f.setInput(S,x.yy),x.yy.lexer=f,x.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var F=f.yylloc;n.push(F);var oe=f.options&&f.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ae(N){r.length=r.length-2*N,l.length=l.length-N,n.length=n.length-N}a(ae,"popStack");function ee(){var N;return N=o.pop()||f.lex()||Z,typeof N!="number"&&(N instanceof Array&&(o=N,N=o.pop()),N=t.symbols_[N]||N),N}a(ee,"lex");for(var _,T,D,G,O={},$,k,te,U;;){if(T=r[r.length-1],this.defaultActions[T]?D=this.defaultActions[T]:((_===null||typeof _>"u")&&(_=ee()),D=E[T]&&E[T][_]),typeof D>"u"||!D.length||!D[0]){var H="";U=[];for($ in E[T])this.terminals_[$]&&$>se&&U.push("'"+this.terminals_[$]+"'");f.showPosition?H="Parse error on line "+(A+1)+`:
2
2
  `+f.showPosition()+`
3
- Expecting `+U.join(", ")+", got '"+(this.terminals_[_]||_)+"'":H="Parse error on line "+(A+1)+": Unexpected "+(_==V?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(H,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:F,expected:U})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+_);switch(D[0]){case 1:r.push(_),l.push(f.yytext),n.push(f.yylloc),r.push(D[1]),_=null,Q=f.yyleng,d=f.yytext,A=f.yylineno,F=f.yylloc;break;case 2:if(k=this.productions_[D[1]][1],O.$=l[l.length-k],O._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},oe&&(O._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),G=this.performAction.apply(O,[d,Q,A,x.yy,D[1],l,n].concat(re)),typeof G<"u")return G;k&&(r=r.slice(0,-1*k*2),l=l.slice(0,-1*k),n=n.slice(0,-1*k)),r.push(this.productions_[D[1]][0]),l.push(O.$),n.push(O._$),te=E[r[r.length-2]][r[r.length-1]],r.push(te);break;case 3:return!0}}return!0},"parse")},ie=function(){var S={EOF:1,parseError:a(function(t,r){if(this.yy.parser)this.yy.parser.parseError(t,r);else throw new Error(t)},"parseError"),setInput:a(function(t,r){return this.yy=r||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var r=t.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:a(function(t){var r=t.length,o=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var l=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 n=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===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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).
3
+ Expecting `+U.join(", ")+", got '"+(this.terminals_[_]||_)+"'":H="Parse error on line "+(A+1)+": Unexpected "+(_==Z?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(H,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:F,expected:U})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+_);switch(D[0]){case 1:r.push(_),l.push(f.yytext),n.push(f.yylloc),r.push(D[1]),_=null,V=f.yyleng,d=f.yytext,A=f.yylineno,F=f.yylloc;break;case 2:if(k=this.productions_[D[1]][1],O.$=l[l.length-k],O._$={first_line:n[n.length-(k||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(k||1)].first_column,last_column:n[n.length-1].last_column},oe&&(O._$.range=[n[n.length-(k||1)].range[0],n[n.length-1].range[1]]),G=this.performAction.apply(O,[d,V,A,x.yy,D[1],l,n].concat(re)),typeof G<"u")return G;k&&(r=r.slice(0,-1*k*2),l=l.slice(0,-1*k),n=n.slice(0,-1*k)),r.push(this.productions_[D[1]][0]),l.push(O.$),n.push(O._$),te=E[r[r.length-2]][r[r.length-1]],r.push(te);break;case 3:return!0}}return!0},"parse")},ie=function(){var S={EOF:1,parseError:a(function(t,r){if(this.yy.parser)this.yy.parser.parseError(t,r);else throw new Error(t)},"parseError"),setInput:a(function(t,r){return this.yy=r||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var r=t.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:a(function(t){var r=t.length,o=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var l=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 n=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===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(t){this.unput(this.match.slice(t))},"less"),pastInput:a(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var t=this.pastInput(),r=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
5
5
  `+r+"^"},"showPosition"),test_match:a(function(t,r){var o,l,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),l=t[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],o=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o)return o;if(this._backtrack){for(var E in n)this[E]=n[E];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,r,o,l;this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),E=0;E<n.length;E++)if(o=this._input.match(this.rules[n[E]]),o&&(!r||o[0].length>r[0].length)){if(r=o,l=E,this.options.backtrack_lexer){if(t=this.test_match(o,n[E]),t!==!1)return t;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(t=this.test_match(r,n[l]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var t=this.next();return t||this.lex()},"lex"),begin:a(function(t){this.conditionStack.push(t)},"begin"),popState:a(function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(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(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:a(function(t){this.begin(t)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(t,r,o,l){switch(o){case 0:return t.getLogger().trace("Found comment",r.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:",r.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 ...",r.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:",r.yytext),20;case 36:return t.getLogger().trace("Long description:",r.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 S}();B.lexer=ie;function w(){this.yy={}}return a(w,"Parser"),w.prototype=B,B.Parser=w,new w}();q.parser=q;var Ne=q,v={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Z,De=(Z=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=v,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 s=this.nodes.length-1;s>=0;s--)if(this.nodes[s].level<e)return this.nodes[s];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,s,i,c){var h,y;I.info("addNode",e,s,i,c);let u=!1;this.nodes.length===0?(this.baseLevel=e,e=0,u=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,u=!1);const g=X();let L=((h=g.mindmap)==null?void 0:h.padding)??M.mindmap.padding;switch(c){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:L*=2;break}const p={id:this.count++,nodeId:P(s,g),level:e,descr:P(i,g),type:c,children:[],width:((y=g.mindmap)==null?void 0:y.maxNodeWidth)??M.mindmap.maxNodeWidth,padding:L,isRoot:u},C=this.getParent(e);if(C)C.children.push(p),this.nodes.push(p);else if(u)this.nodes.push(p);else throw new Error(`There can be only one root. No parent could be found for ("${p.descr}")`)}getType(e,s){switch(I.debug("In get type",e,s),e){case"[":return this.nodeType.RECT;case"(":return s===")"?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,s){this.elements[e]=s}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const s=X(),i=this.nodes[this.nodes.length-1];e.icon&&(i.icon=P(e.icon,s)),e.class&&(i.class=P(e.class,s))}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,s){if(e.level===0?e.section=void 0:e.section=s,e.children)for(const[i,c]of e.children.entries()){const h=e.level===0?i:s;this.assignSections(c,h)}}flattenNodes(e,s){const i=["mindmap-node"];e.isRoot===!0?i.push("section-root","section--1"):e.section!==void 0&&i.push(`section-${e.section}`),e.class&&i.push(e.class);const c=i.join(" "),h=a(u=>{switch(u){case v.CIRCLE:return"mindmapCircle";case v.RECT:return"rect";case v.ROUNDED_RECT:return"rounded";case v.CLOUD:return"cloud";case v.BANG:return"bang";case v.HEXAGON:return"hexagon";case v.DEFAULT:return"defaultMindmapNode";case v.NO_BORDER:default:return"rect"}},"getShapeFromType"),y={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:c,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(s.push(y),e.children)for(const u of e.children)this.flattenNodes(u,s)}generateEdges(e,s){if(e.children)for(const i of e.children){let c="edge";i.section!==void 0&&(c+=` section-edge-${i.section}`);const h=e.level+1;c+=` edge-depth-${h}`;const y={id:`edge_${e.id}_${i.id}`,start:e.id.toString(),end:i.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:c,depth:e.level,section:i.section};s.push(y),this.generateEdges(i,s)}}getData(){const e=this.getMindmap(),s=X(),i=ge().layout!==void 0,c=s;if(i||(c.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:c};I.debug("getData: mindmapRoot",e,s),this.assignSections(e);const h=[],y=[];this.flattenNodes(e,h),this.generateEdges(e,y),I.debug(`getData: processed ${h.length} nodes and ${y.length} edges`);const u=new Map;for(const g of h)u.set(g.id,{shape:g.shape,width:g.width,height:g.height,padding:g.padding});return{nodes:h,edges:y,config:c,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(u),type:"mindmap",diagramId:"mindmap-"+be()}}getLogger(){return I}},a(Z,"MindmapDB"),Z),Se=a(async(e,s,i,c)=>{var h,y;I.debug(`Rendering mindmap diagram
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var t=this.next();return t||this.lex()},"lex"),begin:a(function(t){this.conditionStack.push(t)},"begin"),popState:a(function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(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(function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:a(function(t){this.begin(t)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(t,r,o,l){switch(o){case 0:return t.getLogger().trace("Found comment",r.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:",r.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 ...",r.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:",r.yytext),20;case 36:return t.getLogger().trace("Long description:",r.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 S}();B.lexer=ie;function w(){this.yy={}}return a(w,"Parser"),w.prototype=B,B.Parser=w,new w}();z.parser=z;var Ne=z,v={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},q,De=(q=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=v,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 s=this.nodes.length-1;s>=0;s--)if(this.nodes[s].level<e)return this.nodes[s];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,s,i,c){var h,y;I.info("addNode",e,s,i,c);let u=!1;this.nodes.length===0?(this.baseLevel=e,e=0,u=!0):this.baseLevel!==void 0&&(e=e-this.baseLevel,u=!1);const g=W();let L=((h=g.mindmap)==null?void 0:h.padding)??M.mindmap.padding;switch(c){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:L*=2;break}const p={id:this.count++,nodeId:P(s,g),level:e,descr:P(i,g),type:c,children:[],width:((y=g.mindmap)==null?void 0:y.maxNodeWidth)??M.mindmap.maxNodeWidth,padding:L,isRoot:u},C=this.getParent(e);if(C)C.children.push(p),this.nodes.push(p);else if(u)this.nodes.push(p);else throw new Error(`There can be only one root. No parent could be found for ("${p.descr}")`)}getType(e,s){switch(I.debug("In get type",e,s),e){case"[":return this.nodeType.RECT;case"(":return s===")"?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,s){this.elements[e]=s}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;const s=W(),i=this.nodes[this.nodes.length-1];e.icon&&(i.icon=P(e.icon,s)),e.class&&(i.class=P(e.class,s))}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,s){if(e.level===0?e.section=void 0:e.section=s,e.children)for(const[i,c]of e.children.entries()){const h=e.level===0?i:s;this.assignSections(c,h)}}flattenNodes(e,s){const i=["mindmap-node"];e.isRoot===!0?i.push("section-root","section--1"):e.section!==void 0&&i.push(`section-${e.section}`),e.class&&i.push(e.class);const c=i.join(" "),h=a(u=>{switch(u){case v.CIRCLE:return"mindmapCircle";case v.RECT:return"rect";case v.ROUNDED_RECT:return"rounded";case v.CLOUD:return"cloud";case v.BANG:return"bang";case v.HEXAGON:return"hexagon";case v.DEFAULT:return"defaultMindmapNode";case v.NO_BORDER:default:return"rect"}},"getShapeFromType"),y={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:c,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(s.push(y),e.children)for(const u of e.children)this.flattenNodes(u,s)}generateEdges(e,s){if(e.children)for(const i of e.children){let c="edge";i.section!==void 0&&(c+=` section-edge-${i.section}`);const h=e.level+1;c+=` edge-depth-${h}`;const y={id:`edge_${e.id}_${i.id}`,start:e.id.toString(),end:i.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:c,depth:e.level,section:i.section};s.push(y),this.generateEdges(i,s)}}getData(){const e=this.getMindmap(),s=W(),i=ge().layout!==void 0,c=s;if(i||(c.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:c};I.debug("getData: mindmapRoot",e,s),this.assignSections(e);const h=[],y=[];this.flattenNodes(e,h),this.generateEdges(e,y),I.debug(`getData: processed ${h.length} nodes and ${y.length} edges`);const u=new Map;for(const g of h)u.set(g.id,{shape:g.shape,width:g.width,height:g.height,padding:g.padding});return{nodes:h,edges:y,config:c,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(u),type:"mindmap",diagramId:"mindmap-"+be()}}getLogger(){return I}},a(q,"MindmapDB"),q),Se=a(async(e,s,i,c)=>{var h,y;I.debug(`Rendering mindmap diagram
7
7
  `+e);const u=c.db,g=u.getData(),L=ce(s,g.config.securityLevel);g.type=c.type,g.layoutAlgorithm=le(g.config.layout,{fallback:"cose-bilkent"}),g.diagramId=s,u.getMindmap()&&(g.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 de(g,L),he(L,((h=g.config.mindmap)==null?void 0:h.padding)??M.mindmap.padding,"mindmapDiagram",((y=g.config.mindmap)==null?void 0:y.useMaxWidth)??M.mindmap.useMaxWidth))},"draw"),Le={draw:Se},ke=a(e=>{let s="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],ue(e["lineColor"+i])?e["lineColor"+i]=pe(e["lineColor"+i],20):e["lineColor"+i]=ye(e["lineColor"+i],20);for(let i=0;i<e.THEME_COLOR_LIMIT;i++){const c=""+(17-3*i);s+=`
8
8
  .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
9
9
  fill: ${e["cScale"+i]};
@@ -1,4 +1,4 @@
1
- import{R as p,u as U,f as Z,l as _,s as j,r as J,o as K,O as z,g as Q,H as X,am as Y,ao as ee,ap as te,B as ae,w as ne,L as re,aq as w,ar as ie,as as R}from"./index-CFYhtZ1e.js";import{m as le}from"./chunk-4BX2VUAB-BeuiUsbc-CyOuPrI8.js";import{N as se}from"./treemap-KMMF4GRG-C4GHjB3F-B6RJ9b4F.js";import{h as E}from"./arc-b8oyw-lz-BqCfYgpU.js";import"./_baseUniq-Cd4llU-Q-CsIxZURF.js";import"./_basePickBy-1MakYQmz-BAhRsHXC.js";import"./clone-DH1Kq5Y6-Ba-lUtme.js";function oe(e,a){return a<e?-1:a>e?1:a>=e?0:NaN}function ce(e){return e}function ue(){var e=ce,a=oe,f=null,s=w(0),o=w(R),y=w(0);function l(t){var r,c=(t=ie(t)).length,d,v,x=0,u=new Array(c),i=new Array(c),h=+s.apply(this,arguments),S=Math.min(R,Math.max(-R,o.apply(this,arguments)-h)),m,b=Math.min(Math.abs(S)/c,y.apply(this,arguments)),C=b*(S<0?-1:1),g;for(r=0;r<c;++r)(g=i[u[r]=r]=+e(t[r],r,t))>0&&(x+=g);for(a!=null?u.sort(function($,A){return a(i[$],i[A])}):f!=null&&u.sort(function($,A){return f(t[$],t[A])}),r=0,v=x?(S-c*C)/x:0;r<c;++r,h=m)d=u[r],g=i[d],m=h+(g>0?g*v:0)+C,i[d]={data:t[d],index:r,value:g,startAngle:h,endAngle:m,padAngle:b};return i}return l.value=function(t){return arguments.length?(e=typeof t=="function"?t:w(+t),l):e},l.sortValues=function(t){return arguments.length?(a=t,f=null,l):a},l.sort=function(t){return arguments.length?(f=t,a=null,l):f},l.startAngle=function(t){return arguments.length?(s=typeof t=="function"?t:w(+t),l):s},l.endAngle=function(t){return arguments.length?(o=typeof t=="function"?t:w(+t),l):o},l.padAngle=function(t){return arguments.length?(y=typeof t=="function"?t:w(+t),l):y},l}var pe=re.pie,N={sections:new Map,showData:!1},D=N.sections,B=N.showData,de=structuredClone(pe),ge=p(()=>structuredClone(de),"getConfig"),fe=p(()=>{D=new Map,B=N.showData,ne()},"clear"),he=p(({label:e,value:a})=>{if(a<0)throw new Error(`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,a),z.debug(`added new section: ${e}, with value: ${a}`))},"addSection"),me=p(()=>D,"getSections"),xe=p(e=>{B=e},"setShowData"),we=p(()=>B,"getShowData"),V={getConfig:ge,clear:fe,setDiagramTitle:K,getDiagramTitle:J,setAccTitle:j,getAccTitle:_,setAccDescription:Z,getAccDescription:U,addSection:he,getSections:me,setShowData:xe,getShowData:we},ye=p((e,a)=>{le(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)},"populateDb"),ve={parse:p(async e=>{const a=await se("pie",e);z.debug(a),ye(a,V)},"parse")},Se=p(e=>`
1
+ import{I as p,p as U,h as _,d as j,u as H,C as J,A as K,O as N,g as Q,Z as X,am as Y,ao as ee,ap as te,B as ae,G as ne,M as ie,aq as w,ar as re,as as z}from"./index-DiPXXjl1.js";import{m as le}from"./chunk-4BX2VUAB-ecO_Iw3K-Dsg9QQ9e.js";import{N as se}from"./treemap-KMMF4GRG-B8dtJA6c-C7398h3b.js";import{h as L}from"./arc-CCBnZEkJ-DybyxfWt.js";import"./_baseUniq-BtBvqxlY-Dv5C3esR.js";import"./_basePickBy-lBvRrdD9-B-9MpFjW.js";import"./clone-DlVqQknZ-BDJyp8y8.js";function oe(e,a){return a<e?-1:a>e?1:a>=e?0:NaN}function ce(e){return e}function ue(){var e=ce,a=oe,f=null,s=w(0),o=w(z),y=w(0);function l(t){var i,c=(t=re(t)).length,d,v,x=0,u=new Array(c),r=new Array(c),h=+s.apply(this,arguments),S=Math.min(z,Math.max(-z,o.apply(this,arguments)-h)),m,C=Math.min(Math.abs(S)/c,y.apply(this,arguments)),b=C*(S<0?-1:1),g;for(i=0;i<c;++i)(g=r[u[i]=i]=+e(t[i],i,t))>0&&(x+=g);for(a!=null?u.sort(function($,A){return a(r[$],r[A])}):f!=null&&u.sort(function($,A){return f(t[$],t[A])}),i=0,v=x?(S-c*b)/x:0;i<c;++i,h=m)d=u[i],g=r[d],m=h+(g>0?g*v:0)+b,r[d]={data:t[d],index:i,value:g,startAngle:h,endAngle:m,padAngle:C};return r}return l.value=function(t){return arguments.length?(e=typeof t=="function"?t:w(+t),l):e},l.sortValues=function(t){return arguments.length?(a=t,f=null,l):a},l.sort=function(t){return arguments.length?(f=t,a=null,l):f},l.startAngle=function(t){return arguments.length?(s=typeof t=="function"?t:w(+t),l):s},l.endAngle=function(t){return arguments.length?(o=typeof t=="function"?t:w(+t),l):o},l.padAngle=function(t){return arguments.length?(y=typeof t=="function"?t:w(+t),l):y},l}var pe=ie.pie,R={sections:new Map,showData:!1},D=R.sections,B=R.showData,de=structuredClone(pe),ge=p(()=>structuredClone(de),"getConfig"),fe=p(()=>{D=new Map,B=R.showData,ne()},"clear"),he=p(({label:e,value:a})=>{if(a<0)throw new Error(`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,a),N.debug(`added new section: ${e}, with value: ${a}`))},"addSection"),me=p(()=>D,"getSections"),xe=p(e=>{B=e},"setShowData"),we=p(()=>B,"getShowData"),V={getConfig:ge,clear:fe,setDiagramTitle:K,getDiagramTitle:J,setAccTitle:H,getAccTitle:j,setAccDescription:_,getAccDescription:U,addSection:he,getSections:me,setShowData:xe,getShowData:we},ye=p((e,a)=>{le(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)},"populateDb"),ve={parse:p(async e=>{const a=await se("pie",e);N.debug(a),ye(a,V)},"parse")},Se=p(e=>`
2
2
  .pieCircle{
3
3
  stroke: ${e.pieStrokeColor};
4
4
  stroke-width : ${e.pieStrokeWidth};
@@ -26,5 +26,5 @@ import{R as p,u as U,f as Z,l as _,s as j,r as J,o as K,O as z,g as Q,H as X,am
26
26
  font-family: ${e.fontFamily};
27
27
  font-size: ${e.pieLegendTextSize};
28
28
  }
29
- `,"getStyles"),$e=Se,Ae=p(e=>{const a=[...e.values()].reduce((s,o)=>s+o,0),f=[...e.entries()].map(([s,o])=>({label:s,value:o})).filter(s=>s.value/a*100>=1).sort((s,o)=>o.value-s.value);return ue().value(s=>s.value)(f)},"createPieArcs"),be=p((e,a,f,s)=>{z.debug(`rendering pie chart
30
- `+e);const o=s.db,y=Q(),l=X(o.getConfig(),y.pie),t=40,r=18,c=4,d=450,v=d,x=Y(a),u=x.append("g");u.attr("transform","translate("+v/2+","+d/2+")");const{themeVariables:i}=y;let[h]=ee(i.pieOuterStrokeWidth);h??(h=2);const S=l.textPosition,m=Math.min(v,d)/2-t,b=E().innerRadius(0).outerRadius(m),C=E().innerRadius(m*S).outerRadius(m*S);u.append("circle").attr("cx",0).attr("cy",0).attr("r",m+h/2).attr("class","pieOuterCircle");const g=o.getSections(),$=Ae(g),A=[i.pie1,i.pie2,i.pie3,i.pie4,i.pie5,i.pie6,i.pie7,i.pie8,i.pie9,i.pie10,i.pie11,i.pie12];let T=0;g.forEach(n=>{T+=n});const F=$.filter(n=>(n.data.value/T*100).toFixed(0)!=="0"),k=te(A);u.selectAll("mySlices").data(F).enter().append("path").attr("d",b).attr("fill",n=>k(n.data.label)).attr("class","pieCircle"),u.selectAll("mySlices").data(F).enter().append("text").text(n=>(n.data.value/T*100).toFixed(0)+"%").attr("transform",n=>"translate("+C.centroid(n)+")").style("text-anchor","middle").attr("class","slice"),u.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");const W=[...g.entries()].map(([n,O])=>({label:n,value:O})),M=u.selectAll(".legend").data(W).enter().append("g").attr("class","legend").attr("transform",(n,O)=>{const q=r+c,G=q*W.length/2,H=12*r,I=O*q-G;return"translate("+H+","+I+")"});M.append("rect").attr("width",r).attr("height",r).style("fill",n=>k(n.label)).style("stroke",n=>k(n.label)),M.append("text").attr("x",r+c).attr("y",r-c).text(n=>o.getShowData()?`${n.label} [${n.value}]`:n.label);const P=Math.max(...M.selectAll("text").nodes().map(n=>(n==null?void 0:n.getBoundingClientRect().width)??0)),L=v+t+r+c+P;x.attr("viewBox",`0 0 ${L} ${d}`),ae(x,d,L,l.useMaxWidth)},"draw"),Ce={draw:be},Ne={parser:ve,db:V,renderer:Ce,styles:$e};export{Ne as diagram};
29
+ `,"getStyles"),$e=Se,Ae=p(e=>{const a=[...e.values()].reduce((s,o)=>s+o,0),f=[...e.entries()].map(([s,o])=>({label:s,value:o})).filter(s=>s.value/a*100>=1).sort((s,o)=>o.value-s.value);return ue().value(s=>s.value)(f)},"createPieArcs"),Ce=p((e,a,f,s)=>{N.debug(`rendering pie chart
30
+ `+e);const o=s.db,y=Q(),l=X(o.getConfig(),y.pie),t=40,i=18,c=4,d=450,v=d,x=Y(a),u=x.append("g");u.attr("transform","translate("+v/2+","+d/2+")");const{themeVariables:r}=y;let[h]=ee(r.pieOuterStrokeWidth);h??(h=2);const S=l.textPosition,m=Math.min(v,d)/2-t,C=L().innerRadius(0).outerRadius(m),b=L().innerRadius(m*S).outerRadius(m*S);u.append("circle").attr("cx",0).attr("cy",0).attr("r",m+h/2).attr("class","pieOuterCircle");const g=o.getSections(),$=Ae(g),A=[r.pie1,r.pie2,r.pie3,r.pie4,r.pie5,r.pie6,r.pie7,r.pie8,r.pie9,r.pie10,r.pie11,r.pie12];let T=0;g.forEach(n=>{T+=n});const F=$.filter(n=>(n.data.value/T*100).toFixed(0)!=="0"),k=te(A);u.selectAll("mySlices").data(F).enter().append("path").attr("d",C).attr("fill",n=>k(n.data.label)).attr("class","pieCircle"),u.selectAll("mySlices").data(F).enter().append("text").text(n=>(n.data.value/T*100).toFixed(0)+"%").attr("transform",n=>"translate("+b.centroid(n)+")").style("text-anchor","middle").attr("class","slice"),u.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-400/2).attr("class","pieTitleText");const W=[...g.entries()].map(([n,O])=>({label:n,value:O})),M=u.selectAll(".legend").data(W).enter().append("g").attr("class","legend").attr("transform",(n,O)=>{const E=i+c,I=E*W.length/2,P=12*i,Z=O*E-I;return"translate("+P+","+Z+")"});M.append("rect").attr("width",i).attr("height",i).style("fill",n=>k(n.label)).style("stroke",n=>k(n.label)),M.append("text").attr("x",i+c).attr("y",i-c).text(n=>o.getShowData()?`${n.label} [${n.value}]`:n.label);const G=Math.max(...M.selectAll("text").nodes().map(n=>(n==null?void 0:n.getBoundingClientRect().width)??0)),q=v+t+i+c+G;x.attr("viewBox",`0 0 ${q} ${d}`),ae(x,d,q,l.useMaxWidth)},"draw"),be={draw:Ce},Re={parser:ve,db:V,renderer:be,styles:$e};export{Re as diagram};
@@ -1,7 +1,7 @@
1
- import{R as l,f as be,u as _e,r as ee,o as Se,l as ke,s as Fe,g as zt,O as mt,e as vt,B as Pe,w as ve,L as D,at as Ce,U as te,A as Le}from"./index-CFYhtZ1e.js";var Et=function(){var t=l(function(Q,n,d,c){for(d=d||{},c=Q.length;c--;d[Q[c]]=n);return d},"o"),a=[1,3],g=[1,4],u=[1,5],o=[1,6],x=[1,7],b=[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],h=[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],s=[55,56,57],_=[2,36],p=[1,37],q=[1,36],T=[1,38],y=[1,35],f=[1,43],m=[1,41],H=[1,14],C=[1,23],ct=[1,18],dt=[1,19],ut=[1,20],xt=[1,21],gt=[1,22],ot=[1,24],ht=[1,25],i=[1,26],It=[1,27],Wt=[1,28],Rt=[1,29],U=[1,32],N=[1,33],S=[1,34],k=[1,39],F=[1,40],P=[1,42],v=[1,44],Y=[1,62],M=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Bt=[1,65],wt=[1,66],$t=[1,67],Ot=[1,68],Ut=[1,69],Nt=[1,70],Qt=[1,71],Xt=[1,72],Ht=[1,73],Yt=[1,74],Mt=[1,75],jt=[1,76],W=[4,5,6,7,8,9,10,11,12,13,14,15,18],V=[1,90],J=[1,91],Z=[1,92],tt=[1,99],et=[1,93],it=[1,96],at=[1,94],nt=[1,95],st=[1,97],rt=[1,98],bt=[1,102],Gt=[10,55,56,57],$=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],_t={trace:l(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:l(function(Q,n,d,c,A,e,R){var r=e.length-1;switch(A){case 23:this.$=e[r];break;case 24:this.$=e[r-1]+""+e[r];break;case 26:this.$=e[r-1]+e[r];break;case 27:this.$=[e[r].trim()];break;case 28:e[r-2].push(e[r].trim()),this.$=e[r-2];break;case 29:this.$=e[r-4],c.addClass(e[r-2],e[r]);break;case 37:this.$=[];break;case 42:this.$=e[r].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[r].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[r].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[r].substr(8)),this.$=e[r].substr(8);break;case 47:c.addPoint(e[r-3],"",e[r-1],e[r],[]);break;case 48:c.addPoint(e[r-4],e[r-3],e[r-1],e[r],[]);break;case 49:c.addPoint(e[r-4],"",e[r-2],e[r-1],e[r]);break;case 50:c.addPoint(e[r-5],e[r-4],e[r-2],e[r-1],e[r]);break;case 51:c.setXAxisLeftText(e[r-2]),c.setXAxisRightText(e[r]);break;case 52:e[r-1].text+=" ⟶ ",c.setXAxisLeftText(e[r-1]);break;case 53:c.setXAxisLeftText(e[r]);break;case 54:c.setYAxisBottomText(e[r-2]),c.setYAxisTopText(e[r]);break;case 55:e[r-1].text+=" ⟶ ",c.setYAxisBottomText(e[r-1]);break;case 56:c.setYAxisBottomText(e[r]);break;case 57:c.setQuadrant1Text(e[r]);break;case 58:c.setQuadrant2Text(e[r]);break;case 59:c.setQuadrant3Text(e[r]);break;case 60:c.setQuadrant4Text(e[r]);break;case 64:this.$={text:e[r],type:"text"};break;case 65:this.$={text:e[r-1].text+""+e[r],type:e[r-1].type};break;case 66:this.$={text:e[r],type:"text"};break;case 67:this.$={text:e[r],type:"markdown"};break;case 68:this.$=e[r];break;case 69:this.$=e[r-1]+""+e[r];break}},"anonymous"),table:[{18:a,26:1,27:2,28:g,55:u,56:o,57:x},{1:[3]},{18:a,26:8,27:2,28:g,55:u,56:o,57:x},{18:a,26:9,27:2,28:g,55:u,56:o,57:x},t(b,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(s,_,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:p,5:q,10:T,12:y,13:f,14:m,18:H,25:C,35:ct,37:dt,39:ut,41:xt,42:gt,48:ot,50:ht,51:i,52:It,53:Wt,54:Rt,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),t(b,[2,34]),{27:45,55:u,56:o,57:x},t(s,[2,37]),t(s,_,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:p,5:q,10:T,12:y,13:f,14:m,18:H,25:C,35:ct,37:dt,39:ut,41:xt,42:gt,48:ot,50:ht,51:i,52:It,53:Wt,54:Rt,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),t(s,[2,39]),t(s,[2,40]),t(s,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(s,[2,45]),t(s,[2,46]),{18:[1,50]},{4:p,5:q,10:T,12:y,13:f,14:m,43:51,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:f,14:m,43:52,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:f,14:m,43:53,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:f,14:m,43:54,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:f,14:m,43:55,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,10:T,12:y,13:f,14:m,43:56,58:31,60:U,61:N,63:S,64:k,65:F,66:P,67:v},{4:p,5:q,8:Y,10:T,12:y,13:f,14:m,18:M,44:[1,57],47:[1,58],58:60,59:59,63:S,64:k,65:F,66:P,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(b,[2,35]),t(s,[2,38]),t(s,[2,42]),t(s,[2,43]),t(s,[2,44]),{3:64,4:Bt,5:wt,6:$t,7:Ot,8:Ut,9:Nt,10:Qt,11:Xt,12:Ht,13:Yt,14:Mt,15:jt,21:63},t(s,[2,53],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:f,14:m,18:M,49:[1,77],63:S,64:k,65:F,66:P,67:v}),t(s,[2,56],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:f,14:m,18:M,49:[1,78],63:S,64:k,65:F,66:P,67:v}),t(s,[2,57],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:f,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,58],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:f,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,59],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:f,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,60],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:f,14:m,18:M,63:S,64:k,65:F,66:P,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:Bt,5:wt,6:$t,7:Ot,8:Ut,9:Nt,10:Qt,11:Xt,12:Ht,13:Yt,14:Mt,15:jt,18:[1,81]},t(W,[2,23]),t(W,[2,1]),t(W,[2,2]),t(W,[2,3]),t(W,[2,4]),t(W,[2,5]),t(W,[2,6]),t(W,[2,7]),t(W,[2,8]),t(W,[2,9]),t(W,[2,10]),t(W,[2,11]),t(W,[2,12]),t(s,[2,52],{58:31,43:83,4:p,5:q,10:T,12:y,13:f,14:m,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),t(s,[2,55],{58:31,43:84,4:p,5:q,10:T,12:y,13:f,14:m,60:U,61:N,63:S,64:k,65:F,66:P,67:v}),{46:[1,85]},{45:[1,86]},{4:V,5:J,6:Z,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:88,23:87},t(W,[2,24]),t(s,[2,51],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:f,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,54],{59:59,58:60,4:p,5:q,8:Y,10:T,12:y,13:f,14:m,18:M,63:S,64:k,65:F,66:P,67:v}),t(s,[2,47],{22:88,16:89,23:100,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{46:[1,101]},t(s,[2,29],{10:bt}),t(Gt,[2,27],{16:103,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),t($,[2,25]),t($,[2,13]),t($,[2,14]),t($,[2,15]),t($,[2,16]),t($,[2,17]),t($,[2,18]),t($,[2,19]),t($,[2,20]),t($,[2,21]),t($,[2,22]),t(s,[2,49],{10:bt}),t(s,[2,48],{22:88,16:89,23:104,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{4:V,5:J,6:Z,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:105},t($,[2,26]),t(s,[2,50],{10:bt}),t(Gt,[2,28],{16:103,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:l(function(Q,n){if(n.recoverable)this.trace(Q);else{var d=new Error(Q);throw d.hash=n,d}},"parseError"),parse:l(function(Q){var n=this,d=[0],c=[],A=[null],e=[],R=this.table,r="",pt=0,Kt=0,Te=2,Vt=1,qe=e.slice.call(arguments,1),E=Object.create(this.lexer),G={yy:{}};for(var St in this.yy)Object.prototype.hasOwnProperty.call(this.yy,St)&&(G.yy[St]=this.yy[St]);E.setInput(Q,G.yy),G.yy.lexer=E,G.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var kt=E.yylloc;e.push(kt);var me=E.options&&E.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(w){d.length=d.length-2*w,A.length=A.length-w,e.length=e.length-w}l(Ae,"popStack");function Jt(){var w;return w=c.pop()||E.lex()||Vt,typeof w!="number"&&(w instanceof Array&&(c=w,w=c.pop()),w=n.symbols_[w]||w),w}l(Jt,"lex");for(var B,K,O,Ft,lt={},yt,j,Zt,Tt;;){if(K=d[d.length-1],this.defaultActions[K]?O=this.defaultActions[K]:((B===null||typeof B>"u")&&(B=Jt()),O=R[K]&&R[K][B]),typeof O>"u"||!O.length||!O[0]){var Pt="";Tt=[];for(yt in R[K])this.terminals_[yt]&&yt>Te&&Tt.push("'"+this.terminals_[yt]+"'");E.showPosition?Pt="Parse error on line "+(pt+1)+`:
1
+ import{I as l,h as be,p as Se,C as ee,A as _e,d as ke,u as Fe,g as zt,O as qt,t as vt,B as Pe,G as ve,M as D,at as Ce,$ as te,S as Le}from"./index-DiPXXjl1.js";var Et=function(){var t=l(function(Q,n,d,c){for(d=d||{},c=Q.length;c--;d[Q[c]]=n);return d},"o"),a=[1,3],g=[1,4],u=[1,5],o=[1,6],x=[1,7],b=[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],h=[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],s=[55,56,57],S=[2,36],p=[1,37],m=[1,36],T=[1,38],y=[1,35],f=[1,43],q=[1,41],H=[1,14],C=[1,23],ct=[1,18],dt=[1,19],ut=[1,20],xt=[1,21],gt=[1,22],ot=[1,24],ht=[1,25],i=[1,26],It=[1,27],Wt=[1,28],Bt=[1,29],O=[1,32],U=[1,33],_=[1,34],k=[1,39],F=[1,40],P=[1,42],v=[1,44],Y=[1,62],M=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Rt=[1,65],$t=[1,66],wt=[1,67],Nt=[1,68],Ot=[1,69],Ut=[1,70],Qt=[1,71],Xt=[1,72],Ht=[1,73],Yt=[1,74],Mt=[1,75],jt=[1,76],W=[4,5,6,7,8,9,10,11,12,13,14,15,18],V=[1,90],J=[1,91],Z=[1,92],tt=[1,99],et=[1,93],it=[1,96],at=[1,94],nt=[1,95],st=[1,97],rt=[1,98],bt=[1,102],Gt=[10,55,56,57],w=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],St={trace:l(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:l(function(Q,n,d,c,A,e,B){var r=e.length-1;switch(A){case 23:this.$=e[r];break;case 24:this.$=e[r-1]+""+e[r];break;case 26:this.$=e[r-1]+e[r];break;case 27:this.$=[e[r].trim()];break;case 28:e[r-2].push(e[r].trim()),this.$=e[r-2];break;case 29:this.$=e[r-4],c.addClass(e[r-2],e[r]);break;case 37:this.$=[];break;case 42:this.$=e[r].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[r].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[r].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[r].substr(8)),this.$=e[r].substr(8);break;case 47:c.addPoint(e[r-3],"",e[r-1],e[r],[]);break;case 48:c.addPoint(e[r-4],e[r-3],e[r-1],e[r],[]);break;case 49:c.addPoint(e[r-4],"",e[r-2],e[r-1],e[r]);break;case 50:c.addPoint(e[r-5],e[r-4],e[r-2],e[r-1],e[r]);break;case 51:c.setXAxisLeftText(e[r-2]),c.setXAxisRightText(e[r]);break;case 52:e[r-1].text+=" ⟶ ",c.setXAxisLeftText(e[r-1]);break;case 53:c.setXAxisLeftText(e[r]);break;case 54:c.setYAxisBottomText(e[r-2]),c.setYAxisTopText(e[r]);break;case 55:e[r-1].text+=" ⟶ ",c.setYAxisBottomText(e[r-1]);break;case 56:c.setYAxisBottomText(e[r]);break;case 57:c.setQuadrant1Text(e[r]);break;case 58:c.setQuadrant2Text(e[r]);break;case 59:c.setQuadrant3Text(e[r]);break;case 60:c.setQuadrant4Text(e[r]);break;case 64:this.$={text:e[r],type:"text"};break;case 65:this.$={text:e[r-1].text+""+e[r],type:e[r-1].type};break;case 66:this.$={text:e[r],type:"text"};break;case 67:this.$={text:e[r],type:"markdown"};break;case 68:this.$=e[r];break;case 69:this.$=e[r-1]+""+e[r];break}},"anonymous"),table:[{18:a,26:1,27:2,28:g,55:u,56:o,57:x},{1:[3]},{18:a,26:8,27:2,28:g,55:u,56:o,57:x},{18:a,26:9,27:2,28:g,55:u,56:o,57:x},t(b,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(s,S,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:p,5:m,10:T,12:y,13:f,14:q,18:H,25:C,35:ct,37:dt,39:ut,41:xt,42:gt,48:ot,50:ht,51:i,52:It,53:Wt,54:Bt,60:O,61:U,63:_,64:k,65:F,66:P,67:v}),t(b,[2,34]),{27:45,55:u,56:o,57:x},t(s,[2,37]),t(s,S,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:p,5:m,10:T,12:y,13:f,14:q,18:H,25:C,35:ct,37:dt,39:ut,41:xt,42:gt,48:ot,50:ht,51:i,52:It,53:Wt,54:Bt,60:O,61:U,63:_,64:k,65:F,66:P,67:v}),t(s,[2,39]),t(s,[2,40]),t(s,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(s,[2,45]),t(s,[2,46]),{18:[1,50]},{4:p,5:m,10:T,12:y,13:f,14:q,43:51,58:31,60:O,61:U,63:_,64:k,65:F,66:P,67:v},{4:p,5:m,10:T,12:y,13:f,14:q,43:52,58:31,60:O,61:U,63:_,64:k,65:F,66:P,67:v},{4:p,5:m,10:T,12:y,13:f,14:q,43:53,58:31,60:O,61:U,63:_,64:k,65:F,66:P,67:v},{4:p,5:m,10:T,12:y,13:f,14:q,43:54,58:31,60:O,61:U,63:_,64:k,65:F,66:P,67:v},{4:p,5:m,10:T,12:y,13:f,14:q,43:55,58:31,60:O,61:U,63:_,64:k,65:F,66:P,67:v},{4:p,5:m,10:T,12:y,13:f,14:q,43:56,58:31,60:O,61:U,63:_,64:k,65:F,66:P,67:v},{4:p,5:m,8:Y,10:T,12:y,13:f,14:q,18:M,44:[1,57],47:[1,58],58:60,59:59,63:_,64:k,65:F,66:P,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(b,[2,35]),t(s,[2,38]),t(s,[2,42]),t(s,[2,43]),t(s,[2,44]),{3:64,4:Rt,5:$t,6:wt,7:Nt,8:Ot,9:Ut,10:Qt,11:Xt,12:Ht,13:Yt,14:Mt,15:jt,21:63},t(s,[2,53],{59:59,58:60,4:p,5:m,8:Y,10:T,12:y,13:f,14:q,18:M,49:[1,77],63:_,64:k,65:F,66:P,67:v}),t(s,[2,56],{59:59,58:60,4:p,5:m,8:Y,10:T,12:y,13:f,14:q,18:M,49:[1,78],63:_,64:k,65:F,66:P,67:v}),t(s,[2,57],{59:59,58:60,4:p,5:m,8:Y,10:T,12:y,13:f,14:q,18:M,63:_,64:k,65:F,66:P,67:v}),t(s,[2,58],{59:59,58:60,4:p,5:m,8:Y,10:T,12:y,13:f,14:q,18:M,63:_,64:k,65:F,66:P,67:v}),t(s,[2,59],{59:59,58:60,4:p,5:m,8:Y,10:T,12:y,13:f,14:q,18:M,63:_,64:k,65:F,66:P,67:v}),t(s,[2,60],{59:59,58:60,4:p,5:m,8:Y,10:T,12:y,13:f,14:q,18:M,63:_,64:k,65:F,66:P,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:Rt,5:$t,6:wt,7:Nt,8:Ot,9:Ut,10:Qt,11:Xt,12:Ht,13:Yt,14:Mt,15:jt,18:[1,81]},t(W,[2,23]),t(W,[2,1]),t(W,[2,2]),t(W,[2,3]),t(W,[2,4]),t(W,[2,5]),t(W,[2,6]),t(W,[2,7]),t(W,[2,8]),t(W,[2,9]),t(W,[2,10]),t(W,[2,11]),t(W,[2,12]),t(s,[2,52],{58:31,43:83,4:p,5:m,10:T,12:y,13:f,14:q,60:O,61:U,63:_,64:k,65:F,66:P,67:v}),t(s,[2,55],{58:31,43:84,4:p,5:m,10:T,12:y,13:f,14:q,60:O,61:U,63:_,64:k,65:F,66:P,67:v}),{46:[1,85]},{45:[1,86]},{4:V,5:J,6:Z,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:88,23:87},t(W,[2,24]),t(s,[2,51],{59:59,58:60,4:p,5:m,8:Y,10:T,12:y,13:f,14:q,18:M,63:_,64:k,65:F,66:P,67:v}),t(s,[2,54],{59:59,58:60,4:p,5:m,8:Y,10:T,12:y,13:f,14:q,18:M,63:_,64:k,65:F,66:P,67:v}),t(s,[2,47],{22:88,16:89,23:100,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{46:[1,101]},t(s,[2,29],{10:bt}),t(Gt,[2,27],{16:103,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),t(w,[2,25]),t(w,[2,13]),t(w,[2,14]),t(w,[2,15]),t(w,[2,16]),t(w,[2,17]),t(w,[2,18]),t(w,[2,19]),t(w,[2,20]),t(w,[2,21]),t(w,[2,22]),t(s,[2,49],{10:bt}),t(s,[2,48],{22:88,16:89,23:104,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{4:V,5:J,6:Z,8:tt,11:et,13:it,16:89,17:at,18:nt,19:st,20:rt,22:105},t(w,[2,26]),t(s,[2,50],{10:bt}),t(Gt,[2,28],{16:103,4:V,5:J,6:Z,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:l(function(Q,n){if(n.recoverable)this.trace(Q);else{var d=new Error(Q);throw d.hash=n,d}},"parseError"),parse:l(function(Q){var n=this,d=[0],c=[],A=[null],e=[],B=this.table,r="",pt=0,Kt=0,Te=2,Vt=1,me=e.slice.call(arguments,1),E=Object.create(this.lexer),G={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(G.yy[_t]=this.yy[_t]);E.setInput(Q,G.yy),G.yy.lexer=E,G.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var kt=E.yylloc;e.push(kt);var qe=E.options&&E.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae($){d.length=d.length-2*$,A.length=A.length-$,e.length=e.length-$}l(Ae,"popStack");function Jt(){var $;return $=c.pop()||E.lex()||Vt,typeof $!="number"&&($ instanceof Array&&(c=$,$=c.pop()),$=n.symbols_[$]||$),$}l(Jt,"lex");for(var R,K,N,Ft,lt={},yt,j,Zt,Tt;;){if(K=d[d.length-1],this.defaultActions[K]?N=this.defaultActions[K]:((R===null||typeof R>"u")&&(R=Jt()),N=B[K]&&B[K][R]),typeof N>"u"||!N.length||!N[0]){var Pt="";Tt=[];for(yt in B[K])this.terminals_[yt]&&yt>Te&&Tt.push("'"+this.terminals_[yt]+"'");E.showPosition?Pt="Parse error on line "+(pt+1)+`:
2
2
  `+E.showPosition()+`
3
- Expecting `+Tt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Pt="Parse error on line "+(pt+1)+": Unexpected "+(B==Vt?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Pt,{text:E.match,token:this.terminals_[B]||B,line:E.yylineno,loc:kt,expected:Tt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+B);switch(O[0]){case 1:d.push(B),A.push(E.yytext),e.push(E.yylloc),d.push(O[1]),B=null,Kt=E.yyleng,r=E.yytext,pt=E.yylineno,kt=E.yylloc;break;case 2:if(j=this.productions_[O[1]][1],lt.$=A[A.length-j],lt._$={first_line:e[e.length-(j||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(j||1)].first_column,last_column:e[e.length-1].last_column},me&&(lt._$.range=[e[e.length-(j||1)].range[0],e[e.length-1].range[1]]),Ft=this.performAction.apply(lt,[r,Kt,pt,G.yy,O[1],A,e].concat(qe)),typeof Ft<"u")return Ft;j&&(d=d.slice(0,-1*j*2),A=A.slice(0,-1*j),e=e.slice(0,-1*j)),d.push(this.productions_[O[1]][0]),A.push(lt.$),e.push(lt._$),Zt=R[d[d.length-2]][d[d.length-1]],d.push(Zt);break;case 3:return!0}}return!0},"parse")},ye=function(){var Q={EOF:1,parseError:l(function(n,d){if(this.yy.parser)this.yy.parser.parseError(n,d);else throw new Error(n)},"parseError"),setInput:l(function(n,d){return this.yy=d||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:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var d=n.match(/(?:\r\n?|\n).*/g);return d?(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:l(function(n){var d=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var A=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),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===A.length?this.yylloc.first_column:0)+A[A.length-c.length].length-c[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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).
3
+ Expecting `+Tt.join(", ")+", got '"+(this.terminals_[R]||R)+"'":Pt="Parse error on line "+(pt+1)+": Unexpected "+(R==Vt?"end of input":"'"+(this.terminals_[R]||R)+"'"),this.parseError(Pt,{text:E.match,token:this.terminals_[R]||R,line:E.yylineno,loc:kt,expected:Tt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+R);switch(N[0]){case 1:d.push(R),A.push(E.yytext),e.push(E.yylloc),d.push(N[1]),R=null,Kt=E.yyleng,r=E.yytext,pt=E.yylineno,kt=E.yylloc;break;case 2:if(j=this.productions_[N[1]][1],lt.$=A[A.length-j],lt._$={first_line:e[e.length-(j||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(j||1)].first_column,last_column:e[e.length-1].last_column},qe&&(lt._$.range=[e[e.length-(j||1)].range[0],e[e.length-1].range[1]]),Ft=this.performAction.apply(lt,[r,Kt,pt,G.yy,N[1],A,e].concat(me)),typeof Ft<"u")return Ft;j&&(d=d.slice(0,-1*j*2),A=A.slice(0,-1*j),e=e.slice(0,-1*j)),d.push(this.productions_[N[1]][0]),A.push(lt.$),e.push(lt._$),Zt=B[d[d.length-2]][d[d.length-1]],d.push(Zt);break;case 3:return!0}}return!0},"parse")},ye=function(){var Q={EOF:1,parseError:l(function(n,d){if(this.yy.parser)this.yy.parser.parseError(n,d);else throw new Error(n)},"parseError"),setInput:l(function(n,d){return this.yy=d||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:l(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var d=n.match(/(?:\r\n?|\n).*/g);return d?(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:l(function(n){var d=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var A=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),c.length-1&&(this.yylineno-=c.length-1);var e=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:c?(c.length===A.length?this.yylloc.first_column:0)+A[A.length-c.length].length-c[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(n){this.unput(this.match.slice(n))},"less"),pastInput:l(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:l(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:l(function(){var n=this.pastInput(),d=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
- `+d+"^"},"showPosition"),test_match:l(function(n,d){var c,A,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),A=n[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.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],c=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var R in e)this[R]=e[R];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,d,c,A;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),R=0;R<e.length;R++)if(c=this._input.match(this.rules[e[R]]),c&&(!d||c[0].length>d[0].length)){if(d=c,A=R,this.options.backtrack_lexer){if(n=this.test_match(c,e[R]),n!==!1)return n;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(n=this.test_match(d,e[A]),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:l(function(){var n=this.next();return n||this.lex()},"lex"),begin:l(function(n){this.conditionStack.push(n)},"begin"),popState:l(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(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:l(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:l(function(n){this.begin(n)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(n,d,c,A){switch(c){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 Q}();_t.lexer=ye;function ft(){this.yy={}}return l(ft,"Parser"),ft.prototype=_t,_t.Parser=ft,new ft}();Et.parser=Et;var Ee=Et,I=Ce(),Ct,De=(Ct=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 t,a,g,u,o,x,b,h,s,_,p,q,T,y,f,m,H,C;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((t=D.quadrantChart)==null?void 0:t.chartWidth)||500,chartWidth:((a=D.quadrantChart)==null?void 0:a.chartHeight)||500,titlePadding:((g=D.quadrantChart)==null?void 0:g.titlePadding)||10,titleFontSize:((u=D.quadrantChart)==null?void 0:u.titleFontSize)||20,quadrantPadding:((o=D.quadrantChart)==null?void 0:o.quadrantPadding)||5,xAxisLabelPadding:((x=D.quadrantChart)==null?void 0:x.xAxisLabelPadding)||5,yAxisLabelPadding:((b=D.quadrantChart)==null?void 0:b.yAxisLabelPadding)||5,xAxisLabelFontSize:((h=D.quadrantChart)==null?void 0:h.xAxisLabelFontSize)||16,yAxisLabelFontSize:((s=D.quadrantChart)==null?void 0:s.yAxisLabelFontSize)||16,quadrantLabelFontSize:((_=D.quadrantChart)==null?void 0:_.quadrantLabelFontSize)||16,quadrantTextTopPadding:((p=D.quadrantChart)==null?void 0:p.quadrantTextTopPadding)||5,pointTextPadding:((q=D.quadrantChart)==null?void 0:q.pointTextPadding)||5,pointLabelFontSize:((T=D.quadrantChart)==null?void 0:T.pointLabelFontSize)||12,pointRadius:((y=D.quadrantChart)==null?void 0:y.pointRadius)||5,xAxisPosition:((f=D.quadrantChart)==null?void 0:f.xAxisPosition)||"top",yAxisPosition:((m=D.quadrantChart)==null?void 0:m.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((H=D.quadrantChart)==null?void 0:H.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((C=D.quadrantChart)==null?void 0:C.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:I.quadrant1Fill,quadrant2Fill:I.quadrant2Fill,quadrant3Fill:I.quadrant3Fill,quadrant4Fill:I.quadrant4Fill,quadrant1TextFill:I.quadrant1TextFill,quadrant2TextFill:I.quadrant2TextFill,quadrant3TextFill:I.quadrant3TextFill,quadrant4TextFill:I.quadrant4TextFill,quadrantPointFill:I.quadrantPointFill,quadrantPointTextFill:I.quadrantPointTextFill,quadrantXAxisTextFill:I.quadrantXAxisTextFill,quadrantYAxisTextFill:I.quadrantYAxisTextFill,quadrantTitleFill:I.quadrantTitleFill,quadrantInternalBorderStrokeFill:I.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:I.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,mt.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,a){this.classes.set(t,a)}setConfig(t){mt.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){mt.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,a,g,u){const o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,x={top:t==="top"&&a?o:0,bottom:t==="bottom"&&a?o:0},b=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,h={left:this.config.yAxisPosition==="left"&&g?b:0,right:this.config.yAxisPosition==="right"&&g?b:0},s=this.config.titleFontSize+this.config.titlePadding*2,_={top:u?s:0},p=this.config.quadrantPadding+h.left,q=this.config.quadrantPadding+x.top+_.top,T=this.config.chartWidth-this.config.quadrantPadding*2-h.left-h.right,y=this.config.chartHeight-this.config.quadrantPadding*2-x.top-x.bottom-_.top,f=T/2,m=y/2;return{xAxisSpace:x,yAxisSpace:h,titleSpace:_,quadrantSpace:{quadrantLeft:p,quadrantTop:q,quadrantWidth:T,quadrantHalfWidth:f,quadrantHeight:y,quadrantHalfHeight:m}}}getAxisLabels(t,a,g,u){const{quadrantSpace:o,titleSpace:x}=u,{quadrantHalfHeight:b,quadrantHeight:h,quadrantLeft:s,quadrantHalfWidth:_,quadrantTop:p,quadrantWidth:q}=o,T=!!this.data.xAxisRightText,y=!!this.data.yAxisTopText,f=[];return this.data.xAxisLeftText&&a&&f.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:s+(T?_/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+p+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&a&&f.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:s+_+(T?_/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+p+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&g&&f.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+s+q+this.config.quadrantPadding,y:p+h-(y?b/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&g&&f.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+s+q+this.config.quadrantPadding,y:p+b-(y?b/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:-90}),f}getQuadrants(t){const{quadrantSpace:a}=t,{quadrantHalfHeight:g,quadrantLeft:u,quadrantHalfWidth:o,quadrantTop:x}=a,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:u+o,y:x,width:o,height:g,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:u,y:x,width:o,height:g,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:u,y:x+g,width:o,height:g,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:u+o,y:x+g,width:o,height:g,fill:this.themeConfig.quadrant4Fill}];for(const h of b)h.text.x=h.x+h.width/2,this.data.points.length===0?(h.text.y=h.y+h.height/2,h.text.horizontalPos="middle"):(h.text.y=h.y+this.config.quadrantTextTopPadding,h.text.horizontalPos="top");return b}getQuadrantPoints(t){const{quadrantSpace:a}=t,{quadrantHeight:g,quadrantLeft:u,quadrantTop:o,quadrantWidth:x}=a,b=te().domain([0,1]).range([u,x+u]),h=te().domain([0,1]).range([g+o,o]);return this.data.points.map(s=>{const _=this.classes.get(s.className);return _&&(s={..._,...s}),{x:b(s.x),y:h(s.y),fill:s.color??this.themeConfig.quadrantPointFill,radius:s.radius??this.config.pointRadius,text:{text:s.text,fill:this.themeConfig.quadrantPointTextFill,x:b(s.x),y:h(s.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:s.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:s.strokeWidth??"0px"}})}getBorders(t){const a=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:g}=t,{quadrantHalfHeight:u,quadrantHeight:o,quadrantLeft:x,quadrantHalfWidth:b,quadrantTop:h,quadrantWidth:s}=g;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h,x2:x+s+a,y2:h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x+s,y1:h+a,x2:x+s,y2:h+o-a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h+o,x2:x+s+a,y2:h+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x,y1:h+a,x2:x,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+b,y1:h+a,x2:x+b,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+a,y1:h+u,x2:x+s-a,y2:h+u}]}getTitle(t){if(t)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 t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),a=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),g=this.config.showTitle&&!!this.data.titleText,u=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(u,t,a,g);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(u,t,a,o),borderLines:this.getBorders(o),title:this.getTitle(g)}}},l(Ct,"QuadrantBuilder"),Ct),Lt,qt=(Lt=class extends Error{constructor(t,a,g){super(`value for ${t} ${a} is invalid, please use a valid ${g}`),this.name="InvalidStyleError"}},l(Lt,"InvalidStyleError"),Lt);function Dt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}l(Dt,"validateHexCode");function ie(t){return!/^\d+$/.test(t)}l(ie,"validateNumber");function ae(t){return!/^\d+px$/.test(t)}l(ae,"validateSizeInPixels");var ze=zt();function X(t){return Le(t.trim(),ze)}l(X,"textSanitizer");var z=new De;function ne(t){z.setData({quadrant1Text:X(t.text)})}l(ne,"setQuadrant1Text");function se(t){z.setData({quadrant2Text:X(t.text)})}l(se,"setQuadrant2Text");function re(t){z.setData({quadrant3Text:X(t.text)})}l(re,"setQuadrant3Text");function le(t){z.setData({quadrant4Text:X(t.text)})}l(le,"setQuadrant4Text");function oe(t){z.setData({xAxisLeftText:X(t.text)})}l(oe,"setXAxisLeftText");function he(t){z.setData({xAxisRightText:X(t.text)})}l(he,"setXAxisRightText");function ce(t){z.setData({yAxisTopText:X(t.text)})}l(ce,"setYAxisTopText");function de(t){z.setData({yAxisBottomText:X(t.text)})}l(de,"setYAxisBottomText");function At(t){const a={};for(const g of t){const[u,o]=g.trim().split(/\s*:\s*/);if(u==="radius"){if(ie(o))throw new qt(u,o,"number");a.radius=parseInt(o)}else if(u==="color"){if(Dt(o))throw new qt(u,o,"hex code");a.color=o}else if(u==="stroke-color"){if(Dt(o))throw new qt(u,o,"hex code");a.strokeColor=o}else if(u==="stroke-width"){if(ae(o))throw new qt(u,o,"number of pixels (eg. 10px)");a.strokeWidth=o}else throw new Error(`style named ${u} is not supported.`)}return a}l(At,"parseStyles");function ue(t,a,g,u,o){const x=At(o);z.addPoints([{x:g,y:u,text:X(t.text),className:a,...x}])}l(ue,"addPoint");function xe(t,a){z.addClass(t,At(a))}l(xe,"addClass");function ge(t){z.setConfig({chartWidth:t})}l(ge,"setWidth");function fe(t){z.setConfig({chartHeight:t})}l(fe,"setHeight");function pe(){const t=zt(),{themeVariables:a,quadrantChart:g}=t;return g&&z.setConfig(g),z.setThemeConfig({quadrant1Fill:a.quadrant1Fill,quadrant2Fill:a.quadrant2Fill,quadrant3Fill:a.quadrant3Fill,quadrant4Fill:a.quadrant4Fill,quadrant1TextFill:a.quadrant1TextFill,quadrant2TextFill:a.quadrant2TextFill,quadrant3TextFill:a.quadrant3TextFill,quadrant4TextFill:a.quadrant4TextFill,quadrantPointFill:a.quadrantPointFill,quadrantPointTextFill:a.quadrantPointTextFill,quadrantXAxisTextFill:a.quadrantXAxisTextFill,quadrantYAxisTextFill:a.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:a.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:a.quadrantInternalBorderStrokeFill,quadrantTitleFill:a.quadrantTitleFill}),z.setData({titleText:ee()}),z.build()}l(pe,"getQuadrantData");var Ie=l(function(){z.clear(),ve()},"clear"),We={setWidth:ge,setHeight:fe,setQuadrant1Text:ne,setQuadrant2Text:se,setQuadrant3Text:re,setQuadrant4Text:le,setXAxisLeftText:oe,setXAxisRightText:he,setYAxisTopText:ce,setYAxisBottomText:de,parseStyles:At,addPoint:ue,addClass:xe,getQuadrantData:pe,clear:Ie,setAccTitle:Fe,getAccTitle:ke,setDiagramTitle:Se,getDiagramTitle:ee,getAccDescription:_e,setAccDescription:be},Re=l((t,a,g,u)=>{var o,x,b;function h(i){return i==="top"?"hanging":"middle"}l(h,"getDominantBaseLine");function s(i){return i==="left"?"start":"middle"}l(s,"getTextAnchor");function _(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}l(_,"getTransformation");const p=zt();mt.debug(`Rendering quadrant chart
7
- `+t);const q=p.securityLevel;let T;q==="sandbox"&&(T=vt("#i"+a));const y=(q==="sandbox"?vt(T.nodes()[0].contentDocument.body):vt("body")).select(`[id="${a}"]`),f=y.append("g").attr("class","main"),m=((o=p.quadrantChart)==null?void 0:o.chartWidth)??500,H=((x=p.quadrantChart)==null?void 0:x.chartHeight)??500;Pe(y,H,m,((b=p.quadrantChart)==null?void 0:b.useMaxWidth)??!0),y.attr("viewBox","0 0 "+m+" "+H),u.db.setHeight(H),u.db.setWidth(m);const C=u.db.getQuadrantData(),ct=f.append("g").attr("class","quadrants"),dt=f.append("g").attr("class","border"),ut=f.append("g").attr("class","data-points"),xt=f.append("g").attr("class","labels"),gt=f.append("g").attr("class","title");C.title&&gt.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",h(C.title.horizontalPos)).attr("text-anchor",s(C.title.verticalPos)).attr("transform",_(C.title)).text(C.title.text),C.borderLines&&dt.selectAll("line").data(C.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 ot=ct.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");ot.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),ot.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=>h(i.text.horizontalPos)).attr("text-anchor",i=>s(i.text.verticalPos)).attr("transform",i=>_(i.text)).text(i=>i.text.text),xt.selectAll("g.label").data(C.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=>h(i.horizontalPos)).attr("text-anchor",i=>s(i.verticalPos)).attr("transform",i=>_(i));const ht=ut.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");ht.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),ht.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=>h(i.text.horizontalPos)).attr("text-anchor",i=>s(i.text.verticalPos)).attr("transform",i=>_(i.text))},"draw"),Be={draw:Re},$e={parser:Ee,db:We,renderer:Be,styles:l(()=>"","styles")};export{$e as diagram};
5
+ `+d+"^"},"showPosition"),test_match:l(function(n,d){var c,A,e;if(this.options.backtrack_lexer&&(e={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&&(e.yylloc.range=this.yylloc.range.slice(0))),A=n[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.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],c=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var B in e)this[B]=e[B];return!1}return!1},"test_match"),next:l(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,d,c,A;this._more||(this.yytext="",this.match="");for(var e=this._currentRules(),B=0;B<e.length;B++)if(c=this._input.match(this.rules[e[B]]),c&&(!d||c[0].length>d[0].length)){if(d=c,A=B,this.options.backtrack_lexer){if(n=this.test_match(c,e[B]),n!==!1)return n;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(n=this.test_match(d,e[A]),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:l(function(){var n=this.next();return n||this.lex()},"lex"),begin:l(function(n){this.conditionStack.push(n)},"begin"),popState:l(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:l(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:l(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:l(function(n){this.begin(n)},"pushState"),stateStackSize:l(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:l(function(n,d,c,A){switch(c){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 Q}();St.lexer=ye;function ft(){this.yy={}}return l(ft,"Parser"),ft.prototype=St,St.Parser=ft,new ft}();Et.parser=Et;var Ee=Et,I=Ce(),Ct,De=(Ct=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 t,a,g,u,o,x,b,h,s,S,p,m,T,y,f,q,H,C;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((t=D.quadrantChart)==null?void 0:t.chartWidth)||500,chartWidth:((a=D.quadrantChart)==null?void 0:a.chartHeight)||500,titlePadding:((g=D.quadrantChart)==null?void 0:g.titlePadding)||10,titleFontSize:((u=D.quadrantChart)==null?void 0:u.titleFontSize)||20,quadrantPadding:((o=D.quadrantChart)==null?void 0:o.quadrantPadding)||5,xAxisLabelPadding:((x=D.quadrantChart)==null?void 0:x.xAxisLabelPadding)||5,yAxisLabelPadding:((b=D.quadrantChart)==null?void 0:b.yAxisLabelPadding)||5,xAxisLabelFontSize:((h=D.quadrantChart)==null?void 0:h.xAxisLabelFontSize)||16,yAxisLabelFontSize:((s=D.quadrantChart)==null?void 0:s.yAxisLabelFontSize)||16,quadrantLabelFontSize:((S=D.quadrantChart)==null?void 0:S.quadrantLabelFontSize)||16,quadrantTextTopPadding:((p=D.quadrantChart)==null?void 0:p.quadrantTextTopPadding)||5,pointTextPadding:((m=D.quadrantChart)==null?void 0:m.pointTextPadding)||5,pointLabelFontSize:((T=D.quadrantChart)==null?void 0:T.pointLabelFontSize)||12,pointRadius:((y=D.quadrantChart)==null?void 0:y.pointRadius)||5,xAxisPosition:((f=D.quadrantChart)==null?void 0:f.xAxisPosition)||"top",yAxisPosition:((q=D.quadrantChart)==null?void 0:q.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((H=D.quadrantChart)==null?void 0:H.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((C=D.quadrantChart)==null?void 0:C.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:I.quadrant1Fill,quadrant2Fill:I.quadrant2Fill,quadrant3Fill:I.quadrant3Fill,quadrant4Fill:I.quadrant4Fill,quadrant1TextFill:I.quadrant1TextFill,quadrant2TextFill:I.quadrant2TextFill,quadrant3TextFill:I.quadrant3TextFill,quadrant4TextFill:I.quadrant4TextFill,quadrantPointFill:I.quadrantPointFill,quadrantPointTextFill:I.quadrantPointTextFill,quadrantXAxisTextFill:I.quadrantXAxisTextFill,quadrantYAxisTextFill:I.quadrantYAxisTextFill,quadrantTitleFill:I.quadrantTitleFill,quadrantInternalBorderStrokeFill:I.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:I.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,qt.info("clear called")}setData(t){this.data={...this.data,...t}}addPoints(t){this.data.points=[...t,...this.data.points]}addClass(t,a){this.classes.set(t,a)}setConfig(t){qt.trace("setConfig called with: ",t),this.config={...this.config,...t}}setThemeConfig(t){qt.trace("setThemeConfig called with: ",t),this.themeConfig={...this.themeConfig,...t}}calculateSpace(t,a,g,u){const o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,x={top:t==="top"&&a?o:0,bottom:t==="bottom"&&a?o:0},b=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,h={left:this.config.yAxisPosition==="left"&&g?b:0,right:this.config.yAxisPosition==="right"&&g?b:0},s=this.config.titleFontSize+this.config.titlePadding*2,S={top:u?s:0},p=this.config.quadrantPadding+h.left,m=this.config.quadrantPadding+x.top+S.top,T=this.config.chartWidth-this.config.quadrantPadding*2-h.left-h.right,y=this.config.chartHeight-this.config.quadrantPadding*2-x.top-x.bottom-S.top,f=T/2,q=y/2;return{xAxisSpace:x,yAxisSpace:h,titleSpace:S,quadrantSpace:{quadrantLeft:p,quadrantTop:m,quadrantWidth:T,quadrantHalfWidth:f,quadrantHeight:y,quadrantHalfHeight:q}}}getAxisLabels(t,a,g,u){const{quadrantSpace:o,titleSpace:x}=u,{quadrantHalfHeight:b,quadrantHeight:h,quadrantLeft:s,quadrantHalfWidth:S,quadrantTop:p,quadrantWidth:m}=o,T=!!this.data.xAxisRightText,y=!!this.data.yAxisTopText,f=[];return this.data.xAxisLeftText&&a&&f.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:s+(T?S/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+p+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&a&&f.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:s+S+(T?S/2:0),y:t==="top"?this.config.xAxisLabelPadding+x.top:this.config.xAxisLabelPadding+p+h+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&g&&f.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+s+m+this.config.quadrantPadding,y:p+h-(y?b/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&g&&f.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+s+m+this.config.quadrantPadding,y:p+b-(y?b/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:y?"center":"left",horizontalPos:"top",rotation:-90}),f}getQuadrants(t){const{quadrantSpace:a}=t,{quadrantHalfHeight:g,quadrantLeft:u,quadrantHalfWidth:o,quadrantTop:x}=a,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:u+o,y:x,width:o,height:g,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:u,y:x,width:o,height:g,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:u,y:x+g,width:o,height:g,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:u+o,y:x+g,width:o,height:g,fill:this.themeConfig.quadrant4Fill}];for(const h of b)h.text.x=h.x+h.width/2,this.data.points.length===0?(h.text.y=h.y+h.height/2,h.text.horizontalPos="middle"):(h.text.y=h.y+this.config.quadrantTextTopPadding,h.text.horizontalPos="top");return b}getQuadrantPoints(t){const{quadrantSpace:a}=t,{quadrantHeight:g,quadrantLeft:u,quadrantTop:o,quadrantWidth:x}=a,b=te().domain([0,1]).range([u,x+u]),h=te().domain([0,1]).range([g+o,o]);return this.data.points.map(s=>{const S=this.classes.get(s.className);return S&&(s={...S,...s}),{x:b(s.x),y:h(s.y),fill:s.color??this.themeConfig.quadrantPointFill,radius:s.radius??this.config.pointRadius,text:{text:s.text,fill:this.themeConfig.quadrantPointTextFill,x:b(s.x),y:h(s.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:s.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:s.strokeWidth??"0px"}})}getBorders(t){const a=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:g}=t,{quadrantHalfHeight:u,quadrantHeight:o,quadrantLeft:x,quadrantHalfWidth:b,quadrantTop:h,quadrantWidth:s}=g;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h,x2:x+s+a,y2:h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x+s,y1:h+a,x2:x+s,y2:h+o-a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x-a,y1:h+o,x2:x+s+a,y2:h+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:x,y1:h+a,x2:x,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+b,y1:h+a,x2:x+b,y2:h+o-a},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:x+a,y1:h+u,x2:x+s-a,y2:h+u}]}getTitle(t){if(t)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 t=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),a=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),g=this.config.showTitle&&!!this.data.titleText,u=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(u,t,a,g);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(u,t,a,o),borderLines:this.getBorders(o),title:this.getTitle(g)}}},l(Ct,"QuadrantBuilder"),Ct),Lt,mt=(Lt=class extends Error{constructor(t,a,g){super(`value for ${t} ${a} is invalid, please use a valid ${g}`),this.name="InvalidStyleError"}},l(Lt,"InvalidStyleError"),Lt);function Dt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}l(Dt,"validateHexCode");function ie(t){return!/^\d+$/.test(t)}l(ie,"validateNumber");function ae(t){return!/^\d+px$/.test(t)}l(ae,"validateSizeInPixels");var ze=zt();function X(t){return Le(t.trim(),ze)}l(X,"textSanitizer");var z=new De;function ne(t){z.setData({quadrant1Text:X(t.text)})}l(ne,"setQuadrant1Text");function se(t){z.setData({quadrant2Text:X(t.text)})}l(se,"setQuadrant2Text");function re(t){z.setData({quadrant3Text:X(t.text)})}l(re,"setQuadrant3Text");function le(t){z.setData({quadrant4Text:X(t.text)})}l(le,"setQuadrant4Text");function oe(t){z.setData({xAxisLeftText:X(t.text)})}l(oe,"setXAxisLeftText");function he(t){z.setData({xAxisRightText:X(t.text)})}l(he,"setXAxisRightText");function ce(t){z.setData({yAxisTopText:X(t.text)})}l(ce,"setYAxisTopText");function de(t){z.setData({yAxisBottomText:X(t.text)})}l(de,"setYAxisBottomText");function At(t){const a={};for(const g of t){const[u,o]=g.trim().split(/\s*:\s*/);if(u==="radius"){if(ie(o))throw new mt(u,o,"number");a.radius=parseInt(o)}else if(u==="color"){if(Dt(o))throw new mt(u,o,"hex code");a.color=o}else if(u==="stroke-color"){if(Dt(o))throw new mt(u,o,"hex code");a.strokeColor=o}else if(u==="stroke-width"){if(ae(o))throw new mt(u,o,"number of pixels (eg. 10px)");a.strokeWidth=o}else throw new Error(`style named ${u} is not supported.`)}return a}l(At,"parseStyles");function ue(t,a,g,u,o){const x=At(o);z.addPoints([{x:g,y:u,text:X(t.text),className:a,...x}])}l(ue,"addPoint");function xe(t,a){z.addClass(t,At(a))}l(xe,"addClass");function ge(t){z.setConfig({chartWidth:t})}l(ge,"setWidth");function fe(t){z.setConfig({chartHeight:t})}l(fe,"setHeight");function pe(){const t=zt(),{themeVariables:a,quadrantChart:g}=t;return g&&z.setConfig(g),z.setThemeConfig({quadrant1Fill:a.quadrant1Fill,quadrant2Fill:a.quadrant2Fill,quadrant3Fill:a.quadrant3Fill,quadrant4Fill:a.quadrant4Fill,quadrant1TextFill:a.quadrant1TextFill,quadrant2TextFill:a.quadrant2TextFill,quadrant3TextFill:a.quadrant3TextFill,quadrant4TextFill:a.quadrant4TextFill,quadrantPointFill:a.quadrantPointFill,quadrantPointTextFill:a.quadrantPointTextFill,quadrantXAxisTextFill:a.quadrantXAxisTextFill,quadrantYAxisTextFill:a.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:a.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:a.quadrantInternalBorderStrokeFill,quadrantTitleFill:a.quadrantTitleFill}),z.setData({titleText:ee()}),z.build()}l(pe,"getQuadrantData");var Ie=l(function(){z.clear(),ve()},"clear"),We={setWidth:ge,setHeight:fe,setQuadrant1Text:ne,setQuadrant2Text:se,setQuadrant3Text:re,setQuadrant4Text:le,setXAxisLeftText:oe,setXAxisRightText:he,setYAxisTopText:ce,setYAxisBottomText:de,parseStyles:At,addPoint:ue,addClass:xe,getQuadrantData:pe,clear:Ie,setAccTitle:Fe,getAccTitle:ke,setDiagramTitle:_e,getDiagramTitle:ee,getAccDescription:Se,setAccDescription:be},Be=l((t,a,g,u)=>{var o,x,b;function h(i){return i==="top"?"hanging":"middle"}l(h,"getDominantBaseLine");function s(i){return i==="left"?"start":"middle"}l(s,"getTextAnchor");function S(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}l(S,"getTransformation");const p=zt();qt.debug(`Rendering quadrant chart
7
+ `+t);const m=p.securityLevel;let T;m==="sandbox"&&(T=vt("#i"+a));const y=(m==="sandbox"?vt(T.nodes()[0].contentDocument.body):vt("body")).select(`[id="${a}"]`),f=y.append("g").attr("class","main"),q=((o=p.quadrantChart)==null?void 0:o.chartWidth)??500,H=((x=p.quadrantChart)==null?void 0:x.chartHeight)??500;Pe(y,H,q,((b=p.quadrantChart)==null?void 0:b.useMaxWidth)??!0),y.attr("viewBox","0 0 "+q+" "+H),u.db.setHeight(H),u.db.setWidth(q);const C=u.db.getQuadrantData(),ct=f.append("g").attr("class","quadrants"),dt=f.append("g").attr("class","border"),ut=f.append("g").attr("class","data-points"),xt=f.append("g").attr("class","labels"),gt=f.append("g").attr("class","title");C.title&&gt.append("text").attr("x",0).attr("y",0).attr("fill",C.title.fill).attr("font-size",C.title.fontSize).attr("dominant-baseline",h(C.title.horizontalPos)).attr("text-anchor",s(C.title.verticalPos)).attr("transform",S(C.title)).text(C.title.text),C.borderLines&&dt.selectAll("line").data(C.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 ot=ct.selectAll("g.quadrant").data(C.quadrants).enter().append("g").attr("class","quadrant");ot.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),ot.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=>h(i.text.horizontalPos)).attr("text-anchor",i=>s(i.text.verticalPos)).attr("transform",i=>S(i.text)).text(i=>i.text.text),xt.selectAll("g.label").data(C.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=>h(i.horizontalPos)).attr("text-anchor",i=>s(i.verticalPos)).attr("transform",i=>S(i));const ht=ut.selectAll("g.data-point").data(C.points).enter().append("g").attr("class","data-point");ht.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),ht.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=>h(i.text.horizontalPos)).attr("text-anchor",i=>s(i.text.verticalPos)).attr("transform",i=>S(i.text))},"draw"),Re={draw:Be},we={parser:Ee,db:We,renderer:Re,styles:l(()=>"","styles")};export{we as diagram};
@@ -1,9 +1,9 @@
1
- import{d as We}from"./chunk-55IACEB6-C4OH5_NF-HSErBipB.js";import{d as Ge}from"./chunk-QN33PNHL-DrWWTLTH-UzcLWgZY.js";import{R as o,s as Xe,l as Ze,f as ze,u as Je,o as et,r as tt,g as ke,O as Ne,w as st,C as it,Z as rt,X as nt,n as at}from"./index-CFYhtZ1e.js";var Ce=function(){var e=o(function(F,i,r,s){for(r=r||{},s=F.length;s--;r[F[s]]=i);return r},"o"),E=[1,3],h=[1,4],c=[1,5],a=[1,6],m=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],f=[1,22],l=[2,7],u=[1,26],g=[1,27],b=[1,28],C=[1,29],A=[1,33],q=[1,34],v=[1,35],L=[1,36],O=[1,37],x=[1,38],w=[1,24],D=[1,31],M=[1,32],$=[1,30],d=[1,39],R=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],Z=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],me=[27,29],qe=[1,70],ve=[1,71],Le=[1,72],Oe=[1,73],xe=[1,74],we=[1,75],De=[1,76],J=[1,83],V=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],ce=[1,92],Ee=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],j=[1,109],W=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],_e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:o(function(F,i,r,s,y,t,S){var n=t.length-1;switch(y){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:E,9:h,11:c,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:E,9:h,11:c,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(m,[2,6]),{3:12,4:2,6:E,9:h,11:c,13:a},{1:[2,2]},{4:17,5:f,7:13,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},e(m,[2,4]),e(m,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:f,7:42,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:43,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:44,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:45,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:46,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:47,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:48,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:49,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:50,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:U,89:d,90:R},{30:63,33:62,75:U,89:d,90:R},{30:64,33:62,75:U,89:d,90:R},e(Z,[2,29]),e(Z,[2,30]),e(Z,[2,31]),e(Z,[2,32]),e(Z,[2,33]),e(Z,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(me,[2,79]),e(me,[2,80]),{27:[1,67],29:[1,68]},e(me,[2,85]),e(me,[2,86]),{62:69,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{62:77,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{30:78,33:62,75:U,89:d,90:R},{73:79,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},{30:94,33:62,75:U,76:V,89:d,90:R},{5:[1,95]},{30:96,33:62,75:U,89:d,90:R},{5:[1,97]},{30:98,33:62,75:U,89:d,90:R},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:V}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:d,90:R},e($e,[2,65],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:V}),{5:B,28:105,31:Q,34:H,36:K,38:j,40:W},{27:[1,112],76:V},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:V},{33:119,89:d,90:R},{33:120,89:d,90:R},{75:J,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(k,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:j,40:W},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:ye},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e($e,[2,66],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),{33:132,89:d,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:j,40:W},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:oe,40:he,56:152,57:ue,59:ye},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:j,40:W},{5:B,28:160,31:Q,34:H,36:K,38:j,40:W},{5:B,28:161,31:Q,34:H,36:K,38:j,40:W},{5:B,28:162,31:Q,34:H,36:K,38:j,40:W},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:o(function(F,i){if(i.recoverable)this.trace(F);else{var r=new Error(F);throw r.hash=i,r}},"parseError"),parse:o(function(F){var i=this,r=[0],s=[],y=[null],t=[],S=this.table,n="",de=0,Fe=0,Qe=2,Pe=1,He=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(G.yy[ge]=this.yy[ge]);_.setInput(F,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Se=_.yylloc;t.push(Se);var Ke=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(T){r.length=r.length-2*T,y.length=y.length-T,t.length=t.length-T}o(je,"popStack");function Ue(){var T;return T=s.pop()||_.lex()||Pe,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=i.symbols_[T]||T),T}o(Ue,"lex");for(var I,X,N,Ie,z={},Re,P,Ve,fe;;){if(X=r[r.length-1],this.defaultActions[X]?N=this.defaultActions[X]:((I===null||typeof I>"u")&&(I=Ue()),N=S[X]&&S[X][I]),typeof N>"u"||!N.length||!N[0]){var Te="";fe=[];for(Re in S[X])this.terminals_[Re]&&Re>Qe&&fe.push("'"+this.terminals_[Re]+"'");_.showPosition?Te="Parse error on line "+(de+1)+`:
1
+ import{d as je}from"./chunk-55IACEB6-BFlfi8hV-BGJXNzLC.js";import{d as Ge}from"./chunk-QN33PNHL-DF3LkPOs-IyOxcAL-.js";import{I as o,u as Xe,d as ze,h as Ze,p as Je,A as et,C as tt,g as ke,O as Ne,G as st,J as it,w as rt,y as nt,z as at}from"./index-DiPXXjl1.js";var Ce=function(){var e=o(function(F,i,r,s){for(r=r||{},s=F.length;s--;r[F[s]]=i);return r},"o"),p=[1,3],h=[1,4],c=[1,5],a=[1,6],m=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],f=[1,22],l=[2,7],u=[1,26],g=[1,27],b=[1,28],C=[1,29],A=[1,33],q=[1,34],v=[1,35],L=[1,36],O=[1,37],x=[1,38],w=[1,24],D=[1,31],M=[1,32],$=[1,30],d=[1,39],R=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],z=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],me=[27,29],qe=[1,70],ve=[1,71],Le=[1,72],Oe=[1,73],xe=[1,74],we=[1,75],De=[1,76],J=[1,83],V=[1,80],ee=[1,84],te=[1,85],se=[1,86],ie=[1,87],re=[1,88],ne=[1,89],ae=[1,90],le=[1,91],ce=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],k=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],oe=[1,116],he=[1,117],ue=[1,114],ye=[1,115],_e={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:o(function(F,i,r,s,y,t,S){var n=t.length-1;switch(y){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:p,9:h,11:c,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:p,9:h,11:c,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(m,[2,6]),{3:12,4:2,6:p,9:h,11:c,13:a},{1:[2,2]},{4:17,5:f,7:13,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},e(m,[2,4]),e(m,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:f,7:42,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:43,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:44,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:45,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:46,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:47,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:48,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:49,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{4:17,5:f,7:50,8:l,9:h,11:c,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:u,22:g,23:b,24:C,25:23,33:25,41:A,42:q,43:v,44:L,45:O,46:x,54:w,72:D,74:M,77:$,89:d,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:U,89:d,90:R},{30:63,33:62,75:U,89:d,90:R},{30:64,33:62,75:U,89:d,90:R},e(z,[2,29]),e(z,[2,30]),e(z,[2,31]),e(z,[2,32]),e(z,[2,33]),e(z,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(me,[2,79]),e(me,[2,80]),{27:[1,67],29:[1,68]},e(me,[2,85]),e(me,[2,86]),{62:69,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{62:77,65:qe,66:ve,67:Le,68:Oe,69:xe,70:we,71:De},{30:78,33:62,75:U,89:d,90:R},{73:79,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:J,76:V,78:81,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},{30:94,33:62,75:U,76:V,89:d,90:R},{5:[1,95]},{30:96,33:62,75:U,89:d,90:R},{5:[1,97]},{30:98,33:62,75:U,89:d,90:R},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(E,[2,59],{76:V}),e(E,[2,64],{76:Me}),{33:103,75:[1,102],89:d,90:R},e($e,[2,65],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),e(k,[2,67]),e(k,[2,69]),e(k,[2,70]),e(k,[2,71]),e(k,[2,72]),e(k,[2,73]),e(k,[2,74]),e(k,[2,75]),e(k,[2,76]),e(k,[2,77]),e(k,[2,78]),e(E,[2,57],{76:Me}),e(E,[2,58],{76:V}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:V},{5:oe,40:he,56:113,57:ue,59:ye},{27:[1,118],76:V},{33:119,89:d,90:R},{33:120,89:d,90:R},{75:J,78:121,79:82,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce},e(pe,[2,61]),e(pe,[2,63]),e(k,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:oe,40:he,56:130,57:ue,59:ye},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e($e,[2,66],{79:104,75:J,80:ee,81:te,82:se,83:ie,84:re,85:ne,86:ae,87:le,88:ce}),{33:132,89:d,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:oe,40:he,56:152,57:ue,59:ye},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:oe,40:he,56:163,57:ue,59:ye},{5:oe,40:he,56:164,57:ue,59:ye},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:o(function(F,i){if(i.recoverable)this.trace(F);else{var r=new Error(F);throw r.hash=i,r}},"parseError"),parse:o(function(F){var i=this,r=[0],s=[],y=[null],t=[],S=this.table,n="",de=0,Fe=0,Qe=2,Pe=1,He=t.slice.call(arguments,1),_=Object.create(this.lexer),G={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(G.yy[ge]=this.yy[ge]);_.setInput(F,G.yy),G.yy.lexer=_,G.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Se=_.yylloc;t.push(Se);var Ke=_.options&&_.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function We(T){r.length=r.length-2*T,y.length=y.length-T,t.length=t.length-T}o(We,"popStack");function Ue(){var T;return T=s.pop()||_.lex()||Pe,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=i.symbols_[T]||T),T}o(Ue,"lex");for(var I,X,N,Ie,Z={},Re,P,Ve,fe;;){if(X=r[r.length-1],this.defaultActions[X]?N=this.defaultActions[X]:((I===null||typeof I>"u")&&(I=Ue()),N=S[X]&&S[X][I]),typeof N>"u"||!N.length||!N[0]){var Te="";fe=[];for(Re in S[X])this.terminals_[Re]&&Re>Qe&&fe.push("'"+this.terminals_[Re]+"'");_.showPosition?Te="Parse error on line "+(de+1)+`:
2
2
  `+_.showPosition()+`
3
- Expecting `+fe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(de+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:_.match,token:this.terminals_[I]||I,line:_.yylineno,loc:Se,expected:fe})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+I);switch(N[0]){case 1:r.push(I),y.push(_.yytext),t.push(_.yylloc),r.push(N[1]),I=null,Fe=_.yyleng,n=_.yytext,de=_.yylineno,Se=_.yylloc;break;case 2:if(P=this.productions_[N[1]][1],z.$=y[y.length-P],z._$={first_line:t[t.length-(P||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(P||1)].first_column,last_column:t[t.length-1].last_column},Ke&&(z._$.range=[t[t.length-(P||1)].range[0],t[t.length-1].range[1]]),Ie=this.performAction.apply(z,[n,Fe,de,G.yy,N[1],y,t].concat(He)),typeof Ie<"u")return Ie;P&&(r=r.slice(0,-1*P*2),y=y.slice(0,-1*P),t=t.slice(0,-1*P)),r.push(this.productions_[N[1]][0]),y.push(z.$),t.push(z._$),Ve=S[r[r.length-2]][r[r.length-1]],r.push(Ve);break;case 3:return!0}}return!0},"parse")},Be=function(){var F={EOF:1,parseError:o(function(i,r){if(this.yy.parser)this.yy.parser.parseError(i,r);else throw new Error(i)},"parseError"),setInput:o(function(i,r){return this.yy=r||this.yy||{},this._input=i,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:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var r=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var t=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:s?(s.length===y.length?this.yylloc.first_column:0)+y[y.length-s.length].length-s[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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).
3
+ Expecting `+fe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(de+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:_.match,token:this.terminals_[I]||I,line:_.yylineno,loc:Se,expected:fe})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+I);switch(N[0]){case 1:r.push(I),y.push(_.yytext),t.push(_.yylloc),r.push(N[1]),I=null,Fe=_.yyleng,n=_.yytext,de=_.yylineno,Se=_.yylloc;break;case 2:if(P=this.productions_[N[1]][1],Z.$=y[y.length-P],Z._$={first_line:t[t.length-(P||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(P||1)].first_column,last_column:t[t.length-1].last_column},Ke&&(Z._$.range=[t[t.length-(P||1)].range[0],t[t.length-1].range[1]]),Ie=this.performAction.apply(Z,[n,Fe,de,G.yy,N[1],y,t].concat(He)),typeof Ie<"u")return Ie;P&&(r=r.slice(0,-1*P*2),y=y.slice(0,-1*P),t=t.slice(0,-1*P)),r.push(this.productions_[N[1]][0]),y.push(Z.$),t.push(Z._$),Ve=S[r[r.length-2]][r[r.length-1]],r.push(Ve);break;case 3:return!0}}return!0},"parse")},Be=function(){var F={EOF:1,parseError:o(function(i,r){if(this.yy.parser)this.yy.parser.parseError(i,r);else throw new Error(i)},"parseError"),setInput:o(function(i,r){return this.yy=r||this.yy||{},this._input=i,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:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var r=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var t=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:s?(s.length===y.length?this.yylloc.first_column:0)+y[y.length-s.length].length-s[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[t[0],t[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
5
  `+r+"^"},"showPosition"),test_match:o(function(i,r){var s,y,t;if(this.options.backtrack_lexer&&(t={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&&(t.yylloc.range=this.yylloc.range.slice(0))),y=i[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,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(i[0].length),this.matched+=i[0],s=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var S in t)this[S]=t[S];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,s,y;this._more||(this.yytext="",this.match="");for(var t=this._currentRules(),S=0;S<t.length;S++)if(s=this._input.match(this.rules[t[S]]),s&&(!r||s[0].length>r[0].length)){if(r=s,y=S,this.options.backtrack_lexer){if(i=this.test_match(s,t[S]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,t[y]),i!==!1?i:!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:o(function(){var i=this.next();return i||this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(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:o(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:o(function(i){this.begin(i)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(i,r,s,y){switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return r.yytext=r.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return F}();_e.lexer=Be;function pe(){this.yy={}}return o(pe,"Parser"),pe.prototype=_e,_e.Parser=pe,new pe}();Ce.parser=Ce;var lt=Ce,be,ct=(be=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=Xe,this.getAccTitle=Ze,this.setAccDescription=ze,this.getAccDescription=Je,this.setDiagramTitle=et,this.getDiagramTitle=tt,this.getConfig=o(()=>ke().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,E){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:E,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),Ne.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,E,h){this.relations.push({type:e,src:E,dst:h})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,st()}setCssStyle(e,E){for(const h of e){const c=this.requirements.get(h)??this.elements.get(h);if(!E||!c)return;for(const a of E)a.includes(",")?c.cssStyles.push(...a.split(",")):c.cssStyles.push(a)}}setClass(e,E){var h;for(const c of e){const a=this.requirements.get(c)??this.elements.get(c);if(a)for(const m of E){a.classes.push(m);const f=(h=this.classes.get(m))==null?void 0:h.styles;f&&a.cssStyles.push(...f)}}}defineClass(e,E){for(const h of e){let c=this.classes.get(h);c===void 0&&(c={id:h,styles:[],textStyles:[]},this.classes.set(h,c)),E&&E.forEach(function(a){if(/color/.exec(a)){const m=a.replace("fill","bgFill");c.textStyles.push(m)}c.styles.push(a)}),this.requirements.forEach(a=>{a.classes.includes(h)&&a.cssStyles.push(...E.flatMap(m=>m.split(",")))}),this.elements.forEach(a=>{a.classes.includes(h)&&a.cssStyles.push(...E.flatMap(m=>m.split(",")))})}}getClasses(){return this.classes}getData(){var e,E,h,c;const a=ke(),m=[],f=[];for(const l of this.requirements.values()){const u=l;u.id=l.name,u.cssStyles=l.cssStyles,u.cssClasses=l.classes.join(" "),u.shape="requirementBox",u.look=a.look,m.push(u)}for(const l of this.elements.values()){const u=l;u.shape="requirementBox",u.look=a.look,u.id=l.name,u.cssStyles=l.cssStyles,u.cssClasses=l.classes.join(" "),m.push(u)}for(const l of this.relations){let u=0;const g=l.type===this.Relationships.CONTAINS,b={id:`${l.src}-${l.dst}-${u}`,start:((e=this.requirements.get(l.src))==null?void 0:e.name)??((E=this.elements.get(l.src))==null?void 0:E.name),end:((h=this.requirements.get(l.dst))==null?void 0:h.name)??((c=this.elements.get(l.dst))==null?void 0:c.name),label:`&lt;&lt;${l.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",g?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:g?"normal":"dashed",arrowTypeStart:g?"requirement_contains":"",arrowTypeEnd:g?"":"requirement_arrow",look:a.look};f.push(b),u++}return{nodes:m,edges:f,other:{},config:a,direction:this.getDirection()}}},o(be,"RequirementDB"),be),ot=o(e=>`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return i||this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){var i=this.conditionStack.length-1;return i>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(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:o(function(i){return i=this.conditionStack.length-1-Math.abs(i||0),i>=0?this.conditionStack[i]:"INITIAL"},"topState"),pushState:o(function(i){this.begin(i)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(i,r,s,y){switch(s){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return r.yytext=r.yytext.trim(),89;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return F}();_e.lexer=Be;function Ee(){this.yy={}}return o(Ee,"Parser"),Ee.prototype=_e,_e.Parser=Ee,new Ee}();Ce.parser=Ce;var lt=Ce,be,ct=(be=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=Xe,this.getAccTitle=ze,this.setAccDescription=Ze,this.getAccDescription=Je,this.setDiagramTitle=et,this.getDiagramTitle=tt,this.getConfig=o(()=>ke().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,p){return this.requirements.has(e)||this.requirements.set(e,{name:e,type:p,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){this.latestRequirement!==void 0&&(this.latestRequirement.requirementId=e)}setNewReqText(e){this.latestRequirement!==void 0&&(this.latestRequirement.text=e)}setNewReqRisk(e){this.latestRequirement!==void 0&&(this.latestRequirement.risk=e)}setNewReqVerifyMethod(e){this.latestRequirement!==void 0&&(this.latestRequirement.verifyMethod=e)}addElement(e){return this.elements.has(e)||(this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),Ne.info("Added new element: ",e)),this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){this.latestElement!==void 0&&(this.latestElement.type=e)}setNewElementDocRef(e){this.latestElement!==void 0&&(this.latestElement.docRef=e)}addRelationship(e,p,h){this.relations.push({type:e,src:p,dst:h})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,st()}setCssStyle(e,p){for(const h of e){const c=this.requirements.get(h)??this.elements.get(h);if(!p||!c)return;for(const a of p)a.includes(",")?c.cssStyles.push(...a.split(",")):c.cssStyles.push(a)}}setClass(e,p){var h;for(const c of e){const a=this.requirements.get(c)??this.elements.get(c);if(a)for(const m of p){a.classes.push(m);const f=(h=this.classes.get(m))==null?void 0:h.styles;f&&a.cssStyles.push(...f)}}}defineClass(e,p){for(const h of e){let c=this.classes.get(h);c===void 0&&(c={id:h,styles:[],textStyles:[]},this.classes.set(h,c)),p&&p.forEach(function(a){if(/color/.exec(a)){const m=a.replace("fill","bgFill");c.textStyles.push(m)}c.styles.push(a)}),this.requirements.forEach(a=>{a.classes.includes(h)&&a.cssStyles.push(...p.flatMap(m=>m.split(",")))}),this.elements.forEach(a=>{a.classes.includes(h)&&a.cssStyles.push(...p.flatMap(m=>m.split(",")))})}}getClasses(){return this.classes}getData(){var e,p,h,c;const a=ke(),m=[],f=[];for(const l of this.requirements.values()){const u=l;u.id=l.name,u.cssStyles=l.cssStyles,u.cssClasses=l.classes.join(" "),u.shape="requirementBox",u.look=a.look,m.push(u)}for(const l of this.elements.values()){const u=l;u.shape="requirementBox",u.look=a.look,u.id=l.name,u.cssStyles=l.cssStyles,u.cssClasses=l.classes.join(" "),m.push(u)}for(const l of this.relations){let u=0;const g=l.type===this.Relationships.CONTAINS,b={id:`${l.src}-${l.dst}-${u}`,start:((e=this.requirements.get(l.src))==null?void 0:e.name)??((p=this.elements.get(l.src))==null?void 0:p.name),end:((h=this.requirements.get(l.dst))==null?void 0:h.name)??((c=this.elements.get(l.dst))==null?void 0:c.name),label:`&lt;&lt;${l.type}&gt;&gt;`,classes:"relationshipLine",style:["fill:none",g?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:g?"normal":"dashed",arrowTypeStart:g?"requirement_contains":"",arrowTypeEnd:g?"":"requirement_arrow",look:a.look};f.push(b),u++}return{nodes:m,edges:f,other:{},config:a,direction:this.getDirection()}}},o(be,"RequirementDB"),be),ot=o(e=>`
7
7
 
8
8
  marker {
9
9
  fill: ${e.relationColor};
@@ -61,4 +61,4 @@ Expecting `+fe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error
61
61
  background-color: ${e.edgeLabelBackground};
62
62
  }
63
63
 
64
- `,"getStyles"),ht=ot,Ye={};it(Ye,{draw:()=>ut});var ut=o(async function(e,E,h,c){Ne.info("REF0:"),Ne.info("Drawing requirement diagram (unified)",E);const{securityLevel:a,state:m,layout:f}=ke(),l=c.db.getData(),u=We(E,a);l.type=c.type,l.layoutAlgorithm=rt(f),l.nodeSpacing=(m==null?void 0:m.nodeSpacing)??50,l.rankSpacing=(m==null?void 0:m.rankSpacing)??50,l.markers=["requirement_contains","requirement_arrow"],l.diagramId=E,await nt(l,u),at.insertTitle(u,"requirementDiagramTitleText",(m==null?void 0:m.titleTopMargin)??25,c.db.getDiagramTitle()),Ge(u,8,"requirementDiagram",(m==null?void 0:m.useMaxWidth)??!0)},"draw"),pt={parser:lt,get db(){return new ct},renderer:Ye,styles:ht};export{pt as diagram};
64
+ `,"getStyles"),ht=ot,Ye={};it(Ye,{draw:()=>ut});var ut=o(async function(e,p,h,c){Ne.info("REF0:"),Ne.info("Drawing requirement diagram (unified)",p);const{securityLevel:a,state:m,layout:f}=ke(),l=c.db.getData(),u=je(p,a);l.type=c.type,l.layoutAlgorithm=rt(f),l.nodeSpacing=(m==null?void 0:m.nodeSpacing)??50,l.rankSpacing=(m==null?void 0:m.rankSpacing)??50,l.markers=["requirement_contains","requirement_arrow"],l.diagramId=p,await nt(l,u),at.insertTitle(u,"requirementDiagramTitleText",(m==null?void 0:m.titleTopMargin)??25,c.db.getDiagramTitle()),Ge(u,8,"requirementDiagram",(m==null?void 0:m.useMaxWidth)??!0)},"draw"),Et={parser:lt,get db(){return new ct},renderer:Ye,styles:ht};export{Et as diagram};