ranui 0.2.1-alpha.1 → 0.2.1-alpha.3
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/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
- package/dist/arc-D25LhgTs.cjs +1 -0
- package/dist/arc-DRPGof21.js +82 -0
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
- package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
- package/dist/array-By5736M5.js +7 -0
- package/dist/array-C3cbN3GY.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +2 -2
- package/dist/builder.js +39 -34
- package/dist/{builtin-D9djWkCE.js → builtin-BkM0LLof.js} +83 -76
- package/dist/button-D0zcnKnG.js +117 -0
- package/dist/button.js +1 -1
- package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
- package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
- package/dist/{card-CqJa4Q_v.js → card-CygMndQS.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/channel-C9WSNwcS.cjs +1 -0
- package/dist/channel-k5-UxdcV.js +5 -0
- package/dist/{checkbox-CThC9-vy.js → checkbox-D5om9aJO.js} +10 -10
- package/dist/checkbox.js +1 -1
- package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
- package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
- package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
- package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
- package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
- package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
- package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
- package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
- package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
- package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
- package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
- package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
- package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
- package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
- package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
- package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
- package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
- package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
- package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
- package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
- package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
- package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
- package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
- package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
- package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
- package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
- package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
- package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
- package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
- package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
- package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
- package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
- package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
- package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
- package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
- package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
- package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
- package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
- package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
- package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
- package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
- package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
- package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
- package/dist/{colorpicker-XNxDRcQ-.js → colorpicker-qWnaTlYX.js} +8 -8
- package/dist/colorpicker.js +1 -1
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/content-Rry-U6ir.js +39 -0
- package/dist/content.js +5 -0
- package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
- package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
- package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
- package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
- package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
- package/dist/dagre-D1-W1tt6.cjs +1 -0
- package/dist/dagre-D8GLTwuf.js +1578 -0
- package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
- package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
- package/dist/defaultLocale-0M_kMcEH.js +184 -0
- package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
- package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
- package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
- package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
- package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
- package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
- package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
- package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
- package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
- package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
- package/dist/dist-C0Fwsvsq.js +70 -0
- package/dist/dist-C20XxSsP.cjs +1 -0
- package/dist/{dropdown-CCvsambb.js → dropdown-DzdAR1nI.js} +4 -4
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
- package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
- package/dist/factory-BkvRcCOx.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-Ceq3uJzz.js → form-CUJpeQ7Q.js} +5 -5
- package/dist/form.js +1 -1
- package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
- package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
- package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
- package/dist/glass-Bj1Zf8Hy.js +115 -0
- package/dist/glass.js +5 -0
- package/dist/graphlib-CCKThIKP.js +1104 -0
- package/dist/graphlib-Du-578Js.cjs +1 -0
- package/dist/{icon-C_ENrJ3F.js → icon-CtlZJISZ.js} +77 -25
- package/dist/icon.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -0
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +14 -14
- package/dist/iife/mermaid.iife.js +3535 -0
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +8 -8
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +1 -1
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/{image-B7MBI5n_.js → image-ILZNlaGc.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +38 -37
- package/dist/index.d.ts +8 -0
- package/dist/index.iife.js +3623 -88
- package/dist/index.js +88 -84
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
- package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
- package/dist/init-1VpIn1S3.js +16 -0
- package/dist/init-CbDwVtpO.cjs +1 -0
- package/dist/{input-RNqdEHPf.js → input-CDH6zY9I.js} +6 -6
- package/dist/input.js +1 -1
- package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
- package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
- package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
- package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
- package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
- package/dist/katex-Cq3Y8cmK.cjs +257 -0
- package/dist/katex-Pg2EqTH0.js +23485 -0
- package/dist/line-BIPmUVxO.js +33 -0
- package/dist/line-CAB5QHC6.cjs +1 -0
- package/dist/linear-B2AM4ZBe.js +259 -0
- package/dist/linear-CSAfNEpl.cjs +1 -0
- package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
- package/dist/link.js +1 -1
- package/dist/{loading-B9MFI03l.js → loading-DJWGih1g.js} +4 -4
- package/dist/loading.js +1 -1
- package/dist/map-BC2bk_rV.cjs +1 -0
- package/dist/map-DMSWkcq6.js +208 -0
- package/dist/{math-CudIwEXZ.js → math-DRmkEDSQ.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-CMhm7npE.js +261 -0
- package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
- package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
- package/dist/mermaid.core-B2d5lQW2.js +1085 -0
- package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
- package/dist/mermaid.js +5 -0
- package/dist/{message-DW7qWpEm.js → message-BpYJBvYn.js} +6 -6
- package/dist/message.js +1 -1
- package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
- package/dist/{modal-CrvGKL2B.js → modal-BeQlDYDP.js} +40 -24
- package/dist/modal.js +1 -1
- package/dist/ordinal-BMN81JG2.js +64 -0
- package/dist/ordinal-BplLHIij.cjs +1 -0
- package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
- package/dist/path-Bja5PoYn.js +82 -0
- package/dist/path-DmfWsuKi.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
- package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
- package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
- package/dist/{player-BKQaaT7o.js → player-CQ4e3Yeo.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-CvYIVgUS.js → popover-eZMnL1F3.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-C6jctsFH.js → progress-DyHgW4Ep.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
- package/dist/{radar-BUb4EzmG.js → radar-D21Rccap.js} +5 -5
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
- package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
- package/dist/ranui.css +1 -1
- package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
- package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
- package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
- package/dist/rough.esm-BWe9E0Nz.js +1387 -0
- package/dist/rough.esm-BfSi6CZE.cjs +1 -0
- package/dist/{route-Djrf9UR_.js → route-pR5P4ann.js} +10 -10
- package/dist/route.js +1 -1
- package/dist/{router-BU2KhtxV.js → router-CewzSH7O.js} +5 -5
- package/dist/router.js +1 -1
- package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
- package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
- package/dist/{scratch-CO4I2dIa.js → scratch-BFVsgl-7.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-CsUkp8bv.js → section-DSPCsIxv.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-Dn26ajJZ.js → select-B58nMfB1.js} +13 -13
- package/dist/select.js +1 -1
- package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
- package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
- package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
- package/dist/{skeleton-BuMLhvzQ.js → skeleton-DoHYMsTn.js} +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/src-C9EhKhbk.cjs +1 -0
- package/dist/src-DtRLxcYO.js +2104 -0
- package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
- package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
- package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
- package/dist/{tab-40fDkuox.js → tab-BRPdZ9Ws.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-F4Pd7JtC.js → tabpane-Owf72hw_.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
- package/dist/theme-switch.js +1 -1
- package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
- package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
- package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
- package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
- package/dist/utils/builder/core.d.ts +133 -3
- package/dist/utils/builder/index.d.ts +1 -1
- package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
- package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
- package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
- package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
- package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
- package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +155 -2
- package/package.json +7 -1
- package/dist/button-BfYw0fes.js +0 -117
- package/dist/factory-DCrO37si.js +0 -334
|
@@ -0,0 +1,1119 @@
|
|
|
1
|
+
import { n as o, t as Ct } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
import { m as b, p as Z } from "./src-DtRLxcYO.js";
|
|
3
|
+
import { J as gt, a as Wt, b as ft, et as Pt, o as Bt, rt as Vt, tt as Ft, x as yt } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
4
|
+
import { t as lt } from "./arc-DRPGof21.js";
|
|
5
|
+
import { p as zt } from "./chunk-ICXQ74PX-DR8rL-xF.js";
|
|
6
|
+
import { t as Ot } from "./chunk-VAUOI2AC-izt0o4id.js";
|
|
7
|
+
var tt = (function() {
|
|
8
|
+
var e = /* @__PURE__ */ o(function(i, l, u, d) {
|
|
9
|
+
for (u = u || {}, d = i.length; d--; u[i[d]] = l) ;
|
|
10
|
+
return u;
|
|
11
|
+
}, "o"), t = [
|
|
12
|
+
6,
|
|
13
|
+
11,
|
|
14
|
+
13,
|
|
15
|
+
14,
|
|
16
|
+
15,
|
|
17
|
+
17,
|
|
18
|
+
19,
|
|
19
|
+
20,
|
|
20
|
+
23,
|
|
21
|
+
24
|
|
22
|
+
], n = [1, 12], a = [1, 13], r = [1, 14], c = [1, 15], s = [1, 16], h = [1, 19], m = [1, 20], f = {
|
|
23
|
+
trace: /* @__PURE__ */ o(function() {
|
|
24
|
+
}, "trace"),
|
|
25
|
+
yy: {},
|
|
26
|
+
symbols_: {
|
|
27
|
+
error: 2,
|
|
28
|
+
start: 3,
|
|
29
|
+
timeline_header: 4,
|
|
30
|
+
document: 5,
|
|
31
|
+
EOF: 6,
|
|
32
|
+
timeline: 7,
|
|
33
|
+
timeline_lr: 8,
|
|
34
|
+
timeline_td: 9,
|
|
35
|
+
line: 10,
|
|
36
|
+
SPACE: 11,
|
|
37
|
+
statement: 12,
|
|
38
|
+
NEWLINE: 13,
|
|
39
|
+
title: 14,
|
|
40
|
+
acc_title: 15,
|
|
41
|
+
acc_title_value: 16,
|
|
42
|
+
acc_descr: 17,
|
|
43
|
+
acc_descr_value: 18,
|
|
44
|
+
acc_descr_multiline_value: 19,
|
|
45
|
+
section: 20,
|
|
46
|
+
period_statement: 21,
|
|
47
|
+
event_statement: 22,
|
|
48
|
+
period: 23,
|
|
49
|
+
event: 24,
|
|
50
|
+
$accept: 0,
|
|
51
|
+
$end: 1
|
|
52
|
+
},
|
|
53
|
+
terminals_: {
|
|
54
|
+
2: "error",
|
|
55
|
+
6: "EOF",
|
|
56
|
+
7: "timeline",
|
|
57
|
+
8: "timeline_lr",
|
|
58
|
+
9: "timeline_td",
|
|
59
|
+
11: "SPACE",
|
|
60
|
+
13: "NEWLINE",
|
|
61
|
+
14: "title",
|
|
62
|
+
15: "acc_title",
|
|
63
|
+
16: "acc_title_value",
|
|
64
|
+
17: "acc_descr",
|
|
65
|
+
18: "acc_descr_value",
|
|
66
|
+
19: "acc_descr_multiline_value",
|
|
67
|
+
20: "section",
|
|
68
|
+
23: "period",
|
|
69
|
+
24: "event"
|
|
70
|
+
},
|
|
71
|
+
productions_: [
|
|
72
|
+
0,
|
|
73
|
+
[3, 3],
|
|
74
|
+
[4, 1],
|
|
75
|
+
[4, 1],
|
|
76
|
+
[4, 1],
|
|
77
|
+
[5, 0],
|
|
78
|
+
[5, 2],
|
|
79
|
+
[10, 2],
|
|
80
|
+
[10, 1],
|
|
81
|
+
[10, 1],
|
|
82
|
+
[10, 1],
|
|
83
|
+
[12, 1],
|
|
84
|
+
[12, 2],
|
|
85
|
+
[12, 2],
|
|
86
|
+
[12, 1],
|
|
87
|
+
[12, 1],
|
|
88
|
+
[12, 1],
|
|
89
|
+
[12, 1],
|
|
90
|
+
[21, 1],
|
|
91
|
+
[22, 1]
|
|
92
|
+
],
|
|
93
|
+
performAction: /* @__PURE__ */ o(function(l, u, d, g, y, p, S) {
|
|
94
|
+
var k = p.length - 1;
|
|
95
|
+
switch (y) {
|
|
96
|
+
case 1:
|
|
97
|
+
return p[k - 1];
|
|
98
|
+
case 3:
|
|
99
|
+
g.setDirection("LR");
|
|
100
|
+
break;
|
|
101
|
+
case 4:
|
|
102
|
+
g.setDirection("TD");
|
|
103
|
+
break;
|
|
104
|
+
case 5:
|
|
105
|
+
this.$ = [];
|
|
106
|
+
break;
|
|
107
|
+
case 6:
|
|
108
|
+
p[k - 1].push(p[k]), this.$ = p[k - 1];
|
|
109
|
+
break;
|
|
110
|
+
case 7:
|
|
111
|
+
case 8:
|
|
112
|
+
this.$ = p[k];
|
|
113
|
+
break;
|
|
114
|
+
case 9:
|
|
115
|
+
case 10:
|
|
116
|
+
this.$ = [];
|
|
117
|
+
break;
|
|
118
|
+
case 11:
|
|
119
|
+
g.getCommonDb().setDiagramTitle(p[k].substr(6)), this.$ = p[k].substr(6);
|
|
120
|
+
break;
|
|
121
|
+
case 12:
|
|
122
|
+
this.$ = p[k].trim(), g.getCommonDb().setAccTitle(this.$);
|
|
123
|
+
break;
|
|
124
|
+
case 13:
|
|
125
|
+
case 14:
|
|
126
|
+
this.$ = p[k].trim(), g.getCommonDb().setAccDescription(this.$);
|
|
127
|
+
break;
|
|
128
|
+
case 15:
|
|
129
|
+
g.addSection(p[k].substr(8)), this.$ = p[k].substr(8);
|
|
130
|
+
break;
|
|
131
|
+
case 18:
|
|
132
|
+
g.addTask(p[k], 0, ""), this.$ = p[k];
|
|
133
|
+
break;
|
|
134
|
+
case 19:
|
|
135
|
+
g.addEvent(p[k].substr(2)), this.$ = p[k];
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}, "anonymous"),
|
|
139
|
+
table: [
|
|
140
|
+
{
|
|
141
|
+
3: 1,
|
|
142
|
+
4: 2,
|
|
143
|
+
7: [1, 3],
|
|
144
|
+
8: [1, 4],
|
|
145
|
+
9: [1, 5]
|
|
146
|
+
},
|
|
147
|
+
{ 1: [3] },
|
|
148
|
+
e(t, [2, 5], { 5: 6 }),
|
|
149
|
+
e(t, [2, 2]),
|
|
150
|
+
e(t, [2, 3]),
|
|
151
|
+
e(t, [2, 4]),
|
|
152
|
+
{
|
|
153
|
+
6: [1, 7],
|
|
154
|
+
10: 8,
|
|
155
|
+
11: [1, 9],
|
|
156
|
+
12: 10,
|
|
157
|
+
13: [1, 11],
|
|
158
|
+
14: n,
|
|
159
|
+
15: a,
|
|
160
|
+
17: r,
|
|
161
|
+
19: c,
|
|
162
|
+
20: s,
|
|
163
|
+
21: 17,
|
|
164
|
+
22: 18,
|
|
165
|
+
23: h,
|
|
166
|
+
24: m
|
|
167
|
+
},
|
|
168
|
+
e(t, [2, 10], { 1: [2, 1] }),
|
|
169
|
+
e(t, [2, 6]),
|
|
170
|
+
{
|
|
171
|
+
12: 21,
|
|
172
|
+
14: n,
|
|
173
|
+
15: a,
|
|
174
|
+
17: r,
|
|
175
|
+
19: c,
|
|
176
|
+
20: s,
|
|
177
|
+
21: 17,
|
|
178
|
+
22: 18,
|
|
179
|
+
23: h,
|
|
180
|
+
24: m
|
|
181
|
+
},
|
|
182
|
+
e(t, [2, 8]),
|
|
183
|
+
e(t, [2, 9]),
|
|
184
|
+
e(t, [2, 11]),
|
|
185
|
+
{ 16: [1, 22] },
|
|
186
|
+
{ 18: [1, 23] },
|
|
187
|
+
e(t, [2, 14]),
|
|
188
|
+
e(t, [2, 15]),
|
|
189
|
+
e(t, [2, 16]),
|
|
190
|
+
e(t, [2, 17]),
|
|
191
|
+
e(t, [2, 18]),
|
|
192
|
+
e(t, [2, 19]),
|
|
193
|
+
e(t, [2, 7]),
|
|
194
|
+
e(t, [2, 12]),
|
|
195
|
+
e(t, [2, 13])
|
|
196
|
+
],
|
|
197
|
+
defaultActions: {},
|
|
198
|
+
parseError: /* @__PURE__ */ o(function(l, u) {
|
|
199
|
+
if (u.recoverable) this.trace(l);
|
|
200
|
+
else {
|
|
201
|
+
var d = new Error(l);
|
|
202
|
+
throw d.hash = u, d;
|
|
203
|
+
}
|
|
204
|
+
}, "parseError"),
|
|
205
|
+
parse: /* @__PURE__ */ o(function(l) {
|
|
206
|
+
var u = this, d = [0], g = [], y = [null], p = [], S = this.table, k = "", P = 0, C = 0, B = 0, V = 2, I = 1, A = p.slice.call(arguments, 1), w = Object.create(this.lexer), L = { yy: {} };
|
|
207
|
+
for (var F in this.yy) Object.prototype.hasOwnProperty.call(this.yy, F) && (L.yy[F] = this.yy[F]);
|
|
208
|
+
w.setInput(l, L.yy), L.yy.lexer = w, L.yy.parser = this, typeof w.yylloc > "u" && (w.yylloc = {});
|
|
209
|
+
var T = w.yylloc;
|
|
210
|
+
p.push(T);
|
|
211
|
+
var v = w.options && w.options.ranges;
|
|
212
|
+
typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
213
|
+
function E(W) {
|
|
214
|
+
d.length = d.length - 2 * W, y.length = y.length - W, p.length = p.length - W;
|
|
215
|
+
}
|
|
216
|
+
o(E, "popStack");
|
|
217
|
+
function $() {
|
|
218
|
+
var W = g.pop() || w.lex() || I;
|
|
219
|
+
return typeof W != "number" && (W instanceof Array && (g = W, W = g.pop()), W = u.symbols_[W] || W), W;
|
|
220
|
+
}
|
|
221
|
+
o($, "lex");
|
|
222
|
+
for (var _, H, R, N, D, G = {}, K, z, ot, j; ; ) {
|
|
223
|
+
if (R = d[d.length - 1], this.defaultActions[R] ? N = this.defaultActions[R] : ((_ === null || typeof _ > "u") && (_ = $()), N = S[R] && S[R][_]), typeof N > "u" || !N.length || !N[0]) {
|
|
224
|
+
var Y = "";
|
|
225
|
+
j = [];
|
|
226
|
+
for (K in S[R]) this.terminals_[K] && K > V && j.push("'" + this.terminals_[K] + "'");
|
|
227
|
+
w.showPosition ? Y = "Parse error on line " + (P + 1) + `:
|
|
228
|
+
` + w.showPosition() + `
|
|
229
|
+
Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "Parse error on line " + (P + 1) + ": Unexpected " + (_ == I ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(Y, {
|
|
230
|
+
text: w.match,
|
|
231
|
+
token: this.terminals_[_] || _,
|
|
232
|
+
line: w.yylineno,
|
|
233
|
+
loc: T,
|
|
234
|
+
expected: j
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
if (N[0] instanceof Array && N.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + R + ", token: " + _);
|
|
238
|
+
switch (N[0]) {
|
|
239
|
+
case 1:
|
|
240
|
+
d.push(_), y.push(w.yytext), p.push(w.yylloc), d.push(N[1]), _ = null, H ? (_ = H, H = null) : (C = w.yyleng, k = w.yytext, P = w.yylineno, T = w.yylloc, B > 0 && B--);
|
|
241
|
+
break;
|
|
242
|
+
case 2:
|
|
243
|
+
if (z = this.productions_[N[1]][1], G.$ = y[y.length - z], G._$ = {
|
|
244
|
+
first_line: p[p.length - (z || 1)].first_line,
|
|
245
|
+
last_line: p[p.length - 1].last_line,
|
|
246
|
+
first_column: p[p.length - (z || 1)].first_column,
|
|
247
|
+
last_column: p[p.length - 1].last_column
|
|
248
|
+
}, v && (G._$.range = [p[p.length - (z || 1)].range[0], p[p.length - 1].range[1]]), D = this.performAction.apply(G, [
|
|
249
|
+
k,
|
|
250
|
+
C,
|
|
251
|
+
P,
|
|
252
|
+
L.yy,
|
|
253
|
+
N[1],
|
|
254
|
+
y,
|
|
255
|
+
p
|
|
256
|
+
].concat(A)), typeof D < "u") return D;
|
|
257
|
+
z && (d = d.slice(0, -1 * z * 2), y = y.slice(0, -1 * z), p = p.slice(0, -1 * z)), d.push(this.productions_[N[1]][0]), y.push(G.$), p.push(G._$), ot = S[d[d.length - 2]][d[d.length - 1]], d.push(ot);
|
|
258
|
+
break;
|
|
259
|
+
case 3:
|
|
260
|
+
return !0;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return !0;
|
|
264
|
+
}, "parse")
|
|
265
|
+
};
|
|
266
|
+
f.lexer = /* @__PURE__ */ (function() {
|
|
267
|
+
return {
|
|
268
|
+
EOF: 1,
|
|
269
|
+
parseError: /* @__PURE__ */ o(function(l, u) {
|
|
270
|
+
if (this.yy.parser) this.yy.parser.parseError(l, u);
|
|
271
|
+
else throw new Error(l);
|
|
272
|
+
}, "parseError"),
|
|
273
|
+
setInput: /* @__PURE__ */ o(function(i, l) {
|
|
274
|
+
return this.yy = l || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
275
|
+
first_line: 1,
|
|
276
|
+
first_column: 0,
|
|
277
|
+
last_line: 1,
|
|
278
|
+
last_column: 0
|
|
279
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
280
|
+
}, "setInput"),
|
|
281
|
+
input: /* @__PURE__ */ o(function() {
|
|
282
|
+
var i = this._input[0];
|
|
283
|
+
return this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i, i.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), i;
|
|
284
|
+
}, "input"),
|
|
285
|
+
unput: /* @__PURE__ */ o(function(i) {
|
|
286
|
+
var l = i.length, u = i.split(/(?:\r\n?|\n)/g);
|
|
287
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
|
|
288
|
+
var d = this.match.split(/(?:\r\n?|\n)/g);
|
|
289
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), u.length - 1 && (this.yylineno -= u.length - 1);
|
|
290
|
+
var g = this.yylloc.range;
|
|
291
|
+
return this.yylloc = {
|
|
292
|
+
first_line: this.yylloc.first_line,
|
|
293
|
+
last_line: this.yylineno + 1,
|
|
294
|
+
first_column: this.yylloc.first_column,
|
|
295
|
+
last_column: u ? (u.length === d.length ? this.yylloc.first_column : 0) + d[d.length - u.length].length - u[0].length : this.yylloc.first_column - l
|
|
296
|
+
}, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
|
|
297
|
+
}, "unput"),
|
|
298
|
+
more: /* @__PURE__ */ o(function() {
|
|
299
|
+
return this._more = !0, this;
|
|
300
|
+
}, "more"),
|
|
301
|
+
reject: /* @__PURE__ */ o(function() {
|
|
302
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
303
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
304
|
+
` + this.showPosition(), {
|
|
305
|
+
text: "",
|
|
306
|
+
token: null,
|
|
307
|
+
line: this.yylineno
|
|
308
|
+
});
|
|
309
|
+
return this;
|
|
310
|
+
}, "reject"),
|
|
311
|
+
less: /* @__PURE__ */ o(function(i) {
|
|
312
|
+
this.unput(this.match.slice(i));
|
|
313
|
+
}, "less"),
|
|
314
|
+
pastInput: /* @__PURE__ */ o(function() {
|
|
315
|
+
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
316
|
+
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
317
|
+
}, "pastInput"),
|
|
318
|
+
upcomingInput: /* @__PURE__ */ o(function() {
|
|
319
|
+
var i = this.match;
|
|
320
|
+
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
321
|
+
}, "upcomingInput"),
|
|
322
|
+
showPosition: /* @__PURE__ */ o(function() {
|
|
323
|
+
var i = this.pastInput(), l = new Array(i.length + 1).join("-");
|
|
324
|
+
return i + this.upcomingInput() + `
|
|
325
|
+
` + l + "^";
|
|
326
|
+
}, "showPosition"),
|
|
327
|
+
test_match: /* @__PURE__ */ o(function(i, l) {
|
|
328
|
+
var u, d, g;
|
|
329
|
+
if (this.options.backtrack_lexer && (g = {
|
|
330
|
+
yylineno: this.yylineno,
|
|
331
|
+
yylloc: {
|
|
332
|
+
first_line: this.yylloc.first_line,
|
|
333
|
+
last_line: this.last_line,
|
|
334
|
+
first_column: this.yylloc.first_column,
|
|
335
|
+
last_column: this.yylloc.last_column
|
|
336
|
+
},
|
|
337
|
+
yytext: this.yytext,
|
|
338
|
+
match: this.match,
|
|
339
|
+
matches: this.matches,
|
|
340
|
+
matched: this.matched,
|
|
341
|
+
yyleng: this.yyleng,
|
|
342
|
+
offset: this.offset,
|
|
343
|
+
_more: this._more,
|
|
344
|
+
_input: this._input,
|
|
345
|
+
yy: this.yy,
|
|
346
|
+
conditionStack: this.conditionStack.slice(0),
|
|
347
|
+
done: this.done
|
|
348
|
+
}, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), d = i[0].match(/(?:\r\n?|\n).*/g), d && (this.yylineno += d.length), this.yylloc = {
|
|
349
|
+
first_line: this.yylloc.last_line,
|
|
350
|
+
last_line: this.yylineno + 1,
|
|
351
|
+
first_column: this.yylloc.last_column,
|
|
352
|
+
last_column: d ? d[d.length - 1].length - d[d.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
353
|
+
}, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], u = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), u) return u;
|
|
354
|
+
if (this._backtrack) {
|
|
355
|
+
for (var y in g) this[y] = g[y];
|
|
356
|
+
return !1;
|
|
357
|
+
}
|
|
358
|
+
return !1;
|
|
359
|
+
}, "test_match"),
|
|
360
|
+
next: /* @__PURE__ */ o(function() {
|
|
361
|
+
if (this.done) return this.EOF;
|
|
362
|
+
this._input || (this.done = !0);
|
|
363
|
+
var i, l, u, d;
|
|
364
|
+
this._more || (this.yytext = "", this.match = "");
|
|
365
|
+
for (var g = this._currentRules(), y = 0; y < g.length; y++)
|
|
366
|
+
if (u = this._input.match(this.rules[g[y]]), u && (!l || u[0].length > l[0].length)) {
|
|
367
|
+
if (l = u, d = y, this.options.backtrack_lexer) {
|
|
368
|
+
if (i = this.test_match(u, g[y]), i !== !1) return i;
|
|
369
|
+
if (this._backtrack) {
|
|
370
|
+
l = !1;
|
|
371
|
+
continue;
|
|
372
|
+
} else return !1;
|
|
373
|
+
} else if (!this.options.flex) break;
|
|
374
|
+
}
|
|
375
|
+
return l ? (i = this.test_match(l, g[d]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
376
|
+
` + this.showPosition(), {
|
|
377
|
+
text: "",
|
|
378
|
+
token: null,
|
|
379
|
+
line: this.yylineno
|
|
380
|
+
});
|
|
381
|
+
}, "next"),
|
|
382
|
+
lex: /* @__PURE__ */ o(function() {
|
|
383
|
+
var l = this.next();
|
|
384
|
+
return l || this.lex();
|
|
385
|
+
}, "lex"),
|
|
386
|
+
begin: /* @__PURE__ */ o(function(l) {
|
|
387
|
+
this.conditionStack.push(l);
|
|
388
|
+
}, "begin"),
|
|
389
|
+
popState: /* @__PURE__ */ o(function() {
|
|
390
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
391
|
+
}, "popState"),
|
|
392
|
+
_currentRules: /* @__PURE__ */ o(function() {
|
|
393
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
394
|
+
}, "_currentRules"),
|
|
395
|
+
topState: /* @__PURE__ */ o(function(l) {
|
|
396
|
+
return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
|
|
397
|
+
}, "topState"),
|
|
398
|
+
pushState: /* @__PURE__ */ o(function(l) {
|
|
399
|
+
this.begin(l);
|
|
400
|
+
}, "pushState"),
|
|
401
|
+
stateStackSize: /* @__PURE__ */ o(function() {
|
|
402
|
+
return this.conditionStack.length;
|
|
403
|
+
}, "stateStackSize"),
|
|
404
|
+
options: { "case-insensitive": !0 },
|
|
405
|
+
performAction: /* @__PURE__ */ o(function(l, u, d, g) {
|
|
406
|
+
switch (d) {
|
|
407
|
+
case 0:
|
|
408
|
+
break;
|
|
409
|
+
case 1:
|
|
410
|
+
break;
|
|
411
|
+
case 2:
|
|
412
|
+
return 13;
|
|
413
|
+
case 3:
|
|
414
|
+
break;
|
|
415
|
+
case 4:
|
|
416
|
+
break;
|
|
417
|
+
case 5:
|
|
418
|
+
return 8;
|
|
419
|
+
case 6:
|
|
420
|
+
return 9;
|
|
421
|
+
case 7:
|
|
422
|
+
return 7;
|
|
423
|
+
case 8:
|
|
424
|
+
return 14;
|
|
425
|
+
case 9:
|
|
426
|
+
return this.begin("acc_title"), 15;
|
|
427
|
+
case 10:
|
|
428
|
+
return this.popState(), "acc_title_value";
|
|
429
|
+
case 11:
|
|
430
|
+
return this.begin("acc_descr"), 17;
|
|
431
|
+
case 12:
|
|
432
|
+
return this.popState(), "acc_descr_value";
|
|
433
|
+
case 13:
|
|
434
|
+
this.begin("acc_descr_multiline");
|
|
435
|
+
break;
|
|
436
|
+
case 14:
|
|
437
|
+
this.popState();
|
|
438
|
+
break;
|
|
439
|
+
case 15:
|
|
440
|
+
return "acc_descr_multiline_value";
|
|
441
|
+
case 16:
|
|
442
|
+
return 20;
|
|
443
|
+
case 17:
|
|
444
|
+
return 24;
|
|
445
|
+
case 18:
|
|
446
|
+
return 23;
|
|
447
|
+
case 19:
|
|
448
|
+
return 6;
|
|
449
|
+
case 20:
|
|
450
|
+
return "INVALID";
|
|
451
|
+
}
|
|
452
|
+
}, "anonymous"),
|
|
453
|
+
rules: [
|
|
454
|
+
/^(?:%(?!\{)[^\n]*)/i,
|
|
455
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
456
|
+
/^(?:[\n]+)/i,
|
|
457
|
+
/^(?:\s+)/i,
|
|
458
|
+
/^(?:#[^\n]*)/i,
|
|
459
|
+
/^(?:timeline[ \t]+LR\b)/i,
|
|
460
|
+
/^(?:timeline[ \t]+TD\b)/i,
|
|
461
|
+
/^(?:timeline\b)/i,
|
|
462
|
+
/^(?:title\s[^\n]+)/i,
|
|
463
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
464
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
465
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
466
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
467
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
468
|
+
/^(?:[\}])/i,
|
|
469
|
+
/^(?:[^\}]*)/i,
|
|
470
|
+
/^(?:section\s[^:\n]+)/i,
|
|
471
|
+
/^(?::\s(?:[^:\n]|:(?!\s))+)/i,
|
|
472
|
+
/^(?:[^#:\n]+)/i,
|
|
473
|
+
/^(?:$)/i,
|
|
474
|
+
/^(?:.)/i
|
|
475
|
+
],
|
|
476
|
+
conditions: {
|
|
477
|
+
acc_descr_multiline: {
|
|
478
|
+
rules: [14, 15],
|
|
479
|
+
inclusive: !1
|
|
480
|
+
},
|
|
481
|
+
acc_descr: {
|
|
482
|
+
rules: [12],
|
|
483
|
+
inclusive: !1
|
|
484
|
+
},
|
|
485
|
+
acc_title: {
|
|
486
|
+
rules: [10],
|
|
487
|
+
inclusive: !1
|
|
488
|
+
},
|
|
489
|
+
INITIAL: {
|
|
490
|
+
rules: [
|
|
491
|
+
0,
|
|
492
|
+
1,
|
|
493
|
+
2,
|
|
494
|
+
3,
|
|
495
|
+
4,
|
|
496
|
+
5,
|
|
497
|
+
6,
|
|
498
|
+
7,
|
|
499
|
+
8,
|
|
500
|
+
9,
|
|
501
|
+
11,
|
|
502
|
+
13,
|
|
503
|
+
16,
|
|
504
|
+
17,
|
|
505
|
+
18,
|
|
506
|
+
19,
|
|
507
|
+
20
|
|
508
|
+
],
|
|
509
|
+
inclusive: !0
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
})();
|
|
514
|
+
function x() {
|
|
515
|
+
this.yy = {};
|
|
516
|
+
}
|
|
517
|
+
return o(x, "Parser"), x.prototype = f, f.Parser = x, new x();
|
|
518
|
+
})();
|
|
519
|
+
tt.parser = tt;
|
|
520
|
+
var Gt = tt, mt = {};
|
|
521
|
+
Ct(mt, {
|
|
522
|
+
addEvent: () => $t,
|
|
523
|
+
addSection: () => wt,
|
|
524
|
+
addTask: () => Tt,
|
|
525
|
+
addTaskOrg: () => Nt,
|
|
526
|
+
clear: () => bt,
|
|
527
|
+
default: () => Dt,
|
|
528
|
+
getCommonDb: () => kt,
|
|
529
|
+
getDirection: () => _t,
|
|
530
|
+
getSections: () => St,
|
|
531
|
+
getTasks: () => Et,
|
|
532
|
+
setDirection: () => vt
|
|
533
|
+
});
|
|
534
|
+
var U = "", xt = 0, nt = "LR", rt = [], q = [], X = [], kt = /* @__PURE__ */ o(() => Bt, "getCommonDb"), bt = /* @__PURE__ */ o(function() {
|
|
535
|
+
rt.length = 0, q.length = 0, U = "", X.length = 0, nt = "LR", Wt();
|
|
536
|
+
}, "clear"), vt = /* @__PURE__ */ o(function(e) {
|
|
537
|
+
nt = e;
|
|
538
|
+
}, "setDirection"), _t = /* @__PURE__ */ o(function() {
|
|
539
|
+
return nt;
|
|
540
|
+
}, "getDirection"), wt = /* @__PURE__ */ o(function(e) {
|
|
541
|
+
U = e, rt.push(e);
|
|
542
|
+
}, "addSection"), St = /* @__PURE__ */ o(function() {
|
|
543
|
+
return rt;
|
|
544
|
+
}, "getSections"), Et = /* @__PURE__ */ o(function() {
|
|
545
|
+
let e = ct();
|
|
546
|
+
const t = 100;
|
|
547
|
+
let n = 0;
|
|
548
|
+
for (; !e && n < t; )
|
|
549
|
+
e = ct(), n++;
|
|
550
|
+
return q.push(...X), q;
|
|
551
|
+
}, "getTasks"), Tt = /* @__PURE__ */ o(function(e, t, n) {
|
|
552
|
+
const a = {
|
|
553
|
+
id: xt++,
|
|
554
|
+
section: U,
|
|
555
|
+
type: U,
|
|
556
|
+
task: e,
|
|
557
|
+
score: t || 0,
|
|
558
|
+
events: n ? [n] : []
|
|
559
|
+
};
|
|
560
|
+
X.push(a);
|
|
561
|
+
}, "addTask"), $t = /* @__PURE__ */ o(function(e) {
|
|
562
|
+
X.find((t) => t.id === xt - 1).events.push(e);
|
|
563
|
+
}, "addEvent"), Nt = /* @__PURE__ */ o(function(e) {
|
|
564
|
+
const t = {
|
|
565
|
+
section: U,
|
|
566
|
+
type: U,
|
|
567
|
+
description: e,
|
|
568
|
+
task: e,
|
|
569
|
+
classes: []
|
|
570
|
+
};
|
|
571
|
+
q.push(t);
|
|
572
|
+
}, "addTaskOrg"), ct = /* @__PURE__ */ o(function() {
|
|
573
|
+
const e = /* @__PURE__ */ o(function(n) {
|
|
574
|
+
return X[n].processed;
|
|
575
|
+
}, "compileTask");
|
|
576
|
+
let t = !0;
|
|
577
|
+
for (const [n, a] of X.entries())
|
|
578
|
+
e(n), t = t && a.processed;
|
|
579
|
+
return t;
|
|
580
|
+
}, "compileTasks"), Dt = {
|
|
581
|
+
clear: bt,
|
|
582
|
+
getCommonDb: kt,
|
|
583
|
+
getDirection: _t,
|
|
584
|
+
setDirection: vt,
|
|
585
|
+
addSection: wt,
|
|
586
|
+
getSections: St,
|
|
587
|
+
getTasks: Et,
|
|
588
|
+
addTask: Tt,
|
|
589
|
+
addTaskOrg: Nt,
|
|
590
|
+
addEvent: $t
|
|
591
|
+
}, It = 0, J = /* @__PURE__ */ o(function(e, t) {
|
|
592
|
+
const n = e.append("rect");
|
|
593
|
+
return n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), n.attr("rx", t.rx), n.attr("ry", t.ry), t.class !== void 0 && n.attr("class", t.class), n;
|
|
594
|
+
}, "drawRect"), Kt = /* @__PURE__ */ o(function(e, t) {
|
|
595
|
+
const a = e.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = e.append("g");
|
|
596
|
+
r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
597
|
+
function c(m) {
|
|
598
|
+
const f = lt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
599
|
+
m.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
600
|
+
}
|
|
601
|
+
o(c, "smile");
|
|
602
|
+
function s(m) {
|
|
603
|
+
const f = lt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
604
|
+
m.append("path").attr("class", "mouth").attr("d", f).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
605
|
+
}
|
|
606
|
+
o(s, "sad");
|
|
607
|
+
function h(m) {
|
|
608
|
+
m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
609
|
+
}
|
|
610
|
+
return o(h, "ambivalent"), t.score > 3 ? c(r) : t.score < 3 ? s(r) : h(r), a;
|
|
611
|
+
}, "drawFace"), Ut = /* @__PURE__ */ o(function(e, t) {
|
|
612
|
+
const n = e.append("circle");
|
|
613
|
+
return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
|
|
614
|
+
}, "drawCircle"), Ht = /* @__PURE__ */ o(function(e, t) {
|
|
615
|
+
const n = t.text.replace(/<br\s*\/?>/gi, " "), a = e.append("text");
|
|
616
|
+
a.attr("x", t.x), a.attr("y", t.y), a.attr("class", "legend"), a.style("text-anchor", t.anchor), t.class !== void 0 && a.attr("class", t.class);
|
|
617
|
+
const r = a.append("tspan");
|
|
618
|
+
return r.attr("x", t.x + t.textMargin * 2), r.text(n), a;
|
|
619
|
+
}, "drawText"), Xt = /* @__PURE__ */ o(function(e, t) {
|
|
620
|
+
function n(r, c, s, h, m) {
|
|
621
|
+
return r + "," + c + " " + (r + s) + "," + c + " " + (r + s) + "," + (c + h - m) + " " + (r + s - m * 1.2) + "," + (c + h) + " " + r + "," + (c + h);
|
|
622
|
+
}
|
|
623
|
+
o(n, "genPoints");
|
|
624
|
+
const a = e.append("polygon");
|
|
625
|
+
a.attr("points", n(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, Ht(e, t);
|
|
626
|
+
}, "drawLabel"), Zt = /* @__PURE__ */ o(function(e, t, n) {
|
|
627
|
+
const a = e.append("g"), r = it();
|
|
628
|
+
r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = n.width, r.height = n.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, J(a, r), Lt(n)(t.text, a, r.x, r.y, r.width, r.height, { class: "journey-section section-type-" + t.num }, n, t.colour);
|
|
629
|
+
}, "drawSection"), et = -1, jt = /* @__PURE__ */ o(function(e, t, n, a) {
|
|
630
|
+
const r = t.x + n.width / 2, c = e.append("g");
|
|
631
|
+
et++, c.append("line").attr("id", a + "-task" + et).attr("x1", r).attr("y1", t.y).attr("x2", r).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Kt(c, {
|
|
632
|
+
cx: r,
|
|
633
|
+
cy: 300 + (5 - t.score) * 30,
|
|
634
|
+
score: t.score
|
|
635
|
+
});
|
|
636
|
+
const s = it();
|
|
637
|
+
s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = n.width, s.height = n.height, s.class = "task task-type-" + t.num, s.rx = 3, s.ry = 3, J(c, s), Lt(n)(t.task, c, s.x, s.y, s.width, s.height, { class: "task" }, n, t.colour);
|
|
638
|
+
}, "drawTask"), qt = /* @__PURE__ */ o(function(e, t) {
|
|
639
|
+
J(e, {
|
|
640
|
+
x: t.startx,
|
|
641
|
+
y: t.starty,
|
|
642
|
+
width: t.stopx - t.startx,
|
|
643
|
+
height: t.stopy - t.starty,
|
|
644
|
+
fill: t.fill,
|
|
645
|
+
class: "rect"
|
|
646
|
+
}).lower();
|
|
647
|
+
}, "drawBackgroundRect"), Jt = /* @__PURE__ */ o(function() {
|
|
648
|
+
return {
|
|
649
|
+
x: 0,
|
|
650
|
+
y: 0,
|
|
651
|
+
fill: void 0,
|
|
652
|
+
"text-anchor": "start",
|
|
653
|
+
width: 100,
|
|
654
|
+
height: 100,
|
|
655
|
+
textMargin: 0,
|
|
656
|
+
rx: 0,
|
|
657
|
+
ry: 0
|
|
658
|
+
};
|
|
659
|
+
}, "getTextObj"), it = /* @__PURE__ */ o(function() {
|
|
660
|
+
return {
|
|
661
|
+
x: 0,
|
|
662
|
+
y: 0,
|
|
663
|
+
width: 100,
|
|
664
|
+
anchor: "start",
|
|
665
|
+
height: 100,
|
|
666
|
+
rx: 0,
|
|
667
|
+
ry: 0
|
|
668
|
+
};
|
|
669
|
+
}, "getNoteRect"), Lt = /* @__PURE__ */ (function() {
|
|
670
|
+
function e(r, c, s, h, m, f, x, i) {
|
|
671
|
+
a(c.append("text").attr("x", s + m / 2).attr("y", h + f / 2 + 5).style("font-color", i).style("text-anchor", "middle").text(r), x);
|
|
672
|
+
}
|
|
673
|
+
o(e, "byText");
|
|
674
|
+
function t(r, c, s, h, m, f, x, i, l) {
|
|
675
|
+
const { taskFontSize: u, taskFontFamily: d } = i, g = r.split(/<br\s*\/?>/gi);
|
|
676
|
+
for (let y = 0; y < g.length; y++) {
|
|
677
|
+
const p = y * u - u * (g.length - 1) / 2, S = c.append("text").attr("x", s + m / 2).attr("y", h).attr("fill", l).style("text-anchor", "middle").style("font-size", u).style("font-family", d);
|
|
678
|
+
S.append("tspan").attr("x", s + m / 2).attr("dy", p).text(g[y]), S.attr("y", h + f / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(S, x);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
o(t, "byTspan");
|
|
682
|
+
function n(r, c, s, h, m, f, x, i) {
|
|
683
|
+
const l = c.append("switch"), u = l.append("foreignObject").attr("x", s).attr("y", h).attr("width", m).attr("height", f).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
684
|
+
u.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, l, s, h, m, f, x, i), a(u, x);
|
|
685
|
+
}
|
|
686
|
+
o(n, "byFo");
|
|
687
|
+
function a(r, c) {
|
|
688
|
+
for (const s in c) s in c && r.attr(s, c[s]);
|
|
689
|
+
}
|
|
690
|
+
return o(a, "_setTextAttrs"), function(r) {
|
|
691
|
+
return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
|
|
692
|
+
};
|
|
693
|
+
})(), Qt = /* @__PURE__ */ o(function(e, t) {
|
|
694
|
+
It = 0, et = -1, e.append("defs").append("marker").attr("id", t + "-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");
|
|
695
|
+
}, "initGraphics");
|
|
696
|
+
function st(e, t) {
|
|
697
|
+
e.each(function() {
|
|
698
|
+
var n = Z(this), a = n.text().split(/(\s+|<br>)/).reverse(), r, c = [], s = 1.1, h = n.attr("y"), m = parseFloat(n.attr("dy")), f = n.text(null).append("tspan").attr("x", 0).attr("y", h).attr("dy", m + "em");
|
|
699
|
+
for (let x = 0; x < a.length; x++)
|
|
700
|
+
r = a[a.length - 1 - x], c.push(r), f.text(c.join(" ").trim()), (f.node().getComputedTextLength() > t || r === "<br>") && (c.pop(), f.text(c.join(" ").trim()), r === "<br>" ? c = [""] : c = [r], f = n.append("tspan").attr("x", 0).attr("y", h).attr("dy", s + "em").text(r));
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
o(st, "wrap");
|
|
704
|
+
var Yt = /* @__PURE__ */ o(function(e, t, n, a, r, c = !1) {
|
|
705
|
+
const { theme: s, look: h } = a, m = s?.includes("redux"), f = n % (a?.themeVariables?.THEME_COLOR_LIMIT ?? 12) - 1, x = e.append("g");
|
|
706
|
+
t.section = f, x.attr("class", (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + f));
|
|
707
|
+
const i = x.append("g"), l = x.append("g"), u = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(st, t.width).node().getBBox(), d = a.fontSize?.replace ? a.fontSize.replace("px", "") : a.fontSize;
|
|
708
|
+
if (t.height = u.height + d * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, l.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), m && l.attr("transform", `translate(${t.width / 2}, ${c ? t.padding / 2 + 3 : t.padding})`), ee(i, t, f, r, a), h === "neo" && (x.attr("data-look", "neo"), m)) {
|
|
709
|
+
const g = s.includes("dark"), y = Z(e.node()?.ownerSVGElement ?? e.node()), p = y.attr("id") ?? "", S = p ? `${p}-drop-shadow` : "drop-shadow";
|
|
710
|
+
if (y.select(`#${S}`).empty()) {
|
|
711
|
+
const k = y.select("defs");
|
|
712
|
+
(k.empty() ? y.append("defs") : k).append("filter").attr("id", S).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", g ? "0.2" : "0.06").attr("flood-color", g ? "#FFFFFF" : "#000000");
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
return t;
|
|
716
|
+
}, "drawNode"), te = /* @__PURE__ */ o(function(e, t, n) {
|
|
717
|
+
const a = e.append("g"), r = a.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(st, t.width).node().getBBox(), c = n.fontSize?.replace ? n.fontSize.replace("px", "") : n.fontSize;
|
|
718
|
+
return a.remove(), r.height + c * 1.1 * 0.5 + t.padding;
|
|
719
|
+
}, "getVirtualNodeHeight"), ee = /* @__PURE__ */ o(function(e, t, n, a, r) {
|
|
720
|
+
const { theme: c } = r, s = c?.includes("redux") ? 0 : 5, h = 5, m = s > 0 ? `M0 ${t.height - h} v${-t.height + 2 * h} q0,-${s},${s},-${s} h${t.width - 2 * h} q${s},0,${s},${s} v${t.height - h} H0 Z` : `M0 ${t.height - h} v${-(t.height - h)} h${t.width} v${t.height} H0 Z`;
|
|
721
|
+
e.append("path").attr("id", a + "-node-" + It++).attr("class", "node-bkg node-" + t.type).attr("d", m), c?.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
722
|
+
}, "defaultBkg"), M = {
|
|
723
|
+
drawRect: J,
|
|
724
|
+
drawCircle: Ut,
|
|
725
|
+
drawSection: Zt,
|
|
726
|
+
drawText: Ht,
|
|
727
|
+
drawLabel: Xt,
|
|
728
|
+
drawTask: jt,
|
|
729
|
+
drawBackgroundRect: qt,
|
|
730
|
+
getTextObj: Jt,
|
|
731
|
+
getNoteRect: it,
|
|
732
|
+
initGraphics: Qt,
|
|
733
|
+
drawNode: Yt,
|
|
734
|
+
getVirtualNodeHeight: te
|
|
735
|
+
}, ne = /* @__PURE__ */ o(function(e, t, n, a) {
|
|
736
|
+
const r = yt(), { look: c, theme: s, themeVariables: h } = r, { useGradient: m, gradientStart: f, gradientStop: x } = h, i = r.timeline?.leftMargin ?? 50;
|
|
737
|
+
b.debug("timeline", a.db);
|
|
738
|
+
const l = r.securityLevel;
|
|
739
|
+
let u;
|
|
740
|
+
l === "sandbox" && (u = Z("#i" + t));
|
|
741
|
+
const d = (l === "sandbox" ? Z(u.nodes()[0].contentDocument.body) : Z("body")).select("#" + t);
|
|
742
|
+
d.append("g");
|
|
743
|
+
const g = a.db.getTasks(), y = a.db.getCommonDb().getDiagramTitle();
|
|
744
|
+
b.debug("task", g), M.initGraphics(d, t);
|
|
745
|
+
const p = a.db.getSections();
|
|
746
|
+
b.debug("sections", p);
|
|
747
|
+
let S = 0, k = 0, P = 0, C = 0, B = 50 + i, V = 50;
|
|
748
|
+
C = 50;
|
|
749
|
+
let I = 0, A = !0;
|
|
750
|
+
p.forEach(function(T) {
|
|
751
|
+
const v = {
|
|
752
|
+
number: I,
|
|
753
|
+
descr: T,
|
|
754
|
+
section: I,
|
|
755
|
+
width: 150,
|
|
756
|
+
padding: 20,
|
|
757
|
+
maxHeight: S
|
|
758
|
+
}, E = M.getVirtualNodeHeight(d, v, r);
|
|
759
|
+
b.debug("sectionHeight before draw", E), S = Math.max(S, E + 20);
|
|
760
|
+
});
|
|
761
|
+
let w = 0, L = 0;
|
|
762
|
+
b.debug("tasks.length", g.length);
|
|
763
|
+
for (const [T, v] of g.entries()) {
|
|
764
|
+
const E = {
|
|
765
|
+
number: T,
|
|
766
|
+
descr: v,
|
|
767
|
+
section: v.section,
|
|
768
|
+
width: 150,
|
|
769
|
+
padding: 20,
|
|
770
|
+
maxHeight: k
|
|
771
|
+
}, $ = M.getVirtualNodeHeight(d, E, r);
|
|
772
|
+
b.debug("taskHeight before draw", $), k = Math.max(k, $ + 20), w = Math.max(w, v.events.length);
|
|
773
|
+
let _ = 0;
|
|
774
|
+
for (const H of v.events) {
|
|
775
|
+
const R = {
|
|
776
|
+
descr: H,
|
|
777
|
+
section: v.section,
|
|
778
|
+
number: v.section,
|
|
779
|
+
width: 150,
|
|
780
|
+
padding: 20,
|
|
781
|
+
maxHeight: 50
|
|
782
|
+
};
|
|
783
|
+
_ += M.getVirtualNodeHeight(d, R, r);
|
|
784
|
+
}
|
|
785
|
+
v.events.length > 0 && (_ += (v.events.length - 1) * 10), L = Math.max(L, _);
|
|
786
|
+
}
|
|
787
|
+
b.debug("maxSectionHeight before draw", S), b.debug("maxTaskHeight before draw", k), p && p.length > 0 ? p.forEach((T) => {
|
|
788
|
+
const v = g.filter((H) => H.section === T), E = {
|
|
789
|
+
number: I,
|
|
790
|
+
descr: T,
|
|
791
|
+
section: I,
|
|
792
|
+
width: 200 * Math.max(v.length, 1) - 50,
|
|
793
|
+
padding: 20,
|
|
794
|
+
maxHeight: S
|
|
795
|
+
};
|
|
796
|
+
b.debug("sectionNode", E);
|
|
797
|
+
const $ = d.append("g"), _ = M.drawNode($, E, I, r, t);
|
|
798
|
+
b.debug("sectionNode output", _), $.attr("transform", `translate(${B}, ${C})`), V += S + 50, v.length > 0 && ht(d, v, I, B, V, k, r, w, L, S, !1, t), B += 200 * Math.max(v.length, 1), V = C, I++;
|
|
799
|
+
}) : (A = !1, ht(d, g, I, B, V, k, r, w, L, S, !0, t));
|
|
800
|
+
const F = d.node().getBBox();
|
|
801
|
+
if (b.debug("bounds", F), y && d.append("text").text(y).attr("x", c === "neo" ? F.x * 2 + i : F.width / 2 - i).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), P = A ? S + k + 150 : k + 100, d.append("g").attr("class", "lineWrapper").append("line").attr("x1", i).attr("y1", P).attr("x2", F.width + 3 * i).attr("y2", P).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${t}-arrowhead)`), c === "neo" && m && s !== "neutral") {
|
|
802
|
+
const T = d.select("defs"), v = (T.empty() ? d.append("defs") : T).append("linearGradient").attr("id", d.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
803
|
+
v.append("stop").attr("offset", "0%").attr("stop-color", f).attr("stop-opacity", 1), v.append("stop").attr("offset", "100%").attr("stop-color", x).attr("stop-opacity", 1);
|
|
804
|
+
}
|
|
805
|
+
gt(void 0, d, r.timeline?.padding ?? 50, r.timeline?.useMaxWidth ?? !1);
|
|
806
|
+
}, "draw"), ht = /* @__PURE__ */ o(function(e, t, n, a, r, c, s, h, m, f, x, i) {
|
|
807
|
+
for (const l of t) {
|
|
808
|
+
const u = {
|
|
809
|
+
descr: l.task,
|
|
810
|
+
section: n,
|
|
811
|
+
number: n,
|
|
812
|
+
width: 150,
|
|
813
|
+
padding: 20,
|
|
814
|
+
maxHeight: c
|
|
815
|
+
};
|
|
816
|
+
b.debug("taskNode", u);
|
|
817
|
+
const d = e.append("g").attr("class", "taskWrapper"), g = M.drawNode(d, u, n, s, i).height;
|
|
818
|
+
if (b.debug("taskHeight after draw", g), d.attr("transform", `translate(${a}, ${r})`), c = Math.max(c, g), l.events) {
|
|
819
|
+
const y = e.append("g").attr("class", "lineWrapper");
|
|
820
|
+
let p = c;
|
|
821
|
+
r += 100, p = p + re(e, l.events, n, a, r, s, i), r -= 100, y.append("line").attr("x1", a + 190 / 2).attr("y1", r + c).attr("x2", a + 190 / 2).attr("y2", r + c + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${i}-arrowhead)`).attr("stroke-dasharray", "5,5");
|
|
822
|
+
}
|
|
823
|
+
a = a + 200, x && !s.timeline?.disableMulticolor && n++;
|
|
824
|
+
}
|
|
825
|
+
r = r - 10;
|
|
826
|
+
}, "drawTasks"), re = /* @__PURE__ */ o(function(e, t, n, a, r, c, s) {
|
|
827
|
+
let h = 0;
|
|
828
|
+
const m = r;
|
|
829
|
+
r = r + 100;
|
|
830
|
+
for (const f of t) {
|
|
831
|
+
const x = {
|
|
832
|
+
descr: f,
|
|
833
|
+
section: n,
|
|
834
|
+
number: n,
|
|
835
|
+
width: 150,
|
|
836
|
+
padding: 20,
|
|
837
|
+
maxHeight: 50
|
|
838
|
+
};
|
|
839
|
+
b.debug("eventNode", x);
|
|
840
|
+
const i = e.append("g").attr("class", "eventWrapper"), l = M.drawNode(i, x, n, c, s, !0).height;
|
|
841
|
+
h = h + l, i.attr("transform", `translate(${a}, ${r})`), r = r + 10 + l;
|
|
842
|
+
}
|
|
843
|
+
return r = m, h;
|
|
844
|
+
}, "drawEvents"), ie = {
|
|
845
|
+
setConf: /* @__PURE__ */ o(() => {
|
|
846
|
+
}, "setConf"),
|
|
847
|
+
draw: ne
|
|
848
|
+
}, Q = 200, O = 5, se = Q + O * 2, at = Q + 100, ae = at + O * 2, Mt = 10, oe = 0, dt = 20, At = 20, ut = 30, Rt = 50, le = /* @__PURE__ */ o(function(e, t, n, a) {
|
|
849
|
+
const r = yt(), c = r.timeline?.leftMargin ?? 50;
|
|
850
|
+
b.debug("timeline", a.db);
|
|
851
|
+
const s = Ot(t);
|
|
852
|
+
s.append("g");
|
|
853
|
+
const h = a.db.getTasks(), m = a.db.getCommonDb().getDiagramTitle();
|
|
854
|
+
b.debug("task", h), M.initGraphics(s);
|
|
855
|
+
const f = a.db.getSections();
|
|
856
|
+
b.debug("sections", f);
|
|
857
|
+
let x = 0, i = 0;
|
|
858
|
+
const l = 50 + c;
|
|
859
|
+
let u = 50;
|
|
860
|
+
const d = u, g = l, y = se + At, p = ae + Rt, S = g + y;
|
|
861
|
+
let k = 0;
|
|
862
|
+
const P = f && f.length > 0, C = P ? S : l + y, B = Math.max(50, y + p - O * 2);
|
|
863
|
+
f.forEach(function(v) {
|
|
864
|
+
const E = {
|
|
865
|
+
number: k,
|
|
866
|
+
descr: v,
|
|
867
|
+
section: k,
|
|
868
|
+
width: B,
|
|
869
|
+
padding: O,
|
|
870
|
+
maxHeight: x
|
|
871
|
+
}, $ = M.getVirtualNodeHeight(s, E, r);
|
|
872
|
+
b.debug("sectionHeight before draw", $), x = Math.max(x, $);
|
|
873
|
+
});
|
|
874
|
+
let V = 0;
|
|
875
|
+
b.debug("tasks.length", h.length);
|
|
876
|
+
for (const [v, E] of h.entries()) {
|
|
877
|
+
const $ = {
|
|
878
|
+
number: v,
|
|
879
|
+
descr: E,
|
|
880
|
+
section: E.section,
|
|
881
|
+
width: Q,
|
|
882
|
+
padding: O,
|
|
883
|
+
maxHeight: i
|
|
884
|
+
}, _ = M.getVirtualNodeHeight(s, $, r);
|
|
885
|
+
b.debug("taskHeight before draw", _), i = Math.max(i, _);
|
|
886
|
+
let H = 0;
|
|
887
|
+
for (const R of E.events) {
|
|
888
|
+
const N = {
|
|
889
|
+
descr: R,
|
|
890
|
+
section: E.section,
|
|
891
|
+
number: E.section,
|
|
892
|
+
width: at,
|
|
893
|
+
padding: O,
|
|
894
|
+
maxHeight: 50
|
|
895
|
+
};
|
|
896
|
+
H += M.getVirtualNodeHeight(s, N, r);
|
|
897
|
+
}
|
|
898
|
+
E.events.length > 0 && (H += (E.events.length - 1) * Mt), V = Math.max(V, H) + oe;
|
|
899
|
+
}
|
|
900
|
+
b.debug("maxSectionHeight before draw", x), b.debug("maxTaskHeight before draw", i);
|
|
901
|
+
const I = Math.max(i, V) + ut;
|
|
902
|
+
P ? f.forEach((v) => {
|
|
903
|
+
const E = h.filter((K) => K.section === v), $ = {
|
|
904
|
+
number: k,
|
|
905
|
+
descr: v,
|
|
906
|
+
section: k,
|
|
907
|
+
width: B,
|
|
908
|
+
padding: O,
|
|
909
|
+
maxHeight: x
|
|
910
|
+
};
|
|
911
|
+
b.debug("sectionNode", $);
|
|
912
|
+
const _ = s.append("g"), H = M.drawNode(_, $, k, r);
|
|
913
|
+
b.debug("sectionNode output", H);
|
|
914
|
+
const R = C - y;
|
|
915
|
+
_.attr("transform", `translate(${R}, ${u})`);
|
|
916
|
+
const N = u + H.height + dt;
|
|
917
|
+
E.length > 0 && pt(s, E, k, C, N, i, r, I, !1);
|
|
918
|
+
const D = E.length, G = H.height + dt + I * Math.max(D, 1) - (D > 0 ? ut * 2 : 0);
|
|
919
|
+
u += G, k++;
|
|
920
|
+
}) : pt(s, h, k, C, u, i, r, I, !0);
|
|
921
|
+
let A = s.node()?.getBBox();
|
|
922
|
+
if (!A) throw new Error("bbox not found");
|
|
923
|
+
if (b.debug("bounds", A), m) {
|
|
924
|
+
if (s.append("text").text(m).attr("x", A.width / 2 - c).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), A = s.node()?.getBBox(), !A) throw new Error("bbox not found");
|
|
925
|
+
b.debug("bounds after title", A);
|
|
926
|
+
}
|
|
927
|
+
const [w] = zt(r.fontSize), L = (w ?? 16) * 2, F = (w ?? 16) * 0.5 + 20, T = s.append("g").attr("class", "lineWrapper");
|
|
928
|
+
T.append("line").attr("x1", C).attr("y1", d - L).attr("x2", C).attr("y2", A.y + A.height + F).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), T.lower(), gt(void 0, s, r.timeline?.padding ?? 50, r.timeline?.useMaxWidth ?? !1);
|
|
929
|
+
}, "draw"), pt = /* @__PURE__ */ o(function(e, t, n, a, r, c, s, h, m) {
|
|
930
|
+
for (const f of t) {
|
|
931
|
+
const x = {
|
|
932
|
+
descr: f.task,
|
|
933
|
+
section: n,
|
|
934
|
+
number: n,
|
|
935
|
+
width: Q,
|
|
936
|
+
padding: O,
|
|
937
|
+
maxHeight: c
|
|
938
|
+
};
|
|
939
|
+
b.debug("taskNode", x);
|
|
940
|
+
const i = e.append("g").attr("class", "taskWrapper"), l = M.drawNode(i, x, n, s), u = l.height;
|
|
941
|
+
b.debug("taskHeight after draw", u);
|
|
942
|
+
const d = a - At - l.width;
|
|
943
|
+
if (i.attr("transform", `translate(${d}, ${r})`), c = Math.max(c, u), f.events && f.events.length > 0) {
|
|
944
|
+
const g = r, y = a + Rt;
|
|
945
|
+
ce(e, f.events, n, a, y, g, s);
|
|
946
|
+
}
|
|
947
|
+
r = r + h, m && !s.timeline?.disableMulticolor && n++;
|
|
948
|
+
}
|
|
949
|
+
}, "drawTasks"), ce = /* @__PURE__ */ o(function(e, t, n, a, r, c, s) {
|
|
950
|
+
let h = c;
|
|
951
|
+
for (const m of t) {
|
|
952
|
+
const f = {
|
|
953
|
+
descr: m,
|
|
954
|
+
section: n,
|
|
955
|
+
number: n,
|
|
956
|
+
width: at,
|
|
957
|
+
padding: O,
|
|
958
|
+
maxHeight: 0
|
|
959
|
+
};
|
|
960
|
+
b.debug("eventNode", f);
|
|
961
|
+
const x = e.append("g").attr("class", "eventWrapper"), i = M.drawNode(x, f, n, s).height;
|
|
962
|
+
x.attr("transform", `translate(${r}, ${h})`);
|
|
963
|
+
const l = e.append("g").attr("class", "lineWrapper"), u = h + i / 2;
|
|
964
|
+
l.append("line").attr("x1", a).attr("y1", u).attr("x2", r).attr("y2", u).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), h = h + i + Mt;
|
|
965
|
+
}
|
|
966
|
+
return h - c;
|
|
967
|
+
}, "drawEvents"), he = {
|
|
968
|
+
setConf: /* @__PURE__ */ o(() => {
|
|
969
|
+
}, "setConf"),
|
|
970
|
+
draw: le
|
|
971
|
+
}, de = /* @__PURE__ */ o((e) => {
|
|
972
|
+
const { theme: t } = ft(), n = t?.includes("dark"), a = t?.includes("color"), r = e.svgId?.replace(/^#/, "") ?? "", c = r ? `url(#${r}-drop-shadow)` : e.dropShadow ?? "none";
|
|
973
|
+
let s = "";
|
|
974
|
+
for (let h = 0; h < e.THEME_COLOR_LIMIT; h++) {
|
|
975
|
+
const m = `${17 - 3 * h}`, f = a ? e.borderColorArray[h] : e.mainBkg, x = a ? e.borderColorArray[h] : e.nodeBorder;
|
|
976
|
+
s += `
|
|
977
|
+
.section-${h - 1} rect,
|
|
978
|
+
.section-${h - 1} path,
|
|
979
|
+
.section-${h - 1} circle {
|
|
980
|
+
fill: ${n && a ? e.mainBkg : f};
|
|
981
|
+
stroke: ${x};
|
|
982
|
+
stroke-width: ${e.strokeWidth};
|
|
983
|
+
filter: ${c};
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.section-${h - 1} text {
|
|
987
|
+
fill: ${e.nodeBorder};
|
|
988
|
+
font-weight: ${e.fontWeight}
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.node-icon-${h - 1} {
|
|
992
|
+
font-size: 40px;
|
|
993
|
+
color: ${e["cScaleLabel" + h]};
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.section-edge-${h - 1} {
|
|
997
|
+
stroke: ${e["cScale" + h]};
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.edge-depth-${h - 1} {
|
|
1001
|
+
stroke-width: ${m};
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.section-${h - 1} line {
|
|
1005
|
+
stroke: ${e["cScaleInv" + h]};
|
|
1006
|
+
stroke-width: 3;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
.lineWrapper line {
|
|
1010
|
+
stroke: ${e.nodeBorder};
|
|
1011
|
+
stroke-width:${e.strokeWidth}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.disabled,
|
|
1015
|
+
.disabled circle,
|
|
1016
|
+
.disabled text {
|
|
1017
|
+
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.disabled text {
|
|
1021
|
+
fill: ${e.clusterBorder ?? "#efefef"};
|
|
1022
|
+
}
|
|
1023
|
+
`;
|
|
1024
|
+
}
|
|
1025
|
+
return s;
|
|
1026
|
+
}, "genReduxSections"), ue = /* @__PURE__ */ o((e) => {
|
|
1027
|
+
let t = "";
|
|
1028
|
+
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++)
|
|
1029
|
+
e["lineColor" + n] = e["lineColor" + n] || e["cScaleInv" + n], Vt(e["lineColor" + n]) ? e["lineColor" + n] = Ft(e["lineColor" + n], 20) : e["lineColor" + n] = Pt(e["lineColor" + n], 20);
|
|
1030
|
+
for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
|
|
1031
|
+
const a = "" + (17 - 3 * n);
|
|
1032
|
+
t += `
|
|
1033
|
+
.section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} path {
|
|
1034
|
+
fill: ${e["cScale" + n]};
|
|
1035
|
+
}
|
|
1036
|
+
.section-${n - 1} text {
|
|
1037
|
+
fill: ${e["cScaleLabel" + n]};
|
|
1038
|
+
}
|
|
1039
|
+
.node-icon-${n - 1} {
|
|
1040
|
+
font-size: 40px;
|
|
1041
|
+
color: ${e["cScaleLabel" + n]};
|
|
1042
|
+
}
|
|
1043
|
+
.section-edge-${n - 1}{
|
|
1044
|
+
stroke: ${e["cScale" + n]};
|
|
1045
|
+
}
|
|
1046
|
+
.edge-depth-${n - 1}{
|
|
1047
|
+
stroke-width: ${a};
|
|
1048
|
+
}
|
|
1049
|
+
.section-${n - 1} line {
|
|
1050
|
+
stroke: ${e["cScaleInv" + n]} ;
|
|
1051
|
+
stroke-width: 3;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
.lineWrapper line{
|
|
1055
|
+
stroke: ${e["cScaleLabel" + n]} ;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.disabled, .disabled circle, .disabled text {
|
|
1059
|
+
fill: ${e.tertiaryColor ?? "lightgray"};
|
|
1060
|
+
}
|
|
1061
|
+
.disabled text {
|
|
1062
|
+
fill: ${e.clusterBorder ?? "#efefef"};
|
|
1063
|
+
}
|
|
1064
|
+
`;
|
|
1065
|
+
}
|
|
1066
|
+
return t;
|
|
1067
|
+
}, "genSections"), ke = {
|
|
1068
|
+
db: mt,
|
|
1069
|
+
renderer: {
|
|
1070
|
+
setConf: /* @__PURE__ */ o(() => {
|
|
1071
|
+
}, "setConf"),
|
|
1072
|
+
draw: /* @__PURE__ */ o((e, t, n, a) => (a?.db?.getDirection?.() ?? "LR") === "TD" ? he.draw(e, t, n, a) : ie.draw(e, t, n, a), "draw")
|
|
1073
|
+
},
|
|
1074
|
+
parser: Gt,
|
|
1075
|
+
styles: /* @__PURE__ */ o((e) => {
|
|
1076
|
+
const { theme: t } = ft(), n = t?.includes("redux"), a = t === "neutral", r = e.svgId?.replace(/^#/, "") ?? "";
|
|
1077
|
+
let c = "";
|
|
1078
|
+
if (e.useGradient && r && e.THEME_COLOR_LIMIT && !a) for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) c += `
|
|
1079
|
+
.section-${s - 1}[data-look="neo"] rect,
|
|
1080
|
+
.section-${s - 1}[data-look="neo"] path,
|
|
1081
|
+
.section-${s - 1}[data-look="neo"] circle {
|
|
1082
|
+
fill: ${e.mainBkg};
|
|
1083
|
+
stroke: url(#${r}-gradient);
|
|
1084
|
+
stroke-width: 2;
|
|
1085
|
+
}
|
|
1086
|
+
.section-${s - 1}[data-look="neo"] line {
|
|
1087
|
+
stroke: url(#${r}-gradient);
|
|
1088
|
+
stroke-width: 2;
|
|
1089
|
+
}`;
|
|
1090
|
+
return `
|
|
1091
|
+
.edge {
|
|
1092
|
+
stroke-width: 3;
|
|
1093
|
+
}
|
|
1094
|
+
${n ? de(e) : ue(e)}
|
|
1095
|
+
${c}
|
|
1096
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
1097
|
+
fill: ${e.git0};
|
|
1098
|
+
}
|
|
1099
|
+
.section-root text {
|
|
1100
|
+
fill: ${e.gitBranchLabel0};
|
|
1101
|
+
}
|
|
1102
|
+
.icon-container {
|
|
1103
|
+
height:100%;
|
|
1104
|
+
display: flex;
|
|
1105
|
+
justify-content: center;
|
|
1106
|
+
align-items: center;
|
|
1107
|
+
}
|
|
1108
|
+
.edge {
|
|
1109
|
+
fill: none;
|
|
1110
|
+
}
|
|
1111
|
+
.eventWrapper {
|
|
1112
|
+
filter: brightness(120%);
|
|
1113
|
+
}
|
|
1114
|
+
`;
|
|
1115
|
+
}, "getStyles")
|
|
1116
|
+
};
|
|
1117
|
+
export {
|
|
1118
|
+
ke as diagram
|
|
1119
|
+
};
|