ranui 0.2.1-alpha.1 → 0.2.1-alpha.4
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-1lUEp_ro.js} +83 -76
- package/dist/button-Cj-XSCsd.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-BHN9Xp4S.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-O_J_n1_W.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-mebH0XLm.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-YOKzMoc7.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-CzGAVWYC.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-ZNhcQ4tf.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-B8afuJlF.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-BniIptBE.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-GZrfSeon.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 +2 -2
- 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/iife/theme-switch.iife.js +1 -1
- package/dist/{image-B7MBI5n_.js → image-CqoQfJoV.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-BlwAXu7I.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-M6gWxLbm.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-8E-45Y8e.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-C1oQyPE3.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-CNdmbeLf.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-gRagDkTb.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-CAQ5Og2P.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-CvYIVgUS.js → popover-BZKSLe3D.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-C6jctsFH.js → progress-vk40tuhm.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-Bg0cexzU.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-CGwS0cd_.js} +10 -10
- package/dist/route.js +1 -1
- package/dist/{router-BU2KhtxV.js → router-BK6DEkcN.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-ClF1awGi.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-CsUkp8bv.js → section-BL0V7Kjf.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-Dn26ajJZ.js → select-BIFVbQIj.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-D7JIbROq.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-DFVtDJb2.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-F4Pd7JtC.js → tabpane-C3qZGN-D.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/test/ssr/stream.test.d.ts +1 -0
- package/dist/{theme-switch-B09egc6h.js → theme-switch-BXNH5uPD.js} +45 -45
- 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 +135 -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 +170 -2
- package/package.json +7 -1
- package/dist/button-BfYw0fes.js +0 -117
- package/dist/factory-DCrO37si.js +0 -334
|
@@ -0,0 +1,928 @@
|
|
|
1
|
+
import { n as s } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
import { p as U } from "./src-DtRLxcYO.js";
|
|
3
|
+
import { H as mt, K as xt, U as kt, a as _t, c as bt, v as vt, w as wt, x as V, y as Tt } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
4
|
+
import { t as rt } from "./arc-DRPGof21.js";
|
|
5
|
+
import { t as St } from "./chunk-5VM5RSS4-Cni2Ogq2.js";
|
|
6
|
+
import { a as $t, n as Mt, o as Et, s as ot } from "./chunk-32BRIVSS-jAuAwMVV.js";
|
|
7
|
+
var K = (function() {
|
|
8
|
+
var e = /* @__PURE__ */ s(function(n, i, a, o) {
|
|
9
|
+
for (a = a || {}, o = n.length; o--; a[n[o]] = i) ;
|
|
10
|
+
return a;
|
|
11
|
+
}, "o"), t = [
|
|
12
|
+
6,
|
|
13
|
+
8,
|
|
14
|
+
10,
|
|
15
|
+
11,
|
|
16
|
+
12,
|
|
17
|
+
14,
|
|
18
|
+
16,
|
|
19
|
+
17,
|
|
20
|
+
18
|
|
21
|
+
], l = [1, 9], d = [1, 10], r = [1, 11], c = [1, 12], h = [1, 13], y = [1, 14], g = {
|
|
22
|
+
trace: /* @__PURE__ */ s(function() {
|
|
23
|
+
}, "trace"),
|
|
24
|
+
yy: {},
|
|
25
|
+
symbols_: {
|
|
26
|
+
error: 2,
|
|
27
|
+
start: 3,
|
|
28
|
+
journey: 4,
|
|
29
|
+
document: 5,
|
|
30
|
+
EOF: 6,
|
|
31
|
+
line: 7,
|
|
32
|
+
SPACE: 8,
|
|
33
|
+
statement: 9,
|
|
34
|
+
NEWLINE: 10,
|
|
35
|
+
title: 11,
|
|
36
|
+
acc_title: 12,
|
|
37
|
+
acc_title_value: 13,
|
|
38
|
+
acc_descr: 14,
|
|
39
|
+
acc_descr_value: 15,
|
|
40
|
+
acc_descr_multiline_value: 16,
|
|
41
|
+
section: 17,
|
|
42
|
+
taskName: 18,
|
|
43
|
+
taskData: 19,
|
|
44
|
+
$accept: 0,
|
|
45
|
+
$end: 1
|
|
46
|
+
},
|
|
47
|
+
terminals_: {
|
|
48
|
+
2: "error",
|
|
49
|
+
4: "journey",
|
|
50
|
+
6: "EOF",
|
|
51
|
+
8: "SPACE",
|
|
52
|
+
10: "NEWLINE",
|
|
53
|
+
11: "title",
|
|
54
|
+
12: "acc_title",
|
|
55
|
+
13: "acc_title_value",
|
|
56
|
+
14: "acc_descr",
|
|
57
|
+
15: "acc_descr_value",
|
|
58
|
+
16: "acc_descr_multiline_value",
|
|
59
|
+
17: "section",
|
|
60
|
+
18: "taskName",
|
|
61
|
+
19: "taskData"
|
|
62
|
+
},
|
|
63
|
+
productions_: [
|
|
64
|
+
0,
|
|
65
|
+
[3, 3],
|
|
66
|
+
[5, 0],
|
|
67
|
+
[5, 2],
|
|
68
|
+
[7, 2],
|
|
69
|
+
[7, 1],
|
|
70
|
+
[7, 1],
|
|
71
|
+
[7, 1],
|
|
72
|
+
[9, 1],
|
|
73
|
+
[9, 2],
|
|
74
|
+
[9, 2],
|
|
75
|
+
[9, 1],
|
|
76
|
+
[9, 1],
|
|
77
|
+
[9, 2]
|
|
78
|
+
],
|
|
79
|
+
performAction: /* @__PURE__ */ s(function(i, a, o, f, p, u, _) {
|
|
80
|
+
var x = u.length - 1;
|
|
81
|
+
switch (p) {
|
|
82
|
+
case 1:
|
|
83
|
+
return u[x - 1];
|
|
84
|
+
case 2:
|
|
85
|
+
this.$ = [];
|
|
86
|
+
break;
|
|
87
|
+
case 3:
|
|
88
|
+
u[x - 1].push(u[x]), this.$ = u[x - 1];
|
|
89
|
+
break;
|
|
90
|
+
case 4:
|
|
91
|
+
case 5:
|
|
92
|
+
this.$ = u[x];
|
|
93
|
+
break;
|
|
94
|
+
case 6:
|
|
95
|
+
case 7:
|
|
96
|
+
this.$ = [];
|
|
97
|
+
break;
|
|
98
|
+
case 8:
|
|
99
|
+
f.setDiagramTitle(u[x].substr(6)), this.$ = u[x].substr(6);
|
|
100
|
+
break;
|
|
101
|
+
case 9:
|
|
102
|
+
this.$ = u[x].trim(), f.setAccTitle(this.$);
|
|
103
|
+
break;
|
|
104
|
+
case 10:
|
|
105
|
+
case 11:
|
|
106
|
+
this.$ = u[x].trim(), f.setAccDescription(this.$);
|
|
107
|
+
break;
|
|
108
|
+
case 12:
|
|
109
|
+
f.addSection(u[x].substr(8)), this.$ = u[x].substr(8);
|
|
110
|
+
break;
|
|
111
|
+
case 13:
|
|
112
|
+
f.addTask(u[x - 1], u[x]), this.$ = "task";
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
}, "anonymous"),
|
|
116
|
+
table: [
|
|
117
|
+
{
|
|
118
|
+
3: 1,
|
|
119
|
+
4: [1, 2]
|
|
120
|
+
},
|
|
121
|
+
{ 1: [3] },
|
|
122
|
+
e(t, [2, 2], { 5: 3 }),
|
|
123
|
+
{
|
|
124
|
+
6: [1, 4],
|
|
125
|
+
7: 5,
|
|
126
|
+
8: [1, 6],
|
|
127
|
+
9: 7,
|
|
128
|
+
10: [1, 8],
|
|
129
|
+
11: l,
|
|
130
|
+
12: d,
|
|
131
|
+
14: r,
|
|
132
|
+
16: c,
|
|
133
|
+
17: h,
|
|
134
|
+
18: y
|
|
135
|
+
},
|
|
136
|
+
e(t, [2, 7], { 1: [2, 1] }),
|
|
137
|
+
e(t, [2, 3]),
|
|
138
|
+
{
|
|
139
|
+
9: 15,
|
|
140
|
+
11: l,
|
|
141
|
+
12: d,
|
|
142
|
+
14: r,
|
|
143
|
+
16: c,
|
|
144
|
+
17: h,
|
|
145
|
+
18: y
|
|
146
|
+
},
|
|
147
|
+
e(t, [2, 5]),
|
|
148
|
+
e(t, [2, 6]),
|
|
149
|
+
e(t, [2, 8]),
|
|
150
|
+
{ 13: [1, 16] },
|
|
151
|
+
{ 15: [1, 17] },
|
|
152
|
+
e(t, [2, 11]),
|
|
153
|
+
e(t, [2, 12]),
|
|
154
|
+
{ 19: [1, 18] },
|
|
155
|
+
e(t, [2, 4]),
|
|
156
|
+
e(t, [2, 9]),
|
|
157
|
+
e(t, [2, 10]),
|
|
158
|
+
e(t, [2, 13])
|
|
159
|
+
],
|
|
160
|
+
defaultActions: {},
|
|
161
|
+
parseError: /* @__PURE__ */ s(function(i, a) {
|
|
162
|
+
if (a.recoverable) this.trace(i);
|
|
163
|
+
else {
|
|
164
|
+
var o = new Error(i);
|
|
165
|
+
throw o.hash = a, o;
|
|
166
|
+
}
|
|
167
|
+
}, "parseError"),
|
|
168
|
+
parse: /* @__PURE__ */ s(function(i) {
|
|
169
|
+
var a = this, o = [0], f = [], p = [null], u = [], _ = this.table, x = "", C = 0, A = 0, D = 0, dt = 2, tt = 1, ft = u.slice.call(arguments, 1), k = Object.create(this.lexer), P = { yy: {} };
|
|
170
|
+
for (var O in this.yy) Object.prototype.hasOwnProperty.call(this.yy, O) && (P.yy[O] = this.yy[O]);
|
|
171
|
+
k.setInput(i, P.yy), P.yy.lexer = k, P.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
|
|
172
|
+
var Y = k.yylloc;
|
|
173
|
+
u.push(Y);
|
|
174
|
+
var pt = k.options && k.options.ranges;
|
|
175
|
+
typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
176
|
+
function gt(w) {
|
|
177
|
+
o.length = o.length - 2 * w, p.length = p.length - w, u.length = u.length - w;
|
|
178
|
+
}
|
|
179
|
+
s(gt, "popStack");
|
|
180
|
+
function et() {
|
|
181
|
+
var w = f.pop() || k.lex() || tt;
|
|
182
|
+
return typeof w != "number" && (w instanceof Array && (f = w, w = f.pop()), w = a.symbols_[w] || w), w;
|
|
183
|
+
}
|
|
184
|
+
s(et, "lex");
|
|
185
|
+
for (var b, q, I, v, X, F = {}, N, $, it, z; ; ) {
|
|
186
|
+
if (I = o[o.length - 1], this.defaultActions[I] ? v = this.defaultActions[I] : ((b === null || typeof b > "u") && (b = et()), v = _[I] && _[I][b]), typeof v > "u" || !v.length || !v[0]) {
|
|
187
|
+
var G = "";
|
|
188
|
+
z = [];
|
|
189
|
+
for (N in _[I]) this.terminals_[N] && N > dt && z.push("'" + this.terminals_[N] + "'");
|
|
190
|
+
k.showPosition ? G = "Parse error on line " + (C + 1) + `:
|
|
191
|
+
` + k.showPosition() + `
|
|
192
|
+
Expecting ` + z.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : G = "Parse error on line " + (C + 1) + ": Unexpected " + (b == tt ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(G, {
|
|
193
|
+
text: k.match,
|
|
194
|
+
token: this.terminals_[b] || b,
|
|
195
|
+
line: k.yylineno,
|
|
196
|
+
loc: Y,
|
|
197
|
+
expected: z
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
if (v[0] instanceof Array && v.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + I + ", token: " + b);
|
|
201
|
+
switch (v[0]) {
|
|
202
|
+
case 1:
|
|
203
|
+
o.push(b), p.push(k.yytext), u.push(k.yylloc), o.push(v[1]), b = null, q ? (b = q, q = null) : (A = k.yyleng, x = k.yytext, C = k.yylineno, Y = k.yylloc, D > 0 && D--);
|
|
204
|
+
break;
|
|
205
|
+
case 2:
|
|
206
|
+
if ($ = this.productions_[v[1]][1], F.$ = p[p.length - $], F._$ = {
|
|
207
|
+
first_line: u[u.length - ($ || 1)].first_line,
|
|
208
|
+
last_line: u[u.length - 1].last_line,
|
|
209
|
+
first_column: u[u.length - ($ || 1)].first_column,
|
|
210
|
+
last_column: u[u.length - 1].last_column
|
|
211
|
+
}, pt && (F._$.range = [u[u.length - ($ || 1)].range[0], u[u.length - 1].range[1]]), X = this.performAction.apply(F, [
|
|
212
|
+
x,
|
|
213
|
+
A,
|
|
214
|
+
C,
|
|
215
|
+
P.yy,
|
|
216
|
+
v[1],
|
|
217
|
+
p,
|
|
218
|
+
u
|
|
219
|
+
].concat(ft)), typeof X < "u") return X;
|
|
220
|
+
$ && (o = o.slice(0, -1 * $ * 2), p = p.slice(0, -1 * $), u = u.slice(0, -1 * $)), o.push(this.productions_[v[1]][0]), p.push(F.$), u.push(F._$), it = _[o[o.length - 2]][o[o.length - 1]], o.push(it);
|
|
221
|
+
break;
|
|
222
|
+
case 3:
|
|
223
|
+
return !0;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return !0;
|
|
227
|
+
}, "parse")
|
|
228
|
+
};
|
|
229
|
+
g.lexer = /* @__PURE__ */ (function() {
|
|
230
|
+
return {
|
|
231
|
+
EOF: 1,
|
|
232
|
+
parseError: /* @__PURE__ */ s(function(i, a) {
|
|
233
|
+
if (this.yy.parser) this.yy.parser.parseError(i, a);
|
|
234
|
+
else throw new Error(i);
|
|
235
|
+
}, "parseError"),
|
|
236
|
+
setInput: /* @__PURE__ */ s(function(n, i) {
|
|
237
|
+
return this.yy = i || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
238
|
+
first_line: 1,
|
|
239
|
+
first_column: 0,
|
|
240
|
+
last_line: 1,
|
|
241
|
+
last_column: 0
|
|
242
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
243
|
+
}, "setInput"),
|
|
244
|
+
input: /* @__PURE__ */ s(function() {
|
|
245
|
+
var n = this._input[0];
|
|
246
|
+
return this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n, n.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), n;
|
|
247
|
+
}, "input"),
|
|
248
|
+
unput: /* @__PURE__ */ s(function(n) {
|
|
249
|
+
var i = n.length, a = n.split(/(?:\r\n?|\n)/g);
|
|
250
|
+
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
251
|
+
var o = this.match.split(/(?:\r\n?|\n)/g);
|
|
252
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
|
|
253
|
+
var f = this.yylloc.range;
|
|
254
|
+
return this.yylloc = {
|
|
255
|
+
first_line: this.yylloc.first_line,
|
|
256
|
+
last_line: this.yylineno + 1,
|
|
257
|
+
first_column: this.yylloc.first_column,
|
|
258
|
+
last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - i
|
|
259
|
+
}, this.options.ranges && (this.yylloc.range = [f[0], f[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
260
|
+
}, "unput"),
|
|
261
|
+
more: /* @__PURE__ */ s(function() {
|
|
262
|
+
return this._more = !0, this;
|
|
263
|
+
}, "more"),
|
|
264
|
+
reject: /* @__PURE__ */ s(function() {
|
|
265
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
266
|
+
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).
|
|
267
|
+
` + this.showPosition(), {
|
|
268
|
+
text: "",
|
|
269
|
+
token: null,
|
|
270
|
+
line: this.yylineno
|
|
271
|
+
});
|
|
272
|
+
return this;
|
|
273
|
+
}, "reject"),
|
|
274
|
+
less: /* @__PURE__ */ s(function(n) {
|
|
275
|
+
this.unput(this.match.slice(n));
|
|
276
|
+
}, "less"),
|
|
277
|
+
pastInput: /* @__PURE__ */ s(function() {
|
|
278
|
+
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
279
|
+
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
280
|
+
}, "pastInput"),
|
|
281
|
+
upcomingInput: /* @__PURE__ */ s(function() {
|
|
282
|
+
var n = this.match;
|
|
283
|
+
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
284
|
+
}, "upcomingInput"),
|
|
285
|
+
showPosition: /* @__PURE__ */ s(function() {
|
|
286
|
+
var n = this.pastInput(), i = new Array(n.length + 1).join("-");
|
|
287
|
+
return n + this.upcomingInput() + `
|
|
288
|
+
` + i + "^";
|
|
289
|
+
}, "showPosition"),
|
|
290
|
+
test_match: /* @__PURE__ */ s(function(n, i) {
|
|
291
|
+
var a, o, f;
|
|
292
|
+
if (this.options.backtrack_lexer && (f = {
|
|
293
|
+
yylineno: this.yylineno,
|
|
294
|
+
yylloc: {
|
|
295
|
+
first_line: this.yylloc.first_line,
|
|
296
|
+
last_line: this.last_line,
|
|
297
|
+
first_column: this.yylloc.first_column,
|
|
298
|
+
last_column: this.yylloc.last_column
|
|
299
|
+
},
|
|
300
|
+
yytext: this.yytext,
|
|
301
|
+
match: this.match,
|
|
302
|
+
matches: this.matches,
|
|
303
|
+
matched: this.matched,
|
|
304
|
+
yyleng: this.yyleng,
|
|
305
|
+
offset: this.offset,
|
|
306
|
+
_more: this._more,
|
|
307
|
+
_input: this._input,
|
|
308
|
+
yy: this.yy,
|
|
309
|
+
conditionStack: this.conditionStack.slice(0),
|
|
310
|
+
done: this.done
|
|
311
|
+
}, this.options.ranges && (f.yylloc.range = this.yylloc.range.slice(0))), o = n[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
|
|
312
|
+
first_line: this.yylloc.last_line,
|
|
313
|
+
last_line: this.yylineno + 1,
|
|
314
|
+
first_column: this.yylloc.last_column,
|
|
315
|
+
last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
316
|
+
}, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], a = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a) return a;
|
|
317
|
+
if (this._backtrack) {
|
|
318
|
+
for (var p in f) this[p] = f[p];
|
|
319
|
+
return !1;
|
|
320
|
+
}
|
|
321
|
+
return !1;
|
|
322
|
+
}, "test_match"),
|
|
323
|
+
next: /* @__PURE__ */ s(function() {
|
|
324
|
+
if (this.done) return this.EOF;
|
|
325
|
+
this._input || (this.done = !0);
|
|
326
|
+
var n, i, a, o;
|
|
327
|
+
this._more || (this.yytext = "", this.match = "");
|
|
328
|
+
for (var f = this._currentRules(), p = 0; p < f.length; p++)
|
|
329
|
+
if (a = this._input.match(this.rules[f[p]]), a && (!i || a[0].length > i[0].length)) {
|
|
330
|
+
if (i = a, o = p, this.options.backtrack_lexer) {
|
|
331
|
+
if (n = this.test_match(a, f[p]), n !== !1) return n;
|
|
332
|
+
if (this._backtrack) {
|
|
333
|
+
i = !1;
|
|
334
|
+
continue;
|
|
335
|
+
} else return !1;
|
|
336
|
+
} else if (!this.options.flex) break;
|
|
337
|
+
}
|
|
338
|
+
return i ? (n = this.test_match(i, f[o]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
339
|
+
` + this.showPosition(), {
|
|
340
|
+
text: "",
|
|
341
|
+
token: null,
|
|
342
|
+
line: this.yylineno
|
|
343
|
+
});
|
|
344
|
+
}, "next"),
|
|
345
|
+
lex: /* @__PURE__ */ s(function() {
|
|
346
|
+
var i = this.next();
|
|
347
|
+
return i || this.lex();
|
|
348
|
+
}, "lex"),
|
|
349
|
+
begin: /* @__PURE__ */ s(function(i) {
|
|
350
|
+
this.conditionStack.push(i);
|
|
351
|
+
}, "begin"),
|
|
352
|
+
popState: /* @__PURE__ */ s(function() {
|
|
353
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
354
|
+
}, "popState"),
|
|
355
|
+
_currentRules: /* @__PURE__ */ s(function() {
|
|
356
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
357
|
+
}, "_currentRules"),
|
|
358
|
+
topState: /* @__PURE__ */ s(function(i) {
|
|
359
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
360
|
+
}, "topState"),
|
|
361
|
+
pushState: /* @__PURE__ */ s(function(i) {
|
|
362
|
+
this.begin(i);
|
|
363
|
+
}, "pushState"),
|
|
364
|
+
stateStackSize: /* @__PURE__ */ s(function() {
|
|
365
|
+
return this.conditionStack.length;
|
|
366
|
+
}, "stateStackSize"),
|
|
367
|
+
options: { "case-insensitive": !0 },
|
|
368
|
+
performAction: /* @__PURE__ */ s(function(i, a, o, f) {
|
|
369
|
+
switch (o) {
|
|
370
|
+
case 0:
|
|
371
|
+
break;
|
|
372
|
+
case 1:
|
|
373
|
+
break;
|
|
374
|
+
case 2:
|
|
375
|
+
return 10;
|
|
376
|
+
case 3:
|
|
377
|
+
break;
|
|
378
|
+
case 4:
|
|
379
|
+
break;
|
|
380
|
+
case 5:
|
|
381
|
+
return 4;
|
|
382
|
+
case 6:
|
|
383
|
+
return 11;
|
|
384
|
+
case 7:
|
|
385
|
+
return this.begin("acc_title"), 12;
|
|
386
|
+
case 8:
|
|
387
|
+
return this.popState(), "acc_title_value";
|
|
388
|
+
case 9:
|
|
389
|
+
return this.begin("acc_descr"), 14;
|
|
390
|
+
case 10:
|
|
391
|
+
return this.popState(), "acc_descr_value";
|
|
392
|
+
case 11:
|
|
393
|
+
this.begin("acc_descr_multiline");
|
|
394
|
+
break;
|
|
395
|
+
case 12:
|
|
396
|
+
this.popState();
|
|
397
|
+
break;
|
|
398
|
+
case 13:
|
|
399
|
+
return "acc_descr_multiline_value";
|
|
400
|
+
case 14:
|
|
401
|
+
return 17;
|
|
402
|
+
case 15:
|
|
403
|
+
return 18;
|
|
404
|
+
case 16:
|
|
405
|
+
return 19;
|
|
406
|
+
case 17:
|
|
407
|
+
return ":";
|
|
408
|
+
case 18:
|
|
409
|
+
return 6;
|
|
410
|
+
case 19:
|
|
411
|
+
return "INVALID";
|
|
412
|
+
}
|
|
413
|
+
}, "anonymous"),
|
|
414
|
+
rules: [
|
|
415
|
+
/^(?:%(?!\{)[^\n]*)/i,
|
|
416
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
417
|
+
/^(?:[\n]+)/i,
|
|
418
|
+
/^(?:\s+)/i,
|
|
419
|
+
/^(?:#[^\n]*)/i,
|
|
420
|
+
/^(?:journey\b)/i,
|
|
421
|
+
/^(?:title\s[^#\n;]+)/i,
|
|
422
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
423
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
424
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
425
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
426
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
427
|
+
/^(?:[\}])/i,
|
|
428
|
+
/^(?:[^\}]*)/i,
|
|
429
|
+
/^(?:section\s[^#:\n;]+)/i,
|
|
430
|
+
/^(?:[^#:\n;]+)/i,
|
|
431
|
+
/^(?::[^#\n;]+)/i,
|
|
432
|
+
/^(?::)/i,
|
|
433
|
+
/^(?:$)/i,
|
|
434
|
+
/^(?:.)/i
|
|
435
|
+
],
|
|
436
|
+
conditions: {
|
|
437
|
+
acc_descr_multiline: {
|
|
438
|
+
rules: [12, 13],
|
|
439
|
+
inclusive: !1
|
|
440
|
+
},
|
|
441
|
+
acc_descr: {
|
|
442
|
+
rules: [10],
|
|
443
|
+
inclusive: !1
|
|
444
|
+
},
|
|
445
|
+
acc_title: {
|
|
446
|
+
rules: [8],
|
|
447
|
+
inclusive: !1
|
|
448
|
+
},
|
|
449
|
+
INITIAL: {
|
|
450
|
+
rules: [
|
|
451
|
+
0,
|
|
452
|
+
1,
|
|
453
|
+
2,
|
|
454
|
+
3,
|
|
455
|
+
4,
|
|
456
|
+
5,
|
|
457
|
+
6,
|
|
458
|
+
7,
|
|
459
|
+
9,
|
|
460
|
+
11,
|
|
461
|
+
14,
|
|
462
|
+
15,
|
|
463
|
+
16,
|
|
464
|
+
17,
|
|
465
|
+
18,
|
|
466
|
+
19
|
|
467
|
+
],
|
|
468
|
+
inclusive: !0
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
})();
|
|
473
|
+
function m() {
|
|
474
|
+
this.yy = {};
|
|
475
|
+
}
|
|
476
|
+
return s(m, "Parser"), m.prototype = g, g.Parser = m, new m();
|
|
477
|
+
})();
|
|
478
|
+
K.parser = K;
|
|
479
|
+
var Ct = K, R = "", J = [], L = [], B = [], Pt = /* @__PURE__ */ s(function() {
|
|
480
|
+
J.length = 0, L.length = 0, R = "", B.length = 0, _t();
|
|
481
|
+
}, "clear"), It = /* @__PURE__ */ s(function(e) {
|
|
482
|
+
R = e, J.push(e);
|
|
483
|
+
}, "addSection"), At = /* @__PURE__ */ s(function() {
|
|
484
|
+
return J;
|
|
485
|
+
}, "getSections"), Ft = /* @__PURE__ */ s(function() {
|
|
486
|
+
let e = nt();
|
|
487
|
+
const t = 100;
|
|
488
|
+
let l = 0;
|
|
489
|
+
for (; !e && l < t; )
|
|
490
|
+
e = nt(), l++;
|
|
491
|
+
return L.push(...B), L;
|
|
492
|
+
}, "getTasks"), Rt = /* @__PURE__ */ s(function() {
|
|
493
|
+
const e = [];
|
|
494
|
+
return L.forEach((t) => {
|
|
495
|
+
t.people && e.push(...t.people);
|
|
496
|
+
}), [...new Set(e)].sort();
|
|
497
|
+
}, "updateActors"), Vt = /* @__PURE__ */ s(function(e, t) {
|
|
498
|
+
const l = t.substr(1).split(":");
|
|
499
|
+
let d = 0, r = [];
|
|
500
|
+
l.length === 1 ? (d = Number(l[0]), r = []) : (d = Number(l[0]), r = l[1].split(","));
|
|
501
|
+
const c = r.map((y) => y.trim()), h = {
|
|
502
|
+
section: R,
|
|
503
|
+
type: R,
|
|
504
|
+
people: c,
|
|
505
|
+
task: e,
|
|
506
|
+
score: d
|
|
507
|
+
};
|
|
508
|
+
B.push(h);
|
|
509
|
+
}, "addTask"), Lt = /* @__PURE__ */ s(function(e) {
|
|
510
|
+
const t = {
|
|
511
|
+
section: R,
|
|
512
|
+
type: R,
|
|
513
|
+
description: e,
|
|
514
|
+
task: e,
|
|
515
|
+
classes: []
|
|
516
|
+
};
|
|
517
|
+
L.push(t);
|
|
518
|
+
}, "addTaskOrg"), nt = /* @__PURE__ */ s(function() {
|
|
519
|
+
const e = /* @__PURE__ */ s(function(l) {
|
|
520
|
+
return B[l].processed;
|
|
521
|
+
}, "compileTask");
|
|
522
|
+
let t = !0;
|
|
523
|
+
for (const [l, d] of B.entries())
|
|
524
|
+
e(l), t = t && d.processed;
|
|
525
|
+
return t;
|
|
526
|
+
}, "compileTasks"), st = {
|
|
527
|
+
getConfig: /* @__PURE__ */ s(() => V().journey, "getConfig"),
|
|
528
|
+
clear: Pt,
|
|
529
|
+
setDiagramTitle: xt,
|
|
530
|
+
getDiagramTitle: wt,
|
|
531
|
+
setAccTitle: kt,
|
|
532
|
+
getAccTitle: Tt,
|
|
533
|
+
setAccDescription: mt,
|
|
534
|
+
getAccDescription: vt,
|
|
535
|
+
addSection: It,
|
|
536
|
+
getSections: At,
|
|
537
|
+
getTasks: Ft,
|
|
538
|
+
addTask: Vt,
|
|
539
|
+
addTaskOrg: Lt,
|
|
540
|
+
getActors: /* @__PURE__ */ s(function() {
|
|
541
|
+
return Rt();
|
|
542
|
+
}, "getActors")
|
|
543
|
+
}, Bt = /* @__PURE__ */ s((e) => `.label {
|
|
544
|
+
font-family: ${e.fontFamily};
|
|
545
|
+
color: ${e.textColor};
|
|
546
|
+
}
|
|
547
|
+
.mouth {
|
|
548
|
+
stroke: #666;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
line {
|
|
552
|
+
stroke: ${e.textColor}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.legend {
|
|
556
|
+
fill: ${e.textColor};
|
|
557
|
+
font-family: ${e.fontFamily};
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.label text {
|
|
561
|
+
fill: #333;
|
|
562
|
+
}
|
|
563
|
+
.label {
|
|
564
|
+
color: ${e.textColor}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
.face {
|
|
568
|
+
${e.faceColor ? `fill: ${e.faceColor}` : "fill: #FFF8DC"};
|
|
569
|
+
stroke: #999;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.node rect,
|
|
573
|
+
.node circle,
|
|
574
|
+
.node ellipse,
|
|
575
|
+
.node polygon,
|
|
576
|
+
.node path {
|
|
577
|
+
fill: ${e.mainBkg};
|
|
578
|
+
stroke: ${e.nodeBorder};
|
|
579
|
+
stroke-width: 1px;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.node .label {
|
|
583
|
+
text-align: center;
|
|
584
|
+
}
|
|
585
|
+
.node.clickable {
|
|
586
|
+
cursor: pointer;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.arrowheadPath {
|
|
590
|
+
fill: ${e.arrowheadColor};
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.edgePath .path {
|
|
594
|
+
stroke: ${e.lineColor};
|
|
595
|
+
stroke-width: 1.5px;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.flowchart-link {
|
|
599
|
+
stroke: ${e.lineColor};
|
|
600
|
+
fill: none;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.edgeLabel {
|
|
604
|
+
background-color: ${e.edgeLabelBackground};
|
|
605
|
+
rect {
|
|
606
|
+
opacity: 0.5;
|
|
607
|
+
}
|
|
608
|
+
text-align: center;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.cluster rect {
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.cluster text {
|
|
615
|
+
fill: ${e.titleColor};
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
div.mermaidTooltip {
|
|
619
|
+
position: absolute;
|
|
620
|
+
text-align: center;
|
|
621
|
+
max-width: 200px;
|
|
622
|
+
padding: 2px;
|
|
623
|
+
font-family: ${e.fontFamily};
|
|
624
|
+
font-size: 12px;
|
|
625
|
+
background: ${e.tertiaryColor};
|
|
626
|
+
border: 1px solid ${e.border2};
|
|
627
|
+
border-radius: 2px;
|
|
628
|
+
pointer-events: none;
|
|
629
|
+
z-index: 100;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
.task-type-0, .section-type-0 {
|
|
633
|
+
${e.fillType0 ? `fill: ${e.fillType0}` : ""};
|
|
634
|
+
}
|
|
635
|
+
.task-type-1, .section-type-1 {
|
|
636
|
+
${e.fillType0 ? `fill: ${e.fillType1}` : ""};
|
|
637
|
+
}
|
|
638
|
+
.task-type-2, .section-type-2 {
|
|
639
|
+
${e.fillType0 ? `fill: ${e.fillType2}` : ""};
|
|
640
|
+
}
|
|
641
|
+
.task-type-3, .section-type-3 {
|
|
642
|
+
${e.fillType0 ? `fill: ${e.fillType3}` : ""};
|
|
643
|
+
}
|
|
644
|
+
.task-type-4, .section-type-4 {
|
|
645
|
+
${e.fillType0 ? `fill: ${e.fillType4}` : ""};
|
|
646
|
+
}
|
|
647
|
+
.task-type-5, .section-type-5 {
|
|
648
|
+
${e.fillType0 ? `fill: ${e.fillType5}` : ""};
|
|
649
|
+
}
|
|
650
|
+
.task-type-6, .section-type-6 {
|
|
651
|
+
${e.fillType0 ? `fill: ${e.fillType6}` : ""};
|
|
652
|
+
}
|
|
653
|
+
.task-type-7, .section-type-7 {
|
|
654
|
+
${e.fillType0 ? `fill: ${e.fillType7}` : ""};
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.actor-0 {
|
|
658
|
+
${e.actor0 ? `fill: ${e.actor0}` : ""};
|
|
659
|
+
}
|
|
660
|
+
.actor-1 {
|
|
661
|
+
${e.actor1 ? `fill: ${e.actor1}` : ""};
|
|
662
|
+
}
|
|
663
|
+
.actor-2 {
|
|
664
|
+
${e.actor2 ? `fill: ${e.actor2}` : ""};
|
|
665
|
+
}
|
|
666
|
+
.actor-3 {
|
|
667
|
+
${e.actor3 ? `fill: ${e.actor3}` : ""};
|
|
668
|
+
}
|
|
669
|
+
.actor-4 {
|
|
670
|
+
${e.actor4 ? `fill: ${e.actor4}` : ""};
|
|
671
|
+
}
|
|
672
|
+
.actor-5 {
|
|
673
|
+
${e.actor5 ? `fill: ${e.actor5}` : ""};
|
|
674
|
+
}
|
|
675
|
+
${St()}
|
|
676
|
+
`, "getStyles"), Q = /* @__PURE__ */ s(function(e, t) {
|
|
677
|
+
return $t(e, t);
|
|
678
|
+
}, "drawRect"), jt = /* @__PURE__ */ s(function(e, t) {
|
|
679
|
+
const d = 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");
|
|
680
|
+
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");
|
|
681
|
+
function c(g) {
|
|
682
|
+
const m = rt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
683
|
+
g.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
684
|
+
}
|
|
685
|
+
s(c, "smile");
|
|
686
|
+
function h(g) {
|
|
687
|
+
const m = rt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
688
|
+
g.append("path").attr("class", "mouth").attr("d", m).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
689
|
+
}
|
|
690
|
+
s(h, "sad");
|
|
691
|
+
function y(g) {
|
|
692
|
+
g.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");
|
|
693
|
+
}
|
|
694
|
+
return s(y, "ambivalent"), t.score > 3 ? c(r) : t.score < 3 ? h(r) : y(r), d;
|
|
695
|
+
}, "drawFace"), ct = /* @__PURE__ */ s(function(e, t) {
|
|
696
|
+
const l = e.append("circle");
|
|
697
|
+
return l.attr("cx", t.cx), l.attr("cy", t.cy), l.attr("class", "actor-" + t.pos), l.attr("fill", t.fill), l.attr("stroke", t.stroke), l.attr("r", t.r), l.class !== void 0 && l.attr("class", l.class), t.title !== void 0 && l.append("title").text(t.title), l;
|
|
698
|
+
}, "drawCircle"), ht = /* @__PURE__ */ s(function(e, t) {
|
|
699
|
+
return Et(e, t);
|
|
700
|
+
}, "drawText"), Nt = /* @__PURE__ */ s(function(e, t) {
|
|
701
|
+
function l(r, c, h, y, g) {
|
|
702
|
+
return r + "," + c + " " + (r + h) + "," + c + " " + (r + h) + "," + (c + y - g) + " " + (r + h - g * 1.2) + "," + (c + y) + " " + r + "," + (c + y);
|
|
703
|
+
}
|
|
704
|
+
s(l, "genPoints");
|
|
705
|
+
const d = e.append("polygon");
|
|
706
|
+
d.attr("points", l(t.x, t.y, 50, 20, 7)), d.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ht(e, t);
|
|
707
|
+
}, "drawLabel"), zt = /* @__PURE__ */ s(function(e, t, l) {
|
|
708
|
+
const d = e.append("g"), r = ot();
|
|
709
|
+
r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = l.width * t.taskCount + l.diagramMarginX * (t.taskCount - 1), r.height = l.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Q(d, r), ut(l)(t.text, d, r.x, r.y, r.width, r.height, { class: "journey-section section-type-" + t.num }, l, t.colour);
|
|
710
|
+
}, "drawSection"), Z = -1, Wt = /* @__PURE__ */ s(function(e, t, l, d) {
|
|
711
|
+
const r = t.x + l.width / 2, c = e.append("g");
|
|
712
|
+
Z++, c.append("line").attr("id", d + "-task" + Z).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"), jt(c, {
|
|
713
|
+
cx: r,
|
|
714
|
+
cy: 300 + (5 - t.score) * 30,
|
|
715
|
+
score: t.score
|
|
716
|
+
});
|
|
717
|
+
const h = ot();
|
|
718
|
+
h.x = t.x, h.y = t.y, h.fill = t.fill, h.width = l.width, h.height = l.height, h.class = "task task-type-" + t.num, h.rx = 3, h.ry = 3, Q(c, h);
|
|
719
|
+
let y = t.x + 14;
|
|
720
|
+
t.people.forEach((g) => {
|
|
721
|
+
const m = t.actors[g].color, n = {
|
|
722
|
+
cx: y,
|
|
723
|
+
cy: t.y,
|
|
724
|
+
r: 7,
|
|
725
|
+
fill: m,
|
|
726
|
+
stroke: "#000",
|
|
727
|
+
title: g,
|
|
728
|
+
pos: t.actors[g].position
|
|
729
|
+
};
|
|
730
|
+
ct(c, n), y += 10;
|
|
731
|
+
}), ut(l)(t.task, c, h.x, h.y, h.width, h.height, { class: "task" }, l, t.colour);
|
|
732
|
+
}, "drawTask"), Ot = /* @__PURE__ */ s(function(e, t) {
|
|
733
|
+
Mt(e, t);
|
|
734
|
+
}, "drawBackgroundRect"), ut = /* @__PURE__ */ (function() {
|
|
735
|
+
function e(r, c, h, y, g, m, n, i) {
|
|
736
|
+
d(c.append("text").attr("x", h + g / 2).attr("y", y + m / 2 + 5).style("font-color", i).style("text-anchor", "middle").text(r), n);
|
|
737
|
+
}
|
|
738
|
+
s(e, "byText");
|
|
739
|
+
function t(r, c, h, y, g, m, n, i, a) {
|
|
740
|
+
const { taskFontSize: o, taskFontFamily: f } = i, p = r.split(/<br\s*\/?>/gi);
|
|
741
|
+
for (let u = 0; u < p.length; u++) {
|
|
742
|
+
const _ = u * o - o * (p.length - 1) / 2, x = c.append("text").attr("x", h + g / 2).attr("y", y).attr("fill", a).style("text-anchor", "middle").style("font-size", o).style("font-family", f);
|
|
743
|
+
x.append("tspan").attr("x", h + g / 2).attr("dy", _).text(p[u]), x.attr("y", y + m / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), d(x, n);
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
s(t, "byTspan");
|
|
747
|
+
function l(r, c, h, y, g, m, n, i) {
|
|
748
|
+
const a = c.append("switch"), o = a.append("foreignObject").attr("x", h).attr("y", y).attr("width", g).attr("height", m).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
749
|
+
o.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, a, h, y, g, m, n, i), d(o, n);
|
|
750
|
+
}
|
|
751
|
+
s(l, "byFo");
|
|
752
|
+
function d(r, c) {
|
|
753
|
+
for (const h in c) h in c && r.attr(h, c[h]);
|
|
754
|
+
}
|
|
755
|
+
return s(d, "_setTextAttrs"), function(r) {
|
|
756
|
+
return r.textPlacement === "fo" ? l : r.textPlacement === "old" ? e : t;
|
|
757
|
+
};
|
|
758
|
+
})(), j = {
|
|
759
|
+
drawRect: Q,
|
|
760
|
+
drawCircle: ct,
|
|
761
|
+
drawSection: zt,
|
|
762
|
+
drawText: ht,
|
|
763
|
+
drawLabel: Nt,
|
|
764
|
+
drawTask: Wt,
|
|
765
|
+
drawBackgroundRect: Ot,
|
|
766
|
+
initGraphics: /* @__PURE__ */ s(function(e, t) {
|
|
767
|
+
Z = -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");
|
|
768
|
+
}, "initGraphics")
|
|
769
|
+
}, Yt = /* @__PURE__ */ s(function(e) {
|
|
770
|
+
Object.keys(e).forEach(function(t) {
|
|
771
|
+
S[t] = e[t];
|
|
772
|
+
});
|
|
773
|
+
}, "setConf"), M = {}, W = 0;
|
|
774
|
+
function yt(e) {
|
|
775
|
+
const t = V().journey, l = t.maxLabelWidth;
|
|
776
|
+
W = 0;
|
|
777
|
+
let d = 60;
|
|
778
|
+
Object.keys(M).forEach((r) => {
|
|
779
|
+
const c = M[r].color, h = {
|
|
780
|
+
cx: 20,
|
|
781
|
+
cy: d,
|
|
782
|
+
r: 7,
|
|
783
|
+
fill: c,
|
|
784
|
+
stroke: "#000",
|
|
785
|
+
pos: M[r].position
|
|
786
|
+
};
|
|
787
|
+
j.drawCircle(e, h);
|
|
788
|
+
let y = e.append("text").attr("visibility", "hidden").text(r);
|
|
789
|
+
const g = y.node().getBoundingClientRect().width;
|
|
790
|
+
y.remove();
|
|
791
|
+
let m = [];
|
|
792
|
+
if (g <= l) m = [r];
|
|
793
|
+
else {
|
|
794
|
+
const n = r.split(" ");
|
|
795
|
+
let i = "";
|
|
796
|
+
y = e.append("text").attr("visibility", "hidden"), n.forEach((a) => {
|
|
797
|
+
const o = i ? `${i} ${a}` : a;
|
|
798
|
+
if (y.text(o), y.node().getBoundingClientRect().width > l) {
|
|
799
|
+
if (i && m.push(i), i = a, y.text(a), y.node().getBoundingClientRect().width > l) {
|
|
800
|
+
let f = "";
|
|
801
|
+
for (const p of a)
|
|
802
|
+
f += p, y.text(f + "-"), y.node().getBoundingClientRect().width > l && (m.push(f.slice(0, -1) + "-"), f = p);
|
|
803
|
+
i = f;
|
|
804
|
+
}
|
|
805
|
+
} else i = o;
|
|
806
|
+
}), i && m.push(i), y.remove();
|
|
807
|
+
}
|
|
808
|
+
m.forEach((n, i) => {
|
|
809
|
+
const a = {
|
|
810
|
+
x: 40,
|
|
811
|
+
y: d + 7 + i * 20,
|
|
812
|
+
fill: "#666",
|
|
813
|
+
text: n,
|
|
814
|
+
textMargin: t.boxTextMargin ?? 5
|
|
815
|
+
}, o = j.drawText(e, a).node().getBoundingClientRect().width;
|
|
816
|
+
o > W && o > t.leftMargin - o && (W = o);
|
|
817
|
+
}), d += Math.max(20, m.length * 20);
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
s(yt, "drawActorLegend");
|
|
821
|
+
var S = V().journey, E = 0, qt = /* @__PURE__ */ s(function(e, t, l, d) {
|
|
822
|
+
const r = V(), c = r.journey.titleColor, h = r.journey.titleFontSize, y = r.journey.titleFontFamily, g = r.securityLevel;
|
|
823
|
+
let m;
|
|
824
|
+
g === "sandbox" && (m = U("#i" + t));
|
|
825
|
+
const n = g === "sandbox" ? U(m.nodes()[0].contentDocument.body) : U("body");
|
|
826
|
+
T.init();
|
|
827
|
+
const i = n.select("#" + t);
|
|
828
|
+
j.initGraphics(i, t);
|
|
829
|
+
const a = d.db.getTasks(), o = d.db.getDiagramTitle(), f = d.db.getActors();
|
|
830
|
+
for (const A in M) delete M[A];
|
|
831
|
+
let p = 0;
|
|
832
|
+
f.forEach((A) => {
|
|
833
|
+
M[A] = {
|
|
834
|
+
color: S.actorColours[p % S.actorColours.length],
|
|
835
|
+
position: p
|
|
836
|
+
}, p++;
|
|
837
|
+
}), yt(i), E = S.leftMargin + W, T.insert(0, 0, E, Object.keys(M).length * 50), Xt(i, a, 0, t);
|
|
838
|
+
const u = T.getBounds();
|
|
839
|
+
o && i.append("text").text(o).attr("x", E).attr("font-size", h).attr("font-weight", "bold").attr("y", 25).attr("fill", c).attr("font-family", y);
|
|
840
|
+
const _ = u.stopy - u.starty + 2 * S.diagramMarginY, x = E + u.stopx + 2 * S.diagramMarginX;
|
|
841
|
+
bt(i, _, x, S.useMaxWidth), i.append("line").attr("x1", E).attr("y1", S.height * 4).attr("x2", x - E - 4).attr("y2", S.height * 4).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#" + t + "-arrowhead)");
|
|
842
|
+
const C = o ? 70 : 0;
|
|
843
|
+
i.attr("viewBox", `${u.startx} -25 ${x} ${_ + C}`), i.attr("preserveAspectRatio", "xMinYMin meet"), i.attr("height", _ + C + 25);
|
|
844
|
+
}, "draw"), T = {
|
|
845
|
+
data: {
|
|
846
|
+
startx: void 0,
|
|
847
|
+
stopx: void 0,
|
|
848
|
+
starty: void 0,
|
|
849
|
+
stopy: void 0
|
|
850
|
+
},
|
|
851
|
+
verticalPos: 0,
|
|
852
|
+
sequenceItems: [],
|
|
853
|
+
init: /* @__PURE__ */ s(function() {
|
|
854
|
+
this.sequenceItems = [], this.data = {
|
|
855
|
+
startx: void 0,
|
|
856
|
+
stopx: void 0,
|
|
857
|
+
starty: void 0,
|
|
858
|
+
stopy: void 0
|
|
859
|
+
}, this.verticalPos = 0;
|
|
860
|
+
}, "init"),
|
|
861
|
+
updateVal: /* @__PURE__ */ s(function(e, t, l, d) {
|
|
862
|
+
e[t] === void 0 ? e[t] = l : e[t] = d(l, e[t]);
|
|
863
|
+
}, "updateVal"),
|
|
864
|
+
updateBounds: /* @__PURE__ */ s(function(e, t, l, d) {
|
|
865
|
+
const r = V().journey, c = this;
|
|
866
|
+
let h = 0;
|
|
867
|
+
function y(g) {
|
|
868
|
+
return /* @__PURE__ */ s(function(n) {
|
|
869
|
+
h++;
|
|
870
|
+
const i = c.sequenceItems.length - h + 1;
|
|
871
|
+
c.updateVal(n, "starty", t - i * r.boxMargin, Math.min), c.updateVal(n, "stopy", d + i * r.boxMargin, Math.max), c.updateVal(T.data, "startx", e - i * r.boxMargin, Math.min), c.updateVal(T.data, "stopx", l + i * r.boxMargin, Math.max), g !== "activation" && (c.updateVal(n, "startx", e - i * r.boxMargin, Math.min), c.updateVal(n, "stopx", l + i * r.boxMargin, Math.max), c.updateVal(T.data, "starty", t - i * r.boxMargin, Math.min), c.updateVal(T.data, "stopy", d + i * r.boxMargin, Math.max));
|
|
872
|
+
}, "updateItemBounds");
|
|
873
|
+
}
|
|
874
|
+
s(y, "updateFn"), this.sequenceItems.forEach(y());
|
|
875
|
+
}, "updateBounds"),
|
|
876
|
+
insert: /* @__PURE__ */ s(function(e, t, l, d) {
|
|
877
|
+
const r = Math.min(e, l), c = Math.max(e, l), h = Math.min(t, d), y = Math.max(t, d);
|
|
878
|
+
this.updateVal(T.data, "startx", r, Math.min), this.updateVal(T.data, "starty", h, Math.min), this.updateVal(T.data, "stopx", c, Math.max), this.updateVal(T.data, "stopy", y, Math.max), this.updateBounds(r, h, c, y);
|
|
879
|
+
}, "insert"),
|
|
880
|
+
bumpVerticalPos: /* @__PURE__ */ s(function(e) {
|
|
881
|
+
this.verticalPos = this.verticalPos + e, this.data.stopy = this.verticalPos;
|
|
882
|
+
}, "bumpVerticalPos"),
|
|
883
|
+
getVerticalPos: /* @__PURE__ */ s(function() {
|
|
884
|
+
return this.verticalPos;
|
|
885
|
+
}, "getVerticalPos"),
|
|
886
|
+
getBounds: /* @__PURE__ */ s(function() {
|
|
887
|
+
return this.data;
|
|
888
|
+
}, "getBounds")
|
|
889
|
+
}, H = S.sectionFills, at = S.sectionColours, Xt = /* @__PURE__ */ s(function(e, t, l, d) {
|
|
890
|
+
const r = V().journey;
|
|
891
|
+
let c = "";
|
|
892
|
+
const h = l + (r.height * 2 + r.diagramMarginY);
|
|
893
|
+
let y = 0, g = "#CCC", m = "black", n = 0;
|
|
894
|
+
for (const [i, a] of t.entries()) {
|
|
895
|
+
if (c !== a.section) {
|
|
896
|
+
g = H[y % H.length], n = y % H.length, m = at[y % at.length];
|
|
897
|
+
let f = 0;
|
|
898
|
+
const p = a.section;
|
|
899
|
+
for (let _ = i; _ < t.length && t[_].section == p; _++) f = f + 1;
|
|
900
|
+
const u = {
|
|
901
|
+
x: i * r.taskMargin + i * r.width + E,
|
|
902
|
+
y: 50,
|
|
903
|
+
text: a.section,
|
|
904
|
+
fill: g,
|
|
905
|
+
num: n,
|
|
906
|
+
colour: m,
|
|
907
|
+
taskCount: f
|
|
908
|
+
};
|
|
909
|
+
j.drawSection(e, u, r), c = a.section, y++;
|
|
910
|
+
}
|
|
911
|
+
const o = a.people.reduce((f, p) => (M[p] && (f[p] = M[p]), f), {});
|
|
912
|
+
a.x = i * r.taskMargin + i * r.width + E, a.y = h, a.width = r.diagramMarginX, a.height = r.diagramMarginY, a.colour = m, a.fill = g, a.num = n, a.actors = o, j.drawTask(e, a, r, d), T.insert(a.x, a.y, a.x + a.width + r.taskMargin, 450);
|
|
913
|
+
}
|
|
914
|
+
}, "drawTasks"), lt = {
|
|
915
|
+
setConf: Yt,
|
|
916
|
+
draw: qt
|
|
917
|
+
}, Qt = {
|
|
918
|
+
parser: Ct,
|
|
919
|
+
db: st,
|
|
920
|
+
renderer: lt,
|
|
921
|
+
styles: Bt,
|
|
922
|
+
init: /* @__PURE__ */ s((e) => {
|
|
923
|
+
lt.setConf(e.journey), st.clear();
|
|
924
|
+
}, "init")
|
|
925
|
+
};
|
|
926
|
+
export {
|
|
927
|
+
Qt as diagram
|
|
928
|
+
};
|