@juki-team/base-ui 1.5.0 → 1.5.2
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.
- package/README.md +17 -7
- package/dist/esm/{BarChart-DGvfKEbJ.js → BarChart-ilBguU5i.js} +1 -1
- package/dist/esm/{CartesianChart-BLpd_e8l.js → CartesianChart-B4Big96I.js} +1 -1
- package/dist/esm/{ChangePasswordModal-8aYa6mTN.js → ChangePasswordModal-B1Ahfv-S.js} +1 -1
- package/dist/esm/{CodeEditor-BKMFVmPO.js → CodeEditor-Co_-jMMN.js} +1 -1
- package/dist/esm/{CodeViewer-DqO18gks.js → CodeViewer-j4tlytYb.js} +1 -1
- package/dist/esm/{Collapse-DMLYcciz.js → Collapse-B_Oe1-5C.js} +1 -1
- package/dist/esm/{DataGrid-C-Gco96b.js → DataGrid-B0Av-VN8.js} +1 -1
- package/dist/esm/{DataViewer-DIROui4g.js → DataViewer-jViuraZ_.js} +1 -1
- package/dist/esm/{DrawerView-Be_ckf6D.js → DrawerView-BoMapmAb.js} +1 -1
- package/dist/esm/{ExcalidrawButton-DWRJMohJ.js → ExcalidrawButton-DRR-2JvH.js} +1 -1
- package/dist/esm/{GraphvizViewer-DUIJSiDq.js → GraphvizViewer-DEJDUNWF.js} +1 -1
- package/dist/esm/{ImageLoaderCropper-O3UDeKd5.js → ImageLoaderCropper-CeYhv904.js} +1 -1
- package/dist/esm/{InputCellPhoneNumber-ByG_R6dr.js → InputCellPhoneNumber-C7hpcqFZ.js} +1 -1
- package/dist/esm/{InputColor-C_JNgwYl.js → InputColor-BhVac99k.js} +1 -1
- package/dist/esm/{LineChart-BkCo4cnj.js → LineChart-_gtzHQbx.js} +1 -1
- package/dist/esm/{MdMath-C38RmN3O.js → MdMath-BtS290JE.js} +1 -1
- package/dist/esm/{MdMathEditor-C7surRiM.js → MdMathEditor-B41-_-_8.js} +2 -2
- package/dist/esm/{Popover-BaP7hJ0J.js → Popover-BGWBnVdT.js} +1 -1
- package/dist/esm/{SlideDeck-CpWGHFVE.js → SlideDeck-NtKwXHq5.js} +1 -1
- package/dist/esm/{TableOfContents-888D-B0V.js → TableOfContents-DBBkdhlJ.js} +1 -1
- package/dist/esm/{Tooltip-CNWDFJKv.js → Tooltip-DaBTZZ8j.js} +1 -1
- package/dist/esm/{UserCodeEditor-C0MyUL5-.js → UserCodeEditor-DdyfLlQs.js} +2 -2
- package/dist/esm/{VirtualizedRowsFixed-CYPaWB5L.js → VirtualizedRowsFixed-BAjhFO3R.js} +1 -1
- package/dist/esm/{WorksheetAsSlides-BNOZBoQY.js → WorksheetAsSlides-B5FB6vVz.js} +1 -1
- package/dist/esm/{WorksheetBodies-CHTN-wn9.js → WorksheetBodies-2hrTre13.js} +1 -1
- package/dist/esm/{WorksheetContents-IN63vuWT.js → WorksheetContents-CdM17xrm.js} +1 -1
- package/dist/esm/{WorksheetEditor-Hs_sWk7j.js → WorksheetEditor-HdlEcmnN.js} +1 -1
- package/dist/esm/{WorksheetNode-DGuKOPTt.js → WorksheetNode-C-TrJMCB.js} +1 -1
- package/dist/esm/{WorksheetViewer-Bt_jqHdh.js → WorksheetViewer-D0Co4NMK.js} +1 -1
- package/dist/esm/{architecture-YZFGNWBL-BExtdnEH.js → architecture-YZFGNWBL-Pv0ede3r.js} +1 -1
- package/dist/esm/{architectureDiagram-Q4EWVU46-CUhUPzlC.js → architectureDiagram-Q4EWVU46-Qs_XxOCt.js} +1 -1
- package/dist/esm/{blockDiagram-DXYQGD6D-DwW8YrKx.js → blockDiagram-DXYQGD6D-CG7oWqi7.js} +1 -1
- package/dist/esm/{c4Diagram-AHTNJAMY-DUUpakLg.js → c4Diagram-AHTNJAMY-DyGWi7Su.js} +1 -1
- package/dist/esm/channel-DjjqTXV9.js +1 -0
- package/dist/esm/{chunk-4BX2VUAB-BwFNstmG.js → chunk-4BX2VUAB-7TA7AVyu.js} +1 -1
- package/dist/esm/{chunk-4TB4RGXK-DV5sTBnv.js → chunk-4TB4RGXK-ChheKyYi.js} +1 -1
- package/dist/esm/{chunk-55IACEB6-BPJEY6mM.js → chunk-55IACEB6-BpHVIT0b.js} +1 -1
- package/dist/esm/{chunk-EDXVE4YY-9L7nz82K.js → chunk-EDXVE4YY-DQ25JIov.js} +1 -1
- package/dist/esm/{chunk-FMBD7UC4-BZMcHvFk.js → chunk-FMBD7UC4-DVZBlcm4.js} +1 -1
- package/dist/esm/{chunk-OYMX7WX6-COWCWylB.js → chunk-OYMX7WX6-BgiA8Wjh.js} +1 -1
- package/dist/esm/{chunk-QZHKN3VN-D2pIW1ss.js → chunk-QZHKN3VN-Cq1a-aN-.js} +1 -1
- package/dist/esm/{chunk-YZCP3GAM-D9GadUwL.js → chunk-YZCP3GAM-BDqtM1Ka.js} +1 -1
- package/dist/esm/{classDiagram-6PBFFD2Q-Cr8ipQ5w.js → classDiagram-6PBFFD2Q-D-xRfeAV.js} +1 -1
- package/dist/esm/{classDiagram-v2-HSJHXN6E-Cr8ipQ5w.js → classDiagram-v2-HSJHXN6E-D-xRfeAV.js} +1 -1
- package/dist/esm/clone-DCVnqO4M.js +1 -0
- package/dist/esm/{cose-bilkent-S5V4N54A-Dg1f2q8q.js → cose-bilkent-S5V4N54A-uYVAtvEb.js} +1 -1
- package/dist/esm/{dagre-KV5264BT-Drwedjf_.js → dagre-KV5264BT-CmDBeo-P.js} +1 -1
- package/dist/esm/{diagram-5BDNPKRD-BUvinU3I.js → diagram-5BDNPKRD-DVvj2_2u.js} +1 -1
- package/dist/esm/{diagram-G4DWMVQ6-D60Wox58.js → diagram-G4DWMVQ6-DYpFO01Z.js} +1 -1
- package/dist/esm/{diagram-MMDJMWI5-C60GB5LZ.js → diagram-MMDJMWI5-CDbT7cky.js} +1 -1
- package/dist/esm/{diagram-TYMM5635-CMF-zVic.js → diagram-TYMM5635-QWJ6iFCJ.js} +1 -1
- package/dist/esm/{erDiagram-SMLLAGMA-BmCfxmBR.js → erDiagram-SMLLAGMA-BaIhydf3.js} +1 -1
- package/dist/esm/{flowDiagram-DWJPFMVM-CVOjnh-h.js → flowDiagram-DWJPFMVM--s6o35x5.js} +1 -1
- package/dist/esm/{ganttDiagram-T4ZO3ILL-Cay-LcBr.js → ganttDiagram-T4ZO3ILL-CE7k2fwu.js} +1 -1
- package/dist/esm/{gitGraph-7Q5UKJZL-BIhofRTU.js → gitGraph-7Q5UKJZL-Dw9SBp3L.js} +1 -1
- package/dist/esm/{gitGraphDiagram-UUTBAWPF-BN1EkaA3.js → gitGraphDiagram-UUTBAWPF-VFFCKAr8.js} +1 -1
- package/dist/esm/{graph-XFLEVMvo.js → graph-C49NoLzy.js} +1 -1
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/index-CP5vpK1A.js +1 -0
- package/dist/esm/{index-D4D24Np7.js → index-DmCvSgoi.js} +1 -1
- package/dist/esm/{info-OMHHGYJF-DMKJgJ3s.js → info-OMHHGYJF-uLTg2g1k.js} +1 -1
- package/dist/esm/{infoDiagram-42DDH7IO-kAZbkK9S.js → infoDiagram-42DDH7IO-DfB27x0W.js} +1 -1
- package/dist/esm/{ishikawaDiagram-UXIWVN3A-MtQmxrIE.js → ishikawaDiagram-UXIWVN3A-hkiElo3Y.js} +1 -1
- package/dist/esm/{journeyDiagram-VCZTEJTY-BuKFXeHL.js → journeyDiagram-VCZTEJTY-svJ9aZB7.js} +1 -1
- package/dist/esm/{kanban-definition-6JOO6SKY-pGcXhhi7.js → kanban-definition-6JOO6SKY-aCGgjGQa.js} +1 -1
- package/dist/esm/{layout-D9uGd7GO.js → layout-Dn6BZDTj.js} +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/{mermaid-parser.core-Crc-QLCi.js → mermaid-parser.core-KtTYbDqg.js} +1 -1
- package/dist/esm/{mermaid.core-C2hrg85i.js → mermaid.core-Crnpnced.js} +1 -1
- package/dist/esm/{mindmap-definition-QFDTVHPH-CtfxHH9N.js → mindmap-definition-QFDTVHPH-D0c-OxXp.js} +1 -1
- package/dist/esm/{packet-4T2RLAQJ-BD2Ad6jE.js → packet-4T2RLAQJ-FrKYDPbn.js} +1 -1
- package/dist/esm/{pie-ZZUOXDRM-Bf017PqT.js → pie-ZZUOXDRM-obOGHjHy.js} +1 -1
- package/dist/esm/{pieDiagram-DEJITSTG-ChBbMYd8.js → pieDiagram-DEJITSTG-Ago1dmgK.js} +1 -1
- package/dist/esm/{quadrantDiagram-34T5L4WZ-BNmMB-pp.js → quadrantDiagram-34T5L4WZ-f7CWEYhG.js} +1 -1
- package/dist/esm/{radar-PYXPWWZC-DvvZel7z.js → radar-PYXPWWZC-BEcFMluC.js} +1 -1
- package/dist/esm/{requirementDiagram-MS252O5E-B1RjmS2l.js → requirementDiagram-MS252O5E-B_KOoVtP.js} +1 -1
- package/dist/esm/{sankeyDiagram-XADWPNL6-DSuRDDHI.js → sankeyDiagram-XADWPNL6-BpENeDG-.js} +1 -1
- package/dist/esm/{sequenceDiagram-FGHM5R23-ByfYuCTD.js → sequenceDiagram-FGHM5R23-DjCr8k36.js} +1 -1
- package/dist/esm/{stateDiagram-FHFEXIEX-CMjgjvak.js → stateDiagram-FHFEXIEX-B0Hp6EQN.js} +1 -1
- package/dist/esm/{stateDiagram-v2-QKLJ7IA2-htYMk5r5.js → stateDiagram-v2-QKLJ7IA2-DDbvXv_Y.js} +1 -1
- package/dist/esm/{timeline-definition-GMOUNBTQ-COFLk0ve.js → timeline-definition-GMOUNBTQ-nYM0ar6p.js} +1 -1
- package/dist/esm/{treeView-SZITEDCU-Ck6yPSxL.js → treeView-SZITEDCU-BNkk4mhj.js} +1 -1
- package/dist/esm/{treemap-W4RFUUIX-ErJXCLFJ.js → treemap-W4RFUUIX-DWvE4iLu.js} +1 -1
- package/dist/esm/{types-rkDjePoL.js → types-JRcv-6PR.js} +1 -1
- package/dist/esm/{vennDiagram-DHZGUBPP-xxvi147V.js → vennDiagram-DHZGUBPP-CQ4yw6a2.js} +1 -1
- package/dist/esm/{wardley-RL74JXVD-B3jC7s0b.js → wardley-RL74JXVD-BYbSDrTb.js} +1 -1
- package/dist/esm/{wardleyDiagram-NUSXRM2D-CIYzWE9T.js → wardleyDiagram-NUSXRM2D-ChuA4cDu.js} +1 -1
- package/dist/esm/{websocket-CxbYBjHT.js → websocket-C4PinjUD.js} +1 -1
- package/dist/esm/{xychartDiagram-5P7HB3ND-CHfEshBW.js → xychartDiagram-5P7HB3ND-C_GW0EwI.js} +1 -1
- package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButton.d.ts +1 -1
- package/dist/module-types/src/components/molecules/TabsInline/TabsInlineButtonLoader.d.ts +1 -1
- package/dist/module-types/src/components/molecules/TabsInline/utils.d.ts +3 -0
- package/package.json +2 -2
- package/src/styles/components/atoms/_tabs-inline.scss +7 -0
- package/dist/esm/channel-a8NrvAcc.js +0 -1
- package/dist/esm/clone-1ULLnhdV.js +0 -1
- package/dist/esm/index-EPJhFLhN.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as t,a as e,S as a}from"./chunk-OYMX7WX6-COWCWylB.js";import{_ as i,c as r,d as n,l as s,e as d,k as o,Q as p,u as g}from"./mermaid.core-C2hrg85i.js";import{G as c}from"./graph-XFLEVMvo.js";import{l as h}from"./layout-D9uGd7GO.js";import{l,k as x}from"./string-LeDn2fkG.js";import"./chunk-55IACEB6-BPJEY6mM.js";import"./chunk-EDXVE4YY-9L7nz82K.js";import"./index-EPJhFLhN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-B_OozOv-.js";import"./settings-BIQ7IqJl.js";import"./constants.js";import"./LoaderLayer-D9O7WqFD.js";import"./websocket-CxbYBjHT.js";import"./index-CODLgwqm.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./memoize-CPUrcYQl.js";import"./_baseIteratee-DJNkOVK7.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./isUndefined-DgmxjSXK.js";import"./min-Dc9VrJ6M.js";import"./map-BvlAjF4J.js";import"./toNumber-Bh_HTlSx.js";var m,u=i(t=>t.append("circle").attr("class","start-state").attr("r",r().state.sizeUnit).attr("cx",r().state.padding+r().state.sizeUnit).attr("cy",r().state.padding+r().state.sizeUnit),"drawStartState"),f=i(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",r().state.textHeight).attr("class","divider").attr("x2",2*r().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),y=i((t,e)=>{const a=t.append("text").attr("x",2*r().state.padding).attr("y",r().state.textHeight+2*r().state.padding).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.id),i=a.node().getBBox();return t.insert("rect",":first-child").attr("x",r().state.padding).attr("y",r().state.padding).attr("width",i.width+2*r().state.padding).attr("height",i.height+2*r().state.padding).attr("rx",r().state.radius),a},"drawSimpleState"),b=i((t,e)=>{const a=i(function(t,e,a){const i=t.append("tspan").attr("x",2*r().state.padding).text(e);a||i.attr("dy",r().state.textHeight)},"addTspan"),n=t.append("text").attr("x",2*r().state.padding).attr("y",r().state.textHeight+1.3*r().state.padding).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),s=n.height,d=t.append("text").attr("x",r().state.padding).attr("y",s+.4*r().state.padding+r().state.dividerMargin+r().state.textHeight).attr("class","state-description");let o=!0,p=!0;e.descriptions.forEach(function(t){o||(a(d,t,p),p=!1),o=!1});const g=t.append("line").attr("x1",r().state.padding).attr("y1",r().state.padding+s+r().state.dividerMargin/2).attr("y2",r().state.padding+s+r().state.dividerMargin/2).attr("class","descr-divider"),c=d.node().getBBox(),h=Math.max(c.width,n.width);return g.attr("x2",h+3*r().state.padding),t.insert("rect",":first-child").attr("x",r().state.padding).attr("y",r().state.padding).attr("width",h+2*r().state.padding).attr("height",c.height+s+2*r().state.padding).attr("rx",r().state.radius),t},"drawDescrState"),w=i((t,e,a)=>{const i=r().state.padding,n=2*r().state.padding,s=t.node().getBBox(),d=s.width,o=s.x,p=t.append("text").attr("x",0).attr("y",r().state.titleShift).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.id),g=p.node().getBBox().width+n;let c,h=Math.max(g,d);h===d&&(h+=n);const l=t.node().getBBox();e.doc,c=o-i,g>d&&(c=(d-h)/2+i),Math.abs(o-l.x)<i&&g>d&&(c=o-(g-d)/2);const x=1-r().state.textHeight;return t.insert("rect",":first-child").attr("x",c).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",l.height+r().state.textHeight+r().state.titleShift+1).attr("rx","0"),p.attr("x",c+i),g<=d&&p.attr("x",o+(h-n)/2-g/2+i),t.insert("rect",":first-child").attr("x",c).attr("y",r().state.titleShift-r().state.textHeight-r().state.padding).attr("width",h).attr("height",3*r().state.textHeight).attr("rx",r().state.radius),t.insert("rect",":first-child").attr("x",c).attr("y",r().state.titleShift-r().state.textHeight-r().state.padding).attr("width",h).attr("height",l.height+3+2*r().state.textHeight).attr("rx",r().state.radius),t},"addTitleAndBox"),B=i(t=>(t.append("circle").attr("class","end-state-outer").attr("r",r().state.sizeUnit+r().state.miniPadding).attr("cx",r().state.padding+r().state.sizeUnit+r().state.miniPadding).attr("cy",r().state.padding+r().state.sizeUnit+r().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",r().state.sizeUnit).attr("cx",r().state.padding+r().state.sizeUnit+2).attr("cy",r().state.padding+r().state.sizeUnit+2)),"drawEndState"),k=i((t,e)=>{let a=r().state.forkWidth,i=r().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",r().state.padding).attr("y",r().state.padding)},"drawForkJoinState"),j=i((t,e,a,i)=>{let n=0;const s=i.append("text");s.style("text-anchor","start"),s.attr("class","noteText");let d=t.replace(/\r\n/g,"<br/>");d=d.replace(/\n/g,"<br/>");const p=d.split(o.lineBreakRegex);let g=1.25*r().state.noteMargin;for(const t of p){const i=t.trim();if(i.length>0){const t=s.append("tspan");if(t.text(i),0===g){g+=t.node().getBBox().height}n+=g,t.attr("x",e+r().state.noteMargin),t.attr("y",a+n+1.25*r().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:n}},"_drawLongText"),S=i((t,e)=>{e.attr("class","state-note");const a=e.append("rect").attr("x",0).attr("y",r().state.padding),i=e.append("g"),{textWidth:n,textHeight:s}=j(t,0,0,i);return a.attr("height",s+2*r().state.noteMargin),a.attr("width",n+2*r().state.noteMargin),a},"drawNote"),E=i(function(t,e){const a=e.id,i={id:a,label:e.id,width:0,height:0},n=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&u(n),"end"===e.type&&B(n),"fork"!==e.type&&"join"!==e.type||k(n,e),"note"===e.type&&S(e.note.text,n),"divider"===e.type&&f(n),"default"===e.type&&0===e.descriptions.length&&y(n,e),"default"===e.type&&e.descriptions.length>0&&b(n,e);const s=n.node().getBBox();return i.width=s.width+2*r().state.padding,i.height=s.height+2*r().state.padding,i},"drawState"),N=0,M=i(function(t,e,n){const d=i(function(t){switch(t){case a.relationType.AGGREGATION:return"aggregation";case a.relationType.EXTENSION:return"extension";case a.relationType.COMPOSITION:return"composition";case a.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(t=>!Number.isNaN(t.y));const c=e.points,h=l().x(function(t){return t.x}).y(function(t){return t.y}).curve(x),m=t.append("path").attr("d",h(c)).attr("id","edge"+N).attr("class","transition");let u="";if(r().state.arrowMarkerAbsolute&&(u=p(!0)),m.attr("marker-end","url("+u+"#"+d(a.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const a=t.append("g").attr("class","stateLabel"),{x:i,y:d}=g.calcLabelPosition(e.points),p=o.getRows(n.title);let c=0;const h=[];let l=0,x=0;for(let t=0;t<=p.length;t++){const e=a.append("text").attr("text-anchor","middle").text(p[t]).attr("x",i).attr("y",d+c),r=e.node().getBBox();if(l=Math.max(l,r.width),x=Math.min(x,r.x),s.info(r.x,i,d+c),0===c){const t=e.node().getBBox();c=t.height,s.info("Title height",c,d)}h.push(e)}let m=c*p.length;if(p.length>1){const t=(p.length-1)*c*.5;h.forEach((e,a)=>e.attr("y",d+a*c-t)),m=c*p.length}const u=a.node().getBBox();a.insert("rect",":first-child").attr("class","box").attr("x",i-l/2-r().state.padding/2).attr("y",d-m/2-r().state.padding/2-3.5).attr("width",l+r().state.padding).attr("height",m+r().state.padding),s.info(u)}N++},"drawEdge"),v={},z=i(function(){},"setConf"),H=i(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"),T=i(function(t,e,a,i){m=r().state;const o=r().securityLevel;let p;"sandbox"===o&&(p=n("#i"+e));const g=n("sandbox"===o?p.nodes()[0].contentDocument.body:"body"),c="sandbox"===o?p.nodes()[0].contentDocument:document;s.debug("Rendering diagram "+t);const h=g.select(`[id='${e}']`);H(h);const l=i.db.getRootDoc(),x=h.append("g").attr("id",e+"-root");D(l,x,void 0,!1,g,c,i);const u=m.padding,f=h.node().getBBox(),y=f.width+2*u,b=f.height+2*u;d(h,b,1.75*y,m.useMaxWidth),h.attr("viewBox",`${f.x-m.padding} ${f.y-m.padding} `+y+" "+b)},"draw"),L=i(t=>t?t.length*m.fontSizeFactor:1,"getLabelWidth"),D=i((t,e,a,i,r,n,d)=>{const p=new c({compound:!0,multigraph:!0});let g,l=!0;for(g=0;g<t.length;g++)if("relation"===t[g].stmt){l=!1;break}a?p.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:l?1:m.edgeLengthFactor,nodeSep:l?1:50,isMultiGraph:!0}):p.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:l?1:m.edgeLengthFactor,nodeSep:l?1:50,ranker:"tight-tree",isMultiGraph:!0}),p.setDefaultEdgeLabel(function(){return{}});const x=d.db.getStates(),u=d.db.getRelations(),f=Object.keys(x);for(const t of f){const s=x[t];let o;if(a&&(s.parentId=a),s.doc){let t=e.append("g").attr("id",s.id).attr("class","stateGroup");o=D(s.doc,t,s.id,!i,r,n,d);{t=w(t,s,i);let e=t.node().getBBox();o.width=e.width,o.height=e.height+m.padding/2,v[s.id]={y:m.compositTitleSize}}}else o=E(e,s,p);if(s.note){const t={descriptions:[],id:s.id+"-note",note:s.note,type:"note"},a=E(e,t,p);"left of"===s.note.position?(p.setNode(o.id+"-note",a),p.setNode(o.id,o)):(p.setNode(o.id,o),p.setNode(o.id+"-note",a)),p.setParent(o.id,o.id+"-group"),p.setParent(o.id+"-note",o.id+"-group")}else p.setNode(o.id,o)}s.debug("Count=",p.nodeCount(),p);let y=0;u.forEach(function(t){y++,s.debug("Setting edge",t),p.setEdge(t.id1,t.id2,{relation:t,width:L(t.title),height:m.labelHeight*o.getRows(t.title).length,labelpos:"c"},"id"+y)}),h(p),s.debug("Graph after layout",p.nodes());const b=e.node();p.nodes().forEach(function(t){if(void 0!==t&&void 0!==p.node(t)){s.warn("Node "+t+": "+JSON.stringify(p.node(t))),r.select("#"+b.id+" #"+t).attr("transform","translate("+(p.node(t).x-p.node(t).width/2)+","+(p.node(t).y+(v[t]?v[t].y:0)-p.node(t).height/2)+" )"),r.select("#"+b.id+" #"+t).attr("data-x-shift",p.node(t).x-p.node(t).width/2);n.querySelectorAll("#"+b.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 s.debug("No Node "+t+": "+JSON.stringify(p.node(t)))});let B=b.getBBox();p.edges().forEach(function(t){void 0!==t&&void 0!==p.edge(t)&&(s.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(p.edge(t))),M(e,p.edge(t),p.edge(t).relation))}),B=b.getBBox();const k={id:a||"root",label:a||"root",width:0,height:0};return k.width=B.width+2*m.padding,k.height=B.height+2*m.padding,s.debug("Doc rendered",k,p),k},"renderDoc"),A={setConf:z,draw:T},U={parser:e,get db(){return new a(1)},renderer:A,styles:t,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{U as diagram};
|
|
1
|
+
import{s as t,a as e,S as a}from"./chunk-OYMX7WX6-BgiA8Wjh.js";import{_ as i,c as r,d as n,l as s,e as d,k as o,Q as p,u as g}from"./mermaid.core-Crnpnced.js";import{G as c}from"./graph-C49NoLzy.js";import{l as h}from"./layout-Dn6BZDTj.js";import{l,k as x}from"./string-LeDn2fkG.js";import"./chunk-55IACEB6-BpHVIT0b.js";import"./chunk-EDXVE4YY-DQ25JIov.js";import"./index-CP5vpK1A.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-B_OozOv-.js";import"./settings-BIQ7IqJl.js";import"./constants.js";import"./LoaderLayer-D9O7WqFD.js";import"./websocket-C4PinjUD.js";import"./index-CODLgwqm.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./memoize-CPUrcYQl.js";import"./_baseIteratee-DJNkOVK7.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./isUndefined-DgmxjSXK.js";import"./min-Dc9VrJ6M.js";import"./map-BvlAjF4J.js";import"./toNumber-Bh_HTlSx.js";var m,u=i(t=>t.append("circle").attr("class","start-state").attr("r",r().state.sizeUnit).attr("cx",r().state.padding+r().state.sizeUnit).attr("cy",r().state.padding+r().state.sizeUnit),"drawStartState"),f=i(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",r().state.textHeight).attr("class","divider").attr("x2",2*r().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),y=i((t,e)=>{const a=t.append("text").attr("x",2*r().state.padding).attr("y",r().state.textHeight+2*r().state.padding).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.id),i=a.node().getBBox();return t.insert("rect",":first-child").attr("x",r().state.padding).attr("y",r().state.padding).attr("width",i.width+2*r().state.padding).attr("height",i.height+2*r().state.padding).attr("rx",r().state.radius),a},"drawSimpleState"),b=i((t,e)=>{const a=i(function(t,e,a){const i=t.append("tspan").attr("x",2*r().state.padding).text(e);a||i.attr("dy",r().state.textHeight)},"addTspan"),n=t.append("text").attr("x",2*r().state.padding).attr("y",r().state.textHeight+1.3*r().state.padding).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),s=n.height,d=t.append("text").attr("x",r().state.padding).attr("y",s+.4*r().state.padding+r().state.dividerMargin+r().state.textHeight).attr("class","state-description");let o=!0,p=!0;e.descriptions.forEach(function(t){o||(a(d,t,p),p=!1),o=!1});const g=t.append("line").attr("x1",r().state.padding).attr("y1",r().state.padding+s+r().state.dividerMargin/2).attr("y2",r().state.padding+s+r().state.dividerMargin/2).attr("class","descr-divider"),c=d.node().getBBox(),h=Math.max(c.width,n.width);return g.attr("x2",h+3*r().state.padding),t.insert("rect",":first-child").attr("x",r().state.padding).attr("y",r().state.padding).attr("width",h+2*r().state.padding).attr("height",c.height+s+2*r().state.padding).attr("rx",r().state.radius),t},"drawDescrState"),w=i((t,e,a)=>{const i=r().state.padding,n=2*r().state.padding,s=t.node().getBBox(),d=s.width,o=s.x,p=t.append("text").attr("x",0).attr("y",r().state.titleShift).attr("font-size",r().state.fontSize).attr("class","state-title").text(e.id),g=p.node().getBBox().width+n;let c,h=Math.max(g,d);h===d&&(h+=n);const l=t.node().getBBox();e.doc,c=o-i,g>d&&(c=(d-h)/2+i),Math.abs(o-l.x)<i&&g>d&&(c=o-(g-d)/2);const x=1-r().state.textHeight;return t.insert("rect",":first-child").attr("x",c).attr("y",x).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",l.height+r().state.textHeight+r().state.titleShift+1).attr("rx","0"),p.attr("x",c+i),g<=d&&p.attr("x",o+(h-n)/2-g/2+i),t.insert("rect",":first-child").attr("x",c).attr("y",r().state.titleShift-r().state.textHeight-r().state.padding).attr("width",h).attr("height",3*r().state.textHeight).attr("rx",r().state.radius),t.insert("rect",":first-child").attr("x",c).attr("y",r().state.titleShift-r().state.textHeight-r().state.padding).attr("width",h).attr("height",l.height+3+2*r().state.textHeight).attr("rx",r().state.radius),t},"addTitleAndBox"),B=i(t=>(t.append("circle").attr("class","end-state-outer").attr("r",r().state.sizeUnit+r().state.miniPadding).attr("cx",r().state.padding+r().state.sizeUnit+r().state.miniPadding).attr("cy",r().state.padding+r().state.sizeUnit+r().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",r().state.sizeUnit).attr("cx",r().state.padding+r().state.sizeUnit+2).attr("cy",r().state.padding+r().state.sizeUnit+2)),"drawEndState"),k=i((t,e)=>{let a=r().state.forkWidth,i=r().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",r().state.padding).attr("y",r().state.padding)},"drawForkJoinState"),j=i((t,e,a,i)=>{let n=0;const s=i.append("text");s.style("text-anchor","start"),s.attr("class","noteText");let d=t.replace(/\r\n/g,"<br/>");d=d.replace(/\n/g,"<br/>");const p=d.split(o.lineBreakRegex);let g=1.25*r().state.noteMargin;for(const t of p){const i=t.trim();if(i.length>0){const t=s.append("tspan");if(t.text(i),0===g){g+=t.node().getBBox().height}n+=g,t.attr("x",e+r().state.noteMargin),t.attr("y",a+n+1.25*r().state.noteMargin)}}return{textWidth:s.node().getBBox().width,textHeight:n}},"_drawLongText"),S=i((t,e)=>{e.attr("class","state-note");const a=e.append("rect").attr("x",0).attr("y",r().state.padding),i=e.append("g"),{textWidth:n,textHeight:s}=j(t,0,0,i);return a.attr("height",s+2*r().state.noteMargin),a.attr("width",n+2*r().state.noteMargin),a},"drawNote"),E=i(function(t,e){const a=e.id,i={id:a,label:e.id,width:0,height:0},n=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&u(n),"end"===e.type&&B(n),"fork"!==e.type&&"join"!==e.type||k(n,e),"note"===e.type&&S(e.note.text,n),"divider"===e.type&&f(n),"default"===e.type&&0===e.descriptions.length&&y(n,e),"default"===e.type&&e.descriptions.length>0&&b(n,e);const s=n.node().getBBox();return i.width=s.width+2*r().state.padding,i.height=s.height+2*r().state.padding,i},"drawState"),N=0,M=i(function(t,e,n){const d=i(function(t){switch(t){case a.relationType.AGGREGATION:return"aggregation";case a.relationType.EXTENSION:return"extension";case a.relationType.COMPOSITION:return"composition";case a.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(t=>!Number.isNaN(t.y));const c=e.points,h=l().x(function(t){return t.x}).y(function(t){return t.y}).curve(x),m=t.append("path").attr("d",h(c)).attr("id","edge"+N).attr("class","transition");let u="";if(r().state.arrowMarkerAbsolute&&(u=p(!0)),m.attr("marker-end","url("+u+"#"+d(a.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const a=t.append("g").attr("class","stateLabel"),{x:i,y:d}=g.calcLabelPosition(e.points),p=o.getRows(n.title);let c=0;const h=[];let l=0,x=0;for(let t=0;t<=p.length;t++){const e=a.append("text").attr("text-anchor","middle").text(p[t]).attr("x",i).attr("y",d+c),r=e.node().getBBox();if(l=Math.max(l,r.width),x=Math.min(x,r.x),s.info(r.x,i,d+c),0===c){const t=e.node().getBBox();c=t.height,s.info("Title height",c,d)}h.push(e)}let m=c*p.length;if(p.length>1){const t=(p.length-1)*c*.5;h.forEach((e,a)=>e.attr("y",d+a*c-t)),m=c*p.length}const u=a.node().getBBox();a.insert("rect",":first-child").attr("class","box").attr("x",i-l/2-r().state.padding/2).attr("y",d-m/2-r().state.padding/2-3.5).attr("width",l+r().state.padding).attr("height",m+r().state.padding),s.info(u)}N++},"drawEdge"),v={},z=i(function(){},"setConf"),H=i(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"),T=i(function(t,e,a,i){m=r().state;const o=r().securityLevel;let p;"sandbox"===o&&(p=n("#i"+e));const g=n("sandbox"===o?p.nodes()[0].contentDocument.body:"body"),c="sandbox"===o?p.nodes()[0].contentDocument:document;s.debug("Rendering diagram "+t);const h=g.select(`[id='${e}']`);H(h);const l=i.db.getRootDoc(),x=h.append("g").attr("id",e+"-root");D(l,x,void 0,!1,g,c,i);const u=m.padding,f=h.node().getBBox(),y=f.width+2*u,b=f.height+2*u;d(h,b,1.75*y,m.useMaxWidth),h.attr("viewBox",`${f.x-m.padding} ${f.y-m.padding} `+y+" "+b)},"draw"),L=i(t=>t?t.length*m.fontSizeFactor:1,"getLabelWidth"),D=i((t,e,a,i,r,n,d)=>{const p=new c({compound:!0,multigraph:!0});let g,l=!0;for(g=0;g<t.length;g++)if("relation"===t[g].stmt){l=!1;break}a?p.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:l?1:m.edgeLengthFactor,nodeSep:l?1:50,isMultiGraph:!0}):p.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:l?1:m.edgeLengthFactor,nodeSep:l?1:50,ranker:"tight-tree",isMultiGraph:!0}),p.setDefaultEdgeLabel(function(){return{}});const x=d.db.getStates(),u=d.db.getRelations(),f=Object.keys(x);for(const t of f){const s=x[t];let o;if(a&&(s.parentId=a),s.doc){let t=e.append("g").attr("id",s.id).attr("class","stateGroup");o=D(s.doc,t,s.id,!i,r,n,d);{t=w(t,s,i);let e=t.node().getBBox();o.width=e.width,o.height=e.height+m.padding/2,v[s.id]={y:m.compositTitleSize}}}else o=E(e,s,p);if(s.note){const t={descriptions:[],id:s.id+"-note",note:s.note,type:"note"},a=E(e,t,p);"left of"===s.note.position?(p.setNode(o.id+"-note",a),p.setNode(o.id,o)):(p.setNode(o.id,o),p.setNode(o.id+"-note",a)),p.setParent(o.id,o.id+"-group"),p.setParent(o.id+"-note",o.id+"-group")}else p.setNode(o.id,o)}s.debug("Count=",p.nodeCount(),p);let y=0;u.forEach(function(t){y++,s.debug("Setting edge",t),p.setEdge(t.id1,t.id2,{relation:t,width:L(t.title),height:m.labelHeight*o.getRows(t.title).length,labelpos:"c"},"id"+y)}),h(p),s.debug("Graph after layout",p.nodes());const b=e.node();p.nodes().forEach(function(t){if(void 0!==t&&void 0!==p.node(t)){s.warn("Node "+t+": "+JSON.stringify(p.node(t))),r.select("#"+b.id+" #"+t).attr("transform","translate("+(p.node(t).x-p.node(t).width/2)+","+(p.node(t).y+(v[t]?v[t].y:0)-p.node(t).height/2)+" )"),r.select("#"+b.id+" #"+t).attr("data-x-shift",p.node(t).x-p.node(t).width/2);n.querySelectorAll("#"+b.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 s.debug("No Node "+t+": "+JSON.stringify(p.node(t)))});let B=b.getBBox();p.edges().forEach(function(t){void 0!==t&&void 0!==p.edge(t)&&(s.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(p.edge(t))),M(e,p.edge(t),p.edge(t).relation))}),B=b.getBBox();const k={id:a||"root",label:a||"root",width:0,height:0};return k.width=B.width+2*m.padding,k.height=B.height+2*m.padding,s.debug("Doc rendered",k,p),k},"renderDoc"),A={setConf:z,draw:T},U={parser:e,get db(){return new a(1)},renderer:A,styles:t,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{U as diagram};
|
package/dist/esm/{stateDiagram-v2-QKLJ7IA2-htYMk5r5.js → stateDiagram-v2-QKLJ7IA2-DDbvXv_Y.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,b as t,a as s,S as o}from"./chunk-OYMX7WX6-
|
|
1
|
+
import{s as r,b as t,a as s,S as o}from"./chunk-OYMX7WX6-BgiA8Wjh.js";import{_ as e}from"./mermaid.core-Crnpnced.js";import"./chunk-55IACEB6-BpHVIT0b.js";import"./chunk-EDXVE4YY-DQ25JIov.js";import"./index-CP5vpK1A.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-B_OozOv-.js";import"./settings-BIQ7IqJl.js";import"./constants.js";import"./LoaderLayer-D9O7WqFD.js";import"./websocket-C4PinjUD.js";import"./index-CODLgwqm.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";var i={parser:s,get db(){return new o(2)},renderer:t,styles:r,init:e(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{i as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,E as e,V as n,W as i,X as r,c as a,l as s,K as o,P as c,Y as l,d as h,D as d,$ as p,z as u}from"./mermaid.core-C2hrg85i.js";import{d as g}from"./arc-BqJSq9Se.js";import"./index-EPJhFLhN.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-B_OozOv-.js";import"./settings-BIQ7IqJl.js";import"./constants.js";import"./LoaderLayer-D9O7WqFD.js";import"./websocket-CxbYBjHT.js";import"./index-CODLgwqm.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";var y=function(){var e=t(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),n=[6,11,13,14,15,17,19,20,23,24],i=[1,12],r=[1,13],a=[1,14],s=[1,15],o=[1,16],c=[1,19],l=[1,20],h={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 1:return a[o-1];case 3:i.setDirection("LR");break;case 4:i.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:i.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:i.addTask(a[o],0,""),this.$=a[o];break;case 19:i.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(n,[2,5],{5:6}),e(n,[2,2]),e(n,[2,3]),e(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:i,15:r,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,10],{1:[2,1]}),e(n,[2,6]),{12:21,14:i,15:r,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,8]),e(n,[2,9]),e(n,[2,11]),{16:[1,22]},{18:[1,23]},e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,7]),e(n,[2,12]),e(n,[2,13])],defaultActions:{},parseError:t(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t(function(e){var n=this,i=[0],r=[],a=[null],s=[],o=this.table,c="",l=0,h=0,d=s.slice.call(arguments,1),p=Object.create(this.lexer),u={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(u.yy[g]=this.yy[g]);p.setInput(e,u.yy),u.yy.lexer=p,u.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;s.push(y);var f=p.options&&p.options.ranges;function m(){var t;return"number"!=typeof(t=r.pop()||p.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),t(m,"lex");for(var x,b,k,w,_,$,v,S,E={};;){if(b=i[i.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==x&&(x=m()),k=o[b]&&o[b][x]),void 0===k||!k.length||!k[0]){var T="";for(_ in S=[],o[b])this.terminals_[_]&&_>2&&S.push("'"+this.terminals_[_]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(p.yytext),s.push(p.yylloc),i.push(k[1]),x=null,h=p.yyleng,c=p.yytext,l=p.yylineno,y=p.yylloc;break;case 2:if($=this.productions_[k[1]][1],E.$=a[a.length-$],E._$={first_line:s[s.length-($||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-($||1)].first_column,last_column:s[s.length-1].last_column},f&&(E._$.range=[s[s.length-($||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(E,[c,h,l,u.yy,k[1],a,s].concat(d))))return w;$&&(i=i.slice(0,-1*$*2),a=a.slice(0,-1*$),s=s.slice(0,-1*$)),i.push(this.productions_[k[1]][0]),a.push(E.$),s.push(E._$),v=o[i[i.length-2]][i[i.length-1]],i.push(v);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:t(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t(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(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(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 r=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=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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(function(t){this.unput(this.match.slice(t))},"less"),pastInput:t(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(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(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:t(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.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 a in r)this[a]=r[a];return!1}return!1},"test_match"),next:t(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 r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[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(function(){var t=this.next();return t||this.lex()},"lex"),begin:t(function(t){this.conditionStack.push(t)},"begin"),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:t(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(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:t(function(t){this.begin(t)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/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:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}}();function p(){this.yy={}}return h.lexer=d,t(p,"Parser"),p.prototype=h,h.Parser=p,new p}();y.parser=y;var f=y,m={};d(m,{addEvent:()=>C,addSection:()=>I,addTask:()=>L,addTaskOrg:()=>N,clear:()=>S,default:()=>D,getCommonDb:()=>v,getDirection:()=>T,getSections:()=>M,getTasks:()=>H,setDirection:()=>E});var x="",b=0,k="LR",w=[],_=[],$=[],v=t(()=>p,"getCommonDb"),S=t(function(){w.length=0,_.length=0,x="",$.length=0,k="LR",u()},"clear"),E=t(function(t){k=t},"setDirection"),T=t(function(){return k},"getDirection"),I=t(function(t){x=t,w.push(t)},"addSection"),M=t(function(){return w},"getSections"),H=t(function(){let t=j();let e=0;for(;!t&&e<100;)t=j(),e++;return _.push(...$),_},"getTasks"),L=t(function(t,e,n){const i={id:b++,section:x,type:x,task:t,score:e||0,events:n?[n]:[]};$.push(i)},"addTask"),C=t(function(t){$.find(t=>t.id===b-1).events.push(t)},"addEvent"),N=t(function(t){const e={section:x,type:x,description:t,task:t,classes:[]};_.push(e)},"addTaskOrg"),j=t(function(){const e=t(function(t){return $[t].processed},"compileTask");let n=!0;for(const[t,i]of $.entries())e(t),n=n&&i.processed;return n},"compileTasks"),D={clear:S,getCommonDb:v,getDirection:T,setDirection:E,addSection:I,getSections:M,getTasks:H,addTask:L,addTaskOrg:N,addEvent:C},O=0,A=t(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"),B=t(function(e,n){const i=15,r=e.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",i).attr("stroke-width",2).attr("overflow","visible"),a=e.append("g");function s(t){const e=g().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function o(t){const e=g().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function c(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.append("circle").attr("cx",n.cx-5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",n.cx+5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t(s,"smile"),t(o,"sad"),t(c,"ambivalent"),n.score>3?s(a):n.score<3?o(a):c(a),r},"drawFace"),R=t(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"),P=t(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 r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},"drawText"),W=t(function(e,n){function i(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-1.2*r)+","+(e+i)+" "+t+","+(e+i)}t(i,"genPoints");const r=e.append("polygon");r.attr("points",i(n.x,n.y,50,20,7)),r.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,P(e,n)},"drawLabel"),z=t(function(t,e,n){const i=t.append("g"),r=Y();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,A(i,r),Z(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),F=-1,V=t(function(t,e,n,i){const r=e.x+n.width/2,a=t.append("g");F++;a.append("line").attr("id",i+"-task"+F).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),B(a,{cx:r,cy:300+30*(5-e.score),score:e.score});const s=Y();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,A(a,s),Z(n)(e.task,a,s.x,s.y,s.width,s.height,{class:"task"},n,e.colour)},"drawTask"),G=t(function(t,e){A(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),U=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Y=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Z=function(){function e(t,e,n,i,a,s,o,c){r(e.append("text").attr("x",n+a/2).attr("y",i+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,i,a,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,p=t.split(/<br\s*\/?>/gi);for(let t=0;t<p.length;t++){const c=t*h-h*(p.length-1)/2,u=e.append("text").attr("x",n+a/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);u.append("tspan").attr("x",n+a/2).attr("dy",c).text(p[t]),u.attr("y",i+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(u,o)}}function i(t,e,i,a,s,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",a).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,a,s,o,c,l),r(d,c)}function r(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t(e,"byText"),t(n,"byTspan"),t(i,"byFo"),t(r,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?i:"old"===t.textPlacement?e:n}}(),q=t(function(t,e){O=0,F=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function X(t,e){t.each(function(){var t,n=h(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),s=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;s<i.length;s++)t=i[i.length-1-s],r.push(t),o.text(r.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}t(X,"wrap");var K=t(function(t,e,n,i,r,a=!1){const{theme:s,look:o}=i,c=s?.includes("redux"),l=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=t.append("g");e.section=l,d.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+l);const p=d.append("g"),u=d.append("g"),g=u.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(X,e.width).node().getBBox(),y=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=g.height+1.1*y*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,u.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),c&&u.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),Q(p,e,l,r,i),"neo"===o&&(d.attr("data-look","neo"),c)){const e=s.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),i=h(n),r=i.attr("id")??"",a=r?`${r}-drop-shadow`:"drop-shadow";if(i.select(`#${a}`).empty()){const t=i.select("defs");(t.empty()?i.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),J=t(function(t,e,n){const i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(X,e.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),Q=t(function(t,e,n,i,r){const{theme:a}=r,s=a?.includes("redux")?0:5,o=s>0?`M0 ${e.height-5} v${10-e.height} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",i+"-node-"+O++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),tt={drawRect:A,drawCircle:R,drawSection:z,drawText:P,drawLabel:W,drawTask:V,drawBackgroundRect:G,getTextObj:U,getNoteRect:Y,initGraphics:q,drawNode:K,getVirtualNodeHeight:J},et=t(function(t,e,n,i){const r=a(),{look:o,theme:c,themeVariables:d}=r,{useGradient:p,gradientStart:u,gradientStop:g}=d,y=r.timeline?.leftMargin??50;s.debug("timeline",i.db);const f=r.securityLevel;let m;"sandbox"===f&&(m=h("#i"+e));const x=h("sandbox"===f?m.nodes()[0].contentDocument.body:"body").select("#"+e);x.append("g");const b=i.db.getTasks(),k=i.db.getCommonDb().getDiagramTitle();s.debug("task",b),tt.initGraphics(x,e);const w=i.db.getSections();s.debug("sections",w);let _=0,$=0,v=0,S=0,E=50+y,T=50;S=50;let I=0,M=!0;w.forEach(function(t){const e={number:I,descr:t,section:I,width:150,padding:20,maxHeight:_},n=tt.getVirtualNodeHeight(x,e,r);s.debug("sectionHeight before draw",n),_=Math.max(_,n+20)});let H=0,L=0;s.debug("tasks.length",b.length);for(const[t,e]of b.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:$},i=tt.getVirtualNodeHeight(x,n,r);s.debug("taskHeight before draw",i),$=Math.max($,i+20),H=Math.max(H,e.events.length);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50};a+=tt.getVirtualNodeHeight(x,n,r)}e.events.length>0&&(a+=10*(e.events.length-1)),L=Math.max(L,a)}s.debug("maxSectionHeight before draw",_),s.debug("maxTaskHeight before draw",$),w&&w.length>0?w.forEach(t=>{const n=b.filter(e=>e.section===t),i={number:I,descr:t,section:I,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};s.debug("sectionNode",i);const a=x.append("g"),o=tt.drawNode(a,i,I,r,e);s.debug("sectionNode output",o),a.attr("transform",`translate(${E}, 50)`),T+=_+50,n.length>0&&nt(x,n,I,E,T,$,r,H,L,_,!1,e),E+=200*Math.max(n.length,1),T=50,I++}):(M=!1,nt(x,b,I,E,T,$,r,H,L,_,!0,e));const C=x.node().getBBox();s.debug("bounds",C),k&&x.append("text").text(k).attr("x","neo"===o?2*C.x+y:C.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),v=M?_+$+150:$+100;if(x.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",v).attr("x2",C.width+3*y).attr("y2",v).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===o&&p&&"neutral"!==c){const t=x.select("defs"),e=(t.empty()?x.append("defs"):t).append("linearGradient").attr("id",x.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}l(void 0,x,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),nt=t(function(t,e,n,i,r,a,o,c,l,h,d,p){for(const c of e){const e={descr:c.task,section:n,number:n,width:150,padding:20,maxHeight:a};s.debug("taskNode",e);const h=t.append("g").attr("class","taskWrapper"),u=tt.drawNode(h,e,n,o,p).height;if(s.debug("taskHeight after draw",u),h.attr("transform",`translate(${i}, ${r})`),a=Math.max(a,u),c.events){const e=t.append("g").attr("class","lineWrapper");let s=a;r+=100,s+=it(t,c.events,n,i,r,o,p),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+a).attr("x2",i+95).attr("y2",r+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${p}-arrowhead)`).attr("stroke-dasharray","5,5")}i+=200,d&&!o.timeline?.disableMulticolor&&n++}r-=10},"drawTasks"),it=t(function(t,e,n,i,r,a,o){let c=0;const l=r;r+=100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};s.debug("eventNode",e);const h=t.append("g").attr("class","eventWrapper"),d=tt.drawNode(h,e,n,a,o,!0).height;c+=d,h.attr("transform",`translate(${i}, ${r})`),r=r+10+d}return r=l,c},"drawEvents"),rt={setConf:t(()=>{},"setConf"),draw:et},at=200,st=t(function(t,e,n,i){const r=a(),h=r.timeline?.leftMargin??50;s.debug("timeline",i.db);const d=o(e);d.append("g");const p=i.db.getTasks(),u=i.db.getCommonDb().getDiagramTitle();s.debug("task",p),tt.initGraphics(d);const g=i.db.getSections();s.debug("sections",g);let y=0,f=0;const m=50+h;let x=50;const b=x,k=230,w=m+k;let _=0;const $=g&&g.length>0,v=$?w:m+k,S=Math.max(50,580);g.forEach(function(t){const e={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y},n=tt.getVirtualNodeHeight(d,e,r);s.debug("sectionHeight before draw",n),y=Math.max(y,n)});let E=0;s.debug("tasks.length",p.length);for(const[t,e]of p.entries()){const n={number:t,descr:e,section:e.section,width:at,padding:5,maxHeight:f},i=tt.getVirtualNodeHeight(d,n,r);s.debug("taskHeight before draw",i),f=Math.max(f,i);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:300,padding:5,maxHeight:50};a+=tt.getVirtualNodeHeight(d,n,r)}e.events.length>0&&(a+=10*(e.events.length-1)),E=Math.max(E,a)+0}s.debug("maxSectionHeight before draw",y),s.debug("maxTaskHeight before draw",f);const T=Math.max(f,E)+30;$?g.forEach(t=>{const e=p.filter(e=>e.section===t),n={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y};s.debug("sectionNode",n);const i=d.append("g"),a=tt.drawNode(i,n,_,r);s.debug("sectionNode output",a);const o=v-k;i.attr("transform",`translate(${o}, ${x})`);const c=x+a.height+20;e.length>0&&ot(d,e,_,v,c,f,r,T,!1);const l=e.length,h=a.height+20+T*Math.max(l,1)-(l>0?60:0);x+=h,_++}):ot(d,p,_,v,x,f,r,T,!0);let I=d.node()?.getBBox();if(!I)throw new Error("bbox not found");if(s.debug("bounds",I),u){if(d.append("text").text(u).attr("x",I.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),I=d.node()?.getBBox(),!I)throw new Error("bbox not found");s.debug("bounds after title",I)}const[M]=c(r.fontSize),H=2*(M??16),L=.5*(M??16)+20,C=d.append("g").attr("class","lineWrapper");C.append("line").attr("x1",v).attr("y1",b-H).attr("x2",v).attr("y2",I.y+I.height+L).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),C.lower(),l(void 0,d,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),ot=t(function(t,e,n,i,r,a,o,c,l){for(const h of e){const e={descr:h.task,section:n,number:n,width:at,padding:5,maxHeight:a};s.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),p=tt.drawNode(d,e,n,o),u=p.height;s.debug("taskHeight after draw",u);const g=i-20-p.width;if(d.attr("transform",`translate(${g}, ${r})`),a=Math.max(a,u),h.events&&h.events.length>0){const e=r,a=i+50;ct(t,h.events,n,i,a,e,o)}r+=c,l&&!o.timeline?.disableMulticolor&&n++}},"drawTasks"),ct=t(function(t,e,n,i,r,a,o){let c=a;for(const a of e){const e={descr:a,section:n,number:n,width:300,padding:5,maxHeight:0};s.debug("eventNode",e);const l=t.append("g").attr("class","eventWrapper"),h=tt.drawNode(l,e,n,o).height;l.attr("transform",`translate(${r}, ${c})`);const d=c+h/2;t.append("g").attr("class","lineWrapper").append("line").attr("x1",i).attr("y1",d).attr("x2",r).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),c=c+h+10}return c-a},"drawEvents"),lt={setConf:t(()=>{},"setConf"),draw:st},ht=t(t=>{const{theme:n}=e(),i=n?.includes("dark"),r=n?.includes("color"),a=t.svgId?.replace(/^#/,"")??"",s=a?`url(#${a}-drop-shadow)`:t.dropShadow??"none";let o="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++){const n=""+(17-3*e),a=r?t.borderColorArray[e]:t.mainBkg,c=r?t.borderColorArray[e]:t.nodeBorder;o+=`\n .section-${e-1} rect,\n .section-${e-1} path,\n .section-${e-1} circle {\n fill: ${i&&r?t.mainBkg:a};\n stroke: ${c};\n stroke-width: ${t.strokeWidth};\n filter: ${s};\n }\n\n .section-${e-1} text {\n fill: ${t.nodeBorder};\n font-weight: ${t.fontWeight}\n }\n\n .node-icon-${e-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+e]};\n }\n\n .section-edge-${e-1} {\n stroke: ${t["cScale"+e]};\n }\n\n .edge-depth-${e-1} {\n stroke-width: ${n};\n }\n\n .section-${e-1} line {\n stroke: ${t["cScaleInv"+e]};\n stroke-width: 3;\n }\n\n .lineWrapper line {\n stroke: ${t.nodeBorder};\n stroke-width:${t.strokeWidth}\n }\n\n .disabled,\n .disabled circle,\n .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return o},"genReduxSections"),dt=t(t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],n(t["lineColor"+e])?t["lineColor"+e]=i(t["lineColor"+e],20):t["lineColor"+e]=r(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return e},"genSections"),pt=t(t=>{const{theme:n}=e(),i=n?.includes("redux"),r="neutral"===n,a=t.svgId?.replace(/^#/,"")??"";let s="";if(t.useGradient&&a&&t.THEME_COLOR_LIMIT&&!r)for(let e=0;e<t.THEME_COLOR_LIMIT;e++)s+=`\n .section-${e-1}[data-look="neo"] rect,\n .section-${e-1}[data-look="neo"] path,\n .section-${e-1}[data-look="neo"] circle {\n fill: ${t.mainBkg};\n stroke: url(#${a}-gradient);\n stroke-width: 2;\n }\n .section-${e-1}[data-look="neo"] line {\n stroke: url(#${a}-gradient);\n stroke-width: 2;\n }`;return`\n .edge {\n stroke-width: 3;\n }\n ${i?ht(t):dt(t)}\n ${s}\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"),ut={db:m,renderer:{setConf:t(()=>{},"setConf"),draw:t((t,e,n,i)=>"TD"===(i?.db?.getDirection?.()??"LR")?lt.draw(t,e,n,i):rt.draw(t,e,n,i),"draw")},parser:f,styles:pt};export{ut as diagram};
|
|
1
|
+
import{_ as t,E as e,V as n,W as i,X as r,c as a,l as s,K as o,P as c,Y as l,d as h,D as d,$ as p,z as u}from"./mermaid.core-Crnpnced.js";import{d as g}from"./arc-BqJSq9Se.js";import"./index-CP5vpK1A.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-B_OozOv-.js";import"./settings-BIQ7IqJl.js";import"./constants.js";import"./LoaderLayer-D9O7WqFD.js";import"./websocket-C4PinjUD.js";import"./index-CODLgwqm.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";var y=function(){var e=t(function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},"o"),n=[6,11,13,14,15,17,19,20,23,24],i=[1,12],r=[1,13],a=[1,14],s=[1,15],o=[1,16],c=[1,19],l=[1,20],h={trace:t(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:t(function(t,e,n,i,r,a,s){var o=a.length-1;switch(r){case 1:return a[o-1];case 3:i.setDirection("LR");break;case 4:i.setDirection("TD");break;case 5:case 9:case 10:this.$=[];break;case 6:a[o-1].push(a[o]),this.$=a[o-1];break;case 7:case 8:this.$=a[o];break;case 11:i.getCommonDb().setDiagramTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 12:this.$=a[o].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[o].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 18:i.addTask(a[o],0,""),this.$=a[o];break;case 19:i.addEvent(a[o].substr(2)),this.$=a[o]}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(n,[2,5],{5:6}),e(n,[2,2]),e(n,[2,3]),e(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:i,15:r,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,10],{1:[2,1]}),e(n,[2,6]),{12:21,14:i,15:r,17:a,19:s,20:o,21:17,22:18,23:c,24:l},e(n,[2,8]),e(n,[2,9]),e(n,[2,11]),{16:[1,22]},{18:[1,23]},e(n,[2,14]),e(n,[2,15]),e(n,[2,16]),e(n,[2,17]),e(n,[2,18]),e(n,[2,19]),e(n,[2,7]),e(n,[2,12]),e(n,[2,13])],defaultActions:{},parseError:t(function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},"parseError"),parse:t(function(e){var n=this,i=[0],r=[],a=[null],s=[],o=this.table,c="",l=0,h=0,d=s.slice.call(arguments,1),p=Object.create(this.lexer),u={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(u.yy[g]=this.yy[g]);p.setInput(e,u.yy),u.yy.lexer=p,u.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var y=p.yylloc;s.push(y);var f=p.options&&p.options.ranges;function m(){var t;return"number"!=typeof(t=r.pop()||p.lex()||1)&&(t instanceof Array&&(t=(r=t).pop()),t=n.symbols_[t]||t),t}"function"==typeof u.yy.parseError?this.parseError=u.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,t(function(t){i.length=i.length-2*t,a.length=a.length-t,s.length=s.length-t},"popStack"),t(m,"lex");for(var x,b,k,w,_,$,v,S,E={};;){if(b=i[i.length-1],this.defaultActions[b]?k=this.defaultActions[b]:(null==x&&(x=m()),k=o[b]&&o[b][x]),void 0===k||!k.length||!k[0]){var T="";for(_ in S=[],o[b])this.terminals_[_]&&_>2&&S.push("'"+this.terminals_[_]+"'");T=p.showPosition?"Parse error on line "+(l+1)+":\n"+p.showPosition()+"\nExpecting "+S.join(", ")+", got '"+(this.terminals_[x]||x)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==x?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[x]||x,line:p.yylineno,loc:y,expected:S})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+x);switch(k[0]){case 1:i.push(x),a.push(p.yytext),s.push(p.yylloc),i.push(k[1]),x=null,h=p.yyleng,c=p.yytext,l=p.yylineno,y=p.yylloc;break;case 2:if($=this.productions_[k[1]][1],E.$=a[a.length-$],E._$={first_line:s[s.length-($||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-($||1)].first_column,last_column:s[s.length-1].last_column},f&&(E._$.range=[s[s.length-($||1)].range[0],s[s.length-1].range[1]]),void 0!==(w=this.performAction.apply(E,[c,h,l,u.yy,k[1],a,s].concat(d))))return w;$&&(i=i.slice(0,-1*$*2),a=a.slice(0,-1*$),s=s.slice(0,-1*$)),i.push(this.productions_[k[1]][0]),a.push(E.$),s.push(E._$),v=o[i[i.length-2]][i[i.length-1]],i.push(v);break;case 3:return!0}}return!0},"parse")},d=function(){return{EOF:1,parseError:t(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:t(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(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(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 r=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=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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(function(t){this.unput(this.match.slice(t))},"less"),pastInput:t(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(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(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:t(function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.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 a in r)this[a]=r[a];return!1}return!1},"test_match"),next:t(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 r=this._currentRules(),a=0;a<r.length;a++)if((n=this._input.match(this.rules[r[a]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[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(function(){var t=this.next();return t||this.lex()},"lex"),begin:t(function(t){this.conditionStack.push(t)},"begin"),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:t(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(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:t(function(t){this.begin(t)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(t,e,n,i){switch(n){case 0:case 1:case 3:case 4:break;case 2:return 13;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;case 10:return this.popState(),"acc_title_value";case 11:return this.begin("acc_descr"),17;case 12:return this.popState(),"acc_descr_value";case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/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:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}}}();function p(){this.yy={}}return h.lexer=d,t(p,"Parser"),p.prototype=h,h.Parser=p,new p}();y.parser=y;var f=y,m={};d(m,{addEvent:()=>C,addSection:()=>I,addTask:()=>L,addTaskOrg:()=>N,clear:()=>S,default:()=>D,getCommonDb:()=>v,getDirection:()=>T,getSections:()=>M,getTasks:()=>H,setDirection:()=>E});var x="",b=0,k="LR",w=[],_=[],$=[],v=t(()=>p,"getCommonDb"),S=t(function(){w.length=0,_.length=0,x="",$.length=0,k="LR",u()},"clear"),E=t(function(t){k=t},"setDirection"),T=t(function(){return k},"getDirection"),I=t(function(t){x=t,w.push(t)},"addSection"),M=t(function(){return w},"getSections"),H=t(function(){let t=j();let e=0;for(;!t&&e<100;)t=j(),e++;return _.push(...$),_},"getTasks"),L=t(function(t,e,n){const i={id:b++,section:x,type:x,task:t,score:e||0,events:n?[n]:[]};$.push(i)},"addTask"),C=t(function(t){$.find(t=>t.id===b-1).events.push(t)},"addEvent"),N=t(function(t){const e={section:x,type:x,description:t,task:t,classes:[]};_.push(e)},"addTaskOrg"),j=t(function(){const e=t(function(t){return $[t].processed},"compileTask");let n=!0;for(const[t,i]of $.entries())e(t),n=n&&i.processed;return n},"compileTasks"),D={clear:S,getCommonDb:v,getDirection:T,setDirection:E,addSection:I,getSections:M,getTasks:H,addTask:L,addTaskOrg:N,addEvent:C},O=0,A=t(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"),B=t(function(e,n){const i=15,r=e.append("circle").attr("cx",n.cx).attr("cy",n.cy).attr("class","face").attr("r",i).attr("stroke-width",2).attr("overflow","visible"),a=e.append("g");function s(t){const e=g().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+2)+")")}function o(t){const e=g().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(i/2.2);t.append("path").attr("class","mouth").attr("d",e).attr("transform","translate("+n.cx+","+(n.cy+7)+")")}function c(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",n.cx-5).attr("y1",n.cy+7).attr("x2",n.cx+5).attr("y2",n.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.append("circle").attr("cx",n.cx-5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),a.append("circle").attr("cx",n.cx+5).attr("cy",n.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t(s,"smile"),t(o,"sad"),t(c,"ambivalent"),n.score>3?s(a):n.score<3?o(a):c(a),r},"drawFace"),R=t(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"),P=t(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 r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},"drawText"),W=t(function(e,n){function i(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-1.2*r)+","+(e+i)+" "+t+","+(e+i)}t(i,"genPoints");const r=e.append("polygon");r.attr("points",i(n.x,n.y,50,20,7)),r.attr("class","labelBox"),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,P(e,n)},"drawLabel"),z=t(function(t,e,n){const i=t.append("g"),r=Y();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,A(i,r),Z(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)},"drawSection"),F=-1,V=t(function(t,e,n,i){const r=e.x+n.width/2,a=t.append("g");F++;a.append("line").attr("id",i+"-task"+F).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),B(a,{cx:r,cy:300+30*(5-e.score),score:e.score});const s=Y();s.x=e.x,s.y=e.y,s.fill=e.fill,s.width=n.width,s.height=n.height,s.class="task task-type-"+e.num,s.rx=3,s.ry=3,A(a,s),Z(n)(e.task,a,s.x,s.y,s.width,s.height,{class:"task"},n,e.colour)},"drawTask"),G=t(function(t,e){A(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},"drawBackgroundRect"),U=t(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),Y=t(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Z=function(){function e(t,e,n,i,a,s,o,c){r(e.append("text").attr("x",n+a/2).attr("y",i+s/2+5).style("font-color",c).style("text-anchor","middle").text(t),o)}function n(t,e,n,i,a,s,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c,p=t.split(/<br\s*\/?>/gi);for(let t=0;t<p.length;t++){const c=t*h-h*(p.length-1)/2,u=e.append("text").attr("x",n+a/2).attr("y",i).attr("fill",l).style("text-anchor","middle").style("font-size",h).style("font-family",d);u.append("tspan").attr("x",n+a/2).attr("dy",c).text(p[t]),u.attr("y",i+s/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(u,o)}}function i(t,e,i,a,s,o,c,l){const h=e.append("switch"),d=h.append("foreignObject").attr("x",i).attr("y",a).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,a,s,o,c,l),r(d,c)}function r(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return t(e,"byText"),t(n,"byTspan"),t(i,"byFo"),t(r,"_setTextAttrs"),function(t){return"fo"===t.textPlacement?i:"old"===t.textPlacement?e:n}}(),q=t(function(t,e){O=0,F=-1,t.append("defs").append("marker").attr("id",e+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics");function X(t,e){t.each(function(){var t,n=h(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],a=n.attr("y"),s=parseFloat(n.attr("dy")),o=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;s<i.length;s++)t=i[i.length-1-s],r.push(t),o.text(r.join(" ").trim()),(o.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),o.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],o=n.append("tspan").attr("x",0).attr("y",a).attr("dy","1.1em").text(t))})}t(X,"wrap");var K=t(function(t,e,n,i,r,a=!1){const{theme:s,look:o}=i,c=s?.includes("redux"),l=n%(i?.themeVariables?.THEME_COLOR_LIMIT??12)-1,d=t.append("g");e.section=l,d.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+l);const p=d.append("g"),u=d.append("g"),g=u.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(X,e.width).node().getBBox(),y=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=g.height+1.1*y*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,u.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),c&&u.attr("transform",`translate(${e.width/2}, ${a?e.padding/2+3:e.padding})`),Q(p,e,l,r,i),"neo"===o&&(d.attr("data-look","neo"),c)){const e=s.includes("dark"),n=t.node()?.ownerSVGElement??t.node(),i=h(n),r=i.attr("id")??"",a=r?`${r}-drop-shadow`:"drop-shadow";if(i.select(`#${a}`).empty()){const t=i.select("defs");(t.empty()?i.append("defs"):t).append("filter").attr("id",a).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity",e?"0.2":"0.06").attr("flood-color",e?"#FFFFFF":"#000000")}}return e},"drawNode"),J=t(function(t,e,n){const i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(X,e.width).node().getBBox(),a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*a*.5+e.padding},"getVirtualNodeHeight"),Q=t(function(t,e,n,i,r){const{theme:a}=r,s=a?.includes("redux")?0:5,o=s>0?`M0 ${e.height-5} v${10-e.height} q0,-${s},${s},-${s} h${e.width-10} q${s},0,${s},${s} v${e.height-5} H0 Z`:`M0 ${e.height-5} v${-(e.height-5)} h${e.width} v${e.height} H0 Z`;t.append("path").attr("id",i+"-node-"+O++).attr("class","node-bkg node-"+e.type).attr("d",o),a?.includes("redux")||t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},"defaultBkg"),tt={drawRect:A,drawCircle:R,drawSection:z,drawText:P,drawLabel:W,drawTask:V,drawBackgroundRect:G,getTextObj:U,getNoteRect:Y,initGraphics:q,drawNode:K,getVirtualNodeHeight:J},et=t(function(t,e,n,i){const r=a(),{look:o,theme:c,themeVariables:d}=r,{useGradient:p,gradientStart:u,gradientStop:g}=d,y=r.timeline?.leftMargin??50;s.debug("timeline",i.db);const f=r.securityLevel;let m;"sandbox"===f&&(m=h("#i"+e));const x=h("sandbox"===f?m.nodes()[0].contentDocument.body:"body").select("#"+e);x.append("g");const b=i.db.getTasks(),k=i.db.getCommonDb().getDiagramTitle();s.debug("task",b),tt.initGraphics(x,e);const w=i.db.getSections();s.debug("sections",w);let _=0,$=0,v=0,S=0,E=50+y,T=50;S=50;let I=0,M=!0;w.forEach(function(t){const e={number:I,descr:t,section:I,width:150,padding:20,maxHeight:_},n=tt.getVirtualNodeHeight(x,e,r);s.debug("sectionHeight before draw",n),_=Math.max(_,n+20)});let H=0,L=0;s.debug("tasks.length",b.length);for(const[t,e]of b.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:$},i=tt.getVirtualNodeHeight(x,n,r);s.debug("taskHeight before draw",i),$=Math.max($,i+20),H=Math.max(H,e.events.length);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:150,padding:20,maxHeight:50};a+=tt.getVirtualNodeHeight(x,n,r)}e.events.length>0&&(a+=10*(e.events.length-1)),L=Math.max(L,a)}s.debug("maxSectionHeight before draw",_),s.debug("maxTaskHeight before draw",$),w&&w.length>0?w.forEach(t=>{const n=b.filter(e=>e.section===t),i={number:I,descr:t,section:I,width:200*Math.max(n.length,1)-50,padding:20,maxHeight:_};s.debug("sectionNode",i);const a=x.append("g"),o=tt.drawNode(a,i,I,r,e);s.debug("sectionNode output",o),a.attr("transform",`translate(${E}, 50)`),T+=_+50,n.length>0&&nt(x,n,I,E,T,$,r,H,L,_,!1,e),E+=200*Math.max(n.length,1),T=50,I++}):(M=!1,nt(x,b,I,E,T,$,r,H,L,_,!0,e));const C=x.node().getBBox();s.debug("bounds",C),k&&x.append("text").text(k).attr("x","neo"===o?2*C.x+y:C.width/2-y).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),v=M?_+$+150:$+100;if(x.append("g").attr("class","lineWrapper").append("line").attr("x1",y).attr("y1",v).attr("x2",C.width+3*y).attr("y2",v).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${e}-arrowhead)`),"neo"===o&&p&&"neutral"!==c){const t=x.select("defs"),e=(t.empty()?x.append("defs"):t).append("linearGradient").attr("id",x.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");e.append("stop").attr("offset","0%").attr("stop-color",u).attr("stop-opacity",1),e.append("stop").attr("offset","100%").attr("stop-color",g).attr("stop-opacity",1)}l(void 0,x,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),nt=t(function(t,e,n,i,r,a,o,c,l,h,d,p){for(const c of e){const e={descr:c.task,section:n,number:n,width:150,padding:20,maxHeight:a};s.debug("taskNode",e);const h=t.append("g").attr("class","taskWrapper"),u=tt.drawNode(h,e,n,o,p).height;if(s.debug("taskHeight after draw",u),h.attr("transform",`translate(${i}, ${r})`),a=Math.max(a,u),c.events){const e=t.append("g").attr("class","lineWrapper");let s=a;r+=100,s+=it(t,c.events,n,i,r,o,p),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+a).attr("x2",i+95).attr("y2",r+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${p}-arrowhead)`).attr("stroke-dasharray","5,5")}i+=200,d&&!o.timeline?.disableMulticolor&&n++}r-=10},"drawTasks"),it=t(function(t,e,n,i,r,a,o){let c=0;const l=r;r+=100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};s.debug("eventNode",e);const h=t.append("g").attr("class","eventWrapper"),d=tt.drawNode(h,e,n,a,o,!0).height;c+=d,h.attr("transform",`translate(${i}, ${r})`),r=r+10+d}return r=l,c},"drawEvents"),rt={setConf:t(()=>{},"setConf"),draw:et},at=200,st=t(function(t,e,n,i){const r=a(),h=r.timeline?.leftMargin??50;s.debug("timeline",i.db);const d=o(e);d.append("g");const p=i.db.getTasks(),u=i.db.getCommonDb().getDiagramTitle();s.debug("task",p),tt.initGraphics(d);const g=i.db.getSections();s.debug("sections",g);let y=0,f=0;const m=50+h;let x=50;const b=x,k=230,w=m+k;let _=0;const $=g&&g.length>0,v=$?w:m+k,S=Math.max(50,580);g.forEach(function(t){const e={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y},n=tt.getVirtualNodeHeight(d,e,r);s.debug("sectionHeight before draw",n),y=Math.max(y,n)});let E=0;s.debug("tasks.length",p.length);for(const[t,e]of p.entries()){const n={number:t,descr:e,section:e.section,width:at,padding:5,maxHeight:f},i=tt.getVirtualNodeHeight(d,n,r);s.debug("taskHeight before draw",i),f=Math.max(f,i);let a=0;for(const t of e.events){const n={descr:t,section:e.section,number:e.section,width:300,padding:5,maxHeight:50};a+=tt.getVirtualNodeHeight(d,n,r)}e.events.length>0&&(a+=10*(e.events.length-1)),E=Math.max(E,a)+0}s.debug("maxSectionHeight before draw",y),s.debug("maxTaskHeight before draw",f);const T=Math.max(f,E)+30;$?g.forEach(t=>{const e=p.filter(e=>e.section===t),n={number:_,descr:t,section:_,width:S,padding:5,maxHeight:y};s.debug("sectionNode",n);const i=d.append("g"),a=tt.drawNode(i,n,_,r);s.debug("sectionNode output",a);const o=v-k;i.attr("transform",`translate(${o}, ${x})`);const c=x+a.height+20;e.length>0&&ot(d,e,_,v,c,f,r,T,!1);const l=e.length,h=a.height+20+T*Math.max(l,1)-(l>0?60:0);x+=h,_++}):ot(d,p,_,v,x,f,r,T,!0);let I=d.node()?.getBBox();if(!I)throw new Error("bbox not found");if(s.debug("bounds",I),u){if(d.append("text").text(u).attr("x",I.width/2-h).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),I=d.node()?.getBBox(),!I)throw new Error("bbox not found");s.debug("bounds after title",I)}const[M]=c(r.fontSize),H=2*(M??16),L=.5*(M??16)+20,C=d.append("g").attr("class","lineWrapper");C.append("line").attr("x1",v).attr("y1",b-H).attr("x2",v).attr("y2",I.y+I.height+L).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),C.lower(),l(void 0,d,r.timeline?.padding??50,r.timeline?.useMaxWidth??!1)},"draw"),ot=t(function(t,e,n,i,r,a,o,c,l){for(const h of e){const e={descr:h.task,section:n,number:n,width:at,padding:5,maxHeight:a};s.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),p=tt.drawNode(d,e,n,o),u=p.height;s.debug("taskHeight after draw",u);const g=i-20-p.width;if(d.attr("transform",`translate(${g}, ${r})`),a=Math.max(a,u),h.events&&h.events.length>0){const e=r,a=i+50;ct(t,h.events,n,i,a,e,o)}r+=c,l&&!o.timeline?.disableMulticolor&&n++}},"drawTasks"),ct=t(function(t,e,n,i,r,a,o){let c=a;for(const a of e){const e={descr:a,section:n,number:n,width:300,padding:5,maxHeight:0};s.debug("eventNode",e);const l=t.append("g").attr("class","eventWrapper"),h=tt.drawNode(l,e,n,o).height;l.attr("transform",`translate(${r}, ${c})`);const d=c+h/2;t.append("g").attr("class","lineWrapper").append("line").attr("x1",i).attr("y1",d).attr("x2",r).attr("y2",d).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),c=c+h+10}return c-a},"drawEvents"),lt={setConf:t(()=>{},"setConf"),draw:st},ht=t(t=>{const{theme:n}=e(),i=n?.includes("dark"),r=n?.includes("color"),a=t.svgId?.replace(/^#/,"")??"",s=a?`url(#${a}-drop-shadow)`:t.dropShadow??"none";let o="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++){const n=""+(17-3*e),a=r?t.borderColorArray[e]:t.mainBkg,c=r?t.borderColorArray[e]:t.nodeBorder;o+=`\n .section-${e-1} rect,\n .section-${e-1} path,\n .section-${e-1} circle {\n fill: ${i&&r?t.mainBkg:a};\n stroke: ${c};\n stroke-width: ${t.strokeWidth};\n filter: ${s};\n }\n\n .section-${e-1} text {\n fill: ${t.nodeBorder};\n font-weight: ${t.fontWeight}\n }\n\n .node-icon-${e-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+e]};\n }\n\n .section-edge-${e-1} {\n stroke: ${t["cScale"+e]};\n }\n\n .edge-depth-${e-1} {\n stroke-width: ${n};\n }\n\n .section-${e-1} line {\n stroke: ${t["cScaleInv"+e]};\n stroke-width: 3;\n }\n\n .lineWrapper line {\n stroke: ${t.nodeBorder};\n stroke-width:${t.strokeWidth}\n }\n\n .disabled,\n .disabled circle,\n .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return o},"genReduxSections"),dt=t(t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],n(t["lineColor"+e])?t["lineColor"+e]=i(t["lineColor"+e],20):t["lineColor"+e]=r(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: ${t.tertiaryColor??"lightgray"};\n }\n .disabled text {\n fill: ${t.clusterBorder??"#efefef"};\n }\n `}return e},"genSections"),pt=t(t=>{const{theme:n}=e(),i=n?.includes("redux"),r="neutral"===n,a=t.svgId?.replace(/^#/,"")??"";let s="";if(t.useGradient&&a&&t.THEME_COLOR_LIMIT&&!r)for(let e=0;e<t.THEME_COLOR_LIMIT;e++)s+=`\n .section-${e-1}[data-look="neo"] rect,\n .section-${e-1}[data-look="neo"] path,\n .section-${e-1}[data-look="neo"] circle {\n fill: ${t.mainBkg};\n stroke: url(#${a}-gradient);\n stroke-width: 2;\n }\n .section-${e-1}[data-look="neo"] line {\n stroke: url(#${a}-gradient);\n stroke-width: 2;\n }`;return`\n .edge {\n stroke-width: 3;\n }\n ${i?ht(t):dt(t)}\n ${s}\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"),ut={db:m,renderer:{setConf:t(()=>{},"setConf"),draw:t((t,e,n,i)=>"TD"===(i?.db?.getDirection?.()??"LR")?lt.draw(t,e,n,i):rt.draw(t,e,n,i),"draw")},parser:f,styles:pt};export{ut as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r}from"./mermaid-parser.core-
|
|
1
|
+
import{e as r}from"./mermaid-parser.core-KtTYbDqg.js";export{T as TreeViewModule}from"./mermaid-parser.core-KtTYbDqg.js";import"./map-BvlAjF4J.js";import"./_baseIteratee-DJNkOVK7.js";import"./memoize-CPUrcYQl.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./min-Dc9VrJ6M.js";import"./mermaid.core-Crnpnced.js";import"./index-CP5vpK1A.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-B_OozOv-.js";import"./settings-BIQ7IqJl.js";import"./constants.js";import"./LoaderLayer-D9O7WqFD.js";import"./websocket-C4PinjUD.js";import"./index-CODLgwqm.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./string-LeDn2fkG.js";export{r as createTreeViewServices};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as r}from"./mermaid-parser.core-
|
|
1
|
+
import{i as r}from"./mermaid-parser.core-KtTYbDqg.js";export{j as TreemapModule}from"./mermaid-parser.core-KtTYbDqg.js";import"./map-BvlAjF4J.js";import"./_baseIteratee-DJNkOVK7.js";import"./memoize-CPUrcYQl.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./min-Dc9VrJ6M.js";import"./mermaid.core-Crnpnced.js";import"./index-CP5vpK1A.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-B_OozOv-.js";import"./settings-BIQ7IqJl.js";import"./constants.js";import"./LoaderLayer-D9O7WqFD.js";import"./websocket-C4PinjUD.js";import"./index-CODLgwqm.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-DBOWJxv3.js";import"./string-LeDn2fkG.js";export{r as createTreemapServices};
|