@spteck/react-controls-v2 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/{_arrayEach-BtnPcZvU.cjs → _arrayEach-DBvjR1ge.cjs} +2 -2
  2. package/dist/{_arrayEach-8mS77K-T.js → _arrayEach-DKae2bvp.js} +2 -2
  3. package/dist/abstractions/IBrandCenterFonts.d.ts +74 -3
  4. package/dist/{arc-5yDizpVi.js → arc-BxA6Yg5_.js} +2 -2
  5. package/dist/{arc-CHX8tzAa.cjs → arc-iq0incG2.cjs} +2 -2
  6. package/dist/{architecture-7HQA4BMR-C5SMaY7N.cjs → architecture-7HQA4BMR-BV5Wih0x.cjs} +2 -2
  7. package/dist/architecture-7HQA4BMR-ClndFXiy.js +6 -0
  8. package/dist/{architectureDiagram-VXUJARFQ-aOTrDewq.js → architectureDiagram-VXUJARFQ-Qlis18u8.js} +4 -4
  9. package/dist/{architectureDiagram-VXUJARFQ-BGkw31EW.cjs → architectureDiagram-VXUJARFQ-idhniCOT.cjs} +2 -2
  10. package/dist/{blockDiagram-VD42YOAC-B-_xQI8-.cjs → blockDiagram-VD42YOAC-3JpJsqTW.cjs} +2 -2
  11. package/dist/{blockDiagram-VD42YOAC-BmLAe2UB.js → blockDiagram-VD42YOAC-DBPKc5Mp.js} +5 -5
  12. package/dist/{c4Diagram-YG6GDRKO-B-1eU6OG.cjs → c4Diagram-YG6GDRKO-bFh-ym0I.cjs} +2 -2
  13. package/dist/{c4Diagram-YG6GDRKO-BLrKS_53.js → c4Diagram-YG6GDRKO-bZ0lq-1j.js} +3 -3
  14. package/dist/channel-COiQ5BLW.cjs +2 -0
  15. package/dist/{channel-BlDl0fWH.js → channel-o3CxcuKH.js} +2 -2
  16. package/dist/{chunk-4BX2VUAB-BPQfw6VK.cjs → chunk-4BX2VUAB-ChffNeve.cjs} +2 -2
  17. package/dist/{chunk-4BX2VUAB-BhTmbZ0P.js → chunk-4BX2VUAB-FrHmkgoD.js} +2 -2
  18. package/dist/{chunk-55IACEB6-BFvNZWL0.js → chunk-55IACEB6-B20avCOS.js} +2 -2
  19. package/dist/{chunk-55IACEB6-CBWgQHsL.cjs → chunk-55IACEB6-CWMSWgS5.cjs} +2 -2
  20. package/dist/{chunk-B4BG7PRW-CqAtQU-I.js → chunk-B4BG7PRW-1JkjmMxQ.js} +5 -5
  21. package/dist/{chunk-B4BG7PRW-so74-wMy.cjs → chunk-B4BG7PRW-DHxN3AGv.cjs} +2 -2
  22. package/dist/{chunk-DI55MBZ5-BhxfU0Wh.cjs → chunk-DI55MBZ5-BHiUtZoK.cjs} +2 -2
  23. package/dist/{chunk-DI55MBZ5-BdBqxSCP.js → chunk-DI55MBZ5-Cekk--Cm.js} +4 -4
  24. package/dist/{chunk-FMBD7UC4-BQChMkqq.cjs → chunk-FMBD7UC4-AWB24rK9.cjs} +2 -2
  25. package/dist/{chunk-FMBD7UC4-CCEhBtde.js → chunk-FMBD7UC4-Bgpu0FwP.js} +2 -2
  26. package/dist/{chunk-QN33PNHL-DptvB12p.cjs → chunk-QN33PNHL-BDQd2juq.cjs} +2 -2
  27. package/dist/{chunk-QN33PNHL-C6wEvbod.js → chunk-QN33PNHL-GOKY5hea.js} +2 -2
  28. package/dist/{chunk-QZHKN3VN-CWjhIJ4p.js → chunk-QZHKN3VN-DXRnlHEw.js} +2 -2
  29. package/dist/{chunk-QZHKN3VN-BwPGFWEQ.cjs → chunk-QZHKN3VN-DrSljM5O.cjs} +2 -2
  30. package/dist/{chunk-TZMSLE5B-BulfQyEg.js → chunk-TZMSLE5B-BERoVTPQ.js} +2 -2
  31. package/dist/{chunk-TZMSLE5B-Md78hDFm.cjs → chunk-TZMSLE5B-CxGg52ib.cjs} +2 -2
  32. package/dist/{classDiagram-2ON5EDUG-CZEKavO0.cjs → classDiagram-2ON5EDUG-BPjkW57C.cjs} +2 -2
  33. package/dist/{classDiagram-2ON5EDUG-DBkePYfg.js → classDiagram-2ON5EDUG-DPTzQt7M.js} +3 -3
  34. package/dist/{classDiagram-v2-WZHVMYZB-CZEKavO0.cjs → classDiagram-v2-WZHVMYZB-BPjkW57C.cjs} +2 -2
  35. package/dist/{classDiagram-v2-WZHVMYZB-DBkePYfg.js → classDiagram-v2-WZHVMYZB-DPTzQt7M.js} +3 -3
  36. package/dist/{cose-bilkent-S5V4N54A-ZBFo9U8K.js → cose-bilkent-S5V4N54A-BCPhea22.js} +2 -2
  37. package/dist/{cose-bilkent-S5V4N54A-CKKVaKER.cjs → cose-bilkent-S5V4N54A-C6osVExR.cjs} +2 -2
  38. package/dist/{dagre-6UL2VRFP-B0QLpgAH.cjs → dagre-6UL2VRFP-D6NU_G7J.cjs} +2 -2
  39. package/dist/{dagre-6UL2VRFP-gVFAp2xo.js → dagre-6UL2VRFP-DF87v2SP.js} +2 -2
  40. package/dist/{diagram-PSM6KHXK-B8PzNDiz.cjs → diagram-PSM6KHXK-BpcNw66L.cjs} +2 -2
  41. package/dist/{diagram-PSM6KHXK-BgpltQW9.js → diagram-PSM6KHXK-DMBrza7v.js} +5 -5
  42. package/dist/{diagram-QEK2KX5R-BSfzwv7M.cjs → diagram-QEK2KX5R-Bokx4-2m.cjs} +2 -2
  43. package/dist/{diagram-QEK2KX5R-B59l1ou-.js → diagram-QEK2KX5R-DXPwxq0x.js} +4 -4
  44. package/dist/{diagram-S2PKOQOG-Bk91GOvc.cjs → diagram-S2PKOQOG-5Lk7Jvxw.cjs} +2 -2
  45. package/dist/{diagram-S2PKOQOG-CcfpCRwG.js → diagram-S2PKOQOG-BML4CSFv.js} +4 -4
  46. package/dist/{erDiagram-Q2GNP2WA-BD25OJ7l.cjs → erDiagram-Q2GNP2WA-C0YzWGzs.cjs} +2 -2
  47. package/dist/{erDiagram-Q2GNP2WA-lrJ1SGpr.js → erDiagram-Q2GNP2WA-DtyOHj8U.js} +5 -5
  48. package/dist/{flowDiagram-NV44I4VS-Df1uvtZp.js → flowDiagram-NV44I4VS-8LGULBMT.js} +6 -6
  49. package/dist/{flowDiagram-NV44I4VS-DpxYrjDI.cjs → flowDiagram-NV44I4VS-D9Ha29xd.cjs} +2 -2
  50. package/dist/{ganttDiagram-JELNMOA3-CTXqXyUF.js → ganttDiagram-JELNMOA3-BTIJYy7v.js} +3 -3
  51. package/dist/{ganttDiagram-JELNMOA3-BuEjfD0h.cjs → ganttDiagram-JELNMOA3-BfA1s6s8.cjs} +2 -2
  52. package/dist/gitGraph-G5XIXVHT-4SUZU9x4.js +6 -0
  53. package/dist/{gitGraph-G5XIXVHT-BWFVrIFT.cjs → gitGraph-G5XIXVHT-CJquxsrP.cjs} +2 -2
  54. package/dist/{gitGraphDiagram-V2S2FVAM-BEAiApuY.js → gitGraphDiagram-V2S2FVAM-BDuvfgFm.js} +5 -5
  55. package/dist/{gitGraphDiagram-V2S2FVAM-Bjrr2nre.cjs → gitGraphDiagram-V2S2FVAM-DgaiLSV0.cjs} +2 -2
  56. package/dist/hooks/useBrandCenterFonts.d.ts +3 -1
  57. package/dist/{index-CAoOhLkP.cjs → index-DBmfYPjr.cjs} +33 -33
  58. package/dist/{index-vFWWvdca.js → index-r6bYN_1a.js} +177 -58
  59. package/dist/index.cjs +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/info-VBDWY6EO-ChLOw2tm.js +6 -0
  62. package/dist/{info-VBDWY6EO-YkPxeRZ-.cjs → info-VBDWY6EO-hYQZ7BB0.cjs} +2 -2
  63. package/dist/{infoDiagram-HS3SLOUP-DHcFj6RC.cjs → infoDiagram-HS3SLOUP-CbvZczcy.cjs} +2 -2
  64. package/dist/{infoDiagram-HS3SLOUP-DPo4m3Oc.js → infoDiagram-HS3SLOUP-FP_yig69.js} +3 -3
  65. package/dist/{journeyDiagram-XKPGCS4Q-B5mteNXQ.cjs → journeyDiagram-XKPGCS4Q-CEFFFkKd.cjs} +2 -2
  66. package/dist/{journeyDiagram-XKPGCS4Q-yOgvceJk.js → journeyDiagram-XKPGCS4Q-CiJ6zb1i.js} +5 -5
  67. package/dist/{kanban-definition-3W4ZIXB7-B2LjQzC5.js → kanban-definition-3W4ZIXB7-CGmr8XfQ.js} +3 -3
  68. package/dist/{kanban-definition-3W4ZIXB7-BJdCPi_F.cjs → kanban-definition-3W4ZIXB7-DCwMWi3p.cjs} +2 -2
  69. package/dist/{linear-DHjw4hvs.cjs → linear-D8E_synt.cjs} +2 -2
  70. package/dist/{linear-BI5TRYfw.js → linear-DnGQibMg.js} +2 -2
  71. package/dist/{maplibre-gl-BAtlodKY.js → maplibre-gl-dCwYGQU4.js} +2 -2
  72. package/dist/{maplibre-gl-BOvA2Ll0.cjs → maplibre-gl-pYF_ngpG.cjs} +2 -2
  73. package/dist/{mermaid-parser.core-or1HXQYP.js → mermaid-parser.core-CWz1o5JP.js} +10 -10
  74. package/dist/{mermaid-parser.core-BQzkWune.cjs → mermaid-parser.core-DDF0ccOL.cjs} +2 -2
  75. package/dist/{mindmap-definition-VGOIOE7T-BX31I3PY.js → mindmap-definition-VGOIOE7T-C5MXjRc9.js} +4 -4
  76. package/dist/{mindmap-definition-VGOIOE7T-BPCXwiSh.cjs → mindmap-definition-VGOIOE7T-FjKtYkWd.cjs} +2 -2
  77. package/dist/{packet-DYOGHKS2-ClruFccz.cjs → packet-DYOGHKS2-D1v8Vy1g.cjs} +2 -2
  78. package/dist/packet-DYOGHKS2-gRUdnnSs.js +6 -0
  79. package/dist/pie-VRWISCQL-Bvcic2Eu.js +6 -0
  80. package/dist/{pie-VRWISCQL-DUiOByGp.cjs → pie-VRWISCQL-DmeMueEW.cjs} +2 -2
  81. package/dist/{pieDiagram-ADFJNKIX-CL_8VDsb.js → pieDiagram-ADFJNKIX-6fWPR7Ls.js} +5 -5
  82. package/dist/{pieDiagram-ADFJNKIX-OI8gruuh.cjs → pieDiagram-ADFJNKIX-Cvyyoe7M.cjs} +2 -2
  83. package/dist/{quadrantDiagram-AYHSOK5B-iD_dxfNt.js → quadrantDiagram-AYHSOK5B-BgXQivu3.js} +3 -3
  84. package/dist/{quadrantDiagram-AYHSOK5B-DjOcdqwN.cjs → quadrantDiagram-AYHSOK5B-CwDe4KwO.cjs} +2 -2
  85. package/dist/{radar-ZZBFDIW7-KeBFLHcK.cjs → radar-ZZBFDIW7-DO0muZs0.cjs} +2 -2
  86. package/dist/radar-ZZBFDIW7-DkPYS2s4.js +6 -0
  87. package/dist/{requirementDiagram-UZGBJVZJ-DQbSltZv.js → requirementDiagram-UZGBJVZJ-CeIJ08b_.js} +4 -4
  88. package/dist/{requirementDiagram-UZGBJVZJ-CoPWc6eZ.cjs → requirementDiagram-UZGBJVZJ-z39KmEdg.cjs} +2 -2
  89. package/dist/{sankeyDiagram-TZEHDZUN-yGUhPXDs.cjs → sankeyDiagram-TZEHDZUN-B9TuJmd0.cjs} +2 -2
  90. package/dist/{sankeyDiagram-TZEHDZUN-4xAWn_AO.js → sankeyDiagram-TZEHDZUN-DmMl4azI.js} +2 -2
  91. package/dist/{sequenceDiagram-WL72ISMW-BCilDg3f.js → sequenceDiagram-WL72ISMW-CcjLhIox.js} +4 -4
  92. package/dist/{sequenceDiagram-WL72ISMW-CQFu5gn5.cjs → sequenceDiagram-WL72ISMW-ChX1PErX.cjs} +2 -2
  93. package/dist/{stateDiagram-FKZM4ZOC-BKlriLiy.cjs → stateDiagram-FKZM4ZOC-DNXrTtku.cjs} +2 -2
  94. package/dist/{stateDiagram-FKZM4ZOC-DTQxNxM0.js → stateDiagram-FKZM4ZOC-zQUhlqIe.js} +3 -3
  95. package/dist/{stateDiagram-v2-4FDKWEC3-C3-DQJ_j.cjs → stateDiagram-v2-4FDKWEC3-BEegnVik.cjs} +2 -2
  96. package/dist/{stateDiagram-v2-4FDKWEC3-BS-Rbuf4.js → stateDiagram-v2-4FDKWEC3-Dtg323pE.js} +3 -3
  97. package/dist/{timeline-definition-IT6M3QCI-C-6fhIAz.js → timeline-definition-IT6M3QCI-Cf4OkFlr.js} +3 -3
  98. package/dist/{timeline-definition-IT6M3QCI-BUZIaC_t.cjs → timeline-definition-IT6M3QCI-Do30fWDV.cjs} +2 -2
  99. package/dist/{treemap-GDKQZRPO-D-lYWdWn.cjs → treemap-GDKQZRPO-BecKu0FE.cjs} +2 -2
  100. package/dist/treemap-GDKQZRPO-CoIiWGS-.js +6 -0
  101. package/dist/{xychartDiagram-PRI3JC2R-DPXNUchU.cjs → xychartDiagram-PRI3JC2R-haWlXFUn.cjs} +2 -2
  102. package/dist/{xychartDiagram-PRI3JC2R-DV2aHw-9.js → xychartDiagram-PRI3JC2R-zMeDgcPs.js} +3 -3
  103. package/package.json +1 -1
  104. package/dist/architecture-7HQA4BMR-QRAO6LZs.js +0 -6
  105. package/dist/channel-CavBJovq.cjs +0 -2
  106. package/dist/gitGraph-G5XIXVHT-CQDP2vEd.js +0 -6
  107. package/dist/info-VBDWY6EO-QvquFFhY.js +0 -6
  108. package/dist/packet-DYOGHKS2-Bse7YjBO.js +0 -6
  109. package/dist/pie-VRWISCQL-Q3eU4qER.js +0 -6
  110. package/dist/radar-ZZBFDIW7-e5irSdhY.js +0 -6
  111. package/dist/treemap-GDKQZRPO-DYKBo0ui.js +0 -6
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-DI55MBZ5-BhxfU0Wh.cjs"),e=require("./index-CAoOhLkP.cjs");require("lodash-es");const a=require("./layout-D6yO7DzL.cjs"),i=require("./graph-C7xixGrW.cjs");var n,g=e.__name(t=>t.append("circle").attr("class","start-state").attr("r",e.getConfig2().state.sizeUnit).attr("cx",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit).attr("cy",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit),"drawStartState"),o=e.__name(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",e.getConfig2().state.textHeight).attr("class","divider").attr("x2",2*e.getConfig2().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),r=e.__name((t,a)=>{const i=t.append("text").attr("x",2*e.getConfig2().state.padding).attr("y",e.getConfig2().state.textHeight+2*e.getConfig2().state.padding).attr("font-size",e.getConfig2().state.fontSize).attr("class","state-title").text(a.id),n=i.node().getBBox();return t.insert("rect",":first-child").attr("x",e.getConfig2().state.padding).attr("y",e.getConfig2().state.padding).attr("width",n.width+2*e.getConfig2().state.padding).attr("height",n.height+2*e.getConfig2().state.padding).attr("rx",e.getConfig2().state.radius),i},"drawSimpleState"),d=e.__name((t,a)=>{const i=e.__name(function(t,a,i){const n=t.append("tspan").attr("x",2*e.getConfig2().state.padding).text(a);i||n.attr("dy",e.getConfig2().state.textHeight)},"addTspan"),n=t.append("text").attr("x",2*e.getConfig2().state.padding).attr("y",e.getConfig2().state.textHeight+1.3*e.getConfig2().state.padding).attr("font-size",e.getConfig2().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),g=n.height,o=t.append("text").attr("x",e.getConfig2().state.padding).attr("y",g+.4*e.getConfig2().state.padding+e.getConfig2().state.dividerMargin+e.getConfig2().state.textHeight).attr("class","state-description");let r=!0,d=!0;a.descriptions.forEach(function(t){r||(i(o,t,d),d=!1),r=!1});const s=t.append("line").attr("x1",e.getConfig2().state.padding).attr("y1",e.getConfig2().state.padding+g+e.getConfig2().state.dividerMargin/2).attr("y2",e.getConfig2().state.padding+g+e.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),f=o.node().getBBox(),l=Math.max(f.width,n.width);return s.attr("x2",l+3*e.getConfig2().state.padding),t.insert("rect",":first-child").attr("x",e.getConfig2().state.padding).attr("y",e.getConfig2().state.padding).attr("width",l+2*e.getConfig2().state.padding).attr("height",f.height+g+2*e.getConfig2().state.padding).attr("rx",e.getConfig2().state.radius),t},"drawDescrState"),s=e.__name((t,a,i)=>{const n=e.getConfig2().state.padding,g=2*e.getConfig2().state.padding,o=t.node().getBBox(),r=o.width,d=o.x,s=t.append("text").attr("x",0).attr("y",e.getConfig2().state.titleShift).attr("font-size",e.getConfig2().state.fontSize).attr("class","state-title").text(a.id),f=s.node().getBBox().width+g;let l,c=Math.max(f,r);c===r&&(c+=g);const p=t.node().getBBox();a.doc,l=d-n,f>r&&(l=(r-c)/2+n),Math.abs(d-p.x)<n&&f>r&&(l=d-(f-r)/2);const h=1-e.getConfig2().state.textHeight;return t.insert("rect",":first-child").attr("x",l).attr("y",h).attr("class",i?"alt-composit":"composit").attr("width",c).attr("height",p.height+e.getConfig2().state.textHeight+e.getConfig2().state.titleShift+1).attr("rx","0"),s.attr("x",l+n),f<=r&&s.attr("x",d+(c-g)/2-f/2+n),t.insert("rect",":first-child").attr("x",l).attr("y",e.getConfig2().state.titleShift-e.getConfig2().state.textHeight-e.getConfig2().state.padding).attr("width",c).attr("height",3*e.getConfig2().state.textHeight).attr("rx",e.getConfig2().state.radius),t.insert("rect",":first-child").attr("x",l).attr("y",e.getConfig2().state.titleShift-e.getConfig2().state.textHeight-e.getConfig2().state.padding).attr("width",c).attr("height",p.height+3+2*e.getConfig2().state.textHeight).attr("rx",e.getConfig2().state.radius),t},"addTitleAndBox"),f=e.__name(t=>(t.append("circle").attr("class","end-state-outer").attr("r",e.getConfig2().state.sizeUnit+e.getConfig2().state.miniPadding).attr("cx",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit+e.getConfig2().state.miniPadding).attr("cy",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit+e.getConfig2().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",e.getConfig2().state.sizeUnit).attr("cx",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit+2).attr("cy",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit+2)),"drawEndState"),l=e.__name((t,a)=>{let i=e.getConfig2().state.forkWidth,n=e.getConfig2().state.forkHeight;if(a.parentId){let t=i;i=n,n=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",i).attr("height",n).attr("x",e.getConfig2().state.padding).attr("y",e.getConfig2().state.padding)},"drawForkJoinState"),c=e.__name((t,a,i,n)=>{let g=0;const o=n.append("text");o.style("text-anchor","start"),o.attr("class","noteText");let r=t.replace(/\r\n/g,"<br/>");r=r.replace(/\n/g,"<br/>");const d=r.split(e.common_default.lineBreakRegex);let s=1.25*e.getConfig2().state.noteMargin;for(const f of d){const t=f.trim();if(t.length>0){const n=o.append("tspan");if(n.text(t),0===s){s+=n.node().getBBox().height}g+=s,n.attr("x",a+e.getConfig2().state.noteMargin),n.attr("y",i+g+1.25*e.getConfig2().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:g}},"_drawLongText"),p=e.__name((t,a)=>{a.attr("class","state-note");const i=a.append("rect").attr("x",0).attr("y",e.getConfig2().state.padding),n=a.append("g"),{textWidth:g,textHeight:o}=c(t,0,0,n);return i.attr("height",o+2*e.getConfig2().state.noteMargin),i.attr("width",g+2*e.getConfig2().state.noteMargin),i},"drawNote"),h=e.__name(function(t,a){const i=a.id,n={id:i,label:a.id,width:0,height:0},s=t.append("g").attr("id",i).attr("class","stateGroup");"start"===a.type&&g(s),"end"===a.type&&f(s),"fork"!==a.type&&"join"!==a.type||l(s,a),"note"===a.type&&p(a.note.text,s),"divider"===a.type&&o(s),"default"===a.type&&0===a.descriptions.length&&r(s,a),"default"===a.type&&a.descriptions.length>0&&d(s,a);const c=s.node().getBBox();return n.width=c.width+2*e.getConfig2().state.padding,n.height=c.height+2*e.getConfig2().state.padding,n},"drawState"),x=0,u=e.__name(function(a,i,n){const g=e.__name(function(e){switch(e){case t.StateDB.relationType.AGGREGATION:return"aggregation";case t.StateDB.relationType.EXTENSION:return"extension";case t.StateDB.relationType.COMPOSITION:return"composition";case t.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(t=>!Number.isNaN(t.y));const o=i.points,r=e.line().x(function(t){return t.x}).y(function(t){return t.y}).curve(e.curveBasis),d=a.append("path").attr("d",r(o)).attr("id","edge"+x).attr("class","transition");let s="";if(e.getConfig2().state.arrowMarkerAbsolute&&(s=e.getUrl(!0)),d.attr("marker-end","url("+s+"#"+g(t.StateDB.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const t=a.append("g").attr("class","stateLabel"),{x:g,y:o}=e.utils_default.calcLabelPosition(i.points),r=e.common_default.getRows(n.title);let d=0;const s=[];let f=0,l=0;for(let a=0;a<=r.length;a++){const i=t.append("text").attr("text-anchor","middle").text(r[a]).attr("x",g).attr("y",o+d),n=i.node().getBBox();if(f=Math.max(f,n.width),l=Math.min(l,n.x),e.log.info(n.x,g,o+d),0===d){const t=i.node().getBBox();d=t.height,e.log.info("Title height",d,o)}s.push(i)}let c=d*r.length;if(r.length>1){const t=(r.length-1)*d*.5;s.forEach((e,a)=>e.attr("y",o+a*d-t)),c=d*r.length}const p=t.node().getBBox();t.insert("rect",":first-child").attr("class","box").attr("x",g-f/2-e.getConfig2().state.padding/2).attr("y",o-c/2-e.getConfig2().state.padding/2-3.5).attr("width",f+e.getConfig2().state.padding).attr("height",c+e.getConfig2().state.padding),e.log.info(p)}x++},"drawEdge"),C={},y=e.__name(function(){},"setConf"),m=e.__name(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),w=e.__name(function(t,a,i,g){n=e.getConfig2().state;const o=e.getConfig2().securityLevel;let r;"sandbox"===o&&(r=e.select("#i"+a));const d="sandbox"===o?e.select(r.nodes()[0].contentDocument.body):e.select("body"),s="sandbox"===o?r.nodes()[0].contentDocument:document;e.log.debug("Rendering diagram "+t);const f=d.select(`[id='${a}']`);m(f);const l=g.db.getRootDoc();_(l,f,void 0,!1,d,s,g);const c=n.padding,p=f.node().getBBox(),h=p.width+2*c,x=p.height+2*c,u=1.75*h;e.configureSvgSize(f,x,u,n.useMaxWidth),f.attr("viewBox",`${p.x-n.padding} ${p.y-n.padding} `+h+" "+x)},"draw"),B=e.__name(t=>t?t.length*n.fontSizeFactor:1,"getLabelWidth"),_=e.__name((t,g,o,r,d,f,l)=>{const c=new i.Graph({compound:!0,multigraph:!0});let p,x=!0;for(p=0;p<t.length;p++)if("relation"===t[p].stmt){x=!1;break}o?c.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:n.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):c.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:n.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),c.setDefaultEdgeLabel(function(){return{}});const y=l.db.getStates(),m=l.db.getRelations(),w=Object.keys(y);for(const e of w){const t=y[e];let a;if(o&&(t.parentId=o),t.doc){let e=g.append("g").attr("id",t.id).attr("class","stateGroup");a=_(t.doc,e,t.id,!r,d,f,l);{e=s(e,t,r);let i=e.node().getBBox();a.width=i.width,a.height=i.height+n.padding/2,C[t.id]={y:n.compositTitleSize}}}else a=h(g,t,c);if(t.note){const e={descriptions:[],id:t.id+"-note",note:t.note,type:"note"},i=h(g,e,c);"left of"===t.note.position?(c.setNode(a.id+"-note",i),c.setNode(a.id,a)):(c.setNode(a.id,a),c.setNode(a.id+"-note",i)),c.setParent(a.id,a.id+"-group"),c.setParent(a.id+"-note",a.id+"-group")}else c.setNode(a.id,a)}e.log.debug("Count=",c.nodeCount(),c);let b=0;m.forEach(function(t){b++,e.log.debug("Setting edge",t),c.setEdge(t.id1,t.id2,{relation:t,width:B(t.title),height:n.labelHeight*e.common_default.getRows(t.title).length,labelpos:"c"},"id"+b)}),a.layout(c),e.log.debug("Graph after layout",c.nodes());const S=g.node();c.nodes().forEach(function(t){if(void 0!==t&&void 0!==c.node(t)){e.log.warn("Node "+t+": "+JSON.stringify(c.node(t))),d.select("#"+S.id+" #"+t).attr("transform","translate("+(c.node(t).x-c.node(t).width/2)+","+(c.node(t).y+(C[t]?C[t].y:0)-c.node(t).height/2)+" )"),d.select("#"+S.id+" #"+t).attr("data-x-shift",c.node(t).x-c.node(t).width/2);f.querySelectorAll("#"+S.id+" #"+t+" .divider").forEach(t=>{const e=t.parentElement;let a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)})}else e.log.debug("No Node "+t+": "+JSON.stringify(c.node(t)))});let k=S.getBBox();c.edges().forEach(function(t){void 0!==t&&void 0!==c.edge(t)&&(e.log.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(c.edge(t))),u(g,c.edge(t),c.edge(t).relation))}),k=S.getBBox();const N={id:o||"root",label:o||"root",width:0,height:0};return N.width=k.width+2*n.padding,N.height=k.height+2*n.padding,e.log.debug("Doc rendered",N,c),N},"renderDoc"),b={setConf:y,draw:w},S={parser:t.stateDiagram_default,get db(){return new t.StateDB(1)},renderer:b,styles:t.styles_default,init:e.__name(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};exports.diagram=S;
2
- //# sourceMappingURL=stateDiagram-FKZM4ZOC-BKlriLiy.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-DI55MBZ5-BHiUtZoK.cjs"),e=require("./index-DBmfYPjr.cjs");require("lodash-es");const a=require("./layout-D6yO7DzL.cjs"),i=require("./graph-C7xixGrW.cjs");var n,g=e.__name(t=>t.append("circle").attr("class","start-state").attr("r",e.getConfig2().state.sizeUnit).attr("cx",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit).attr("cy",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit),"drawStartState"),o=e.__name(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",e.getConfig2().state.textHeight).attr("class","divider").attr("x2",2*e.getConfig2().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),r=e.__name((t,a)=>{const i=t.append("text").attr("x",2*e.getConfig2().state.padding).attr("y",e.getConfig2().state.textHeight+2*e.getConfig2().state.padding).attr("font-size",e.getConfig2().state.fontSize).attr("class","state-title").text(a.id),n=i.node().getBBox();return t.insert("rect",":first-child").attr("x",e.getConfig2().state.padding).attr("y",e.getConfig2().state.padding).attr("width",n.width+2*e.getConfig2().state.padding).attr("height",n.height+2*e.getConfig2().state.padding).attr("rx",e.getConfig2().state.radius),i},"drawSimpleState"),d=e.__name((t,a)=>{const i=e.__name(function(t,a,i){const n=t.append("tspan").attr("x",2*e.getConfig2().state.padding).text(a);i||n.attr("dy",e.getConfig2().state.textHeight)},"addTspan"),n=t.append("text").attr("x",2*e.getConfig2().state.padding).attr("y",e.getConfig2().state.textHeight+1.3*e.getConfig2().state.padding).attr("font-size",e.getConfig2().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),g=n.height,o=t.append("text").attr("x",e.getConfig2().state.padding).attr("y",g+.4*e.getConfig2().state.padding+e.getConfig2().state.dividerMargin+e.getConfig2().state.textHeight).attr("class","state-description");let r=!0,d=!0;a.descriptions.forEach(function(t){r||(i(o,t,d),d=!1),r=!1});const s=t.append("line").attr("x1",e.getConfig2().state.padding).attr("y1",e.getConfig2().state.padding+g+e.getConfig2().state.dividerMargin/2).attr("y2",e.getConfig2().state.padding+g+e.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),f=o.node().getBBox(),l=Math.max(f.width,n.width);return s.attr("x2",l+3*e.getConfig2().state.padding),t.insert("rect",":first-child").attr("x",e.getConfig2().state.padding).attr("y",e.getConfig2().state.padding).attr("width",l+2*e.getConfig2().state.padding).attr("height",f.height+g+2*e.getConfig2().state.padding).attr("rx",e.getConfig2().state.radius),t},"drawDescrState"),s=e.__name((t,a,i)=>{const n=e.getConfig2().state.padding,g=2*e.getConfig2().state.padding,o=t.node().getBBox(),r=o.width,d=o.x,s=t.append("text").attr("x",0).attr("y",e.getConfig2().state.titleShift).attr("font-size",e.getConfig2().state.fontSize).attr("class","state-title").text(a.id),f=s.node().getBBox().width+g;let l,c=Math.max(f,r);c===r&&(c+=g);const p=t.node().getBBox();a.doc,l=d-n,f>r&&(l=(r-c)/2+n),Math.abs(d-p.x)<n&&f>r&&(l=d-(f-r)/2);const h=1-e.getConfig2().state.textHeight;return t.insert("rect",":first-child").attr("x",l).attr("y",h).attr("class",i?"alt-composit":"composit").attr("width",c).attr("height",p.height+e.getConfig2().state.textHeight+e.getConfig2().state.titleShift+1).attr("rx","0"),s.attr("x",l+n),f<=r&&s.attr("x",d+(c-g)/2-f/2+n),t.insert("rect",":first-child").attr("x",l).attr("y",e.getConfig2().state.titleShift-e.getConfig2().state.textHeight-e.getConfig2().state.padding).attr("width",c).attr("height",3*e.getConfig2().state.textHeight).attr("rx",e.getConfig2().state.radius),t.insert("rect",":first-child").attr("x",l).attr("y",e.getConfig2().state.titleShift-e.getConfig2().state.textHeight-e.getConfig2().state.padding).attr("width",c).attr("height",p.height+3+2*e.getConfig2().state.textHeight).attr("rx",e.getConfig2().state.radius),t},"addTitleAndBox"),f=e.__name(t=>(t.append("circle").attr("class","end-state-outer").attr("r",e.getConfig2().state.sizeUnit+e.getConfig2().state.miniPadding).attr("cx",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit+e.getConfig2().state.miniPadding).attr("cy",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit+e.getConfig2().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",e.getConfig2().state.sizeUnit).attr("cx",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit+2).attr("cy",e.getConfig2().state.padding+e.getConfig2().state.sizeUnit+2)),"drawEndState"),l=e.__name((t,a)=>{let i=e.getConfig2().state.forkWidth,n=e.getConfig2().state.forkHeight;if(a.parentId){let t=i;i=n,n=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",i).attr("height",n).attr("x",e.getConfig2().state.padding).attr("y",e.getConfig2().state.padding)},"drawForkJoinState"),c=e.__name((t,a,i,n)=>{let g=0;const o=n.append("text");o.style("text-anchor","start"),o.attr("class","noteText");let r=t.replace(/\r\n/g,"<br/>");r=r.replace(/\n/g,"<br/>");const d=r.split(e.common_default.lineBreakRegex);let s=1.25*e.getConfig2().state.noteMargin;for(const f of d){const t=f.trim();if(t.length>0){const n=o.append("tspan");if(n.text(t),0===s){s+=n.node().getBBox().height}g+=s,n.attr("x",a+e.getConfig2().state.noteMargin),n.attr("y",i+g+1.25*e.getConfig2().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:g}},"_drawLongText"),p=e.__name((t,a)=>{a.attr("class","state-note");const i=a.append("rect").attr("x",0).attr("y",e.getConfig2().state.padding),n=a.append("g"),{textWidth:g,textHeight:o}=c(t,0,0,n);return i.attr("height",o+2*e.getConfig2().state.noteMargin),i.attr("width",g+2*e.getConfig2().state.noteMargin),i},"drawNote"),h=e.__name(function(t,a){const i=a.id,n={id:i,label:a.id,width:0,height:0},s=t.append("g").attr("id",i).attr("class","stateGroup");"start"===a.type&&g(s),"end"===a.type&&f(s),"fork"!==a.type&&"join"!==a.type||l(s,a),"note"===a.type&&p(a.note.text,s),"divider"===a.type&&o(s),"default"===a.type&&0===a.descriptions.length&&r(s,a),"default"===a.type&&a.descriptions.length>0&&d(s,a);const c=s.node().getBBox();return n.width=c.width+2*e.getConfig2().state.padding,n.height=c.height+2*e.getConfig2().state.padding,n},"drawState"),x=0,u=e.__name(function(a,i,n){const g=e.__name(function(e){switch(e){case t.StateDB.relationType.AGGREGATION:return"aggregation";case t.StateDB.relationType.EXTENSION:return"extension";case t.StateDB.relationType.COMPOSITION:return"composition";case t.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");i.points=i.points.filter(t=>!Number.isNaN(t.y));const o=i.points,r=e.line().x(function(t){return t.x}).y(function(t){return t.y}).curve(e.curveBasis),d=a.append("path").attr("d",r(o)).attr("id","edge"+x).attr("class","transition");let s="";if(e.getConfig2().state.arrowMarkerAbsolute&&(s=e.getUrl(!0)),d.attr("marker-end","url("+s+"#"+g(t.StateDB.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const t=a.append("g").attr("class","stateLabel"),{x:g,y:o}=e.utils_default.calcLabelPosition(i.points),r=e.common_default.getRows(n.title);let d=0;const s=[];let f=0,l=0;for(let a=0;a<=r.length;a++){const i=t.append("text").attr("text-anchor","middle").text(r[a]).attr("x",g).attr("y",o+d),n=i.node().getBBox();if(f=Math.max(f,n.width),l=Math.min(l,n.x),e.log.info(n.x,g,o+d),0===d){const t=i.node().getBBox();d=t.height,e.log.info("Title height",d,o)}s.push(i)}let c=d*r.length;if(r.length>1){const t=(r.length-1)*d*.5;s.forEach((e,a)=>e.attr("y",o+a*d-t)),c=d*r.length}const p=t.node().getBBox();t.insert("rect",":first-child").attr("class","box").attr("x",g-f/2-e.getConfig2().state.padding/2).attr("y",o-c/2-e.getConfig2().state.padding/2-3.5).attr("width",f+e.getConfig2().state.padding).attr("height",c+e.getConfig2().state.padding),e.log.info(p)}x++},"drawEdge"),C={},y=e.__name(function(){},"setConf"),m=e.__name(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),w=e.__name(function(t,a,i,g){n=e.getConfig2().state;const o=e.getConfig2().securityLevel;let r;"sandbox"===o&&(r=e.select("#i"+a));const d="sandbox"===o?e.select(r.nodes()[0].contentDocument.body):e.select("body"),s="sandbox"===o?r.nodes()[0].contentDocument:document;e.log.debug("Rendering diagram "+t);const f=d.select(`[id='${a}']`);m(f);const l=g.db.getRootDoc();_(l,f,void 0,!1,d,s,g);const c=n.padding,p=f.node().getBBox(),h=p.width+2*c,x=p.height+2*c,u=1.75*h;e.configureSvgSize(f,x,u,n.useMaxWidth),f.attr("viewBox",`${p.x-n.padding} ${p.y-n.padding} `+h+" "+x)},"draw"),B=e.__name(t=>t?t.length*n.fontSizeFactor:1,"getLabelWidth"),_=e.__name((t,g,o,r,d,f,l)=>{const c=new i.Graph({compound:!0,multigraph:!0});let p,x=!0;for(p=0;p<t.length;p++)if("relation"===t[p].stmt){x=!1;break}o?c.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:x?1:n.edgeLengthFactor,nodeSep:x?1:50,isMultiGraph:!0}):c.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:x?1:n.edgeLengthFactor,nodeSep:x?1:50,ranker:"tight-tree",isMultiGraph:!0}),c.setDefaultEdgeLabel(function(){return{}});const y=l.db.getStates(),m=l.db.getRelations(),w=Object.keys(y);for(const e of w){const t=y[e];let a;if(o&&(t.parentId=o),t.doc){let e=g.append("g").attr("id",t.id).attr("class","stateGroup");a=_(t.doc,e,t.id,!r,d,f,l);{e=s(e,t,r);let i=e.node().getBBox();a.width=i.width,a.height=i.height+n.padding/2,C[t.id]={y:n.compositTitleSize}}}else a=h(g,t,c);if(t.note){const e={descriptions:[],id:t.id+"-note",note:t.note,type:"note"},i=h(g,e,c);"left of"===t.note.position?(c.setNode(a.id+"-note",i),c.setNode(a.id,a)):(c.setNode(a.id,a),c.setNode(a.id+"-note",i)),c.setParent(a.id,a.id+"-group"),c.setParent(a.id+"-note",a.id+"-group")}else c.setNode(a.id,a)}e.log.debug("Count=",c.nodeCount(),c);let b=0;m.forEach(function(t){b++,e.log.debug("Setting edge",t),c.setEdge(t.id1,t.id2,{relation:t,width:B(t.title),height:n.labelHeight*e.common_default.getRows(t.title).length,labelpos:"c"},"id"+b)}),a.layout(c),e.log.debug("Graph after layout",c.nodes());const S=g.node();c.nodes().forEach(function(t){if(void 0!==t&&void 0!==c.node(t)){e.log.warn("Node "+t+": "+JSON.stringify(c.node(t))),d.select("#"+S.id+" #"+t).attr("transform","translate("+(c.node(t).x-c.node(t).width/2)+","+(c.node(t).y+(C[t]?C[t].y:0)-c.node(t).height/2)+" )"),d.select("#"+S.id+" #"+t).attr("data-x-shift",c.node(t).x-c.node(t).width/2);f.querySelectorAll("#"+S.id+" #"+t+" .divider").forEach(t=>{const e=t.parentElement;let a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)})}else e.log.debug("No Node "+t+": "+JSON.stringify(c.node(t)))});let k=S.getBBox();c.edges().forEach(function(t){void 0!==t&&void 0!==c.edge(t)&&(e.log.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(c.edge(t))),u(g,c.edge(t),c.edge(t).relation))}),k=S.getBBox();const N={id:o||"root",label:o||"root",width:0,height:0};return N.width=k.width+2*n.padding,N.height=k.height+2*n.padding,e.log.debug("Doc rendered",N,c),N},"renderDoc"),b={setConf:y,draw:w},S={parser:t.stateDiagram_default,get db(){return new t.StateDB(1)},renderer:b,styles:t.styles_default,init:e.__name(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};exports.diagram=S;
2
+ //# sourceMappingURL=stateDiagram-FKZM4ZOC-DNXrTtku.cjs.map
@@ -1,5 +1,5 @@
1
- import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-DI55MBZ5-BdBqxSCP.js";
2
- import { _ as __name, c as getConfig2, d as select, l as log, e as configureSvgSize, k as common_default, a9 as line, aa as curveBasis, a6 as getUrl, u as utils_default } from "./index-vFWWvdca.js";
1
+ import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-DI55MBZ5-Cekk--Cm.js";
2
+ import { _ as __name, c as getConfig2, d as select, l as log, e as configureSvgSize, k as common_default, a9 as line, aa as curveBasis, a6 as getUrl, u as utils_default } from "./index-r6bYN_1a.js";
3
3
  import "lodash-es";
4
4
  import { l as layout } from "./layout-bxkZz7Cm.js";
5
5
  import { G as Graph } from "./graph-DH3cnEko.js";
@@ -446,4 +446,4 @@ var diagram = {
446
446
  export {
447
447
  diagram
448
448
  };
449
- //# sourceMappingURL=stateDiagram-FKZM4ZOC-DTQxNxM0.js.map
449
+ //# sourceMappingURL=stateDiagram-FKZM4ZOC-zQUhlqIe.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunk-DI55MBZ5-BhxfU0Wh.cjs"),t=require("./index-CAoOhLkP.cjs");var r={parser:e.stateDiagram_default,get db(){return new e.StateDB(2)},renderer:e.stateRenderer_v3_unified_default,styles:e.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=r;
2
- //# sourceMappingURL=stateDiagram-v2-4FDKWEC3-C3-DQJ_j.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunk-DI55MBZ5-BHiUtZoK.cjs"),t=require("./index-DBmfYPjr.cjs");var r={parser:e.stateDiagram_default,get db(){return new e.StateDB(2)},renderer:e.stateRenderer_v3_unified_default,styles:e.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=r;
2
+ //# sourceMappingURL=stateDiagram-v2-4FDKWEC3-BEegnVik.cjs.map
@@ -1,5 +1,5 @@
1
- import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-DI55MBZ5-BdBqxSCP.js";
2
- import { _ as __name } from "./index-vFWWvdca.js";
1
+ import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-DI55MBZ5-Cekk--Cm.js";
2
+ import { _ as __name } from "./index-r6bYN_1a.js";
3
3
  var diagram = {
4
4
  parser: stateDiagram_default,
5
5
  get db() {
@@ -17,4 +17,4 @@ var diagram = {
17
17
  export {
18
18
  diagram
19
19
  };
20
- //# sourceMappingURL=stateDiagram-v2-4FDKWEC3-BS-Rbuf4.js.map
20
+ //# sourceMappingURL=stateDiagram-v2-4FDKWEC3-Dtg323pE.js.map
@@ -1,5 +1,5 @@
1
- import { _ as __name, c as getConfig2, l as log, d as select, ac as setupGraphViewbox, ad as isDark, ae as lighten, af as darken, D as __export, ag as commonDb_exports, z as clear } from "./index-vFWWvdca.js";
2
- import { d as d3arc } from "./arc-5yDizpVi.js";
1
+ import { _ as __name, c as getConfig2, l as log, d as select, ac as setupGraphViewbox, ad as isDark, ae as lighten, af as darken, D as __export, ag as commonDb_exports, z as clear } from "./index-r6bYN_1a.js";
2
+ import { d as d3arc } from "./arc-BxA6Yg5_.js";
3
3
  var parser = function() {
4
4
  var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
5
5
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
@@ -1224,4 +1224,4 @@ var diagram = {
1224
1224
  export {
1225
1225
  diagram
1226
1226
  };
1227
- //# sourceMappingURL=timeline-definition-IT6M3QCI-C-6fhIAz.js.map
1227
+ //# sourceMappingURL=timeline-definition-IT6M3QCI-Cf4OkFlr.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CAoOhLkP.cjs"),e=require("./arc-CHX8tzAa.cjs");var n=function(){var e=t.__name(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),n=[6,8,10,11,12,14,16,17,20,21],i=[1,9],a=[1,10],r=[1,11],s=[1,12],o=[1,13],c=[1,16],l=[1,17],h={trace:t.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:t.__name(function(t,e,n,i,a,r,s){var o=r.length-1;switch(a){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.getCommonDb().setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 9:this.$=r[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=r[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 12:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 15:i.addTask(r[o],0,""),this.$=r[o];break;case 16:i.addEvent(r[o].substr(2)),this.$=r[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:a,14:r,16:s,17:o,18:14,19:15,20:c,21:l},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:18,11:i,12:a,14:r,16:s,17:o,18:14,19:15,20:c,21:l},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),{13:[1,19]},{15:[1,20]},e(n,[2,11]),e(n,[2,12]),e(n,[2,13]),e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,4]),e(n,[2,9]),e(n,[2,10])],defaultActions:{},parseError:t.__name(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t.__name(function(e){var n=this,i=[0],a=[],r=[null],s=[],o=this.table,c="",l=0,h=0,d=s.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);u.setInput(e,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var y=u.yylloc;s.push(y);var _=u.options&&u.options.ranges;function m(){var t;return"number"!=typeof(t=a.pop()||u.lex()||1)&&(t instanceof Array&&(t=(a=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t.__name(function(t){i.length=i.length-2*t,r.length=r.length-t,s.length=s.length-t},"popStack"),t.__name(m,"lex");for(var f,x,b,k,w,v,S,$,E={};;){if(x=i[i.length-1],this.defaultActions[x]?b=this.defaultActions[x]:(null==f&&(f=m()),b=o[x]&&o[x][f]),void 0===b||!b.length||!b[0]){var T="";for(w in $=[],o[x])this.terminals_[w]&&w>2&&$.push("'"+this.terminals_[w]+"'");T=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(T,{text:u.match,token:this.terminals_[f]||f,line:u.yylineno,loc:y,expected:$})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+f);switch(b[0]){case 1:i.push(f),r.push(u.yytext),s.push(u.yylloc),i.push(b[1]),f=null,h=u.yyleng,c=u.yytext,l=u.yylineno,y=u.yylloc;break;case 2:if(v=this.productions_[b[1]][1],E.$=r[r.length-v],E._$={first_line:s[s.length-(v||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(v||1)].first_column,last_column:s[s.length-1].last_column},_&&(E._$.range=[s[s.length-(v||1)].range[0],s[s.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[c,h,l,p.yy,b[1],r,s].concat(d))))return k;v&&(i=i.slice(0,-1*v*2),r=r.slice(0,-1*v),s=s.slice(0,-1*v)),i.push(this.productions_[b[1]][0]),r.push(E.$),s.push(E._$),S=o[i[i.length-2]][i[i.length-1]],i.push(S);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:t.__name(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t.__name(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:t.__name(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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:t.__name(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:t.__name(function(){return this._more=!0,this},"more"),reject:t.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:t.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:t.__name(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:t.__name(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:t.__name(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:t.__name(function(t,e){var n,i,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in a)this[r]=a[r];return!1}return!1},"test_match"),next:t.__name(function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),r=0;r<a.length;r++)if((n=this._input.match(this.rules[a[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,a[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:t.__name(function(t){this.conditionStack.push(t)},"begin"),popState:t.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:t.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:t.__name(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:t.__name(function(t){this.begin(t)},"pushState"),stateStackSize:t.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t.__name(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}}}();function u(){this.yy={}}return h.lexer=d,t.__name(u,"Parser"),u.prototype=h,h.Parser=u,new u}();n.parser=n;var i=n,a={};t.__export(a,{addEvent:()=>_,addSection:()=>u,addTask:()=>y,addTaskOrg:()=>m,clear:()=>d,default:()=>x,getCommonDb:()=>h,getSections:()=>p,getTasks:()=>g});var r="",s=0,o=[],c=[],l=[],h=t.__name(()=>t.commonDb_exports,"getCommonDb"),d=t.__name(function(){o.length=0,c.length=0,r="",l.length=0,t.clear()},"clear"),u=t.__name(function(t){r=t,o.push(t)},"addSection"),p=t.__name(function(){return o},"getSections"),g=t.__name(function(){let t=f();let e=0;for(;!t&&e<100;)t=f(),e++;return c.push(...l),c},"getTasks"),y=t.__name(function(t,e,n){const i={id:s++,section:r,type:r,task:t,score:e||0,events:n?[n]:[]};l.push(i)},"addTask"),_=t.__name(function(t){l.find(t=>t.id===s-1).events.push(t)},"addEvent"),m=t.__name(function(t){const e={section:r,type:r,description:t,task:t,classes:[]};c.push(e)},"addTaskOrg"),f=t.__name(function(){const e=t.__name(function(t){return l[t].processed},"compileTask");let n=!0;for(const[t,i]of l.entries())e(t),n=n&&i.processed;return n},"compileTasks"),x={clear:d,getCommonDb:h,addSection:u,getSections:p,getTasks:g,addTask:y,addTaskOrg:m,addEvent:_},b=t.__name(function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),k=t.__name(function(n,i){const a=15,r=n.append("circle").attr("cx",i.cx).attr("cy",i.cy).attr("class","face").attr("r",a).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");function o(t){const n=e.d3arc().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(a/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+i.cx+","+(i.cy+2)+")")}function c(t){const n=e.d3arc().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(a/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+i.cx+","+(i.cy+7)+")")}function l(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",i.cx-5).attr("y1",i.cy+7).attr("x2",i.cx+5).attr("y2",i.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return s.append("circle").attr("cx",i.cx-5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",i.cx+5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.__name(o,"smile"),t.__name(c,"sad"),t.__name(l,"ambivalent"),i.score>3?o(s):i.score<3?c(s):l(s),r},"drawFace"),w=t.__name(function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},"drawCircle"),v=t.__name(function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(n),i},"drawText"),S=t.__name(function(e,n){function i(t,e,n,i,a){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-a)+" "+(t+n-1.2*a)+","+(e+i)+" "+t+","+(e+i)}t.__name(i,"genPoints");const a=e.append("polygon");a.attr("points",i(n.x,n.y,50,20,7)),a.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,v(e,n)},"drawLabel"),$=t.__name(function(t,e,n){const i=t.append("g"),a=N();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width,a.height=n.height,a.class="journey-section section-type-"+e.num,a.rx=3,a.ry=3,b(i,a),A(n)(e.text,i,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),E=-1,T=t.__name(function(t,e,n){const i=e.x+n.width/2,a=t.append("g");E++;a.append("line").attr("id","task"+E).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),k(a,{cx:i,cy:300+30*(5-e.score),score:e.score});const r=N();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="task task-type-"+e.num,r.rx=3,r.ry=3,b(a,r),A(n)(e.task,a,r.x,r.y,r.width,r.height,{class:"task"},n,e.colour)},"drawTask"),I=t.__name(function(t,e){b(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),M=t.__name(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),N=t.__name(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),A=function(){function e(t,e,n,i,r,s,o,c){a(e.append("text").attr("x",n+r/2).attr("y",i+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,i,r,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,u=t.split(/<br\s*\/?>/gi);for(let p=0;p<u.length;p++){const t=p*h-h*(u.length-1)/2,c=e.append("text").attr("x",n+r/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);c.append("tspan").attr("x",n+r/2).attr("dy",t).text(u[p]),c.attr("y",i+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(c,o)}}function i(t,e,i,r,s,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",r).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),n(t,h,i,r,s,o,c,l),a(d,c)}function a(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t.__name(e,"byText"),t.__name(n,"byTspan"),t.__name(i,"byFo"),t.__name(a,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?i:"old"===t.textPlacement?e:n}}(),C=t.__name(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function P(e,n){e.each(function(){var e,i=t.select(this),a=i.text().split(/(\s+|<br>)/).reverse(),r=[],s=i.attr("y"),o=parseFloat(i.attr("dy")),c=i.text(null).append("tspan").attr("x",0).attr("y",s).attr("dy",o+"em");for(let t=0;t<a.length;t++)e=a[a.length-1-t],r.push(e),c.text(r.join(" ").trim()),(c.node().getComputedTextLength()>n||"<br>"===e)&&(r.pop(),c.text(r.join(" ").trim()),r="<br>"===e?[""]:[e],c=i.append("tspan").attr("x",0).attr("y",s).attr("dy","1.1em").text(e))})}t.__name(P,"wrap");var L=t.__name(function(t,e,n,i){var a;const r=n%12-1,s=t.append("g");e.section=r,s.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);const o=s.append("g"),c=s.append("g"),l=c.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(P,e.width).node().getBBox(),h=(null==(a=i.fontSize)?void 0:a.replace)?i.fontSize.replace("px",""):i.fontSize;return e.height=l.height+1.1*h*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,c.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),O(o,e,r,i),e},"drawNode"),H=t.__name(function(t,e,n){var i;const a=t.append("g"),r=a.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(P,e.width).node().getBBox(),s=(null==(i=n.fontSize)?void 0:i.replace)?n.fontSize.replace("px",""):n.fontSize;return a.remove(),r.height+1.1*s*.5+e.padding},"getVirtualNodeHeight"),O=t.__name(function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-5} v${10-e.height} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),j={drawRect:b,drawCircle:w,drawSection:$,drawText:v,drawLabel:S,drawTask:T,drawBackgroundRect:I,getTextObj:M,getNoteRect:N,initGraphics:C,drawNode:L,getVirtualNodeHeight:H},D=t.__name(function(e,n,i,a){var r,s,o;const c=t.getConfig2(),l=(null==(r=c.timeline)?void 0:r.leftMargin)??50;t.log.debug("timeline",a.db);const h=c.securityLevel;let d;"sandbox"===h&&(d=t.select("#i"+n));const u=("sandbox"===h?t.select(d.nodes()[0].contentDocument.body):t.select("body")).select("#"+n);u.append("g");const p=a.db.getTasks(),g=a.db.getCommonDb().getDiagramTitle();t.log.debug("task",p),j.initGraphics(u);const y=a.db.getSections();t.log.debug("sections",y);let _=0,m=0,f=0,x=0,b=50+l,k=50;x=50;let w=0,v=!0;y.forEach(function(e){const n={number:w,descr:e,section:w,width:150,padding:20,maxHeight:_},i=j.getVirtualNodeHeight(u,n,c);t.log.debug("sectionHeight before draw",i),_=Math.max(_,i+20)});let S=0,$=0;t.log.debug("tasks.length",p.length);for(const[T,I]of p.entries()){const e={number:T,descr:I,section:I.section,width:150,padding:20,maxHeight:m},n=j.getVirtualNodeHeight(u,e,c);t.log.debug("taskHeight before draw",n),m=Math.max(m,n+20),S=Math.max(S,I.events.length);let i=0;for(const t of I.events){const e={descr:t,section:I.section,number:I.section,width:150,padding:20,maxHeight:50};i+=j.getVirtualNodeHeight(u,e,c)}I.events.length>0&&(i+=10*(I.events.length-1)),$=Math.max($,i)}t.log.debug("maxSectionHeight before draw",_),t.log.debug("maxTaskHeight before draw",m),y&&y.length>0?y.forEach(e=>{const n=p.filter(t=>t.section===e),i={number:w,descr:e,section:w,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};t.log.debug("sectionNode",i);const a=u.append("g"),r=j.drawNode(a,i,w,c);t.log.debug("sectionNode output",r),a.attr("transform",`translate(${b}, 50)`),k+=_+50,n.length>0&&R(u,n,w,b,k,m,c,S,$,_,!1),b+=200*Math.max(n.length,1),k=50,w++}):(v=!1,R(u,p,w,b,k,m,c,S,$,_,!0));const E=u.node().getBBox();t.log.debug("bounds",E),g&&u.append("text").text(g).attr("x",E.width/2-l).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),f=v?_+m+150:m+100;u.append("g").attr("class","lineWrapper").append("line").attr("x1",l).attr("y1",f).attr("x2",E.width+3*l).attr("y2",f).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),t.setupGraphViewbox(void 0,u,(null==(s=c.timeline)?void 0:s.padding)??50,(null==(o=c.timeline)?void 0:o.useMaxWidth)??!1)},"draw"),R=t.__name(function(e,n,i,a,r,s,o,c,l,h,d){var u;for(const p of n){const n={descr:p.task,section:i,number:i,width:150,padding:20,maxHeight:s};t.log.debug("taskNode",n);const c=e.append("g").attr("class","taskWrapper"),h=j.drawNode(c,n,i,o).height;if(t.log.debug("taskHeight after draw",h),c.attr("transform",`translate(${a}, ${r})`),s=Math.max(s,h),p.events){const t=e.append("g").attr("class","lineWrapper");let n=s;r+=100,n+=z(e,p.events,i,a,r,o),r-=100,t.append("line").attr("x1",a+95).attr("y1",r+s).attr("x2",a+95).attr("y2",r+s+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a+=200,d&&!(null==(u=o.timeline)?void 0:u.disableMulticolor)&&i++}r-=10},"drawTasks"),z=t.__name(function(e,n,i,a,r,s){let o=0;const c=r;r+=100;for(const l of n){const n={descr:l,section:i,number:i,width:150,padding:20,maxHeight:50};t.log.debug("eventNode",n);const c=e.append("g").attr("class","eventWrapper"),h=j.drawNode(c,n,i,s).height;o+=h,c.attr("transform",`translate(${a}, ${r})`),r=r+10+h}return r=c,o},"drawEvents"),B={setConf:t.__name(()=>{},"setConf"),draw:D},F=t.__name(e=>{let n="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],t.isDark(e["lineColor"+i])?e["lineColor"+i]=t.lighten(e["lineColor"+i],20):e["lineColor"+i]=t.darken(e["lineColor"+i],20);for(let t=0;t<e.THEME_COLOR_LIMIT;t++){const i=""+(17-3*t);n+=`\n .section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} path {\n fill: ${e["cScale"+t]};\n }\n .section-${t-1} text {\n fill: ${e["cScaleLabel"+t]};\n }\n .node-icon-${t-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+t]};\n }\n .section-edge-${t-1}{\n stroke: ${e["cScale"+t]};\n }\n .edge-depth-${t-1}{\n stroke-width: ${i};\n }\n .section-${t-1} line {\n stroke: ${e["cScaleInv"+t]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${e["cScaleLabel"+t]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return n},"genSections"),W={db:a,renderer:B,parser:i,styles:t.__name(t=>`\n .edge {\n stroke-width: 3;\n }\n ${F(t)}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`,"getStyles")};exports.diagram=W;
2
- //# sourceMappingURL=timeline-definition-IT6M3QCI-BUZIaC_t.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DBmfYPjr.cjs"),e=require("./arc-iq0incG2.cjs");var n=function(){var e=t.__name(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),n=[6,8,10,11,12,14,16,17,20,21],i=[1,9],a=[1,10],r=[1,11],s=[1,12],o=[1,13],c=[1,16],l=[1,17],h={trace:t.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:t.__name(function(t,e,n,i,a,r,s){var o=r.length-1;switch(a){case 1:return r[o-1];case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:this.$=r[o];break;case 8:i.getCommonDb().setDiagramTitle(r[o].substr(6)),this.$=r[o].substr(6);break;case 9:this.$=r[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=r[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 12:i.addSection(r[o].substr(8)),this.$=r[o].substr(8);break;case 15:i.addTask(r[o],0,""),this.$=r[o];break;case 16:i.addEvent(r[o].substr(2)),this.$=r[o]}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(n,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:a,14:r,16:s,17:o,18:14,19:15,20:c,21:l},e(n,[2,7],{1:[2,1]}),e(n,[2,3]),{9:18,11:i,12:a,14:r,16:s,17:o,18:14,19:15,20:c,21:l},e(n,[2,5]),e(n,[2,6]),e(n,[2,8]),{13:[1,19]},{15:[1,20]},e(n,[2,11]),e(n,[2,12]),e(n,[2,13]),e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,4]),e(n,[2,9]),e(n,[2,10])],defaultActions:{},parseError:t.__name(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t.__name(function(e){var n=this,i=[0],a=[],r=[null],s=[],o=this.table,c="",l=0,h=0,d=s.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);u.setInput(e,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var y=u.yylloc;s.push(y);var _=u.options&&u.options.ranges;function m(){var t;return"number"!=typeof(t=a.pop()||u.lex()||1)&&(t instanceof Array&&(t=(a=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t.__name(function(t){i.length=i.length-2*t,r.length=r.length-t,s.length=s.length-t},"popStack"),t.__name(m,"lex");for(var f,x,b,k,w,v,S,$,E={};;){if(x=i[i.length-1],this.defaultActions[x]?b=this.defaultActions[x]:(null==f&&(f=m()),b=o[x]&&o[x][f]),void 0===b||!b.length||!b[0]){var T="";for(w in $=[],o[x])this.terminals_[w]&&w>2&&$.push("'"+this.terminals_[w]+"'");T=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(T,{text:u.match,token:this.terminals_[f]||f,line:u.yylineno,loc:y,expected:$})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+f);switch(b[0]){case 1:i.push(f),r.push(u.yytext),s.push(u.yylloc),i.push(b[1]),f=null,h=u.yyleng,c=u.yytext,l=u.yylineno,y=u.yylloc;break;case 2:if(v=this.productions_[b[1]][1],E.$=r[r.length-v],E._$={first_line:s[s.length-(v||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(v||1)].first_column,last_column:s[s.length-1].last_column},_&&(E._$.range=[s[s.length-(v||1)].range[0],s[s.length-1].range[1]]),void 0!==(k=this.performAction.apply(E,[c,h,l,p.yy,b[1],r,s].concat(d))))return k;v&&(i=i.slice(0,-1*v*2),r=r.slice(0,-1*v),s=s.slice(0,-1*v)),i.push(this.productions_[b[1]][0]),r.push(E.$),s.push(E._$),S=o[i[i.length-2]][i[i.length-1]],i.push(S);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:t.__name(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t.__name(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:t.__name(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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:t.__name(function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var a=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[a[0],a[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:t.__name(function(){return this._more=!0,this},"more"),reject:t.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:t.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:t.__name(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:t.__name(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:t.__name(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:t.__name(function(t,e){var n,i,a;if(this.options.backtrack_lexer&&(a={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&&(a.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var r in a)this[r]=a[r];return!1}return!1},"test_match"),next:t.__name(function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),r=0;r<a.length;r++)if((n=this._input.match(this.rules[a[r]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,a[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,a[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:t.__name(function(t){this.conditionStack.push(t)},"begin"),popState:t.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:t.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:t.__name(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:t.__name(function(t){this.begin(t)},"pushState"),stateStackSize:t.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t.__name(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}}}();function u(){this.yy={}}return h.lexer=d,t.__name(u,"Parser"),u.prototype=h,h.Parser=u,new u}();n.parser=n;var i=n,a={};t.__export(a,{addEvent:()=>_,addSection:()=>u,addTask:()=>y,addTaskOrg:()=>m,clear:()=>d,default:()=>x,getCommonDb:()=>h,getSections:()=>p,getTasks:()=>g});var r="",s=0,o=[],c=[],l=[],h=t.__name(()=>t.commonDb_exports,"getCommonDb"),d=t.__name(function(){o.length=0,c.length=0,r="",l.length=0,t.clear()},"clear"),u=t.__name(function(t){r=t,o.push(t)},"addSection"),p=t.__name(function(){return o},"getSections"),g=t.__name(function(){let t=f();let e=0;for(;!t&&e<100;)t=f(),e++;return c.push(...l),c},"getTasks"),y=t.__name(function(t,e,n){const i={id:s++,section:r,type:r,task:t,score:e||0,events:n?[n]:[]};l.push(i)},"addTask"),_=t.__name(function(t){l.find(t=>t.id===s-1).events.push(t)},"addEvent"),m=t.__name(function(t){const e={section:r,type:r,description:t,task:t,classes:[]};c.push(e)},"addTaskOrg"),f=t.__name(function(){const e=t.__name(function(t){return l[t].processed},"compileTask");let n=!0;for(const[t,i]of l.entries())e(t),n=n&&i.processed;return n},"compileTasks"),x={clear:d,getCommonDb:h,addSection:u,getSections:p,getTasks:g,addTask:y,addTaskOrg:m,addEvent:_},b=t.__name(function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},"drawRect"),k=t.__name(function(n,i){const a=15,r=n.append("circle").attr("cx",i.cx).attr("cy",i.cy).attr("class","face").attr("r",a).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");function o(t){const n=e.d3arc().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(a/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+i.cx+","+(i.cy+2)+")")}function c(t){const n=e.d3arc().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(a/2.2);t.append("path").attr("class","mouth").attr("d",n).attr("transform","translate("+i.cx+","+(i.cy+7)+")")}function l(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",i.cx-5).attr("y1",i.cy+7).attr("x2",i.cx+5).attr("y2",i.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return s.append("circle").attr("cx",i.cx-5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",i.cx+5).attr("cy",i.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.__name(o,"smile"),t.__name(c,"sad"),t.__name(l,"ambivalent"),i.score>3?o(s):i.score<3?c(s):l(s),r},"drawFace"),w=t.__name(function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},"drawCircle"),v=t.__name(function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.text(n),i},"drawText"),S=t.__name(function(e,n){function i(t,e,n,i,a){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-a)+" "+(t+n-1.2*a)+","+(e+i)+" "+t+","+(e+i)}t.__name(i,"genPoints");const a=e.append("polygon");a.attr("points",i(n.x,n.y,50,20,7)),a.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,v(e,n)},"drawLabel"),$=t.__name(function(t,e,n){const i=t.append("g"),a=N();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width,a.height=n.height,a.class="journey-section section-type-"+e.num,a.rx=3,a.ry=3,b(i,a),A(n)(e.text,i,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),E=-1,T=t.__name(function(t,e,n){const i=e.x+n.width/2,a=t.append("g");E++;a.append("line").attr("id","task"+E).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),k(a,{cx:i,cy:300+30*(5-e.score),score:e.score});const r=N();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="task task-type-"+e.num,r.rx=3,r.ry=3,b(a,r),A(n)(e.task,a,r.x,r.y,r.width,r.height,{class:"task"},n,e.colour)},"drawTask"),I=t.__name(function(t,e){b(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),M=t.__name(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),N=t.__name(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),A=function(){function e(t,e,n,i,r,s,o,c){a(e.append("text").attr("x",n+r/2).attr("y",i+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,i,r,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,u=t.split(/<br\s*\/?>/gi);for(let p=0;p<u.length;p++){const t=p*h-h*(u.length-1)/2,c=e.append("text").attr("x",n+r/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);c.append("tspan").attr("x",n+r/2).attr("dy",t).text(u[p]),c.attr("y",i+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(c,o)}}function i(t,e,i,r,s,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",r).attr("width",s).attr("height",o).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),n(t,h,i,r,s,o,c,l),a(d,c)}function a(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t.__name(e,"byText"),t.__name(n,"byTspan"),t.__name(i,"byFo"),t.__name(a,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?i:"old"===t.textPlacement?e:n}}(),C=t.__name(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function P(e,n){e.each(function(){var e,i=t.select(this),a=i.text().split(/(\s+|<br>)/).reverse(),r=[],s=i.attr("y"),o=parseFloat(i.attr("dy")),c=i.text(null).append("tspan").attr("x",0).attr("y",s).attr("dy",o+"em");for(let t=0;t<a.length;t++)e=a[a.length-1-t],r.push(e),c.text(r.join(" ").trim()),(c.node().getComputedTextLength()>n||"<br>"===e)&&(r.pop(),c.text(r.join(" ").trim()),r="<br>"===e?[""]:[e],c=i.append("tspan").attr("x",0).attr("y",s).attr("dy","1.1em").text(e))})}t.__name(P,"wrap");var L=t.__name(function(t,e,n,i){var a;const r=n%12-1,s=t.append("g");e.section=r,s.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);const o=s.append("g"),c=s.append("g"),l=c.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(P,e.width).node().getBBox(),h=(null==(a=i.fontSize)?void 0:a.replace)?i.fontSize.replace("px",""):i.fontSize;return e.height=l.height+1.1*h*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,c.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),O(o,e,r,i),e},"drawNode"),H=t.__name(function(t,e,n){var i;const a=t.append("g"),r=a.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(P,e.width).node().getBBox(),s=(null==(i=n.fontSize)?void 0:i.replace)?n.fontSize.replace("px",""):n.fontSize;return a.remove(),r.height+1.1*s*.5+e.padding},"getVirtualNodeHeight"),O=t.__name(function(t,e,n){t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-5} v${10-e.height} q0,-5 5,-5 h${e.width-10} q5,0 5,5 v${e.height-5} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),j={drawRect:b,drawCircle:w,drawSection:$,drawText:v,drawLabel:S,drawTask:T,drawBackgroundRect:I,getTextObj:M,getNoteRect:N,initGraphics:C,drawNode:L,getVirtualNodeHeight:H},D=t.__name(function(e,n,i,a){var r,s,o;const c=t.getConfig2(),l=(null==(r=c.timeline)?void 0:r.leftMargin)??50;t.log.debug("timeline",a.db);const h=c.securityLevel;let d;"sandbox"===h&&(d=t.select("#i"+n));const u=("sandbox"===h?t.select(d.nodes()[0].contentDocument.body):t.select("body")).select("#"+n);u.append("g");const p=a.db.getTasks(),g=a.db.getCommonDb().getDiagramTitle();t.log.debug("task",p),j.initGraphics(u);const y=a.db.getSections();t.log.debug("sections",y);let _=0,m=0,f=0,x=0,b=50+l,k=50;x=50;let w=0,v=!0;y.forEach(function(e){const n={number:w,descr:e,section:w,width:150,padding:20,maxHeight:_},i=j.getVirtualNodeHeight(u,n,c);t.log.debug("sectionHeight before draw",i),_=Math.max(_,i+20)});let S=0,$=0;t.log.debug("tasks.length",p.length);for(const[T,I]of p.entries()){const e={number:T,descr:I,section:I.section,width:150,padding:20,maxHeight:m},n=j.getVirtualNodeHeight(u,e,c);t.log.debug("taskHeight before draw",n),m=Math.max(m,n+20),S=Math.max(S,I.events.length);let i=0;for(const t of I.events){const e={descr:t,section:I.section,number:I.section,width:150,padding:20,maxHeight:50};i+=j.getVirtualNodeHeight(u,e,c)}I.events.length>0&&(i+=10*(I.events.length-1)),$=Math.max($,i)}t.log.debug("maxSectionHeight before draw",_),t.log.debug("maxTaskHeight before draw",m),y&&y.length>0?y.forEach(e=>{const n=p.filter(t=>t.section===e),i={number:w,descr:e,section:w,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};t.log.debug("sectionNode",i);const a=u.append("g"),r=j.drawNode(a,i,w,c);t.log.debug("sectionNode output",r),a.attr("transform",`translate(${b}, 50)`),k+=_+50,n.length>0&&R(u,n,w,b,k,m,c,S,$,_,!1),b+=200*Math.max(n.length,1),k=50,w++}):(v=!1,R(u,p,w,b,k,m,c,S,$,_,!0));const E=u.node().getBBox();t.log.debug("bounds",E),g&&u.append("text").text(g).attr("x",E.width/2-l).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),f=v?_+m+150:m+100;u.append("g").attr("class","lineWrapper").append("line").attr("x1",l).attr("y1",f).attr("x2",E.width+3*l).attr("y2",f).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),t.setupGraphViewbox(void 0,u,(null==(s=c.timeline)?void 0:s.padding)??50,(null==(o=c.timeline)?void 0:o.useMaxWidth)??!1)},"draw"),R=t.__name(function(e,n,i,a,r,s,o,c,l,h,d){var u;for(const p of n){const n={descr:p.task,section:i,number:i,width:150,padding:20,maxHeight:s};t.log.debug("taskNode",n);const c=e.append("g").attr("class","taskWrapper"),h=j.drawNode(c,n,i,o).height;if(t.log.debug("taskHeight after draw",h),c.attr("transform",`translate(${a}, ${r})`),s=Math.max(s,h),p.events){const t=e.append("g").attr("class","lineWrapper");let n=s;r+=100,n+=z(e,p.events,i,a,r,o),r-=100,t.append("line").attr("x1",a+95).attr("y1",r+s).attr("x2",a+95).attr("y2",r+s+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a+=200,d&&!(null==(u=o.timeline)?void 0:u.disableMulticolor)&&i++}r-=10},"drawTasks"),z=t.__name(function(e,n,i,a,r,s){let o=0;const c=r;r+=100;for(const l of n){const n={descr:l,section:i,number:i,width:150,padding:20,maxHeight:50};t.log.debug("eventNode",n);const c=e.append("g").attr("class","eventWrapper"),h=j.drawNode(c,n,i,s).height;o+=h,c.attr("transform",`translate(${a}, ${r})`),r=r+10+h}return r=c,o},"drawEvents"),B={setConf:t.__name(()=>{},"setConf"),draw:D},F=t.__name(e=>{let n="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],t.isDark(e["lineColor"+i])?e["lineColor"+i]=t.lighten(e["lineColor"+i],20):e["lineColor"+i]=t.darken(e["lineColor"+i],20);for(let t=0;t<e.THEME_COLOR_LIMIT;t++){const i=""+(17-3*t);n+=`\n .section-${t-1} rect, .section-${t-1} path, .section-${t-1} circle, .section-${t-1} path {\n fill: ${e["cScale"+t]};\n }\n .section-${t-1} text {\n fill: ${e["cScaleLabel"+t]};\n }\n .node-icon-${t-1} {\n font-size: 40px;\n color: ${e["cScaleLabel"+t]};\n }\n .section-edge-${t-1}{\n stroke: ${e["cScale"+t]};\n }\n .edge-depth-${t-1}{\n stroke-width: ${i};\n }\n .section-${t-1} line {\n stroke: ${e["cScaleInv"+t]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${e["cScaleLabel"+t]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return n},"genSections"),W={db:a,renderer:B,parser:i,styles:t.__name(t=>`\n .edge {\n stroke-width: 3;\n }\n ${F(t)}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`,"getStyles")};exports.diagram=W;
2
+ //# sourceMappingURL=timeline-definition-IT6M3QCI-Do30fWDV.cjs.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-BQzkWune.cjs");exports.TreemapModule=e.TreemapModule,exports.createTreemapServices=e.createTreemapServices;
2
- //# sourceMappingURL=treemap-GDKQZRPO-D-lYWdWn.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DDF0ccOL.cjs");exports.TreemapModule=e.TreemapModule,exports.createTreemapServices=e.createTreemapServices;
2
+ //# sourceMappingURL=treemap-GDKQZRPO-BecKu0FE.cjs.map
@@ -0,0 +1,6 @@
1
+ import { T, h } from "./mermaid-parser.core-CWz1o5JP.js";
2
+ export {
3
+ T as TreemapModule,
4
+ h as createTreemapServices
5
+ };
6
+ //# sourceMappingURL=treemap-GDKQZRPO-CoIiWGS-.js.map
@@ -1,2 +1,2 @@
1
- "use strict";var t,i,e,s,n,a,h,o,r,l;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CAoOhLkP.cjs"),g=require("./init-DZ96s0AS.cjs"),u=require("./ordinal-BZdahNih.cjs"),x=require("./linear-DHjw4hvs.cjs");function d(){var t,i,e=u.ordinal().unknown(void 0),s=e.domain,n=e.range,a=0,h=1,o=!1,r=0,l=0,c=.5;function x(){var e=s().length,g=h<a,u=g?h:a,x=g?a:h;t=(x-u)/Math.max(1,e-r+2*l),o&&(t=Math.floor(t)),u+=(x-u-t*(e-r))*c,i=t*(1-r),o&&(u=Math.round(u),i=Math.round(i));var d=function(t,i,e){t=+t,i=+i,e=(n=arguments.length)<2?(i=t,t=0,1):n<3?1:+e;for(var s=-1,n=0|Math.max(0,Math.ceil((i-t)/e)),a=new Array(n);++s<n;)a[s]=t+s*e;return a}(e).map(function(i){return u+t*i});return n(g?d.reverse():d)}return delete e.unknown,e.domain=function(t){return arguments.length?(s(t),x()):s()},e.range=function(t){return arguments.length?([a,h]=t,a=+a,h=+h,x()):[a,h]},e.rangeRound=function(t){return[a,h]=t,a=+a,h=+h,o=!0,x()},e.bandwidth=function(){return i},e.step=function(){return t},e.round=function(t){return arguments.length?(o=!!t,x()):o},e.padding=function(t){return arguments.length?(r=Math.min(1,l=+t),x()):r},e.paddingInner=function(t){return arguments.length?(r=Math.min(1,t),x()):r},e.paddingOuter=function(t){return arguments.length?(l=+t,x()):l},e.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),x()):c},e.copy=function(){return d(s(),[a,h]).round(o).paddingInner(r).paddingOuter(l).align(c)},g.initRange.apply(x(),arguments)}var p=function(){var t=c.__name(function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],a=[1,6],h=[1,7],o=[1,5,10,12,14,16,18,19,21,23,34,35,36],r=[1,25],l=[1,26],g=[1,28],u=[1,29],x=[1,30],d=[1,31],p=[1,32],m=[1,33],f=[1,34],y=[1,35],_=[1,36],b=[1,37],A=[1,43],w=[1,42],S=[1,47],C=[1,50],k=[1,10,12,14,16,18,19,21,23,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],L={trace:c.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:c.__name(function(t,i,e,s,n,a,h){var o=a.length-1;switch(n){case 5:s.setOrientation(a[o]);break;case 9:s.setDiagramTitle(a[o].text.trim());break;case 12:s.setLineData({text:"",type:"text"},a[o]);break;case 13:s.setLineData(a[o-1],a[o]);break;case 14:s.setBarData({text:"",type:"text"},a[o]);break;case 15:s.setBarData(a[o-1],a[o]);break;case 16:this.$=a[o].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=a[o].trim(),s.setAccDescription(this.$);break;case 19:case 27:this.$=a[o-1];break;case 20:this.$=[Number(a[o-2]),...a[o]];break;case 21:this.$=[Number(a[o])];break;case 22:s.setXAxisTitle(a[o]);break;case 23:s.setXAxisTitle(a[o-1]);break;case 24:s.setXAxisTitle({type:"text",text:""});break;case 25:s.setXAxisBand(a[o]);break;case 26:s.setXAxisRangeData(Number(a[o-2]),Number(a[o]));break;case 28:this.$=[a[o-2],...a[o]];break;case 29:this.$=[a[o]];break;case 30:s.setYAxisTitle(a[o]);break;case 31:s.setYAxisTitle(a[o-1]);break;case 32:s.setYAxisTitle({type:"text",text:""});break;case 33:s.setYAxisRangeData(Number(a[o-2]),Number(a[o]));break;case 37:case 38:this.$={text:a[o],type:"text"};break;case 39:this.$={text:a[o],type:"markdown"};break;case 40:this.$=a[o];break;case 41:this.$=a[o-1]+""+a[o]}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:n,35:a,36:h}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:n,35:a,36:h}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:a,36:h}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(o,[2,34]),t(o,[2,35]),t(o,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:n,35:a,36:h}),{1:[2,3]},t(o,[2,5]),t(i,[2,7],{4:22,34:n,35:a,36:h}),{11:23,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{11:39,13:38,24:A,27:w,29:40,30:41,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{11:45,15:44,27:S,33:46,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{11:49,17:48,24:C,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{11:52,17:51,24:C,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{20:[1,53]},{22:[1,54]},t(k,[2,18]),{1:[2,2]},t(k,[2,8]),t(k,[2,9]),t(T,[2,37],{40:55,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b}),t(T,[2,38]),t(T,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(k,[2,10]),t(k,[2,22],{30:41,29:56,24:A,27:w}),t(k,[2,24]),t(k,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},t(k,[2,11]),t(k,[2,30],{33:60,27:S}),t(k,[2,32]),{31:[1,61]},t(k,[2,12]),{17:62,24:C},{25:63,27:D},t(k,[2,14]),{17:65,24:C},t(k,[2,16]),t(k,[2,17]),t(R,[2,41]),t(k,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(k,[2,31]),{27:[1,69]},t(k,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(k,[2,15]),t(k,[2,26]),t(k,[2,27]),{11:59,32:72,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},t(k,[2,33]),t(k,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:c.__name(function(t,i){if(!i.recoverable){var e=new Error(t);throw e.hash=i,e}this.trace(t)},"parseError"),parse:c.__name(function(t){var i=this,e=[0],s=[],n=[null],a=[],h=this.table,o="",r=0,l=0,g=a.slice.call(arguments,1),u=Object.create(this.lexer),x={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(x.yy[d]=this.yy[d]);u.setInput(t,x.yy),x.yy.lexer=u,x.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var p=u.yylloc;a.push(p);var m=u.options&&u.options.ranges;function f(){var t;return"number"!=typeof(t=s.pop()||u.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof x.yy.parseError?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,c.__name(function(t){e.length=e.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),c.__name(f,"lex");for(var y,_,b,A,w,S,C,k,T={};;){if(_=e[e.length-1],this.defaultActions[_]?b=this.defaultActions[_]:(null==y&&(y=f()),b=h[_]&&h[_][y]),void 0===b||!b.length||!b[0]){var R="";for(w in k=[],h[_])this.terminals_[w]&&w>2&&k.push("'"+this.terminals_[w]+"'");R=u.showPosition?"Parse error on line "+(r+1)+":\n"+u.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(r+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(R,{text:u.match,token:this.terminals_[y]||y,line:u.yylineno,loc:p,expected:k})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+y);switch(b[0]){case 1:e.push(y),n.push(u.yytext),a.push(u.yylloc),e.push(b[1]),y=null,l=u.yyleng,o=u.yytext,r=u.yylineno,p=u.yylloc;break;case 2:if(S=this.productions_[b[1]][1],T.$=n[n.length-S],T._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},m&&(T._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(T,[o,l,r,x.yy,b[1],n,a].concat(g))))return A;S&&(e=e.slice(0,-1*S*2),n=n.slice(0,-1*S),a=a.slice(0,-1*S)),e.push(this.productions_[b[1]][0]),n.push(T.$),a.push(T._$),C=h[e[e.length-2]][e[e.length-1]],e.push(C);break;case 3:return!0}}return!0},"parse")},P=function(){return{EOF:1,parseError:c.__name(function(t,i){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,i)},"parseError"),setInput:c.__name(function(t,i){return this.yy=i||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:c.__name(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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:c.__name(function(t){var i=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.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:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:c.__name(function(){return this._more=!0,this},"more"),reject:c.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:c.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:c.__name(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:c.__name(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:c.__name(function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"},"showPosition"),test_match:c.__name(function(t,i){var e,s,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))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in n)this[a]=n[a];return!1}return!1},"test_match"),next:c.__name(function(){if(this.done)return this.EOF;var t,i,e,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((e=this._input.match(this.rules[n[a]]))&&(!i||e[0].length>i[0].length)){if(i=e,s=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,n[a])))return t;if(this._backtrack){i=!1;continue}return!1}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:c.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:c.__name(function(t){this.conditionStack.push(t)},"begin"),popState:c.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:c.__name(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:c.__name(function(t){this.begin(t)},"pushState"),stateStackSize:c.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:c.__name(function(t,i,e,s){switch(e){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}}();function v(){this.yy={}}return L.lexer=P,c.__name(v,"Parser"),v.prototype=L,L.Parser=v,new v}();p.parser=p;var m=p;function f(t){return"bar"===t.type}function y(t){return"band"===t.type}function _(t){return"linear"===t.type}c.__name(f,"isBarPlot"),c.__name(y,"isBandAxisData"),c.__name(_,"isLinearAxisData");var b=(t=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((t,i)=>Math.max(i.length,t),0)*i,height:i};const e={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const n of t){const t=c.computeDimensionOfText(s,1,n),a=t?t.width:n.length*i,h=t?t.height:i;e.width=Math.max(e.width,a),e.height=Math.max(e.height,h)}return s.remove(),e}},c.__name(t,"TextDimensionCalculatorWithFont"),t),A=(i=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=.2*t.width;this.outerPadding=Math.min(e.width/2,s);const n=e.height+2*this.axisConfig.labelPadding;this.labelTextHeight=e.height,n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=.2*t.height;this.outerPadding=Math.min(e.height/2,s);const n=e.width+2*this.axisConfig.labelPadding;n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},c.__name(i,"BaseAxis"),i),w=(e=class extends A{constructor(t,i,e,s,n){super(t,s,n,i),this.categories=e,this.scale=d().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=d().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),c.log.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},c.__name(e,"BandAxis"),e),S=(s=class extends A{constructor(t,i,e,s,n){super(t,s,n,i),this.domain=e,this.scale=x.linear().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=x.linear().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},c.__name(s,"LinearAxis"),s);function C(t,i,e,s){const n=new b(s);return y(t)?new w(i,e,t.categories,t.title,n):new S(i,e,[t.min,t.max],t.title,n)}c.__name(C,"getAxis");var k=(n=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},c.__name(n,"ChartTitle"),n);function T(t,i,e,s){const n=new b(s);return new k(n,t,i,e)}c.__name(T,"getChartTitleComponent");var R=(a=class{constructor(t,i,e,s,n){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=n}getDrawableElement(){const t=this.plotData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]);let i;return i="horizontal"===this.orientation?c.line().y(t=>t[0]).x(t=>t[1])(t):c.line().x(t=>t[0]).y(t=>t[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},c.__name(a,"LinePlot"),a),D=(h=class{constructor(t,i,e,s,n,a){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=n,this.plotIndex=a}getDrawableElement(){const t=this.barData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]),i=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),e=i/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:this.boundingRect.x,y:t[0]-e,height:i,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:t[0]-e,y:t[1],width:i,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},c.__name(h,"BarPlot"),h),L=(o=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");const t=[];for(const[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{const s=new R(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{const s=new D(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}}return t}},c.__name(o,"BasePlot"),o);function P(t,i,e){return new L(t,i,e)}c.__name(P,"getPlotComponent");var v,E=(r=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:T(t,i,e,s),plot:P(t,i,e),xAxis:C(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:C(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:n,height:a});t-=h.width,i-=h.height,h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=h.height,i-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=h.height,this.componentStore.yAxis.setAxisPosition("left"),h=this.componentStore.yAxis.calculateSpace({width:t,height:i}),e=h.width,t-=h.width,t>0&&(n+=t,t=0),i>0&&(a+=i,i=0),this.componentStore.plot.calculateSpace({width:n,height:a}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.xAxis.setRange([e,e+n]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+a}),this.componentStore.yAxis.setRange([s,s+a]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(t=>f(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n=0,a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:a,height:h});t-=o.width,i-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),e=o.height,i-=o.height,this.componentStore.xAxis.setAxisPosition("left"),o=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=o.width,s=o.width,this.componentStore.yAxis.setAxisPosition("top"),o=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=o.height,n=e+o.height,t>0&&(a+=t,t=0),i>0&&(h+=i,i=0),this.componentStore.plot.calculateSpace({width:a,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.yAxis.setRange([s,s+a]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([n,n+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(t=>f(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},c.__name(r,"Orchestrator"),r),M=(l=class{static build(t,i,e,s){return new E(t,i,e,s).getDrawableElement()}},c.__name(l,"XYChartBuilder"),l),I=0,$=N(),B=X(),z=V(),O=B.plotColorPalette.split(",").map(t=>t.trim()),W=!1,F=!1;function X(){const t=c.getThemeVariables3(),i=c.getConfig();return c.cleanAndMerge(t.xyChart,i.themeVariables.xyChart)}function N(){const t=c.getConfig();return c.cleanAndMerge(c.defaultConfig_default.xyChart,t.xyChart)}function V(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function Y(t){const i=c.getConfig();return c.sanitizeText(t.trim(),i)}function U(t){v=t}function H(t){$.chartOrientation="horizontal"===t?"horizontal":"vertical"}function j(t){z.xAxis.title=Y(t.text)}function G(t,i){z.xAxis={type:"linear",title:z.xAxis.title,min:t,max:i},W=!0}function Q(t){z.xAxis={type:"band",title:z.xAxis.title,categories:t.map(t=>Y(t.text))},W=!0}function q(t){z.yAxis.title=Y(t.text)}function K(t,i){z.yAxis={type:"linear",title:z.yAxis.title,min:t,max:i},F=!0}function Z(t){const i=Math.min(...t),e=Math.max(...t),s=_(z.yAxis)?z.yAxis.min:1/0,n=_(z.yAxis)?z.yAxis.max:-1/0;z.yAxis={type:"linear",title:z.yAxis.title,min:Math.min(s,i),max:Math.max(n,e)}}function J(t){let i=[];if(0===t.length)return i;if(!W){const i=_(z.xAxis)?z.xAxis.min:1/0,e=_(z.xAxis)?z.xAxis.max:-1/0;G(Math.min(i,1),Math.max(e,t.length))}if(F||Z(t),y(z.xAxis)&&(i=z.xAxis.categories.map((i,e)=>[i,t[e]])),_(z.xAxis)){const e=z.xAxis.min,s=z.xAxis.max,n=(s-e)/(t.length-1),a=[];for(let t=e;t<=s;t+=n)a.push(`${t}`);i=a.map((i,e)=>[i,t[e]])}return i}function tt(t){return O[0===t?0:t%O.length]}function it(t,i){const e=J(i);z.plots.push({type:"line",strokeFill:tt(I),strokeWidth:2,data:e}),I++}function et(t,i){const e=J(i);z.plots.push({type:"bar",fill:tt(I),data:e}),I++}function st(){if(0===z.plots.length)throw Error("No Plot to render, please provide a plot with some data");return z.title=c.getDiagramTitle(),M.build($,z,B,v)}function nt(){return B}function at(){return $}function ht(){return z}c.__name(X,"getChartDefaultThemeConfig"),c.__name(N,"getChartDefaultConfig"),c.__name(V,"getChartDefaultData"),c.__name(Y,"textSanitizer"),c.__name(U,"setTmpSVGG"),c.__name(H,"setOrientation"),c.__name(j,"setXAxisTitle"),c.__name(G,"setXAxisRangeData"),c.__name(Q,"setXAxisBand"),c.__name(q,"setYAxisTitle"),c.__name(K,"setYAxisRangeData"),c.__name(Z,"setYAxisRangeFromPlotData"),c.__name(J,"transformDataWithoutCategory"),c.__name(tt,"getPlotColorFromPalette"),c.__name(it,"setLineData"),c.__name(et,"setBarData"),c.__name(st,"getDrawableElem"),c.__name(nt,"getChartThemeConfig"),c.__name(at,"getChartConfig"),c.__name(ht,"getXYChartData");var ot={parser:m,db:{getDrawableElem:st,clear:c.__name(function(){c.clear(),I=0,$=N(),z={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},B=X(),O=B.plotColorPalette.split(",").map(t=>t.trim()),W=!1,F=!1},"clear"),setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription,setOrientation:H,setXAxisTitle:j,setXAxisRangeData:G,setXAxisBand:Q,setYAxisTitle:q,setYAxisRangeData:K,setLineData:it,setBarData:et,setTmpSVGG:U,getChartThemeConfig:nt,getChartConfig:at,getXYChartData:ht},renderer:{draw:c.__name((t,i,e,s)=>{const n=s.db,a=n.getChartThemeConfig(),h=n.getChartConfig(),o=n.getXYChartData().plots[0].data.map(t=>t[1]);function r(t){return"top"===t?"text-before-edge":"middle"}function l(t){return"left"===t?"start":"right"===t?"end":"middle"}function g(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}c.__name(r,"getDominantBaseLine"),c.__name(l,"getTextAnchor"),c.__name(g,"getTextTransformation"),c.log.debug("Rendering xychart chart\n"+t);const u=c.selectSvgElement(i),x=u.append("g").attr("class","main"),d=x.append("rect").attr("width",h.width).attr("height",h.height).attr("class","background");c.configureSvgSize(u,h.height,h.width,!0),u.attr("viewBox",`0 0 ${h.width} ${h.height}`),d.attr("fill",a.backgroundColor),n.setTmpSVGG(u.append("g").attr("class","mermaid-tmp-group"));const p=n.getDrawableElem(),m={};function f(t){let i=x,e="";for(const[s]of t.entries()){let n=x;s>0&&m[e]&&(n=m[e]),e+=t[s],i=m[e],i||(i=m[e]=n.append("g").attr("class",t[s]))}return i}c.__name(f,"getGroup");for(const y of p){if(0===y.data.length)continue;const t=f(y.groupTexts);switch(y.type){case"rect":if(t.selectAll("rect").data(y.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth),h.showDataLabel)if("horizontal"===h.chartOrientation){let i=function(t,i){const{data:s,label:n}=t;return i*n.length*e<=s.width-10};c.__name(i,"fitsHorizontally");const e=.7,s=y.data.map((t,i)=>({data:t,label:o[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),n=s.map(t=>{const{data:e}=t;let s=.7*e.height;for(;!i(t,s)&&s>0;)s-=1;return s}),a=Math.floor(Math.min(...n));t.selectAll("text").data(s).enter().append("text").attr("x",t=>t.data.x+t.data.width-10).attr("y",t=>t.data.y+t.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${a}px`).text(t=>t.label)}else{let i=function(t,i,e){const{data:s,label:n}=t,a=i*n.length*.7,h=s.x+s.width/2,o=h+a/2,r=h-a/2>=s.x&&o<=s.x+s.width,l=s.y+e+i<=s.y+s.height;return r&&l};c.__name(i,"fitsInBar");const e=10,s=y.data.map((t,i)=>({data:t,label:o[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),n=s.map(t=>{const{data:s,label:n}=t;let a=s.width/(.7*n.length);for(;!i(t,a,e)&&a>0;)a-=1;return a}),a=Math.floor(Math.min(...n));t.selectAll("text").data(s).enter().append("text").attr("x",t=>t.data.x+t.data.width/2).attr("y",t=>t.data.y+e).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${a}px`).text(t=>t.label)}break;case"text":t.selectAll("text").data(y.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>r(t.verticalPos)).attr("text-anchor",t=>l(t.horizontalPos)).attr("transform",t=>g(t)).text(t=>t.text);break;case"path":t.selectAll("path").data(y.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill?t.fill:"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw")}};exports.diagram=ot;
2
- //# sourceMappingURL=xychartDiagram-PRI3JC2R-DPXNUchU.cjs.map
1
+ "use strict";var t,i,e,s,n,a,h,o,r,l;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-DBmfYPjr.cjs"),g=require("./init-DZ96s0AS.cjs"),u=require("./ordinal-BZdahNih.cjs"),x=require("./linear-D8E_synt.cjs");function d(){var t,i,e=u.ordinal().unknown(void 0),s=e.domain,n=e.range,a=0,h=1,o=!1,r=0,l=0,c=.5;function x(){var e=s().length,g=h<a,u=g?h:a,x=g?a:h;t=(x-u)/Math.max(1,e-r+2*l),o&&(t=Math.floor(t)),u+=(x-u-t*(e-r))*c,i=t*(1-r),o&&(u=Math.round(u),i=Math.round(i));var d=function(t,i,e){t=+t,i=+i,e=(n=arguments.length)<2?(i=t,t=0,1):n<3?1:+e;for(var s=-1,n=0|Math.max(0,Math.ceil((i-t)/e)),a=new Array(n);++s<n;)a[s]=t+s*e;return a}(e).map(function(i){return u+t*i});return n(g?d.reverse():d)}return delete e.unknown,e.domain=function(t){return arguments.length?(s(t),x()):s()},e.range=function(t){return arguments.length?([a,h]=t,a=+a,h=+h,x()):[a,h]},e.rangeRound=function(t){return[a,h]=t,a=+a,h=+h,o=!0,x()},e.bandwidth=function(){return i},e.step=function(){return t},e.round=function(t){return arguments.length?(o=!!t,x()):o},e.padding=function(t){return arguments.length?(r=Math.min(1,l=+t),x()):r},e.paddingInner=function(t){return arguments.length?(r=Math.min(1,t),x()):r},e.paddingOuter=function(t){return arguments.length?(l=+t,x()):l},e.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),x()):c},e.copy=function(){return d(s(),[a,h]).round(o).paddingInner(r).paddingOuter(l).align(c)},g.initRange.apply(x(),arguments)}var p=function(){var t=c.__name(function(t,i,e,s){for(e=e||{},s=t.length;s--;e[t[s]]=i);return e},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],n=[1,5],a=[1,6],h=[1,7],o=[1,5,10,12,14,16,18,19,21,23,34,35,36],r=[1,25],l=[1,26],g=[1,28],u=[1,29],x=[1,30],d=[1,31],p=[1,32],m=[1,33],f=[1,34],y=[1,35],_=[1,36],b=[1,37],A=[1,43],w=[1,42],S=[1,47],C=[1,50],k=[1,10,12,14,16,18,19,21,23,34,35,36],T=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],R=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],D=[1,64],L={trace:c.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:c.__name(function(t,i,e,s,n,a,h){var o=a.length-1;switch(n){case 5:s.setOrientation(a[o]);break;case 9:s.setDiagramTitle(a[o].text.trim());break;case 12:s.setLineData({text:"",type:"text"},a[o]);break;case 13:s.setLineData(a[o-1],a[o]);break;case 14:s.setBarData({text:"",type:"text"},a[o]);break;case 15:s.setBarData(a[o-1],a[o]);break;case 16:this.$=a[o].trim(),s.setAccTitle(this.$);break;case 17:case 18:this.$=a[o].trim(),s.setAccDescription(this.$);break;case 19:case 27:this.$=a[o-1];break;case 20:this.$=[Number(a[o-2]),...a[o]];break;case 21:this.$=[Number(a[o])];break;case 22:s.setXAxisTitle(a[o]);break;case 23:s.setXAxisTitle(a[o-1]);break;case 24:s.setXAxisTitle({type:"text",text:""});break;case 25:s.setXAxisBand(a[o]);break;case 26:s.setXAxisRangeData(Number(a[o-2]),Number(a[o]));break;case 28:this.$=[a[o-2],...a[o]];break;case 29:this.$=[a[o]];break;case 30:s.setYAxisTitle(a[o]);break;case 31:s.setYAxisTitle(a[o-1]);break;case 32:s.setYAxisTitle({type:"text",text:""});break;case 33:s.setYAxisRangeData(Number(a[o-2]),Number(a[o]));break;case 37:case 38:this.$={text:a[o],type:"text"};break;case 39:this.$={text:a[o],type:"markdown"};break;case 40:this.$=a[o];break;case 41:this.$=a[o-1]+""+a[o]}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:n,35:a,36:h}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:n,35:a,36:h}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:n,35:a,36:h}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(o,[2,34]),t(o,[2,35]),t(o,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:n,35:a,36:h}),{1:[2,3]},t(o,[2,5]),t(i,[2,7],{4:22,34:n,35:a,36:h}),{11:23,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{11:39,13:38,24:A,27:w,29:40,30:41,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{11:45,15:44,27:S,33:46,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{11:49,17:48,24:C,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{11:52,17:51,24:C,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},{20:[1,53]},{22:[1,54]},t(k,[2,18]),{1:[2,2]},t(k,[2,8]),t(k,[2,9]),t(T,[2,37],{40:55,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b}),t(T,[2,38]),t(T,[2,39]),t(R,[2,40]),t(R,[2,42]),t(R,[2,43]),t(R,[2,44]),t(R,[2,45]),t(R,[2,46]),t(R,[2,47]),t(R,[2,48]),t(R,[2,49]),t(R,[2,50]),t(R,[2,51]),t(k,[2,10]),t(k,[2,22],{30:41,29:56,24:A,27:w}),t(k,[2,24]),t(k,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},t(k,[2,11]),t(k,[2,30],{33:60,27:S}),t(k,[2,32]),{31:[1,61]},t(k,[2,12]),{17:62,24:C},{25:63,27:D},t(k,[2,14]),{17:65,24:C},t(k,[2,16]),t(k,[2,17]),t(R,[2,41]),t(k,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(k,[2,31]),{27:[1,69]},t(k,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(k,[2,15]),t(k,[2,26]),t(k,[2,27]),{11:59,32:72,37:24,38:r,39:l,40:27,41:g,42:u,43:x,44:d,45:p,46:m,47:f,48:y,49:_,50:b},t(k,[2,33]),t(k,[2,19]),{25:73,27:D},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:c.__name(function(t,i){if(!i.recoverable){var e=new Error(t);throw e.hash=i,e}this.trace(t)},"parseError"),parse:c.__name(function(t){var i=this,e=[0],s=[],n=[null],a=[],h=this.table,o="",r=0,l=0,g=a.slice.call(arguments,1),u=Object.create(this.lexer),x={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(x.yy[d]=this.yy[d]);u.setInput(t,x.yy),x.yy.lexer=u,x.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var p=u.yylloc;a.push(p);var m=u.options&&u.options.ranges;function f(){var t;return"number"!=typeof(t=s.pop()||u.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=i.symbols_[t]||t),t}"function"==typeof x.yy.parseError?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,c.__name(function(t){e.length=e.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),c.__name(f,"lex");for(var y,_,b,A,w,S,C,k,T={};;){if(_=e[e.length-1],this.defaultActions[_]?b=this.defaultActions[_]:(null==y&&(y=f()),b=h[_]&&h[_][y]),void 0===b||!b.length||!b[0]){var R="";for(w in k=[],h[_])this.terminals_[w]&&w>2&&k.push("'"+this.terminals_[w]+"'");R=u.showPosition?"Parse error on line "+(r+1)+":\n"+u.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(r+1)+": Unexpected "+(1==y?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(R,{text:u.match,token:this.terminals_[y]||y,line:u.yylineno,loc:p,expected:k})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+y);switch(b[0]){case 1:e.push(y),n.push(u.yytext),a.push(u.yylloc),e.push(b[1]),y=null,l=u.yyleng,o=u.yytext,r=u.yylineno,p=u.yylloc;break;case 2:if(S=this.productions_[b[1]][1],T.$=n[n.length-S],T._$={first_line:a[a.length-(S||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(S||1)].first_column,last_column:a[a.length-1].last_column},m&&(T._$.range=[a[a.length-(S||1)].range[0],a[a.length-1].range[1]]),void 0!==(A=this.performAction.apply(T,[o,l,r,x.yy,b[1],n,a].concat(g))))return A;S&&(e=e.slice(0,-1*S*2),n=n.slice(0,-1*S),a=a.slice(0,-1*S)),e.push(this.productions_[b[1]][0]),n.push(T.$),a.push(T._$),C=h[e[e.length-2]][e[e.length-1]],e.push(C);break;case 3:return!0}}return!0},"parse")},P=function(){return{EOF:1,parseError:c.__name(function(t,i){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,i)},"parseError"),setInput:c.__name(function(t,i){return this.yy=i||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:c.__name(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(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:c.__name(function(t){var i=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.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:e?(e.length===s.length?this.yylloc.first_column:0)+s[s.length-e.length].length-e[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:c.__name(function(){return this._more=!0,this},"more"),reject:c.__name(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:c.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:c.__name(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:c.__name(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:c.__name(function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"},"showPosition"),test_match:c.__name(function(t,i){var e,s,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))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,i,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in n)this[a]=n[a];return!1}return!1},"test_match"),next:c.__name(function(){if(this.done)return this.EOF;var t,i,e,s;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((e=this._input.match(this.rules[n[a]]))&&(!i||e[0].length>i[0].length)){if(i=e,s=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(e,n[a])))return t;if(this._backtrack){i=!1;continue}return!1}if(!this.options.flex)break}return i?!1!==(t=this.test_match(i,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:c.__name(function(){var t=this.next();return t||this.lex()},"lex"),begin:c.__name(function(t){this.conditionStack.push(t)},"begin"),popState:c.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:c.__name(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:c.__name(function(t){this.begin(t)},"pushState"),stateStackSize:c.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:c.__name(function(t,i,e,s){switch(e){case 0:case 1:case 5:case 44:break;case 2:case 3:return this.popState(),34;case 4:return 34;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:case 26:case 28:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";case 18:return this.pushState("axis_data"),"Y_AXIS";case 19:return this.pushState("axis_band_data"),24;case 20:return 31;case 21:return this.pushState("data"),16;case 22:return this.pushState("data"),18;case 23:return this.pushState("data_inner"),24;case 24:return 27;case 25:return this.popState(),26;case 27:this.pushState("string");break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 43;case 33:return"COLON";case 34:return 44;case 35:return 28;case 36:return 45;case 37:return 46;case 38:return 48;case 39:return 50;case 40:return 47;case 41:return 41;case 42:return 49;case 43:return 42;case 45:return 35;case 46:return 36}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}}}();function v(){this.yy={}}return L.lexer=P,c.__name(v,"Parser"),v.prototype=L,L.Parser=v,new v}();p.parser=p;var m=p;function f(t){return"bar"===t.type}function y(t){return"band"===t.type}function _(t){return"linear"===t.type}c.__name(f,"isBarPlot"),c.__name(y,"isBandAxisData"),c.__name(_,"isLinearAxisData");var b=(t=class{constructor(t){this.parentGroup=t}getMaxDimension(t,i){if(!this.parentGroup)return{width:t.reduce((t,i)=>Math.max(i.length,t),0)*i,height:i};const e={width:0,height:0},s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const n of t){const t=c.computeDimensionOfText(s,1,n),a=t?t.width:n.length*i,h=t?t.height:i;e.width=Math.max(e.width,a),e.height=Math.max(e.height,h)}return s.remove(),e}},c.__name(t,"TextDimensionCalculatorWithFont"),t),A=(i=class{constructor(t,i,e,s){this.axisConfig=t,this.title=i,this.textDimensionCalculator=e,this.axisThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left"}setRange(t){this.range=t,"left"===this.axisPosition||"right"===this.axisPosition?this.boundingRect.height=t[1]-t[0]:this.boundingRect.width=t[1]-t[0],this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(t){this.axisPosition=t,this.setRange(this.range)}getTickDistance(){const t=this.getRange();return Math.abs(t[0]-t[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map(t=>t.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){.7*this.getTickDistance()>2*this.outerPadding&&(this.outerPadding=Math.floor(.7*this.getTickDistance()/2)),this.recalculateScale()}calculateSpaceIfDrawnHorizontally(t){let i=t.height;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=.2*t.width;this.outerPadding=Math.min(e.width/2,s);const n=e.height+2*this.axisConfig.labelPadding;this.labelTextHeight=e.height,n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width,this.boundingRect.height=t.height-i}calculateSpaceIfDrawnVertical(t){let i=t.width;if(this.axisConfig.showAxisLine&&i>this.axisConfig.axisLineWidth&&(i-=this.axisConfig.axisLineWidth,this.showAxisLine=!0),this.axisConfig.showLabel){const e=this.getLabelDimension(),s=.2*t.height;this.outerPadding=Math.min(e.height/2,s);const n=e.width+2*this.axisConfig.labelPadding;n<=i&&(i-=n,this.showLabel=!0)}if(this.axisConfig.showTick&&i>=this.axisConfig.tickLength&&(this.showTick=!0,i-=this.axisConfig.tickLength),this.axisConfig.showTitle&&this.title){const t=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),e=t.height+2*this.axisConfig.titlePadding;this.titleTextHeight=t.height,e<=i&&(i-=e,this.showTitle=!0)}this.boundingRect.width=t.width-i,this.boundingRect.height=t.height}calculateSpace(t){return"left"===this.axisPosition||"right"===this.axisPosition?this.calculateSpaceIfDrawnVertical(t):this.calculateSpaceIfDrawnHorizontally(t),this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}getDrawableElementsForLeftAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${i},${this.boundingRect.y} L ${i},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(t),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))}),this.showTick){const i=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${i},${this.getScaleValue(t)} L ${i-this.axisConfig.tickLength},${this.getScaleValue(t)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForBottomAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);t.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i} L ${this.getScaleValue(t)},${i+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElementsForTopAxis(){const t=[];if(this.showAxisLine){const i=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;t.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${i} L ${this.boundingRect.x+this.boundingRect.width},${i}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel&&t.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map(t=>({text:t.toString(),x:this.getScaleValue(t),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+2*this.axisConfig.titlePadding:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))}),this.showTick){const i=this.boundingRect.y;t.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map(t=>({path:`M ${this.getScaleValue(t)},${i+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(t)},${i+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}return this.showTitle&&t.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]}),t}getDrawableElements(){if("left"===this.axisPosition)return this.getDrawableElementsForLeftAxis();if("right"===this.axisPosition)throw Error("Drawing of right axis is not implemented");return"bottom"===this.axisPosition?this.getDrawableElementsForBottomAxis():"top"===this.axisPosition?this.getDrawableElementsForTopAxis():[]}},c.__name(i,"BaseAxis"),i),w=(e=class extends A{constructor(t,i,e,s,n){super(t,s,n,i),this.categories=e,this.scale=d().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=d().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5),c.log.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(t){return this.scale(t)??this.getRange()[0]}},c.__name(e,"BandAxis"),e),S=(s=class extends A{constructor(t,i,e,s,n){super(t,s,n,i),this.domain=e,this.scale=x.linear().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){const t=[...this.domain];"left"===this.axisPosition&&t.reverse(),this.scale=x.linear().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}},c.__name(s,"LinearAxis"),s);function C(t,i,e,s){const n=new b(s);return y(t)?new w(i,e,t.categories,t.title,n):new S(i,e,[t.min,t.max],t.title,n)}c.__name(C,"getAxis");var k=(n=class{constructor(t,i,e,s){this.textDimensionCalculator=t,this.chartConfig=i,this.chartData=e,this.chartThemeConfig=s,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){const i=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),e=Math.max(i.width,t.width),s=i.height+2*this.chartConfig.titlePadding;return i.width<=e&&i.height<=s&&this.chartConfig.showTitle&&this.chartData.title&&(this.boundingRect.width=e,this.boundingRect.height=s,this.showChartTitle=!0),{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){const t=[];return this.showChartTitle&&t.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]}),t}},c.__name(n,"ChartTitle"),n);function T(t,i,e,s){const n=new b(s);return new k(n,t,i,e)}c.__name(T,"getChartTitleComponent");var R=(a=class{constructor(t,i,e,s,n){this.plotData=t,this.xAxis=i,this.yAxis=e,this.orientation=s,this.plotIndex=n}getDrawableElement(){const t=this.plotData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]);let i;return i="horizontal"===this.orientation?c.line().y(t=>t[0]).x(t=>t[1])(t):c.line().x(t=>t[0]).y(t=>t[1])(t),i?[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:i,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}]:[]}},c.__name(a,"LinePlot"),a),D=(h=class{constructor(t,i,e,s,n,a){this.barData=t,this.boundingRect=i,this.xAxis=e,this.yAxis=s,this.orientation=n,this.plotIndex=a}getDrawableElement(){const t=this.barData.data.map(t=>[this.xAxis.getScaleValue(t[0]),this.yAxis.getScaleValue(t[1])]),i=.95*Math.min(2*this.xAxis.getAxisOuterPadding(),this.xAxis.getTickDistance()),e=i/2;return"horizontal"===this.orientation?[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:this.boundingRect.x,y:t[0]-e,height:i,width:t[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]:[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:t.map(t=>({x:t[0]-e,y:t[1],width:i,height:this.boundingRect.y+this.boundingRect.height-t[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},c.__name(h,"BarPlot"),h),L=(o=class{constructor(t,i,e){this.chartConfig=t,this.chartData=i,this.chartThemeConfig=e,this.boundingRect={x:0,y:0,width:0,height:0}}setAxes(t,i){this.xAxis=t,this.yAxis=i}setBoundingBoxXY(t){this.boundingRect.x=t.x,this.boundingRect.y=t.y}calculateSpace(t){return this.boundingRect.width=t.width,this.boundingRect.height=t.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!this.xAxis||!this.yAxis)throw Error("Axes must be passed to render Plots");const t=[];for(const[i,e]of this.chartData.plots.entries())switch(e.type){case"line":{const s=new R(e,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break;case"bar":{const s=new D(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}}return t}},c.__name(o,"BasePlot"),o);function P(t,i,e){return new L(t,i,e)}c.__name(P,"getPlotComponent");var v,E=(r=class{constructor(t,i,e,s){this.chartConfig=t,this.chartData=i,this.componentStore={title:T(t,i,e,s),plot:P(t,i,e),xAxis:C(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:C(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}calculateVerticalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),a=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),h=this.componentStore.plot.calculateSpace({width:n,height:a});t-=h.width,i-=h.height,h=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),s=h.height,i-=h.height,this.componentStore.xAxis.setAxisPosition("bottom"),h=this.componentStore.xAxis.calculateSpace({width:t,height:i}),i-=h.height,this.componentStore.yAxis.setAxisPosition("left"),h=this.componentStore.yAxis.calculateSpace({width:t,height:i}),e=h.width,t-=h.width,t>0&&(n+=t,t=0),i>0&&(a+=i,i=0),this.componentStore.plot.calculateSpace({width:n,height:a}),this.componentStore.plot.setBoundingBoxXY({x:e,y:s}),this.componentStore.xAxis.setRange([e,e+n]),this.componentStore.xAxis.setBoundingBoxXY({x:e,y:s+a}),this.componentStore.yAxis.setRange([s,s+a]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:s}),this.chartData.plots.some(t=>f(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let t=this.chartConfig.width,i=this.chartConfig.height,e=0,s=0,n=0,a=Math.floor(t*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(i*this.chartConfig.plotReservedSpacePercent/100),o=this.componentStore.plot.calculateSpace({width:a,height:h});t-=o.width,i-=o.height,o=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:i}),e=o.height,i-=o.height,this.componentStore.xAxis.setAxisPosition("left"),o=this.componentStore.xAxis.calculateSpace({width:t,height:i}),t-=o.width,s=o.width,this.componentStore.yAxis.setAxisPosition("top"),o=this.componentStore.yAxis.calculateSpace({width:t,height:i}),i-=o.height,n=e+o.height,t>0&&(a+=t,t=0),i>0&&(h+=i,i=0),this.componentStore.plot.calculateSpace({width:a,height:h}),this.componentStore.plot.setBoundingBoxXY({x:s,y:n}),this.componentStore.yAxis.setRange([s,s+a]),this.componentStore.yAxis.setBoundingBoxXY({x:s,y:e}),this.componentStore.xAxis.setRange([n,n+h]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:n}),this.chartData.plots.some(t=>f(t))&&this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){"horizontal"===this.chartConfig.chartOrientation?this.calculateHorizontalSpace():this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();const t=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(const i of Object.values(this.componentStore))t.push(...i.getDrawableElements());return t}},c.__name(r,"Orchestrator"),r),M=(l=class{static build(t,i,e,s){return new E(t,i,e,s).getDrawableElement()}},c.__name(l,"XYChartBuilder"),l),I=0,$=N(),B=X(),z=V(),O=B.plotColorPalette.split(",").map(t=>t.trim()),W=!1,F=!1;function X(){const t=c.getThemeVariables3(),i=c.getConfig();return c.cleanAndMerge(t.xyChart,i.themeVariables.xyChart)}function N(){const t=c.getConfig();return c.cleanAndMerge(c.defaultConfig_default.xyChart,t.xyChart)}function V(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function Y(t){const i=c.getConfig();return c.sanitizeText(t.trim(),i)}function U(t){v=t}function H(t){$.chartOrientation="horizontal"===t?"horizontal":"vertical"}function j(t){z.xAxis.title=Y(t.text)}function G(t,i){z.xAxis={type:"linear",title:z.xAxis.title,min:t,max:i},W=!0}function Q(t){z.xAxis={type:"band",title:z.xAxis.title,categories:t.map(t=>Y(t.text))},W=!0}function q(t){z.yAxis.title=Y(t.text)}function K(t,i){z.yAxis={type:"linear",title:z.yAxis.title,min:t,max:i},F=!0}function Z(t){const i=Math.min(...t),e=Math.max(...t),s=_(z.yAxis)?z.yAxis.min:1/0,n=_(z.yAxis)?z.yAxis.max:-1/0;z.yAxis={type:"linear",title:z.yAxis.title,min:Math.min(s,i),max:Math.max(n,e)}}function J(t){let i=[];if(0===t.length)return i;if(!W){const i=_(z.xAxis)?z.xAxis.min:1/0,e=_(z.xAxis)?z.xAxis.max:-1/0;G(Math.min(i,1),Math.max(e,t.length))}if(F||Z(t),y(z.xAxis)&&(i=z.xAxis.categories.map((i,e)=>[i,t[e]])),_(z.xAxis)){const e=z.xAxis.min,s=z.xAxis.max,n=(s-e)/(t.length-1),a=[];for(let t=e;t<=s;t+=n)a.push(`${t}`);i=a.map((i,e)=>[i,t[e]])}return i}function tt(t){return O[0===t?0:t%O.length]}function it(t,i){const e=J(i);z.plots.push({type:"line",strokeFill:tt(I),strokeWidth:2,data:e}),I++}function et(t,i){const e=J(i);z.plots.push({type:"bar",fill:tt(I),data:e}),I++}function st(){if(0===z.plots.length)throw Error("No Plot to render, please provide a plot with some data");return z.title=c.getDiagramTitle(),M.build($,z,B,v)}function nt(){return B}function at(){return $}function ht(){return z}c.__name(X,"getChartDefaultThemeConfig"),c.__name(N,"getChartDefaultConfig"),c.__name(V,"getChartDefaultData"),c.__name(Y,"textSanitizer"),c.__name(U,"setTmpSVGG"),c.__name(H,"setOrientation"),c.__name(j,"setXAxisTitle"),c.__name(G,"setXAxisRangeData"),c.__name(Q,"setXAxisBand"),c.__name(q,"setYAxisTitle"),c.__name(K,"setYAxisRangeData"),c.__name(Z,"setYAxisRangeFromPlotData"),c.__name(J,"transformDataWithoutCategory"),c.__name(tt,"getPlotColorFromPalette"),c.__name(it,"setLineData"),c.__name(et,"setBarData"),c.__name(st,"getDrawableElem"),c.__name(nt,"getChartThemeConfig"),c.__name(at,"getChartConfig"),c.__name(ht,"getXYChartData");var ot={parser:m,db:{getDrawableElem:st,clear:c.__name(function(){c.clear(),I=0,$=N(),z={yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]},B=X(),O=B.plotColorPalette.split(",").map(t=>t.trim()),W=!1,F=!1},"clear"),setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription,setOrientation:H,setXAxisTitle:j,setXAxisRangeData:G,setXAxisBand:Q,setYAxisTitle:q,setYAxisRangeData:K,setLineData:it,setBarData:et,setTmpSVGG:U,getChartThemeConfig:nt,getChartConfig:at,getXYChartData:ht},renderer:{draw:c.__name((t,i,e,s)=>{const n=s.db,a=n.getChartThemeConfig(),h=n.getChartConfig(),o=n.getXYChartData().plots[0].data.map(t=>t[1]);function r(t){return"top"===t?"text-before-edge":"middle"}function l(t){return"left"===t?"start":"right"===t?"end":"middle"}function g(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}c.__name(r,"getDominantBaseLine"),c.__name(l,"getTextAnchor"),c.__name(g,"getTextTransformation"),c.log.debug("Rendering xychart chart\n"+t);const u=c.selectSvgElement(i),x=u.append("g").attr("class","main"),d=x.append("rect").attr("width",h.width).attr("height",h.height).attr("class","background");c.configureSvgSize(u,h.height,h.width,!0),u.attr("viewBox",`0 0 ${h.width} ${h.height}`),d.attr("fill",a.backgroundColor),n.setTmpSVGG(u.append("g").attr("class","mermaid-tmp-group"));const p=n.getDrawableElem(),m={};function f(t){let i=x,e="";for(const[s]of t.entries()){let n=x;s>0&&m[e]&&(n=m[e]),e+=t[s],i=m[e],i||(i=m[e]=n.append("g").attr("class",t[s]))}return i}c.__name(f,"getGroup");for(const y of p){if(0===y.data.length)continue;const t=f(y.groupTexts);switch(y.type){case"rect":if(t.selectAll("rect").data(y.data).enter().append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill).attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth),h.showDataLabel)if("horizontal"===h.chartOrientation){let i=function(t,i){const{data:s,label:n}=t;return i*n.length*e<=s.width-10};c.__name(i,"fitsHorizontally");const e=.7,s=y.data.map((t,i)=>({data:t,label:o[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),n=s.map(t=>{const{data:e}=t;let s=.7*e.height;for(;!i(t,s)&&s>0;)s-=1;return s}),a=Math.floor(Math.min(...n));t.selectAll("text").data(s).enter().append("text").attr("x",t=>t.data.x+t.data.width-10).attr("y",t=>t.data.y+t.data.height/2).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${a}px`).text(t=>t.label)}else{let i=function(t,i,e){const{data:s,label:n}=t,a=i*n.length*.7,h=s.x+s.width/2,o=h+a/2,r=h-a/2>=s.x&&o<=s.x+s.width,l=s.y+e+i<=s.y+s.height;return r&&l};c.__name(i,"fitsInBar");const e=10,s=y.data.map((t,i)=>({data:t,label:o[i].toString()})).filter(t=>t.data.width>0&&t.data.height>0),n=s.map(t=>{const{data:s,label:n}=t;let a=s.width/(.7*n.length);for(;!i(t,a,e)&&a>0;)a-=1;return a}),a=Math.floor(Math.min(...n));t.selectAll("text").data(s).enter().append("text").attr("x",t=>t.data.x+t.data.width/2).attr("y",t=>t.data.y+e).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${a}px`).text(t=>t.label)}break;case"text":t.selectAll("text").data(y.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>r(t.verticalPos)).attr("text-anchor",t=>l(t.horizontalPos)).attr("transform",t=>g(t)).text(t=>t.text);break;case"path":t.selectAll("path").data(y.data).enter().append("path").attr("d",t=>t.path).attr("fill",t=>t.fill?t.fill:"none").attr("stroke",t=>t.strokeFill).attr("stroke-width",t=>t.strokeWidth)}}},"draw")}};exports.diagram=ot;
2
+ //# sourceMappingURL=xychartDiagram-PRI3JC2R-haWlXFUn.cjs.map
@@ -1,8 +1,8 @@
1
1
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
2
- import { _ as __name, s as setAccDescription, g as getAccDescription, t as getDiagramTitle, q as setDiagramTitle, a as getAccTitle, b as setAccTitle, l as log, K as selectSvgElement, e as configureSvgSize, z as clear, G as getConfig, F as cleanAndMerge, H as defaultConfig_default, a1 as getThemeVariables3, i as sanitizeText, aw as computeDimensionOfText, a9 as line } from "./index-vFWWvdca.js";
2
+ import { _ as __name, s as setAccDescription, g as getAccDescription, t as getDiagramTitle, q as setDiagramTitle, a as getAccTitle, b as setAccTitle, l as log, K as selectSvgElement, e as configureSvgSize, z as clear, G as getConfig, F as cleanAndMerge, H as defaultConfig_default, a1 as getThemeVariables3, i as sanitizeText, aw as computeDimensionOfText, a9 as line } from "./index-r6bYN_1a.js";
3
3
  import { i as initRange } from "./init-ZxktEp_H.js";
4
4
  import { o as ordinal } from "./ordinal-DSZU4PqD.js";
5
- import { l as linear } from "./linear-BI5TRYfw.js";
5
+ import { l as linear } from "./linear-DnGQibMg.js";
6
6
  function range(start, stop, step) {
7
7
  start = +start, stop = +stop, step = (n = arguments.length) < 2 ? (stop = start, start = 0, 1) : n < 3 ? 1 : +step;
8
8
  var i = -1, n = Math.max(0, Math.ceil((stop - start) / step)) | 0, range2 = new Array(n);
@@ -1884,4 +1884,4 @@ var diagram = {
1884
1884
  export {
1885
1885
  diagram
1886
1886
  };
1887
- //# sourceMappingURL=xychartDiagram-PRI3JC2R-DV2aHw-9.js.map
1887
+ //# sourceMappingURL=xychartDiagram-PRI3JC2R-zMeDgcPs.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spteck/react-controls-v2",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Framework-agnostic React controls for Vite, Next.js, and SPFx - based on Fluent UI 9",
5
5
  "license": "MIT",
6
6
  "author": "João Mendes",
@@ -1,6 +0,0 @@
1
- import { A, e } from "./mermaid-parser.core-or1HXQYP.js";
2
- export {
3
- A as ArchitectureModule,
4
- e as createArchitectureServices
5
- };
6
- //# sourceMappingURL=architecture-7HQA4BMR-QRAO6LZs.js.map
@@ -1,2 +0,0 @@
1
- "use strict";const e=require("./index-CAoOhLkP.cjs");exports.channel=(r,s)=>e.Utils.lang.round(e.Color.parse(r)[s]);
2
- //# sourceMappingURL=channel-CavBJovq.cjs.map
@@ -1,6 +0,0 @@
1
- import { G, f } from "./mermaid-parser.core-or1HXQYP.js";
2
- export {
3
- G as GitGraphModule,
4
- f as createGitGraphServices
5
- };
6
- //# sourceMappingURL=gitGraph-G5XIXVHT-CQDP2vEd.js.map
@@ -1,6 +0,0 @@
1
- import { I, c } from "./mermaid-parser.core-or1HXQYP.js";
2
- export {
3
- I as InfoModule,
4
- c as createInfoServices
5
- };
6
- //# sourceMappingURL=info-VBDWY6EO-QvquFFhY.js.map
@@ -1,6 +0,0 @@
1
- import { P, a } from "./mermaid-parser.core-or1HXQYP.js";
2
- export {
3
- P as PacketModule,
4
- a as createPacketServices
5
- };
6
- //# sourceMappingURL=packet-DYOGHKS2-Bse7YjBO.js.map
@@ -1,6 +0,0 @@
1
- import { b, d } from "./mermaid-parser.core-or1HXQYP.js";
2
- export {
3
- b as PieModule,
4
- d as createPieServices
5
- };
6
- //# sourceMappingURL=pie-VRWISCQL-Q3eU4qER.js.map
@@ -1,6 +0,0 @@
1
- import { R, g } from "./mermaid-parser.core-or1HXQYP.js";
2
- export {
3
- R as RadarModule,
4
- g as createRadarServices
5
- };
6
- //# sourceMappingURL=radar-ZZBFDIW7-e5irSdhY.js.map
@@ -1,6 +0,0 @@
1
- import { T, h } from "./mermaid-parser.core-or1HXQYP.js";
2
- export {
3
- T as TreemapModule,
4
- h as createTreemapServices
5
- };
6
- //# sourceMappingURL=treemap-GDKQZRPO-DYKBo0ui.js.map